@codemonster-ru/vueforge-core 1.4.0 → 1.5.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,10 +1,10 @@
1
- import { resolveThemeConfig as Le, applyThemeConfig as Se, resolveTheme as Me, DEFAULT_STORAGE_KEY as ze, DEFAULT_ATTRIBUTE as Pe, isThemeMode as Ne, vfMotionDurationsMs as U } from "@codemonster-ru/vueforge-theme";
2
- import { createThemePreset as Wn } from "@codemonster-ru/vueforge-theme";
1
+ import { resolveThemeConfig as Le, applyThemeConfig as Se, resolveTheme as ze, DEFAULT_STORAGE_KEY as Me, DEFAULT_ATTRIBUTE as Pe, isThemeMode as Ne, vfMotionDurationsMs as Y } from "@codemonster-ru/vueforge-theme";
2
+ import { createThemePreset as Xn } from "@codemonster-ru/vueforge-theme";
3
3
  import { defaultThemePreset as Fe } from "./theme-api.js";
4
- import { defineComponent as L, inject as we, computed as s, ref as D, watch as Z, onMounted as ce, onBeforeUnmount as ee, provide as Re, renderSlot as E, toValue as K, nextTick as ae, openBlock as d, createElementBlock as h, createElementVNode as T, unref as y, toDisplayString as F, normalizeClass as P, createVNode as j, Transition as ne, withCtx as Q, createCommentVNode as O, useAttrs as R, mergeProps as H, createTextVNode as oe, normalizeStyle as W, useSlots as Te, createBlock as q, Teleport as le, resolveDynamicComponent as re, normalizeProps as Ve, guardReactiveProps as Ce, resolveComponent as He, Fragment as ue, renderList as de } from "vue";
4
+ import { defineComponent as L, inject as we, computed as s, ref as D, watch as ee, onMounted as ce, onBeforeUnmount as te, provide as Re, renderSlot as B, toValue as K, nextTick as oe, openBlock as d, createElementBlock as _, createElementVNode as T, unref as p, toDisplayString as N, normalizeClass as P, createVNode as j, Transition as ne, withCtx as G, createCommentVNode as O, useAttrs as R, mergeProps as H, createTextVNode as ae, normalizeStyle as W, useSlots as Te, createBlock as q, Teleport as le, resolveDynamicComponent as re, normalizeProps as Ve, guardReactiveProps as Ce, resolveComponent as He, Fragment as ue, renderList as de } from "vue";
5
5
  import { d as xe } from "./useScrollLock-FYdn9vRp.js";
6
- import { t as Yn, a as Xn, u as Gn, b as Qn, c as Jn, v as Zn } from "./useScrollLock-FYdn9vRp.js";
7
- import { VueIconify as te, icons as X } from "@codemonster-ru/vueiconify";
6
+ import { t as Qn, a as Jn, u as Zn, b as ea, c as ta, v as na } from "./useScrollLock-FYdn9vRp.js";
7
+ import { VueIconify as Z, icons as U } from "@codemonster-ru/vueiconify";
8
8
  import { autoUpdate as Ke, computePosition as je, offset as ve, flip as pe, shift as me, arrow as he } from "@codemonster-ru/floater.js";
9
9
  const Be = Symbol("VueForgeConfig");
10
10
  function qe(t = {}) {
@@ -13,10 +13,10 @@ function qe(t = {}) {
13
13
  preset: t.preset ?? Fe
14
14
  });
15
15
  }
16
- function We(t, n) {
16
+ function Ue(t, n) {
17
17
  return Se(t, n);
18
18
  }
19
- function Ue() {
19
+ function We() {
20
20
  return {
21
21
  install(n, e = {}) {
22
22
  const i = qe(e.theme);
@@ -27,11 +27,11 @@ function Ue() {
27
27
  storageKey: e.themeStorageKey,
28
28
  attribute: e.themeAttribute
29
29
  }
30
- }), typeof document < "u" && We(i);
30
+ }), typeof document < "u" && Ue(i);
31
31
  }
32
32
  };
33
33
  }
34
- const bn = Ue(), Ee = Symbol("VfThemeContext"), $n = /* @__PURE__ */ L({
34
+ const Tn = We(), Ee = Symbol("VfThemeContext"), Vn = /* @__PURE__ */ L({
35
35
  __name: "VfThemeProvider",
36
36
  props: {
37
37
  defaultTheme: {},
@@ -42,17 +42,17 @@ const bn = Ue(), Ee = Symbol("VfThemeContext"), $n = /* @__PURE__ */ L({
42
42
  const n = t, e = we(Be, null), i = s(
43
43
  () => n.defaultTheme ?? (e == null ? void 0 : e.themeMode.defaultTheme) ?? "system"
44
44
  ), l = D(i.value), r = D("light"), u = D(null), v = s(
45
- () => Me(l.value, r.value)
46
- ), _ = s(
47
- () => n.storageKey ?? (e == null ? void 0 : e.themeMode.storageKey) ?? (e == null ? void 0 : e.theme.options.storageKey) ?? ze
48
- ), b = s(
45
+ () => ze(l.value, r.value)
46
+ ), y = s(
47
+ () => n.storageKey ?? (e == null ? void 0 : e.themeMode.storageKey) ?? (e == null ? void 0 : e.theme.options.storageKey) ?? Me
48
+ ), g = s(
49
49
  () => n.attribute ?? (e == null ? void 0 : e.themeMode.attribute) ?? (e == null ? void 0 : e.theme.options.attribute) ?? Pe
50
- ), p = D(!1);
50
+ ), m = D(!1);
51
51
  let C = null;
52
52
  function x() {
53
53
  if (typeof window > "u")
54
54
  return;
55
- const f = window.localStorage.getItem(_.value);
55
+ const f = window.localStorage.getItem(y.value);
56
56
  Ne(f) && (l.value = f);
57
57
  }
58
58
  function w() {
@@ -61,9 +61,9 @@ const bn = Ue(), Ee = Symbol("VfThemeContext"), $n = /* @__PURE__ */ L({
61
61
  function S(f, a = {}) {
62
62
  if (typeof document > "u")
63
63
  return;
64
- const m = document.documentElement;
65
- a.animate && (w(), m.classList.add("vf-theme-transitioning")), m.setAttribute(b.value, f), a.animate && (C = window.setTimeout(() => {
66
- m.classList.remove("vf-theme-transitioning"), C = null;
64
+ const h = document.documentElement;
65
+ a.animate && (w(), h.classList.add("vf-theme-transitioning")), h.setAttribute(g.value, f), a.animate && (C = window.setTimeout(() => {
66
+ h.classList.remove("vf-theme-transitioning"), C = null;
67
67
  }, 320));
68
68
  }
69
69
  function I(f) {
@@ -74,32 +74,32 @@ const bn = Ue(), Ee = Symbol("VfThemeContext"), $n = /* @__PURE__ */ L({
74
74
  }
75
75
  r.value = (a = u.value) != null && a.matches ? "dark" : "light";
76
76
  }
77
- function M(f) {
77
+ function z(f) {
78
78
  l.value = f;
79
79
  }
80
80
  function $() {
81
81
  const f = v.value === "dark" ? "light" : "dark";
82
82
  l.value = f;
83
83
  }
84
- return Z(l, (f) => {
85
- typeof window > "u" || window.localStorage.setItem(_.value, f);
86
- }), Z(
84
+ return ee(l, (f) => {
85
+ typeof window > "u" || window.localStorage.setItem(y.value, f);
86
+ }), ee(
87
87
  v,
88
88
  (f) => {
89
- S(f, { animate: p.value });
89
+ S(f, { animate: m.value });
90
90
  },
91
91
  { immediate: !0 }
92
92
  ), ce(() => {
93
- l.value = i.value, x(), u.value = window.matchMedia("(prefers-color-scheme: dark)"), I(), u.value.addEventListener("change", I), p.value = !0;
94
- }), ee(() => {
93
+ l.value = i.value, x(), u.value = window.matchMedia("(prefers-color-scheme: dark)"), I(), u.value.addEventListener("change", I), m.value = !0;
94
+ }), te(() => {
95
95
  var f;
96
96
  (f = u.value) == null || f.removeEventListener("change", I), w();
97
97
  }), Re(Ee, {
98
98
  mode: l,
99
99
  resolvedTheme: v,
100
- setTheme: M,
100
+ setTheme: z,
101
101
  toggleTheme: $
102
- }), (f, a) => E(f.$slots, "default");
102
+ }), (f, a) => B(f.$slots, "default");
103
103
  }
104
104
  });
105
105
  function Oe(t, n, e = {}) {
@@ -109,14 +109,14 @@ function Oe(t, n, e = {}) {
109
109
  const u = r.target;
110
110
  if (!(u instanceof Node))
111
111
  return;
112
- const v = Array.isArray(t) ? t.map((_) => _.value).filter((_) => _ instanceof HTMLElement) : [t.value].filter(
113
- (_) => _ instanceof HTMLElement
112
+ const v = Array.isArray(t) ? t.map((y) => y.value).filter((y) => y instanceof HTMLElement) : [t.value].filter(
113
+ (y) => y instanceof HTMLElement
114
114
  );
115
- v.length === 0 || v.some((_) => _.contains(u)) || n(r);
115
+ v.length === 0 || v.some((y) => y.contains(u)) || n(r);
116
116
  };
117
117
  ce(() => {
118
118
  document.addEventListener(i, l);
119
- }), ee(() => {
119
+ }), te(() => {
120
120
  document.removeEventListener(i, l);
121
121
  });
122
122
  }
@@ -124,7 +124,7 @@ function se(t = {}) {
124
124
  const n = s(() => K(t.open) !== void 0), e = D(t.defaultOpen ?? !1), i = s(
125
125
  () => n.value ? !!K(t.open) : e.value
126
126
  );
127
- Z(
127
+ ee(
128
128
  () => K(t.open),
129
129
  (r) => {
130
130
  r !== void 0 && (e.value = r);
@@ -148,18 +148,18 @@ function fe(t, n = {}) {
148
148
  };
149
149
  ce(() => {
150
150
  document.addEventListener(e, i);
151
- }), ee(() => {
151
+ }), te(() => {
152
152
  document.removeEventListener(e, i);
153
153
  });
154
154
  }
155
155
  function ye(t, n, e = {}) {
156
156
  const i = D(0), l = D(0), r = D(K(e.placement) ?? "bottom"), u = D({}), v = D(null);
157
- let _ = 0;
158
- const b = s(() => ({
157
+ let y = 0;
158
+ const g = s(() => ({
159
159
  left: `${i.value}px`,
160
160
  top: `${l.value}px`
161
161
  }));
162
- async function p() {
162
+ async function m() {
163
163
  if (!t.value || !n.value)
164
164
  return;
165
165
  const x = await je(
@@ -177,25 +177,25 @@ function ye(t, n, e = {}) {
177
177
  var x;
178
178
  (x = v.value) == null || x.call(v), v.value = null;
179
179
  }
180
- return Z(
180
+ return ee(
181
181
  [() => K(e.enabled) !== !1, t, n],
182
182
  async ([x]) => {
183
- _ += 1;
184
- const w = _;
185
- C(), !(!x || !t.value || !n.value) && (await ae(), !(w !== _ || K(e.enabled) === !1 || !t.value || !n.value) && (await p(), !(w !== _ || K(e.enabled) === !1 || !t.value || !n.value) && (v.value = Ke(t.value, () => {
186
- p();
183
+ y += 1;
184
+ const w = y;
185
+ C(), !(!x || !t.value || !n.value) && (await oe(), !(w !== y || K(e.enabled) === !1 || !t.value || !n.value) && (await m(), !(w !== y || K(e.enabled) === !1 || !t.value || !n.value) && (v.value = Ke(t.value, () => {
186
+ m();
187
187
  }))));
188
188
  },
189
189
  { immediate: !0 }
190
- ), ee(() => {
190
+ ), te(() => {
191
191
  C();
192
192
  }), {
193
193
  x: i,
194
194
  y: l,
195
195
  placement: r,
196
196
  middlewareData: u,
197
- styles: b,
198
- update: p,
197
+ styles: g,
198
+ update: m,
199
199
  cleanup: C
200
200
  };
201
201
  }
@@ -226,25 +226,25 @@ function Ae(t, n = {}) {
226
226
  i.preventDefault(), l.focus();
227
227
  return;
228
228
  }
229
- const u = r[0], v = r[r.length - 1], _ = document.activeElement;
229
+ const u = r[0], v = r[r.length - 1], y = document.activeElement;
230
230
  if (i.shiftKey) {
231
- (_ === u || _ === l) && (i.preventDefault(), v.focus());
231
+ (y === u || y === l) && (i.preventDefault(), v.focus());
232
232
  return;
233
233
  }
234
- _ === v && (i.preventDefault(), u.focus());
234
+ y === v && (i.preventDefault(), u.focus());
235
235
  };
236
236
  ce(() => {
237
237
  document.addEventListener("keydown", e);
238
- }), ee(() => {
238
+ }), te(() => {
239
239
  document.removeEventListener("keydown", e);
240
240
  });
241
241
  }
242
242
  let Ge = 0;
243
- function G(t = {}) {
243
+ function Q(t = {}) {
244
244
  const n = `${t.prefix ?? "vf"}-${++Ge}`;
245
245
  return s(() => K(t.providedId) ?? n);
246
246
  }
247
- function kn() {
247
+ function Qe() {
248
248
  const t = we(Ee);
249
249
  if (!t)
250
250
  throw new Error("useTheme must be used inside VfThemeProvider.");
@@ -255,7 +255,7 @@ function kn() {
255
255
  toggleTheme: t.toggleTheme
256
256
  };
257
257
  }
258
- const Qe = { class: "vf-accordion" }, Je = ["id", "aria-controls", "aria-expanded", "disabled"], Ze = ["id", "aria-labelledby"], et = { class: "vf-accordion__content-inner" }, wn = /* @__PURE__ */ L({
258
+ const Je = { class: "vf-accordion" }, Ze = ["id", "aria-controls", "aria-expanded", "disabled"], et = ["id", "aria-labelledby"], tt = { class: "vf-accordion__content-inner" }, Cn = /* @__PURE__ */ L({
259
259
  __name: "VfAccordion",
260
260
  props: {
261
261
  open: { type: Boolean, default: void 0 },
@@ -265,35 +265,35 @@ const Qe = { class: "vf-accordion" }, Je = ["id", "aria-controls", "aria-expande
265
265
  },
266
266
  emits: ["update:open", "openChange"],
267
267
  setup(t, { emit: n }) {
268
- const e = t, i = n, l = G({ prefix: "vf-accordion-trigger" }), r = G({ prefix: "vf-accordion-content" }), u = se({
268
+ const e = t, i = n, l = Q({ prefix: "vf-accordion-trigger" }), r = Q({ prefix: "vf-accordion-content" }), u = se({
269
269
  defaultOpen: e.defaultOpen,
270
270
  open: s(() => e.open),
271
271
  onOpenChange: (f) => {
272
272
  i("update:open", f), i("openChange", f);
273
273
  }
274
- }), v = u.isOpen, _ = [
274
+ }), v = u.isOpen, y = [
275
275
  "height var(--vf-motion-duration-normal) var(--vf-motion-ease-standard)",
276
276
  "opacity var(--vf-motion-duration-normal) var(--vf-motion-ease-standard)"
277
277
  ].join(", ");
278
- function b(f) {
278
+ function g(f) {
279
279
  const a = f.firstElementChild;
280
280
  return (a == null ? void 0 : a.offsetHeight) ?? f.scrollHeight;
281
281
  }
282
- function p() {
282
+ function m() {
283
283
  e.disabled || u.toggle();
284
284
  }
285
285
  function C(f) {
286
- (f.key === "Enter" || f.key === " ") && (f.preventDefault(), p());
286
+ (f.key === "Enter" || f.key === " ") && (f.preventDefault(), m());
287
287
  }
288
288
  function x(f) {
289
289
  const a = f;
290
290
  a.style.height = "0px", a.style.opacity = "0", a.style.overflow = "hidden";
291
291
  }
292
292
  function w(f, a) {
293
- const m = f;
294
- m.style.transition = _, requestAnimationFrame(() => {
295
- m.style.height = `${b(m)}px`, m.style.opacity = "1";
296
- }), window.setTimeout(a, U.normal);
293
+ const h = f;
294
+ h.style.transition = y, requestAnimationFrame(() => {
295
+ h.style.height = `${g(h)}px`, h.style.opacity = "1";
296
+ }), window.setTimeout(a, Y.normal);
297
297
  }
298
298
  function S(f) {
299
299
  const a = f;
@@ -301,77 +301,77 @@ const Qe = { class: "vf-accordion" }, Je = ["id", "aria-controls", "aria-expande
301
301
  }
302
302
  function I(f) {
303
303
  const a = f;
304
- a.style.height = `${b(a)}px`, a.style.opacity = "1", a.style.overflow = "hidden";
304
+ a.style.height = `${g(a)}px`, a.style.opacity = "1", a.style.overflow = "hidden";
305
305
  }
306
- function M(f, a) {
307
- const m = f;
308
- m.style.transition = _, m.offsetHeight, m.style.height = "0px", m.style.opacity = "0", window.setTimeout(a, U.normal);
306
+ function z(f, a) {
307
+ const h = f;
308
+ h.style.transition = y, h.offsetHeight, h.style.height = "0px", h.style.opacity = "0", window.setTimeout(a, Y.normal);
309
309
  }
310
310
  function $(f) {
311
311
  const a = f;
312
312
  a.style.height = "", a.style.opacity = "", a.style.overflow = "", a.style.transition = "";
313
313
  }
314
- return (f, a) => (d(), h("section", Qe, [
314
+ return (f, a) => (d(), _("section", Je, [
315
315
  T("button", {
316
- id: y(l),
317
- "aria-controls": y(r),
318
- "aria-expanded": y(v),
316
+ id: p(l),
317
+ "aria-controls": p(r),
318
+ "aria-expanded": p(v),
319
319
  disabled: t.disabled,
320
320
  class: "vf-accordion__trigger",
321
321
  type: "button",
322
- onClick: p,
322
+ onClick: m,
323
323
  onKeydown: C
324
324
  }, [
325
- E(f.$slots, "trigger", { open: y(v) }, () => [
326
- T("span", null, F(t.title), 1)
325
+ B(f.$slots, "trigger", { open: p(v) }, () => [
326
+ T("span", null, N(t.title), 1)
327
327
  ]),
328
328
  T("span", {
329
329
  "aria-hidden": "true",
330
- class: P(["vf-accordion__icon", y(v) && "vf-accordion__icon--open"])
330
+ class: P(["vf-accordion__icon", p(v) && "vf-accordion__icon--open"])
331
331
  }, [
332
- j(y(te), {
333
- icon: y(X).chevronDown,
332
+ j(p(Z), {
333
+ icon: p(U).chevronDown,
334
334
  size: "0.875rem"
335
335
  }, null, 8, ["icon"])
336
336
  ], 2)
337
- ], 40, Je),
337
+ ], 40, Ze),
338
338
  j(ne, {
339
339
  css: !1,
340
340
  onBeforeEnter: x,
341
341
  onEnter: w,
342
342
  onAfterEnter: S,
343
343
  onBeforeLeave: I,
344
- onLeave: M,
344
+ onLeave: z,
345
345
  onAfterLeave: $
346
346
  }, {
347
- default: Q(() => [
348
- y(v) ? (d(), h("div", {
347
+ default: G(() => [
348
+ p(v) ? (d(), _("div", {
349
349
  key: 0,
350
- id: y(r),
351
- "aria-labelledby": y(l),
350
+ id: p(r),
351
+ "aria-labelledby": p(l),
352
352
  class: "vf-accordion__content",
353
353
  role: "region"
354
354
  }, [
355
- T("div", et, [
356
- E(f.$slots, "default", { open: y(v) })
355
+ T("div", tt, [
356
+ B(f.$slots, "default", { open: p(v) })
357
357
  ])
358
- ], 8, Ze)) : O("", !0)
358
+ ], 8, et)) : O("", !0)
359
359
  ]),
360
360
  _: 3
361
361
  })
362
362
  ]));
363
363
  }
364
364
  });
365
- function N(...t) {
365
+ function F(...t) {
366
366
  return t.filter(Boolean).join(" ");
367
367
  }
368
- const tt = {
368
+ const nt = {
369
369
  class: "vf-alert__icon",
370
370
  "aria-hidden": "true"
371
- }, nt = { class: "vf-alert__content" }, at = {
371
+ }, at = { class: "vf-alert__content" }, ot = {
372
372
  key: 0,
373
373
  class: "vf-alert__title"
374
- }, ot = { class: "vf-alert__body" }, Tn = /* @__PURE__ */ L({
374
+ }, lt = { class: "vf-alert__body" }, xn = /* @__PURE__ */ L({
375
375
  inheritAttrs: !1,
376
376
  __name: "VfAlert",
377
377
  props: {
@@ -380,31 +380,31 @@ const tt = {
380
380
  },
381
381
  setup(t) {
382
382
  const n = t, e = R(), i = s(
383
- () => N("vf-alert", n.tone !== "primary" && `vf-alert--${n.tone}`)
384
- ), l = s(() => n.tone === "success" ? X.checkCircle : n.tone === "info" ? X.info : n.tone === "warn" ? X.warning : n.tone === "help" ? X.questionCircle : n.tone === "danger" ? X.warning : n.tone === "contrast" ? X.info : X.info);
385
- return (r, u) => (d(), h("section", H({
383
+ () => F("vf-alert", n.tone !== "primary" && `vf-alert--${n.tone}`)
384
+ ), l = s(() => n.tone === "success" ? U.checkCircle : n.tone === "info" ? U.info : n.tone === "warn" ? U.warning : n.tone === "help" ? U.questionCircle : n.tone === "danger" ? U.warning : n.tone === "contrast" ? U.info : U.info);
385
+ return (r, u) => (d(), _("section", H({
386
386
  class: i.value,
387
387
  role: "alert"
388
- }, y(e)), [
389
- T("div", tt, [
390
- j(y(te), {
388
+ }, p(e)), [
389
+ T("div", nt, [
390
+ j(p(Z), {
391
391
  icon: l.value,
392
392
  size: "2rem"
393
393
  }, null, 8, ["icon"])
394
394
  ]),
395
- T("div", nt, [
396
- n.title || r.$slots.title ? (d(), h("p", at, [
397
- E(r.$slots, "title", {}, () => [
398
- oe(F(n.title), 1)
395
+ T("div", at, [
396
+ n.title || r.$slots.title ? (d(), _("p", ot, [
397
+ B(r.$slots, "title", {}, () => [
398
+ ae(N(n.title), 1)
399
399
  ])
400
400
  ])) : O("", !0),
401
- T("div", ot, [
402
- E(r.$slots, "default")
401
+ T("div", lt, [
402
+ B(r.$slots, "default")
403
403
  ])
404
404
  ])
405
405
  ], 16));
406
406
  }
407
- }), Vn = /* @__PURE__ */ L({
407
+ }), Bn = /* @__PURE__ */ L({
408
408
  inheritAttrs: !1,
409
409
  __name: "VfBadge",
410
410
  props: {
@@ -412,13 +412,13 @@ const tt = {
412
412
  },
413
413
  setup(t) {
414
414
  const n = t, e = R(), i = s(
415
- () => N("vf-badge", n.tone !== "neutral" && `vf-badge--${n.tone}`)
415
+ () => F("vf-badge", n.tone !== "neutral" && `vf-badge--${n.tone}`)
416
416
  );
417
- return (l, r) => (d(), h("span", H({ class: i.value }, y(e)), [
418
- E(l.$slots, "default")
417
+ return (l, r) => (d(), _("span", H({ class: i.value }, p(e)), [
418
+ B(l.$slots, "default")
419
419
  ], 16));
420
420
  }
421
- }), lt = ["type"], Cn = /* @__PURE__ */ L({
421
+ }), st = ["type"], En = /* @__PURE__ */ L({
422
422
  inheritAttrs: !1,
423
423
  __name: "VfButton",
424
424
  props: {
@@ -429,24 +429,24 @@ const tt = {
429
429
  },
430
430
  setup(t) {
431
431
  const n = t, e = R(), i = s(
432
- () => N(
432
+ () => F(
433
433
  "vf-button",
434
434
  `vf-button--${n.variant}`,
435
435
  n.size !== "md" && `vf-button--${n.size}`,
436
436
  n.block && "vf-button--block"
437
437
  )
438
438
  );
439
- return (l, r) => (d(), h("button", H({
439
+ return (l, r) => (d(), _("button", H({
440
440
  class: i.value,
441
441
  type: n.type
442
- }, y(e)), [
443
- E(l.$slots, "default")
444
- ], 16, lt));
442
+ }, p(e)), [
443
+ B(l.$slots, "default")
444
+ ], 16, st));
445
445
  }
446
- }), st = { key: 0 }, it = { class: "vf-card__title" }, rt = {
446
+ }), it = { key: 0 }, rt = { class: "vf-card__title" }, ut = {
447
447
  key: 1,
448
448
  class: "vf-card__body"
449
- }, ut = { key: 2 }, xn = /* @__PURE__ */ L({
449
+ }, dt = { key: 2 }, On = /* @__PURE__ */ L({
450
450
  inheritAttrs: !1,
451
451
  __name: "VfCard",
452
452
  props: {
@@ -455,26 +455,26 @@ const tt = {
455
455
  },
456
456
  setup(t) {
457
457
  const n = t, e = R(), i = s(
458
- () => N("vf-card", n.compact && "vf-card--compact")
458
+ () => F("vf-card", n.compact && "vf-card--compact")
459
459
  );
460
- return (l, r) => (d(), h("section", H({ class: i.value }, y(e)), [
461
- n.title || l.$slots.header ? (d(), h("header", st, [
462
- E(l.$slots, "header", {}, () => [
463
- T("h3", it, F(n.title), 1)
460
+ return (l, r) => (d(), _("section", H({ class: i.value }, p(e)), [
461
+ n.title || l.$slots.header ? (d(), _("header", it, [
462
+ B(l.$slots, "header", {}, () => [
463
+ T("h3", rt, N(n.title), 1)
464
464
  ])
465
465
  ])) : O("", !0),
466
- l.$slots.default ? (d(), h("div", rt, [
467
- E(l.$slots, "default")
466
+ l.$slots.default ? (d(), _("div", ut, [
467
+ B(l.$slots, "default")
468
468
  ])) : O("", !0),
469
- l.$slots.footer ? (d(), h("footer", ut, [
470
- E(l.$slots, "footer")
469
+ l.$slots.footer ? (d(), _("footer", dt, [
470
+ B(l.$slots, "footer")
471
471
  ])) : O("", !0)
472
472
  ], 16));
473
473
  }
474
- }), dt = ["checked", "disabled", "aria-invalid"], ct = {
474
+ }), ct = ["checked", "disabled", "aria-invalid"], ft = {
475
475
  key: 0,
476
476
  class: "vf-checkbox__content"
477
- }, Bn = /* @__PURE__ */ L({
477
+ }, An = /* @__PURE__ */ L({
478
478
  inheritAttrs: !1,
479
479
  __name: "VfCheckbox",
480
480
  props: {
@@ -487,7 +487,7 @@ const tt = {
487
487
  emits: ["update:modelValue", "change"],
488
488
  setup(t, { emit: n }) {
489
489
  const e = t, i = n, l = R(), r = s(
490
- () => N(
490
+ () => F(
491
491
  "vf-checkbox",
492
492
  `vf-checkbox--${e.size}`,
493
493
  e.modelValue && "vf-checkbox--checked",
@@ -497,14 +497,14 @@ const tt = {
497
497
  )
498
498
  ), u = s(() => l.style), v = s(
499
499
  () => Object.fromEntries(
500
- Object.entries(l).filter(([b]) => b !== "class" && b !== "style")
500
+ Object.entries(l).filter(([g]) => g !== "class" && g !== "style")
501
501
  )
502
502
  );
503
- function _(b) {
504
- const p = b.target.checked;
505
- i("update:modelValue", p), i("change", p);
503
+ function y(g) {
504
+ const m = g.target.checked;
505
+ i("update:modelValue", m), i("change", m);
506
506
  }
507
- return (b, p) => (d(), h("label", {
507
+ return (g, m) => (d(), _("label", {
508
508
  class: P(r.value),
509
509
  style: W(u.value)
510
510
  }, [
@@ -514,21 +514,21 @@ const tt = {
514
514
  checked: e.modelValue,
515
515
  disabled: e.disabled,
516
516
  "aria-invalid": e.invalid || void 0
517
- }, v.value, { onChange: _ }), null, 16, dt),
518
- p[0] || (p[0] = T("span", {
517
+ }, v.value, { onChange: y }), null, 16, ct),
518
+ m[0] || (m[0] = T("span", {
519
519
  class: "vf-checkbox__control",
520
520
  "aria-hidden": "true"
521
521
  }, [
522
522
  T("span", { class: "vf-checkbox__mark" })
523
523
  ], -1)),
524
- t.label || b.$slots.default ? (d(), h("span", ct, [
525
- E(b.$slots, "default", {}, () => [
526
- oe(F(t.label), 1)
524
+ t.label || g.$slots.default ? (d(), _("span", ft, [
525
+ B(g.$slots, "default", {}, () => [
526
+ ae(N(t.label), 1)
527
527
  ])
528
528
  ])) : O("", !0)
529
529
  ], 6));
530
530
  }
531
- }), ft = ["type"], De = /* @__PURE__ */ L({
531
+ }), vt = ["type"], De = /* @__PURE__ */ L({
532
532
  inheritAttrs: !1,
533
533
  __name: "VfIconButton",
534
534
  props: {
@@ -539,33 +539,33 @@ const tt = {
539
539
  },
540
540
  setup(t) {
541
541
  const n = t, e = R(), i = s(
542
- () => N(
542
+ () => F(
543
543
  "vf-icon-button",
544
544
  n.variant !== "ghost" && `vf-icon-button--${n.variant}`,
545
545
  n.size !== "md" && `vf-icon-button--${n.size}`
546
546
  )
547
547
  ), l = s(() => n.size === "sm" ? "0.875rem" : n.size === "lg" ? "1.125rem" : "1rem");
548
- return (r, u) => (d(), h("button", H({
548
+ return (r, u) => (d(), _("button", H({
549
549
  class: i.value,
550
550
  type: n.type
551
- }, y(e)), [
552
- j(y(te), {
551
+ }, p(e)), [
552
+ j(p(Z), {
553
553
  icon: n.icon,
554
554
  size: l.value,
555
555
  "aria-hidden": "true"
556
556
  }, null, 8, ["icon", "size"])
557
- ], 16, ft));
557
+ ], 16, vt));
558
558
  }
559
- }), vt = ["aria-labelledby"], pt = {
559
+ }), pt = ["aria-labelledby"], mt = {
560
560
  key: 0,
561
561
  class: "vf-drawer__header"
562
- }, mt = ["id"], ht = { class: "vf-drawer__actions" }, yt = {
562
+ }, ht = ["id"], yt = { class: "vf-drawer__actions" }, _t = {
563
563
  key: 1,
564
564
  class: "vf-drawer__body"
565
- }, _t = {
565
+ }, gt = {
566
566
  key: 2,
567
567
  class: "vf-drawer__footer"
568
- }, En = /* @__PURE__ */ L({
568
+ }, Dn = /* @__PURE__ */ L({
569
569
  inheritAttrs: !1,
570
570
  __name: "VfDrawer",
571
571
  props: {
@@ -585,15 +585,15 @@ const tt = {
585
585
  },
586
586
  emits: ["update:open", "openChange"],
587
587
  setup(t, { emit: n }) {
588
- const e = t, i = n, l = R(), r = D(null), u = D(null), v = Te(), _ = G({ prefix: "vf-drawer-title" }), b = se({
588
+ const e = t, i = n, l = R(), r = D(null), u = D(null), v = Te(), y = Q({ prefix: "vf-drawer-title" }), g = se({
589
589
  defaultOpen: e.defaultOpen,
590
590
  open: s(() => e.open),
591
591
  onOpenChange: (V) => {
592
592
  i("update:open", V), i("openChange", V);
593
593
  }
594
- }), p = b.isOpen, C = {
595
- enter: U.normal,
596
- leave: U.normal
594
+ }), m = g.isOpen, C = {
595
+ enter: Y.normal,
596
+ leave: Y.normal
597
597
  };
598
598
  function x(V) {
599
599
  return typeof V == "number" ? `${V}px` : V;
@@ -602,7 +602,7 @@ const tt = {
602
602
  const V = {}, k = x(e.offsetTop), J = x(e.bodyPadding);
603
603
  return k != null && (V["--vf-drawer-offset-top"] = k), J != null && (V["--vf-drawer-body-padding"] = J), V;
604
604
  }), S = s(
605
- () => N(
605
+ () => F(
606
606
  "vf-drawer",
607
607
  `vf-drawer--${e.placement}`,
608
608
  e.offsetTop != null && "vf-drawer--offset-top"
@@ -610,26 +610,26 @@ const tt = {
610
610
  ), I = s(() => [
611
611
  w.value,
612
612
  l.style
613
- ]), M = s(() => Object.fromEntries(
613
+ ]), z = s(() => Object.fromEntries(
614
614
  Object.entries(l).filter(([V]) => V !== "class" && V !== "style")
615
615
  )), $ = s(
616
616
  () => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
617
- ), f = s(() => e.scrollLockTarget === !1 ? null : e.scrollLockTarget), a = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), m = s(
618
- () => N(
617
+ ), f = s(() => e.scrollLockTarget === !1 ? null : e.scrollLockTarget), a = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), h = s(
618
+ () => F(
619
619
  "vf-drawer__content",
620
620
  `vf-drawer__content--${e.placement}`,
621
621
  `vf-drawer__content--${e.size}`
622
622
  )
623
623
  ), c = s(() => !!v.header), o = s(
624
- () => e.title || c.value ? _.value : void 0
624
+ () => e.title || c.value ? y.value : void 0
625
625
  );
626
- function B() {
627
- b.close();
626
+ function E() {
627
+ g.close();
628
628
  }
629
629
  function A() {
630
- e.closeOnOverlayClick && B();
630
+ e.closeOnOverlayClick && E();
631
631
  }
632
- function z() {
632
+ function M() {
633
633
  const V = r.value;
634
634
  if (!V)
635
635
  return;
@@ -644,31 +644,31 @@ const tt = {
644
644
  }
645
645
  return fe(
646
646
  (V) => {
647
- !e.closeOnEscape || !p.value || (V.preventDefault(), B());
647
+ !e.closeOnEscape || !m.value || (V.preventDefault(), E());
648
648
  },
649
649
  {
650
- enabled: p
650
+ enabled: m
651
651
  }
652
652
  ), Ae(r, {
653
- enabled: p
654
- }), xe(p, {
653
+ enabled: m
654
+ }), xe(m, {
655
655
  target: f
656
- }), Z(
657
- p,
656
+ }), ee(
657
+ m,
658
658
  async (V) => {
659
659
  var k;
660
660
  if (!(typeof document > "u")) {
661
661
  if (V) {
662
- u.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(), z();
662
+ u.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await oe(), M();
663
663
  return;
664
664
  }
665
665
  (k = u.value) == null || k.focus();
666
666
  }
667
667
  },
668
668
  { immediate: !0 }
669
- ), ee(() => {
669
+ ), te(() => {
670
670
  var V;
671
- p.value && ((V = u.value) == null || V.focus());
671
+ m.value && ((V = u.value) == null || V.focus());
672
672
  }), (V, k) => (d(), q(le, {
673
673
  to: a.value,
674
674
  disabled: $.value
@@ -678,12 +678,12 @@ const tt = {
678
678
  appear: "",
679
679
  duration: C
680
680
  }, {
681
- default: Q(() => [
682
- y(p) ? (d(), h("div", H({
681
+ default: G(() => [
682
+ p(m) ? (d(), _("div", H({
683
683
  key: 0,
684
- class: [S.value, y(l).class],
684
+ class: [S.value, p(l).class],
685
685
  style: I.value
686
- }, M.value), [
686
+ }, z.value), [
687
687
  T("div", {
688
688
  class: "vf-drawer__overlay",
689
689
  "aria-hidden": "true",
@@ -692,59 +692,59 @@ const tt = {
692
692
  T("section", {
693
693
  ref_key: "contentRef",
694
694
  ref: r,
695
- class: P(m.value),
695
+ class: P(h.value),
696
696
  "aria-labelledby": o.value,
697
697
  "aria-modal": "true",
698
698
  role: "dialog",
699
699
  tabindex: "-1"
700
700
  }, [
701
- t.title || V.$slots.header ? (d(), h("header", pt, [
701
+ t.title || V.$slots.header ? (d(), _("header", mt, [
702
702
  T("div", null, [
703
- E(V.$slots, "header", {}, () => [
704
- t.title ? (d(), h("h2", {
703
+ B(V.$slots, "header", {}, () => [
704
+ t.title ? (d(), _("h2", {
705
705
  key: 0,
706
- id: y(_),
706
+ id: p(y),
707
707
  class: "vf-drawer__title"
708
- }, F(t.title), 9, mt)) : O("", !0)
708
+ }, N(t.title), 9, ht)) : O("", !0)
709
709
  ])
710
710
  ]),
711
- T("div", ht, [
712
- E(V.$slots, "actions", { close: B }),
711
+ T("div", yt, [
712
+ B(V.$slots, "actions", { close: E }),
713
713
  e.closable ? (d(), q(De, {
714
714
  key: 0,
715
- icon: y(X).xmark,
715
+ icon: p(U).xmark,
716
716
  "aria-label": "Close drawer",
717
717
  size: "sm",
718
- onClick: B
718
+ onClick: E
719
719
  }, null, 8, ["icon"])) : O("", !0)
720
720
  ])
721
721
  ])) : O("", !0),
722
- V.$slots.default ? (d(), h("div", yt, [
723
- E(V.$slots, "default", { close: B })
722
+ V.$slots.default ? (d(), _("div", _t, [
723
+ B(V.$slots, "default", { close: E })
724
724
  ])) : O("", !0),
725
- V.$slots.footer ? (d(), h("footer", _t, [
726
- E(V.$slots, "footer", { close: B })
725
+ V.$slots.footer ? (d(), _("footer", gt, [
726
+ B(V.$slots, "footer", { close: E })
727
727
  ])) : O("", !0)
728
- ], 10, vt)
728
+ ], 10, pt)
729
729
  ], 16)) : O("", !0)
730
730
  ]),
731
731
  _: 3
732
732
  })
733
733
  ], 8, ["to", "disabled"]));
734
734
  }
735
- }), gt = {
735
+ }), bt = {
736
736
  key: 0,
737
737
  class: "vf-dialog"
738
- }, bt = ["aria-describedby", "aria-labelledby"], $t = {
738
+ }, $t = ["aria-describedby", "aria-labelledby"], kt = {
739
739
  key: 0,
740
740
  class: "vf-dialog__header"
741
- }, kt = ["id"], wt = ["id"], Tt = { class: "vf-dialog__actions" }, Vt = {
741
+ }, wt = ["id"], Tt = ["id"], Vt = { class: "vf-dialog__actions" }, Ct = {
742
742
  key: 1,
743
743
  class: "vf-dialog__body"
744
- }, Ct = {
744
+ }, xt = {
745
745
  key: 2,
746
746
  class: "vf-dialog__footer"
747
- }, On = /* @__PURE__ */ L({
747
+ }, In = /* @__PURE__ */ L({
748
748
  __name: "VfDialog",
749
749
  props: {
750
750
  open: { type: Boolean, default: void 0 },
@@ -760,72 +760,72 @@ const tt = {
760
760
  },
761
761
  emits: ["update:open", "openChange"],
762
762
  setup(t, { emit: n }) {
763
- const e = t, i = n, l = D(null), r = D(null), u = Te(), v = G({ prefix: "vf-dialog-title" }), _ = G({ prefix: "vf-dialog-description" }), b = se({
763
+ const e = t, i = n, l = D(null), r = D(null), u = Te(), v = Q({ prefix: "vf-dialog-title" }), y = Q({ prefix: "vf-dialog-description" }), g = se({
764
764
  defaultOpen: e.defaultOpen,
765
765
  open: s(() => e.open),
766
766
  onOpenChange: (o) => {
767
767
  i("update:open", o), i("openChange", o);
768
768
  }
769
- }), p = b.isOpen, C = {
770
- enter: U.fast,
771
- leave: U.fast
769
+ }), m = g.isOpen, C = {
770
+ enter: Y.fast,
771
+ leave: Y.fast
772
772
  }, x = s(
773
773
  () => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
774
774
  ), w = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), S = s(
775
- () => N(
775
+ () => F(
776
776
  "vf-dialog__content",
777
777
  e.size !== "md" && `vf-dialog__content--${e.size}`
778
778
  )
779
- ), I = s(() => !!u.header), M = s(() => !!u.description), $ = s(
779
+ ), I = s(() => !!u.header), z = s(() => !!u.description), $ = s(
780
780
  () => e.title || I.value ? v.value : void 0
781
781
  ), f = s(
782
- () => e.description || M.value ? _.value : void 0
782
+ () => e.description || z.value ? y.value : void 0
783
783
  );
784
784
  function a() {
785
- b.close();
785
+ g.close();
786
786
  }
787
- function m() {
787
+ function h() {
788
788
  e.closeOnOverlayClick && a();
789
789
  }
790
790
  function c() {
791
791
  const o = l.value;
792
792
  if (!o)
793
793
  return;
794
- const B = o.querySelector(
794
+ const E = o.querySelector(
795
795
  "[autofocus], [data-autofocus]"
796
796
  );
797
- if (B) {
798
- B.focus();
797
+ if (E) {
798
+ E.focus();
799
799
  return;
800
800
  }
801
801
  o.focus();
802
802
  }
803
803
  return fe(
804
804
  (o) => {
805
- !e.closeOnEscape || !p.value || (o.preventDefault(), a());
805
+ !e.closeOnEscape || !m.value || (o.preventDefault(), a());
806
806
  },
807
807
  {
808
- enabled: p
808
+ enabled: m
809
809
  }
810
810
  ), Ae(l, {
811
- enabled: p
812
- }), xe(p), Z(
813
- p,
811
+ enabled: m
812
+ }), xe(m), ee(
813
+ m,
814
814
  async (o) => {
815
- var B;
815
+ var E;
816
816
  if (!(typeof document > "u")) {
817
817
  if (o) {
818
- r.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(), c();
818
+ r.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await oe(), c();
819
819
  return;
820
820
  }
821
- (B = r.value) == null || B.focus();
821
+ (E = r.value) == null || E.focus();
822
822
  }
823
823
  },
824
824
  { immediate: !0 }
825
- ), ee(() => {
825
+ ), te(() => {
826
826
  var o;
827
- p.value && ((o = r.value) == null || o.focus());
828
- }), (o, B) => (d(), q(le, {
827
+ m.value && ((o = r.value) == null || o.focus());
828
+ }), (o, E) => (d(), q(le, {
829
829
  to: w.value,
830
830
  disabled: x.value
831
831
  }, [
@@ -834,12 +834,12 @@ const tt = {
834
834
  appear: "",
835
835
  duration: C
836
836
  }, {
837
- default: Q(() => [
838
- y(p) ? (d(), h("div", gt, [
837
+ default: G(() => [
838
+ p(m) ? (d(), _("div", bt, [
839
839
  T("div", {
840
840
  class: "vf-dialog__overlay",
841
841
  "aria-hidden": "true",
842
- onClick: m
842
+ onClick: h
843
843
  }),
844
844
  T("section", {
845
845
  ref_key: "contentRef",
@@ -851,48 +851,48 @@ const tt = {
851
851
  role: "dialog",
852
852
  tabindex: "-1"
853
853
  }, [
854
- t.title || t.description || o.$slots.header || o.$slots.description ? (d(), h("header", $t, [
854
+ t.title || t.description || o.$slots.header || o.$slots.description ? (d(), _("header", kt, [
855
855
  T("div", null, [
856
- E(o.$slots, "header", {}, () => [
857
- t.title ? (d(), h("h2", {
856
+ B(o.$slots, "header", {}, () => [
857
+ t.title ? (d(), _("h2", {
858
858
  key: 0,
859
- id: y(v),
859
+ id: p(v),
860
860
  class: "vf-dialog__title"
861
- }, F(t.title), 9, kt)) : O("", !0)
861
+ }, N(t.title), 9, wt)) : O("", !0)
862
862
  ]),
863
- E(o.$slots, "description", {}, () => [
864
- t.description ? (d(), h("p", {
863
+ B(o.$slots, "description", {}, () => [
864
+ t.description ? (d(), _("p", {
865
865
  key: 0,
866
- id: y(_),
866
+ id: p(y),
867
867
  class: "vf-dialog__description"
868
- }, F(t.description), 9, wt)) : O("", !0)
868
+ }, N(t.description), 9, Tt)) : O("", !0)
869
869
  ])
870
870
  ]),
871
- T("div", Tt, [
872
- E(o.$slots, "actions", { close: a }),
871
+ T("div", Vt, [
872
+ B(o.$slots, "actions", { close: a }),
873
873
  e.closable ? (d(), q(De, {
874
874
  key: 0,
875
- icon: y(X).xmark,
875
+ icon: p(U).xmark,
876
876
  "aria-label": "Close dialog",
877
877
  size: "sm",
878
878
  onClick: a
879
879
  }, null, 8, ["icon"])) : O("", !0)
880
880
  ])
881
881
  ])) : O("", !0),
882
- o.$slots.default ? (d(), h("div", Vt, [
883
- E(o.$slots, "default", { close: a })
882
+ o.$slots.default ? (d(), _("div", Ct, [
883
+ B(o.$slots, "default", { close: a })
884
884
  ])) : O("", !0),
885
- o.$slots.footer ? (d(), h("footer", Ct, [
886
- E(o.$slots, "footer", { close: a })
885
+ o.$slots.footer ? (d(), _("footer", xt, [
886
+ B(o.$slots, "footer", { close: a })
887
887
  ])) : O("", !0)
888
- ], 10, bt)
888
+ ], 10, $t)
889
889
  ])) : O("", !0)
890
890
  ]),
891
891
  _: 3
892
892
  })
893
893
  ], 8, ["to", "disabled"]));
894
894
  }
895
- }), xt = ["aria-orientation", "role"], An = /* @__PURE__ */ L({
895
+ }), Bt = ["aria-orientation", "role"], Ln = /* @__PURE__ */ L({
896
896
  inheritAttrs: !1,
897
897
  __name: "VfDivider",
898
898
  props: {
@@ -900,15 +900,15 @@ const tt = {
900
900
  },
901
901
  setup(t) {
902
902
  const n = t, e = R(), i = s(() => n.orientation === "vertical"), l = s(
903
- () => N("vf-divider", `vf-divider--${n.orientation}`)
903
+ () => F("vf-divider", `vf-divider--${n.orientation}`)
904
904
  );
905
- return (r, u) => (d(), h("div", H({
905
+ return (r, u) => (d(), _("div", H({
906
906
  class: l.value,
907
907
  "aria-orientation": n.orientation,
908
908
  role: i.value ? "separator" : void 0
909
- }, y(e)), null, 16, xt));
909
+ }, p(e)), null, 16, Bt));
910
910
  }
911
- }), Bt = { class: "vf-dropdown" }, Et = ["id", "aria-controls", "aria-expanded"], Ot = ["id", "aria-labelledby"], Dn = /* @__PURE__ */ L({
911
+ }), Et = { class: "vf-dropdown" }, Ot = ["id", "aria-controls", "aria-expanded"], At = ["id", "aria-labelledby"], Sn = /* @__PURE__ */ L({
912
912
  __name: "VfDropdown",
913
913
  props: {
914
914
  open: { type: Boolean, default: void 0 },
@@ -920,27 +920,27 @@ const tt = {
920
920
  },
921
921
  emits: ["update:open", "openChange"],
922
922
  setup(t, { emit: n }) {
923
- const e = t, i = n, l = D(null), r = D(null), u = D(null), v = G({ prefix: "vf-dropdown-menu" }), _ = G({ prefix: "vf-dropdown-trigger" }), b = {
924
- enter: U.fast,
925
- leave: U.fast
926
- }, p = s(
923
+ const e = t, i = n, l = D(null), r = D(null), u = D(null), v = Q({ prefix: "vf-dropdown-menu" }), y = Q({ prefix: "vf-dropdown-trigger" }), g = {
924
+ enter: Y.fast,
925
+ leave: Y.fast
926
+ }, m = s(
927
927
  () => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
928
928
  ), C = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), x = se({
929
929
  defaultOpen: e.defaultOpen,
930
930
  open: s(() => e.open),
931
- onOpenChange: (g) => {
932
- i("update:open", g), i("openChange", g);
931
+ onOpenChange: (b) => {
932
+ i("update:open", b), i("openChange", b);
933
933
  }
934
934
  }), w = x.isOpen, S = s(() => [
935
935
  "vf-dropdown__menu",
936
936
  a.value.startsWith("top") && "vf-dropdown__menu--top"
937
937
  ]), I = s(() => {
938
- const g = m.value.arrow;
938
+ const b = h.value.arrow;
939
939
  return {
940
- x: (g == null ? void 0 : g.x) !== void 0 && (g == null ? void 0 : g.baseX) !== void 0 ? g.x - g.baseX : 0,
941
- y: (g == null ? void 0 : g.y) !== void 0 && (g == null ? void 0 : g.baseY) !== void 0 ? g.y - g.baseY : 0
940
+ x: (b == null ? void 0 : b.x) !== void 0 && (b == null ? void 0 : b.baseX) !== void 0 ? b.x - b.baseX : 0,
941
+ y: (b == null ? void 0 : b.y) !== void 0 && (b == null ? void 0 : b.baseY) !== void 0 ? b.y - b.baseY : 0
942
942
  };
943
- }), M = s(() => ({
943
+ }), z = s(() => ({
944
944
  left: `${I.value.x}px`,
945
945
  top: `${I.value.y}px`
946
946
  })), $ = s(() => [
@@ -950,7 +950,7 @@ const tt = {
950
950
  () => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
951
951
  ), {
952
952
  placement: a,
953
- middlewareData: m,
953
+ middlewareData: h,
954
954
  styles: c
955
955
  } = ye(l, r, {
956
956
  enabled: w,
@@ -961,111 +961,111 @@ const tt = {
961
961
  pe({ placements: f.value }),
962
962
  me(),
963
963
  u.value ? he(u.value) : void 0
964
- ].filter((g) => g !== void 0)
964
+ ].filter((b) => b !== void 0)
965
965
  ),
966
966
  strategy: "fixed"
967
967
  });
968
968
  function o() {
969
- var g;
969
+ var b;
970
970
  return Array.from(
971
- ((g = r.value) == null ? void 0 : g.querySelectorAll('[role="menuitem"]')) ?? []
971
+ ((b = r.value) == null ? void 0 : b.querySelectorAll('[role="menuitem"]')) ?? []
972
972
  );
973
973
  }
974
- async function B() {
975
- var g;
976
- await ae(), (g = o()[0]) == null || g.focus();
974
+ async function E() {
975
+ var b;
976
+ await oe(), (b = o()[0]) == null || b.focus();
977
977
  }
978
- function A(g = {}) {
979
- x.open(), g.focusFirstItem && B();
978
+ function A(b = {}) {
979
+ x.open(), b.focusFirstItem && E();
980
980
  }
981
- function z() {
982
- var g;
983
- x.close(), (g = l.value) == null || g.focus();
981
+ function M() {
982
+ var b;
983
+ x.close(), (b = l.value) == null || b.focus();
984
984
  }
985
985
  function V() {
986
986
  if (w.value) {
987
- z();
987
+ M();
988
988
  return;
989
989
  }
990
990
  A();
991
991
  }
992
- function k(g) {
993
- (g.key === "ArrowDown" || g.key === "Enter" || g.key === " ") && (g.preventDefault(), A({ focusFirstItem: !0 }));
992
+ function k(b) {
993
+ (b.key === "ArrowDown" || b.key === "Enter" || b.key === " ") && (b.preventDefault(), A({ focusFirstItem: !0 }));
994
994
  }
995
- function J(g) {
995
+ function J(b) {
996
996
  var ge, be, $e, ke;
997
- const Y = o(), _e = Y.findIndex(
997
+ const X = o(), _e = X.findIndex(
998
998
  (Ie) => Ie === document.activeElement
999
999
  );
1000
- if (g.key === "ArrowDown") {
1001
- g.preventDefault(), (ge = Y[(_e + 1 + Y.length) % Y.length]) == null || ge.focus();
1000
+ if (b.key === "ArrowDown") {
1001
+ b.preventDefault(), (ge = X[(_e + 1 + X.length) % X.length]) == null || ge.focus();
1002
1002
  return;
1003
1003
  }
1004
- if (g.key === "ArrowUp") {
1005
- g.preventDefault(), (be = Y[(_e - 1 + Y.length) % Y.length]) == null || be.focus();
1004
+ if (b.key === "ArrowUp") {
1005
+ b.preventDefault(), (be = X[(_e - 1 + X.length) % X.length]) == null || be.focus();
1006
1006
  return;
1007
1007
  }
1008
- if (g.key === "Home") {
1009
- g.preventDefault(), ($e = Y[0]) == null || $e.focus();
1008
+ if (b.key === "Home") {
1009
+ b.preventDefault(), ($e = X[0]) == null || $e.focus();
1010
1010
  return;
1011
1011
  }
1012
- g.key === "End" && (g.preventDefault(), (ke = Y[Y.length - 1]) == null || ke.focus());
1012
+ b.key === "End" && (b.preventDefault(), (ke = X[X.length - 1]) == null || ke.focus());
1013
1013
  }
1014
1014
  function ie() {
1015
- e.closeOnSelect && z();
1015
+ e.closeOnSelect && M();
1016
1016
  }
1017
1017
  return Oe(
1018
1018
  [l, r],
1019
1019
  () => {
1020
- w.value && z();
1020
+ w.value && M();
1021
1021
  },
1022
1022
  {
1023
1023
  enabled: w,
1024
1024
  event: "click"
1025
1025
  }
1026
1026
  ), fe(
1027
- (g) => {
1028
- w.value && (g.preventDefault(), z());
1027
+ (b) => {
1028
+ w.value && (b.preventDefault(), M());
1029
1029
  },
1030
1030
  {
1031
1031
  enabled: w
1032
1032
  }
1033
- ), (g, Y) => (d(), h("div", Bt, [
1033
+ ), (b, X) => (d(), _("div", Et, [
1034
1034
  T("div", {
1035
- id: y(_),
1035
+ id: p(y),
1036
1036
  ref_key: "triggerRef",
1037
1037
  ref: l,
1038
1038
  class: "vf-dropdown__trigger",
1039
- "aria-controls": y(v),
1040
- "aria-expanded": y(w),
1039
+ "aria-controls": p(v),
1040
+ "aria-expanded": p(w),
1041
1041
  "aria-haspopup": "menu",
1042
1042
  tabindex: "0",
1043
1043
  onClick: V,
1044
1044
  onKeydown: k
1045
1045
  }, [
1046
- E(g.$slots, "trigger", {
1047
- open: y(w),
1046
+ B(b.$slots, "trigger", {
1047
+ open: p(w),
1048
1048
  toggle: V
1049
1049
  })
1050
- ], 40, Et),
1050
+ ], 40, Ot),
1051
1051
  (d(), q(le, {
1052
1052
  to: C.value,
1053
- disabled: p.value
1053
+ disabled: m.value
1054
1054
  }, [
1055
1055
  j(ne, {
1056
1056
  name: "vf-floating-transition",
1057
1057
  appear: "",
1058
- duration: b
1058
+ duration: g
1059
1059
  }, {
1060
- default: Q(() => [
1061
- y(w) ? (d(), h("div", {
1060
+ default: G(() => [
1061
+ p(w) ? (d(), _("div", {
1062
1062
  key: 0,
1063
- id: y(v),
1063
+ id: p(v),
1064
1064
  ref_key: "menuRef",
1065
1065
  ref: r,
1066
1066
  class: P(S.value),
1067
- style: W(y(c)),
1068
- "aria-labelledby": y(_),
1067
+ style: W(p(c)),
1068
+ "aria-labelledby": p(y),
1069
1069
  role: "menu",
1070
1070
  onClick: ie,
1071
1071
  onKeydown: J
@@ -1074,21 +1074,21 @@ const tt = {
1074
1074
  ref_key: "arrowRef",
1075
1075
  ref: u,
1076
1076
  class: P($.value),
1077
- style: W(M.value),
1077
+ style: W(z.value),
1078
1078
  "aria-hidden": "true"
1079
1079
  }, null, 6),
1080
- E(g.$slots, "default", {
1081
- close: z,
1082
- open: y(w)
1080
+ B(b.$slots, "default", {
1081
+ close: M,
1082
+ open: p(w)
1083
1083
  })
1084
- ], 46, Ot)) : O("", !0)
1084
+ ], 46, At)) : O("", !0)
1085
1085
  ]),
1086
1086
  _: 3
1087
1087
  })
1088
1088
  ], 8, ["to", "disabled"]))
1089
1089
  ]));
1090
1090
  }
1091
- }), At = ["value", "aria-invalid"], In = /* @__PURE__ */ L({
1091
+ }), Dt = ["value", "aria-invalid"], zn = /* @__PURE__ */ L({
1092
1092
  inheritAttrs: !1,
1093
1093
  __name: "VfInput",
1094
1094
  props: {
@@ -1099,7 +1099,7 @@ const tt = {
1099
1099
  emits: ["update:modelValue"],
1100
1100
  setup(t, { emit: n }) {
1101
1101
  const e = t, i = n, l = R(), r = s(
1102
- () => N(
1102
+ () => F(
1103
1103
  "vf-input",
1104
1104
  e.size !== "md" && `vf-input--${e.size}`,
1105
1105
  e.invalid && "vf-input--invalid"
@@ -1108,13 +1108,13 @@ const tt = {
1108
1108
  function u(v) {
1109
1109
  i("update:modelValue", v.target.value);
1110
1110
  }
1111
- return (v, _) => (d(), h("input", H({
1111
+ return (v, y) => (d(), _("input", H({
1112
1112
  class: r.value,
1113
1113
  value: e.modelValue,
1114
1114
  "aria-invalid": e.invalid || void 0
1115
- }, y(l), { onInput: u }), null, 16, At));
1115
+ }, p(l), { onInput: u }), null, 16, Dt));
1116
1116
  }
1117
- }), Ln = /* @__PURE__ */ L({
1117
+ }), Mn = /* @__PURE__ */ L({
1118
1118
  inheritAttrs: !1,
1119
1119
  __name: "VfLink",
1120
1120
  props: {
@@ -1128,7 +1128,7 @@ const tt = {
1128
1128
  },
1129
1129
  setup(t) {
1130
1130
  const n = t, e = R(), i = s(() => n.to !== void 0), l = s(() => i.value ? n.component ?? re("RouterLink") : "a"), r = s(() => n.rel ? n.rel : n.target === "_blank" ? "noopener noreferrer" : void 0), u = s(
1131
- () => N(
1131
+ () => F(
1132
1132
  "vf-link",
1133
1133
  n.underline && "vf-link--underline",
1134
1134
  n.tone === "muted" && "vf-link--muted"
@@ -1141,34 +1141,34 @@ const tt = {
1141
1141
  href: n.href,
1142
1142
  target: n.target,
1143
1143
  rel: r.value
1144
- }), _ = s(() => ({
1144
+ }), y = s(() => ({
1145
1145
  ...e,
1146
1146
  ...v.value,
1147
1147
  class: u.value
1148
1148
  }));
1149
- return (b, p) => (d(), q(re(l.value), Ve(Ce(_.value)), {
1150
- default: Q(() => [
1151
- E(b.$slots, "default")
1149
+ return (g, m) => (d(), q(re(l.value), Ve(Ce(y.value)), {
1150
+ default: G(() => [
1151
+ B(g.$slots, "default")
1152
1152
  ]),
1153
1153
  _: 3
1154
1154
  }, 16));
1155
1155
  }
1156
- }), Dt = { class: "vf-nav-menu__node" }, It = { class: "vf-nav-menu__item-content" }, Lt = { class: "vf-nav-menu__group-label" }, St = ["aria-expanded", "disabled"], Mt = { class: "vf-nav-menu__item-content" }, zt = {
1156
+ }), It = { class: "vf-nav-menu__node" }, Lt = { class: "vf-nav-menu__item-content" }, St = { class: "vf-nav-menu__group-label" }, zt = ["aria-expanded", "disabled"], Mt = { class: "vf-nav-menu__item-content" }, Pt = {
1157
1157
  key: 0,
1158
1158
  class: "vf-nav-menu__leading-icon",
1159
1159
  "aria-hidden": "true"
1160
- }, Pt = { class: "vf-nav-menu__label" }, Nt = { class: "vf-nav-menu__item-content" }, Ft = {
1160
+ }, Nt = { class: "vf-nav-menu__label" }, Ft = { class: "vf-nav-menu__item-content" }, Rt = {
1161
1161
  key: 0,
1162
1162
  class: "vf-nav-menu__leading-icon",
1163
1163
  "aria-hidden": "true"
1164
- }, Rt = { class: "vf-nav-menu__label" }, Ht = ["aria-current", "disabled"], Kt = { class: "vf-nav-menu__item-content" }, jt = {
1164
+ }, Ht = { class: "vf-nav-menu__label" }, Kt = ["aria-current", "disabled"], jt = { class: "vf-nav-menu__item-content" }, qt = {
1165
1165
  key: 0,
1166
1166
  class: "vf-nav-menu__leading-icon",
1167
1167
  "aria-hidden": "true"
1168
- }, qt = { class: "vf-nav-menu__label" }, Wt = {
1168
+ }, Ut = { class: "vf-nav-menu__label" }, Wt = {
1169
1169
  key: 4,
1170
1170
  class: "vf-nav-menu__list vf-nav-menu__list--nested"
1171
- }, Ut = { class: "vf-nav-menu__list vf-nav-menu__list--nested" }, Yt = /* @__PURE__ */ L({
1171
+ }, Yt = { class: "vf-nav-menu__list vf-nav-menu__list--nested" }, Xt = /* @__PURE__ */ L({
1172
1172
  name: "VfNavMenuItemNode",
1173
1173
  __name: "VfNavMenuItemNode",
1174
1174
  props: {
@@ -1185,16 +1185,16 @@ const tt = {
1185
1185
  return !!((c = e.item.children) != null && c.length);
1186
1186
  }), r = s(() => e.item.kind === "group"), u = s(
1187
1187
  () => e.expandedValues.includes(e.item.value)
1188
- ), v = s(() => e.activeValue === e.item.value), _ = s(
1188
+ ), v = s(() => e.activeValue === e.item.value), y = s(
1189
1189
  () => e.item.href !== void 0 || e.item.to !== void 0
1190
- ), b = s(() => e.item.to !== void 0 ? re("RouterLink") : "a"), p = s(() => e.item.rel ? e.item.rel : e.item.target === "_blank" ? "noopener noreferrer" : void 0), C = s(() => e.item.to !== void 0 ? {
1190
+ ), g = s(() => e.item.to !== void 0 ? re("RouterLink") : "a"), m = s(() => e.item.rel ? e.item.rel : e.item.target === "_blank" ? "noopener noreferrer" : void 0), C = s(() => e.item.to !== void 0 ? {
1191
1191
  to: e.item.to,
1192
1192
  target: e.item.target,
1193
- rel: p.value
1193
+ rel: m.value
1194
1194
  } : {
1195
1195
  href: e.item.href,
1196
1196
  target: e.item.target,
1197
- rel: p.value
1197
+ rel: m.value
1198
1198
  });
1199
1199
  function x() {
1200
1200
  e.item.disabled || i("toggle", {
@@ -1217,7 +1217,7 @@ const tt = {
1217
1217
  const o = S(c);
1218
1218
  o.style.overflow = "hidden", o.style.height = "0", o.style.opacity = "0";
1219
1219
  }
1220
- function M(c) {
1220
+ function z(c) {
1221
1221
  const o = S(c);
1222
1222
  requestAnimationFrame(() => {
1223
1223
  o.style.height = `${o.scrollHeight}px`, o.style.opacity = "1";
@@ -1237,22 +1237,22 @@ const tt = {
1237
1237
  o.style.height = "0", o.style.opacity = "0";
1238
1238
  });
1239
1239
  }
1240
- function m(c) {
1240
+ function h(c) {
1241
1241
  const o = c;
1242
1242
  o.style.transition = "", o.style.overflow = "", o.style.height = "", o.style.opacity = "";
1243
1243
  }
1244
1244
  return (c, o) => {
1245
- const B = He("VfNavMenuItemNode", !0);
1246
- return d(), h("li", Dt, [
1247
- r.value ? (d(), h("div", {
1245
+ const E = He("VfNavMenuItemNode", !0);
1246
+ return d(), _("li", It, [
1247
+ r.value ? (d(), _("div", {
1248
1248
  key: 0,
1249
1249
  class: P(["vf-nav-menu__group", `vf-nav-menu__group--level-${t.level}`]),
1250
1250
  style: W({ "--vf-nav-menu-level": String(t.level) })
1251
1251
  }, [
1252
- T("span", It, [
1253
- T("span", Lt, F(t.item.label), 1)
1252
+ T("span", Lt, [
1253
+ T("span", St, N(t.item.label), 1)
1254
1254
  ])
1255
- ], 6)) : l.value ? (d(), h("button", {
1255
+ ], 6)) : l.value ? (d(), _("button", {
1256
1256
  key: 1,
1257
1257
  class: P([
1258
1258
  "vf-nav-menu__item",
@@ -1266,24 +1266,24 @@ const tt = {
1266
1266
  onClick: x
1267
1267
  }, [
1268
1268
  T("span", Mt, [
1269
- t.item.leadingIcon ? (d(), h("span", zt, [
1270
- j(y(te), {
1269
+ t.item.leadingIcon ? (d(), _("span", Pt, [
1270
+ j(p(Z), {
1271
1271
  icon: t.item.leadingIcon,
1272
1272
  size: "1rem"
1273
1273
  }, null, 8, ["icon"])
1274
1274
  ])) : O("", !0),
1275
- T("span", Pt, F(t.item.label), 1)
1275
+ T("span", Nt, N(t.item.label), 1)
1276
1276
  ]),
1277
1277
  T("span", {
1278
1278
  class: P(["vf-nav-menu__icon", u.value && "vf-nav-menu__icon--open"]),
1279
1279
  "aria-hidden": "true"
1280
1280
  }, [
1281
- j(y(te), {
1282
- icon: y(X).chevronDown,
1281
+ j(p(Z), {
1282
+ icon: p(U).chevronDown,
1283
1283
  size: "0.875rem"
1284
1284
  }, null, 8, ["icon"])
1285
1285
  ], 2)
1286
- ], 14, St)) : _.value ? (d(), q(re(b.value), H({ key: 2 }, C.value, {
1286
+ ], 14, zt)) : y.value ? (d(), q(re(g.value), H({ key: 2 }, C.value, {
1287
1287
  class: [
1288
1288
  "vf-nav-menu__item",
1289
1289
  v.value && "vf-nav-menu__item--active",
@@ -1293,19 +1293,19 @@ const tt = {
1293
1293
  "aria-current": v.value ? "page" : void 0,
1294
1294
  onClick: w
1295
1295
  }), {
1296
- default: Q(() => [
1297
- T("span", Nt, [
1298
- t.item.leadingIcon ? (d(), h("span", Ft, [
1299
- j(y(te), {
1296
+ default: G(() => [
1297
+ T("span", Ft, [
1298
+ t.item.leadingIcon ? (d(), _("span", Rt, [
1299
+ j(p(Z), {
1300
1300
  icon: t.item.leadingIcon,
1301
1301
  size: "1rem"
1302
1302
  }, null, 8, ["icon"])
1303
1303
  ])) : O("", !0),
1304
- T("span", Rt, F(t.item.label), 1)
1304
+ T("span", Ht, N(t.item.label), 1)
1305
1305
  ])
1306
1306
  ]),
1307
1307
  _: 1
1308
- }, 16, ["class", "style", "aria-current"])) : (d(), h("button", {
1308
+ }, 16, ["class", "style", "aria-current"])) : (d(), _("button", {
1309
1309
  key: 3,
1310
1310
  class: P([
1311
1311
  "vf-nav-menu__item",
@@ -1318,54 +1318,54 @@ const tt = {
1318
1318
  type: "button",
1319
1319
  onClick: o[0] || (o[0] = (A) => w())
1320
1320
  }, [
1321
- T("span", Kt, [
1322
- t.item.leadingIcon ? (d(), h("span", jt, [
1323
- j(y(te), {
1321
+ T("span", jt, [
1322
+ t.item.leadingIcon ? (d(), _("span", qt, [
1323
+ j(p(Z), {
1324
1324
  icon: t.item.leadingIcon,
1325
1325
  size: "1rem"
1326
1326
  }, null, 8, ["icon"])
1327
1327
  ])) : O("", !0),
1328
- T("span", qt, F(t.item.label), 1)
1328
+ T("span", Ut, N(t.item.label), 1)
1329
1329
  ])
1330
- ], 14, Ht)),
1331
- l.value && r.value ? (d(), h("ul", Wt, [
1332
- (d(!0), h(ue, null, de(t.item.children, (A) => (d(), q(B, {
1330
+ ], 14, Kt)),
1331
+ l.value && r.value ? (d(), _("ul", Wt, [
1332
+ (d(!0), _(ue, null, de(t.item.children, (A) => (d(), q(E, {
1333
1333
  key: A.value,
1334
1334
  item: A,
1335
1335
  level: t.level + 1,
1336
1336
  "parent-path": [...t.parentPath, t.item.value],
1337
1337
  "active-value": t.activeValue,
1338
1338
  "expanded-values": t.expandedValues,
1339
- onToggle: o[1] || (o[1] = (z) => i("toggle", z)),
1340
- onSelect: o[2] || (o[2] = (z) => i("select", z))
1339
+ onToggle: o[1] || (o[1] = (M) => i("toggle", M)),
1340
+ onSelect: o[2] || (o[2] = (M) => i("select", M))
1341
1341
  }, null, 8, ["item", "level", "parent-path", "active-value", "expanded-values"]))), 128))
1342
1342
  ])) : l.value ? (d(), q(ne, {
1343
1343
  key: 5,
1344
1344
  onBeforeEnter: I,
1345
- onEnter: M,
1345
+ onEnter: z,
1346
1346
  onAfterEnter: $,
1347
1347
  onBeforeLeave: f,
1348
1348
  onLeave: a,
1349
- onAfterLeave: m
1349
+ onAfterLeave: h
1350
1350
  }, {
1351
- default: Q(() => [
1352
- u.value ? (d(), h("div", {
1351
+ default: G(() => [
1352
+ u.value ? (d(), _("div", {
1353
1353
  key: 0,
1354
1354
  class: P([
1355
1355
  "vf-nav-menu__collapse",
1356
1356
  `vf-nav-menu__collapse--level-${t.level}`
1357
1357
  ])
1358
1358
  }, [
1359
- T("ul", Ut, [
1360
- (d(!0), h(ue, null, de(t.item.children, (A) => (d(), q(B, {
1359
+ T("ul", Yt, [
1360
+ (d(!0), _(ue, null, de(t.item.children, (A) => (d(), q(E, {
1361
1361
  key: A.value,
1362
1362
  item: A,
1363
1363
  level: t.level + 1,
1364
1364
  "parent-path": [...t.parentPath, t.item.value],
1365
1365
  "active-value": t.activeValue,
1366
1366
  "expanded-values": t.expandedValues,
1367
- onToggle: o[3] || (o[3] = (z) => i("toggle", z)),
1368
- onSelect: o[4] || (o[4] = (z) => i("select", z))
1367
+ onToggle: o[3] || (o[3] = (M) => i("toggle", M)),
1368
+ onSelect: o[4] || (o[4] = (M) => i("select", M))
1369
1369
  }, null, 8, ["item", "level", "parent-path", "active-value", "expanded-values"]))), 128))
1370
1370
  ])
1371
1371
  ], 2)) : O("", !0)
@@ -1375,7 +1375,7 @@ const tt = {
1375
1375
  ]);
1376
1376
  };
1377
1377
  }
1378
- }), Xt = ["aria-label"], Gt = { class: "vf-nav-menu__list" }, Sn = /* @__PURE__ */ L({
1378
+ }), Gt = ["aria-label"], Qt = { class: "vf-nav-menu__list" }, Pn = /* @__PURE__ */ L({
1379
1379
  __name: "VfNavMenu",
1380
1380
  props: {
1381
1381
  items: {},
@@ -1387,34 +1387,34 @@ const tt = {
1387
1387
  emits: ["update:modelValue", "change", "select"],
1388
1388
  setup(t, { emit: n }) {
1389
1389
  const e = t, i = n, l = D(e.defaultValue), r = s(() => e.modelValue ?? l.value), u = D([]);
1390
- function v(a, m) {
1390
+ function v(a, h) {
1391
1391
  return a.some(
1392
1392
  (c) => {
1393
1393
  var o;
1394
- return m(c) || ((o = c.children) != null && o.length ? v(c.children, m) : !1);
1394
+ return h(c) || ((o = c.children) != null && o.length ? v(c.children, h) : !1);
1395
1395
  }
1396
1396
  );
1397
1397
  }
1398
- const _ = s(
1398
+ const y = s(
1399
1399
  () => v(e.items, (a) => a.kind === "group")
1400
- ), b = s(
1400
+ ), g = s(
1401
1401
  () => v(e.items, (a) => !!a.leadingIcon)
1402
- ), p = s(() => !_.value && !b.value);
1402
+ ), m = s(() => !y.value && !g.value);
1403
1403
  function C(a) {
1404
- var m;
1405
- return a.kind !== "group" && !!((m = a.children) != null && m.length);
1404
+ var h;
1405
+ return a.kind !== "group" && !!((h = a.children) != null && h.length);
1406
1406
  }
1407
- function x(a, m, c = []) {
1407
+ function x(a, h, c = []) {
1408
1408
  var o;
1409
- if (!m)
1409
+ if (!h)
1410
1410
  return [];
1411
- for (const B of a) {
1412
- if (B.value === m)
1411
+ for (const E of a) {
1412
+ if (E.value === h)
1413
1413
  return c;
1414
- if ((o = B.children) != null && o.length) {
1415
- const A = x(B.children, m, [
1414
+ if ((o = E.children) != null && o.length) {
1415
+ const A = x(E.children, h, [
1416
1416
  ...c,
1417
- B.value
1417
+ E.value
1418
1418
  ]);
1419
1419
  if (A.length)
1420
1420
  return A;
@@ -1428,25 +1428,25 @@ const tt = {
1428
1428
  /* @__PURE__ */ new Set([...u.value, ...a])
1429
1429
  );
1430
1430
  }
1431
- function S(a, m) {
1431
+ function S(a, h) {
1432
1432
  var A;
1433
- if (!m.length)
1433
+ if (!h.length)
1434
1434
  return a;
1435
- const [c, ...o] = m, B = a.find((z) => z.value === c);
1436
- return (A = B == null ? void 0 : B.children) != null && A.length ? S(B.children, o) : [];
1435
+ const [c, ...o] = h, E = a.find((M) => M.value === c);
1436
+ return (A = E == null ? void 0 : E.children) != null && A.length ? S(E.children, o) : [];
1437
1437
  }
1438
1438
  function I(a) {
1439
- return a.flatMap((m) => {
1439
+ return a.flatMap((h) => {
1440
1440
  var o;
1441
- const c = (o = m.children) != null && o.length ? I(m.children) : [];
1442
- return C(m) ? [m.value, ...c] : c;
1441
+ const c = (o = h.children) != null && o.length ? I(h.children) : [];
1442
+ return C(h) ? [h.value, ...c] : c;
1443
1443
  });
1444
1444
  }
1445
- function M(a) {
1445
+ function z(a) {
1446
1446
  e.modelValue === void 0 && (l.value = a), i("update:modelValue", a), i("change", a);
1447
1447
  }
1448
1448
  function $(a) {
1449
- M(a.value), u.value = Array.from(
1449
+ z(a.value), u.value = Array.from(
1450
1450
  /* @__PURE__ */ new Set([
1451
1451
  ...u.value,
1452
1452
  ...x(e.items, a.value)
@@ -1454,33 +1454,33 @@ const tt = {
1454
1454
  ), i("select", a);
1455
1455
  }
1456
1456
  function f(a) {
1457
- const { value: m, parentPath: c } = a;
1458
- if (u.value.includes(m)) {
1457
+ const { value: h, parentPath: c } = a;
1458
+ if (u.value.includes(h)) {
1459
1459
  u.value = u.value.filter(
1460
- (o) => o !== m
1460
+ (o) => o !== h
1461
1461
  );
1462
1462
  return;
1463
1463
  }
1464
1464
  if (e.expandMode === "single") {
1465
- const B = S(e.items, c).filter((A) => A.value !== m && C(A)).flatMap((A) => I([A]));
1465
+ const E = S(e.items, c).filter((A) => A.value !== h && C(A)).flatMap((A) => I([A]));
1466
1466
  u.value = u.value.filter(
1467
- (A) => !B.includes(A)
1467
+ (A) => !E.includes(A)
1468
1468
  );
1469
1469
  }
1470
- u.value = [...u.value, m];
1470
+ u.value = [...u.value, h];
1471
1471
  }
1472
- return Z(
1472
+ return ee(
1473
1473
  () => [e.items, r.value],
1474
1474
  () => {
1475
1475
  w();
1476
1476
  },
1477
1477
  { immediate: !0, deep: !0 }
1478
- ), (a, m) => (d(), h("nav", {
1479
- class: P(["vf-nav-menu", p.value && "vf-nav-menu--simple"]),
1478
+ ), (a, h) => (d(), _("nav", {
1479
+ class: P(["vf-nav-menu", m.value && "vf-nav-menu--simple"]),
1480
1480
  "aria-label": t.ariaLabel
1481
1481
  }, [
1482
- T("ul", Gt, [
1483
- (d(!0), h(ue, null, de(t.items, (c) => (d(), q(Yt, {
1482
+ T("ul", Qt, [
1483
+ (d(!0), _(ue, null, de(t.items, (c) => (d(), q(Xt, {
1484
1484
  key: c.value,
1485
1485
  item: c,
1486
1486
  level: 0,
@@ -1491,9 +1491,9 @@ const tt = {
1491
1491
  onSelect: $
1492
1492
  }, null, 8, ["item", "active-value", "expanded-values"]))), 128))
1493
1493
  ])
1494
- ], 10, Xt));
1494
+ ], 10, Gt));
1495
1495
  }
1496
- }), Qt = { key: 0 }, Jt = { class: "vf-panel__title" }, Mn = /* @__PURE__ */ L({
1496
+ }), Jt = { key: 0 }, Zt = { class: "vf-panel__title" }, Nn = /* @__PURE__ */ L({
1497
1497
  inheritAttrs: !1,
1498
1498
  __name: "VfPanel",
1499
1499
  props: {
@@ -1502,18 +1502,18 @@ const tt = {
1502
1502
  },
1503
1503
  setup(t) {
1504
1504
  const n = t, e = R(), i = s(
1505
- () => N("vf-panel", n.subtle && "vf-panel--subtle")
1505
+ () => F("vf-panel", n.subtle && "vf-panel--subtle")
1506
1506
  );
1507
- return (l, r) => (d(), h("section", H({ class: i.value }, y(e)), [
1508
- n.title || l.$slots.header ? (d(), h("header", Qt, [
1509
- E(l.$slots, "header", {}, () => [
1510
- T("h3", Jt, F(n.title), 1)
1507
+ return (l, r) => (d(), _("section", H({ class: i.value }, p(e)), [
1508
+ n.title || l.$slots.header ? (d(), _("header", Jt, [
1509
+ B(l.$slots, "header", {}, () => [
1510
+ T("h3", Zt, N(n.title), 1)
1511
1511
  ])
1512
1512
  ])) : O("", !0),
1513
- E(l.$slots, "default")
1513
+ B(l.$slots, "default")
1514
1514
  ], 16));
1515
1515
  }
1516
- }), Zt = { class: "vf-popover" }, en = ["id", "aria-controls", "aria-expanded"], tn = ["id", "aria-labelledby"], zn = /* @__PURE__ */ L({
1516
+ }), en = { class: "vf-popover" }, tn = ["id", "aria-controls", "aria-expanded"], nn = ["id", "aria-labelledby"], Fn = /* @__PURE__ */ L({
1517
1517
  __name: "VfPopover",
1518
1518
  props: {
1519
1519
  open: { type: Boolean, default: void 0 },
@@ -1526,10 +1526,10 @@ const tt = {
1526
1526
  },
1527
1527
  emits: ["update:open", "openChange"],
1528
1528
  setup(t, { emit: n }) {
1529
- const e = t, i = n, l = D(null), r = D(null), u = D(null), v = G({ prefix: "vf-popover-content" }), _ = G({ prefix: "vf-popover-trigger" }), b = {
1530
- enter: U.fast,
1531
- leave: U.fast
1532
- }, p = s(
1529
+ const e = t, i = n, l = D(null), r = D(null), u = D(null), v = Q({ prefix: "vf-popover-content" }), y = Q({ prefix: "vf-popover-trigger" }), g = {
1530
+ enter: Y.fast,
1531
+ leave: Y.fast
1532
+ }, m = s(
1533
1533
  () => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
1534
1534
  ), C = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), x = se({
1535
1535
  defaultOpen: e.defaultOpen,
@@ -1541,7 +1541,7 @@ const tt = {
1541
1541
  () => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
1542
1542
  ), {
1543
1543
  placement: I,
1544
- middlewareData: M,
1544
+ middlewareData: z,
1545
1545
  styles: $
1546
1546
  } = ye(l, r, {
1547
1547
  enabled: w,
@@ -1559,12 +1559,12 @@ const tt = {
1559
1559
  "vf-popover__content",
1560
1560
  I.value.startsWith("top") && "vf-popover__content--top"
1561
1561
  ]), a = s(() => {
1562
- const k = M.value.arrow;
1562
+ const k = z.value.arrow;
1563
1563
  return {
1564
1564
  x: (k == null ? void 0 : k.x) !== void 0 && (k == null ? void 0 : k.baseX) !== void 0 ? k.x - k.baseX : 0,
1565
1565
  y: (k == null ? void 0 : k.y) !== void 0 && (k == null ? void 0 : k.baseY) !== void 0 ? k.y - k.baseY : 0
1566
1566
  };
1567
- }), m = s(() => ({
1567
+ }), h = s(() => ({
1568
1568
  left: `${a.value.x}px`,
1569
1569
  top: `${a.value.y}px`
1570
1570
  })), c = s(() => [
@@ -1573,7 +1573,7 @@ const tt = {
1573
1573
  ]);
1574
1574
  async function o() {
1575
1575
  var J, ie;
1576
- await ae();
1576
+ await oe();
1577
1577
  const k = (J = r.value) == null ? void 0 : J.querySelector(
1578
1578
  "[autofocus], [data-autofocus]"
1579
1579
  );
@@ -1583,22 +1583,22 @@ const tt = {
1583
1583
  }
1584
1584
  (ie = r.value) == null || ie.focus();
1585
1585
  }
1586
- function B() {
1586
+ function E() {
1587
1587
  x.open(), o();
1588
1588
  }
1589
1589
  function A() {
1590
1590
  var k;
1591
1591
  x.close(), (k = l.value) == null || k.focus();
1592
1592
  }
1593
- function z() {
1593
+ function M() {
1594
1594
  if (w.value) {
1595
1595
  A();
1596
1596
  return;
1597
1597
  }
1598
- B();
1598
+ E();
1599
1599
  }
1600
1600
  function V(k) {
1601
- (k.key === "Enter" || k.key === " ") && (k.preventDefault(), z()), k.key === "ArrowDown" && (k.preventDefault(), B());
1601
+ (k.key === "Enter" || k.key === " ") && (k.preventDefault(), M()), k.key === "ArrowDown" && (k.preventDefault(), E());
1602
1602
  }
1603
1603
  return Oe(
1604
1604
  [l, r],
@@ -1616,42 +1616,42 @@ const tt = {
1616
1616
  {
1617
1617
  enabled: w
1618
1618
  }
1619
- ), (k, J) => (d(), h("div", Zt, [
1619
+ ), (k, J) => (d(), _("div", en, [
1620
1620
  T("div", {
1621
- id: y(_),
1621
+ id: p(y),
1622
1622
  ref_key: "triggerRef",
1623
1623
  ref: l,
1624
1624
  class: "vf-popover__trigger",
1625
- "aria-controls": y(v),
1626
- "aria-expanded": y(w),
1625
+ "aria-controls": p(v),
1626
+ "aria-expanded": p(w),
1627
1627
  "aria-haspopup": "dialog",
1628
1628
  tabindex: "0",
1629
- onClick: z,
1629
+ onClick: M,
1630
1630
  onKeydown: V
1631
1631
  }, [
1632
- E(k.$slots, "trigger", {
1633
- open: y(w),
1634
- toggle: z
1632
+ B(k.$slots, "trigger", {
1633
+ open: p(w),
1634
+ toggle: M
1635
1635
  })
1636
- ], 40, en),
1636
+ ], 40, tn),
1637
1637
  (d(), q(le, {
1638
1638
  to: C.value,
1639
- disabled: p.value
1639
+ disabled: m.value
1640
1640
  }, [
1641
1641
  j(ne, {
1642
1642
  name: "vf-floating-transition",
1643
1643
  appear: "",
1644
- duration: b
1644
+ duration: g
1645
1645
  }, {
1646
- default: Q(() => [
1647
- y(w) ? (d(), h("section", {
1646
+ default: G(() => [
1647
+ p(w) ? (d(), _("section", {
1648
1648
  key: 0,
1649
- id: y(v),
1649
+ id: p(v),
1650
1650
  ref_key: "contentRef",
1651
1651
  ref: r,
1652
1652
  class: P(f.value),
1653
- style: W(y($)),
1654
- "aria-labelledby": y(_),
1653
+ style: W(p($)),
1654
+ "aria-labelledby": p(y),
1655
1655
  role: "dialog",
1656
1656
  tabindex: "-1"
1657
1657
  }, [
@@ -1659,24 +1659,24 @@ const tt = {
1659
1659
  ref_key: "arrowRef",
1660
1660
  ref: u,
1661
1661
  class: P(c.value),
1662
- style: W(m.value),
1662
+ style: W(h.value),
1663
1663
  "aria-hidden": "true"
1664
1664
  }, null, 6),
1665
- E(k.$slots, "default", {
1666
- open: y(w),
1665
+ B(k.$slots, "default", {
1666
+ open: p(w),
1667
1667
  close: A
1668
1668
  })
1669
- ], 14, tn)) : O("", !0)
1669
+ ], 14, nn)) : O("", !0)
1670
1670
  ]),
1671
1671
  _: 3
1672
1672
  })
1673
1673
  ], 8, ["to", "disabled"]))
1674
1674
  ]));
1675
1675
  }
1676
- }), nn = ["checked", "disabled", "value", "aria-invalid"], an = {
1676
+ }), an = ["checked", "disabled", "value", "aria-invalid"], on = {
1677
1677
  key: 0,
1678
1678
  class: "vf-radio__content"
1679
- }, Pn = /* @__PURE__ */ L({
1679
+ }, Rn = /* @__PURE__ */ L({
1680
1680
  inheritAttrs: !1,
1681
1681
  __name: "VfRadio",
1682
1682
  props: {
@@ -1690,7 +1690,7 @@ const tt = {
1690
1690
  emits: ["update:modelValue", "change"],
1691
1691
  setup(t, { emit: n }) {
1692
1692
  const e = t, i = n, l = R(), r = s(() => e.modelValue === e.value), u = s(
1693
- () => N(
1693
+ () => F(
1694
1694
  "vf-radio",
1695
1695
  `vf-radio--${e.size}`,
1696
1696
  r.value && "vf-radio--checked",
@@ -1698,15 +1698,15 @@ const tt = {
1698
1698
  e.disabled && "vf-radio--disabled",
1699
1699
  l.class
1700
1700
  )
1701
- ), v = s(() => l.style), _ = s(
1701
+ ), v = s(() => l.style), y = s(
1702
1702
  () => Object.fromEntries(
1703
- Object.entries(l).filter(([p]) => p !== "class" && p !== "style")
1703
+ Object.entries(l).filter(([m]) => m !== "class" && m !== "style")
1704
1704
  )
1705
1705
  );
1706
- function b(p) {
1707
- p.target.checked && (i("update:modelValue", e.value), i("change", e.value));
1706
+ function g(m) {
1707
+ m.target.checked && (i("update:modelValue", e.value), i("change", e.value));
1708
1708
  }
1709
- return (p, C) => (d(), h("label", {
1709
+ return (m, C) => (d(), _("label", {
1710
1710
  class: P(u.value),
1711
1711
  style: W(v.value)
1712
1712
  }, [
@@ -1717,24 +1717,27 @@ const tt = {
1717
1717
  disabled: e.disabled,
1718
1718
  value: e.value,
1719
1719
  "aria-invalid": e.invalid || void 0
1720
- }, _.value, { onChange: b }), null, 16, nn),
1720
+ }, y.value, { onChange: g }), null, 16, an),
1721
1721
  C[0] || (C[0] = T("span", {
1722
1722
  class: "vf-radio__control",
1723
1723
  "aria-hidden": "true"
1724
1724
  }, [
1725
1725
  T("span", { class: "vf-radio__dot" })
1726
1726
  ], -1)),
1727
- t.label || p.$slots.default ? (d(), h("span", an, [
1728
- E(p.$slots, "default", {}, () => [
1729
- oe(F(t.label), 1)
1727
+ t.label || m.$slots.default ? (d(), _("span", on, [
1728
+ B(m.$slots, "default", {}, () => [
1729
+ ae(N(t.label), 1)
1730
1730
  ])
1731
1731
  ])) : O("", !0)
1732
1732
  ], 6));
1733
1733
  }
1734
- }), on = ["checked", "disabled"], ln = {
1734
+ }), ln = ["checked", "disabled"], sn = {
1735
+ class: "vf-switch__control",
1736
+ "aria-hidden": "true"
1737
+ }, rn = { class: "vf-switch__thumb" }, un = {
1735
1738
  key: 0,
1736
1739
  class: "vf-switch__content"
1737
- }, Nn = /* @__PURE__ */ L({
1740
+ }, dn = /* @__PURE__ */ L({
1738
1741
  inheritAttrs: !1,
1739
1742
  __name: "VfSwitch",
1740
1743
  props: {
@@ -1746,7 +1749,7 @@ const tt = {
1746
1749
  emits: ["update:modelValue", "change"],
1747
1750
  setup(t, { emit: n }) {
1748
1751
  const e = t, i = n, l = R(), r = s(
1749
- () => N(
1752
+ () => F(
1750
1753
  "vf-switch",
1751
1754
  `vf-switch--${e.size}`,
1752
1755
  e.modelValue && "vf-switch--checked",
@@ -1755,14 +1758,14 @@ const tt = {
1755
1758
  )
1756
1759
  ), u = s(() => l.style), v = s(
1757
1760
  () => Object.fromEntries(
1758
- Object.entries(l).filter(([b]) => b !== "class" && b !== "style")
1761
+ Object.entries(l).filter(([g]) => g !== "class" && g !== "style")
1759
1762
  )
1760
1763
  );
1761
- function _(b) {
1762
- const p = b.target.checked;
1763
- i("update:modelValue", p), i("change", p);
1764
+ function y(g) {
1765
+ const m = g.target.checked;
1766
+ i("update:modelValue", m), i("change", m);
1764
1767
  }
1765
- return (b, p) => (d(), h("label", {
1768
+ return (g, m) => (d(), _("label", {
1766
1769
  class: P(r.value),
1767
1770
  style: W(u.value)
1768
1771
  }, [
@@ -1772,21 +1775,60 @@ const tt = {
1772
1775
  role: "switch",
1773
1776
  checked: e.modelValue,
1774
1777
  disabled: e.disabled
1775
- }, v.value, { onChange: _ }), null, 16, on),
1776
- p[0] || (p[0] = T("span", {
1777
- class: "vf-switch__control",
1778
- "aria-hidden": "true"
1779
- }, [
1780
- T("span", { class: "vf-switch__thumb" })
1781
- ], -1)),
1782
- t.label || b.$slots.default ? (d(), h("span", ln, [
1783
- E(b.$slots, "default", {}, () => [
1784
- oe(F(t.label), 1)
1778
+ }, v.value, { onChange: y }), null, 16, ln),
1779
+ T("span", sn, [
1780
+ T("span", rn, [
1781
+ B(g.$slots, "thumb", {
1782
+ checked: e.modelValue
1783
+ })
1784
+ ])
1785
+ ]),
1786
+ t.label || g.$slots.default ? (d(), _("span", un, [
1787
+ B(g.$slots, "default", {}, () => [
1788
+ ae(N(t.label), 1)
1785
1789
  ])
1786
1790
  ])) : O("", !0)
1787
1791
  ], 6));
1788
1792
  }
1789
- }), Fn = /* @__PURE__ */ L({
1793
+ }), Hn = /* @__PURE__ */ L({
1794
+ inheritAttrs: !1,
1795
+ __name: "VfThemeSwitch",
1796
+ props: {
1797
+ size: { default: "md" },
1798
+ disabled: { type: Boolean, default: !1 },
1799
+ label: { default: void 0 }
1800
+ },
1801
+ setup(t) {
1802
+ const n = t, e = R(), { resolvedTheme: i, setTheme: l } = Qe(), r = s({
1803
+ get: () => i.value === "dark",
1804
+ set: (u) => {
1805
+ l(u ? "dark" : "light");
1806
+ }
1807
+ });
1808
+ return (u, v) => (d(), q(dn, H(p(e), {
1809
+ modelValue: r.value,
1810
+ "onUpdate:modelValue": v[0] || (v[0] = (y) => r.value = y),
1811
+ size: n.size,
1812
+ disabled: n.disabled,
1813
+ label: n.label
1814
+ }), {
1815
+ thumb: G(({ checked: y }) => [
1816
+ B(u.$slots, "thumb", { checked: y }, () => [
1817
+ j(p(Z), {
1818
+ icon: y ? p(U).moon : p(U).sun,
1819
+ size: "0.5rem"
1820
+ }, null, 8, ["icon"])
1821
+ ])
1822
+ ]),
1823
+ default: G(() => [
1824
+ u.$slots.default || n.label ? B(u.$slots, "default", { key: 0 }, () => [
1825
+ ae(N(n.label), 1)
1826
+ ]) : O("", !0)
1827
+ ]),
1828
+ _: 3
1829
+ }, 16, ["modelValue", "size", "disabled", "label"]));
1830
+ }
1831
+ }), Kn = /* @__PURE__ */ L({
1790
1832
  inheritAttrs: !1,
1791
1833
  __name: "VfTag",
1792
1834
  props: {
@@ -1794,17 +1836,17 @@ const tt = {
1794
1836
  },
1795
1837
  setup(t) {
1796
1838
  const n = t, e = R(), i = s(
1797
- () => N("vf-tag", n.tone !== "neutral" && `vf-tag--${n.tone}`)
1839
+ () => F("vf-tag", n.tone !== "neutral" && `vf-tag--${n.tone}`)
1798
1840
  );
1799
- return (l, r) => (d(), h("span", H({ class: i.value }, y(e)), [
1800
- E(l.$slots, "default")
1841
+ return (l, r) => (d(), _("span", H({ class: i.value }, p(e)), [
1842
+ B(l.$slots, "default")
1801
1843
  ], 16));
1802
1844
  }
1803
- }), sn = { class: "vf-tabs" }, rn = {
1845
+ }), cn = { class: "vf-tabs" }, fn = {
1804
1846
  class: "vf-tabs__list",
1805
1847
  role: "tablist",
1806
1848
  "aria-orientation": "horizontal"
1807
- }, un = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], dn = ["id", "aria-labelledby"], Rn = /* @__PURE__ */ L({
1849
+ }, vn = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], pn = ["id", "aria-labelledby"], jn = /* @__PURE__ */ L({
1808
1850
  __name: "VfTabs",
1809
1851
  props: {
1810
1852
  items: {},
@@ -1813,51 +1855,51 @@ const tt = {
1813
1855
  },
1814
1856
  emits: ["update:modelValue", "change"],
1815
1857
  setup(t, { emit: n }) {
1816
- const e = t, i = n, l = G({ prefix: "vf-tabs" }), r = D([]), u = s(
1858
+ const e = t, i = n, l = Q({ prefix: "vf-tabs" }), r = D([]), u = s(
1817
1859
  () => {
1818
1860
  var $;
1819
1861
  return ($ = e.items.find((f) => !f.disabled)) == null ? void 0 : $.value;
1820
1862
  }
1821
- ), v = D(e.defaultValue ?? u.value), _ = s(() => e.modelValue !== void 0), b = s(
1863
+ ), v = D(e.defaultValue ?? u.value), y = s(() => e.modelValue !== void 0), g = s(
1822
1864
  () => e.modelValue ?? v.value ?? u.value
1823
1865
  );
1824
- Z(
1866
+ ee(
1825
1867
  () => e.items,
1826
1868
  ($) => {
1827
1869
  !$.some(
1828
- (a) => a.value === b.value && !a.disabled
1829
- ) && u.value && p(u.value);
1870
+ (a) => a.value === g.value && !a.disabled
1871
+ ) && u.value && m(u.value);
1830
1872
  },
1831
1873
  { deep: !0 }
1832
1874
  );
1833
- function p($) {
1834
- _.value || (v.value = $), i("update:modelValue", $), i("change", $);
1875
+ function m($) {
1876
+ y.value || (v.value = $), i("update:modelValue", $), i("change", $);
1835
1877
  }
1836
1878
  function C($) {
1837
- $.disabled || p($.value);
1879
+ $.disabled || m($.value);
1838
1880
  }
1839
1881
  function x() {
1840
1882
  return e.items.filter(($) => !$.disabled);
1841
1883
  }
1842
1884
  function w($) {
1843
1885
  var a;
1844
- const f = e.items.findIndex((m) => m.value === $);
1886
+ const f = e.items.findIndex((h) => h.value === $);
1845
1887
  (a = r.value[f]) == null || a.focus();
1846
1888
  }
1847
1889
  function S($, f) {
1848
- const a = x(), m = a.findIndex(
1890
+ const a = x(), h = a.findIndex(
1849
1891
  (c) => c.value === f.value
1850
1892
  );
1851
- if (m !== -1) {
1893
+ if (h !== -1) {
1852
1894
  if ($.key === "ArrowRight" || $.key === "ArrowDown") {
1853
1895
  $.preventDefault();
1854
- const c = a[(m + 1) % a.length];
1896
+ const c = a[(h + 1) % a.length];
1855
1897
  C(c), w(c.value);
1856
1898
  return;
1857
1899
  }
1858
1900
  if ($.key === "ArrowLeft" || $.key === "ArrowUp") {
1859
1901
  $.preventDefault();
1860
- const c = a[(m - 1 + a.length) % a.length];
1902
+ const c = a[(h - 1 + a.length) % a.length];
1861
1903
  C(c), w(c.value);
1862
1904
  return;
1863
1905
  }
@@ -1877,42 +1919,42 @@ const tt = {
1877
1919
  function I($) {
1878
1920
  return `${l.value}-tab-${$}`;
1879
1921
  }
1880
- function M($) {
1922
+ function z($) {
1881
1923
  return `${l.value}-panel-${$}`;
1882
1924
  }
1883
- return ($, f) => (d(), h("div", sn, [
1884
- T("div", rn, [
1885
- (d(!0), h(ue, null, de(t.items, (a, m) => (d(), h("button", {
1925
+ return ($, f) => (d(), _("div", cn, [
1926
+ T("div", fn, [
1927
+ (d(!0), _(ue, null, de(t.items, (a, h) => (d(), _("button", {
1886
1928
  id: I(a.value),
1887
1929
  key: a.value,
1888
1930
  ref_for: !0,
1889
1931
  ref: (c) => {
1890
- r.value[m] = c;
1932
+ r.value[h] = c;
1891
1933
  },
1892
- "aria-controls": M(a.value),
1893
- "aria-selected": b.value === a.value,
1934
+ "aria-controls": z(a.value),
1935
+ "aria-selected": g.value === a.value,
1894
1936
  disabled: a.disabled,
1895
- tabindex: b.value === a.value ? 0 : -1,
1937
+ tabindex: g.value === a.value ? 0 : -1,
1896
1938
  class: "vf-tabs__tab",
1897
1939
  role: "tab",
1898
1940
  type: "button",
1899
1941
  onClick: (c) => C(a),
1900
1942
  onKeydown: (c) => S(c, a)
1901
- }, F(a.label), 41, un))), 128))
1943
+ }, N(a.label), 41, vn))), 128))
1902
1944
  ]),
1903
- b.value ? (d(), h("div", {
1945
+ g.value ? (d(), _("div", {
1904
1946
  key: 0,
1905
- id: M(b.value),
1906
- "aria-labelledby": I(b.value),
1947
+ id: z(g.value),
1948
+ "aria-labelledby": I(g.value),
1907
1949
  class: "vf-tabs__panel",
1908
1950
  role: "tabpanel",
1909
1951
  tabindex: "0"
1910
1952
  }, [
1911
- E($.$slots, "panel", Ve(Ce({ activeValue: b.value })))
1912
- ], 8, dn)) : O("", !0)
1953
+ B($.$slots, "panel", Ve(Ce({ activeValue: g.value })))
1954
+ ], 8, pn)) : O("", !0)
1913
1955
  ]));
1914
1956
  }
1915
- }), cn = ["value", "aria-invalid"], Hn = /* @__PURE__ */ L({
1957
+ }), mn = ["value", "aria-invalid"], qn = /* @__PURE__ */ L({
1916
1958
  inheritAttrs: !1,
1917
1959
  __name: "VfTextarea",
1918
1960
  props: {
@@ -1923,7 +1965,7 @@ const tt = {
1923
1965
  emits: ["update:modelValue"],
1924
1966
  setup(t, { emit: n }) {
1925
1967
  const e = t, i = n, l = R(), r = s(
1926
- () => N(
1968
+ () => F(
1927
1969
  "vf-textarea",
1928
1970
  e.size !== "md" && `vf-textarea--${e.size}`,
1929
1971
  e.invalid && "vf-textarea--invalid"
@@ -1932,13 +1974,13 @@ const tt = {
1932
1974
  function u(v) {
1933
1975
  i("update:modelValue", v.target.value);
1934
1976
  }
1935
- return (v, _) => (d(), h("textarea", H({
1977
+ return (v, y) => (d(), _("textarea", H({
1936
1978
  class: r.value,
1937
1979
  value: e.modelValue,
1938
1980
  "aria-invalid": e.invalid || void 0
1939
- }, y(l), { onInput: u }), null, 16, cn));
1981
+ }, p(l), { onInput: u }), null, 16, mn));
1940
1982
  }
1941
- }), fn = ["aria-describedby"], vn = ["id"], Kn = /* @__PURE__ */ L({
1983
+ }), hn = ["aria-describedby"], yn = ["id"], Un = /* @__PURE__ */ L({
1942
1984
  __name: "VfTooltip",
1943
1985
  props: {
1944
1986
  text: { default: void 0 },
@@ -1948,12 +1990,12 @@ const tt = {
1948
1990
  disableTeleport: { type: Boolean, default: !1 }
1949
1991
  },
1950
1992
  setup(t) {
1951
- const n = t, e = D(!1), i = G({ prefix: "vf-tooltip" }), l = D(null), r = D(null), u = D(null), v = D(null), _ = {
1952
- enter: U.fast,
1953
- leave: U.fast
1954
- }, b = s(
1993
+ const n = t, e = D(!1), i = Q({ prefix: "vf-tooltip" }), l = D(null), r = D(null), u = D(null), v = D(null), y = {
1994
+ enter: Y.fast,
1995
+ leave: Y.fast
1996
+ }, g = s(
1955
1997
  () => n.disableTeleport || n.teleportTo === !1 || n.teleportTo === null
1956
- ), p = s(() => typeof n.teleportTo == "string" || typeof HTMLElement < "u" && n.teleportTo instanceof HTMLElement ? n.teleportTo : "body"), {
1998
+ ), m = s(() => typeof n.teleportTo == "string" || typeof HTMLElement < "u" && n.teleportTo instanceof HTMLElement ? n.teleportTo : "body"), {
1957
1999
  placement: C,
1958
2000
  middlewareData: x,
1959
2001
  styles: w,
@@ -1974,20 +2016,20 @@ const tt = {
1974
2016
  "vf-tooltip__content",
1975
2017
  C.value.startsWith("bottom") && "vf-tooltip__content--bottom",
1976
2018
  C.value.startsWith("top") && "vf-tooltip__content--top"
1977
- ]), M = s(() => {
2019
+ ]), z = s(() => {
1978
2020
  const o = x.value.arrow;
1979
2021
  return {
1980
2022
  x: (o == null ? void 0 : o.x) !== void 0 && (o == null ? void 0 : o.baseX) !== void 0 ? o.x - o.baseX : 0,
1981
2023
  y: (o == null ? void 0 : o.y) !== void 0 && (o == null ? void 0 : o.baseY) !== void 0 ? o.y - o.baseY : 0
1982
2024
  };
1983
2025
  }), $ = s(() => ["vf-tooltip__arrow"]), f = s(() => ({
1984
- left: `${M.value.x}px`,
1985
- top: `${M.value.y}px`
2026
+ left: `${z.value.x}px`,
2027
+ top: `${z.value.y}px`
1986
2028
  }));
1987
2029
  function a() {
1988
2030
  l.value !== null && (window.clearTimeout(l.value), l.value = null);
1989
2031
  }
1990
- function m() {
2032
+ function h() {
1991
2033
  a(), l.value = window.setTimeout(() => {
1992
2034
  e.value = !0;
1993
2035
  }, n.openDelay);
@@ -1995,44 +2037,44 @@ const tt = {
1995
2037
  function c() {
1996
2038
  a(), e.value = !1;
1997
2039
  }
1998
- return ee(() => {
2040
+ return te(() => {
1999
2041
  a(), S();
2000
- }), (o, B) => (d(), h("span", {
2042
+ }), (o, E) => (d(), _("span", {
2001
2043
  class: "vf-tooltip",
2002
- onMouseenter: m,
2044
+ onMouseenter: h,
2003
2045
  onMouseleave: c,
2004
- onFocusin: m,
2046
+ onFocusin: h,
2005
2047
  onFocusout: c
2006
2048
  }, [
2007
2049
  T("span", {
2008
2050
  ref_key: "triggerRef",
2009
2051
  ref: r,
2010
2052
  class: "vf-tooltip__trigger",
2011
- "aria-describedby": e.value ? y(i) : void 0
2053
+ "aria-describedby": e.value ? p(i) : void 0
2012
2054
  }, [
2013
- E(o.$slots, "default")
2014
- ], 8, fn),
2055
+ B(o.$slots, "default")
2056
+ ], 8, hn),
2015
2057
  (d(), q(le, {
2016
- to: p.value,
2017
- disabled: b.value
2058
+ to: m.value,
2059
+ disabled: g.value
2018
2060
  }, [
2019
2061
  j(ne, {
2020
2062
  name: "vf-floating-transition",
2021
2063
  appear: "",
2022
- duration: _
2064
+ duration: y
2023
2065
  }, {
2024
- default: Q(() => [
2025
- e.value && (t.text || o.$slots.content) ? (d(), h("span", {
2066
+ default: G(() => [
2067
+ e.value && (t.text || o.$slots.content) ? (d(), _("span", {
2026
2068
  key: 0,
2027
- id: y(i),
2069
+ id: p(i),
2028
2070
  ref_key: "contentRef",
2029
2071
  ref: u,
2030
2072
  class: P(I.value),
2031
- style: W(y(w)),
2073
+ style: W(p(w)),
2032
2074
  role: "tooltip"
2033
2075
  }, [
2034
- E(o.$slots, "content", {}, () => [
2035
- oe(F(t.text), 1)
2076
+ B(o.$slots, "content", {}, () => [
2077
+ ae(N(t.text), 1)
2036
2078
  ]),
2037
2079
  T("span", {
2038
2080
  ref_key: "arrowRef",
@@ -2041,7 +2083,7 @@ const tt = {
2041
2083
  style: W(f.value),
2042
2084
  "aria-hidden": "true"
2043
2085
  }, null, 6)
2044
- ], 14, vn)) : O("", !0)
2086
+ ], 14, yn)) : O("", !0)
2045
2087
  ]),
2046
2088
  _: 3
2047
2089
  })
@@ -2050,46 +2092,47 @@ const tt = {
2050
2092
  }
2051
2093
  });
2052
2094
  export {
2053
- wn as VfAccordion,
2054
- Tn as VfAlert,
2055
- Vn as VfBadge,
2056
- Cn as VfButton,
2057
- xn as VfCard,
2058
- Bn as VfCheckbox,
2059
- On as VfDialog,
2060
- An as VfDivider,
2061
- En as VfDrawer,
2062
- Dn as VfDropdown,
2095
+ Cn as VfAccordion,
2096
+ xn as VfAlert,
2097
+ Bn as VfBadge,
2098
+ En as VfButton,
2099
+ On as VfCard,
2100
+ An as VfCheckbox,
2101
+ In as VfDialog,
2102
+ Ln as VfDivider,
2103
+ Dn as VfDrawer,
2104
+ Sn as VfDropdown,
2063
2105
  De as VfIconButton,
2064
- In as VfInput,
2065
- Ln as VfLink,
2066
- Sn as VfNavMenu,
2067
- Mn as VfPanel,
2068
- zn as VfPopover,
2069
- Pn as VfRadio,
2070
- Nn as VfSwitch,
2071
- Rn as VfTabs,
2072
- Fn as VfTag,
2073
- Hn as VfTextarea,
2074
- $n as VfThemeProvider,
2075
- Kn as VfTooltip,
2076
- bn as VueForgeCore,
2077
- Wn as createThemePreset,
2078
- Ue as createVueForgeCore,
2079
- bn as default,
2106
+ zn as VfInput,
2107
+ Mn as VfLink,
2108
+ Pn as VfNavMenu,
2109
+ Nn as VfPanel,
2110
+ Fn as VfPopover,
2111
+ Rn as VfRadio,
2112
+ dn as VfSwitch,
2113
+ jn as VfTabs,
2114
+ Kn as VfTag,
2115
+ qn as VfTextarea,
2116
+ Vn as VfThemeProvider,
2117
+ Hn as VfThemeSwitch,
2118
+ Un as VfTooltip,
2119
+ Tn as VueForgeCore,
2120
+ Xn as createThemePreset,
2121
+ We as createVueForgeCore,
2122
+ Tn as default,
2080
2123
  Fe as defaultThemePreset,
2081
- Yn as toMaxWidthQuery,
2082
- Xn as toMinWidthQuery,
2083
- Gn as useBreakpoint,
2084
- Qn as useBreakpointValue,
2085
- Jn as useBreakpoints,
2124
+ Qn as toMaxWidthQuery,
2125
+ Jn as toMinWidthQuery,
2126
+ Zn as useBreakpoint,
2127
+ ea as useBreakpointValue,
2128
+ ta as useBreakpoints,
2086
2129
  Oe as useClickOutside,
2087
2130
  se as useDisclosure,
2088
2131
  fe as useEscapeKey,
2089
2132
  ye as useFloating,
2090
2133
  Ae as useFocusTrap,
2091
- G as useId,
2134
+ Q as useId,
2092
2135
  xe as useScrollLock,
2093
- kn as useTheme,
2094
- Zn as vfBreakpoints
2136
+ Qe as useTheme,
2137
+ na as vfBreakpoints
2095
2138
  };