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