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