@codemonster-ru/vueforge-core 1.4.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 Me, DEFAULT_STORAGE_KEY as ze, DEFAULT_ATTRIBUTE as Pe, isThemeMode as Ne, vfMotionDurationsMs as U } from "@codemonster-ru/vueforge-theme";
2
- import { createThemePreset as Wn } from "@codemonster-ru/vueforge-theme";
3
- import { defaultThemePreset as Fe } from "./theme-api.js";
4
- import { defineComponent as L, inject as we, computed as s, ref as D, watch as Z, onMounted as ce, onBeforeUnmount as ee, provide as Re, renderSlot as E, toValue as K, nextTick as ae, openBlock as d, createElementBlock as h, createElementVNode as T, unref as y, toDisplayString as F, normalizeClass as P, createVNode as j, Transition as ne, withCtx as Q, createCommentVNode as O, useAttrs as R, mergeProps as H, createTextVNode as oe, normalizeStyle as W, useSlots as Te, createBlock as q, Teleport as le, resolveDynamicComponent as re, normalizeProps as Ve, guardReactiveProps as Ce, resolveComponent as He, Fragment as ue, renderList as de } from "vue";
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 Yn, a as Xn, u as Gn, b as Qn, c as Jn, v as Zn } from "./useScrollLock-FYdn9vRp.js";
7
- import { VueIconify as te, icons as X } from "@codemonster-ru/vueiconify";
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
16
  function We(t, n) {
17
17
  return Se(t, n);
18
18
  }
19
- function Ue() {
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: {
@@ -31,7 +31,7 @@ function Ue() {
31
31
  }
32
32
  };
33
33
  }
34
- const bn = Ue(), Ee = Symbol("VfThemeContext"), $n = /* @__PURE__ */ L({
34
+ const En = Ye(), Ee = Symbol("VfThemeContext"), On = /* @__PURE__ */ A({
35
35
  __name: "VfThemeProvider",
36
36
  props: {
37
37
  defaultTheme: {},
@@ -39,167 +39,167 @@ const bn = Ue(), Ee = Symbol("VfThemeContext"), $n = /* @__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
- () => Me(l.value, r.value)
44
+ ), a = I(i.value), r = I("light"), u = I(null), v = s(
45
+ () => ze(a.value, r.value)
46
+ ), f = s(
47
+ () => n.storageKey ?? (e == null ? void 0 : e.themeMode.storageKey) ?? (e == null ? void 0 : e.theme.options.storageKey) ?? Me
46
48
  ), _ = s(
47
- () => n.storageKey ?? (e == null ? void 0 : e.themeMode.storageKey) ?? (e == null ? void 0 : e.theme.options.storageKey) ?? ze
48
- ), b = s(
49
49
  () => n.attribute ?? (e == null ? void 0 : e.themeMode.attribute) ?? (e == null ? void 0 : e.theme.options.attribute) ?? Pe
50
- ), p = D(!1);
50
+ ), 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(_.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 m = document.documentElement;
65
- a.animate && (w(), m.classList.add("vf-theme-transitioning")), m.setAttribute(b.value, f), a.animate && (C = window.setTimeout(() => {
66
- m.classList.remove("vf-theme-transitioning"), C = null;
64
+ const 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 M(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 Z(l, (f) => {
85
- typeof window > "u" || window.localStorage.setItem(_.value, f);
86
- }), Z(
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: p.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), p.value = !0;
94
- }), ee(() => {
95
- var f;
96
- (f = u.value) == null || f.removeEventListener("change", I), w();
97
- }), Re(Ee, {
98
- mode: l,
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
+ }), te(() => {
95
+ var m;
96
+ (m = u.value) == null || m.removeEventListener("change", D), w();
97
+ }), Fe(Ee, {
98
+ mode: a,
99
99
  resolvedTheme: v,
100
- setTheme: M,
100
+ setTheme: z,
101
101
  toggleTheme: $
102
- }), (f, a) => E(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((_) => _.value).filter((_) => _ instanceof HTMLElement) : [t.value].filter(
113
- (_) => _ 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((_) => _.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);
119
- }), ee(() => {
120
- document.removeEventListener(i, l);
117
+ ie(() => {
118
+ document.addEventListener(i, a);
119
+ }), te(() => {
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
- Z(
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
- }), ee(() => {
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 _ = 0;
158
- const b = 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 p() {
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 Z(
181
- [() => K(e.enabled) !== !1, t, n],
182
- async ([x]) => {
183
- _ += 1;
184
- const w = _;
185
- C(), !(!x || !t.value || !n.value) && (await ae(), !(w !== _ || K(e.enabled) === !1 || !t.value || !n.value) && (await p(), !(w !== _ || K(e.enabled) === !1 || !t.value || !n.value) && (v.value = Ke(t.value, () => {
186
- p();
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 }
190
- ), ee(() => {
190
+ ), te(() => {
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: b,
198
- update: p,
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], _ = document.activeElement;
229
+ const u = r[0], v = r[r.length - 1], f = document.activeElement;
230
230
  if (i.shiftKey) {
231
- (_ === u || _ === l) && (i.preventDefault(), v.focus());
231
+ (f === u || f === a) && (i.preventDefault(), v.focus());
232
232
  return;
233
233
  }
234
- _ === 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
- }), ee(() => {
238
+ }), te(() => {
239
239
  document.removeEventListener("keydown", e);
240
240
  });
241
241
  }
242
- let Ge = 0;
243
- function G(t = {}) {
244
- const n = `${t.prefix ?? "vf"}-${++Ge}`;
245
- return s(() => K(t.providedId) ?? n);
242
+ let Qe = 0;
243
+ function Q(t = {}) {
244
+ const n = `${t.prefix ?? "vf"}-${++Qe}`;
245
+ return s(() => F(t.providedId) ?? n);
246
246
  }
247
- function kn() {
248
- const t = we(Ee);
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
+ };
308
+ }
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 kn() {
255
317
  toggleTheme: t.toggleTheme
256
318
  };
257
319
  }
258
- const Qe = { class: "vf-accordion" }, Je = ["id", "aria-controls", "aria-expanded", "disabled"], Ze = ["id", "aria-labelledby"], et = { class: "vf-accordion__content-inner" }, wn = /* @__PURE__ */ L({
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 Qe = { class: "vf-accordion" }, Je = ["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 = G({ prefix: "vf-accordion-trigger" }), r = G({ 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, _ = [
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 b(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 p() {
344
+ function d() {
283
345
  e.disabled || u.toggle();
284
346
  }
285
- function C(f) {
286
- (f.key === "Enter" || f.key === " ") && (f.preventDefault(), p());
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 m = f;
294
- m.style.transition = _, requestAnimationFrame(() => {
295
- m.style.height = `${b(m)}px`, m.style.opacity = "1";
296
- }), window.setTimeout(a, U.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 = `${b(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 M(f, a) {
307
- const m = f;
308
- m.style.transition = _, m.offsetHeight, m.style.height = "0px", m.style.opacity = "0", window.setTimeout(a, U.normal);
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(), h("section", Qe, [
376
+ return (m, o) => (c(), h("section", Ze, [
315
377
  T("button", {
316
- id: y(l),
378
+ id: y(a),
317
379
  "aria-controls": y(r),
318
380
  "aria-expanded": y(v),
319
381
  disabled: t.disabled,
320
382
  class: "vf-accordion__trigger",
321
383
  type: "button",
322
- onClick: p,
384
+ onClick: d,
323
385
  onKeydown: C
324
386
  }, [
325
- E(f.$slots, "trigger", { open: y(v) }, () => [
326
- T("span", null, F(t.title), 1)
387
+ B(m.$slots, "trigger", { open: y(v) }, () => [
388
+ T("span", null, N(t.title), 1)
327
389
  ]),
328
390
  T("span", {
329
391
  "aria-hidden": "true",
330
392
  class: P(["vf-accordion__icon", y(v) && "vf-accordion__icon--open"])
331
393
  }, [
332
- j(y(te), {
333
- icon: y(X).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, Je),
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,
344
- onLeave: M,
405
+ onBeforeLeave: D,
406
+ onLeave: z,
345
407
  onAfterLeave: $
346
408
  }, {
347
- default: Q(() => [
348
- y(v) ? (d(), h("div", {
409
+ default: G(() => [
410
+ y(v) ? (c(), h("div", {
349
411
  key: 0,
350
412
  id: y(r),
351
- "aria-labelledby": y(l),
413
+ "aria-labelledby": y(a),
352
414
  class: "vf-accordion__content",
353
415
  role: "region"
354
416
  }, [
355
- T("div", et, [
356
- E(f.$slots, "default", { open: y(v) })
417
+ T("div", nt, [
418
+ B(m.$slots, "default", { open: y(v) })
357
419
  ])
358
- ], 8, Ze)) : O("", !0)
420
+ ], 8, tt)) : O("", !0)
359
421
  ]),
360
422
  _: 3
361
423
  })
362
424
  ]));
363
425
  }
364
426
  });
365
- function N(...t) {
427
+ function R(...t) {
366
428
  return t.filter(Boolean).join(" ");
367
429
  }
368
- const tt = {
430
+ const at = {
369
431
  class: "vf-alert__icon",
370
432
  "aria-hidden": "true"
371
- }, nt = { class: "vf-alert__content" }, at = {
433
+ }, ot = { class: "vf-alert__content" }, lt = {
372
434
  key: 0,
373
435
  class: "vf-alert__title"
374
- }, ot = { class: "vf-alert__body" }, Tn = /* @__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 tt = {
379
441
  title: { default: void 0 }
380
442
  },
381
443
  setup(t) {
382
- const n = t, e = R(), i = s(
383
- () => N("vf-alert", n.tone !== "primary" && `vf-alert--${n.tone}`)
384
- ), l = s(() => n.tone === "success" ? X.checkCircle : n.tone === "info" ? X.info : n.tone === "warn" ? X.warning : n.tone === "help" ? X.questionCircle : n.tone === "danger" ? X.warning : n.tone === "contrast" ? X.info : X.info);
385
- return (r, u) => (d(), h("section", H({
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
450
  }, y(e)), [
389
- T("div", tt, [
390
- j(y(te), {
391
- icon: l.value,
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", nt, [
396
- n.title || r.$slots.title ? (d(), h("p", at, [
397
- E(r.$slots, "title", {}, () => [
398
- oe(F(n.title), 1)
457
+ T("div", ot, [
458
+ n.title || r.$slots.title ? (c(), h("p", lt, [
459
+ B(r.$slots, "title", {}, () => [
460
+ oe(N(n.title), 1)
399
461
  ])
400
462
  ])) : O("", !0),
401
- T("div", ot, [
402
- E(r.$slots, "default")
463
+ T("div", st, [
464
+ B(r.$slots, "default")
403
465
  ])
404
466
  ])
405
467
  ], 16));
406
468
  }
407
- }), Vn = /* @__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
- () => N("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(), h("span", H({ class: i.value }, y(e)), [
418
- E(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
- }), lt = ["type"], Cn = /* @__PURE__ */ L({
483
+ }), it = ["type"], Sn = /* @__PURE__ */ A({
422
484
  inheritAttrs: !1,
423
485
  __name: "VfButton",
424
486
  props: {
@@ -428,25 +490,25 @@ const tt = {
428
490
  type: { default: "button" }
429
491
  },
430
492
  setup(t) {
431
- const n = t, e = R(), i = s(
432
- () => N(
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(), h("button", H({
501
+ return (a, r) => (c(), h("button", K({
440
502
  class: i.value,
441
503
  type: n.type
442
504
  }, y(e)), [
443
- E(l.$slots, "default")
444
- ], 16, lt));
505
+ B(a.$slots, "default")
506
+ ], 16, it));
445
507
  }
446
- }), st = { key: 0 }, it = { class: "vf-card__title" }, rt = {
508
+ }), rt = { key: 0 }, ut = { class: "vf-card__title" }, dt = {
447
509
  key: 1,
448
510
  class: "vf-card__body"
449
- }, ut = { key: 2 }, xn = /* @__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 tt = {
454
516
  compact: { type: Boolean, default: !1 }
455
517
  },
456
518
  setup(t) {
457
- const n = t, e = R(), i = s(
458
- () => N("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(), h("section", H({ class: i.value }, y(e)), [
461
- n.title || l.$slots.header ? (d(), h("header", st, [
462
- E(l.$slots, "header", {}, () => [
463
- T("h3", it, F(n.title), 1)
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(), h("div", rt, [
467
- E(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(), h("footer", ut, [
470
- E(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
- }), dt = ["checked", "disabled", "aria-invalid"], ct = {
536
+ }), ft = ["checked", "disabled", "aria-invalid"], vt = {
475
537
  key: 0,
476
538
  class: "vf-checkbox__content"
477
- }, Bn = /* @__PURE__ */ L({
539
+ }, Mn = /* @__PURE__ */ A({
478
540
  inheritAttrs: !1,
479
541
  __name: "VfCheckbox",
480
542
  props: {
@@ -486,49 +548,49 @@ const tt = {
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
- () => N(
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(([b]) => b !== "class" && b !== "style")
562
+ Object.entries(a).filter(([_]) => _ !== "class" && _ !== "style")
501
563
  )
502
564
  );
503
- function _(b) {
504
- const p = b.target.checked;
505
- i("update:modelValue", p), i("change", p);
565
+ function f(_) {
566
+ const d = _.target.checked;
567
+ i("update:modelValue", d), i("change", d);
506
568
  }
507
- return (b, p) => (d(), h("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: _ }), null, 16, dt),
518
- p[0] || (p[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 || b.$slots.default ? (d(), h("span", ct, [
525
- E(b.$slots, "default", {}, () => [
526
- oe(F(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
- }), ft = ["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 tt = {
538
600
  type: { default: "button" }
539
601
  },
540
602
  setup(t) {
541
- const n = t, e = R(), i = s(
542
- () => N(
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(), h("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
613
  }, y(e)), [
552
- j(y(te), {
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, ft));
619
+ ], 16, pt));
558
620
  }
559
- }), vt = ["aria-labelledby"], pt = {
621
+ }), mt = ["aria-labelledby"], ht = {
560
622
  key: 0,
561
623
  class: "vf-drawer__header"
562
- }, mt = ["id"], ht = { class: "vf-drawer__actions" }, yt = {
624
+ }, yt = ["id"], _t = { class: "vf-drawer__actions" }, bt = {
563
625
  key: 1,
564
626
  class: "vf-drawer__body"
565
- }, _t = {
627
+ }, gt = {
566
628
  key: 2,
567
629
  class: "vf-drawer__footer"
568
- }, En = /* @__PURE__ */ L({
630
+ }, Pn = /* @__PURE__ */ A({
569
631
  inheritAttrs: !1,
570
632
  __name: "VfDrawer",
571
633
  props: {
@@ -585,166 +647,166 @@ const tt = {
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(), _ = G({ prefix: "vf-drawer-title" }), b = 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
- }), p = b.isOpen, C = {
595
- enter: U.normal,
596
- leave: U.normal
656
+ }), d = _.isOpen, C = {
657
+ enter: Y.normal,
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
- () => N(
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
613
- ]), M = s(() => Object.fromEntries(
614
- Object.entries(l).filter(([V]) => V !== "class" && V !== "style")
674
+ a.style
675
+ ]), z = s(() => Object.fromEntries(
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"), m = s(
618
- () => N(
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 ? _.value : void 0
685
+ ), p = s(() => !!v.header), l = s(
686
+ () => e.title || p.value ? f.value : void 0
625
687
  );
626
- function B() {
627
- b.close();
688
+ function E() {
689
+ _.close();
628
690
  }
629
- function A() {
630
- e.closeOnOverlayClick && B();
691
+ function L() {
692
+ e.closeOnOverlayClick && E();
631
693
  }
632
- function z() {
633
- const V = r.value;
634
- if (!V)
694
+ function M() {
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 || !p.value || (V.preventDefault(), B());
708
+ (x) => {
709
+ !e.closeOnEscape || !d.value || (x.preventDefault(), E());
648
710
  },
649
711
  {
650
- enabled: p
712
+ enabled: d
651
713
  }
652
- ), Ae(r, {
653
- enabled: p
654
- }), xe(p, {
655
- target: f
656
- }), Z(
657
- p,
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 ae(), z();
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();
666
728
  }
667
729
  },
668
730
  { immediate: !0 }
669
- ), ee(() => {
670
- var V;
671
- p.value && ((V = u.value) == null || V.focus());
672
- }), (V, k) => (d(), q(le, {
673
- to: a.value,
731
+ ), te(() => {
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
- default: Q(() => [
682
- y(p) ? (d(), h("div", H({
743
+ default: G(() => [
744
+ y(d) ? (c(), h("div", K({
683
745
  key: 0,
684
- class: [S.value, y(l).class],
685
- style: I.value
686
- }, M.value), [
746
+ class: [S.value, y(a).class],
747
+ style: D.value
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(m.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(), h("header", pt, [
763
+ t.title || x.$slots.header ? (c(), h("header", ht, [
702
764
  T("div", null, [
703
- E(V.$slots, "header", {}, () => [
704
- t.title ? (d(), h("h2", {
765
+ B(x.$slots, "header", {}, () => [
766
+ t.title ? (c(), h("h2", {
705
767
  key: 0,
706
- id: y(_),
768
+ id: y(f),
707
769
  class: "vf-drawer__title"
708
- }, F(t.title), 9, mt)) : O("", !0)
770
+ }, N(t.title), 9, yt)) : O("", !0)
709
771
  ])
710
772
  ]),
711
- T("div", ht, [
712
- E(V.$slots, "actions", { close: B }),
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: y(X).xmark,
777
+ icon: y(U).xmark,
716
778
  "aria-label": "Close drawer",
717
779
  size: "sm",
718
- onClick: B
780
+ onClick: E
719
781
  }, null, 8, ["icon"])) : O("", !0)
720
782
  ])
721
783
  ])) : O("", !0),
722
- V.$slots.default ? (d(), h("div", yt, [
723
- E(V.$slots, "default", { close: B })
784
+ x.$slots.default ? (c(), h("div", bt, [
785
+ B(x.$slots, "default", { close: E })
724
786
  ])) : O("", !0),
725
- V.$slots.footer ? (d(), h("footer", _t, [
726
- E(V.$slots, "footer", { close: B })
787
+ x.$slots.footer ? (c(), h("footer", gt, [
788
+ B(x.$slots, "footer", { close: E })
727
789
  ])) : O("", !0)
728
- ], 10, vt)
790
+ ], 10, mt)
729
791
  ], 16)) : O("", !0)
730
792
  ]),
731
793
  _: 3
732
794
  })
733
795
  ], 8, ["to", "disabled"]));
734
796
  }
735
- }), gt = {
797
+ }), $t = {
736
798
  key: 0,
737
799
  class: "vf-dialog"
738
- }, bt = ["aria-describedby", "aria-labelledby"], $t = {
800
+ }, kt = ["aria-describedby", "aria-labelledby"], wt = {
739
801
  key: 0,
740
802
  class: "vf-dialog__header"
741
- }, kt = ["id"], wt = ["id"], Tt = { class: "vf-dialog__actions" }, Vt = {
803
+ }, Tt = ["id"], Vt = ["id"], Ct = { class: "vf-dialog__actions" }, xt = {
742
804
  key: 1,
743
805
  class: "vf-dialog__body"
744
- }, Ct = {
806
+ }, Bt = {
745
807
  key: 2,
746
808
  class: "vf-dialog__footer"
747
- }, On = /* @__PURE__ */ L({
809
+ }, Nn = /* @__PURE__ */ A({
748
810
  __name: "VfDialog",
749
811
  props: {
750
812
  open: { type: Boolean, default: void 0 },
@@ -760,155 +822,155 @@ const tt = {
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 = G({ prefix: "vf-dialog-title" }), _ = G({ prefix: "vf-dialog-description" }), b = 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
- }), p = b.isOpen, C = {
770
- enter: U.fast,
771
- leave: U.fast
772
- }, x = s(
831
+ }), d = _.isOpen, C = {
832
+ enter: Y.fast,
833
+ leave: Y.fast
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
- () => N(
837
+ () => R(
776
838
  "vf-dialog__content",
777
839
  e.size !== "md" && `vf-dialog__content--${e.size}`
778
840
  )
779
- ), I = s(() => !!u.header), M = s(() => !!u.description), $ = s(
780
- () => e.title || I.value ? v.value : void 0
781
- ), f = s(
782
- () => e.description || M.value ? _.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
- b.close();
846
+ function o() {
847
+ _.close();
786
848
  }
787
- function m() {
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 B = o.querySelector(
856
+ const E = l.querySelector(
795
857
  "[autofocus], [data-autofocus]"
796
858
  );
797
- if (B) {
798
- B.focus();
859
+ if (E) {
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 || !p.value || (o.preventDefault(), a());
866
+ (l) => {
867
+ !e.closeOnEscape || !d.value || (l.preventDefault(), o());
806
868
  },
807
869
  {
808
- enabled: p
870
+ enabled: d
809
871
  }
810
- ), Ae(l, {
811
- enabled: p
812
- }), xe(p), Z(
813
- p,
814
- async (o) => {
815
- var B;
872
+ ), Ie(a, {
873
+ enabled: d
874
+ }), xe(d), J(
875
+ d,
876
+ async (l) => {
877
+ var E;
816
878
  if (!(typeof document > "u")) {
817
- if (o) {
818
- r.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(), c();
879
+ if (l) {
880
+ r.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ne(), p();
819
881
  return;
820
882
  }
821
- (B = r.value) == null || B.focus();
883
+ (E = r.value) == null || E.focus();
822
884
  }
823
885
  },
824
886
  { immediate: !0 }
825
- ), ee(() => {
826
- var o;
827
- p.value && ((o = r.value) == null || o.focus());
828
- }), (o, B) => (d(), q(le, {
887
+ ), te(() => {
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
- default: Q(() => [
838
- y(p) ? (d(), h("div", gt, [
899
+ default: G(() => [
900
+ y(d) ? (c(), h("div", $t, [
839
901
  T("div", {
840
902
  class: "vf-dialog__overlay",
841
903
  "aria-hidden": "true",
842
- onClick: m
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(), h("header", $t, [
916
+ t.title || t.description || l.$slots.header || l.$slots.description ? (c(), h("header", wt, [
855
917
  T("div", null, [
856
- E(o.$slots, "header", {}, () => [
857
- t.title ? (d(), h("h2", {
918
+ B(l.$slots, "header", {}, () => [
919
+ t.title ? (c(), h("h2", {
858
920
  key: 0,
859
921
  id: y(v),
860
922
  class: "vf-dialog__title"
861
- }, F(t.title), 9, kt)) : O("", !0)
923
+ }, N(t.title), 9, Tt)) : O("", !0)
862
924
  ]),
863
- E(o.$slots, "description", {}, () => [
864
- t.description ? (d(), h("p", {
925
+ B(l.$slots, "description", {}, () => [
926
+ t.description ? (c(), h("p", {
865
927
  key: 0,
866
- id: y(_),
928
+ id: y(f),
867
929
  class: "vf-dialog__description"
868
- }, F(t.description), 9, wt)) : O("", !0)
930
+ }, N(t.description), 9, Vt)) : O("", !0)
869
931
  ])
870
932
  ]),
871
- T("div", Tt, [
872
- E(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: y(X).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(), h("div", Vt, [
883
- E(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(), h("footer", Ct, [
886
- E(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, bt)
950
+ ], 10, kt)
889
951
  ])) : O("", !0)
890
952
  ]),
891
953
  _: 3
892
954
  })
893
955
  ], 8, ["to", "disabled"]));
894
956
  }
895
- }), xt = ["aria-orientation", "role"], An = /* @__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
- () => N("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(), h("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
- }, y(e)), null, 16, xt));
971
+ }, y(e)), null, 16, Et));
910
972
  }
911
- }), Bt = { class: "vf-dropdown" }, Et = ["id", "aria-controls", "aria-expanded"], Ot = ["id", "aria-labelledby"], Dn = /* @__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,104 +982,104 @@ const tt = {
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 = G({ prefix: "vf-dropdown-menu" }), _ = G({ prefix: "vf-dropdown-trigger" }), b = {
924
- enter: U.fast,
925
- leave: U.fast
926
- }, p = s(
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" }), _ = {
986
+ enter: Y.fast,
987
+ leave: Y.fast
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
993
  onOpenChange: (g) => {
932
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 g = m.value.arrow;
998
+ o.value.startsWith("top") && "vf-dropdown__menu--top"
999
+ ]), D = s(() => {
1000
+ const g = b.value.arrow;
939
1001
  return {
940
1002
  x: (g == null ? void 0 : g.x) !== void 0 && (g == null ? void 0 : g.baseX) !== void 0 ? g.x - g.baseX : 0,
941
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
- }), M = s(() => ({
944
- left: `${I.value.x}px`,
945
- top: `${I.value.y}px`
1005
+ }), z = s(() => ({
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: m,
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
1022
+ pe(10),
1023
+ me({ placements: m.value }),
1024
+ he(),
1025
+ u.value ? ye(u.value) : void 0
964
1026
  ].filter((g) => g !== void 0)
965
1027
  ),
966
1028
  strategy: "fixed"
967
1029
  });
968
- function o() {
1030
+ function l() {
969
1031
  var g;
970
1032
  return Array.from(
971
1033
  ((g = r.value) == null ? void 0 : g.querySelectorAll('[role="menuitem"]')) ?? []
972
1034
  );
973
1035
  }
974
- async function B() {
1036
+ async function E() {
975
1037
  var g;
976
- await ae(), (g = o()[0]) == null || g.focus();
1038
+ await ne(), (g = l()[0]) == null || g.focus();
977
1039
  }
978
- function A(g = {}) {
979
- x.open(), g.focusFirstItem && B();
1040
+ function L(g = {}) {
1041
+ V.open(), g.focusFirstItem && E();
980
1042
  }
981
- function z() {
1043
+ function M() {
982
1044
  var g;
983
- x.close(), (g = l.value) == null || g.focus();
1045
+ V.close(), (g = a.value) == null || g.focus();
984
1046
  }
985
- function V() {
1047
+ function x() {
986
1048
  if (w.value) {
987
- z();
1049
+ M();
988
1050
  return;
989
1051
  }
990
- A();
1052
+ L();
991
1053
  }
992
1054
  function k(g) {
993
- (g.key === "ArrowDown" || g.key === "Enter" || g.key === " ") && (g.preventDefault(), A({ focusFirstItem: !0 }));
1055
+ (g.key === "ArrowDown" || g.key === "Enter" || g.key === " ") && (g.preventDefault(), L({ focusFirstItem: !0 }));
994
1056
  }
995
- function J(g) {
996
- var ge, be, $e, ke;
997
- const Y = o(), _e = Y.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
1062
  if (g.key === "ArrowDown") {
1001
- g.preventDefault(), (ge = Y[(_e + 1 + Y.length) % Y.length]) == null || ge.focus();
1063
+ g.preventDefault(), (ge = X[(be + 1 + X.length) % X.length]) == null || ge.focus();
1002
1064
  return;
1003
1065
  }
1004
1066
  if (g.key === "ArrowUp") {
1005
- g.preventDefault(), (be = Y[(_e - 1 + Y.length) % Y.length]) == null || be.focus();
1067
+ g.preventDefault(), ($e = X[(be - 1 + X.length) % X.length]) == null || $e.focus();
1006
1068
  return;
1007
1069
  }
1008
1070
  if (g.key === "Home") {
1009
- g.preventDefault(), ($e = Y[0]) == null || $e.focus();
1071
+ g.preventDefault(), (ke = X[0]) == null || ke.focus();
1010
1072
  return;
1011
1073
  }
1012
- g.key === "End" && (g.preventDefault(), (ke = Y[Y.length - 1]) == null || ke.focus());
1074
+ g.key === "End" && (g.preventDefault(), (we = X[X.length - 1]) == null || we.focus());
1013
1075
  }
1014
- function ie() {
1015
- e.closeOnSelect && z();
1076
+ function de() {
1077
+ e.closeOnSelect && M();
1016
1078
  }
1017
1079
  return Oe(
1018
- [l, r],
1080
+ [a, r],
1019
1081
  () => {
1020
- w.value && z();
1082
+ w.value && M();
1021
1083
  },
1022
1084
  {
1023
1085
  enabled: w,
@@ -1025,70 +1087,70 @@ const tt = {
1025
1087
  }
1026
1088
  ), fe(
1027
1089
  (g) => {
1028
- w.value && (g.preventDefault(), z());
1090
+ w.value && (g.preventDefault(), M());
1029
1091
  },
1030
1092
  {
1031
1093
  enabled: w
1032
1094
  }
1033
- ), (g, Y) => (d(), h("div", Bt, [
1095
+ ), (g, X) => (c(), h("div", Ot, [
1034
1096
  T("div", {
1035
- id: y(_),
1097
+ id: y(f),
1036
1098
  ref_key: "triggerRef",
1037
- ref: l,
1099
+ ref: a,
1038
1100
  class: "vf-dropdown__trigger",
1039
1101
  "aria-controls": y(v),
1040
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
- E(g.$slots, "trigger", {
1108
+ B(g.$slots, "trigger", {
1047
1109
  open: y(w),
1048
- toggle: V
1110
+ toggle: x
1049
1111
  })
1050
- ], 40, Et),
1051
- (d(), q(le, {
1112
+ ], 40, It),
1113
+ (c(), q(re, {
1052
1114
  to: C.value,
1053
- disabled: p.value
1115
+ disabled: d.value
1054
1116
  }, [
1055
- j(ne, {
1117
+ j(ae, {
1056
1118
  name: "vf-floating-transition",
1057
1119
  appear: "",
1058
- duration: b
1120
+ duration: _
1059
1121
  }, {
1060
- default: Q(() => [
1061
- y(w) ? (d(), h("div", {
1122
+ default: G(() => [
1123
+ y(w) ? (c(), h("div", {
1062
1124
  key: 0,
1063
1125
  id: y(v),
1064
1126
  ref_key: "menuRef",
1065
1127
  ref: r,
1066
1128
  class: P(S.value),
1067
- style: W(y(c)),
1068
- "aria-labelledby": 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",
1075
1137
  ref: u,
1076
1138
  class: P($.value),
1077
- style: W(M.value),
1139
+ style: W(z.value),
1078
1140
  "aria-hidden": "true"
1079
1141
  }, null, 6),
1080
- E(g.$slots, "default", {
1081
- close: z,
1142
+ B(g.$slots, "default", {
1143
+ close: M,
1082
1144
  open: y(w)
1083
1145
  })
1084
- ], 46, Ot)) : O("", !0)
1146
+ ], 46, Lt)) : O("", !0)
1085
1147
  ]),
1086
1148
  _: 3
1087
1149
  })
1088
1150
  ], 8, ["to", "disabled"]))
1089
1151
  ]));
1090
1152
  }
1091
- }), At = ["value", "aria-invalid"], In = /* @__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 tt = {
1098
1160
  },
1099
1161
  emits: ["update:modelValue"],
1100
1162
  setup(t, { emit: n }) {
1101
- const e = t, i = n, l = R(), r = s(
1102
- () => N(
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 tt = {
1108
1170
  function u(v) {
1109
1171
  i("update:modelValue", v.target.value);
1110
1172
  }
1111
- return (v, _) => (d(), h("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
- }, y(l), { onInput: u }), null, 16, At));
1177
+ }, y(a), { onInput: u }), null, 16, At));
1116
1178
  }
1117
- }), Ln = /* @__PURE__ */ L({
1179
+ }), Kn = /* @__PURE__ */ A({
1118
1180
  inheritAttrs: !1,
1119
1181
  __name: "VfLink",
1120
1182
  props: {
@@ -1127,8 +1189,8 @@ const tt = {
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
- () => N(
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 tt = {
1141
1203
  href: n.href,
1142
1204
  target: n.target,
1143
1205
  rel: r.value
1144
- }), _ = s(() => ({
1206
+ }), f = s(() => ({
1145
1207
  ...e,
1146
1208
  ...v.value,
1147
1209
  class: u.value
1148
1210
  }));
1149
- return (b, p) => (d(), q(re(l.value), Ve(Ce(_.value)), {
1150
- default: Q(() => [
1151
- E(b.$slots, "default")
1211
+ return (_, d) => (c(), q(ce(a.value), Ve(Ce(f.value)), {
1212
+ default: G(() => [
1213
+ B(_.$slots, "default")
1152
1214
  ]),
1153
1215
  _: 3
1154
1216
  }, 16));
1155
1217
  }
1156
- }), Dt = { class: "vf-nav-menu__node" }, It = { class: "vf-nav-menu__item-content" }, Lt = { class: "vf-nav-menu__group-label" }, St = ["aria-expanded", "disabled"], Mt = { class: "vf-nav-menu__item-content" }, zt = {
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
- }, Pt = { class: "vf-nav-menu__label" }, Nt = { class: "vf-nav-menu__item-content" }, Ft = {
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
- }, Rt = { class: "vf-nav-menu__label" }, Ht = ["aria-current", "disabled"], Kt = { class: "vf-nav-menu__item-content" }, jt = {
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
- }, qt = { 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
- }, Ut = { class: "vf-nav-menu__list vf-nav-menu__list--nested" }, Yt = /* @__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 tt = {
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), _ = s(
1250
+ ), v = s(() => e.activeValue === e.item.value), f = s(
1189
1251
  () => e.item.href !== void 0 || e.item.to !== void 0
1190
- ), b = s(() => e.item.to !== void 0 ? re("RouterLink") : "a"), p = s(() => e.item.rel ? e.item.rel : e.item.target === "_blank" ? "noopener noreferrer" : void 0), C = s(() => e.item.to !== void 0 ? {
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: p.value
1255
+ rel: d.value
1194
1256
  } : {
1195
1257
  href: e.item.href,
1196
1258
  target: e.item.target,
1197
- rel: p.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 M(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 m(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 B = He("VfNavMenuItemNode", !0);
1246
- return d(), h("li", Dt, [
1247
- r.value ? (d(), h("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", It, [
1253
- T("span", Lt, F(t.item.label), 1)
1314
+ T("span", St, [
1315
+ T("span", zt, N(t.item.label), 1)
1254
1316
  ])
1255
- ], 6)) : l.value ? (d(), h("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 tt = {
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(), h("span", zt, [
1270
- j(y(te), {
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", Pt, F(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(y(te), {
1282
- icon: y(X).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, St)) : _.value ? (d(), q(re(b.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",
@@ -1293,19 +1355,19 @@ const tt = {
1293
1355
  "aria-current": v.value ? "page" : void 0,
1294
1356
  onClick: w
1295
1357
  }), {
1296
- default: Q(() => [
1297
- T("span", Nt, [
1298
- t.item.leadingIcon ? (d(), h("span", Ft, [
1299
- j(y(te), {
1358
+ default: G(() => [
1359
+ T("span", Ft, [
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", Rt, F(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(), h("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 tt = {
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", Kt, [
1322
- t.item.leadingIcon ? (d(), h("span", jt, [
1323
- j(y(te), {
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", qt, F(t.item.label), 1)
1390
+ T("span", Wt, N(t.item.label), 1)
1329
1391
  ])
1330
- ], 14, Ht)),
1331
- l.value && r.value ? (d(), h("ul", Wt, [
1332
- (d(!0), h(ue, null, de(t.item.children, (A) => (d(), q(B, {
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] = (z) => i("toggle", z)),
1340
- onSelect: o[2] || (o[2] = (z) => i("select", z))
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,
1345
- onEnter: M,
1406
+ onBeforeEnter: D,
1407
+ onEnter: z,
1346
1408
  onAfterEnter: $,
1347
- onBeforeLeave: f,
1348
- onLeave: a,
1349
- onAfterLeave: m
1409
+ onBeforeLeave: m,
1410
+ onLeave: o,
1411
+ onAfterLeave: b
1350
1412
  }, {
1351
- default: Q(() => [
1352
- u.value ? (d(), h("div", {
1413
+ default: G(() => [
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", Ut, [
1360
- (d(!0), h(ue, null, de(t.item.children, (A) => (d(), q(B, {
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] = (z) => i("toggle", z)),
1368
- onSelect: o[4] || (o[4] = (z) => i("select", z))
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 tt = {
1375
1437
  ]);
1376
1438
  };
1377
1439
  }
1378
- }), Xt = ["aria-label"], Gt = { class: "vf-nav-menu__list" }, Sn = /* @__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 tt = {
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, m) {
1391
- return a.some(
1392
- (c) => {
1393
- var o;
1394
- return m(c) || ((o = c.children) != null && o.length ? v(c.children, m) : !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 _ = s(
1399
- () => v(e.items, (a) => a.kind === "group")
1400
- ), b = s(
1401
- () => v(e.items, (a) => !!a.leadingIcon)
1402
- ), p = s(() => !_.value && !b.value);
1403
- function C(a) {
1404
- var m;
1405
- return a.kind !== "group" && !!((m = a.children) != null && m.length);
1406
- }
1407
- function x(a, m, c = []) {
1408
- var o;
1409
- if (!m)
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);
1468
+ }
1469
+ function V(o, b, p = []) {
1470
+ var l;
1471
+ if (!b)
1410
1472
  return [];
1411
- for (const B of a) {
1412
- if (B.value === m)
1413
- return c;
1414
- if ((o = B.children) != null && o.length) {
1415
- const A = x(B.children, m, [
1416
- ...c,
1417
- B.value
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,
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, m) {
1432
- var A;
1433
- if (!m.length)
1434
- return a;
1435
- const [c, ...o] = m, B = a.find((z) => z.value === c);
1436
- return (A = B == null ? void 0 : B.children) != null && A.length ? S(B.children, o) : [];
1437
- }
1438
- function I(a) {
1439
- return a.flatMap((m) => {
1440
- var o;
1441
- const c = (o = m.children) != null && o.length ? I(m.children) : [];
1442
- return C(m) ? [m.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 M(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
- M(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: m, parentPath: c } = a;
1458
- if (u.value.includes(m)) {
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 !== m
1522
+ (l) => l !== b
1461
1523
  );
1462
1524
  return;
1463
1525
  }
1464
1526
  if (e.expandMode === "single") {
1465
- const B = S(e.items, c).filter((A) => A.value !== m && 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) => !B.includes(A)
1529
+ (L) => !E.includes(L)
1468
1530
  );
1469
1531
  }
1470
- u.value = [...u.value, m];
1532
+ u.value = [...u.value, b];
1471
1533
  }
1472
- return Z(
1534
+ return J(
1473
1535
  () => [e.items, r.value],
1474
1536
  () => {
1475
1537
  w();
1476
1538
  },
1477
1539
  { immediate: !0, deep: !0 }
1478
- ), (a, m) => (d(), h("nav", {
1479
- class: P(["vf-nav-menu", p.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", Gt, [
1483
- (d(!0), h(ue, null, de(t.items, (c) => (d(), q(Yt, {
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, Xt));
1556
+ ], 10, Qt));
1495
1557
  }
1496
- }), Qt = { key: 0 }, Jt = { class: "vf-panel__title" }, Mn = /* @__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 tt = {
1501
1563
  subtle: { type: Boolean, default: !1 }
1502
1564
  },
1503
1565
  setup(t) {
1504
- const n = t, e = R(), i = s(
1505
- () => N("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(), h("section", H({ class: i.value }, y(e)), [
1508
- n.title || l.$slots.header ? (d(), h("header", Qt, [
1509
- E(l.$slots, "header", {}, () => [
1510
- T("h3", Jt, F(n.title), 1)
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
- E(l.$slots, "default")
1575
+ B(a.$slots, "default")
1514
1576
  ], 16));
1515
1577
  }
1516
- }), Zt = { class: "vf-popover" }, en = ["id", "aria-controls", "aria-expanded"], tn = ["id", "aria-labelledby"], zn = /* @__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 tt = {
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 = G({ prefix: "vf-popover-content" }), _ = G({ prefix: "vf-popover-trigger" }), b = {
1530
- enter: U.fast,
1531
- leave: U.fast
1532
- }, p = s(
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" }), _ = {
1592
+ enter: Y.fast,
1593
+ leave: Y.fast
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,
1544
- middlewareData: M,
1605
+ placement: D,
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(() => {
1562
- const k = M.value.arrow;
1622
+ D.value.startsWith("top") && "vf-popover__content--top"
1623
+ ]), o = s(() => {
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
- }), m = 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 ae();
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
- function B() {
1587
- x.open(), o();
1648
+ function E() {
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
- function z() {
1655
+ function M() {
1594
1656
  if (w.value) {
1595
- A();
1657
+ L();
1596
1658
  return;
1597
1659
  }
1598
- B();
1660
+ E();
1599
1661
  }
1600
- function V(k) {
1601
- (k.key === "Enter" || k.key === " ") && (k.preventDefault(), z()), k.key === "ArrowDown" && (k.preventDefault(), B());
1662
+ function x(k) {
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 tt = {
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(), h("div", Zt, [
1681
+ ), (k, Z) => (c(), h("div", tn, [
1620
1682
  T("div", {
1621
- id: y(_),
1683
+ id: y(f),
1622
1684
  ref_key: "triggerRef",
1623
- ref: l,
1685
+ ref: a,
1624
1686
  class: "vf-popover__trigger",
1625
1687
  "aria-controls": y(v),
1626
1688
  "aria-expanded": y(w),
1627
1689
  "aria-haspopup": "dialog",
1628
1690
  tabindex: "0",
1629
- onClick: z,
1630
- onKeydown: V
1691
+ onClick: M,
1692
+ onKeydown: x
1631
1693
  }, [
1632
- E(k.$slots, "trigger", {
1694
+ B(k.$slots, "trigger", {
1633
1695
  open: y(w),
1634
- toggle: z
1696
+ toggle: M
1635
1697
  })
1636
- ], 40, en),
1637
- (d(), q(le, {
1698
+ ], 40, nn),
1699
+ (c(), q(re, {
1638
1700
  to: C.value,
1639
- disabled: p.value
1701
+ disabled: d.value
1640
1702
  }, [
1641
- j(ne, {
1703
+ j(ae, {
1642
1704
  name: "vf-floating-transition",
1643
1705
  appear: "",
1644
- duration: b
1706
+ duration: _
1645
1707
  }, {
1646
- default: Q(() => [
1647
- y(w) ? (d(), h("section", {
1708
+ default: G(() => [
1709
+ y(w) ? (c(), h("section", {
1648
1710
  key: 0,
1649
1711
  id: y(v),
1650
1712
  ref_key: "contentRef",
1651
1713
  ref: r,
1652
- class: P(f.value),
1714
+ class: P(m.value),
1653
1715
  style: W(y($)),
1654
- "aria-labelledby": 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(m.value),
1723
+ class: P(p.value),
1724
+ style: W(b.value),
1663
1725
  "aria-hidden": "true"
1664
1726
  }, null, 6),
1665
- E(k.$slots, "default", {
1727
+ B(k.$slots, "default", {
1666
1728
  open: y(w),
1667
- close: A
1729
+ close: L
1668
1730
  })
1669
- ], 14, tn)) : O("", !0)
1731
+ ], 14, an)) : O("", !0)
1670
1732
  ]),
1671
1733
  _: 3
1672
1734
  })
1673
1735
  ], 8, ["to", "disabled"]))
1674
1736
  ]));
1675
1737
  }
1676
- }), nn = ["checked", "disabled", "value", "aria-invalid"], an = {
1738
+ }), on = ["checked", "disabled", "value", "aria-invalid"], ln = {
1677
1739
  key: 0,
1678
1740
  class: "vf-radio__content"
1679
- }, Pn = /* @__PURE__ */ L({
1741
+ }, Wn = /* @__PURE__ */ A({
1680
1742
  inheritAttrs: !1,
1681
1743
  __name: "VfRadio",
1682
1744
  props: {
@@ -1689,52 +1751,55 @@ const tt = {
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
- () => N(
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), _ = s(
1763
+ ), v = s(() => a.style), f = s(
1702
1764
  () => Object.fromEntries(
1703
- Object.entries(l).filter(([p]) => p !== "class" && p !== "style")
1765
+ Object.entries(a).filter(([d]) => d !== "class" && d !== "style")
1704
1766
  )
1705
1767
  );
1706
- function b(p) {
1707
- p.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 (p, C) => (d(), h("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
- }, _.value, { onChange: b }), null, 16, nn),
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 || p.$slots.default ? (d(), h("span", an, [
1728
- E(p.$slots, "default", {}, () => [
1729
- oe(F(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
- }), on = ["checked", "disabled"], ln = {
1796
+ }), sn = ["checked", "disabled"], rn = {
1797
+ class: "vf-switch__control",
1798
+ "aria-hidden": "true"
1799
+ }, un = { class: "vf-switch__thumb" }, dn = {
1735
1800
  key: 0,
1736
1801
  class: "vf-switch__content"
1737
- }, Nn = /* @__PURE__ */ L({
1802
+ }, cn = /* @__PURE__ */ A({
1738
1803
  inheritAttrs: !1,
1739
1804
  __name: "VfSwitch",
1740
1805
  props: {
@@ -1745,66 +1810,159 @@ const tt = {
1745
1810
  },
1746
1811
  emits: ["update:modelValue", "change"],
1747
1812
  setup(t, { emit: n }) {
1748
- const e = t, i = n, l = R(), r = s(
1749
- () => N(
1813
+ const e = t, i = n, a = H(), r = s(
1814
+ () => R(
1750
1815
  "vf-switch",
1751
1816
  `vf-switch--${e.size}`,
1752
1817
  e.modelValue && "vf-switch--checked",
1753
1818
  e.disabled && "vf-switch--disabled",
1754
- l.class
1819
+ a.class
1755
1820
  )
1756
- ), u = s(() => l.style), v = s(
1821
+ ), u = s(() => a.style), v = s(
1757
1822
  () => Object.fromEntries(
1758
- Object.entries(l).filter(([b]) => b !== "class" && b !== "style")
1823
+ Object.entries(a).filter(([_]) => _ !== "class" && _ !== "style")
1759
1824
  )
1760
1825
  );
1761
- function _(b) {
1762
- const p = b.target.checked;
1763
- i("update:modelValue", p), i("change", p);
1826
+ function f(_) {
1827
+ const d = _.target.checked;
1828
+ i("update:modelValue", d), i("change", d);
1764
1829
  }
1765
- return (b, p) => (d(), h("label", {
1830
+ return (_, d) => (c(), h("label", {
1766
1831
  class: P(r.value),
1767
1832
  style: W(u.value)
1768
1833
  }, [
1769
- T("input", H({
1834
+ T("input", K({
1770
1835
  class: "vf-switch__input",
1771
1836
  type: "checkbox",
1772
1837
  role: "switch",
1773
1838
  checked: e.modelValue,
1774
1839
  disabled: e.disabled
1775
- }, v.value, { onChange: _ }), null, 16, on),
1776
- p[0] || (p[0] = T("span", {
1777
- class: "vf-switch__control",
1778
- "aria-hidden": "true"
1779
- }, [
1780
- T("span", { class: "vf-switch__thumb" })
1781
- ], -1)),
1782
- t.label || b.$slots.default ? (d(), h("span", ln, [
1783
- E(b.$slots, "default", {}, () => [
1784
- oe(F(t.label), 1)
1840
+ }, v.value, { onChange: f }), null, 16, sn),
1841
+ T("span", rn, [
1842
+ T("span", un, [
1843
+ B(_.$slots, "thumb", {
1844
+ checked: e.modelValue
1845
+ })
1846
+ ])
1847
+ ]),
1848
+ t.label || _.$slots.default ? (c(), h("span", dn, [
1849
+ B(_.$slots, "default", {}, () => [
1850
+ oe(N(t.label), 1)
1785
1851
  ])
1786
1852
  ])) : O("", !0)
1787
1853
  ], 6));
1788
1854
  }
1789
- }), Fn = /* @__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({
1910
+ inheritAttrs: !1,
1911
+ __name: "VfThemeSwitch",
1912
+ props: {
1913
+ size: { default: "md" },
1914
+ disabled: { type: Boolean, default: !1 },
1915
+ label: { default: void 0 }
1916
+ },
1917
+ setup(t) {
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");
1922
+ }
1923
+ });
1924
+ return (f, _) => (c(), q(cn, K(y(e), {
1925
+ modelValue: v.value,
1926
+ "onUpdate:modelValue": _[0] || (_[0] = (d) => v.value = d),
1927
+ size: n.size,
1928
+ disabled: n.disabled,
1929
+ label: n.label
1930
+ }), {
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,
1935
+ size: "0.5rem"
1936
+ }, null, 8, ["icon"])
1937
+ ])
1938
+ ]),
1939
+ default: G(() => [
1940
+ u.value ? B(f.$slots, "default", { key: 0 }, () => [
1941
+ oe(N(n.label), 1)
1942
+ ]) : O("", !0)
1943
+ ]),
1944
+ _: 3
1945
+ }, 16, ["modelValue", "size", "disabled", "label"]));
1946
+ }
1947
+ }), Gn = /* @__PURE__ */ A({
1790
1948
  inheritAttrs: !1,
1791
1949
  __name: "VfTag",
1792
1950
  props: {
1793
1951
  tone: { default: "neutral" }
1794
1952
  },
1795
1953
  setup(t) {
1796
- const n = t, e = R(), i = s(
1797
- () => N("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}`)
1798
1956
  );
1799
- return (l, r) => (d(), h("span", H({ class: i.value }, y(e)), [
1800
- E(l.$slots, "default")
1957
+ return (a, r) => (c(), h("span", K({ class: i.value }, y(e)), [
1958
+ B(a.$slots, "default")
1801
1959
  ], 16));
1802
1960
  }
1803
- }), sn = { class: "vf-tabs" }, rn = {
1961
+ }), hn = { class: "vf-tabs" }, yn = {
1804
1962
  class: "vf-tabs__list",
1805
1963
  role: "tablist",
1806
1964
  "aria-orientation": "horizontal"
1807
- }, un = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], dn = ["id", "aria-labelledby"], Rn = /* @__PURE__ */ L({
1965
+ }, _n = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], bn = ["id", "aria-labelledby"], Qn = /* @__PURE__ */ A({
1808
1966
  __name: "VfTabs",
1809
1967
  props: {
1810
1968
  items: {},
@@ -1813,106 +1971,106 @@ const tt = {
1813
1971
  },
1814
1972
  emits: ["update:modelValue", "change"],
1815
1973
  setup(t, { emit: n }) {
1816
- const e = t, i = n, l = G({ prefix: "vf-tabs" }), r = D([]), u = s(
1974
+ const e = t, i = n, a = Q({ prefix: "vf-tabs" }), r = I([]), u = s(
1817
1975
  () => {
1818
1976
  var $;
1819
- return ($ = e.items.find((f) => !f.disabled)) == null ? void 0 : $.value;
1977
+ return ($ = e.items.find((m) => !m.disabled)) == null ? void 0 : $.value;
1820
1978
  }
1821
- ), v = D(e.defaultValue ?? u.value), _ = s(() => e.modelValue !== void 0), b = s(
1979
+ ), v = I(e.defaultValue ?? u.value), f = s(() => e.modelValue !== void 0), _ = s(
1822
1980
  () => e.modelValue ?? v.value ?? u.value
1823
1981
  );
1824
- Z(
1982
+ J(
1825
1983
  () => e.items,
1826
1984
  ($) => {
1827
1985
  !$.some(
1828
- (a) => a.value === b.value && !a.disabled
1829
- ) && u.value && p(u.value);
1986
+ (o) => o.value === _.value && !o.disabled
1987
+ ) && u.value && d(u.value);
1830
1988
  },
1831
1989
  { deep: !0 }
1832
1990
  );
1833
- function p($) {
1834
- _.value || (v.value = $), i("update:modelValue", $), i("change", $);
1991
+ function d($) {
1992
+ f.value || (v.value = $), i("update:modelValue", $), i("change", $);
1835
1993
  }
1836
1994
  function C($) {
1837
- $.disabled || p($.value);
1995
+ $.disabled || d($.value);
1838
1996
  }
1839
- function x() {
1997
+ function V() {
1840
1998
  return e.items.filter(($) => !$.disabled);
1841
1999
  }
1842
2000
  function w($) {
1843
- var a;
1844
- const f = e.items.findIndex((m) => m.value === $);
1845
- (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();
1846
2004
  }
1847
- function S($, f) {
1848
- const a = x(), m = a.findIndex(
1849
- (c) => c.value === f.value
2005
+ function S($, m) {
2006
+ const o = V(), b = o.findIndex(
2007
+ (p) => p.value === m.value
1850
2008
  );
1851
- if (m !== -1) {
2009
+ if (b !== -1) {
1852
2010
  if ($.key === "ArrowRight" || $.key === "ArrowDown") {
1853
2011
  $.preventDefault();
1854
- const c = a[(m + 1) % a.length];
1855
- C(c), w(c.value);
2012
+ const p = o[(b + 1) % o.length];
2013
+ C(p), w(p.value);
1856
2014
  return;
1857
2015
  }
1858
2016
  if ($.key === "ArrowLeft" || $.key === "ArrowUp") {
1859
2017
  $.preventDefault();
1860
- const c = a[(m - 1 + a.length) % a.length];
1861
- C(c), w(c.value);
2018
+ const p = o[(b - 1 + o.length) % o.length];
2019
+ C(p), w(p.value);
1862
2020
  return;
1863
2021
  }
1864
2022
  if ($.key === "Home") {
1865
2023
  $.preventDefault();
1866
- const c = a[0];
1867
- C(c), w(c.value);
2024
+ const p = o[0];
2025
+ C(p), w(p.value);
1868
2026
  return;
1869
2027
  }
1870
2028
  if ($.key === "End") {
1871
2029
  $.preventDefault();
1872
- const c = a[a.length - 1];
1873
- C(c), w(c.value);
2030
+ const p = o[o.length - 1];
2031
+ C(p), w(p.value);
1874
2032
  }
1875
2033
  }
1876
2034
  }
1877
- function I($) {
1878
- return `${l.value}-tab-${$}`;
2035
+ function D($) {
2036
+ return `${a.value}-tab-${$}`;
1879
2037
  }
1880
- function M($) {
1881
- return `${l.value}-panel-${$}`;
2038
+ function z($) {
2039
+ return `${a.value}-panel-${$}`;
1882
2040
  }
1883
- return ($, f) => (d(), h("div", sn, [
1884
- T("div", rn, [
1885
- (d(!0), h(ue, null, de(t.items, (a, m) => (d(), h("button", {
1886
- id: I(a.value),
1887
- 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,
1888
2046
  ref_for: !0,
1889
- ref: (c) => {
1890
- r.value[m] = c;
2047
+ ref: (p) => {
2048
+ r.value[b] = p;
1891
2049
  },
1892
- "aria-controls": M(a.value),
1893
- "aria-selected": b.value === a.value,
1894
- disabled: a.disabled,
1895
- tabindex: b.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,
1896
2054
  class: "vf-tabs__tab",
1897
2055
  role: "tab",
1898
2056
  type: "button",
1899
- onClick: (c) => C(a),
1900
- onKeydown: (c) => S(c, a)
1901
- }, F(a.label), 41, un))), 128))
2057
+ onClick: (p) => C(o),
2058
+ onKeydown: (p) => S(p, o)
2059
+ }, N(o.label), 41, _n))), 128))
1902
2060
  ]),
1903
- b.value ? (d(), h("div", {
2061
+ _.value ? (c(), h("div", {
1904
2062
  key: 0,
1905
- id: M(b.value),
1906
- "aria-labelledby": I(b.value),
2063
+ id: z(_.value),
2064
+ "aria-labelledby": D(_.value),
1907
2065
  class: "vf-tabs__panel",
1908
2066
  role: "tabpanel",
1909
2067
  tabindex: "0"
1910
2068
  }, [
1911
- E($.$slots, "panel", Ve(Ce({ activeValue: b.value })))
1912
- ], 8, dn)) : O("", !0)
2069
+ B($.$slots, "panel", Ve(Ce({ activeValue: _.value })))
2070
+ ], 8, bn)) : O("", !0)
1913
2071
  ]));
1914
2072
  }
1915
- }), cn = ["value", "aria-invalid"], Hn = /* @__PURE__ */ L({
2073
+ }), gn = ["value", "aria-invalid"], Jn = /* @__PURE__ */ A({
1916
2074
  inheritAttrs: !1,
1917
2075
  __name: "VfTextarea",
1918
2076
  props: {
@@ -1922,8 +2080,8 @@ const tt = {
1922
2080
  },
1923
2081
  emits: ["update:modelValue"],
1924
2082
  setup(t, { emit: n }) {
1925
- const e = t, i = n, l = R(), r = s(
1926
- () => N(
2083
+ const e = t, i = n, a = H(), r = s(
2084
+ () => R(
1927
2085
  "vf-textarea",
1928
2086
  e.size !== "md" && `vf-textarea--${e.size}`,
1929
2087
  e.invalid && "vf-textarea--invalid"
@@ -1932,13 +2090,13 @@ const tt = {
1932
2090
  function u(v) {
1933
2091
  i("update:modelValue", v.target.value);
1934
2092
  }
1935
- return (v, _) => (d(), h("textarea", H({
2093
+ return (v, f) => (c(), h("textarea", K({
1936
2094
  class: r.value,
1937
2095
  value: e.modelValue,
1938
2096
  "aria-invalid": e.invalid || void 0
1939
- }, y(l), { onInput: u }), null, 16, cn));
2097
+ }, y(a), { onInput: u }), null, 16, gn));
1940
2098
  }
1941
- }), fn = ["aria-describedby"], vn = ["id"], Kn = /* @__PURE__ */ L({
2099
+ }), $n = ["aria-describedby"], kn = ["id"], Zn = /* @__PURE__ */ A({
1942
2100
  __name: "VfTooltip",
1943
2101
  props: {
1944
2102
  text: { default: void 0 },
@@ -1948,61 +2106,61 @@ const tt = {
1948
2106
  disableTeleport: { type: Boolean, default: !1 }
1949
2107
  },
1950
2108
  setup(t) {
1951
- const n = t, e = D(!1), i = G({ prefix: "vf-tooltip" }), l = D(null), r = D(null), u = D(null), v = D(null), _ = {
1952
- enter: U.fast,
1953
- leave: U.fast
1954
- }, b = s(
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 = {
2110
+ enter: Y.fast,
2111
+ leave: Y.fast
2112
+ }, _ = s(
1955
2113
  () => n.disableTeleport || n.teleportTo === !1 || n.teleportTo === null
1956
- ), p = s(() => typeof n.teleportTo == "string" || typeof HTMLElement < "u" && n.teleportTo instanceof HTMLElement ? n.teleportTo : "body"), {
2114
+ ), d = s(() => typeof n.teleportTo == "string" || typeof HTMLElement < "u" && n.teleportTo instanceof HTMLElement ? n.teleportTo : "body"), {
1957
2115
  placement: C,
1958
- middlewareData: x,
2116
+ middlewareData: V,
1959
2117
  styles: w,
1960
2118
  cleanup: S
1961
- } = ye(r, u, {
2119
+ } = _e(r, u, {
1962
2120
  enabled: e,
1963
2121
  placement: s(() => n.placement),
1964
2122
  middleware: s(
1965
2123
  () => [
1966
- ve(10),
1967
- pe({ placements: ["top", "bottom"] }),
1968
- me(),
1969
- v.value ? he(v.value) : void 0
1970
- ].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)
1971
2129
  ),
1972
2130
  strategy: "fixed"
1973
- }), I = s(() => [
2131
+ }), D = s(() => [
1974
2132
  "vf-tooltip__content",
1975
2133
  C.value.startsWith("bottom") && "vf-tooltip__content--bottom",
1976
2134
  C.value.startsWith("top") && "vf-tooltip__content--top"
1977
- ]), M = s(() => {
1978
- const o = x.value.arrow;
2135
+ ]), z = s(() => {
2136
+ const l = V.value.arrow;
1979
2137
  return {
1980
- x: (o == null ? void 0 : o.x) !== void 0 && (o == null ? void 0 : o.baseX) !== void 0 ? o.x - o.baseX : 0,
1981
- 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
1982
2140
  };
1983
- }), $ = s(() => ["vf-tooltip__arrow"]), f = s(() => ({
1984
- left: `${M.value.x}px`,
1985
- top: `${M.value.y}px`
2141
+ }), $ = s(() => ["vf-tooltip__arrow"]), m = s(() => ({
2142
+ left: `${z.value.x}px`,
2143
+ top: `${z.value.y}px`
1986
2144
  }));
1987
- function a() {
1988
- l.value !== null && (window.clearTimeout(l.value), l.value = null);
2145
+ function o() {
2146
+ a.value !== null && (window.clearTimeout(a.value), a.value = null);
1989
2147
  }
1990
- function m() {
1991
- a(), l.value = window.setTimeout(() => {
2148
+ function b() {
2149
+ o(), a.value = window.setTimeout(() => {
1992
2150
  e.value = !0;
1993
2151
  }, n.openDelay);
1994
2152
  }
1995
- function c() {
1996
- a(), e.value = !1;
2153
+ function p() {
2154
+ o(), e.value = !1;
1997
2155
  }
1998
- return ee(() => {
1999
- a(), S();
2000
- }), (o, B) => (d(), h("span", {
2156
+ return te(() => {
2157
+ o(), S();
2158
+ }), (l, E) => (c(), h("span", {
2001
2159
  class: "vf-tooltip",
2002
- onMouseenter: m,
2003
- onMouseleave: c,
2004
- onFocusin: m,
2005
- onFocusout: c
2160
+ onMouseenter: b,
2161
+ onMouseleave: p,
2162
+ onFocusin: b,
2163
+ onFocusout: p
2006
2164
  }, [
2007
2165
  T("span", {
2008
2166
  ref_key: "triggerRef",
@@ -2010,38 +2168,38 @@ const tt = {
2010
2168
  class: "vf-tooltip__trigger",
2011
2169
  "aria-describedby": e.value ? y(i) : void 0
2012
2170
  }, [
2013
- E(o.$slots, "default")
2014
- ], 8, fn),
2015
- (d(), q(le, {
2016
- to: p.value,
2017
- disabled: b.value
2171
+ B(l.$slots, "default")
2172
+ ], 8, $n),
2173
+ (c(), q(re, {
2174
+ to: d.value,
2175
+ disabled: _.value
2018
2176
  }, [
2019
- j(ne, {
2177
+ j(ae, {
2020
2178
  name: "vf-floating-transition",
2021
2179
  appear: "",
2022
- duration: _
2180
+ duration: f
2023
2181
  }, {
2024
- default: Q(() => [
2025
- e.value && (t.text || o.$slots.content) ? (d(), h("span", {
2182
+ default: G(() => [
2183
+ e.value && (t.text || l.$slots.content) ? (c(), h("span", {
2026
2184
  key: 0,
2027
2185
  id: y(i),
2028
2186
  ref_key: "contentRef",
2029
2187
  ref: u,
2030
- class: P(I.value),
2188
+ class: P(D.value),
2031
2189
  style: W(y(w)),
2032
2190
  role: "tooltip"
2033
2191
  }, [
2034
- E(o.$slots, "content", {}, () => [
2035
- oe(F(t.text), 1)
2192
+ B(l.$slots, "content", {}, () => [
2193
+ oe(N(t.text), 1)
2036
2194
  ]),
2037
2195
  T("span", {
2038
2196
  ref_key: "arrowRef",
2039
2197
  ref: v,
2040
2198
  class: P($.value),
2041
- style: W(f.value),
2199
+ style: W(m.value),
2042
2200
  "aria-hidden": "true"
2043
2201
  }, null, 6)
2044
- ], 14, vn)) : O("", !0)
2202
+ ], 14, kn)) : O("", !0)
2045
2203
  ]),
2046
2204
  _: 3
2047
2205
  })
@@ -2050,46 +2208,49 @@ const tt = {
2050
2208
  }
2051
2209
  });
2052
2210
  export {
2053
- wn as VfAccordion,
2054
- Tn as VfAlert,
2055
- Vn as VfBadge,
2056
- Cn as VfButton,
2057
- xn as VfCard,
2058
- Bn as VfCheckbox,
2059
- On as VfDialog,
2060
- An as VfDivider,
2061
- En as VfDrawer,
2062
- Dn as VfDropdown,
2063
- De as VfIconButton,
2064
- In as VfInput,
2065
- Ln as VfLink,
2066
- Sn as VfNavMenu,
2067
- Mn as VfPanel,
2068
- zn as VfPopover,
2069
- Pn as VfRadio,
2070
- Nn as VfSwitch,
2071
- Rn as VfTabs,
2072
- Fn as VfTag,
2073
- Hn as VfTextarea,
2074
- $n as VfThemeProvider,
2075
- Kn as VfTooltip,
2076
- bn as VueForgeCore,
2077
- Wn as createThemePreset,
2078
- Ue as createVueForgeCore,
2079
- bn as default,
2080
- Fe as defaultThemePreset,
2081
- Yn as toMaxWidthQuery,
2082
- Xn as toMinWidthQuery,
2083
- Gn as useBreakpoint,
2084
- Qn as useBreakpointValue,
2085
- Jn 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,
2086
2246
  Oe as useClickOutside,
2087
- se as useDisclosure,
2247
+ ue as useDisclosure,
2088
2248
  fe as useEscapeKey,
2089
- ye as useFloating,
2090
- Ae as useFocusTrap,
2091
- G as useId,
2249
+ _e as useFloating,
2250
+ Ie as useFocusTrap,
2251
+ Q as useId,
2092
2252
  xe as useScrollLock,
2093
- kn as useTheme,
2094
- Zn as vfBreakpoints
2253
+ In as useTableOfContents,
2254
+ Je as useTheme,
2255
+ ua as vfBreakpoints
2095
2256
  };