@vasakgroup/vue-libvasak 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ref as $, onMounted as Q, onUnmounted as Ve, watch as X, defineComponent as E, toRef as me, computed as x, createElementBlock as i, unref as V, openBlock as l, normalizeStyle as se, createCommentVNode as g, createElementVNode as C, createVNode as j, toDisplayString as S, normalizeClass as p, renderSlot as B, createBlock as G, onBeforeUnmount as J, Fragment as Y, renderList as ae, withCtx as U, mergeModels as je, useAttrs as Pe, useId as Ne, useModel as Fe, withDirectives as ye, mergeProps as ne, isRef as Re, vModelSelect as He, inject as xe, getCurrentInstance as ke, provide as ue, createTextVNode as We, toHandlers as we, createSlots as qe, withModifiers as A, withKeys as O, Teleport as $e, Transition as Ce, nextTick as ce, vShow as Ue, cloneVNode as Ke, h as Ge, Comment as Ye, Text as Qe } from "vue";
1
+ import { ref as $, onMounted as Q, onUnmounted as je, watch as X, defineComponent as E, toRef as me, computed as k, createElementBlock as i, unref as V, openBlock as l, normalizeStyle as se, createCommentVNode as g, createElementVNode as C, createVNode as j, toDisplayString as T, normalizeClass as p, renderSlot as B, createBlock as G, onBeforeUnmount as J, Fragment as Y, renderList as ae, withCtx as U, mergeModels as be, useAttrs as Pe, useId as Ne, useModel as Fe, withDirectives as xe, mergeProps as ne, isRef as Re, vModelSelect as He, inject as ke, getCurrentInstance as we, provide as ue, createTextVNode as We, toHandlers as $e, createSlots as qe, withModifiers as S, withKeys as O, Teleport as Ce, Transition as ze, nextTick as ce, vShow as Ue, cloneVNode as Ke, h as Ge, Comment as Ye, Text as Qe } from "vue";
2
2
  import { listen as Xe } from "@tauri-apps/api/event";
3
3
  import { getSymbolSource as Je, getIconSource as Ze } from "@vasakgroup/plugin-vicons";
4
4
  import { getCurrentWindow as _e } from "@tauri-apps/api/window";
@@ -6,12 +6,12 @@ function et(e, n) {
6
6
  const t = $("");
7
7
  let a = null, o = !1, s = 0;
8
8
  async function c() {
9
- const u = ++s, d = e.value;
10
- if (!d) {
9
+ const u = ++s, f = e.value;
10
+ if (!f) {
11
11
  t.value = "";
12
12
  return;
13
13
  }
14
- const v = n.value === "symbol" ? await Je(d) : await Ze(d);
14
+ const v = n.value === "symbol" ? await Je(f) : await Ze(f);
15
15
  u === s && (t.value = v);
16
16
  }
17
17
  return Q(async () => {
@@ -21,7 +21,7 @@ function et(e, n) {
21
21
  return;
22
22
  }
23
23
  a = u, await c();
24
- }), Ve(() => {
24
+ }), je(() => {
25
25
  o = !0, a?.();
26
26
  }), X(e, c), t;
27
27
  }
@@ -34,7 +34,7 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
34
34
  alt: { default: "" }
35
35
  },
36
36
  setup(e) {
37
- const n = e, t = et(me(n, "name"), me(n, "type")), a = x(() => `${n.size}px`);
37
+ const n = e, t = et(me(n, "name"), me(n, "type")), a = k(() => `${n.size}px`);
38
38
  return (o, s) => V(t) ? (l(), i("img", {
39
39
  key: 0,
40
40
  src: V(t),
@@ -50,7 +50,7 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
50
50
  }), at = { class: "flex flex-col gap-2" }, nt = ["aria-expanded"], lt = {
51
51
  key: 1,
52
52
  class: "flex flex-col gap-1"
53
- }, ze = /* @__PURE__ */ E({
53
+ }, Le = /* @__PURE__ */ E({
54
54
  __name: "SideGroup",
55
55
  props: {
56
56
  title: {},
@@ -72,7 +72,7 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
72
72
  "aria-expanded": t.value,
73
73
  onClick: o[0] || (o[0] = (s) => t.value = !t.value)
74
74
  }, [
75
- C("span", null, S(e.title), 1),
75
+ C("span", null, T(e.title), 1),
76
76
  j(N, {
77
77
  name: "pan-down-symbolic",
78
78
  type: "symbol",
@@ -91,7 +91,7 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
91
91
  }, rt = {
92
92
  key: 1,
93
93
  class: "rounded-corner bg-ui-surface px-2 py-0.5 font-semibold text-tx-muted text-xs"
94
- }, Le = /* @__PURE__ */ E({
94
+ }, Ee = /* @__PURE__ */ E({
95
95
  __name: "SideButton",
96
96
  props: {
97
97
  label: {},
@@ -124,10 +124,10 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
124
124
  key: 0,
125
125
  name: e.icon,
126
126
  size: 20
127
- }, null, 8, ["name"])) : (l(), i("span", it, S(e.label.charAt(0).toUpperCase()), 1))
127
+ }, null, 8, ["name"])) : (l(), i("span", it, T(e.label.charAt(0).toUpperCase()), 1))
128
128
  ], 2),
129
- e.collapsed ? g("", !0) : (l(), i("span", st, S(e.label), 1)),
130
- !e.collapsed && e.badge !== "" ? (l(), i("span", rt, S(e.badge), 1)) : g("", !0)
129
+ e.collapsed ? g("", !0) : (l(), i("span", st, T(e.label), 1)),
130
+ !e.collapsed && e.badge !== "" ? (l(), i("span", rt, T(e.badge), 1)) : g("", !0)
131
131
  ], 10, ot));
132
132
  }
133
133
  }), ut = {
@@ -145,7 +145,7 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
145
145
  }, vt = { key: 0 }, pt = {
146
146
  key: 1,
147
147
  class: "flex border-ui-border border-b p-2"
148
- }, gt = ["aria-label", "aria-expanded"], ht = { class: "flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-2" }, be = "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, yt = /* @__PURE__ */ E({
148
+ }, gt = ["aria-label", "aria-expanded"], ht = { class: "flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-2" }, ve = "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", pe = 767, yt = /* @__PURE__ */ E({
149
149
  __name: "SideBar",
150
150
  props: {
151
151
  title: { default: "" },
@@ -159,38 +159,38 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
159
159
  emits: ["update:modelValue", "update:collapsed", "change"],
160
160
  setup(e, { expose: n, emit: t }) {
161
161
  const a = e, o = t, s = $(a.collapsed ?? !1), c = $(!1);
162
- let u = null, d = null;
163
- const v = x(() => c.value || s.value), w = x(() => !!(a.title || a.subtitle));
164
- x(() => a.categories.length > 0);
165
- function I() {
162
+ let u = null, f = null;
163
+ const v = k(() => c.value || s.value), y = k(() => !!(a.title || a.subtitle));
164
+ k(() => a.categories.length > 0);
165
+ function M() {
166
166
  return document.documentElement?.clientWidth || window.innerWidth;
167
167
  }
168
168
  function z() {
169
- c.value = I() <= ve;
169
+ c.value = M() <= pe;
170
170
  }
171
171
  function L() {
172
172
  s.value = !s.value, o("update:collapsed", s.value);
173
173
  }
174
- function h(k) {
175
- o("update:modelValue", k), o("change", k);
174
+ function h(w) {
175
+ o("update:modelValue", w), o("change", w);
176
176
  }
177
177
  return X(
178
178
  () => a.collapsed,
179
- (k) => {
180
- k !== void 0 && (s.value = k);
179
+ (w) => {
180
+ w !== void 0 && (s.value = w);
181
181
  }
182
182
  ), Q(() => {
183
- u = window.matchMedia(`(max-width: ${ve}px)`), z(), u.addEventListener("change", z), window.addEventListener("resize", z), typeof ResizeObserver < "u" && document.documentElement && (d = new ResizeObserver(z), d.observe(document.documentElement));
183
+ u = window.matchMedia(`(max-width: ${pe}px)`), z(), u.addEventListener("change", z), window.addEventListener("resize", z), typeof ResizeObserver < "u" && document.documentElement && (f = new ResizeObserver(z), f.observe(document.documentElement));
184
184
  }), J(() => {
185
- u?.removeEventListener("change", z), window.removeEventListener("resize", z), d?.disconnect(), d = null;
186
- }), n({ collapsed: v }), (k, P) => (l(), i("aside", {
185
+ u?.removeEventListener("change", z), window.removeEventListener("resize", z), f?.disconnect(), f = null;
186
+ }), n({ collapsed: v }), (w, P) => (l(), i("aside", {
187
187
  class: p(["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]", v.value ? "md:w-[84px]" : "md:w-72"]])
188
188
  }, [
189
- w.value || k.$slots.header ? (l(), i("header", ut, [
189
+ y.value || w.$slots.header ? (l(), i("header", ut, [
190
190
  C("div", ct, [
191
191
  C("button", {
192
192
  type: "button",
193
- class: p(be),
193
+ class: p(ve),
194
194
  "aria-label": v.value ? e.expandLabel : e.collapseLabel,
195
195
  "aria-expanded": !v.value,
196
196
  onClick: L
@@ -201,18 +201,18 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
201
201
  size: 16
202
202
  }, null, 8, ["name"])
203
203
  ], 8, dt),
204
- w.value && !v.value ? (l(), i("div", ft, [
205
- e.title ? (l(), i("p", mt, S(e.title), 1)) : g("", !0),
206
- e.subtitle ? (l(), i("p", bt, S(e.subtitle), 1)) : g("", !0)
204
+ y.value && !v.value ? (l(), i("div", ft, [
205
+ e.title ? (l(), i("p", mt, T(e.title), 1)) : g("", !0),
206
+ e.subtitle ? (l(), i("p", bt, T(e.subtitle), 1)) : g("", !0)
207
207
  ])) : g("", !0)
208
208
  ]),
209
- k.$slots.header && !v.value ? (l(), i("div", vt, [
210
- B(k.$slots, "header", { collapsed: v.value })
209
+ w.$slots.header && !v.value ? (l(), i("div", vt, [
210
+ B(w.$slots, "header", { collapsed: v.value })
211
211
  ])) : g("", !0)
212
212
  ])) : (l(), i("div", pt, [
213
213
  C("button", {
214
214
  type: "button",
215
- class: p(be),
215
+ class: p(ve),
216
216
  "aria-label": v.value ? e.expandLabel : e.collapseLabel,
217
217
  "aria-expanded": !v.value,
218
218
  onClick: L
@@ -225,33 +225,33 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
225
225
  ], 8, gt)
226
226
  ])),
227
227
  C("div", ht, [
228
- (l(!0), i(Y, null, ae(e.categories, (F) => (l(), G(ze, {
228
+ (l(!0), i(Y, null, ae(e.categories, (F) => (l(), G(Le, {
229
229
  key: F.id,
230
230
  title: F.title,
231
231
  collapsed: v.value
232
232
  }, {
233
233
  default: U(() => [
234
- (l(!0), i(Y, null, ae(F.items, (y) => (l(), G(Le, {
235
- key: y.id,
236
- label: y.label,
237
- icon: y.icon,
238
- badge: y.badge,
239
- disabled: y.disabled,
234
+ (l(!0), i(Y, null, ae(F.items, (x) => (l(), G(Ee, {
235
+ key: x.id,
236
+ label: x.label,
237
+ icon: x.icon,
238
+ badge: x.badge,
239
+ disabled: x.disabled,
240
240
  collapsed: v.value,
241
- active: e.modelValue === y.id,
242
- onClick: (r) => h(y.id)
241
+ active: e.modelValue === x.id,
242
+ onClick: (r) => h(x.id)
243
243
  }, null, 8, ["label", "icon", "badge", "disabled", "collapsed", "active", "onClick"]))), 128))
244
244
  ]),
245
245
  _: 2
246
246
  }, 1032, ["title", "collapsed"]))), 128)),
247
- B(k.$slots, "default", { collapsed: v.value })
247
+ B(w.$slots, "default", { collapsed: v.value })
248
248
  ])
249
249
  ], 2));
250
250
  }
251
251
  }), xt = { class: "flex min-w-0 flex-col gap-1" }, kt = ["for"], wt = { class: "relative flex min-w-0 items-center" }, $t = ["id"], Ct = /* @__PURE__ */ E({
252
252
  inheritAttrs: !1,
253
253
  __name: "SelectField",
254
- props: /* @__PURE__ */ je({
254
+ props: /* @__PURE__ */ be({
255
255
  label: {}
256
256
  }, {
257
257
  modelValue: {
@@ -259,28 +259,30 @@ const tt = ["src", "alt"], N = /* @__PURE__ */ E({
259
259
  },
260
260
  modelModifiers: {}
261
261
  }),
262
- emits: ["update:modelValue"],
263
- setup(e) {
264
- const n = e, t = Pe(), a = Ne(), o = x(() => t.id ?? a), [s, c] = Fe(e, "modelValue", {
265
- set(u) {
266
- return c.number ? Number(u) : u;
262
+ emits: /* @__PURE__ */ be(["change"], ["update:modelValue"]),
263
+ setup(e, { emit: n }) {
264
+ const t = e, a = Pe(), o = Ne(), s = k(() => a.id ?? o), c = n, [u, f] = Fe(e, "modelValue", {
265
+ set(v) {
266
+ return f.number ? Number(v) : v;
267
267
  }
268
268
  });
269
- return (u, d) => (l(), i("div", xt, [
270
- n.label ? (l(), i("label", {
269
+ return (v, y) => (l(), i("div", xt, [
270
+ t.label ? (l(), i("label", {
271
271
  key: 0,
272
- for: o.value,
272
+ for: s.value,
273
273
  class: "text-tx-muted text-xs"
274
- }, S(n.label), 9, kt)) : g("", !0),
274
+ }, T(t.label), 9, kt)) : g("", !0),
275
275
  C("div", wt, [
276
- ye(C("select", ne({
277
- id: o.value,
278
- "onUpdate:modelValue": d[0] || (d[0] = (v) => Re(s) ? s.value = v : null),
276
+ xe(C("select", ne({
277
+ id: s.value,
278
+ "onUpdate:modelValue": y[0] || (y[0] = (M) => Re(u) ? u.value = M : null),
279
279
  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"
280
- }, V(t)), [
281
- B(u.$slots, "default")
280
+ }, V(a), {
281
+ onChange: y[1] || (y[1] = (M) => c("change", M))
282
+ }), [
283
+ B(v.$slots, "default")
282
284
  ], 16, $t), [
283
- [He, V(s)]
285
+ [He, V(u)]
284
286
  ]),
285
287
  j(N, {
286
288
  name: "pan-down-symbolic",
@@ -300,13 +302,13 @@ function Lt(e) {
300
302
  return typeof e == "string" && zt.includes(e);
301
303
  }
302
304
  function Z() {
303
- const e = xe(de, null);
305
+ const e = ke(de, null);
304
306
  if (e) return e;
305
307
  const n = $("top");
306
308
  return {
307
309
  posicion: n,
308
- orientacion: x(() => re(n.value)),
309
- vertical: x(() => re(n.value) === "vertical")
310
+ orientacion: k(() => re(n.value)),
311
+ vertical: k(() => re(n.value) === "vertical")
310
312
  };
311
313
  }
312
314
  const fe = ["minimize", "maximize", "close"], Et = "window", Dt = "barPosition";
@@ -341,15 +343,15 @@ function Mt(e = "top") {
341
343
  a = !0, t?.(), t = null;
342
344
  }), n;
343
345
  }
344
- function Ee(e) {
345
- const n = ke(), t = {};
346
+ function De(e) {
347
+ const n = we(), t = {};
346
348
  for (const a of e) {
347
349
  const o = `on${a[0].toUpperCase()}${a.slice(1)}`;
348
350
  n?.vnode.props?.[o] && (t[a] = () => n.emit(a));
349
351
  }
350
352
  return t;
351
353
  }
352
- const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title", "aria-label"], ie = "flex items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 p-1 transition-colors", De = /* @__PURE__ */ E({
354
+ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title", "aria-label"], ie = "flex items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 p-1 transition-colors", Be = /* @__PURE__ */ E({
353
355
  __name: "WindowControls",
354
356
  props: {
355
357
  controls: { default: () => fe },
@@ -359,7 +361,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
359
361
  },
360
362
  emits: ["minimize", "maximize", "close"],
361
363
  setup(e, { emit: n }) {
362
- const t = e, a = n, { vertical: o } = Z(), s = x(() => ({
364
+ const t = e, a = n, { vertical: o } = Z(), s = k(() => ({
363
365
  minimize: t.controls.includes("minimize"),
364
366
  maximize: t.controls.includes("maximize"),
365
367
  close: t.controls.includes("close")
@@ -367,20 +369,20 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
367
369
  function c() {
368
370
  return _e();
369
371
  }
370
- const u = ke();
371
- function d(z) {
372
+ const u = we();
373
+ function f(z) {
372
374
  return !!u?.vnode.props?.[`on${z}`];
373
375
  }
374
376
  function v() {
375
- if (d("Minimize")) return a("minimize");
377
+ if (f("Minimize")) return a("minimize");
376
378
  c().minimize();
377
379
  }
378
- function w() {
379
- if (d("Maximize")) return a("maximize");
380
+ function y() {
381
+ if (f("Maximize")) return a("maximize");
380
382
  c().toggleMaximize();
381
383
  }
382
- function I() {
383
- if (d("Close")) return a("close");
384
+ function M() {
385
+ if (f("Close")) return a("close");
384
386
  c().close();
385
387
  }
386
388
  return (z, L) => e.controls.length ? (l(), i("div", {
@@ -407,7 +409,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
407
409
  class: p([ie, "hover:bg-status-warning"]),
408
410
  title: e.maximizeLabel,
409
411
  "aria-label": e.maximizeLabel,
410
- onClick: L[1] || (L[1] = (h) => w())
412
+ onClick: L[1] || (L[1] = (h) => y())
411
413
  }, [
412
414
  j(N, {
413
415
  name: "window-maximize",
@@ -420,7 +422,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
420
422
  class: p([ie, "hover:bg-status-error"]),
421
423
  title: e.closeLabel,
422
424
  "aria-label": e.closeLabel,
423
- onClick: L[2] || (L[2] = (h) => I())
425
+ onClick: L[2] || (L[2] = (h) => M())
424
426
  }, [
425
427
  j(N, {
426
428
  name: "window-close",
@@ -437,7 +439,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
437
439
  key: 1,
438
440
  class: "min-w-0 shrink truncate text-sm",
439
441
  "data-tauri-drag-region": ""
440
- }, Be = /* @__PURE__ */ E({
442
+ }, Me = /* @__PURE__ */ E({
441
443
  __name: "AppBar",
442
444
  props: {
443
445
  position: { default: null },
@@ -449,10 +451,10 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
449
451
  },
450
452
  emits: ["minimize", "maximize", "close"],
451
453
  setup(e) {
452
- const n = e, t = Z(), a = x(() => n.position ?? t.posicion.value), o = x(() => a.value === "left" || a.value === "right");
454
+ const n = e, t = Z(), a = k(() => n.position ?? t.posicion.value), o = k(() => a.value === "left" || a.value === "right");
453
455
  return ue(de, {
454
456
  posicion: a,
455
- orientacion: x(() => o.value ? "vertical" : "horizontal"),
457
+ orientacion: k(() => o.value ? "vertical" : "horizontal"),
456
458
  vertical: o
457
459
  }), (s, c) => (l(), i("div", {
458
460
  class: p(["relative flex shrink-0 items-center gap-2 p-1 font-title", o.value ? "h-full flex-col" : "w-full"]),
@@ -463,7 +465,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
463
465
  ])) : g("", !0),
464
466
  (s.$slots.titulo || e.title) && !o.value ? (l(), i("p", Ot, [
465
467
  B(s.$slots, "titulo", {}, () => [
466
- We(S(e.title), 1)
468
+ We(T(e.title), 1)
467
469
  ])
468
470
  ])) : g("", !0),
469
471
  C("div", {
@@ -478,12 +480,12 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
478
480
  }, [
479
481
  B(s.$slots, "acciones")
480
482
  ], 2)) : g("", !0),
481
- j(De, ne({
483
+ j(Be, ne({
482
484
  controls: e.controls,
483
485
  "minimize-label": e.minimizeLabel,
484
486
  "maximize-label": e.maximizeLabel,
485
487
  "close-label": e.closeLabel
486
- }, we(V(Ee)(["minimize", "maximize", "close"]))), null, 16, ["controls", "minimize-label", "maximize-label", "close-label"]),
488
+ }, $e(V(De)(["minimize", "maximize", "close"]))), null, 16, ["controls", "minimize-label", "maximize-label", "close-label"]),
487
489
  s.$slots.centro ? (l(), i("div", {
488
490
  key: 3,
489
491
  class: p(["pointer-events-none absolute flex items-center justify-center", o.value ? "inset-x-0 top-1/2 -translate-y-1/2 flex-col" : "inset-y-0 left-1/2 -translate-x-1/2"])
@@ -509,7 +511,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
509
511
  },
510
512
  emits: ["minimize", "maximize", "close"],
511
513
  setup(e) {
512
- const n = e, t = Mt(), a = x(() => n.position ?? t.value), o = x(() => re(a.value)), s = x(() => o.value === "vertical");
514
+ const n = e, t = Mt(), a = k(() => n.position ?? t.value), o = k(() => re(a.value)), s = k(() => o.value === "vertical");
513
515
  ue(de, { posicion: a, orientacion: o, vertical: s });
514
516
  const c = {
515
517
  top: "flex-col",
@@ -517,10 +519,10 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
517
519
  left: "flex-row",
518
520
  right: "flex-row-reverse"
519
521
  };
520
- return (u, d) => (l(), i("div", {
522
+ return (u, f) => (l(), i("div", {
521
523
  class: p(["flex h-screen w-screen overflow-hidden rounded-corner-window border border-ui-border bg-ui-bg/80", c[a.value]])
522
524
  }, [
523
- e.hideBar ? g("", !0) : (l(), G(Be, ne({
525
+ e.hideBar ? g("", !0) : (l(), G(Me, ne({
524
526
  key: 0,
525
527
  position: a.value,
526
528
  title: e.title,
@@ -528,7 +530,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
528
530
  "maximize-label": e.maximizeLabel,
529
531
  "close-label": e.closeLabel,
530
532
  controls: e.controls
531
- }, we(V(Ee)(["minimize", "maximize", "close"]))), qe({
533
+ }, $e(V(De)(["minimize", "maximize", "close"]))), qe({
532
534
  default: U(() => [
533
535
  B(u.$slots, "barra")
534
536
  ]),
@@ -578,7 +580,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
578
580
  key: 0,
579
581
  class: "size-2 shrink-0 rounded-full bg-current",
580
582
  "aria-hidden": "true"
581
- }, qt = ["title", "aria-label"], Ut = 500, pe = 8, ge = 6, Me = /* @__PURE__ */ E({
583
+ }, qt = ["title", "aria-label"], Ut = 500, ge = 8, he = 6, Ae = /* @__PURE__ */ E({
582
584
  __name: "TabItem",
583
585
  props: {
584
586
  tab: {},
@@ -589,36 +591,36 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
589
591
  },
590
592
  emits: ["select", "close", "menu", "mover", "navegar"],
591
593
  setup(e, { emit: n }) {
592
- const t = e, a = n, { vertical: o, posicion: s } = Z(), c = $(null), u = $(null), d = $(!1), v = $(!1), w = $(!1), I = $({ top: 0, left: 0, right: 0 });
594
+ const t = e, a = n, { vertical: o, posicion: s } = Z(), c = $(null), u = $(null), f = $(!1), v = $(!1), y = $(!1), M = $({ top: 0, left: 0, right: 0 });
593
595
  let z = null, L = null;
594
- const h = x(() => t.tab.closable !== !1), k = x(() => t.tab.tooltip ?? t.tab.label), P = x(
596
+ const h = k(() => t.tab.closable !== !1), w = k(() => t.tab.tooltip ?? t.tab.label), P = k(
595
597
  () => t.tab.dirty ? `${t.tab.label} · ${t.dirtyLabel}` : t.tab.label
596
- ), F = x(() => t.tab.label.trim().charAt(0).toUpperCase()), y = x(() => d.value || w.value), r = x(
597
- () => !!t.tab.dirty && !(y.value && h.value)
598
- ), f = x(
599
- () => h.value && (y.value || t.active || !t.tab.dirty)
600
- ), b = x(
601
- () => o.value && (d.value || v.value || w.value)
602
- ), D = x(() => {
603
- const M = { position: "fixed", top: `${I.value.top}px`, zIndex: 50 };
604
- return s.value === "right" ? { ...M, right: `${I.value.right + ge}px` } : { ...M, left: `${I.value.left + ge}px` };
598
+ ), F = k(() => t.tab.label.trim().charAt(0).toUpperCase()), x = k(() => f.value || y.value), r = k(
599
+ () => !!t.tab.dirty && !(x.value && h.value)
600
+ ), d = k(
601
+ () => h.value && (x.value || t.active || !t.tab.dirty)
602
+ ), b = k(
603
+ () => o.value && (f.value || v.value || y.value)
604
+ ), D = k(() => {
605
+ const A = { position: "fixed", top: `${M.value.top}px`, zIndex: 50 };
606
+ return s.value === "right" ? { ...A, right: `${M.value.right + he}px` } : { ...A, left: `${M.value.left + he}px` };
605
607
  });
606
608
  function _() {
607
- const M = c.value;
608
- if (!M) return;
609
- const m = M.getBoundingClientRect();
610
- I.value = {
609
+ const A = c.value;
610
+ if (!A) return;
611
+ const m = A.getBoundingClientRect();
612
+ M.value = {
611
613
  top: m.top,
612
614
  left: m.right,
613
615
  right: window.innerWidth - m.left
614
616
  };
615
617
  }
616
- function H(M) {
617
- const m = M.relatedTarget;
618
- m && u.value?.contains(m) || (w.value = !1);
618
+ function H(A) {
619
+ const m = A.relatedTarget;
620
+ m && u.value?.contains(m) || (y.value = !1);
619
621
  }
620
622
  function ee() {
621
- d.value = !0, _();
623
+ f.value = !0, _();
622
624
  }
623
625
  function W() {
624
626
  v.value = !0, _();
@@ -626,22 +628,22 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
626
628
  function R() {
627
629
  z !== null && clearTimeout(z), z = null, L = null;
628
630
  }
629
- function K(M) {
630
- M.button === 0 && (L = { x: M.clientX, y: M.clientY }, z = setTimeout(() => {
631
+ function K(A) {
632
+ A.button === 0 && (L = { x: A.clientX, y: A.clientY }, z = setTimeout(() => {
631
633
  L && a("menu", L), R();
632
634
  }, Ut));
633
635
  }
634
- function te(M) {
636
+ function te(A) {
635
637
  if (!L) return;
636
- (Math.abs(M.clientX - L.x) > pe || Math.abs(M.clientY - L.y) > pe) && R();
638
+ (Math.abs(A.clientX - L.x) > ge || Math.abs(A.clientY - L.y) > ge) && R();
637
639
  }
638
- function Ie(M) {
639
- M.button === 1 && h.value && (M.preventDefault(), a("close"));
640
+ function Oe(A) {
641
+ A.button === 1 && h.value && (A.preventDefault(), a("close"));
640
642
  }
641
- function Oe(M) {
642
- M.preventDefault(), a("menu", { x: M.clientX, y: M.clientY });
643
+ function Ve(A) {
644
+ A.preventDefault(), a("menu", { x: A.clientX, y: A.clientY });
643
645
  }
644
- return J(R), (M, m) => (l(), i("div", {
646
+ return J(R), (A, m) => (l(), i("div", {
645
647
  ref_key: "raiz",
646
648
  ref: c,
647
649
  class: p(["group relative flex shrink-0 cursor-pointer items-center gap-2 rounded-corner border border-ui-border transition-colors", [
@@ -650,54 +652,54 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
650
652
  ]]),
651
653
  role: "tab",
652
654
  "aria-selected": e.active,
653
- title: k.value,
655
+ title: w.value,
654
656
  "aria-label": P.value,
655
657
  tabindex: e.tabindex,
656
- onClick: m[5] || (m[5] = A((T) => a("select"), ["stop"])),
658
+ onClick: m[5] || (m[5] = S((I) => a("select"), ["stop"])),
657
659
  onKeydown: [
658
- m[6] || (m[6] = O(A((T) => a("select"), ["stop"]), ["enter"])),
659
- m[7] || (m[7] = O(A((T) => a("select"), ["prevent", "stop"]), ["space"])),
660
- m[8] || (m[8] = O(A((T) => a("navegar", "anterior"), ["prevent", "stop"]), ["left"])),
661
- m[9] || (m[9] = O(A((T) => a("navegar", "anterior"), ["prevent", "stop"]), ["up"])),
662
- m[10] || (m[10] = O(A((T) => a("navegar", "siguiente"), ["prevent", "stop"]), ["right"])),
663
- m[11] || (m[11] = O(A((T) => a("navegar", "siguiente"), ["prevent", "stop"]), ["down"])),
664
- m[12] || (m[12] = O(A((T) => a("navegar", "primera"), ["prevent", "stop"]), ["home"])),
665
- m[13] || (m[13] = O(A((T) => a("navegar", "ultima"), ["prevent", "stop"]), ["end"])),
666
- m[14] || (m[14] = O(A((T) => a("mover", -1), ["alt", "prevent", "stop"]), ["left"])),
667
- m[15] || (m[15] = O(A((T) => a("mover", -1), ["alt", "prevent", "stop"]), ["up"])),
668
- m[16] || (m[16] = O(A((T) => a("mover", 1), ["alt", "prevent", "stop"]), ["right"])),
669
- m[17] || (m[17] = O(A((T) => a("mover", 1), ["alt", "prevent", "stop"]), ["down"])),
670
- m[18] || (m[18] = O(A((T) => h.value && a("close"), ["prevent", "stop"]), ["delete"]))
660
+ m[6] || (m[6] = O(S((I) => a("select"), ["stop"]), ["enter"])),
661
+ m[7] || (m[7] = O(S((I) => a("select"), ["prevent", "stop"]), ["space"])),
662
+ m[8] || (m[8] = O(S((I) => a("navegar", "anterior"), ["prevent", "stop"]), ["left"])),
663
+ m[9] || (m[9] = O(S((I) => a("navegar", "anterior"), ["prevent", "stop"]), ["up"])),
664
+ m[10] || (m[10] = O(S((I) => a("navegar", "siguiente"), ["prevent", "stop"]), ["right"])),
665
+ m[11] || (m[11] = O(S((I) => a("navegar", "siguiente"), ["prevent", "stop"]), ["down"])),
666
+ m[12] || (m[12] = O(S((I) => a("navegar", "primera"), ["prevent", "stop"]), ["home"])),
667
+ m[13] || (m[13] = O(S((I) => a("navegar", "ultima"), ["prevent", "stop"]), ["end"])),
668
+ m[14] || (m[14] = O(S((I) => a("mover", -1), ["alt", "prevent", "stop"]), ["left"])),
669
+ m[15] || (m[15] = O(S((I) => a("mover", -1), ["alt", "prevent", "stop"]), ["up"])),
670
+ m[16] || (m[16] = O(S((I) => a("mover", 1), ["alt", "prevent", "stop"]), ["right"])),
671
+ m[17] || (m[17] = O(S((I) => a("mover", 1), ["alt", "prevent", "stop"]), ["down"])),
672
+ m[18] || (m[18] = O(S((I) => h.value && a("close"), ["prevent", "stop"]), ["delete"]))
671
673
  ],
672
- onAuxclick: A(Ie, ["stop"]),
673
- onContextmenu: Oe,
674
+ onAuxclick: S(Oe, ["stop"]),
675
+ onContextmenu: Ve,
674
676
  onPointerdown: K,
675
677
  onPointermove: te,
676
678
  onPointerup: R,
677
679
  onPointerleave: R,
678
680
  onMouseenter: ee,
679
- onMouseleave: m[19] || (m[19] = (T) => d.value = !1),
681
+ onMouseleave: m[19] || (m[19] = (I) => f.value = !1),
680
682
  onFocus: W,
681
- onBlur: m[20] || (m[20] = (T) => v.value = !1)
683
+ onBlur: m[20] || (m[20] = (I) => v.value = !1)
682
684
  }, [
683
685
  e.tab.icon ? (l(), G(N, {
684
686
  key: 0,
685
687
  name: e.tab.icon,
686
688
  size: 16,
687
689
  class: "shrink-0"
688
- }, null, 8, ["name"])) : V(o) ? (l(), i("span", Nt, S(F.value), 1)) : g("", !0),
689
- V(o) ? g("", !0) : (l(), i("span", Ft, S(e.tab.label), 1)),
690
+ }, null, 8, ["name"])) : V(o) ? (l(), i("span", Nt, T(F.value), 1)) : g("", !0),
691
+ V(o) ? g("", !0) : (l(), i("span", Ft, T(e.tab.label), 1)),
690
692
  r.value ? (l(), i("span", {
691
693
  key: 3,
692
694
  class: p(["size-2 shrink-0 rounded-full bg-current", V(o) ? "absolute right-0.5 top-0.5" : ""]),
693
695
  "aria-hidden": "true"
694
- }, null, 2)) : f.value && !V(o) ? (l(), i("button", {
696
+ }, null, 2)) : d.value && !V(o) ? (l(), i("button", {
695
697
  key: 4,
696
698
  type: "button",
697
699
  class: "flex size-4 shrink-0 items-center justify-center rounded-corner-sm hover:bg-ui-surface",
698
700
  title: e.closeLabel,
699
701
  "aria-label": `${e.closeLabel}: ${P.value}`,
700
- onClick: m[0] || (m[0] = A((T) => a("close"), ["stop"]))
702
+ onClick: m[0] || (m[0] = S((I) => a("close"), ["stop"]))
701
703
  }, [
702
704
  j(N, {
703
705
  name: "gtk-close",
@@ -705,8 +707,8 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
705
707
  size: 12
706
708
  })
707
709
  ], 8, Rt)) : g("", !0),
708
- (l(), G($e, { to: "body" }, [
709
- j(Ce, {
710
+ (l(), G(Ce, { to: "body" }, [
711
+ j(ze, {
710
712
  "enter-active-class": "transition duration-150 ease-out",
711
713
  "enter-from-class": "opacity-0 scale-95",
712
714
  "leave-active-class": "transition duration-100 ease-in",
@@ -719,12 +721,12 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
719
721
  ref_key: "desplegadoRef",
720
722
  ref: u,
721
723
  style: se(D.value),
722
- onMouseenter: m[2] || (m[2] = (T) => w.value = !0),
723
- onMouseleave: m[3] || (m[3] = (T) => w.value = !1),
724
- onFocusin: m[4] || (m[4] = (T) => w.value = !0),
724
+ onMouseenter: m[2] || (m[2] = (I) => y.value = !0),
725
+ onMouseleave: m[3] || (m[3] = (I) => y.value = !1),
726
+ onFocusin: m[4] || (m[4] = (I) => y.value = !0),
725
727
  onFocusout: H
726
728
  }, [
727
- C("span", Ht, S(e.tab.label), 1),
729
+ C("span", Ht, T(e.tab.label), 1),
728
730
  e.tab.dirty ? (l(), i("span", Wt)) : g("", !0),
729
731
  h.value ? (l(), i("button", {
730
732
  key: 1,
@@ -732,7 +734,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
732
734
  class: "flex size-4 shrink-0 items-center justify-center rounded-corner-sm hover:bg-ui-surface",
733
735
  title: e.closeLabel,
734
736
  "aria-label": `${e.closeLabel}: ${P.value}`,
735
- onClick: m[1] || (m[1] = A((T) => a("close"), ["stop"]))
737
+ onClick: m[1] || (m[1] = S((I) => a("close"), ["stop"]))
736
738
  }, [
737
739
  j(N, {
738
740
  name: "gtk-close",
@@ -759,48 +761,48 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
759
761
  },
760
762
  emits: ["update:modelValue", "select", "close", "new", "reorder", "menu"],
761
763
  setup(e, { emit: n }) {
762
- const t = e, a = n, { vertical: o } = Z(), s = $(null), c = $(0), u = $(null), d = $(null);
763
- function v(y) {
764
- a("update:modelValue", y), a("select", y);
764
+ const t = e, a = n, { vertical: o } = Z(), s = $(null), c = $(0), u = $(null), f = $(null);
765
+ function v(x) {
766
+ a("update:modelValue", x), a("select", x);
765
767
  }
766
- async function w(y, r) {
767
- const f = t.tabs.length - 1;
768
- if (f < 0) return;
769
- const b = r === "primera" ? 0 : r === "ultima" ? f : r === "anterior" ? (y - 1 + t.tabs.length) % t.tabs.length : (y + 1) % t.tabs.length;
768
+ async function y(x, r) {
769
+ const d = t.tabs.length - 1;
770
+ if (d < 0) return;
771
+ const b = r === "primera" ? 0 : r === "ultima" ? d : r === "anterior" ? (x - 1 + t.tabs.length) % t.tabs.length : (x + 1) % t.tabs.length;
770
772
  c.value = b, await ce(), s.value?.querySelectorAll('[role="tab"]')?.[b]?.focus();
771
773
  }
772
- function I(y, r) {
774
+ function M(x, r) {
773
775
  if (t.fixedOrder) return;
774
- const f = y + r;
775
- if (f < 0 || f >= t.tabs.length) return;
776
- const b = [...t.tabs], [D] = b.splice(y, 1);
777
- D && (b.splice(f, 0, D), c.value = f, a("reorder", b));
776
+ const d = x + r;
777
+ if (d < 0 || d >= t.tabs.length) return;
778
+ const b = [...t.tabs], [D] = b.splice(x, 1);
779
+ D && (b.splice(d, 0, D), c.value = d, a("reorder", b));
778
780
  }
779
- function z(y) {
781
+ function z(x) {
780
782
  const r = s.value;
781
783
  if (!r) return;
782
- const f = y.deltaY || y.deltaX || 0, b = o.value ? r.scrollTop : r.scrollLeft;
783
- o.value ? r.scrollTop += f : r.scrollLeft += f, (o.value ? r.scrollTop : r.scrollLeft) !== b && y.preventDefault();
784
+ const d = x.deltaY || x.deltaX || 0, b = o.value ? r.scrollTop : r.scrollLeft;
785
+ o.value ? r.scrollTop += d : r.scrollLeft += d, (o.value ? r.scrollTop : r.scrollLeft) !== b && x.preventDefault();
784
786
  }
785
- function L(y, r) {
786
- t.fixedOrder || (u.value = y, r.dataTransfer?.setData("text/plain", String(y)), r.dataTransfer && (r.dataTransfer.effectAllowed = "move"));
787
+ function L(x, r) {
788
+ t.fixedOrder || (u.value = x, r.dataTransfer?.setData("text/plain", String(x)), r.dataTransfer && (r.dataTransfer.effectAllowed = "move"));
787
789
  }
788
- function h(y, r) {
789
- t.fixedOrder || u.value === null || (r.preventDefault(), d.value = y, r.dataTransfer && (r.dataTransfer.dropEffect = "move"));
790
+ function h(x, r) {
791
+ t.fixedOrder || u.value === null || (r.preventDefault(), f.value = x, r.dataTransfer && (r.dataTransfer.dropEffect = "move"));
790
792
  }
791
- function k(y) {
793
+ function w(x) {
792
794
  const r = u.value;
793
- if (P(), t.fixedOrder || r === null || r === y) return;
794
- const f = [...t.tabs], [b] = f.splice(r, 1);
795
- b && (f.splice(y, 0, b), a("reorder", f));
795
+ if (P(), t.fixedOrder || r === null || r === x) return;
796
+ const d = [...t.tabs], [b] = d.splice(r, 1);
797
+ b && (d.splice(x, 0, b), a("reorder", d));
796
798
  }
797
799
  function P() {
798
- u.value = null, d.value = null;
800
+ u.value = null, f.value = null;
799
801
  }
800
- const F = x(
802
+ const F = k(
801
803
  () => o.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"
802
804
  );
803
- return (y, r) => (l(), i("div", {
805
+ return (x, r) => (l(), i("div", {
804
806
  class: p(["flex min-h-0 min-w-0 items-center gap-1", V(o) ? "w-full flex-col" : "h-full"]),
805
807
  role: "tablist",
806
808
  "aria-orientation": V(o) ? "vertical" : "horizontal"
@@ -811,29 +813,29 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
811
813
  class: p(F.value),
812
814
  onWheel: z
813
815
  }, [
814
- (l(!0), i(Y, null, ae(e.tabs, (f, b) => (l(), i("div", {
815
- key: f.id,
816
+ (l(!0), i(Y, null, ae(e.tabs, (d, b) => (l(), i("div", {
817
+ key: d.id,
816
818
  class: p(["transition-opacity", [
817
819
  u.value === b ? "opacity-40" : "",
818
- d.value === b && u.value !== b ? "ring-2 ring-secondary rounded-corner" : ""
820
+ f.value === b && u.value !== b ? "ring-2 ring-secondary rounded-corner" : ""
819
821
  ]]),
820
822
  draggable: !e.fixedOrder,
821
823
  onDragstart: (D) => L(b, D),
822
824
  onDragover: (D) => h(b, D),
823
- onDrop: A((D) => k(b), ["prevent"]),
825
+ onDrop: S((D) => w(b), ["prevent"]),
824
826
  onDragend: P
825
827
  }, [
826
- j(Me, {
827
- tab: f,
828
- active: f.id === e.modelValue,
828
+ j(Ae, {
829
+ tab: d,
830
+ active: d.id === e.modelValue,
829
831
  "close-label": e.closeLabel,
830
832
  "dirty-label": e.dirtyLabel,
831
833
  tabindex: b === c.value ? 0 : -1,
832
- onSelect: (D) => v(f.id),
833
- onClose: (D) => a("close", f.id),
834
- onMenu: (D) => a("menu", { id: f.id, ...D }),
835
- onNavegar: (D) => w(b, D),
836
- onMover: (D) => I(b, D)
834
+ onSelect: (D) => v(d.id),
835
+ onClose: (D) => a("close", d.id),
836
+ onMenu: (D) => a("menu", { id: d.id, ...D }),
837
+ onNavegar: (D) => y(b, D),
838
+ onMover: (D) => M(b, D)
837
839
  }, null, 8, ["tab", "active", "close-label", "dirty-label", "tabindex", "onSelect", "onClose", "onMenu", "onNavegar", "onMover"])
838
840
  ], 42, Gt))), 128))
839
841
  ], 34),
@@ -843,7 +845,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
843
845
  class: "flex size-7 shrink-0 items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 hover:bg-ui-surface/70",
844
846
  title: e.newLabel,
845
847
  "aria-label": e.newLabel,
846
- onClick: r[0] || (r[0] = (f) => a("new"))
848
+ onClick: r[0] || (r[0] = (d) => a("new"))
847
849
  }, [
848
850
  j(N, {
849
851
  name: "gtk-add",
@@ -863,34 +865,34 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
863
865
  },
864
866
  emits: ["update:modelValue", "search", "open", "close"],
865
867
  setup(e, { emit: n }) {
866
- const t = e, a = n, { vertical: o, posicion: s } = Z(), c = $(!1), u = $(null), d = x(() => o.value || t.collapsed), v = x(() => !d.value || c.value), w = x(() => {
867
- if (!d.value) return "";
868
- const k = "absolute z-40 w-64 rounded-corner border border-ui-border bg-ui-surface/95 p-1 shadow-lg";
869
- return s.value === "left" ? `${k} left-full top-0 ml-1` : s.value === "right" ? `${k} right-full top-0 mr-1` : s.value === "bottom" ? `${k} bottom-full right-0 mb-1` : `${k} top-full right-0 mt-1`;
868
+ const t = e, a = n, { vertical: o, posicion: s } = Z(), c = $(!1), u = $(null), f = k(() => o.value || t.collapsed), v = k(() => !f.value || c.value), y = k(() => {
869
+ if (!f.value) return "";
870
+ const w = "absolute z-40 w-64 rounded-corner border border-ui-border bg-ui-surface/95 p-1 shadow-lg";
871
+ return s.value === "left" ? `${w} left-full top-0 ml-1` : s.value === "right" ? `${w} right-full top-0 mr-1` : s.value === "bottom" ? `${w} bottom-full right-0 mb-1` : `${w} top-full right-0 mt-1`;
870
872
  });
871
- async function I() {
873
+ async function M() {
872
874
  c.value = !0, a("open"), await ce(), u.value?.focus();
873
875
  }
874
876
  function z() {
875
877
  c.value && (c.value = !1, a("close"));
876
878
  }
877
- function L(k) {
878
- a("update:modelValue", k.target.value);
879
+ function L(w) {
880
+ a("update:modelValue", w.target.value);
879
881
  }
880
882
  function h() {
881
883
  a("search", t.modelValue);
882
884
  }
883
- return (k, P) => (l(), i("div", Xt, [
884
- d.value ? (l(), i("button", {
885
+ return (w, P) => (l(), i("div", Xt, [
886
+ f.value ? (l(), i("button", {
885
887
  key: 0,
886
888
  type: "button",
887
889
  class: "flex size-7 items-center justify-center rounded-corner border border-ui-border bg-ui-bg/80 hover:bg-ui-surface/70",
888
890
  title: e.label,
889
891
  "aria-label": e.label,
890
892
  "aria-expanded": c.value,
891
- onMousedown: P[0] || (P[0] = A(() => {
893
+ onMousedown: P[0] || (P[0] = S(() => {
892
894
  }, ["prevent"])),
893
- onClick: P[1] || (P[1] = (F) => c.value ? z() : I())
895
+ onClick: P[1] || (P[1] = (F) => c.value ? z() : M())
894
896
  }, [
895
897
  j(N, {
896
898
  name: "system-search",
@@ -900,13 +902,13 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
900
902
  ], 40, Jt)) : g("", !0),
901
903
  v.value ? (l(), i("div", {
902
904
  key: 1,
903
- class: p(w.value)
905
+ class: p(y.value)
904
906
  }, [
905
907
  C("input", {
906
908
  ref_key: "campo",
907
909
  ref: u,
908
910
  type: "search",
909
- class: p(["w-full rounded-corner border border-ui-border bg-ui-bg/80 px-2 py-1 text-sm outline-none focus:border-ui-border-strong", d.value ? "" : "w-48"]),
911
+ class: p(["w-full rounded-corner border border-ui-border bg-ui-bg/80 px-2 py-1 text-sm outline-none focus:border-ui-border-strong", f.value ? "" : "w-48"]),
910
912
  value: e.modelValue,
911
913
  placeholder: e.placeholder || e.label,
912
914
  "aria-label": e.label,
@@ -953,7 +955,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
953
955
  }, c = (u) => {
954
956
  t.stopPropagation && u.stopPropagation(), t.preventDefault && u.preventDefault(), !t.disabled && !t.loading && a("click");
955
957
  };
956
- return (u, d) => (l(), i("button", {
958
+ return (u, f) => (l(), i("button", {
957
959
  type: t.type,
958
960
  onClick: c,
959
961
  class: p(["rounded-corner transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2", [
@@ -972,7 +974,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
972
974
  alt: t.iconAlt || t.label,
973
975
  class: "w-4 h-4"
974
976
  }, null, 8, aa)) : g("", !0),
975
- t.label ? (l(), i("span", na, S(t.label), 1)) : g("", !0),
977
+ t.label ? (l(), i("span", na, T(t.label), 1)) : g("", !0),
976
978
  t.iconSrc && t.iconRight ? (l(), i("img", {
977
979
  key: 3,
978
980
  src: t.iconSrc,
@@ -997,7 +999,7 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
997
999
  return (n, t) => (l(), i("div", {
998
1000
  class: p(["flex flex-col gap-4 p-4 background rounded-corner", e.customClass])
999
1001
  }, [
1000
- C("h3", sa, S(e.icon ? `${e.icon} ${e.title}` : e.title), 1),
1002
+ C("h3", sa, T(e.icon ? `${e.icon} ${e.title}` : e.title), 1),
1001
1003
  B(n.$slots, "default", {}, void 0, !0)
1002
1004
  ], 2));
1003
1005
  }
@@ -1046,25 +1048,25 @@ const At = ["title", "aria-label"], St = ["title", "aria-label"], Tt = ["title",
1046
1048
  class: "h-7 w-7 shrink-0"
1047
1049
  }, null, 8, da),
1048
1050
  C("div", fa, [
1049
- C("div", ma, S(e.title), 1),
1050
- e.subtitle ? (l(), i("div", ba, S(e.subtitle), 1)) : g("", !0),
1051
- e.metadata ? (l(), i("div", va, S(e.metadata), 1)) : g("", !0),
1051
+ C("div", ma, T(e.title), 1),
1052
+ e.subtitle ? (l(), i("div", ba, T(e.subtitle), 1)) : g("", !0),
1053
+ e.metadata ? (l(), i("div", va, T(e.metadata), 1)) : g("", !0),
1052
1054
  e.extraInfo && e.extraInfo.length > 0 ? (l(), i("div", pa, [
1053
- (l(!0), i(Y, null, ae(e.extraInfo, (u, d) => (l(), i("span", { key: d }, S(u), 1))), 128))
1055
+ (l(!0), i(Y, null, ae(e.extraInfo, (u, f) => (l(), i("span", { key: f }, T(u), 1))), 128))
1054
1056
  ])) : g("", !0)
1055
1057
  ])
1056
1058
  ]),
1057
1059
  e.showActionButton ? (l(), i("button", {
1058
1060
  key: 0,
1059
1061
  class: "bg-vsk-primary rounded-vsk px-4 py-2 text-sm font-semibold cursor-pointer hover:opacity-70",
1060
- onClick: A(a, ["stop"])
1061
- }, S(e.actionLabel), 1)) : g("", !0),
1062
+ onClick: S(a, ["stop"])
1063
+ }, T(e.actionLabel), 1)) : g("", !0),
1062
1064
  e.showStatusIndicator && e.isConnected ? (l(), i("div", ga)) : g("", !0)
1063
1065
  ], 2));
1064
1066
  }
1065
- }), Ae = /* @__PURE__ */ Symbol("menú de vasak");
1067
+ }), Se = /* @__PURE__ */ Symbol("menú de vasak");
1066
1068
  function oe() {
1067
- const e = xe(Ae, null);
1069
+ const e = ke(Se, null);
1068
1070
  if (e) return e;
1069
1071
  const n = $(!1);
1070
1072
  return {
@@ -1088,9 +1090,9 @@ function oe() {
1088
1090
  }
1089
1091
  };
1090
1092
  }
1091
- let he = 0;
1092
- function Se() {
1093
- return he += 1, `vsk-menu-${he}`;
1093
+ let ye = 0;
1094
+ function Te() {
1095
+ return ye += 1, `vsk-menu-${ye}`;
1094
1096
  }
1095
1097
  const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1096
1098
  __name: "DropdownMenu",
@@ -1099,39 +1101,39 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1099
1101
  },
1100
1102
  emits: ["update:open"],
1101
1103
  setup(e, { emit: n }) {
1102
- const t = e, a = n, o = $(!1), s = $(null), c = $(null), u = $("ninguno"), d = Se();
1104
+ const t = e, a = n, o = $(!1), s = $(null), c = $(null), u = $("ninguno"), f = Te();
1103
1105
  let v = null;
1104
- const w = x({
1106
+ const y = k({
1105
1107
  get: () => t.open ?? o.value,
1106
1108
  set: (h) => {
1107
1109
  t.open === void 0 && (o.value = h), a("update:open", h);
1108
1110
  }
1109
1111
  });
1110
- X(w, (h) => {
1112
+ X(y, (h) => {
1111
1113
  if (h) {
1112
- const k = document.activeElement;
1113
- v = k instanceof HTMLElement ? k : null;
1114
+ const w = document.activeElement;
1115
+ v = w instanceof HTMLElement ? w : null;
1114
1116
  } else
1115
1117
  u.value = "ninguno";
1116
1118
  });
1117
- function I(h = "ninguno") {
1118
- u.value = h, w.value = !0;
1119
+ function M(h = "ninguno") {
1120
+ u.value = h, y.value = !0;
1119
1121
  }
1120
1122
  function z(h = {}) {
1121
- if (w.value = !1, !h.devolverElFoco) return;
1122
- const k = v ?? s.value;
1123
- k?.isConnected && k.focus();
1123
+ if (y.value = !1, !h.devolverElFoco) return;
1124
+ const w = v ?? s.value;
1125
+ w?.isConnected && w.focus();
1124
1126
  }
1125
1127
  function L(h = "ninguno") {
1126
- if (w.value) {
1128
+ if (y.value) {
1127
1129
  z({ devolverElFoco: !0 });
1128
1130
  return;
1129
1131
  }
1130
- I(h);
1132
+ M(h);
1131
1133
  }
1132
- return ue(Ae, {
1133
- abierto: w,
1134
- idDelMenu: d,
1134
+ return ue(Se, {
1135
+ abierto: y,
1136
+ idDelMenu: f,
1135
1137
  idDeLaEtiqueta: c,
1136
1138
  ponerLaEtiqueta: (h) => {
1137
1139
  c.value = h;
@@ -1141,10 +1143,10 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1141
1143
  s.value = h;
1142
1144
  },
1143
1145
  focoAlAbrir: u,
1144
- abrir: I,
1146
+ abrir: M,
1145
1147
  cerrar: z,
1146
1148
  alternar: L
1147
- }), (h, k) => (l(), i("div", ya, [
1149
+ }), (h, w) => (l(), i("div", ya, [
1148
1150
  B(h.$slots, "default")
1149
1151
  ]));
1150
1152
  }
@@ -1160,7 +1162,7 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1160
1162
  sideOffset: { default: 4 }
1161
1163
  },
1162
1164
  setup(e) {
1163
- const n = e, t = oe(), { idDelMenu: a, idDeLaEtiqueta: o } = t, s = x(() => t.disparador.value), c = x(() => t.abierto.value), u = $(null), d = $({
1165
+ const n = e, t = oe(), { idDelMenu: a, idDeLaEtiqueta: o } = t, s = k(() => t.disparador.value), c = k(() => t.abierto.value), u = $(null), f = $({
1164
1166
  top: 0,
1165
1167
  left: 0,
1166
1168
  techo: null
@@ -1170,28 +1172,28 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1170
1172
  left: "right",
1171
1173
  right: "left"
1172
1174
  };
1173
- function w(r, f) {
1175
+ function y(r, d) {
1174
1176
  const b = n.sideOffset + q;
1175
1177
  switch (r) {
1176
1178
  case "bottom":
1177
- return window.innerHeight - f.bottom - b;
1179
+ return window.innerHeight - d.bottom - b;
1178
1180
  case "top":
1179
- return f.top - b;
1181
+ return d.top - b;
1180
1182
  case "right":
1181
- return window.innerWidth - f.right - b;
1183
+ return window.innerWidth - d.right - b;
1182
1184
  case "left":
1183
- return f.left - b;
1185
+ return d.left - b;
1184
1186
  }
1185
1187
  }
1186
- function I(r, f, b) {
1187
- return b < f ? f : Math.min(Math.max(r, f), b);
1188
+ function M(r, d, b) {
1189
+ return b < d ? d : Math.min(Math.max(r, d), b);
1188
1190
  }
1189
1191
  function z() {
1190
1192
  if (!s.value || !u.value) return;
1191
- const r = s.value.getBoundingClientRect(), f = u.value.scrollHeight, b = u.value.offsetWidth, D = n.side === "top" || n.side === "bottom", _ = D ? f : b;
1193
+ const r = s.value.getBoundingClientRect(), d = u.value.scrollHeight, b = u.value.offsetWidth, D = n.side === "top" || n.side === "bottom", _ = D ? d : b;
1192
1194
  let H = n.side;
1193
- const ee = w(H, r);
1194
- ee < _ && w(v[H], r) > ee && (H = v[H]);
1195
+ const ee = y(H, r);
1196
+ ee < _ && y(v[H], r) > ee && (H = v[H]);
1195
1197
  let W = 0, R = 0, K = null;
1196
1198
  switch (H) {
1197
1199
  case "bottom": {
@@ -1199,14 +1201,14 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1199
1201
  break;
1200
1202
  }
1201
1203
  case "top": {
1202
- K = Math.max(w("top", r), 0), W = r.top - n.sideOffset - Math.min(f, K);
1204
+ K = Math.max(y("top", r), 0), W = r.top - n.sideOffset - Math.min(d, K);
1203
1205
  break;
1204
1206
  }
1205
1207
  case "left":
1206
1208
  case "right": {
1207
1209
  R = H === "right" ? r.right + n.sideOffset : r.left - b - n.sideOffset;
1208
1210
  const te = window.innerHeight - 2 * q;
1209
- W = I(r.top, q, window.innerHeight - Math.min(f, te) - q), K = Math.max(window.innerHeight - W - q, 0);
1211
+ W = M(r.top, q, window.innerHeight - Math.min(d, te) - q), K = Math.max(window.innerHeight - W - q, 0);
1210
1212
  break;
1211
1213
  }
1212
1214
  }
@@ -1222,29 +1224,29 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1222
1224
  R = r.right - b;
1223
1225
  break;
1224
1226
  }
1225
- R = I(R, q, window.innerWidth - b - q), d.value = { top: W, left: R, techo: K };
1227
+ R = M(R, q, window.innerWidth - b - q), f.value = { top: W, left: R, techo: K };
1226
1228
  }
1227
1229
  function L() {
1228
1230
  return u.value ? Array.from(u.value.querySelectorAll('[role="menuitem"]')) : [];
1229
1231
  }
1230
1232
  function h(r) {
1231
- const f = L();
1232
- if (!f.length) return;
1233
- const b = f.length;
1234
- f[(r % b + b) % b]?.focus();
1233
+ const d = L();
1234
+ if (!d.length) return;
1235
+ const b = d.length;
1236
+ d[(r % b + b) % b]?.focus();
1235
1237
  }
1236
- function k() {
1238
+ function w() {
1237
1239
  const r = document.activeElement;
1238
1240
  return r instanceof HTMLElement ? L().indexOf(r) : -1;
1239
1241
  }
1240
1242
  function P(r) {
1241
- const f = k();
1243
+ const d = w();
1242
1244
  switch (r.key) {
1243
1245
  case "ArrowDown":
1244
- r.preventDefault(), h(f + 1);
1246
+ r.preventDefault(), h(d + 1);
1245
1247
  break;
1246
1248
  case "ArrowUp":
1247
- r.preventDefault(), h(f <= 0 ? -1 : f - 1);
1249
+ r.preventDefault(), h(d <= 0 ? -1 : d - 1);
1248
1250
  break;
1249
1251
  case "Home":
1250
1252
  r.preventDefault(), h(0);
@@ -1281,25 +1283,25 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1281
1283
  function F(r) {
1282
1284
  c.value && (r && u.value?.contains(r.target) || z());
1283
1285
  }
1284
- function y(r) {
1285
- const f = r.target, b = !!f.closest("[dropdown-content]"), D = !!s.value?.contains(f);
1286
+ function x(r) {
1287
+ const d = r.target, b = !!d.closest("[data-dropdown-content]"), D = !!s.value?.contains(d);
1286
1288
  !b && !D && t.cerrar();
1287
1289
  }
1288
1290
  return Q(() => {
1289
- document.addEventListener("click", y), window.addEventListener("resize", F), window.addEventListener("scroll", F, !0);
1291
+ document.addEventListener("click", x), window.addEventListener("resize", F), window.addEventListener("scroll", F, !0);
1290
1292
  }), J(() => {
1291
- document.removeEventListener("click", y), window.removeEventListener("resize", F), window.removeEventListener("scroll", F, !0);
1292
- }), (r, f) => (l(), G($e, { to: "body" }, [
1293
- j(Ce, {
1293
+ document.removeEventListener("click", x), window.removeEventListener("resize", F), window.removeEventListener("scroll", F, !0);
1294
+ }), (r, d) => (l(), G(Ce, { to: "body" }, [
1295
+ j(ze, {
1294
1296
  "enter-active-class": "transition-all duration-150 ease-in-out",
1295
1297
  "leave-active-class": "transition-all duration-150 ease-in-out",
1296
1298
  "enter-from-class": "opacity-0 scale-95",
1297
1299
  "leave-to-class": "opacity-0 scale-95",
1298
- onEnter: f[1] || (f[1] = (b) => b.offsetHeight),
1299
- onLeave: f[2] || (f[2] = (b) => b.offsetHeight)
1300
+ onEnter: d[1] || (d[1] = (b) => b.offsetHeight),
1301
+ onLeave: d[2] || (d[2] = (b) => b.offsetHeight)
1300
1302
  }, {
1301
1303
  default: U(() => [
1302
- ye(C("div", ne({
1304
+ xe(C("div", ne({
1303
1305
  ref_key: "contenido",
1304
1306
  ref: u
1305
1307
  }, r.$attrs, {
@@ -1311,16 +1313,16 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1311
1313
  inert: !c.value,
1312
1314
  style: {
1313
1315
  position: "fixed",
1314
- top: `${d.value.top}px`,
1315
- left: `${d.value.left}px`,
1316
- maxHeight: d.value.techo === null ? void 0 : `${d.value.techo}px`,
1316
+ top: `${f.value.top}px`,
1317
+ left: `${f.value.left}px`,
1318
+ maxHeight: f.value.techo === null ? void 0 : `${f.value.techo}px`,
1317
1319
  overflowY: "auto",
1318
1320
  overscrollBehavior: "contain",
1319
1321
  zIndex: 50
1320
1322
  },
1321
- "dropdown-content": "",
1323
+ "data-dropdown-content": "",
1322
1324
  class: "min-w-30 rounded-corner border border-primary bg-ui-bg/80 shadow-lg focus:outline-none",
1323
- onClick: f[0] || (f[0] = (b) => b.stopPropagation()),
1325
+ onClick: d[0] || (d[0] = (b) => b.stopPropagation()),
1324
1326
  onKeydown: P
1325
1327
  }), [
1326
1328
  C("div", wa, [
@@ -1358,8 +1360,8 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1358
1360
  ]),
1359
1361
  onClick: s,
1360
1362
  onKeydown: [
1361
- O(A(s, ["prevent"]), ["enter"]),
1362
- O(A(s, ["prevent"]), ["space"])
1363
+ O(S(s, ["prevent"]), ["enter"]),
1364
+ O(S(s, ["prevent"]), ["space"])
1363
1365
  ]
1364
1366
  }, [
1365
1367
  B(c.$slots, "default")
@@ -1368,7 +1370,7 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1368
1370
  }), La = /* @__PURE__ */ E({
1369
1371
  __name: "DropdownMenuLabel",
1370
1372
  setup(e) {
1371
- const n = oe(), t = `${Se()}-titulo`;
1373
+ const n = oe(), t = `${Te()}-titulo`;
1372
1374
  return Q(() => {
1373
1375
  n.ponerLaEtiqueta(t);
1374
1376
  }), J(() => {
@@ -1391,13 +1393,13 @@ const ya = { class: "relative inline-block" }, xa = /* @__PURE__ */ E({
1391
1393
  return (n, t) => (l(), i("div", Ea));
1392
1394
  }
1393
1395
  });
1394
- function Te(e) {
1396
+ function Ie(e) {
1395
1397
  const n = e.filter(
1396
1398
  (a) => a.type !== Ye && !(a.type === Qe && typeof a.children == "string" && !a.children.trim())
1397
1399
  );
1398
1400
  if (n.length !== 1) return null;
1399
1401
  const t = n[0];
1400
- return t.type === Y && Array.isArray(t.children) ? Te(t.children) : t;
1402
+ return t.type === Y && Array.isArray(t.children) ? Ie(t.children) : t;
1401
1403
  }
1402
1404
  function Ba(e) {
1403
1405
  if (e instanceof HTMLElement) return e;
@@ -1421,28 +1423,28 @@ const Ma = E({
1421
1423
  function c() {
1422
1424
  e.disabled || (s(), a.alternar());
1423
1425
  }
1424
- function u(d) {
1426
+ function u(f) {
1425
1427
  if (!e.disabled)
1426
- switch (d.key) {
1428
+ switch (f.key) {
1427
1429
  case "Enter":
1428
1430
  case " ":
1429
- d.preventDefault(), s(), a.alternar("primero");
1431
+ f.preventDefault(), s(), a.alternar("primero");
1430
1432
  break;
1431
1433
  case "ArrowDown":
1432
- d.preventDefault(), s(), a.abrir("primero");
1434
+ f.preventDefault(), s(), a.abrir("primero");
1433
1435
  break;
1434
1436
  case "ArrowUp":
1435
- d.preventDefault(), s(), a.abrir("ultimo");
1437
+ f.preventDefault(), s(), a.abrir("ultimo");
1436
1438
  break;
1437
1439
  case "Escape":
1438
- a.abierto.value && (d.preventDefault(), a.cerrar({ devolverElFoco: !0 }));
1440
+ a.abierto.value && (f.preventDefault(), a.cerrar({ devolverElFoco: !0 }));
1439
1441
  break;
1440
1442
  }
1441
1443
  }
1442
1444
  return () => {
1443
- const d = {
1444
- ref: (w) => {
1445
- o.value = w, s();
1445
+ const f = {
1446
+ ref: (y) => {
1447
+ o.value = y, s();
1446
1448
  },
1447
1449
  "aria-haspopup": "menu",
1448
1450
  "aria-expanded": a.abierto.value ? "true" : "false",
@@ -1454,12 +1456,12 @@ const Ma = E({
1454
1456
  onKeydown: u
1455
1457
  }, v = n.default?.() ?? [];
1456
1458
  if (e.asChild) {
1457
- const w = Te(v);
1458
- if (w) return Ke(w, { ...t, ...d });
1459
+ const y = Ie(v);
1460
+ if (y) return Ke(y, { ...t, ...f });
1459
1461
  }
1460
1462
  return Ge(
1461
1463
  "div",
1462
- { ...t, class: ["dropdown-menu-trigger inline-block", t.class], ...d },
1464
+ { ...t, class: ["dropdown-menu-trigger inline-block", t.class], ...f },
1463
1465
  v
1464
1466
  );
1465
1467
  };
@@ -1480,7 +1482,7 @@ const Ma = E({
1480
1482
  key: 0,
1481
1483
  for: e.htmlFor,
1482
1484
  class: p(["text-sm font-medium text-primary dark:text-primary-dark", e.labelClass])
1483
- }, S(e.label), 11, Aa)) : g("", !0),
1485
+ }, T(e.label), 11, Aa)) : g("", !0),
1484
1486
  B(n.$slots, "default", {}, void 0, !0)
1485
1487
  ], 2));
1486
1488
  }
@@ -1526,17 +1528,17 @@ const Ma = E({
1526
1528
  },
1527
1529
  emits: ["update:modelValue", "buttonClick"],
1528
1530
  setup(e, { emit: n }) {
1529
- const t = e, a = n, o = x(() => {
1531
+ const t = e, a = n, o = k(() => {
1530
1532
  if (t.max <= t.min) return 0;
1531
- const d = t.max - t.min, v = t.modelValue - t.min;
1532
- return Math.round(v / d * 100);
1533
- }), s = x(() => t.getPercentageClass ? t.getPercentageClass(o.value) : ""), c = (d) => {
1534
- const v = d.target;
1533
+ const f = t.max - t.min, v = t.modelValue - t.min;
1534
+ return Math.round(v / f * 100);
1535
+ }), s = k(() => t.getPercentageClass ? t.getPercentageClass(o.value) : ""), c = (f) => {
1536
+ const v = f.target;
1535
1537
  a("update:modelValue", Number(v.value));
1536
1538
  }, u = () => {
1537
1539
  a("buttonClick");
1538
1540
  };
1539
- return (d, v) => (l(), i("div", Va, [
1541
+ return (f, v) => (l(), i("div", Va, [
1540
1542
  e.showButton ? (l(), i("button", {
1541
1543
  key: 0,
1542
1544
  onClick: u,
@@ -1565,7 +1567,7 @@ const Ma = E({
1565
1567
  }, null, 40, Fa),
1566
1568
  C("span", {
1567
1569
  class: p(["w-12 text-right transition-all duration-200 font-medium", s.value])
1568
- }, S(o.value) + "% ", 3)
1570
+ }, T(o.value) + "% ", 3)
1569
1571
  ]));
1570
1572
  }
1571
1573
  }), Ha = ["disabled"], Wa = /* @__PURE__ */ E({
@@ -1676,7 +1678,7 @@ const Ma = E({
1676
1678
  alt: e.alt,
1677
1679
  class: p(["m-auto h-5.5 w-auto transition-all duration-300", e.iconClass])
1678
1680
  }, null, 10, Ya),
1679
- e.badge !== null && e.badge > 0 ? (l(), i("div", Qa, S(e.badge), 1)) : g("", !0),
1681
+ e.badge !== null && e.badge > 0 ? (l(), i("div", Qa, T(e.badge), 1)) : g("", !0),
1680
1682
  e.showCustomTooltip && e.customTooltipText ? (l(), i("div", {
1681
1683
  key: 1,
1682
1684
  class: p(["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", [
@@ -1686,21 +1688,21 @@ const Ma = E({
1686
1688
  "opacity-100 translate-y-0": a.value
1687
1689
  }
1688
1690
  ]])
1689
- }, S(e.customTooltipText), 3)) : g("", !0),
1691
+ }, T(e.customTooltipText), 3)) : g("", !0),
1690
1692
  B(s.$slots, "default")
1691
1693
  ], 42, Ga));
1692
1694
  }
1693
1695
  }), Ja = [
1694
1696
  yt,
1697
+ Ee,
1695
1698
  Le,
1696
- ze,
1697
1699
  Ct,
1698
1700
  N,
1699
1701
  jt,
1702
+ Me,
1700
1703
  Be,
1701
- De,
1702
1704
  Qt,
1703
- Me,
1705
+ Ae,
1704
1706
  _t,
1705
1707
  ia,
1706
1708
  ua,
@@ -1726,9 +1728,9 @@ const Ma = E({
1726
1728
  };
1727
1729
  export {
1728
1730
  ia as ActionButton,
1729
- Be as AppBar,
1731
+ Me as AppBar,
1730
1732
  _t as BarSearch,
1731
- Ae as CLAVE_DEL_MENU,
1733
+ Se as CLAVE_DEL_MENU,
1732
1734
  de as CLAVE_DE_LA_BARRA,
1733
1735
  ua as ConfigSection,
1734
1736
  ha as DeviceCard,
@@ -1744,16 +1746,16 @@ export {
1744
1746
  zt as POSICIONES,
1745
1747
  Ct as SelectField,
1746
1748
  yt as SideBar,
1747
- Le as SideButton,
1748
- ze as SideGroup,
1749
+ Ee as SideButton,
1750
+ Le as SideGroup,
1749
1751
  Ra as SliderControl,
1750
1752
  Wa as SwitchToggle,
1751
1753
  Qt as TabBar,
1752
- Me as TabItem,
1754
+ Ae as TabItem,
1753
1755
  N as ThemeIcon,
1754
1756
  Ka as ToggleControl,
1755
1757
  Xa as TrayIconButton,
1756
- De as WindowControls,
1758
+ Be as WindowControls,
1757
1759
  jt as WindowFrame,
1758
1760
  an as default,
1759
1761
  Lt as esPosicion,