@codemonster-ru/vueforge 0.85.0 → 0.86.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.
package/dist/index.ts.mjs CHANGED
@@ -15,7 +15,7 @@ const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ ne({
15
15
  },
16
16
  emits: ["click", "active", "update:active", "onActive"],
17
17
  setup(n, { emit: o }) {
18
- const a = o, e = n, t = Ot(), i = At(), s = G(null), d = f(() => e.href ?? e.url), r = f(() => e.as ? e.as === "router-link" && !e.to ? "a" : e.as : e.type === "router-link" || e.type === "a" ? e.type === "router-link" && !e.to ? "a" : e.type : e.to ? "router-link" : "a"), u = f(() => e.to), v = f(() => e.to ? i.resolve(e.to) : null), p = f(() => {
18
+ const a = o, e = n, t = Ot(), i = At(), s = G(null), u = f(() => e.href ?? e.url), r = f(() => e.as ? e.as === "router-link" && !e.to ? "a" : e.as : e.type === "router-link" || e.type === "a" ? e.type === "router-link" && !e.to ? "a" : e.type : e.to ? "router-link" : "a"), d = f(() => e.to), v = f(() => e.to ? i.resolve(e.to) : null), p = f(() => {
19
19
  if (r.value !== "router-link")
20
20
  return !1;
21
21
  const _ = v.value;
@@ -35,7 +35,7 @@ const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ ne({
35
35
  const y = nt("router-link");
36
36
  return r.value === "a" ? (c(), b("a", {
37
37
  key: 0,
38
- href: _.disabled ? void 0 : d.value,
38
+ href: _.disabled ? void 0 : u.value,
39
39
  class: ee(["vf-link", { "vf-link_active": m.value, "vf-link_disabled": _.disabled }]),
40
40
  "aria-disabled": _.disabled ? "true" : void 0,
41
41
  tabindex: _.disabled ? -1 : void 0,
@@ -49,7 +49,7 @@ const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ ne({
49
49
  key: 1,
50
50
  ref_key: "link",
51
51
  ref: s,
52
- to: u.value,
52
+ to: d.value,
53
53
  class: ee(["vf-link", { "vf-link_active": m.value }]),
54
54
  "aria-disabled": _.disabled ? "true" : void 0,
55
55
  tabindex: _.disabled ? -1 : void 0,
@@ -175,12 +175,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
175
175
  const t = {}, i = a(o.columns);
176
176
  i && (t["--vf-grid-columns-override"] = i), o.gap && (t["--vf-grid-gap-override"] = o.gap), o.columnGap && (t["--vf-grid-column-gap-override"] = o.columnGap), o.rowGap && (t["--vf-grid-row-gap-override"] = o.rowGap), t["--vf-grid-align-items-override"] = o.align, t["--vf-grid-justify-items-override"] = o.justify;
177
177
  const s = ["sm", "md", "lg", "xl"];
178
- for (const d of s) {
179
- const r = o.breakpoints[d];
178
+ for (const u of s) {
179
+ const r = o.breakpoints[u];
180
180
  if (!r)
181
181
  continue;
182
- const u = a(r.columns);
183
- u && (t[`--vf-grid-columns-${d}-override`] = u), r.gap && (t[`--vf-grid-gap-${d}-override`] = r.gap), r.columnGap && (t[`--vf-grid-column-gap-${d}-override`] = r.columnGap), r.rowGap && (t[`--vf-grid-row-gap-${d}-override`] = r.rowGap), r.align && (t[`--vf-grid-align-items-${d}-override`] = r.align), r.justify && (t[`--vf-grid-justify-items-${d}-override`] = r.justify);
182
+ const d = a(r.columns);
183
+ d && (t[`--vf-grid-columns-${u}-override`] = d), r.gap && (t[`--vf-grid-gap-${u}-override`] = r.gap), r.columnGap && (t[`--vf-grid-column-gap-${u}-override`] = r.columnGap), r.rowGap && (t[`--vf-grid-row-gap-${u}-override`] = r.rowGap), r.align && (t[`--vf-grid-align-items-${u}-override`] = r.align), r.justify && (t[`--vf-grid-justify-items-${u}-override`] = r.justify);
184
184
  }
185
185
  return t;
186
186
  });
@@ -206,18 +206,18 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
206
206
  },
207
207
  setup(n) {
208
208
  const o = n, a = (t, i, s) => {
209
- const d = t === "" || t === void 0 ? "" : String(t).trim(), r = i === "" || i === void 0 ? "" : String(i).trim(), u = s === "" || s === void 0 ? "" : String(s).trim();
210
- return !d && !r && !u ? "" : r && u ? `${r} / ${u}` : r && d ? `${r} / span ${d}` : u && d ? `span ${d} / ${u}` : r || (u ? `auto / ${u}` : `span ${d} / span ${d}`);
209
+ const u = t === "" || t === void 0 ? "" : String(t).trim(), r = i === "" || i === void 0 ? "" : String(i).trim(), d = s === "" || s === void 0 ? "" : String(s).trim();
210
+ return !u && !r && !d ? "" : r && d ? `${r} / ${d}` : r && u ? `${r} / span ${u}` : d && u ? `span ${u} / ${d}` : r || (d ? `auto / ${d}` : `span ${u} / span ${u}`);
211
211
  }, e = f(() => {
212
212
  const t = {}, i = a(o.span, o.start, o.end);
213
213
  i && (t["--vf-grid-item-column-override"] = i);
214
214
  const s = ["sm", "md", "lg", "xl"];
215
- for (const d of s) {
216
- const r = o.breakpoints[d];
215
+ for (const u of s) {
216
+ const r = o.breakpoints[u];
217
217
  if (!r)
218
218
  continue;
219
- const u = a(r.span, r.start, r.end);
220
- u && (t[`--vf-grid-item-column-${d}-override`] = u);
219
+ const d = a(r.span, r.start, r.end);
220
+ d && (t[`--vf-grid-item-column-${u}-override`] = d);
221
221
  }
222
222
  return t;
223
223
  });
@@ -302,7 +302,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
302
302
  },
303
303
  emits: ["active", "onActive"],
304
304
  setup(n, { emit: o }) {
305
- const a = o, e = n, t = G([]), i = (y, z) => `${y.label ?? y.to ?? y.href ?? y.url ?? "item"}_${z.toString()}`, s = (y) => y.toLowerCase().replace(/[^a-z0-9_-]+/g, "-"), d = (y, z) => `vf-menu-parent-${s(i(y, z))}`, r = (y, z) => `vf-menu-submenu-${s(i(y, z))}`, u = (y) => y.to ? "router-link" : "a", v = (y) => y.map((z) => ({
305
+ const a = o, e = n, t = G([]), i = (y, z) => `${y.label ?? y.to ?? y.href ?? y.url ?? "item"}_${z.toString()}`, s = (y) => y.toLowerCase().replace(/[^a-z0-9_-]+/g, "-"), u = (y, z) => `vf-menu-parent-${s(i(y, z))}`, r = (y, z) => `vf-menu-submenu-${s(i(y, z))}`, d = (y) => y.to ? "router-link" : "a", v = (y) => y.map((z) => ({
306
306
  ...z,
307
307
  items: z.items ? v(z.items) : void 0
308
308
  })), p = (y) => {
@@ -359,7 +359,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
359
359
  item: { ...g, class: "vf-menu__link" }
360
360
  }) : g.separator ? (c(), b("hr", Zt)) : g.items && g.items.length ? (c(), b(fe, { key: 2 }, [
361
361
  B("button", {
362
- id: d(g, w),
362
+ id: u(g, w),
363
363
  class: ee(["vf-menu__parent", { "vf-menu__parent_active": g.active }]),
364
364
  type: "button",
365
365
  role: "menuitem",
@@ -392,7 +392,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
392
392
  key: 3,
393
393
  to: g.to,
394
394
  href: g.href ?? g.url,
395
- as: u(g),
395
+ as: d(g),
396
396
  class: "vf-menu__link",
397
397
  active: g.active,
398
398
  disabled: g.disabled,
@@ -436,16 +436,16 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
436
436
  disabled: { type: Boolean, default: !1 }
437
437
  },
438
438
  setup(n) {
439
- const o = n, a = qe(dt, null), e = ["button", "submit", "reset"], t = (m) => !!m && e.includes(m), i = f(() => o.as ? o.as === "button" : !(o.to || o.href || o.url || o.type && !t(o.type))), s = f(() => t(o.type) ? o.type : "button"), d = f(() => o.as === "link" ? o.to ? "router-link" : "a" : o.type && !t(o.type) ? o.type === "router-link" && o.to ? "router-link" : "a" : o.to ? "router-link" : "a"), r = f(() => {
439
+ const o = n, a = qe(dt, null), e = ["button", "submit", "reset"], t = (m) => !!m && e.includes(m), i = f(() => o.as ? o.as === "button" : !(o.to || o.href || o.url || o.type && !t(o.type))), s = f(() => t(o.type) ? o.type : "button"), u = f(() => o.as === "link" ? o.to ? "router-link" : "a" : o.type && !t(o.type) ? o.type === "router-link" && o.to ? "router-link" : "a" : o.to ? "router-link" : "a"), r = f(() => {
440
440
  const m = o.size ?? (a == null ? void 0 : a.value.size) ?? "normal", $ = o.variant ?? (a == null ? void 0 : a.value.variant), l = o.severity ?? (a == null ? void 0 : a.value.severity) ?? "primary", _ = o.loading || o.disabled || (a == null ? void 0 : a.value.disabled);
441
441
  let k = ["vf-button", `vf-button_${l}`];
442
442
  return ["top", "bottom"].includes(o.iconPos) && k.push("vf-button_vertical"), $ === "text" && k.push("vf-button_text"), $ === "outlined" && k.push("vf-button_outlined"), ["small", "large"].indexOf(m) > -1 && k.push(`vf-button_${m}`), _ && k.push("vf-button_disabled"), o.rounded && k.push("vf-button_rounded"), k;
443
- }), u = f(() => o.disabled || (a == null ? void 0 : a.value.disabled) === !0), v = f(() => ["vf-button__icon", `vf-button__icon_${o.iconPos}`]), p = f(() => ["vf-button__label"]);
443
+ }), d = f(() => o.disabled || (a == null ? void 0 : a.value.disabled) === !0), v = f(() => ["vf-button__icon", `vf-button__icon_${o.iconPos}`]), p = f(() => ["vf-button__label"]);
444
444
  return (m, $) => i.value ? (c(), b("button", {
445
445
  key: 0,
446
446
  type: s.value,
447
447
  class: ee(r.value),
448
- disabled: o.loading || u.value
448
+ disabled: o.loading || d.value
449
449
  }, [
450
450
  o.icon && !o.loading ? (c(), be(We(Ne), {
451
451
  key: 0,
@@ -471,9 +471,9 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
471
471
  key: 1,
472
472
  to: o.to,
473
473
  href: o.href ?? o.url,
474
- as: d.value,
474
+ as: u.value,
475
475
  class: ee(r.value),
476
- disabled: o.loading || u.value
476
+ disabled: o.loading || d.value
477
477
  }, {
478
478
  default: Ce(() => [
479
479
  o.icon ? (c(), be(We(Ne), {
@@ -528,7 +528,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
528
528
  }), aa = {
529
529
  key: 0,
530
530
  class: "vf-input__prefix"
531
- }, oa = ["type", "value", "placeholder", "disabled", "readonly"], ra = {
531
+ }, oa = ["id", "type", "name", "value", "placeholder", "autocomplete", "inputmode", "disabled", "readonly", "required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-required"], ra = {
532
532
  key: 1,
533
533
  class: "vf-input__suffix"
534
534
  }, cc = /* @__PURE__ */ ne({
@@ -539,38 +539,58 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
539
539
  placeholder: { default: "" },
540
540
  disabled: { type: Boolean, default: !1 },
541
541
  readonly: { type: Boolean, default: !1 },
542
+ required: { type: Boolean, default: !1 },
543
+ id: { default: void 0 },
544
+ name: { default: void 0 },
545
+ autocomplete: { default: void 0 },
546
+ inputmode: { default: void 0 },
547
+ ariaLabel: { default: void 0 },
548
+ ariaLabelledby: { default: void 0 },
549
+ ariaDescribedby: { default: void 0 },
550
+ ariaInvalid: { type: [Boolean, String], default: void 0 },
551
+ ariaRequired: { type: [Boolean, String], default: void 0 },
542
552
  size: { default: "normal" },
543
553
  variant: { default: "filled" }
544
554
  },
545
555
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
546
556
  setup(n, { emit: o }) {
547
557
  const a = o, e = n, t = f(() => {
548
- const u = ["vf-input", `vf-input_${e.variant}`];
549
- return e.size !== "normal" && u.push(`vf-input_${e.size}`), e.disabled && u.push("vf-input_disabled"), u;
550
- }), i = (u) => {
551
- const v = u.target;
552
- a("update:modelValue", v.value), a("input", u);
553
- }, s = (u) => a("change", u), d = (u) => a("focus", u), r = (u) => a("blur", u);
554
- return (u, v) => (c(), b("div", {
558
+ const d = ["vf-input", `vf-input_${e.variant}`];
559
+ return e.size !== "normal" && d.push(`vf-input_${e.size}`), e.disabled && d.push("vf-input_disabled"), d;
560
+ }), i = (d) => {
561
+ const v = d.target;
562
+ a("update:modelValue", v.value), a("input", d);
563
+ }, s = (d) => a("change", d), u = (d) => a("focus", d), r = (d) => a("blur", d);
564
+ return (d, v) => (c(), b("div", {
555
565
  class: ee(t.value)
556
566
  }, [
557
- u.$slots.prefix ? (c(), b("span", aa, [
558
- q(u.$slots, "prefix")
567
+ d.$slots.prefix ? (c(), b("span", aa, [
568
+ q(d.$slots, "prefix")
559
569
  ])) : Q("", !0),
560
570
  B("input", {
571
+ id: d.id,
561
572
  class: "vf-input__control",
562
- type: u.type,
563
- value: u.modelValue,
564
- placeholder: u.placeholder,
565
- disabled: u.disabled,
566
- readonly: u.readonly,
573
+ type: d.type,
574
+ name: d.name,
575
+ value: d.modelValue,
576
+ placeholder: d.placeholder,
577
+ autocomplete: d.autocomplete,
578
+ inputmode: d.inputmode,
579
+ disabled: d.disabled,
580
+ readonly: d.readonly,
581
+ required: d.required,
582
+ "aria-label": d.ariaLabel,
583
+ "aria-labelledby": d.ariaLabelledby,
584
+ "aria-describedby": d.ariaDescribedby,
585
+ "aria-invalid": d.ariaInvalid === !0 || d.ariaInvalid === "true" ? "true" : d.ariaInvalid === "false" ? "false" : void 0,
586
+ "aria-required": d.required || d.ariaRequired === !0 || d.ariaRequired === "true" ? "true" : d.ariaRequired === "false" ? "false" : void 0,
567
587
  onInput: i,
568
588
  onChange: s,
569
- onFocus: d,
589
+ onFocus: u,
570
590
  onBlur: r
571
591
  }, null, 40, oa),
572
- u.$slots.suffix ? (c(), b("span", ra, [
573
- q(u.$slots, "suffix")
592
+ d.$slots.suffix ? (c(), b("span", ra, [
593
+ q(d.$slots, "suffix")
574
594
  ])) : Q("", !0)
575
595
  ], 2));
576
596
  }
@@ -623,7 +643,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
623
643
  },
624
644
  emits: ["update:modelValue", "save", "cancel", "start", "end", "focus", "blur"],
625
645
  setup(n, { emit: o }) {
626
- const a = o, e = n, t = G(!1), i = G(""), s = G(null), d = f(() => !e.disabled && !e.readonly), r = f(() => e.type === "number" ? "number" : "text"), u = f(() => e.modelValue === null || e.modelValue === void 0 || e.modelValue === "" ? e.placeholder : String(e.modelValue)), v = f(
646
+ const a = o, e = n, t = G(!1), i = G(""), s = G(null), u = f(() => !e.disabled && !e.readonly), r = f(() => e.type === "number" ? "number" : "text"), d = f(() => e.modelValue === null || e.modelValue === void 0 || e.modelValue === "" ? e.placeholder : String(e.modelValue)), v = f(
627
647
  () => e.modelValue === null || e.modelValue === void 0 || e.modelValue === ""
628
648
  ), p = f(() => {
629
649
  const g = ["vf-inline-edit", `vf-inline-edit_${e.variant}`];
@@ -636,7 +656,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
636
656
  i.value = String(e.modelValue);
637
657
  }, $ = async () => {
638
658
  var g, w;
639
- !d.value || t.value || (m(), t.value = !0, a("start"), await $e(), (g = s.value) == null || g.focus(), (w = s.value) == null || w.select());
659
+ !u.value || t.value || (m(), t.value = !0, a("start"), await $e(), (g = s.value) == null || g.focus(), (w = s.value) == null || w.select());
640
660
  }, l = () => {
641
661
  if (e.type === "number") {
642
662
  if (!i.value.trim())
@@ -694,8 +714,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
694
714
  ], 64)) : (c(), b(fe, { key: 1 }, [
695
715
  B("span", {
696
716
  class: ee(["vf-inline-edit__value", { "vf-inline-edit__value_placeholder": v.value }])
697
- }, j(u.value), 3),
698
- d.value ? (c(), b("button", {
717
+ }, j(d.value), 3),
718
+ u.value ? (c(), b("button", {
699
719
  key: 0,
700
720
  class: "vf-inline-edit__action",
701
721
  type: "button",
@@ -727,7 +747,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
727
747
  setup(n, { emit: o }) {
728
748
  const a = o, e = n, t = G(null), i = G(`${e.modelValue ?? ""}`);
729
749
  let s = null;
730
- const d = f(() => {
750
+ const u = f(() => {
731
751
  const k = ["vf-search-input", `vf-search-input_${e.variant}`];
732
752
  return e.size !== "normal" && k.push(`vf-search-input_${e.size}`), e.disabled && k.push("vf-search-input_disabled"), k;
733
753
  });
@@ -739,7 +759,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
739
759
  );
740
760
  const r = () => {
741
761
  s && (clearTimeout(s), s = null);
742
- }, u = (k, y = !1) => {
762
+ }, d = (k, y = !1) => {
743
763
  if (!(e.disabled || e.readonly)) {
744
764
  if (r(), y || e.debounce <= 0) {
745
765
  a("search", k);
@@ -751,17 +771,17 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
751
771
  }
752
772
  }, v = (k) => {
753
773
  const z = k.target.value;
754
- i.value = z, a("update:modelValue", z), a("input", k), u(z);
774
+ i.value = z, a("update:modelValue", z), a("input", k), d(z);
755
775
  }, p = (k) => a("change", k), m = (k) => a("focus", k), $ = (k) => a("blur", k), l = () => {
756
- u(i.value, !0);
776
+ d(i.value, !0);
757
777
  }, _ = () => {
758
778
  var k;
759
- e.disabled || e.readonly || (i.value = "", a("update:modelValue", ""), a("change", ""), a("clear"), u("", !0), (k = t.value) == null || k.focus());
779
+ e.disabled || e.readonly || (i.value = "", a("update:modelValue", ""), a("change", ""), a("clear"), d("", !0), (k = t.value) == null || k.focus());
760
780
  };
761
781
  return we(() => {
762
782
  r();
763
783
  }), (k, y) => (c(), b("div", {
764
- class: ee(d.value)
784
+ class: ee(u.value)
765
785
  }, [
766
786
  y[0] || (y[0] = B("span", {
767
787
  class: "vf-search-input__icon",
@@ -821,7 +841,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
821
841
  emits: ["update:modelValue", "input", "change", "search", "insert", "select", "focus", "blur"],
822
842
  setup(n, { emit: o }) {
823
843
  let a = 0;
824
- const e = o, t = n, i = G(null), s = G(null), d = G(!1), r = G(-1), u = `vf-mention-input-panel-${++a}`, v = G(null), p = f(() => {
844
+ const e = o, t = n, i = G(null), s = G(null), u = G(!1), r = G(-1), d = `vf-mention-input-panel-${++a}`, v = G(null), p = f(() => {
825
845
  var F;
826
846
  return ((F = v.value) == null ? void 0 : F.trigger) ?? t.triggers[0] ?? "@";
827
847
  }), m = f(() => t.suggestions.map((F) => ({
@@ -839,18 +859,18 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
839
859
  const F = [
840
860
  "vf-mention-input",
841
861
  `vf-mention-input_${t.variant}`,
842
- d.value ? "vf-mention-input_open" : ""
862
+ u.value ? "vf-mention-input_open" : ""
843
863
  ];
844
864
  return t.size !== "normal" && F.push(`vf-mention-input_${t.size}`), t.disabled && F.push("vf-mention-input_disabled"), F.filter(Boolean);
845
865
  }), k = () => {
846
- d.value = !1, r.value = -1;
866
+ u.value = !1, r.value = -1;
847
867
  }, y = () => {
848
868
  if (!(t.disabled || t.readonly)) {
849
869
  if (!l.value.length) {
850
870
  k();
851
871
  return;
852
872
  }
853
- d.value = !0, r.value < 0 && (r.value = z());
873
+ u.value = !0, r.value < 0 && (r.value = z());
854
874
  }
855
875
  }, z = () => l.value.findIndex((F) => !F.disabled), C = (F, H) => {
856
876
  const Z = F.slice(0, H);
@@ -884,7 +904,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
884
904
  (H = i.value) != null && H.contains(document.activeElement) || k();
885
905
  }, 0);
886
906
  }, O = (F) => {
887
- if (!d.value || !l.value.length)
907
+ if (!u.value || !l.value.length)
888
908
  return;
889
909
  let H = r.value;
890
910
  (H < 0 || H >= l.value.length) && (H = F > 0 ? -1 : l.value.length);
@@ -894,13 +914,13 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
894
914
  return;
895
915
  }
896
916
  }, E = () => {
897
- if (!d.value) {
917
+ if (!u.value) {
898
918
  y();
899
919
  return;
900
920
  }
901
921
  O(1);
902
922
  }, T = () => {
903
- if (!d.value) {
923
+ if (!u.value) {
904
924
  y();
905
925
  return;
906
926
  }
@@ -920,7 +940,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
920
940
  (V = s.value) == null || V.focus(), (Y = s.value) == null || Y.setSelectionRange(A, A);
921
941
  });
922
942
  }, M = () => {
923
- if (!d.value)
943
+ if (!u.value)
924
944
  return;
925
945
  const F = l.value[r.value];
926
946
  F && D(F);
@@ -966,8 +986,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
966
986
  disabled: F.disabled,
967
987
  readonly: F.readonly,
968
988
  "aria-label": F.ariaLabel,
969
- "aria-expanded": d.value,
970
- "aria-controls": u,
989
+ "aria-expanded": u.value,
990
+ "aria-controls": d,
971
991
  "aria-autocomplete": "list",
972
992
  onInput: w,
973
993
  onChange: L,
@@ -976,7 +996,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
976
996
  onKeydown: S
977
997
  }, null, 40, pa),
978
998
  ze(B("div", {
979
- id: u,
999
+ id: d,
980
1000
  class: "vf-mention-input__panel",
981
1001
  role: "listbox"
982
1002
  }, [
@@ -994,7 +1014,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
994
1014
  B("span", null, j(Z.label), 1)
995
1015
  ], 42, ga))), 128)) : (c(), b("div", ha, j(F.emptyText), 1))
996
1016
  ], 512), [
997
- [Se, d.value]
1017
+ [Se, u.value]
998
1018
  ])
999
1019
  ], 2));
1000
1020
  }
@@ -1038,14 +1058,14 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1038
1058
  const a = o, e = n, t = G(!1), i = G(!1), s = f(() => {
1039
1059
  const y = ["vf-password-input", `vf-password-input_${e.variant}`];
1040
1060
  return e.size !== "normal" && y.push(`vf-password-input_${e.size}`), e.disabled && y.push("vf-password-input_disabled"), y;
1041
- }), d = f(() => {
1061
+ }), u = f(() => {
1042
1062
  const y = e.modelValue ?? "";
1043
1063
  if (!y)
1044
1064
  return "weak";
1045
1065
  let z = 0;
1046
1066
  return y.length >= 8 && (z += 1), /[a-z]/.test(y) && /[A-Z]/.test(y) && (z += 1), /\d/.test(y) && (z += 1), /[^a-zA-Z0-9]/.test(y) && (z += 1), z >= 4 ? "strong" : z >= 2 ? "medium" : "weak";
1047
- }), r = f(() => d.value === "strong" ? 100 : d.value === "medium" ? 66 : 33), u = f(() => d.value === "strong" ? e.strongLabel : d.value === "medium" ? e.mediumLabel : e.weakLabel), v = f(
1048
- () => `vf-password-input__strength-fill vf-password-input__strength-fill_${d.value}`
1067
+ }), r = f(() => u.value === "strong" ? 100 : u.value === "medium" ? 66 : 33), d = f(() => u.value === "strong" ? e.strongLabel : u.value === "medium" ? e.mediumLabel : e.weakLabel), v = f(
1068
+ () => `vf-password-input__strength-fill vf-password-input__strength-fill_${u.value}`
1049
1069
  ), p = (y) => {
1050
1070
  const z = y.target;
1051
1071
  a("update:modelValue", z.value), a("input", y);
@@ -1099,7 +1119,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1099
1119
  style: ke({ width: `${r.value}%` })
1100
1120
  }, null, 6)
1101
1121
  ]),
1102
- B("span", Sa, j(u.value), 1)
1122
+ B("span", Sa, j(d.value), 1)
1103
1123
  ])) : Q("", !0),
1104
1124
  y.showCapsLockHint && i.value && !y.disabled ? (c(), b("p", Ba, j(y.capsLockHint), 1)) : Q("", !0)
1105
1125
  ], 2));
@@ -1122,18 +1142,18 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1122
1142
  },
1123
1143
  emits: ["update:modelValue", "change", "complete", "focus", "blur", "paste"],
1124
1144
  setup(n, { emit: o }) {
1125
- const a = o, e = n, t = G([]), i = f(() => Math.max(1, Math.floor(e.length))), s = f(() => e.alphanumeric ? /[0-9a-z]/i : /[0-9]/), d = (C) => {
1145
+ const a = o, e = n, t = G([]), i = f(() => Math.max(1, Math.floor(e.length))), s = f(() => e.alphanumeric ? /[0-9a-z]/i : /[0-9]/), u = (C) => {
1126
1146
  const g = `${C ?? ""}`;
1127
1147
  let w = "";
1128
1148
  for (const L of g)
1129
1149
  s.value.test(L) && (w += L);
1130
1150
  return w.slice(0, i.value);
1131
1151
  }, r = f(() => {
1132
- const C = d(e.modelValue), g = Array.from({ length: i.value }, () => "");
1152
+ const C = u(e.modelValue), g = Array.from({ length: i.value }, () => "");
1133
1153
  for (let w = 0; w < C.length; w += 1)
1134
1154
  g[w] = C[w];
1135
1155
  return g;
1136
- }), u = f(() => {
1156
+ }), d = f(() => {
1137
1157
  const C = ["vf-otp-input", `vf-otp-input_${e.variant}`];
1138
1158
  return e.size !== "normal" && C.push(`vf-otp-input_${e.size}`), e.disabled && C.push("vf-otp-input_disabled"), C;
1139
1159
  }), v = (C, g) => {
@@ -1145,7 +1165,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1145
1165
  const g = C.join("");
1146
1166
  a("update:modelValue", g), a("change", g), g.length === i.value && a("complete", g);
1147
1167
  }, $ = (C, g) => {
1148
- const w = [...r.value], L = d(C);
1168
+ const w = [...r.value], L = u(C);
1149
1169
  let R = g;
1150
1170
  for (let I = 0; I < L.length; I += 1) {
1151
1171
  const O = g + I;
@@ -1188,7 +1208,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1188
1208
  return Ve(() => {
1189
1209
  e.autoFocus && !e.disabled && !e.readonly && p(0);
1190
1210
  }), (C, g) => (c(), b("div", {
1191
- class: ee(u.value),
1211
+ class: ee(d.value),
1192
1212
  role: "group",
1193
1213
  "aria-label": C.ariaLabel,
1194
1214
  onPaste: _
@@ -1239,7 +1259,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1239
1259
  },
1240
1260
  emits: ["update:modelValue", "change", "open", "close"],
1241
1261
  setup(n, { emit: o }) {
1242
- const a = o, e = n, t = G(null), i = G(!1), s = G("#3b82f6"), d = G(100), r = (S, F, H) => Math.min(H, Math.max(F, S)), u = (S) => r(Math.round(S), 0, 255).toString(16).padStart(2, "0"), v = (S) => {
1262
+ const a = o, e = n, t = G(null), i = G(!1), s = G("#3b82f6"), u = G(100), r = (S, F, H) => Math.min(H, Math.max(F, S)), d = (S) => r(Math.round(S), 0, 255).toString(16).padStart(2, "0"), v = (S) => {
1243
1263
  const F = S.trim().replace(/^#/, "");
1244
1264
  if (![3, 4, 6, 8].includes(F.length))
1245
1265
  return null;
@@ -1296,11 +1316,11 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1296
1316
  const W = $(S, F, H);
1297
1317
  return e.alpha ? `hsla(${W.h}, ${W.s}%, ${W.l}%, ${Z.toFixed(2)})` : `hsl(${W.h}, ${W.s}%, ${W.l}%)`;
1298
1318
  }
1299
- const x = `#${u(S)}${u(F)}${u(H)}`;
1300
- return e.alpha ? `${x}${u(Z * 255)}` : x;
1319
+ const x = `#${d(S)}${d(F)}${d(H)}`;
1320
+ return e.alpha ? `${x}${d(Z * 255)}` : x;
1301
1321
  }, y = (S) => {
1302
1322
  const F = _(S);
1303
- s.value = `#${u(F.r)}${u(F.g)}${u(F.b)}`, d.value = Math.round(r(F.a, 0, 1) * 100);
1323
+ s.value = `#${d(F.r)}${d(F.g)}${d(F.b)}`, u.value = Math.round(r(F.a, 0, 1) * 100);
1304
1324
  };
1305
1325
  ve(
1306
1326
  () => e.modelValue,
@@ -1311,34 +1331,34 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1311
1331
  );
1312
1332
  const z = f(() => {
1313
1333
  const S = _(s.value);
1314
- return `rgba(${S.r}, ${S.g}, ${S.b}, ${e.alpha ? d.value / 100 : 1})`;
1334
+ return `rgba(${S.r}, ${S.g}, ${S.b}, ${e.alpha ? u.value / 100 : 1})`;
1315
1335
  }), C = f(() => {
1316
- const S = _(s.value), F = e.alpha ? d.value / 100 : 1;
1336
+ const S = _(s.value), F = e.alpha ? u.value / 100 : 1;
1317
1337
  return k(S.r, S.g, S.b, F);
1318
1338
  }), g = f(() => {
1319
1339
  const S = ["vf-color-picker", `vf-color-picker_${e.variant}`];
1320
1340
  return e.size !== "normal" && S.push(`vf-color-picker_${e.size}`), e.disabled && S.push("vf-color-picker_disabled"), S;
1321
1341
  }), w = () => {
1322
- const S = _(s.value), F = e.alpha ? d.value / 100 : 1, H = k(S.r, S.g, S.b, F);
1342
+ const S = _(s.value), F = e.alpha ? u.value / 100 : 1, H = k(S.r, S.g, S.b, F);
1323
1343
  a("update:modelValue", H), a("change", H);
1324
1344
  }, L = (S) => {
1325
1345
  const F = S.target;
1326
1346
  s.value = F.value, w();
1327
1347
  }, R = (S) => {
1328
1348
  const F = S.target;
1329
- d.value = r(Number(F.value), 0, 100), w();
1349
+ u.value = r(Number(F.value), 0, 100), w();
1330
1350
  }, I = (S) => {
1331
1351
  const F = S.target, H = _(F.value);
1332
1352
  if (!H.valid) {
1333
1353
  F.value = C.value;
1334
1354
  return;
1335
1355
  }
1336
- s.value = `#${u(H.r)}${u(H.g)}${u(H.b)}`, e.alpha && (d.value = Math.round(H.a * 100)), w();
1356
+ s.value = `#${d(H.r)}${d(H.g)}${d(H.b)}`, e.alpha && (u.value = Math.round(H.a * 100)), w();
1337
1357
  }, O = (S) => {
1338
1358
  if (e.disabled || e.readonly)
1339
1359
  return;
1340
1360
  const F = _(S);
1341
- F.valid && (s.value = `#${u(F.r)}${u(F.g)}${u(F.b)}`, e.alpha && (d.value = Math.round(F.a * 100)), w());
1361
+ F.valid && (s.value = `#${d(F.r)}${d(F.g)}${d(F.b)}`, e.alpha && (u.value = Math.round(F.a * 100)), w());
1342
1362
  }, E = () => {
1343
1363
  i.value && (i.value = !1, a("close"));
1344
1364
  }, T = () => {
@@ -1388,10 +1408,10 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1388
1408
  min: "0",
1389
1409
  max: "100",
1390
1410
  step: "1",
1391
- value: d.value,
1411
+ value: u.value,
1392
1412
  onInput: R
1393
1413
  }, null, 40, Ra),
1394
- B("span", Pa, j(d.value) + "%", 1)
1414
+ B("span", Pa, j(u.value) + "%", 1)
1395
1415
  ])) : Q("", !0),
1396
1416
  B("div", Ea, [
1397
1417
  B("input", {
@@ -1439,9 +1459,9 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1439
1459
  "#": /\d/,
1440
1460
  A: /[a-zA-Z]/,
1441
1461
  "*": /[a-zA-Z0-9]/
1442
- }, i = f(() => typeof e.mask == "string" ? e.mask : ""), s = f(() => typeof e.mask == "function" ? e.mask : null), d = f(() => i.value.split("").filter((w) => !!t[w])), r = f(() => d.value.length), u = (w) => `${w ?? ""}`.replace(/\s+/g, ""), v = (w) => {
1462
+ }, i = f(() => typeof e.mask == "string" ? e.mask : ""), s = f(() => typeof e.mask == "function" ? e.mask : null), u = f(() => i.value.split("").filter((w) => !!t[w])), r = f(() => u.value.length), d = (w) => `${w ?? ""}`.replace(/\s+/g, ""), v = (w) => {
1443
1463
  if (!i.value)
1444
- return u(w);
1464
+ return d(w);
1445
1465
  const L = `${w ?? ""}`.split(""), R = i.value.split(""), I = [];
1446
1466
  let O = 0, E = 0;
1447
1467
  for (; O < R.length && E < L.length; ) {
@@ -1485,7 +1505,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1485
1505
  I < L.length && (O += E);
1486
1506
  }
1487
1507
  return O;
1488
- }, m = (w) => s.value ? u(w) : v(w), $ = (w) => s.value ? s.value(w) : p(w), l = f(() => {
1508
+ }, m = (w) => s.value ? d(w) : v(w), $ = (w) => s.value ? s.value(w) : p(w), l = f(() => {
1489
1509
  const w = `${e.modelValue ?? ""}`;
1490
1510
  return e.mask ? e.unmask ? $(m(w)) : s.value ? w : $(m(w)) : w;
1491
1511
  }), _ = (w) => i.value ? w.length === r.value : !1, k = f(() => {
@@ -1546,31 +1566,31 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1546
1566
  },
1547
1567
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
1548
1568
  setup(n, { emit: o }) {
1549
- const a = o, e = n, t = f(() => typeof e.min == "number" && Number.isFinite(e.min) ? e.min : void 0), i = f(() => typeof e.max == "number" && Number.isFinite(e.max) ? e.max : void 0), s = f(() => e.step && e.step > 0 ? e.step : 1), d = (C) => (typeof t.value == "number" && (C = Math.max(t.value, C)), typeof i.value == "number" && (C = Math.min(i.value, C)), C), r = (C) => {
1569
+ const a = o, e = n, t = f(() => typeof e.min == "number" && Number.isFinite(e.min) ? e.min : void 0), i = f(() => typeof e.max == "number" && Number.isFinite(e.max) ? e.max : void 0), s = f(() => e.step && e.step > 0 ? e.step : 1), u = (C) => (typeof t.value == "number" && (C = Math.max(t.value, C)), typeof i.value == "number" && (C = Math.min(i.value, C)), C), r = (C) => {
1550
1570
  if (typeof e.precision != "number" || !Number.isFinite(e.precision))
1551
1571
  return C;
1552
1572
  const g = Math.max(0, Math.floor(e.precision));
1553
1573
  return Number.parseFloat(C.toFixed(g));
1554
- }, u = (C) => {
1574
+ }, d = (C) => {
1555
1575
  if (!C.trim())
1556
1576
  return null;
1557
1577
  const g = Number(C);
1558
- return Number.isFinite(g) ? r(d(g)) : null;
1578
+ return Number.isFinite(g) ? r(u(g)) : null;
1559
1579
  }, v = f(() => e.modelValue === null || e.modelValue === void 0 || !Number.isFinite(e.modelValue) ? "" : `${e.modelValue}`), p = f(() => {
1560
1580
  const C = ["vf-number-input", `vf-number-input_${e.variant}`];
1561
1581
  return e.size !== "normal" && C.push(`vf-number-input_${e.size}`), e.disabled && C.push("vf-number-input_disabled"), e.controls && C.push("vf-number-input_controls"), C;
1562
1582
  }), m = (C) => {
1563
- const g = C.target, w = u(g.value);
1583
+ const g = C.target, w = d(g.value);
1564
1584
  a("update:modelValue", w), a("input", C);
1565
1585
  }, $ = (C) => a("change", C), l = (C) => a("focus", C), _ = (C) => a("blur", C), k = () => Number.isFinite(e.modelValue) ? e.modelValue : typeof t.value == "number" ? t.value : 0, y = () => {
1566
1586
  if (e.disabled || e.readonly)
1567
1587
  return;
1568
- const C = r(d(k() + s.value));
1588
+ const C = r(u(k() + s.value));
1569
1589
  a("update:modelValue", C);
1570
1590
  }, z = () => {
1571
1591
  if (e.disabled || e.readonly)
1572
1592
  return;
1573
- const C = r(d(k() - s.value));
1593
+ const C = r(u(k() - s.value));
1574
1594
  a("update:modelValue", C);
1575
1595
  };
1576
1596
  return (C, g) => (c(), b("div", {
@@ -1643,7 +1663,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1643
1663
  "reset"
1644
1664
  ],
1645
1665
  setup(n, { emit: o }) {
1646
- const a = n, e = o, t = G(null), i = G(D(S(a.initialValues, a.modelValue))), s = G(D(i.value)), d = G({}), r = G({}), u = G(!1);
1666
+ const a = n, e = o, t = G(null), i = G(D(S(a.initialValues, a.modelValue))), s = G(D(i.value)), u = G({}), r = G({}), d = G(!1);
1647
1667
  ve(
1648
1668
  () => a.modelValue,
1649
1669
  (h) => {
@@ -1666,8 +1686,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1666
1686
  [h]: P
1667
1687
  }, e("update:modelValue", D(s.value)), K.emitChange !== !1 && e("change", D(s.value), h, P));
1668
1688
  }, _ = (h, P = !0) => {
1669
- h && (d.value = {
1670
- ...d.value,
1689
+ h && (u.value = {
1690
+ ...u.value,
1671
1691
  [h]: P
1672
1692
  });
1673
1693
  }, k = (h, P = "") => {
@@ -1676,10 +1696,10 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1676
1696
  const K = { ...r.value };
1677
1697
  P ? K[h] = P : delete K[h], r.value = K;
1678
1698
  }, y = () => {
1679
- const h = { ...d.value };
1699
+ const h = { ...u.value };
1680
1700
  for (const P in s.value)
1681
1701
  h[P] = !0;
1682
- d.value = h;
1702
+ u.value = h;
1683
1703
  }, z = (h) => v.value.has(h), C = async (h = "submit") => {
1684
1704
  if (!a.validate)
1685
1705
  return h !== "submit" && e("validate", {}, D(s.value), h), !0;
@@ -1687,7 +1707,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1687
1707
  return r.value = K, e("validate", D(K), D(s.value), h), !Object.keys(K).length;
1688
1708
  }, g = async (h) => {
1689
1709
  if (!a.disabled) {
1690
- u.value = !0, y();
1710
+ d.value = !0, y();
1691
1711
  try {
1692
1712
  const P = await C("submit"), K = D(s.value);
1693
1713
  if (!P) {
@@ -1706,11 +1726,11 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1706
1726
  r.value = Y, e("submitError", A, D(Y), K, h), e("invalidSubmit", D(Y), K, h);
1707
1727
  }
1708
1728
  } finally {
1709
- u.value = !1;
1729
+ d.value = !1;
1710
1730
  }
1711
1731
  }
1712
1732
  }, w = (h) => {
1713
- a.disabled || (s.value = D(i.value), d.value = {}, r.value = {}, e("update:modelValue", D(s.value)), e("reset", D(s.value), h));
1733
+ a.disabled || (s.value = D(i.value), u.value = {}, r.value = {}, e("update:modelValue", D(s.value)), e("reset", D(s.value), h));
1714
1734
  }, L = async (h) => {
1715
1735
  await g(h);
1716
1736
  }, R = (h) => {
@@ -1837,10 +1857,10 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1837
1857
  q(h.$slots, "default", {
1838
1858
  values: s.value,
1839
1859
  errors: r.value,
1840
- touched: d.value,
1860
+ touched: u.value,
1841
1861
  isValid: p.value,
1842
1862
  isDirty: m.value,
1843
- isSubmitting: u.value,
1863
+ isSubmitting: d.value,
1844
1864
  setFieldValue: l,
1845
1865
  setFieldTouched: _,
1846
1866
  setFieldError: k,
@@ -1866,17 +1886,17 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1866
1886
  size: { default: "normal" }
1867
1887
  },
1868
1888
  setup(n) {
1869
- const o = n, a = Xe(), e = `vf-form-field-${Math.random().toString(36).slice(2, 10)}`, t = f(() => o.id || e), i = f(() => `${t.value}-hint`), s = f(() => `${t.value}-error`), d = f(() => !!o.label || !!a.label), r = f(() => !!o.hint || !!a.hint), u = f(() => !!o.error || !!a.error), v = f(() => {
1889
+ const o = n, a = Xe(), e = `vf-form-field-${Math.random().toString(36).slice(2, 10)}`, t = f(() => o.id || e), i = f(() => `${t.value}-hint`), s = f(() => `${t.value}-error`), u = f(() => !!o.label || !!a.label), r = f(() => !!o.hint || !!a.hint), d = f(() => !!o.error || !!a.error), v = f(() => {
1870
1890
  const m = [];
1871
- return r.value && m.push(i.value), u.value && m.push(s.value), m.length ? m.join(" ") : void 0;
1891
+ return r.value && m.push(i.value), d.value && m.push(s.value), m.length ? m.join(" ") : void 0;
1872
1892
  }), p = f(() => {
1873
1893
  const m = ["vf-form-field"];
1874
- return o.size !== "normal" && m.push(`vf-form-field_${o.size}`), o.disabled && m.push("vf-form-field_disabled"), u.value && m.push("vf-form-field_invalid"), m;
1894
+ return o.size !== "normal" && m.push(`vf-form-field_${o.size}`), o.disabled && m.push("vf-form-field_disabled"), d.value && m.push("vf-form-field_invalid"), m;
1875
1895
  });
1876
1896
  return (m, $) => (c(), b("div", {
1877
1897
  class: ee(p.value)
1878
1898
  }, [
1879
- d.value ? (c(), b("label", {
1899
+ u.value ? (c(), b("label", {
1880
1900
  key: 0,
1881
1901
  class: "vf-form-field__label",
1882
1902
  for: t.value
@@ -1890,9 +1910,9 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1890
1910
  q(m.$slots, "default", {
1891
1911
  id: t.value,
1892
1912
  describedBy: v.value,
1893
- invalid: u.value,
1913
+ invalid: d.value,
1894
1914
  required: m.required,
1895
- ariaInvalid: u.value ? "true" : void 0,
1915
+ ariaInvalid: d.value ? "true" : void 0,
1896
1916
  ariaRequired: m.required ? "true" : void 0
1897
1917
  })
1898
1918
  ]),
@@ -1905,7 +1925,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1905
1925
  me(j(m.hint), 1)
1906
1926
  ])
1907
1927
  ], 8, to)) : Q("", !0),
1908
- u.value ? (c(), b("p", {
1928
+ d.value ? (c(), b("p", {
1909
1929
  key: 2,
1910
1930
  id: s.value,
1911
1931
  class: "vf-form-field__error",
@@ -1931,25 +1951,25 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1931
1951
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
1932
1952
  setup(n, { emit: o }) {
1933
1953
  const a = o, e = n, t = f(() => {
1934
- const u = ["vf-textarea", `vf-textarea_${e.variant}`];
1935
- return e.size !== "normal" && u.push(`vf-textarea_${e.size}`), e.disabled && u.push("vf-textarea_disabled"), u;
1936
- }), i = (u) => {
1937
- const v = u.target;
1938
- a("update:modelValue", v.value), a("input", u);
1939
- }, s = (u) => a("change", u), d = (u) => a("focus", u), r = (u) => a("blur", u);
1940
- return (u, v) => (c(), b("div", {
1954
+ const d = ["vf-textarea", `vf-textarea_${e.variant}`];
1955
+ return e.size !== "normal" && d.push(`vf-textarea_${e.size}`), e.disabled && d.push("vf-textarea_disabled"), d;
1956
+ }), i = (d) => {
1957
+ const v = d.target;
1958
+ a("update:modelValue", v.value), a("input", d);
1959
+ }, s = (d) => a("change", d), u = (d) => a("focus", d), r = (d) => a("blur", d);
1960
+ return (d, v) => (c(), b("div", {
1941
1961
  class: ee(t.value)
1942
1962
  }, [
1943
1963
  B("textarea", {
1944
1964
  class: "vf-textarea__control",
1945
- value: u.modelValue,
1946
- placeholder: u.placeholder,
1947
- disabled: u.disabled,
1948
- readonly: u.readonly,
1949
- rows: u.rows,
1965
+ value: d.modelValue,
1966
+ placeholder: d.placeholder,
1967
+ disabled: d.disabled,
1968
+ readonly: d.readonly,
1969
+ rows: d.rows,
1950
1970
  onInput: i,
1951
1971
  onChange: s,
1952
- onFocus: d,
1972
+ onFocus: u,
1953
1973
  onBlur: r
1954
1974
  }, null, 40, oo)
1955
1975
  ], 2));
@@ -1976,7 +1996,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1976
1996
  const a = n, e = o, t = G(null), i = f(() => {
1977
1997
  const g = ["vf-rich-text-editor", `vf-rich-text-editor_${a.variant}`];
1978
1998
  return a.size !== "normal" && g.push(`vf-rich-text-editor_${a.size}`), a.disabled && g.push("vf-rich-text-editor_disabled"), g;
1979
- }), s = f(() => a.toolbar.filter(Boolean)), d = f(() => (a.modelValue ?? "").length), r = f(() => a.maxLength > 0), u = f(() => a.maxLength > 0 && d.value >= a.maxLength), v = (g) => {
1999
+ }), s = f(() => a.toolbar.filter(Boolean)), u = f(() => (a.modelValue ?? "").length), r = f(() => a.maxLength > 0), d = f(() => a.maxLength > 0 && u.value >= a.maxLength), v = (g) => {
1980
2000
  switch (g) {
1981
2001
  case "bold":
1982
2002
  return "Bold";
@@ -2089,8 +2109,8 @@ ${w}
2089
2109
  }, null, 40, no),
2090
2110
  r.value ? (c(), b("div", {
2091
2111
  key: 1,
2092
- class: ee(["vf-rich-text-editor__counter", { "is-limit": u.value }])
2093
- }, j(d.value) + " / " + j(g.maxLength), 3)) : Q("", !0)
2112
+ class: ee(["vf-rich-text-editor__counter", { "is-limit": d.value }])
2113
+ }, j(u.value) + " / " + j(g.maxLength), 3)) : Q("", !0)
2094
2114
  ], 2));
2095
2115
  }
2096
2116
  }), so = ["accept", "multiple", "disabled"], io = ["tabindex", "aria-disabled", "onKeydown"], uo = { class: "vf-file-upload__content" }, co = {
@@ -2116,14 +2136,14 @@ ${w}
2116
2136
  },
2117
2137
  emits: ["update:modelValue", "change", "reject", "focus", "blur"],
2118
2138
  setup(n, { emit: o }) {
2119
- const a = o, e = n, t = G(null), i = G(null), s = G(!1), d = f(() => Array.isArray(e.modelValue) ? e.modelValue : e.modelValue instanceof File ? [e.modelValue] : []), r = f(() => {
2139
+ const a = o, e = n, t = G(null), i = G(null), s = G(!1), u = f(() => Array.isArray(e.modelValue) ? e.modelValue : e.modelValue instanceof File ? [e.modelValue] : []), r = f(() => {
2120
2140
  const L = [
2121
2141
  "vf-file-upload",
2122
2142
  `vf-file-upload_${e.variant}`,
2123
2143
  s.value ? "vf-file-upload_dragging" : ""
2124
2144
  ];
2125
2145
  return e.size !== "normal" && L.push(`vf-file-upload_${e.size}`), (e.disabled || e.readonly) && L.push("vf-file-upload_disabled"), L.filter(Boolean);
2126
- }), u = (L, R) => `${L.name}-${L.size}-${L.lastModified}-${R}`, v = (L) => {
2146
+ }), d = (L, R) => `${L.name}-${L.size}-${L.lastModified}-${R}`, v = (L) => {
2127
2147
  if (!Number.isFinite(L))
2128
2148
  return "";
2129
2149
  const R = ["B", "KB", "MB", "GB"];
@@ -2156,7 +2176,7 @@ ${w}
2156
2176
  }, $ = (L) => {
2157
2177
  if (e.disabled || e.readonly)
2158
2178
  return;
2159
- const R = e.multiple ? d.value : [], I = e.multiple ? R.concat(L) : L, { accepted: O, rejected: E } = m(I);
2179
+ const R = e.multiple ? u.value : [], I = e.multiple ? R.concat(L) : L, { accepted: O, rejected: E } = m(I);
2160
2180
  p(O), E.length > 0 && a("reject", E);
2161
2181
  }, l = () => {
2162
2182
  var L;
@@ -2178,7 +2198,7 @@ ${w}
2178
2198
  }, C = (L) => {
2179
2199
  if (e.disabled || e.readonly)
2180
2200
  return;
2181
- const R = d.value.filter((I, O) => O !== L);
2201
+ const R = u.value.filter((I, O) => O !== L);
2182
2202
  p(R);
2183
2203
  }, g = (L) => a("focus", L), w = (L) => a("blur", L);
2184
2204
  return (L, R) => (c(), b("div", {
@@ -2213,9 +2233,9 @@ ${w}
2213
2233
  onBlur: w
2214
2234
  }, [
2215
2235
  B("div", uo, [
2216
- d.value.length === 0 ? (c(), b("span", co, j(L.placeholder), 1)) : (c(), b("div", vo, [
2217
- (c(!0), b(fe, null, he(d.value, (I, O) => (c(), b("div", {
2218
- key: u(I, O),
2236
+ u.value.length === 0 ? (c(), b("span", co, j(L.placeholder), 1)) : (c(), b("div", vo, [
2237
+ (c(!0), b(fe, null, he(u.value, (I, O) => (c(), b("div", {
2238
+ key: d(I, O),
2219
2239
  class: "vf-file-upload__item"
2220
2240
  }, [
2221
2241
  B("span", fo, j(I.name), 1),
@@ -2268,9 +2288,9 @@ function bo(n) {
2268
2288
  const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke = (n, o) => ho(n, o) === "fixed", Fe = (n, o, a = {}) => {
2269
2289
  const e = n.getBoundingClientRect(), t = o ? o.offsetParent : null, i = o ? Ke(a, o) : !1;
2270
2290
  if (t && !i) {
2271
- const s = t.getBoundingClientRect(), d = t.scrollLeft, r = t.scrollTop;
2291
+ const s = t.getBoundingClientRect(), u = t.scrollLeft, r = t.scrollTop;
2272
2292
  return {
2273
- left: e.left - s.left + d,
2293
+ left: e.left - s.left + u,
2274
2294
  top: e.top - s.top + r,
2275
2295
  width: e.width,
2276
2296
  height: e.height
@@ -2336,11 +2356,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2336
2356
  reference: i,
2337
2357
  scrollDirection: s
2338
2358
  }) => {
2339
- const d = at(i, e, t, n), r = je(n, "offset");
2359
+ const u = at(i, e, t, n), r = je(n, "offset");
2340
2360
  if (r) {
2341
- const u = r.fn({
2342
- x: d.x,
2343
- y: d.y,
2361
+ const d = r.fn({
2362
+ x: u.x,
2363
+ y: u.y,
2344
2364
  options: n,
2345
2365
  primaryX: o,
2346
2366
  primaryY: a,
@@ -2349,11 +2369,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2349
2369
  reference: i,
2350
2370
  scrollDirection: s
2351
2371
  });
2352
- d.x = u.x, d.y = u.y;
2372
+ u.x = d.x, u.y = d.y;
2353
2373
  }
2354
- return Do(d, e, i, n) ? {
2355
- x: d.x,
2356
- y: d.y,
2374
+ return Do(u, e, i, n) ? {
2375
+ x: u.x,
2376
+ y: u.y,
2357
2377
  placement: t
2358
2378
  } : !1;
2359
2379
  }, Te = (n) => ({
@@ -2366,15 +2386,15 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2366
2386
  primaryX: t,
2367
2387
  primaryY: i,
2368
2388
  floating: s,
2369
- placement: d,
2389
+ placement: u,
2370
2390
  reference: r,
2371
- scrollDirection: u
2391
+ scrollDirection: d
2372
2392
  }) => {
2373
2393
  var v;
2374
2394
  const p = {
2375
2395
  x: o,
2376
2396
  y: a,
2377
- placement: d
2397
+ placement: u
2378
2398
  }, m = {
2379
2399
  ...e,
2380
2400
  middleware: (v = e.middleware) == null ? void 0 : v.filter((C) => C.name !== "shift")
@@ -2390,11 +2410,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2390
2410
  floating: s,
2391
2411
  placement: C,
2392
2412
  reference: r,
2393
- scrollDirection: u
2413
+ scrollDirection: d
2394
2414
  });
2395
2415
  g && (p.x = g.x, p.y = g.y, p.placement = g.placement, k = !0);
2396
2416
  }, z = Ro(r, s, m);
2397
- if (!l && $.includes(d) && y(d), k || _.forEach(y), !k) {
2417
+ if (!l && $.includes(u) && y(u), k || _.forEach(y), !k) {
2398
2418
  const C = $.reduce(
2399
2419
  (g, w) => {
2400
2420
  const L = pt({
@@ -2404,7 +2424,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2404
2424
  floating: s,
2405
2425
  placement: w,
2406
2426
  reference: r,
2407
- scrollDirection: u
2427
+ scrollDirection: d
2408
2428
  });
2409
2429
  if (!L)
2410
2430
  return g;
@@ -2416,13 +2436,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2416
2436
  C && (p.x = C.result.x, p.y = C.result.y, p.placement = C.result.placement, k = !0);
2417
2437
  }
2418
2438
  if (!k && $.length > 0) {
2419
- const C = Je(d);
2439
+ const C = Je(u);
2420
2440
  let g = C, w = z[C];
2421
2441
  $.forEach((O) => {
2422
2442
  const E = Je(O), T = z[E];
2423
2443
  T > w && (w = T, g = E);
2424
2444
  });
2425
- const L = Mo(g, d, $), R = at(r, s, L, m), I = je(m, "offset");
2445
+ const L = Mo(g, u, $), R = at(r, s, L, m), I = je(m, "offset");
2426
2446
  if (I) {
2427
2447
  const O = I.fn({
2428
2448
  x: R.x,
@@ -2433,7 +2453,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2433
2453
  floating: s,
2434
2454
  placement: L,
2435
2455
  reference: r,
2436
- scrollDirection: u
2456
+ scrollDirection: d
2437
2457
  });
2438
2458
  R.x = O.x, R.y = O.y;
2439
2459
  }
@@ -2442,34 +2462,34 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2442
2462
  return p;
2443
2463
  }
2444
2464
  }), _t = (n, o, a, e, t) => {
2445
- var i, s, d;
2465
+ var i, s, u;
2446
2466
  let r = 0;
2447
2467
  e.startsWith("right") ? r = -n : e.startsWith("left") && (r = n);
2448
- const u = je(o, "arrow"), v = je(o, "shift");
2449
- if (u) {
2450
- const p = ((i = u.params) == null ? void 0 : i.arrow).getBoundingClientRect();
2468
+ const d = je(o, "arrow"), v = je(o, "shift");
2469
+ if (d) {
2470
+ const p = ((i = d.params) == null ? void 0 : i.arrow).getBoundingClientRect();
2451
2471
  e.startsWith("right") ? r -= p.width / 2 : e.startsWith("left") && (r += p.width / 2);
2452
2472
  }
2453
- if (yt(o, "shift") && u) {
2473
+ if (yt(o, "shift") && d) {
2454
2474
  let p = null, m = 0;
2455
2475
  v && (p = (s = v.params) == null ? void 0 : s.parent);
2456
- const $ = (d = u.params) == null ? void 0 : d.arrow;
2476
+ const $ = (u = d.params) == null ? void 0 : u.arrow;
2457
2477
  m = $.getBoundingClientRect().width / 2, m += _o($), m -= n, e.startsWith("right") ? Pe(a - r, t, p, o) <= n ? Pe(a, t, p, o) > 0 ? r = n - Pe(a, t, p, o) : r = n : Ee(a - r - m, t, p, o) <= n && (Ee(a - r - m, t, p, o) >= 0 ? (r = -n - (Ee(a - r - m, t, p, o) + n), p && (r = -n)) : r = -n) : e.startsWith("left") ? Pe(a - r + m, t, p, o) <= n ? (r = n + Pe(a - m, t, p, o), r <= n && (r = n)) : Ee(a - r, t, p, o) <= n && (r = -n + Ee(a, t, p, o), r <= -n && (r = -n)) : Pe(a - r, t, p, o) <= n ? Pe(a - r, t, p, o) <= n && Pe(a, t, p, o) > 0 ? r = n - Pe(a, t, p, o) : r = n : Ee(a - r, t, p, o) <= n && (Ee(a - r, t, p, o) <= n && Ee(a, t, p, o) > 0 ? r = -(n - Ee(a, t, p, o)) : r = -n);
2458
2478
  }
2459
2479
  return r;
2460
2480
  }, kt = (n, o, a, e, t) => {
2461
- var i, s, d;
2481
+ var i, s, u;
2462
2482
  let r = 0;
2463
2483
  e.startsWith("top") ? r = n : e.startsWith("bottom") && (r = -n);
2464
- const u = je(o, "arrow"), v = je(o, "shift");
2465
- if (u) {
2466
- const p = ((i = u.params) == null ? void 0 : i.arrow).getBoundingClientRect();
2484
+ const d = je(o, "arrow"), v = je(o, "shift");
2485
+ if (d) {
2486
+ const p = ((i = d.params) == null ? void 0 : i.arrow).getBoundingClientRect();
2467
2487
  e.startsWith("top") ? r += p.height / 2 : e.startsWith("bottom") && (r -= p.height / 2);
2468
2488
  }
2469
- if (yt(o, "shift") && u) {
2489
+ if (yt(o, "shift") && d) {
2470
2490
  let p = null, m = 0;
2471
2491
  v && (p = (s = v.params) == null ? void 0 : s.parent);
2472
- const $ = (d = u.params) == null ? void 0 : d.arrow;
2492
+ const $ = (u = d.params) == null ? void 0 : u.arrow;
2473
2493
  m = $.getBoundingClientRect().height / 2, m += ko($), m -= n, e.startsWith("top") ? Re(a - r, t, p, o) <= n ? Re(a, t, p, o) >= 0 ? r = -(n - Re(a, t, p, o)) : r = -n : Ae(a - r + m, t, p, o) <= n && (r = n + Ae(a - m, t, p, o), r <= n && (r = n)) : e.startsWith("bottom") ? Re(a - r - m, t, p, o) <= n ? Re(a - r - m, t, p, o) >= 0 ? (r = -n - (Re(a - r - m, t, p, o) + n), p && (r = -n)) : r = -n : Ae(a - r, t, p, o) <= n && (Ae(a, t, p, o) >= 0 ? r = n - Ae(a, t, p, o) : r = n) : Re(a - r, t, p, o) <= n ? Re(a - r, t, p, o) >= 0 ? r = -(n - Re(a - r, t, p, o)) : r = -n : Ae(a - r, t, p, o) <= n && (Ae(a - r, t, p, o) >= 0 ? r = n - Ae(a - r, t, p, o) : r = n);
2474
2494
  }
2475
2495
  return r;
@@ -2483,11 +2503,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2483
2503
  primaryX: t,
2484
2504
  primaryY: i,
2485
2505
  floating: s,
2486
- placement: d
2506
+ placement: u
2487
2507
  }) => ({
2488
- x: o - _t(n, e, t, d, s),
2489
- y: a - kt(n, e, i, d, s),
2490
- placement: d
2508
+ x: o - _t(n, e, t, u, s),
2509
+ y: a - kt(n, e, i, u, s),
2510
+ placement: u
2491
2511
  })
2492
2512
  }), Ct = (n) => ({
2493
2513
  name: "shift",
@@ -2499,15 +2519,15 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2499
2519
  primaryX: t,
2500
2520
  primaryY: i,
2501
2521
  floating: s,
2502
- placement: d,
2522
+ placement: u,
2503
2523
  reference: r
2504
2524
  }) => {
2505
- var u;
2525
+ var d;
2506
2526
  const v = {
2507
2527
  x: o,
2508
2528
  y: a,
2509
- placement: d
2510
- }, p = e.middleware || [], m = p.findIndex((T) => T.name === "shift"), $ = p.findIndex((T) => T.name === "offset"), l = $ !== -1 && (m === -1 || $ > m), _ = p.find((T) => T.name === "offset"), k = _ ? (u = _.params) == null ? void 0 : u.value : 0, y = l ? _t(k, e, t, d, s) : 0, z = l ? kt(k, e, i, d, s) : 0, C = o - y, g = a - z;
2529
+ placement: u
2530
+ }, p = e.middleware || [], m = p.findIndex((T) => T.name === "shift"), $ = p.findIndex((T) => T.name === "offset"), l = $ !== -1 && (m === -1 || $ > m), _ = p.find((T) => T.name === "offset"), k = _ ? (d = _.params) == null ? void 0 : d.value : 0, y = l ? _t(k, e, t, u, s) : 0, z = l ? kt(k, e, i, u, s) : 0, C = o - y, g = a - z;
2511
2531
  let w = C, L = g;
2512
2532
  const R = _ ? Math.abs(k) : 0, I = R, O = R;
2513
2533
  if (Ke(e, s) && typeof window < "u") {
@@ -2675,8 +2695,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2675
2695
  const p = s.getBoundingClientRect(), m = p.left + n.x, $ = p.top + n.y, l = m + o.clientWidth, _ = $ + o.clientHeight;
2676
2696
  return m >= 0 && $ >= 0 && l <= t && _ <= i;
2677
2697
  }
2678
- const d = n.x, r = n.y, u = d + o.clientWidth, v = r + o.clientHeight;
2679
- return d >= 0 && r >= 0 && u <= t && v <= i;
2698
+ const u = n.x, r = n.y, d = u + o.clientWidth, v = r + o.clientHeight;
2699
+ return u >= 0 && r >= 0 && d <= t && v <= i;
2680
2700
  }, Je = (n) => n.startsWith("right") ? "right" : n.startsWith("left") ? "left" : n.startsWith("top") ? "top" : "bottom", Mo = (n, o, a) => Je(o) === n && a.includes(o) ? o : a.find((e) => Je(e) === n) ?? a[0], Ro = (n, o, a = {}) => {
2681
2701
  if (typeof window > "u")
2682
2702
  return {
@@ -2699,36 +2719,36 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2699
2719
  };
2700
2720
  }, Me = (n, o, a = {}) => new Promise((e) => {
2701
2721
  var t, i;
2702
- const s = a.placement ? a.placement : "bottom", d = {
2722
+ const s = a.placement ? a.placement : "bottom", u = {
2703
2723
  x: 0,
2704
2724
  y: 0,
2705
2725
  placement: s,
2706
2726
  middlewareData: {}
2707
2727
  }, r = at(n, o, s, a);
2708
- d.x = r.x, d.y = r.y, d.placement = r.placement;
2709
- const u = d.x, v = d.y, p = yo(n);
2728
+ u.x = r.x, u.y = r.y, u.placement = r.placement;
2729
+ const d = u.x, v = u.y, p = yo(n);
2710
2730
  (t = a.middleware) == null || t.forEach((_) => {
2711
2731
  const k = _.fn({
2712
- x: d.x,
2713
- y: d.y,
2732
+ x: u.x,
2733
+ y: u.y,
2714
2734
  options: a,
2715
- primaryX: u,
2735
+ primaryX: d,
2716
2736
  primaryY: v,
2717
2737
  floating: o,
2718
- placement: d.placement,
2738
+ placement: u.placement,
2719
2739
  reference: n,
2720
2740
  scrollDirection: p
2721
2741
  });
2722
- d.x = k.x, d.y = k.y, d.placement = k.placement, _.name === "arrow" && (k.baseX = k.x, k.baseY = k.y, k.x = k.arrowX ?? k.x, k.y = k.arrowY ?? k.y), d.middlewareData[_.name] = k;
2742
+ u.x = k.x, u.y = k.y, u.placement = k.placement, _.name === "arrow" && (k.baseX = k.x, k.baseY = k.y, k.x = k.arrowX ?? k.x, k.y = k.arrowY ?? k.y), u.middlewareData[_.name] = k;
2723
2743
  });
2724
- const m = at(n, o, d.placement, a), $ = je(a, "offset"), l = $ ? (i = $.params) == null ? void 0 : i.value : 0;
2725
- if (Number.isFinite(d.x) || (d.x = m.x), !Number.isFinite(d.y))
2744
+ const m = at(n, o, u.placement, a), $ = je(a, "offset"), l = $ ? (i = $.params) == null ? void 0 : i.value : 0;
2745
+ if (Number.isFinite(u.x) || (u.x = m.x), !Number.isFinite(u.y))
2726
2746
  if (Ke(a, o)) {
2727
2747
  const _ = n.getBoundingClientRect(), k = o.getBoundingClientRect().height;
2728
- d.placement.startsWith("top") ? d.y = _.top - k - l : d.placement.startsWith("bottom") ? d.y = _.bottom + l : d.y = m.y;
2748
+ u.placement.startsWith("top") ? u.y = _.top - k - l : u.placement.startsWith("bottom") ? u.y = _.bottom + l : u.y = m.y;
2729
2749
  } else
2730
- d.y = m.y;
2731
- e(d);
2750
+ u.y = m.y;
2751
+ e(u);
2732
2752
  }), Po = ["disabled", "aria-expanded", "onKeydown"], Eo = ["data-placement"], Oo = ["disabled", "aria-selected", "onClick"], Bc = /* @__PURE__ */ ne({
2733
2753
  __name: "select",
2734
2754
  props: {
@@ -2744,7 +2764,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2744
2764
  emits: ["update:modelValue", "change", "focus", "blur"],
2745
2765
  setup(n, { emit: o }) {
2746
2766
  let a = 0;
2747
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(!1), u = G("bottom"), v = G("bottom"), p = `vf-select-panel-${++a}`;
2767
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(!1), d = G("bottom"), v = G("bottom"), p = `vf-select-panel-${++a}`;
2748
2768
  let m = null;
2749
2769
  const $ = f(() => t.options.map((E) => ({
2750
2770
  label: E[t.optionLabel],
@@ -2759,32 +2779,32 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2759
2779
  }), y = (E) => E.value === t.modelValue, z = (E) => {
2760
2780
  E.disabled || (e("update:modelValue", E.value), e("change", E.value), w());
2761
2781
  }, C = (E) => e("focus", E), g = (E) => e("blur", E), w = () => {
2762
- r.value = !1, u.value = "bottom", v.value = "bottom";
2782
+ r.value = !1, d.value = "bottom", v.value = "bottom";
2763
2783
  }, L = () => {
2764
- t.disabled || (r.value = !r.value, r.value && (u.value = "bottom", v.value = "bottom"));
2784
+ t.disabled || (r.value = !r.value, r.value && (d.value = "bottom", v.value = "bottom"));
2765
2785
  }, R = async () => {
2766
2786
  var E, T;
2767
- r.value || (r.value = !0, await $e()), (T = (E = d.value) == null ? void 0 : E.querySelector(".vf-select__option:not(.is-disabled)")) == null || T.focus();
2787
+ r.value || (r.value = !0, await $e()), (T = (E = u.value) == null ? void 0 : E.querySelector(".vf-select__option:not(.is-disabled)")) == null || T.focus();
2768
2788
  }, I = (E) => {
2769
2789
  var D;
2770
2790
  if (!r.value || !i.value)
2771
2791
  return;
2772
2792
  const T = E.target;
2773
- i.value.contains(T) || (D = d.value) != null && D.contains(T) || w();
2793
+ i.value.contains(T) || (D = u.value) != null && D.contains(T) || w();
2774
2794
  }, O = () => {
2775
- if (!s.value || !d.value)
2795
+ if (!s.value || !u.value)
2776
2796
  return;
2777
- const E = s.value, T = d.value, D = async () => {
2797
+ const E = s.value, T = u.value, D = async () => {
2778
2798
  const {
2779
2799
  x: H,
2780
2800
  y: Z,
2781
2801
  placement: x
2782
2802
  } = await Me(E, T, {
2783
- placement: u.value,
2803
+ placement: d.value,
2784
2804
  strategy: "fixed",
2785
2805
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
2786
2806
  });
2787
- v.value = x ?? u.value, T.style.minWidth = `${E.getBoundingClientRect().width}px`, T.style.left = `${H}px`, T.style.top = `${Z}px`;
2807
+ v.value = x ?? d.value, T.style.minWidth = `${E.getBoundingClientRect().width}px`, T.style.left = `${H}px`, T.style.top = `${Z}px`;
2788
2808
  }, M = async () => {
2789
2809
  await D();
2790
2810
  }, S = De(E, () => {
@@ -2850,7 +2870,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2850
2870
  ze(B("div", {
2851
2871
  id: p,
2852
2872
  ref_key: "panel",
2853
- ref: d,
2873
+ ref: u,
2854
2874
  class: "vf-select__panel",
2855
2875
  role: "listbox",
2856
2876
  "data-placement": v.value
@@ -2896,7 +2916,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2896
2916
  emits: ["update:modelValue", "change", "focus", "blur", "search"],
2897
2917
  setup(n, { emit: o }) {
2898
2918
  let a = 0;
2899
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(!1), u = G(""), v = G(-1), p = G("bottom"), m = G("bottom"), $ = `vf-autocomplete-panel-${++a}`;
2919
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(!1), d = G(""), v = G(-1), p = G("bottom"), m = G("bottom"), $ = `vf-autocomplete-panel-${++a}`;
2900
2920
  let l = null;
2901
2921
  const _ = f(() => t.options.map((h) => ({
2902
2922
  label: h[t.optionLabel],
@@ -2905,7 +2925,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2905
2925
  }))), k = f(() => _.value.find((h) => h.value === t.modelValue)), y = f(() => {
2906
2926
  if (!t.filter)
2907
2927
  return _.value;
2908
- const h = u.value.trim().toLowerCase();
2928
+ const h = d.value.trim().toLowerCase();
2909
2929
  return h ? _.value.filter((P) => P.label.toLowerCase().includes(h)) : _.value;
2910
2930
  }), z = f(() => {
2911
2931
  if (!(!r.value || v.value < 0))
@@ -2938,10 +2958,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2938
2958
  }
2939
2959
  I();
2940
2960
  }, T = (h) => {
2941
- h.disabled || (u.value = h.label, e("update:modelValue", h.value), e("change", h.value), O());
2961
+ h.disabled || (d.value = h.label, e("update:modelValue", h.value), e("change", h.value), O());
2942
2962
  }, D = (h) => {
2943
2963
  const P = h.target;
2944
- u.value = P.value, e("search", P.value), I(), v.value = L();
2964
+ d.value = P.value, e("search", P.value), I(), v.value = L();
2945
2965
  }, M = (h) => {
2946
2966
  e("focus", h), I();
2947
2967
  }, S = (h) => {
@@ -2970,11 +2990,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2970
2990
  if (!r.value || !i.value)
2971
2991
  return;
2972
2992
  const P = h.target;
2973
- i.value.contains(P) || (K = d.value) != null && K.contains(P) || O();
2993
+ i.value.contains(P) || (K = u.value) != null && K.contains(P) || O();
2974
2994
  }, W = () => {
2975
- if (!s.value || !d.value)
2995
+ if (!s.value || !u.value)
2976
2996
  return;
2977
- const h = s.value, P = d.value, K = async () => {
2997
+ const h = s.value, P = u.value, K = async () => {
2978
2998
  const {
2979
2999
  x: ae,
2980
3000
  y: se,
@@ -3003,14 +3023,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3003
3023
  () => t.modelValue,
3004
3024
  () => {
3005
3025
  var h;
3006
- u.value = ((h = k.value) == null ? void 0 : h.label) ?? "";
3026
+ d.value = ((h = k.value) == null ? void 0 : h.label) ?? "";
3007
3027
  },
3008
3028
  { immediate: !0 }
3009
3029
  ), ve(
3010
3030
  () => t.options,
3011
3031
  () => {
3012
3032
  var h;
3013
- r.value || (u.value = ((h = k.value) == null ? void 0 : h.label) ?? ""), l == null || l.update();
3033
+ r.value || (d.value = ((h = k.value) == null ? void 0 : h.label) ?? ""), l == null || l.update();
3014
3034
  },
3015
3035
  { deep: !0 }
3016
3036
  ), ve(y, () => {
@@ -3036,7 +3056,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3036
3056
  class: "vf-autocomplete__control",
3037
3057
  type: "text",
3038
3058
  role: "combobox",
3039
- value: u.value,
3059
+ value: d.value,
3040
3060
  placeholder: h.placeholder,
3041
3061
  disabled: h.disabled,
3042
3062
  readonly: h.readonly,
@@ -3070,7 +3090,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3070
3090
  ze(B("div", {
3071
3091
  id: $,
3072
3092
  ref_key: "panel",
3073
- ref: d,
3093
+ ref: u,
3074
3094
  class: "vf-autocomplete__panel",
3075
3095
  role: "listbox",
3076
3096
  "data-placement": m.value
@@ -3127,13 +3147,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3127
3147
  emits: ["update:modelValue", "update:inputValue", "change", "focus", "blur", "search", "create"],
3128
3148
  setup(n, { emit: o }) {
3129
3149
  let a = 0;
3130
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(!1), u = G(""), v = G(-1), p = G("bottom"), m = G("bottom"), $ = `vf-combobox-panel-${++a}`;
3150
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(!1), d = G(""), v = G(-1), p = G("bottom"), m = G("bottom"), $ = `vf-combobox-panel-${++a}`;
3131
3151
  let l = null;
3132
3152
  const _ = f(() => t.options.map((U) => ({
3133
3153
  label: U[t.optionLabel],
3134
3154
  value: U[t.optionValue],
3135
3155
  disabled: U.disabled
3136
- }))), k = f(() => _.value.find((U) => U.value === t.modelValue)), y = f(() => u.value.trim().toLowerCase()), z = f(() => !t.filter || !y.value ? _.value : _.value.filter((U) => U.label.toLowerCase().includes(y.value))), C = f(() => y.value ? _.value.some(
3156
+ }))), k = f(() => _.value.find((U) => U.value === t.modelValue)), y = f(() => d.value.trim().toLowerCase()), z = f(() => !t.filter || !y.value ? _.value : _.value.filter((U) => U.label.toLowerCase().includes(y.value))), C = f(() => y.value ? _.value.some(
3137
3157
  (U) => U.label.toLowerCase() === y.value && !U.disabled
3138
3158
  ) : !1), g = f(() => {
3139
3159
  if (!(!r.value || v.value < 0))
@@ -3170,24 +3190,24 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3170
3190
  }
3171
3191
  M();
3172
3192
  }, H = () => {
3173
- const U = u.value.trim();
3193
+ const U = d.value.trim();
3174
3194
  return !U || !w.value ? !1 : (t.allowCreate && !C.value && e("create", U), T(U), E(U), S(), !0);
3175
3195
  }, Z = () => {
3176
3196
  var X;
3177
3197
  const U = ((X = k.value) == null ? void 0 : X.label) ?? "";
3178
- u.value = U, E(U);
3198
+ d.value = U, E(U);
3179
3199
  }, x = (U) => {
3180
- U.disabled || (u.value = U.label, E(U.label), T(U.value), S());
3200
+ U.disabled || (d.value = U.label, E(U.label), T(U.value), S());
3181
3201
  }, W = () => {
3182
- u.value = "", E(""), e("update:modelValue", void 0), e("change", void 0), S();
3202
+ d.value = "", E(""), e("update:modelValue", void 0), e("change", void 0), S();
3183
3203
  }, h = (U) => {
3184
3204
  const X = U.target;
3185
- u.value = X.value, E(X.value), e("search", X.value), M(), v.value = O();
3205
+ d.value = X.value, E(X.value), e("search", X.value), M(), v.value = O();
3186
3206
  }, P = (U) => {
3187
3207
  e("focus", U), M();
3188
3208
  }, K = (U) => {
3189
3209
  var X;
3190
- e("blur", U), t.strict && u.value.trim() !== ((X = k.value) == null ? void 0 : X.label) && Z();
3210
+ e("blur", U), t.strict && d.value.trim() !== ((X = k.value) == null ? void 0 : X.label) && Z();
3191
3211
  }, A = () => {
3192
3212
  if (!r.value) {
3193
3213
  M();
@@ -3216,11 +3236,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3216
3236
  if (!r.value || !i.value)
3217
3237
  return;
3218
3238
  const X = U.target;
3219
- i.value.contains(X) || (re = d.value) != null && re.contains(X) || S();
3239
+ i.value.contains(X) || (re = u.value) != null && re.contains(X) || S();
3220
3240
  }, se = () => {
3221
- if (!s.value || !d.value)
3241
+ if (!s.value || !u.value)
3222
3242
  return;
3223
- const U = s.value, X = d.value, re = async () => {
3243
+ const U = s.value, X = u.value, re = async () => {
3224
3244
  const {
3225
3245
  x: N,
3226
3246
  y: oe,
@@ -3248,21 +3268,21 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3248
3268
  return ve(
3249
3269
  () => t.inputValue,
3250
3270
  (U) => {
3251
- typeof U == "string" && (u.value = U);
3271
+ typeof U == "string" && (d.value = U);
3252
3272
  },
3253
3273
  { immediate: !0 }
3254
3274
  ), ve(
3255
3275
  () => t.modelValue,
3256
3276
  () => {
3257
3277
  var U;
3258
- typeof t.inputValue != "string" && (u.value = ((U = k.value) == null ? void 0 : U.label) ?? "");
3278
+ typeof t.inputValue != "string" && (d.value = ((U = k.value) == null ? void 0 : U.label) ?? "");
3259
3279
  },
3260
3280
  { immediate: !0 }
3261
3281
  ), ve(
3262
3282
  () => t.options,
3263
3283
  () => {
3264
3284
  var U;
3265
- !r.value && t.strict && typeof t.inputValue != "string" && (u.value = ((U = k.value) == null ? void 0 : U.label) ?? ""), l == null || l.update();
3285
+ !r.value && t.strict && typeof t.inputValue != "string" && (d.value = ((U = k.value) == null ? void 0 : U.label) ?? ""), l == null || l.update();
3266
3286
  },
3267
3287
  { deep: !0 }
3268
3288
  ), ve(z, () => {
@@ -3288,7 +3308,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3288
3308
  class: "vf-combobox__control",
3289
3309
  type: "text",
3290
3310
  role: "combobox",
3291
- value: u.value,
3311
+ value: d.value,
3292
3312
  placeholder: U.placeholder,
3293
3313
  disabled: U.disabled,
3294
3314
  readonly: U.readonly,
@@ -3308,7 +3328,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3308
3328
  pe(S, ["tab"])
3309
3329
  ]
3310
3330
  }, null, 40, jo),
3311
- U.clearable && u.value.length > 0 && !U.disabled && !U.readonly ? (c(), b("button", {
3331
+ U.clearable && d.value.length > 0 && !U.disabled && !U.readonly ? (c(), b("button", {
3312
3332
  key: 0,
3313
3333
  class: "vf-combobox__clear",
3314
3334
  type: "button",
@@ -3331,7 +3351,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3331
3351
  ze(B("div", {
3332
3352
  id: $,
3333
3353
  ref_key: "panel",
3334
- ref: d,
3354
+ ref: u,
3335
3355
  class: "vf-combobox__panel",
3336
3356
  role: "listbox",
3337
3357
  "data-placement": m.value
@@ -3393,7 +3413,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3393
3413
  emits: ["update:modelValue", "change", "search", "focus", "blur"],
3394
3414
  setup(n, { emit: o }) {
3395
3415
  let a = 0;
3396
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(null), u = G(!1), v = G(""), p = G(-1), m = G("bottom"), $ = G("bottom"), l = `vf-multiselect-panel-${++a}`;
3416
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(null), d = G(!1), v = G(""), p = G(-1), m = G("bottom"), $ = G("bottom"), l = `vf-multiselect-panel-${++a}`;
3397
3417
  let _ = null;
3398
3418
  const k = f(() => t.options.map((V) => ({
3399
3419
  label: V[t.optionLabel],
@@ -3405,7 +3425,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3405
3425
  const V = v.value.trim().toLowerCase();
3406
3426
  return V ? k.value.filter((Y) => Y.label.toLowerCase().includes(V)) : k.value;
3407
3427
  }), C = f(() => k.value.filter((V) => y.value.includes(V.value))), g = f(() => C.value.length === 0 ? t.placeholder : C.value.map((V) => V.label).join(", ")), w = f(() => {
3408
- const V = ["vf-multiselect", `vf-multiselect_${t.variant}`, u.value ? "vf-multiselect_open" : ""];
3428
+ const V = ["vf-multiselect", `vf-multiselect_${t.variant}`, d.value ? "vf-multiselect_open" : ""];
3409
3429
  return t.size !== "normal" && V.push(`vf-multiselect_${t.size}`), t.disabled && V.push("vf-multiselect_disabled"), V.filter(Boolean);
3410
3430
  }), L = (V) => `${l}-option-${V}`, R = () => z.value.findIndex((V) => !V.disabled), I = (V) => y.value.includes(V.value), O = (V) => {
3411
3431
  e("update:modelValue", V), e("change", V);
@@ -3435,29 +3455,29 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3435
3455
  p.value = -1;
3436
3456
  }, M = async () => {
3437
3457
  var V;
3438
- t.disabled || (u.value = !0, m.value = "bottom", $.value = "bottom", p.value < 0 && (p.value = R()), t.filter && (await $e(), (V = r.value) == null || V.focus()));
3458
+ t.disabled || (d.value = !0, m.value = "bottom", $.value = "bottom", p.value < 0 && (p.value = R()), t.filter && (await $e(), (V = r.value) == null || V.focus()));
3439
3459
  }, S = () => {
3440
- u.value = !1, p.value = -1, m.value = "bottom", $.value = "bottom", v.value = "";
3460
+ d.value = !1, p.value = -1, m.value = "bottom", $.value = "bottom", v.value = "";
3441
3461
  }, F = () => {
3442
- if (u.value) {
3462
+ if (d.value) {
3443
3463
  S();
3444
3464
  return;
3445
3465
  }
3446
3466
  M();
3447
3467
  }, H = () => {
3448
- if (!u.value) {
3468
+ if (!d.value) {
3449
3469
  M();
3450
3470
  return;
3451
3471
  }
3452
3472
  D(1);
3453
3473
  }, Z = () => {
3454
- if (!u.value) {
3474
+ if (!d.value) {
3455
3475
  M();
3456
3476
  return;
3457
3477
  }
3458
3478
  D(-1);
3459
3479
  }, x = () => {
3460
- if (!u.value) {
3480
+ if (!d.value) {
3461
3481
  M();
3462
3482
  return;
3463
3483
  }
@@ -3468,14 +3488,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3468
3488
  v.value = Y.value, e("search", Y.value), p.value = R();
3469
3489
  }, h = (V) => e("focus", V), P = (V) => e("blur", V), K = (V) => {
3470
3490
  var ae;
3471
- if (!u.value || !i.value)
3491
+ if (!d.value || !i.value)
3472
3492
  return;
3473
3493
  const Y = V.target;
3474
- i.value.contains(Y) || (ae = d.value) != null && ae.contains(Y) || S();
3494
+ i.value.contains(Y) || (ae = u.value) != null && ae.contains(Y) || S();
3475
3495
  }, A = () => {
3476
- if (!s.value || !d.value)
3496
+ if (!s.value || !u.value)
3477
3497
  return;
3478
- const V = s.value, Y = d.value, ae = async () => {
3498
+ const V = s.value, Y = u.value, ae = async () => {
3479
3499
  const {
3480
3500
  x: re,
3481
3501
  y: de,
@@ -3506,7 +3526,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3506
3526
  p.value >= z.value.length && (p.value = R()), _ == null || _.update();
3507
3527
  },
3508
3528
  { deep: !0 }
3509
- ), ve(u, async (V) => {
3529
+ ), ve(d, async (V) => {
3510
3530
  if (!V) {
3511
3531
  _ && (_.destroy(), _ = null);
3512
3532
  return;
@@ -3529,7 +3549,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3529
3549
  class: "vf-multiselect__control",
3530
3550
  type: "button",
3531
3551
  disabled: V.disabled,
3532
- "aria-expanded": u.value,
3552
+ "aria-expanded": d.value,
3533
3553
  "aria-controls": l,
3534
3554
  "aria-haspopup": "listbox",
3535
3555
  onClick: F,
@@ -3561,7 +3581,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3561
3581
  ze(B("div", {
3562
3582
  id: l,
3563
3583
  ref_key: "panel",
3564
- ref: d,
3584
+ ref: u,
3565
3585
  class: "vf-multiselect__panel",
3566
3586
  role: "listbox",
3567
3587
  "aria-multiselectable": "true",
@@ -3602,7 +3622,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3602
3622
  I(ae) ? (c(), b("span", lr, "✓")) : Q("", !0)
3603
3623
  ], 10, or))), 128)) : (c(), b("div", nr, j(V.emptyText), 1))
3604
3624
  ], 8, Jo), [
3605
- [Se, u.value]
3625
+ [Se, d.value]
3606
3626
  ])
3607
3627
  ]))
3608
3628
  ], 2));
@@ -3637,7 +3657,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3637
3657
  emits: ["update:modelValue", "change", "focus", "blur", "search", "add", "remove", "reject"],
3638
3658
  setup(n, { emit: o }) {
3639
3659
  let a = 0;
3640
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(""), u = G(!1), v = G(-1), p = G("bottom"), m = G("bottom"), $ = `vf-tag-input-panel-${++a}`;
3660
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(""), d = G(!1), v = G(-1), p = G("bottom"), m = G("bottom"), $ = `vf-tag-input-panel-${++a}`;
3641
3661
  let l = null;
3642
3662
  const _ = f(() => Array.isArray(t.modelValue) ? t.modelValue : []), k = f(() => t.options.map((te) => ({
3643
3663
  label: te[t.optionLabel],
@@ -3650,10 +3670,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3650
3670
  const N = r.value.trim().toLowerCase();
3651
3671
  return N ? te.filter((oe) => oe.label.toLowerCase().includes(N)) : te;
3652
3672
  }), C = f(() => new Map(k.value.map((te) => [String(te.value), te.label]))), g = f(() => {
3653
- if (!(!u.value || v.value < 0))
3673
+ if (!(!d.value || v.value < 0))
3654
3674
  return L(v.value);
3655
3675
  }), w = f(() => {
3656
- const te = ["vf-tag-input", `vf-tag-input_${t.variant}`, u.value ? "vf-tag-input_open" : ""];
3676
+ const te = ["vf-tag-input", `vf-tag-input_${t.variant}`, d.value ? "vf-tag-input_open" : ""];
3657
3677
  return t.size !== "normal" && te.push(`vf-tag-input_${t.size}`), t.disabled && te.push("vf-tag-input_disabled"), te.filter(Boolean);
3658
3678
  }), L = (te) => `${$}-option-${te}`, R = () => z.value.findIndex((te) => !te.disabled), I = (te) => C.value.get(String(te)) ?? String(te), O = (te) => {
3659
3679
  e("update:modelValue", te), e("change", te);
@@ -3694,11 +3714,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3694
3714
  }
3695
3715
  v.value = -1;
3696
3716
  }, x = () => {
3697
- t.disabled || (u.value = !0, p.value = "bottom", m.value = "bottom", v.value < 0 && (v.value = R()));
3717
+ t.disabled || (d.value = !0, p.value = "bottom", m.value = "bottom", v.value < 0 && (v.value = R()));
3698
3718
  }, W = () => {
3699
- u.value = !1, v.value = -1, p.value = "bottom", m.value = "bottom";
3719
+ d.value = !1, v.value = -1, p.value = "bottom", m.value = "bottom";
3700
3720
  }, h = () => {
3701
- if (u.value) {
3721
+ if (d.value) {
3702
3722
  W();
3703
3723
  return;
3704
3724
  }
@@ -3714,19 +3734,19 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3714
3734
  }, V = (te) => {
3715
3735
  e("blur", te);
3716
3736
  }, Y = () => {
3717
- if (!u.value) {
3737
+ if (!d.value) {
3718
3738
  x();
3719
3739
  return;
3720
3740
  }
3721
3741
  Z(1);
3722
3742
  }, ae = () => {
3723
- if (!u.value) {
3743
+ if (!d.value) {
3724
3744
  x();
3725
3745
  return;
3726
3746
  }
3727
3747
  Z(-1);
3728
3748
  }, se = () => {
3729
- if (u.value) {
3749
+ if (d.value) {
3730
3750
  const te = z.value[v.value];
3731
3751
  if (te && !te.disabled) {
3732
3752
  M(te);
@@ -3742,14 +3762,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3742
3762
  te.key === "," && (te.preventDefault(), S());
3743
3763
  }, de = (te) => {
3744
3764
  var oe;
3745
- if (!u.value || !i.value)
3765
+ if (!d.value || !i.value)
3746
3766
  return;
3747
3767
  const N = te.target;
3748
- i.value.contains(N) || (oe = d.value) != null && oe.contains(N) || W();
3768
+ i.value.contains(N) || (oe = u.value) != null && oe.contains(N) || W();
3749
3769
  }, ye = () => {
3750
- if (!i.value || !d.value)
3770
+ if (!i.value || !u.value)
3751
3771
  return;
3752
- const te = i.value, N = d.value, oe = async () => {
3772
+ const te = i.value, N = u.value, oe = async () => {
3753
3773
  const {
3754
3774
  x: ue,
3755
3775
  y: ce,
@@ -3782,7 +3802,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3782
3802
  { deep: !0 }
3783
3803
  ), ve(z, () => {
3784
3804
  v.value >= z.value.length && (v.value = R());
3785
- }), ve(u, async (te) => {
3805
+ }), ve(d, async (te) => {
3786
3806
  if (!te) {
3787
3807
  l && (l.destroy(), l = null);
3788
3808
  return;
@@ -3822,7 +3842,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3822
3842
  placeholder: _.value.length === 0 ? te.placeholder : "",
3823
3843
  disabled: te.disabled,
3824
3844
  readonly: te.readonly,
3825
- "aria-expanded": u.value,
3845
+ "aria-expanded": d.value,
3826
3846
  "aria-autocomplete": "list",
3827
3847
  "aria-controls": $,
3828
3848
  "aria-activedescendant": g.value,
@@ -3861,7 +3881,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3861
3881
  ze(B("div", {
3862
3882
  id: $,
3863
3883
  ref_key: "panel",
3864
- ref: d,
3884
+ ref: u,
3865
3885
  class: "vf-tag-input__panel",
3866
3886
  role: "listbox",
3867
3887
  "data-placement": m.value
@@ -3881,7 +3901,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3881
3901
  onClick: (ge) => M(oe)
3882
3902
  }, j(oe.label), 43, pr))), 128)) : (c(), b("div", mr, j(te.emptyText), 1))
3883
3903
  ], 8, vr), [
3884
- [Se, u.value]
3904
+ [Se, d.value]
3885
3905
  ])
3886
3906
  ]))
3887
3907
  ], 2));
@@ -3909,7 +3929,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3909
3929
  emits: ["update:modelValue", "change", "focus", "blur"],
3910
3930
  setup(n, { emit: o }) {
3911
3931
  let a = 0;
3912
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(!1), u = G("bottom"), v = G("bottom"), p = `vf-datepicker-panel-${++a}`, m = G(x(H(t.modelValue) ?? /* @__PURE__ */ new Date()));
3932
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(!1), d = G("bottom"), v = G("bottom"), p = `vf-datepicker-panel-${++a}`, m = G(x(H(t.modelValue) ?? /* @__PURE__ */ new Date()));
3913
3933
  let $ = null;
3914
3934
  const l = f(() => H(t.modelValue)), _ = f(() => H(t.min)), k = f(() => H(t.max)), y = f(() => l.value ? l.value.toLocaleDateString(t.locale, {
3915
3935
  year: "numeric",
@@ -3943,9 +3963,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3943
3963
  const V = ["vf-datepicker", `vf-datepicker_${t.variant}`, r.value ? "vf-datepicker_open" : ""];
3944
3964
  return t.size !== "normal" && V.push(`vf-datepicker_${t.size}`), t.disabled && V.push("vf-datepicker_disabled"), V.filter(Boolean);
3945
3965
  }), L = (V) => e("focus", V), R = (V) => e("blur", V), I = () => {
3946
- t.disabled || t.readonly || (r.value = !0, u.value = "bottom", v.value = "bottom");
3966
+ t.disabled || t.readonly || (r.value = !0, d.value = "bottom", v.value = "bottom");
3947
3967
  }, O = () => {
3948
- r.value = !1, u.value = "bottom", v.value = "bottom";
3968
+ r.value = !1, d.value = "bottom", v.value = "bottom";
3949
3969
  }, E = () => {
3950
3970
  if (r.value) {
3951
3971
  O();
@@ -3966,21 +3986,21 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3966
3986
  if (!r.value || !i.value)
3967
3987
  return;
3968
3988
  const Y = V.target;
3969
- i.value.contains(Y) || (ae = d.value) != null && ae.contains(Y) || O();
3989
+ i.value.contains(Y) || (ae = u.value) != null && ae.contains(Y) || O();
3970
3990
  }, F = () => {
3971
- if (!s.value || !d.value)
3991
+ if (!s.value || !u.value)
3972
3992
  return;
3973
- const V = s.value, Y = d.value, ae = async () => {
3993
+ const V = s.value, Y = u.value, ae = async () => {
3974
3994
  const {
3975
3995
  x: re,
3976
3996
  y: de,
3977
3997
  placement: ye
3978
3998
  } = await Me(V, Y, {
3979
- placement: u.value,
3999
+ placement: d.value,
3980
4000
  strategy: "fixed",
3981
4001
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
3982
4002
  });
3983
- v.value = ye ?? u.value, Y.style.left = `${re}px`, Y.style.top = `${de}px`;
4003
+ v.value = ye ?? d.value, Y.style.left = `${re}px`, Y.style.top = `${de}px`;
3984
4004
  }, se = async () => {
3985
4005
  await ae();
3986
4006
  }, U = De(V, () => {
@@ -4086,7 +4106,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4086
4106
  ze(B("div", {
4087
4107
  id: p,
4088
4108
  ref_key: "panel",
4089
- ref: d,
4109
+ ref: u,
4090
4110
  class: "vf-datepicker__panel",
4091
4111
  role: "dialog",
4092
4112
  "data-placement": v.value,
@@ -4159,7 +4179,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4159
4179
  emits: ["update:modelValue", "change", "focus", "blur"],
4160
4180
  setup(n, { emit: o }) {
4161
4181
  let a = 0;
4162
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(!1), u = G("bottom"), v = G("bottom"), p = `vf-daterangepicker-panel-${++a}`, m = G(A(/* @__PURE__ */ new Date()));
4182
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(!1), d = G("bottom"), v = G("bottom"), p = `vf-daterangepicker-panel-${++a}`, m = G(A(/* @__PURE__ */ new Date()));
4163
4183
  let $ = null;
4164
4184
  const l = f(() => P(t.min)), _ = f(() => P(t.max)), k = f(() => h(t.modelValue)), y = f(() => k.value[0]), z = f(() => k.value[1]), C = f(() => !y.value && !z.value), g = f(() => {
4165
4185
  if (C.value)
@@ -4205,9 +4225,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4205
4225
  ];
4206
4226
  return t.size !== "normal" && X.push(`vf-daterangepicker_${t.size}`), t.disabled && X.push("vf-daterangepicker_disabled"), X.filter(Boolean);
4207
4227
  }), O = (X) => e("focus", X), E = (X) => e("blur", X), T = () => {
4208
- t.disabled || t.readonly || (r.value = !0, u.value = "bottom", v.value = "bottom");
4228
+ t.disabled || t.readonly || (r.value = !0, d.value = "bottom", v.value = "bottom");
4209
4229
  }, D = () => {
4210
- r.value = !1, u.value = "bottom", v.value = "bottom";
4230
+ r.value = !1, d.value = "bottom", v.value = "bottom";
4211
4231
  }, M = () => {
4212
4232
  if (r.value) {
4213
4233
  D();
@@ -4236,21 +4256,21 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4236
4256
  if (!r.value || !i.value)
4237
4257
  return;
4238
4258
  const re = X.target;
4239
- i.value.contains(re) || (de = d.value) != null && de.contains(re) || D();
4259
+ i.value.contains(re) || (de = u.value) != null && de.contains(re) || D();
4240
4260
  }, W = () => {
4241
- if (!s.value || !d.value)
4261
+ if (!s.value || !u.value)
4242
4262
  return;
4243
- const X = s.value, re = d.value, de = async () => {
4263
+ const X = s.value, re = u.value, de = async () => {
4244
4264
  const {
4245
4265
  x: oe,
4246
4266
  y: le,
4247
4267
  placement: ge
4248
4268
  } = await Me(X, re, {
4249
- placement: u.value,
4269
+ placement: d.value,
4250
4270
  strategy: "fixed",
4251
4271
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
4252
4272
  });
4253
- v.value = ge ?? u.value, re.style.left = `${oe}px`, re.style.top = `${le}px`;
4273
+ v.value = ge ?? d.value, re.style.left = `${oe}px`, re.style.top = `${le}px`;
4254
4274
  }, ye = async () => {
4255
4275
  await de();
4256
4276
  }, te = De(X, () => {
@@ -4362,7 +4382,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4362
4382
  ze(B("div", {
4363
4383
  id: p,
4364
4384
  ref_key: "panel",
4365
- ref: d,
4385
+ ref: u,
4366
4386
  class: "vf-daterangepicker__panel",
4367
4387
  role: "dialog",
4368
4388
  "data-placement": v.value,
@@ -4429,7 +4449,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4429
4449
  emits: ["update:modelValue", "change", "focus", "blur"],
4430
4450
  setup(n, { emit: o }) {
4431
4451
  let a = 0;
4432
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(!1), u = G("bottom"), v = G("bottom"), p = `vf-timepicker-panel-${++a}`;
4452
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(!1), d = G("bottom"), v = G("bottom"), p = `vf-timepicker-panel-${++a}`;
4433
4453
  let m = null;
4434
4454
  const $ = f(() => S(t.min)), l = f(() => S(t.max)), _ = f(() => S(t.modelValue)), k = f(() => _.value === null ? "" : H(_.value, t.format)), y = f(() => !t.step || t.step <= 0 ? 30 : Math.min(Math.max(Math.round(t.step), 1), 1440)), z = f(() => {
4435
4455
  const x = [], W = y.value, h = $.value, P = l.value;
@@ -4448,9 +4468,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4448
4468
  const x = ["vf-timepicker", `vf-timepicker_${t.variant}`, r.value ? "vf-timepicker_open" : ""];
4449
4469
  return t.size !== "normal" && x.push(`vf-timepicker_${t.size}`), t.disabled && x.push("vf-timepicker_disabled"), x.filter(Boolean);
4450
4470
  }), g = (x) => e("focus", x), w = (x) => e("blur", x), L = () => {
4451
- t.disabled || t.readonly || (r.value = !0, u.value = "bottom", v.value = "bottom");
4471
+ t.disabled || t.readonly || (r.value = !0, d.value = "bottom", v.value = "bottom");
4452
4472
  }, R = () => {
4453
- r.value = !1, u.value = "bottom", v.value = "bottom";
4473
+ r.value = !1, d.value = "bottom", v.value = "bottom";
4454
4474
  }, I = () => {
4455
4475
  if (r.value) {
4456
4476
  R();
@@ -4459,7 +4479,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4459
4479
  L();
4460
4480
  }, O = async () => {
4461
4481
  var x, W;
4462
- r.value || (L(), await $e()), (W = (x = d.value) == null ? void 0 : x.querySelector(".vf-timepicker__option:not(.is-disabled)")) == null || W.focus();
4482
+ r.value || (L(), await $e()), (W = (x = u.value) == null ? void 0 : x.querySelector(".vf-timepicker__option:not(.is-disabled)")) == null || W.focus();
4463
4483
  }, E = (x) => {
4464
4484
  if (t.readonly)
4465
4485
  return;
@@ -4470,21 +4490,21 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4470
4490
  if (!r.value || !i.value)
4471
4491
  return;
4472
4492
  const W = x.target;
4473
- i.value.contains(W) || (h = d.value) != null && h.contains(W) || R();
4493
+ i.value.contains(W) || (h = u.value) != null && h.contains(W) || R();
4474
4494
  }, D = () => {
4475
- if (!s.value || !d.value)
4495
+ if (!s.value || !u.value)
4476
4496
  return;
4477
- const x = s.value, W = d.value, h = async () => {
4497
+ const x = s.value, W = u.value, h = async () => {
4478
4498
  const {
4479
4499
  x: V,
4480
4500
  y: Y,
4481
4501
  placement: ae
4482
4502
  } = await Me(x, W, {
4483
- placement: u.value,
4503
+ placement: d.value,
4484
4504
  strategy: "fixed",
4485
4505
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
4486
4506
  });
4487
- v.value = ae ?? u.value;
4507
+ v.value = ae ?? d.value;
4488
4508
  const se = x.getBoundingClientRect().width;
4489
4509
  W.style.minWidth = `${se}px`, W.style.width = `${se}px`, W.style.left = `${V}px`, W.style.top = `${Y}px`;
4490
4510
  }, P = async () => {
@@ -4501,9 +4521,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4501
4521
  }
4502
4522
  }, m.update();
4503
4523
  }, M = () => {
4504
- if (!d.value || _.value === null)
4524
+ if (!u.value || _.value === null)
4505
4525
  return;
4506
- const x = d.value.querySelector(`[data-time="${F(_.value)}"]`);
4526
+ const x = u.value.querySelector(`[data-time="${F(_.value)}"]`);
4507
4527
  !x || typeof x.scrollIntoView != "function" || x.scrollIntoView({ block: "nearest" });
4508
4528
  };
4509
4529
  ve(r, async (x) => {
@@ -4580,7 +4600,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4580
4600
  ze(B("div", {
4581
4601
  id: p,
4582
4602
  ref_key: "panel",
4583
- ref: d,
4603
+ ref: u,
4584
4604
  class: "vf-timepicker__panel",
4585
4605
  role: "listbox",
4586
4606
  "data-placement": v.value
@@ -4629,7 +4649,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4629
4649
  emits: ["update:modelValue", "change", "focus", "blur"],
4630
4650
  setup(n, { emit: o }) {
4631
4651
  let a = 0;
4632
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(!1), u = G("bottom"), v = G("bottom"), p = `vf-datetimepicker-panel-${++a}`, m = G(U(/* @__PURE__ */ new Date())), $ = G(null), l = G(null);
4652
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(!1), d = G("bottom"), v = G("bottom"), p = `vf-datetimepicker-panel-${++a}`, m = G(U(/* @__PURE__ */ new Date())), $ = G(null), l = G(null);
4633
4653
  let _ = null;
4634
4654
  const k = f(() => !t.minuteStep || t.minuteStep <= 0 ? 30 : Math.min(Math.max(Math.round(t.minuteStep), 1), 1440)), y = f(() => ae(t.modelValue)), z = f(() => ae(t.min)), C = f(() => ae(t.max)), g = f(() => {
4635
4655
  if (!y.value)
@@ -4702,9 +4722,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4702
4722
  );
4703
4723
  l.value = ue ? ue.minutes : null;
4704
4724
  }, F = () => {
4705
- t.disabled || t.readonly || (M(), $.value || ($.value = se(/* @__PURE__ */ new Date()), m.value = U($.value)), S($.value), r.value = !0, u.value = "bottom", v.value = "bottom");
4725
+ t.disabled || t.readonly || (M(), $.value || ($.value = se(/* @__PURE__ */ new Date()), m.value = U($.value)), S($.value), r.value = !0, d.value = "bottom", v.value = "bottom");
4706
4726
  }, H = () => {
4707
- r.value = !1, u.value = "bottom", v.value = "bottom";
4727
+ r.value = !1, d.value = "bottom", v.value = "bottom";
4708
4728
  }, Z = () => {
4709
4729
  if (r.value) {
4710
4730
  H();
@@ -4724,21 +4744,21 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4724
4744
  if (!r.value || !i.value)
4725
4745
  return;
4726
4746
  const ue = J.target;
4727
- i.value.contains(ue) || (ce = d.value) != null && ce.contains(ue) || H();
4747
+ i.value.contains(ue) || (ce = u.value) != null && ce.contains(ue) || H();
4728
4748
  }, A = () => {
4729
- if (!s.value || !d.value)
4749
+ if (!s.value || !u.value)
4730
4750
  return;
4731
- const J = s.value, ue = d.value, ce = async () => {
4751
+ const J = s.value, ue = u.value, ce = async () => {
4732
4752
  const {
4733
4753
  x: Ue,
4734
4754
  y: Lt,
4735
4755
  placement: Vt
4736
4756
  } = await Me(J, ue, {
4737
- placement: u.value,
4757
+ placement: d.value,
4738
4758
  strategy: "fixed",
4739
4759
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
4740
4760
  });
4741
- v.value = Vt ?? u.value;
4761
+ v.value = Vt ?? d.value;
4742
4762
  const rt = 8, Ft = ue.getBoundingClientRect().width, Tt = Math.max(rt, window.innerWidth - Ft - rt), It = Math.min(Math.max(Ue, rt), Tt);
4743
4763
  ue.style.left = `${It}px`, ue.style.top = `${Lt}px`;
4744
4764
  }, _e = async () => {
@@ -4884,7 +4904,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4884
4904
  ze(B("div", {
4885
4905
  id: p,
4886
4906
  ref_key: "panel",
4887
- ref: d,
4907
+ ref: u,
4888
4908
  class: "vf-datetimepicker__panel",
4889
4909
  role: "dialog",
4890
4910
  "data-placement": v.value,
@@ -4966,10 +4986,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4966
4986
  },
4967
4987
  emits: ["update:modelValue", "change"],
4968
4988
  setup(n, { emit: o }) {
4969
- const a = o, e = n, t = G(y(_(e.modelValue) ?? /* @__PURE__ */ new Date())), i = f(() => _(e.modelValue)), s = f(() => _(e.min)), d = f(() => _(e.max)), r = f(() => t.value.toLocaleDateString(e.locale, {
4989
+ const a = o, e = n, t = G(y(_(e.modelValue) ?? /* @__PURE__ */ new Date())), i = f(() => _(e.modelValue)), s = f(() => _(e.min)), u = f(() => _(e.max)), r = f(() => t.value.toLocaleDateString(e.locale, {
4970
4990
  year: "numeric",
4971
4991
  month: "long"
4972
- })), u = f(() => {
4992
+ })), d = f(() => {
4973
4993
  const R = new Intl.DateTimeFormat(e.locale, { weekday: "short" }), I = new Date(2026, 0, 4);
4974
4994
  return Array.from({ length: 7 }, (O, E) => {
4975
4995
  const T = (E + e.firstDayOfWeek) % 7, D = new Date(I);
@@ -4985,7 +5005,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4985
5005
  date: D,
4986
5006
  day: D.getDate(),
4987
5007
  inCurrentMonth: D.getMonth() === t.value.getMonth(),
4988
- isDisabled: L(D, s.value, d.value),
5008
+ isDisabled: L(D, s.value, u.value),
4989
5009
  isSelected: I === M,
4990
5010
  isToday: M === O
4991
5011
  };
@@ -4998,7 +5018,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4998
5018
  }, $ = () => {
4999
5019
  t.value = z(t.value, 1);
5000
5020
  }, l = (R) => {
5001
- if (e.disabled || e.readonly || L(R, s.value, d.value))
5021
+ if (e.disabled || e.readonly || L(R, s.value, u.value))
5002
5022
  return;
5003
5023
  const I = w(R);
5004
5024
  a("update:modelValue", I), a("change", I);
@@ -5065,7 +5085,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5065
5085
  }, " › ", 8, jr)
5066
5086
  ]),
5067
5087
  B("div", Yr, [
5068
- (c(!0), b(fe, null, he(u.value, (O) => (c(), b("span", {
5088
+ (c(!0), b(fe, null, he(d.value, (O) => (c(), b("span", {
5069
5089
  key: O,
5070
5090
  class: "vf-calendar__weekday"
5071
5091
  }, j(O), 1))), 128))
@@ -5116,8 +5136,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5116
5136
  return Math.max(1, Math.floor(a.totalPages));
5117
5137
  const l = Math.max(1, Math.floor(a.pageSize));
5118
5138
  return Math.max(1, Math.ceil(Math.max(0, a.totalItems) / l));
5119
- }), d = f(() => t(Math.floor(a.modelValue), 1, s.value)), r = f(() => d.value <= 1), u = f(() => d.value >= s.value), v = f(() => a.disabled || s.value <= 1), p = f(() => {
5120
- const l = s.value, _ = d.value, k = Math.max(0, Math.floor(a.siblingCount)), y = Math.max(0, Math.floor(a.boundaryCount)), z = k * 2 + y * 2 + 3, C = [];
5139
+ }), u = f(() => t(Math.floor(a.modelValue), 1, s.value)), r = f(() => u.value <= 1), d = f(() => u.value >= s.value), v = f(() => a.disabled || s.value <= 1), p = f(() => {
5140
+ const l = s.value, _ = u.value, k = Math.max(0, Math.floor(a.siblingCount)), y = Math.max(0, Math.floor(a.boundaryCount)), z = k * 2 + y * 2 + 3, C = [];
5121
5141
  if (l <= z)
5122
5142
  return i(1, l).map((I) => ({ key: `page-${I}`, type: "page", page: I }));
5123
5143
  const g = i(1, y), w = i(l - y + 1, l), L = Math.max(Math.min(_ - k, l - y - k * 2 - 1), y + 2), R = Math.min(Math.max(_ + k, y + k * 2 + 2), l - y - 1);
@@ -5148,17 +5168,17 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5148
5168
  type: "button",
5149
5169
  disabled: v.value || r.value,
5150
5170
  "aria-label": "Previous page",
5151
- onClick: _[0] || (_[0] = (k) => $(d.value - 1, k))
5171
+ onClick: _[0] || (_[0] = (k) => $(u.value - 1, k))
5152
5172
  }, j(l.prevLabel), 9, Ur),
5153
5173
  (c(!0), b(fe, null, he(p.value, (k) => (c(), b("button", {
5154
5174
  key: k.key,
5155
5175
  class: ee(["vf-pagination__item", {
5156
- "is-current": k.type === "page" && k.page === d.value,
5176
+ "is-current": k.type === "page" && k.page === u.value,
5157
5177
  "is-ellipsis": k.type === "ellipsis"
5158
5178
  }]),
5159
5179
  type: "button",
5160
5180
  disabled: v.value || k.type === "ellipsis",
5161
- "aria-current": k.type === "page" && k.page === d.value ? "page" : void 0,
5181
+ "aria-current": k.type === "page" && k.page === u.value ? "page" : void 0,
5162
5182
  "aria-label": k.type === "page" ? `Page ${k.page}` : void 0,
5163
5183
  onClick: (y) => k.type === "page" && $(k.page, y)
5164
5184
  }, [
@@ -5171,9 +5191,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5171
5191
  B("button", {
5172
5192
  class: "vf-pagination__item vf-pagination__item_nav",
5173
5193
  type: "button",
5174
- disabled: v.value || u.value,
5194
+ disabled: v.value || d.value,
5175
5195
  "aria-label": "Next page",
5176
- onClick: _[1] || (_[1] = (k) => $(d.value + 1, k))
5196
+ onClick: _[1] || (_[1] = (k) => $(u.value + 1, k))
5177
5197
  }, j(l.nextLabel), 9, Zr)
5178
5198
  ], 2));
5179
5199
  }
@@ -5194,10 +5214,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5194
5214
  const s = ["vf-checkbox", `vf-checkbox_${e.variant}`];
5195
5215
  return e.disabled && s.push("vf-checkbox_disabled"), s;
5196
5216
  }), i = (s) => {
5197
- const d = s.target;
5198
- a("update:modelValue", d.checked), a("change", s);
5217
+ const u = s.target;
5218
+ a("update:modelValue", u.checked), a("change", s);
5199
5219
  };
5200
- return (s, d) => (c(), b("label", {
5220
+ return (s, u) => (c(), b("label", {
5201
5221
  class: ee(t.value)
5202
5222
  }, [
5203
5223
  B("input", {
@@ -5207,7 +5227,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5207
5227
  disabled: s.disabled,
5208
5228
  onChange: i
5209
5229
  }, null, 40, Jr),
5210
- d[0] || (d[0] = B("span", { class: "vf-checkbox__box" }, null, -1)),
5230
+ u[0] || (u[0] = B("span", { class: "vf-checkbox__box" }, null, -1)),
5211
5231
  s.label || s.$slots.default ? (c(), b("span", el, [
5212
5232
  q(s.$slots, "default", {}, () => [
5213
5233
  me(j(s.label), 1)
@@ -5229,10 +5249,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5229
5249
  emits: ["update:modelValue", "change"],
5230
5250
  setup(n, { emit: o }) {
5231
5251
  const a = o, e = n, t = f(() => {
5232
- const d = ["vf-radio-group"];
5233
- return e.direction === "horizontal" && d.push("vf-radio-group_horizontal"), d;
5234
- }), i = (d, r) => {
5235
- a("update:modelValue", d), a("change", d, r);
5252
+ const u = ["vf-radio-group"];
5253
+ return e.direction === "horizontal" && u.push("vf-radio-group_horizontal"), u;
5254
+ }), i = (u, r) => {
5255
+ a("update:modelValue", u), a("change", u, r);
5236
5256
  }, s = {
5237
5257
  name: f(() => e.name),
5238
5258
  modelValue: f(() => e.modelValue),
@@ -5240,14 +5260,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5240
5260
  variant: f(() => e.variant),
5241
5261
  onChange: i
5242
5262
  };
5243
- return Qe(wt, s), (d, r) => (c(), b("div", {
5263
+ return Qe(wt, s), (u, r) => (c(), b("div", {
5244
5264
  class: ee(t.value),
5245
5265
  role: "radiogroup",
5246
- "aria-disabled": d.disabled || void 0,
5247
- "aria-label": d.ariaLabel || void 0,
5248
- "aria-labelledby": d.ariaLabelledby || void 0
5266
+ "aria-disabled": u.disabled || void 0,
5267
+ "aria-label": u.ariaLabel || void 0,
5268
+ "aria-labelledby": u.ariaLabelledby || void 0
5249
5269
  }, [
5250
- q(d.$slots, "default")
5270
+ q(u.$slots, "default")
5251
5271
  ], 10, tl));
5252
5272
  }
5253
5273
  }), al = ["name", "value", "checked", "disabled"], ol = {
@@ -5265,8 +5285,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5265
5285
  },
5266
5286
  emits: ["update:modelValue", "change"],
5267
5287
  setup(n, { emit: o }) {
5268
- const a = o, e = n, t = qe(wt, null), i = f(() => t ? t.modelValue.value : e.modelValue), s = f(() => t ? t.name.value : e.name), d = f(() => t ? t.variant.value : e.variant), r = f(() => (t ? t.disabled.value : !1) || e.disabled), u = f(() => i.value === e.value), v = f(() => {
5269
- const m = ["vf-radio", `vf-radio_${d.value}`];
5288
+ const a = o, e = n, t = qe(wt, null), i = f(() => t ? t.modelValue.value : e.modelValue), s = f(() => t ? t.name.value : e.name), u = f(() => t ? t.variant.value : e.variant), r = f(() => (t ? t.disabled.value : !1) || e.disabled), d = f(() => i.value === e.value), v = f(() => {
5289
+ const m = ["vf-radio", `vf-radio_${u.value}`];
5270
5290
  return r.value && m.push("vf-radio_disabled"), m;
5271
5291
  }), p = (m) => {
5272
5292
  r.value || (t ? t.onChange(e.value, m) : a("update:modelValue", e.value), a("change", e.value, m));
@@ -5279,7 +5299,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5279
5299
  type: "radio",
5280
5300
  name: s.value,
5281
5301
  value: m.value,
5282
- checked: u.value,
5302
+ checked: d.value,
5283
5303
  disabled: r.value,
5284
5304
  onChange: p
5285
5305
  }, null, 40, al),
@@ -5308,10 +5328,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5308
5328
  const a = o, e = n, t = G([]), i = f(() => e.options.map((l, _) => ({
5309
5329
  ...l,
5310
5330
  key: `${String(l.value)}-${_}`
5311
- }))), s = f(() => i.value.reduce((l, _, k) => (_.disabled || l.push(k), l), [])), d = f(() => {
5331
+ }))), s = f(() => i.value.reduce((l, _, k) => (_.disabled || l.push(k), l), [])), u = f(() => {
5312
5332
  const l = ["vf-segmented-control", `vf-segmented-control_${e.variant}`];
5313
5333
  return e.fullWidth && l.push("vf-segmented-control_full-width"), e.size !== "normal" && l.push(`vf-segmented-control_${e.size}`), e.disabled && l.push("vf-segmented-control_disabled"), l;
5314
- }), r = (l) => e.modelValue === l, u = (l) => a("focus", l), v = (l) => a("blur", l), p = (l, _) => {
5334
+ }), r = (l) => e.modelValue === l, d = (l) => a("focus", l), v = (l) => a("blur", l), p = (l, _) => {
5315
5335
  if (e.disabled)
5316
5336
  return;
5317
5337
  const k = i.value.find((y) => y.value === l);
@@ -5332,7 +5352,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5332
5352
  L == null || L.focus(), w && p(w.value, _);
5333
5353
  };
5334
5354
  return (l, _) => (c(), b("div", {
5335
- class: ee(d.value),
5355
+ class: ee(u.value),
5336
5356
  role: "radiogroup",
5337
5357
  "aria-label": l.ariaLabel || void 0,
5338
5358
  "aria-labelledby": l.ariaLabelledby || void 0
@@ -5348,7 +5368,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5348
5368
  disabled: l.disabled || k.disabled,
5349
5369
  onClick: (z) => p(k.value, z),
5350
5370
  onKeydown: (z) => $(y, z),
5351
- onFocus: u,
5371
+ onFocus: d,
5352
5372
  onBlur: v
5353
5373
  }, j(k.label), 43, ll))), 128))
5354
5374
  ], 10, rl));
@@ -5365,10 +5385,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5365
5385
  emits: ["update:modelValue", "change"],
5366
5386
  setup(n, { emit: o }) {
5367
5387
  let a = 0;
5368
- const e = o, t = n, i = ++a, s = (l) => String(l).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), d = f(() => {
5388
+ const e = o, t = n, i = ++a, s = (l) => String(l).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), u = f(() => {
5369
5389
  const l = ["vf-tabs"];
5370
5390
  return t.orientation === "vertical" && l.push("vf-tabs_vertical"), t.disabled && l.push("vf-tabs_disabled"), l;
5371
- }), r = G(null), u = () => r.value ? Array.from(r.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], v = (l) => {
5391
+ }), r = G(null), d = () => r.value ? Array.from(r.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], v = (l) => {
5372
5392
  l && (l.focus(), l.click());
5373
5393
  }, p = (l) => {
5374
5394
  if (t.disabled)
@@ -5376,7 +5396,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5376
5396
  const _ = t.orientation === "horizontal", k = l.key, y = _ ? ["ArrowRight"] : ["ArrowDown"], z = _ ? ["ArrowLeft"] : ["ArrowUp"];
5377
5397
  if (![...y, ...z, "Home", "End"].includes(k))
5378
5398
  return;
5379
- const C = u();
5399
+ const C = d();
5380
5400
  if (!C.length)
5381
5401
  return;
5382
5402
  const g = C.findIndex((I) => I.getAttribute("aria-selected") === "true"), w = C.findIndex((I) => I === document.activeElement), L = w >= 0 ? w : Math.max(g, 0);
@@ -5393,7 +5413,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5393
5413
  getPanelId: (l) => `vf-tabpanel-${i}-${s(l)}`
5394
5414
  };
5395
5415
  return Qe(ut, $), (l, _) => (c(), b("div", {
5396
- class: ee(d.value)
5416
+ class: ee(u.value)
5397
5417
  }, [
5398
5418
  B("div", {
5399
5419
  ref_key: "list",
@@ -5421,18 +5441,18 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5421
5441
  },
5422
5442
  emits: ["change"],
5423
5443
  setup(n, { emit: o }) {
5424
- const a = o, e = n, t = qe(ut, null), i = f(() => (t == null ? void 0 : t.activeValue.value) === e.value), s = f(() => ((t == null ? void 0 : t.disabled.value) ?? !1) || e.disabled), d = f(() => t ? t.getTabId(e.value) : void 0), r = f(() => t ? t.getPanelId(e.value) : void 0), u = f(() => s.value ? -1 : i.value ? 0 : -1), v = (p) => {
5444
+ const a = o, e = n, t = qe(ut, null), i = f(() => (t == null ? void 0 : t.activeValue.value) === e.value), s = f(() => ((t == null ? void 0 : t.disabled.value) ?? !1) || e.disabled), u = f(() => t ? t.getTabId(e.value) : void 0), r = f(() => t ? t.getPanelId(e.value) : void 0), d = f(() => s.value ? -1 : i.value ? 0 : -1), v = (p) => {
5425
5445
  !t || s.value || (t.onChange(e.value, p), a("change", e.value, p));
5426
5446
  };
5427
5447
  return (p, m) => (c(), b("button", {
5428
- id: d.value,
5448
+ id: u.value,
5429
5449
  class: ee(["vf-tab", { "vf-tab_active": i.value, "vf-tab_disabled": s.value }]),
5430
5450
  type: "button",
5431
5451
  role: "tab",
5432
5452
  "aria-selected": i.value,
5433
5453
  "aria-controls": r.value,
5434
5454
  disabled: s.value,
5435
- tabindex: u.value,
5455
+ tabindex: d.value,
5436
5456
  onClick: v
5437
5457
  }, [
5438
5458
  q(p.$slots, "default", {}, () => [
@@ -5447,7 +5467,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5447
5467
  },
5448
5468
  setup(n) {
5449
5469
  const o = n, a = qe(ut, null), e = f(() => (a == null ? void 0 : a.activeValue.value) === o.value), t = f(() => a ? a.getTabId(o.value) : void 0), i = f(() => a ? a.getPanelId(o.value) : void 0);
5450
- return (s, d) => ze((c(), b("div", {
5470
+ return (s, u) => ze((c(), b("div", {
5451
5471
  id: i.value,
5452
5472
  class: "vf-tab-panel",
5453
5473
  role: "tabpanel",
@@ -5473,10 +5493,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5473
5493
  emits: ["update:modelValue", "change"],
5474
5494
  setup(n, { emit: o }) {
5475
5495
  let a = 0;
5476
- const e = o, t = n, i = ++a, s = (p) => String(p).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), d = f(() => {
5496
+ const e = o, t = n, i = ++a, s = (p) => String(p).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), u = f(() => {
5477
5497
  const p = ["vf-accordion", `vf-accordion_${t.variant}`];
5478
5498
  return t.size !== "normal" && p.push(`vf-accordion_${t.size}`), t.disabled && p.push("vf-accordion_disabled"), p;
5479
- }), r = (p) => Array.isArray(p) ? p : p == null ? [] : [p], u = (p, m) => {
5499
+ }), r = (p) => Array.isArray(p) ? p : p == null ? [] : [p], d = (p, m) => {
5480
5500
  if (t.disabled)
5481
5501
  return;
5482
5502
  if (t.multiple) {
@@ -5492,12 +5512,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5492
5512
  disabled: f(() => t.disabled),
5493
5513
  variant: f(() => t.variant),
5494
5514
  size: f(() => t.size),
5495
- onToggle: u,
5515
+ onToggle: d,
5496
5516
  getHeaderId: (p) => `vf-accordion-header-${i}-${s(p)}`,
5497
5517
  getPanelId: (p) => `vf-accordion-panel-${i}-${s(p)}`
5498
5518
  };
5499
5519
  return Qe($t, v), (p, m) => (c(), b("div", {
5500
- class: ee(d.value),
5520
+ class: ee(u.value),
5501
5521
  "aria-label": p.ariaLabel || void 0,
5502
5522
  "aria-labelledby": p.ariaLabelledby || void 0
5503
5523
  }, [
@@ -5518,10 +5538,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5518
5538
  return !1;
5519
5539
  const v = a.modelValue.value;
5520
5540
  return Array.isArray(v) ? v.includes(o.value) : v === o.value;
5521
- }), t = f(() => ((a == null ? void 0 : a.disabled.value) ?? !1) || o.disabled), i = f(() => a ? a.getHeaderId(o.value) : void 0), s = f(() => a ? a.getPanelId(o.value) : void 0), d = f(() => o.unmount ? e.value : !0), r = f(() => {
5541
+ }), t = f(() => ((a == null ? void 0 : a.disabled.value) ?? !1) || o.disabled), i = f(() => a ? a.getHeaderId(o.value) : void 0), s = f(() => a ? a.getPanelId(o.value) : void 0), u = f(() => o.unmount ? e.value : !0), r = f(() => {
5522
5542
  const v = ["vf-accordion-item"];
5523
5543
  return e.value && v.push("vf-accordion-item_open"), t.value && v.push("vf-accordion-item_disabled"), v;
5524
- }), u = (v) => {
5544
+ }), d = (v) => {
5525
5545
  !a || t.value || a.onToggle(o.value, v);
5526
5546
  };
5527
5547
  return (v, p) => (c(), b("div", {
@@ -5534,7 +5554,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5534
5554
  disabled: t.value,
5535
5555
  "aria-expanded": e.value,
5536
5556
  "aria-controls": s.value,
5537
- onClick: u
5557
+ onClick: d
5538
5558
  }, [
5539
5559
  B("span", vl, [
5540
5560
  q(v.$slots, "title", {}, () => [
@@ -5546,7 +5566,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5546
5566
  "aria-hidden": "true"
5547
5567
  }, null, -1))
5548
5568
  ], 8, cl),
5549
- d.value ? (c(), b("div", {
5569
+ u.value ? (c(), b("div", {
5550
5570
  key: 0,
5551
5571
  id: s.value,
5552
5572
  class: ee(["vf-accordion__panel", { "vf-accordion__panel_open": e.value }]),
@@ -5586,7 +5606,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5586
5606
  i(), !(!e.modelValue || e.duration <= 0) && (t = window.setTimeout(() => {
5587
5607
  a("update:modelValue", !1), a("close");
5588
5608
  }, e.duration));
5589
- }, d = () => {
5609
+ }, u = () => {
5590
5610
  i(), a("update:modelValue", !1), a("close");
5591
5611
  };
5592
5612
  return ve(
@@ -5597,7 +5617,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5597
5617
  { immediate: !0 }
5598
5618
  ), we(() => {
5599
5619
  i();
5600
- }), (r, u) => ze((c(), b("div", {
5620
+ }), (r, d) => ze((c(), b("div", {
5601
5621
  class: "vf-toast",
5602
5622
  role: "status",
5603
5623
  "aria-live": "polite",
@@ -5615,10 +5635,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5615
5635
  key: 0,
5616
5636
  class: "vf-toast__close",
5617
5637
  type: "button",
5618
- onClick: d
5638
+ onClick: u
5619
5639
  }, [
5620
5640
  q(r.$slots, "close", {}, () => [
5621
- u[0] || (u[0] = me("×"))
5641
+ d[0] || (d[0] = me("×"))
5622
5642
  ])
5623
5643
  ])) : Q("", !0)
5624
5644
  ], 8, ml)), [
@@ -5675,10 +5695,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5675
5695
  },
5676
5696
  { immediate: !0 }
5677
5697
  );
5678
- const d = () => {
5698
+ const u = () => {
5679
5699
  i.value ? a("update:modelValue", !1) : t.value = !1, a("close");
5680
5700
  };
5681
- return (r, u) => ze((c(), b("div", {
5701
+ return (r, d) => ze((c(), b("div", {
5682
5702
  class: "vf-alert",
5683
5703
  role: "alert",
5684
5704
  "data-severity": r.severity
@@ -5708,10 +5728,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5708
5728
  class: "vf-alert__close",
5709
5729
  type: "button",
5710
5730
  "aria-label": "Close",
5711
- onClick: d
5731
+ onClick: u
5712
5732
  }, [
5713
5733
  q(r.$slots, "close", {}, () => [
5714
- u[0] || (u[0] = me("×"))
5734
+ d[0] || (d[0] = me("×"))
5715
5735
  ])
5716
5736
  ])) : Q("", !0)
5717
5737
  ], 8, yl)), [
@@ -5788,10 +5808,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5788
5808
  const s = ["vf-switch"];
5789
5809
  return e.disabled && s.push("vf-switch_disabled"), s;
5790
5810
  }), i = (s) => {
5791
- const d = s.target;
5792
- a("update:modelValue", d.checked), a("change", s);
5811
+ const u = s.target;
5812
+ a("update:modelValue", u.checked), a("change", s);
5793
5813
  };
5794
- return (s, d) => (c(), b("label", {
5814
+ return (s, u) => (c(), b("label", {
5795
5815
  class: ee(t.value)
5796
5816
  }, [
5797
5817
  B("input", {
@@ -5801,7 +5821,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5801
5821
  disabled: s.disabled,
5802
5822
  onChange: i
5803
5823
  }, null, 40, Vl),
5804
- d[0] || (d[0] = B("span", { class: "vf-switch__track" }, [
5824
+ u[0] || (u[0] = B("span", { class: "vf-switch__track" }, [
5805
5825
  B("span", { class: "vf-switch__thumb" })
5806
5826
  ], -1)),
5807
5827
  s.label || s.$slots.default ? (c(), b("span", Fl, [
@@ -5817,10 +5837,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5817
5837
  setup(n, { expose: o, emit: a }) {
5818
5838
  const e = a, t = Dt({ visible: !1 });
5819
5839
  let i = 0;
5820
- const s = `vf-popover-panel-${++i}`, d = () => t.visible = !0, r = () => t.visible = !1, u = () => t.visible = !t.visible, v = () => {
5821
- u(), e("click"), e("onClick");
5840
+ const s = `vf-popover-panel-${++i}`, u = () => t.visible = !0, r = () => t.visible = !1, d = () => t.visible = !t.visible, v = () => {
5841
+ d(), e("click"), e("onClick");
5822
5842
  };
5823
- return o({ show: d, hide: r, toggle: u }), (p, m) => (c(), b("div", Tl, [
5843
+ return o({ show: u, hide: r, toggle: d }), (p, m) => (c(), b("div", Tl, [
5824
5844
  B("div", {
5825
5845
  class: "vf-popover__button",
5826
5846
  role: "button",
@@ -5905,8 +5925,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5905
5925
  emits: ["update:modelValue", "open", "close"],
5906
5926
  setup(n, { expose: o, emit: a }) {
5907
5927
  const e = a, t = n;
5908
- let i = 0, s = 0, d = "", r = null;
5909
- const u = G(null), v = Mt(), p = Xe(), m = `vf-modal-title-${++i}`, $ = `vf-modal-body-${i}`, l = f(() => !!t.title || !!p.header), _ = f(() => !!p.body || !!p.default), k = f(() => {
5928
+ let i = 0, s = 0, u = "", r = null;
5929
+ const d = G(null), v = Mt(), p = Xe(), m = `vf-modal-title-${++i}`, $ = `vf-modal-body-${i}`, l = f(() => !!t.title || !!p.header), _ = f(() => !!p.body || !!p.default), k = f(() => {
5910
5930
  const E = ["vf-modal"];
5911
5931
  return t.size !== "md" && E.push(`vf-modal_${t.size}`), E;
5912
5932
  }), y = () => e("update:modelValue", !0), z = () => {
@@ -5915,17 +5935,17 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5915
5935
  t.closeOnOverlay && z();
5916
5936
  }, g = (E) => {
5917
5937
  !t.modelValue || !t.closeOnEsc || E.key === "Escape" && (E.preventDefault(), z());
5918
- }, w = () => u.value ? Array.from(u.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((T) => !T.hasAttribute("disabled") && !T.getAttribute("aria-hidden")) : [], L = () => {
5938
+ }, w = () => d.value ? Array.from(d.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((T) => !T.hasAttribute("disabled") && !T.getAttribute("aria-hidden")) : [], L = () => {
5919
5939
  var T;
5920
5940
  const E = w();
5921
- E.length ? E[0].focus() : (T = u.value) == null || T.focus();
5941
+ E.length ? E[0].focus() : (T = d.value) == null || T.focus();
5922
5942
  }, R = (E) => {
5923
5943
  var F;
5924
5944
  if (E.key !== "Tab")
5925
5945
  return;
5926
5946
  const T = w();
5927
5947
  if (!T.length) {
5928
- E.preventDefault(), (F = u.value) == null || F.focus();
5948
+ E.preventDefault(), (F = d.value) == null || F.focus();
5929
5949
  return;
5930
5950
  }
5931
5951
  const D = T[0], M = T[T.length - 1], S = document.activeElement;
@@ -5935,9 +5955,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5935
5955
  }
5936
5956
  !E.shiftKey && S === M && (E.preventDefault(), D.focus());
5937
5957
  }, I = () => {
5938
- !t.lockScroll || typeof document > "u" || (s === 0 && (d = document.body.style.overflow, document.body.style.overflow = "hidden"), s += 1);
5958
+ !t.lockScroll || typeof document > "u" || (s === 0 && (u = document.body.style.overflow, document.body.style.overflow = "hidden"), s += 1);
5939
5959
  }, O = () => {
5940
- !t.lockScroll || typeof document > "u" || (s = Math.max(0, s - 1), s === 0 && (document.body.style.overflow = d));
5960
+ !t.lockScroll || typeof document > "u" || (s = Math.max(0, s - 1), s === 0 && (document.body.style.overflow = u));
5941
5961
  };
5942
5962
  return ve(
5943
5963
  () => t.modelValue,
@@ -5958,7 +5978,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5958
5978
  }),
5959
5979
  B("div", {
5960
5980
  ref_key: "panel",
5961
- ref: u,
5981
+ ref: d,
5962
5982
  class: "vf-modal__panel",
5963
5983
  role: "dialog",
5964
5984
  "aria-modal": "true",
@@ -6024,7 +6044,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6024
6044
  },
6025
6045
  emits: ["update:modelValue", "confirm", "cancel", "open", "close"],
6026
6046
  setup(n, { expose: o, emit: a }) {
6027
- const e = n, t = a, i = G(null), s = G(null), d = () => {
6047
+ const e = n, t = a, i = G(null), s = G(null), u = () => {
6028
6048
  if (i.value) {
6029
6049
  i.value.close();
6030
6050
  return;
@@ -6032,16 +6052,16 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6032
6052
  t("update:modelValue", !1), t("close");
6033
6053
  }, r = (m) => {
6034
6054
  t("update:modelValue", m);
6035
- }, u = () => {
6055
+ }, d = () => {
6036
6056
  if (t("close"), s.value === "confirm") {
6037
6057
  s.value = null;
6038
6058
  return;
6039
6059
  }
6040
6060
  s.value = null, t("cancel");
6041
6061
  }, v = () => {
6042
- s.value = "cancel", d();
6062
+ s.value = "cancel", u();
6043
6063
  }, p = () => {
6044
- e.loading || (t("confirm"), e.closeOnConfirm && (s.value = "confirm", d()));
6064
+ e.loading || (t("confirm"), e.closeOnConfirm && (s.value = "confirm", u()));
6045
6065
  };
6046
6066
  return o({
6047
6067
  open: () => {
@@ -6049,7 +6069,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6049
6069
  return (m = i.value) == null ? void 0 : m.open();
6050
6070
  },
6051
6071
  close: () => {
6052
- s.value = "cancel", d();
6072
+ s.value = "cancel", u();
6053
6073
  }
6054
6074
  }), (m, $) => (c(), be(El, {
6055
6075
  ref_key: "modal",
@@ -6064,7 +6084,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6064
6084
  "lock-scroll": m.lockScroll,
6065
6085
  "onUpdate:modelValue": r,
6066
6086
  onOpen: $[0] || ($[0] = (l) => t("open")),
6067
- onClose: u
6087
+ onClose: d
6068
6088
  }, {
6069
6089
  body: Ce(() => [
6070
6090
  B("div", Ol, [
@@ -6125,8 +6145,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6125
6145
  emits: ["update:modelValue", "open", "close"],
6126
6146
  setup(n, { expose: o, emit: a }) {
6127
6147
  const e = a, t = n;
6128
- let i = 0, s = 0, d = "", r = null;
6129
- const u = G(null), v = Xe(), p = `vf-drawer-title-${++i}`, m = `vf-drawer-body-${i}`, $ = f(() => !!t.title || !!v.header), l = f(() => !!v.body || !!v.default), _ = f(() => {
6148
+ let i = 0, s = 0, u = "", r = null;
6149
+ const d = G(null), v = Xe(), p = `vf-drawer-title-${++i}`, m = `vf-drawer-body-${i}`, $ = f(() => !!t.title || !!v.header), l = f(() => !!v.body || !!v.default), _ = f(() => {
6130
6150
  switch (t.position) {
6131
6151
  case "left":
6132
6152
  return "translate3d(-100%, 0, 0)";
@@ -6150,17 +6170,17 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6150
6170
  t.overlay && t.closeOnOverlay && C();
6151
6171
  }, w = (T) => {
6152
6172
  !t.modelValue || !t.closeOnEsc || T.key === "Escape" && (T.preventDefault(), C());
6153
- }, L = () => u.value ? Array.from(u.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((D) => !D.hasAttribute("disabled") && !D.getAttribute("aria-hidden")) : [], R = () => {
6173
+ }, L = () => d.value ? Array.from(d.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((D) => !D.hasAttribute("disabled") && !D.getAttribute("aria-hidden")) : [], R = () => {
6154
6174
  var D;
6155
6175
  const T = L();
6156
- T.length ? T[0].focus() : (D = u.value) == null || D.focus();
6176
+ T.length ? T[0].focus() : (D = d.value) == null || D.focus();
6157
6177
  }, I = (T) => {
6158
6178
  var H;
6159
6179
  if (T.key !== "Tab")
6160
6180
  return;
6161
6181
  const D = L();
6162
6182
  if (!D.length) {
6163
- T.preventDefault(), (H = u.value) == null || H.focus();
6183
+ T.preventDefault(), (H = d.value) == null || H.focus();
6164
6184
  return;
6165
6185
  }
6166
6186
  const M = D[0], S = D[D.length - 1], F = document.activeElement;
@@ -6170,9 +6190,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6170
6190
  }
6171
6191
  !T.shiftKey && F === S && (T.preventDefault(), M.focus());
6172
6192
  }, O = () => {
6173
- !t.lockScroll || typeof document > "u" || (s === 0 && (d = document.body.style.overflow, document.body.style.overflow = "hidden"), s += 1);
6193
+ !t.lockScroll || typeof document > "u" || (s === 0 && (u = document.body.style.overflow, document.body.style.overflow = "hidden"), s += 1);
6174
6194
  }, E = () => {
6175
- !t.lockScroll || typeof document > "u" || (s = Math.max(0, s - 1), s === 0 && (document.body.style.overflow = d));
6195
+ !t.lockScroll || typeof document > "u" || (s = Math.max(0, s - 1), s === 0 && (document.body.style.overflow = u));
6176
6196
  };
6177
6197
  return ve(
6178
6198
  () => t.modelValue,
@@ -6200,7 +6220,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6200
6220
  })) : Q("", !0),
6201
6221
  B("div", {
6202
6222
  ref_key: "panel",
6203
- ref: u,
6223
+ ref: d,
6204
6224
  class: "vf-drawer__panel",
6205
6225
  role: "dialog",
6206
6226
  "aria-modal": "true",
@@ -6267,16 +6287,16 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6267
6287
  setup(n, { expose: o, emit: a }) {
6268
6288
  const e = a, t = n;
6269
6289
  let i = 0;
6270
- const s = G(null), d = G(null), r = G(null), u = G(!1), v = G(t.placement), p = G(t.placement), m = `vf-dropdown-panel-${++i}`;
6290
+ const s = G(null), u = G(null), r = G(null), d = G(!1), v = G(t.placement), p = G(t.placement), m = `vf-dropdown-panel-${++i}`;
6271
6291
  let $ = null;
6272
6292
  const l = f(() => t.modelValue !== void 0), _ = (O) => {
6273
- t.disabled || (e("update:modelValue", O), l.value || (u.value = O));
6293
+ t.disabled || (e("update:modelValue", O), l.value || (d.value = O));
6274
6294
  }, k = () => {
6275
6295
  v.value = t.placement, p.value = t.placement, _(!0);
6276
6296
  }, y = () => {
6277
6297
  _(!1);
6278
6298
  }, z = () => {
6279
- u.value ? y() : k();
6299
+ d.value ? y() : k();
6280
6300
  }, C = () => {
6281
6301
  t.disabled || z();
6282
6302
  }, g = (O) => {
@@ -6286,12 +6306,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6286
6306
  E && (E.closest(".vf-menu__parent") || (E.closest(".vf-menu__link") || E.closest("[data-dropdown-close]")) && y());
6287
6307
  }, w = (O) => {
6288
6308
  var T;
6289
- if (!u.value || !s.value)
6309
+ if (!d.value || !s.value)
6290
6310
  return;
6291
6311
  const E = O.target;
6292
6312
  s.value.contains(E) || (T = r.value) != null && T.contains(E) || y();
6293
6313
  }, L = (O) => {
6294
- !u.value || !t.closeOnEsc || O.key === "Escape" && (O.preventDefault(), y());
6314
+ !d.value || !t.closeOnEsc || O.key === "Escape" && (O.preventDefault(), y());
6295
6315
  }, R = (O) => {
6296
6316
  switch (O) {
6297
6317
  case "bottom-start":
@@ -6309,9 +6329,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6309
6329
  return ["top"];
6310
6330
  }
6311
6331
  }, I = () => {
6312
- if (!d.value || !r.value)
6332
+ if (!u.value || !r.value)
6313
6333
  return;
6314
- const O = d.value, E = r.value, T = async () => {
6334
+ const O = u.value, E = r.value, T = async () => {
6315
6335
  const {
6316
6336
  x: F,
6317
6337
  y: H,
@@ -6339,7 +6359,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6339
6359
  return ve(
6340
6360
  () => t.modelValue,
6341
6361
  (O) => {
6342
- l.value && (u.value = !!O);
6362
+ l.value && (d.value = !!O);
6343
6363
  },
6344
6364
  { immediate: !0 }
6345
6365
  ), ve(
@@ -6347,7 +6367,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6347
6367
  (O) => {
6348
6368
  v.value = O, p.value = O;
6349
6369
  }
6350
- ), ve(u, async (O) => {
6370
+ ), ve(d, async (O) => {
6351
6371
  if (e(O ? "open" : "close"), !O) {
6352
6372
  $ && ($.destroy(), $ = null);
6353
6373
  return;
@@ -6364,11 +6384,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6364
6384
  }, [
6365
6385
  B("div", {
6366
6386
  ref_key: "trigger",
6367
- ref: d,
6387
+ ref: u,
6368
6388
  class: "vf-dropdown__trigger",
6369
6389
  role: "button",
6370
6390
  tabindex: "0",
6371
- "aria-expanded": u.value,
6391
+ "aria-expanded": d.value,
6372
6392
  "aria-controls": m,
6373
6393
  "aria-disabled": O.disabled ? "true" : "false",
6374
6394
  onClick: C,
@@ -6396,7 +6416,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6396
6416
  }, null, 8, ["items"])) : Q("", !0)
6397
6417
  ])
6398
6418
  ], 8, jl), [
6399
- [Se, u.value]
6419
+ [Se, d.value]
6400
6420
  ])
6401
6421
  ]))
6402
6422
  ], 2));
@@ -6424,9 +6444,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6424
6444
  },
6425
6445
  emits: ["click", "update:modelValue", "open", "close", "select"],
6426
6446
  setup(n, { expose: o, emit: a }) {
6427
- const e = n, t = a, i = qe(dt, null), s = G(null), d = f(() => e.size ?? (i == null ? void 0 : i.value.size) ?? "normal"), r = f(() => e.variant ?? (i == null ? void 0 : i.value.variant)), u = f(() => e.severity ?? (i == null ? void 0 : i.value.severity) ?? "primary"), v = f(() => e.disabled || (i == null ? void 0 : i.value.disabled) === !0), p = f(() => {
6447
+ const e = n, t = a, i = qe(dt, null), s = G(null), u = f(() => e.size ?? (i == null ? void 0 : i.value.size) ?? "normal"), r = f(() => e.variant ?? (i == null ? void 0 : i.value.variant)), d = f(() => e.severity ?? (i == null ? void 0 : i.value.severity) ?? "primary"), v = f(() => e.disabled || (i == null ? void 0 : i.value.disabled) === !0), p = f(() => {
6428
6448
  const l = ["vf-splitbutton"];
6429
- return (v.value || e.loading) && l.push("vf-splitbutton_disabled"), (d.value === "small" || d.value === "large") && l.push(`vf-splitbutton_${d.value}`), l;
6449
+ return (v.value || e.loading) && l.push("vf-splitbutton_disabled"), (u.value === "small" || u.value === "large") && l.push(`vf-splitbutton_${u.value}`), l;
6430
6450
  }), m = (l) => {
6431
6451
  var _;
6432
6452
  if (v.value || e.loading) {
@@ -6459,9 +6479,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6459
6479
  label: l.label,
6460
6480
  icon: l.icon,
6461
6481
  type: l.type,
6462
- size: d.value,
6482
+ size: u.value,
6463
6483
  variant: r.value,
6464
- severity: u.value,
6484
+ severity: d.value,
6465
6485
  loading: l.loading,
6466
6486
  disabled: v.value,
6467
6487
  onClick: m
@@ -6476,9 +6496,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6476
6496
  label: l.label,
6477
6497
  icon: l.icon,
6478
6498
  type: l.type,
6479
- size: d.value,
6499
+ size: u.value,
6480
6500
  variant: r.value,
6481
- severity: u.value,
6501
+ severity: d.value,
6482
6502
  loading: l.loading,
6483
6503
  disabled: v.value,
6484
6504
  onClick: m
@@ -6504,9 +6524,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6504
6524
  Ge(Ze, {
6505
6525
  class: "vf-splitbutton__toggle",
6506
6526
  icon: "chevronDown",
6507
- size: d.value,
6527
+ size: u.value,
6508
6528
  variant: r.value,
6509
- severity: u.value,
6529
+ severity: d.value,
6510
6530
  disabled: v.value || l.loading,
6511
6531
  "aria-label": l.toggleAriaLabel
6512
6532
  }, null, 8, ["size", "variant", "severity", "disabled", "aria-label"])
@@ -6538,7 +6558,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6538
6558
  setup(n, { expose: o, emit: a }) {
6539
6559
  const e = a, t = n;
6540
6560
  let i = 0;
6541
- const s = G(null), d = G(null), r = G(!1), u = G({}), v = `vf-context-menu-panel-${++i}`, p = G({ x: 0, y: 0 }), m = f(() => t.modelValue !== void 0), $ = () => {
6561
+ const s = G(null), u = G(null), r = G(!1), d = G({}), v = `vf-context-menu-panel-${++i}`, p = G({ x: 0, y: 0 }), m = f(() => t.modelValue !== void 0), $ = () => {
6542
6562
  if (!s.value)
6543
6563
  return { x: 0, y: 0 };
6544
6564
  const I = s.value.getBoundingClientRect();
@@ -6549,11 +6569,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6549
6569
  }, l = (I) => {
6550
6570
  t.disabled || (e("update:modelValue", I), m.value || (r.value = I));
6551
6571
  }, _ = () => {
6552
- if (!d.value)
6572
+ if (!u.value)
6553
6573
  return;
6554
- const O = d.value.getBoundingClientRect(), E = window.innerWidth, T = window.innerHeight, D = 8;
6574
+ const O = u.value.getBoundingClientRect(), E = window.innerWidth, T = window.innerHeight, D = 8;
6555
6575
  let M = p.value.x + t.offset, S = p.value.y + t.offset;
6556
- M + O.width > E - D && (M = Math.max(D, E - O.width - D)), S + O.height > T - D && (S = Math.max(D, T - O.height - D)), u.value = {
6576
+ M + O.width > E - D && (M = Math.max(D, E - O.width - D)), S + O.height > T - D && (S = Math.max(D, T - O.height - D)), d.value = {
6557
6577
  left: `${M}px`,
6558
6578
  top: `${S}px`,
6559
6579
  minWidth: "var(--vf-context-menu-min-width)"
@@ -6576,7 +6596,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6576
6596
  if (!r.value || !s.value)
6577
6597
  return;
6578
6598
  const O = I.target;
6579
- s.value.contains(O) || (E = d.value) != null && E.contains(O) || y();
6599
+ s.value.contains(O) || (E = u.value) != null && E.contains(O) || y();
6580
6600
  }, L = (I) => {
6581
6601
  !r.value || !t.closeOnEsc || I.key === "Escape" && (I.preventDefault(), y());
6582
6602
  }, R = () => {
@@ -6609,10 +6629,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6609
6629
  ze(B("div", {
6610
6630
  id: v,
6611
6631
  ref_key: "panel",
6612
- ref: d,
6632
+ ref: u,
6613
6633
  class: "vf-context-menu__panel",
6614
6634
  role: "menu",
6615
- style: ke(u.value),
6635
+ style: ke(d.value),
6616
6636
  onClick: g
6617
6637
  }, [
6618
6638
  q(I.$slots, "menu", {}, () => [
@@ -6663,7 +6683,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6663
6683
  },
6664
6684
  emits: ["update:modelValue", "open", "close", "select", "search"],
6665
6685
  setup(n, { expose: o, emit: a }) {
6666
- const e = n, t = a, i = G(null), s = G(null), d = G(!1), r = G(""), u = G(-1), v = f(() => e.modelValue !== void 0), p = f(() => e.items.map((M, S) => {
6686
+ const e = n, t = a, i = G(null), s = G(null), u = G(!1), r = G(""), d = G(-1), v = f(() => e.modelValue !== void 0), p = f(() => e.items.map((M, S) => {
6667
6687
  const F = M.group ?? "";
6668
6688
  return {
6669
6689
  ...M,
@@ -6689,15 +6709,15 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6689
6709
  await $e(), (M = s.value) == null || M.focus();
6690
6710
  }, k = () => {
6691
6711
  const M = l.value[0];
6692
- u.value = M ? M._index : -1;
6712
+ d.value = M ? M._index : -1;
6693
6713
  }, y = (M) => {
6694
- t("update:modelValue", M), v.value || (d.value = M);
6714
+ t("update:modelValue", M), v.value || (u.value = M);
6695
6715
  }, z = async () => {
6696
6716
  y(!0), r.value = "", k(), await _();
6697
6717
  }, C = () => {
6698
6718
  y(!1);
6699
6719
  }, g = async () => {
6700
- if (d.value) {
6720
+ if (u.value) {
6701
6721
  C();
6702
6722
  return;
6703
6723
  }
@@ -6713,15 +6733,15 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6713
6733
  typeof M.command == "function" && M.command(), t("select", M, S), e.closeOnSelect && C();
6714
6734
  }, R = (M) => {
6715
6735
  if (!l.value.length) {
6716
- u.value = -1;
6736
+ d.value = -1;
6717
6737
  return;
6718
6738
  }
6719
- const S = l.value.findIndex((Z) => Z._index === u.value), H = ((S >= 0 ? S : M > 0 ? -1 : 0) + M + l.value.length) % l.value.length;
6720
- u.value = l.value[H]._index;
6739
+ const S = l.value.findIndex((Z) => Z._index === d.value), H = ((S >= 0 ? S : M > 0 ? -1 : 0) + M + l.value.length) % l.value.length;
6740
+ d.value = l.value[H]._index;
6721
6741
  }, I = (M) => {
6722
- if (u.value < 0)
6742
+ if (d.value < 0)
6723
6743
  return;
6724
- const S = m.value.find((F) => F._index === u.value);
6744
+ const S = m.value.find((F) => F._index === d.value);
6725
6745
  S && L(S, M);
6726
6746
  }, O = (M) => {
6727
6747
  if (M.key === "ArrowDown") {
@@ -6750,10 +6770,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6750
6770
  return ve(
6751
6771
  () => e.modelValue,
6752
6772
  (M) => {
6753
- v.value && (d.value = !!M);
6773
+ v.value && (u.value = !!M);
6754
6774
  },
6755
6775
  { immediate: !0 }
6756
- ), ve(d, async (M) => {
6776
+ ), ve(u, async (M) => {
6757
6777
  if (M) {
6758
6778
  t("open"), r.value = "", k(), await _();
6759
6779
  return;
@@ -6762,7 +6782,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6762
6782
  }), ve(
6763
6783
  () => m.value,
6764
6784
  () => {
6765
- m.value.some((S) => S._index === u.value && !S.disabled) || k();
6785
+ m.value.some((S) => S._index === d.value && !S.disabled) || k();
6766
6786
  },
6767
6787
  { deep: !0 }
6768
6788
  ), Ve(() => {
@@ -6805,12 +6825,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6805
6825
  (c(!0), b(fe, null, he(F.items, (H) => (c(), b("button", {
6806
6826
  key: H._key,
6807
6827
  class: ee(["vf-command-palette__item", {
6808
- "is-active": H._index === u.value,
6828
+ "is-active": H._index === d.value,
6809
6829
  "is-disabled": H.disabled
6810
6830
  }]),
6811
6831
  type: "button",
6812
6832
  role: "option",
6813
- "aria-selected": H._index === u.value,
6833
+ "aria-selected": H._index === d.value,
6814
6834
  disabled: H.disabled,
6815
6835
  onClick: (Z) => L(H, Z)
6816
6836
  }, [
@@ -6824,7 +6844,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6824
6844
  ])
6825
6845
  ], 40, Xl)
6826
6846
  ], 512), [
6827
- [Se, d.value]
6847
+ [Se, u.value]
6828
6848
  ])
6829
6849
  ]));
6830
6850
  }
@@ -6866,7 +6886,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6866
6886
  },
6867
6887
  emits: ["update:modelValue", "update:items", "open", "close", "click", "read", "readAll", "clear"],
6868
6888
  setup(n, { emit: o }) {
6869
- const a = o, e = n, t = G(null), i = G([]), s = f(() => i.value.filter((z) => !z.read).length), d = f(() => s.value > 0), r = (z) => z.map((C) => ({
6889
+ const a = o, e = n, t = G(null), i = G([]), s = f(() => i.value.filter((z) => !z.read).length), u = f(() => s.value > 0), r = (z) => z.map((C) => ({
6870
6890
  ...C,
6871
6891
  read: !!C.read
6872
6892
  }));
@@ -6877,7 +6897,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6877
6897
  },
6878
6898
  { deep: !0, immediate: !0 }
6879
6899
  );
6880
- const u = () => {
6900
+ const d = () => {
6881
6901
  a(
6882
6902
  "update:items",
6883
6903
  i.value.map((z) => ({ ...z }))
@@ -6909,17 +6929,17 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6909
6929
  ...w,
6910
6930
  read: !w.read
6911
6931
  }), g = C.find((w) => w.id === z);
6912
- i.value = C, u(), g && a("read", g, g.read);
6932
+ i.value = C, d(), g && a("read", g, g.read);
6913
6933
  }, k = () => {
6914
- d.value && (i.value = i.value.map((z) => ({
6934
+ u.value && (i.value = i.value.map((z) => ({
6915
6935
  ...z,
6916
6936
  read: !0
6917
- })), u(), a("readAll", i.value));
6937
+ })), d(), a("readAll", i.value));
6918
6938
  }, y = () => {
6919
6939
  if (!i.value.length)
6920
6940
  return;
6921
6941
  const z = i.value.map((C) => ({ ...C }));
6922
- i.value = [], u(), a("clear", z);
6942
+ i.value = [], d(), a("clear", z);
6923
6943
  };
6924
6944
  return (z, C) => (c(), be(Le, { to: "body" }, [
6925
6945
  ze(B("div", sn, [
@@ -6945,7 +6965,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6945
6965
  B("button", {
6946
6966
  type: "button",
6947
6967
  class: "vf-notification-center__action",
6948
- disabled: !d.value,
6968
+ disabled: !u.value,
6949
6969
  onClick: k
6950
6970
  }, j(z.markAllLabel), 9, mn),
6951
6971
  B("button", {
@@ -7026,22 +7046,22 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7026
7046
  },
7027
7047
  emits: ["update:modelValue", "sidebar-toggle", "breakpoint-change"],
7028
7048
  setup(n, { emit: o }) {
7029
- const a = o, e = n, t = Xe(), i = f(() => !!t.footer), s = G(!!e.modelValue), d = G(!1), r = G(!1), u = f(() => ({
7049
+ const a = o, e = n, t = Xe(), i = f(() => !!t.footer), s = G(!!e.modelValue), u = G(!1), r = G(!1), d = f(() => ({
7030
7050
  "--vf-app-shell-sidebar-width-prop": e.sidebarWidth,
7031
7051
  "--vf-app-shell-sidebar-collapsed-width-prop": e.sidebarCollapsedWidth
7032
7052
  })), v = () => {
7033
7053
  if (typeof window > "u")
7034
7054
  return;
7035
7055
  const _ = window.innerWidth < e.mobileBreakpoint;
7036
- _ !== d.value && (d.value = _, a("breakpoint-change", _)), _ || (r.value = !1);
7056
+ _ !== u.value && (u.value = _, a("breakpoint-change", _)), _ || (r.value = !1);
7037
7057
  }, p = () => {
7038
7058
  a("sidebar-toggle", {
7039
- mobile: d.value,
7059
+ mobile: u.value,
7040
7060
  collapsed: s.value,
7041
- open: d.value ? r.value : !s.value
7061
+ open: u.value ? r.value : !s.value
7042
7062
  });
7043
7063
  }, m = () => {
7044
- if (d.value) {
7064
+ if (u.value) {
7045
7065
  r.value = !r.value, p();
7046
7066
  return;
7047
7067
  }
@@ -7060,24 +7080,24 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7060
7080
  typeof window < "u" && (window.removeEventListener("resize", v, !1), window.removeEventListener("keydown", l, !1));
7061
7081
  }), (_, k) => (c(), b("div", {
7062
7082
  class: ee(["vf-app-shell", {
7063
- "vf-app-shell_collapsed": !d.value && s.value,
7064
- "vf-app-shell_mobile": d.value,
7065
- "vf-app-shell_mobile-open": d.value && r.value,
7083
+ "vf-app-shell_collapsed": !u.value && s.value,
7084
+ "vf-app-shell_mobile": u.value,
7085
+ "vf-app-shell_mobile-open": u.value && r.value,
7066
7086
  "vf-app-shell_sticky-header": _.stickyHeader,
7067
7087
  "vf-app-shell_full-height": _.fullHeight
7068
7088
  }]),
7069
- style: ke(u.value)
7089
+ style: ke(d.value)
7070
7090
  }, [
7071
7091
  B("aside", {
7072
7092
  class: "vf-app-shell__sidebar",
7073
- "aria-hidden": d.value && !r.value ? "true" : "false"
7093
+ "aria-hidden": u.value && !r.value ? "true" : "false"
7074
7094
  }, [
7075
7095
  q(_.$slots, "sidebar", {
7076
- mobile: d.value,
7096
+ mobile: u.value,
7077
7097
  collapsed: s.value
7078
7098
  })
7079
7099
  ], 8, Ln),
7080
- d.value && r.value ? (c(), b("button", {
7100
+ u.value && r.value ? (c(), b("button", {
7081
7101
  key: 0,
7082
7102
  type: "button",
7083
7103
  class: "vf-app-shell__overlay",
@@ -7094,7 +7114,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7094
7114
  }, j(_.toggleIcon), 9, Tn)) : Q("", !0),
7095
7115
  B("div", In, [
7096
7116
  q(_.$slots, "header", {
7097
- mobile: d.value,
7117
+ mobile: u.value,
7098
7118
  collapsed: s.value,
7099
7119
  mobileSidebarOpen: r.value,
7100
7120
  toggleSidebar: m
@@ -7109,7 +7129,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7109
7129
  ], 8, Dn),
7110
7130
  i.value ? (c(), b("footer", Mn, [
7111
7131
  q(_.$slots, "footer", {
7112
- mobile: d.value,
7132
+ mobile: u.value,
7113
7133
  collapsed: s.value
7114
7134
  })
7115
7135
  ])) : Q("", !0)
@@ -7137,10 +7157,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7137
7157
  },
7138
7158
  emits: ["update:items", "move", "click"],
7139
7159
  setup(n, { emit: o }) {
7140
- const a = o, e = n, t = G([]), i = G(null), s = G(null), d = f(() => e.columns ?? []), r = (y) => y.map((z) => ({
7160
+ const a = o, e = n, t = G([]), i = G(null), s = G(null), u = f(() => e.columns ?? []), r = (y) => y.map((z) => ({
7141
7161
  ...z,
7142
7162
  tags: z.tags ? [...z.tags] : []
7143
- })), u = (y) => t.value.filter((z) => String(z.columnId) === String(y)), v = (y, z, C) => {
7163
+ })), d = (y) => t.value.filter((z) => String(z.columnId) === String(y)), v = (y, z, C) => {
7144
7164
  const g = [];
7145
7165
  return y.forEach((w, L) => {
7146
7166
  String(w.columnId) === String(z) && g.push(L);
@@ -7187,7 +7207,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7187
7207
  "aria-label": y.ariaLabel || void 0
7188
7208
  }, [
7189
7209
  B("div", Pn, [
7190
- (c(!0), b(fe, null, he(d.value, (C) => (c(), b("section", {
7210
+ (c(!0), b(fe, null, he(u.value, (C) => (c(), b("section", {
7191
7211
  key: String(C.id),
7192
7212
  class: "vf-kanban-board__column",
7193
7213
  "data-column-id": String(C.id)
@@ -7195,10 +7215,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7195
7215
  B("header", On, [
7196
7216
  q(y.$slots, "column-header", {
7197
7217
  column: C,
7198
- items: u(C.id)
7218
+ items: d(C.id)
7199
7219
  }, () => [
7200
7220
  B("h3", An, j(C.title), 1),
7201
- B("span", Hn, j(u(C.id).length), 1)
7221
+ B("span", Hn, j(d(C.id).length), 1)
7202
7222
  ])
7203
7223
  ]),
7204
7224
  B("ul", {
@@ -7207,7 +7227,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7207
7227
  }, ["prevent"])),
7208
7228
  onDrop: ie((g) => k(C.id, g), ["prevent"])
7209
7229
  }, [
7210
- (c(!0), b(fe, null, he(u(C.id), (g, w) => (c(), b("li", {
7230
+ (c(!0), b(fe, null, he(d(C.id), (g, w) => (c(), b("li", {
7211
7231
  key: String(g.id),
7212
7232
  class: ee(["vf-kanban-board__item", {
7213
7233
  "is-dragging": i.value === g.id,
@@ -7244,7 +7264,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7244
7264
  ];
7245
7265
  })
7246
7266
  ], 42, Kn))), 128)),
7247
- u(C.id).length ? Q("", !0) : (c(), b("li", Xn, [
7267
+ d(C.id).length ? Q("", !0) : (c(), b("li", Xn, [
7248
7268
  q(y.$slots, "empty-column", { column: C }, () => [
7249
7269
  me(j(y.emptyColumnText), 1)
7250
7270
  ])
@@ -7253,7 +7273,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7253
7273
  B("footer", Un, [
7254
7274
  q(y.$slots, "column-footer", {
7255
7275
  column: C,
7256
- items: u(C.id)
7276
+ items: d(C.id)
7257
7277
  })
7258
7278
  ])
7259
7279
  ], 8, En))), 128))
@@ -7275,9 +7295,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7275
7295
  setup(n) {
7276
7296
  const o = n;
7277
7297
  let a = 0;
7278
- const e = G(null), t = G(null), i = G(!1), s = G("top"), d = `vf-tooltip-${++a}`;
7298
+ const e = G(null), t = G(null), i = G(!1), s = G("top"), u = `vf-tooltip-${++a}`;
7279
7299
  let r = null;
7280
- const u = () => {
7300
+ const d = () => {
7281
7301
  o.disabled || (i.value = !0);
7282
7302
  }, v = () => {
7283
7303
  i.value = !1;
@@ -7328,17 +7348,17 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7328
7348
  ref_key: "trigger",
7329
7349
  ref: e,
7330
7350
  class: "vf-tooltip__trigger",
7331
- "aria-describedby": d,
7332
- onMouseenter: u,
7351
+ "aria-describedby": u,
7352
+ onMouseenter: d,
7333
7353
  onMouseleave: v,
7334
- onFocus: u,
7354
+ onFocus: d,
7335
7355
  onBlur: v
7336
7356
  }, [
7337
7357
  q($.$slots, "default")
7338
7358
  ], 544),
7339
7359
  (c(), be(Le, { to: "body" }, [
7340
7360
  ze(B("div", {
7341
- id: d,
7361
+ id: u,
7342
7362
  ref_key: "panel",
7343
7363
  ref: t,
7344
7364
  class: "vf-tooltip",
@@ -7391,18 +7411,18 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7391
7411
  },
7392
7412
  emits: ["update:modelValue", "open", "close", "stepChange", "next", "prev", "complete", "skip"],
7393
7413
  setup(n, { emit: o }) {
7394
- const a = o, e = n, t = G(null), i = G(0), s = G("bottom"), d = G({}), r = G(null);
7395
- let u = null;
7414
+ const a = o, e = n, t = G(null), i = G(0), s = G("bottom"), u = G({}), r = G(null);
7415
+ let d = null;
7396
7416
  const v = f(() => e.steps.length), p = f(() => {
7397
7417
  if (v.value)
7398
7418
  return e.steps[i.value];
7399
7419
  }), m = f(() => i.value <= 0), $ = f(() => i.value >= v.value - 1), l = f(() => !!r.value), _ = (D) => v.value ? Math.min(v.value - 1, Math.max(0, D)) : 0, k = (D) => !D || typeof document > "u" ? null : typeof D == "string" ? document.querySelector(D) : D, y = () => {
7400
7420
  if (!r.value) {
7401
- d.value = {};
7421
+ u.value = {};
7402
7422
  return;
7403
7423
  }
7404
7424
  const D = r.value.getBoundingClientRect(), M = e.spotlightPadding;
7405
- d.value = {
7425
+ u.value = {
7406
7426
  top: `${D.top - M}px`,
7407
7427
  left: `${D.left - M}px`,
7408
7428
  width: `${D.width + M * 2}px`,
@@ -7442,15 +7462,15 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7442
7462
  }), W = () => {
7443
7463
  Z();
7444
7464
  };
7445
- document.addEventListener("scroll", W, !0), window.addEventListener("resize", W, !1), u = {
7465
+ document.addEventListener("scroll", W, !0), window.addEventListener("resize", W, !1), d = {
7446
7466
  update: Z,
7447
7467
  destroy: () => {
7448
7468
  x(), document.removeEventListener("scroll", W, !0), window.removeEventListener("resize", W, !1);
7449
7469
  }
7450
- }, u.update();
7470
+ }, d.update();
7451
7471
  }, g = async () => {
7452
7472
  var D;
7453
- u == null || u.destroy(), u = null, r.value = k((D = p.value) == null ? void 0 : D.target), await $e(), C();
7473
+ d == null || d.destroy(), d = null, r.value = k((D = p.value) == null ? void 0 : D.target), await $e(), C();
7454
7474
  }, w = (D) => {
7455
7475
  a("update:modelValue", !1), a("close", D);
7456
7476
  }, L = (D, M) => {
@@ -7474,7 +7494,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7474
7494
  return ve(
7475
7495
  () => e.modelValue,
7476
7496
  async (D) => {
7477
- D ? (i.value = _(e.startIndex), a("open"), a("stepChange", i.value, p.value), await g(), document.addEventListener("keydown", T, !1)) : (u == null || u.destroy(), u = null, d.value = {}, r.value = null, document.removeEventListener("keydown", T, !1));
7497
+ D ? (i.value = _(e.startIndex), a("open"), a("stepChange", i.value, p.value), await g(), document.addEventListener("keydown", T, !1)) : (d == null || d.destroy(), d = null, u.value = {}, r.value = null, document.removeEventListener("keydown", T, !1));
7478
7498
  },
7479
7499
  { immediate: !0 }
7480
7500
  ), ve(
@@ -7484,7 +7504,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7484
7504
  },
7485
7505
  { deep: !0 }
7486
7506
  ), we(() => {
7487
- u == null || u.destroy(), u = null, typeof document < "u" && document.removeEventListener("keydown", T, !1);
7507
+ d == null || d.destroy(), d = null, typeof document < "u" && document.removeEventListener("keydown", T, !1);
7488
7508
  }), (D, M) => {
7489
7509
  var S, F;
7490
7510
  return c(), be(Le, { to: "body" }, [
@@ -7496,7 +7516,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7496
7516
  D.mask && l.value ? (c(), b("div", {
7497
7517
  key: 0,
7498
7518
  class: "vf-tour__spotlight",
7499
- style: ke(d.value)
7519
+ style: ke(u.value)
7500
7520
  }, null, 4)) : Q("", !0),
7501
7521
  B("div", {
7502
7522
  ref_key: "panel",
@@ -7579,8 +7599,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7579
7599
  if (!(i == null || i === ""))
7580
7600
  return typeof i == "number" ? `${i}px` : i;
7581
7601
  }, e = f(() => {
7582
- const i = a(o.width), s = a(o.height), d = {};
7583
- return i && (d.width = i), s && (d.height = s), o.variant === "circle" && (!i && s && (d.width = s), !s && i && (d.height = i)), d;
7602
+ const i = a(o.width), s = a(o.height), u = {};
7603
+ return i && (u.width = i), s && (u.height = s), o.variant === "circle" && (!i && s && (u.width = s), !s && i && (u.height = i)), u;
7584
7604
  }), t = f(() => {
7585
7605
  const i = ["vf-skeleton", `vf-skeleton_${o.variant}`];
7586
7606
  return o.animated && i.push("vf-skeleton_animated"), i;
@@ -7616,7 +7636,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7616
7636
  ariaLabel: { default: "" }
7617
7637
  },
7618
7638
  setup(n) {
7619
- const o = n, a = Xe(), e = ($) => Math.min(100, Math.max(0, $)), t = f(() => o.value === void 0 || o.value === null || Number.isNaN(o.value)), i = f(() => t.value ? 0 : e(Number(o.value))), s = f(() => t.value ? void 0 : i.value), d = f(() => !!a.default), r = f(() => o.label ? o.label : o.showValue && !t.value ? `${Math.round(i.value)}%` : ""), u = f(() => {
7639
+ const o = n, a = Xe(), e = ($) => Math.min(100, Math.max(0, $)), t = f(() => o.value === void 0 || o.value === null || Number.isNaN(o.value)), i = f(() => t.value ? 0 : e(Number(o.value))), s = f(() => t.value ? void 0 : i.value), u = f(() => !!a.default), r = f(() => o.label ? o.label : o.showValue && !t.value ? `${Math.round(i.value)}%` : ""), d = f(() => {
7620
7640
  const $ = ["vf-progress", `vf-progress_${o.variant}`, `vf-progress_size-${o.size}`];
7621
7641
  return t.value && $.push("vf-progress_indeterminate"), $;
7622
7642
  }), v = f(() => {
@@ -7635,7 +7655,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7635
7655
  };
7636
7656
  });
7637
7657
  return ($, l) => (c(), b("div", {
7638
- class: ee(u.value),
7658
+ class: ee(d.value),
7639
7659
  role: "progressbar",
7640
7660
  "aria-label": $.ariaLabel || void 0,
7641
7661
  "aria-valuemin": "0",
@@ -7665,7 +7685,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7665
7685
  }, null, 4)
7666
7686
  ]))
7667
7687
  ])),
7668
- r.value || d.value ? (c(), b("span", cs, [
7688
+ r.value || u.value ? (c(), b("span", cs, [
7669
7689
  q($.$slots, "default", {}, () => [
7670
7690
  me(j(r.value), 1)
7671
7691
  ])
@@ -7719,7 +7739,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7719
7739
  }), i = (s) => {
7720
7740
  e.disabled || a("close", s);
7721
7741
  };
7722
- return (s, d) => (c(), b("span", {
7742
+ return (s, u) => (c(), b("span", {
7723
7743
  class: ee(["vf-chip", t.value]),
7724
7744
  "data-variant": s.variant,
7725
7745
  "data-severity": s.severity,
@@ -7745,7 +7765,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7745
7765
  onClick: i
7746
7766
  }, [
7747
7767
  q(s.$slots, "close", {}, () => [
7748
- d[0] || (d[0] = me("×"))
7768
+ u[0] || (u[0] = me("×"))
7749
7769
  ])
7750
7770
  ], 8, gs)) : Q("", !0)
7751
7771
  ], 10, fs));
@@ -7775,7 +7795,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7775
7795
  const a = o, e = n, t = f(() => e.multiple ? Array.isArray(e.modelValue) ? e.modelValue : [] : e.modelValue === null || Array.isArray(e.modelValue) || e.modelValue === void 0 ? [] : [e.modelValue]), i = f(() => t.value.length > 0), s = f(() => {
7776
7796
  const v = ["vf-filter-chips", `vf-filter-chips_${e.variant}`];
7777
7797
  return e.wrap || v.push("vf-filter-chips_nowrap"), e.size !== "normal" && v.push(`vf-filter-chips_${e.size}`), e.disabled && v.push("vf-filter-chips_disabled"), v;
7778
- }), d = (v) => t.value.includes(v), r = (v, p) => {
7798
+ }), u = (v) => t.value.includes(v), r = (v, p) => {
7779
7799
  if (e.disabled)
7780
7800
  return;
7781
7801
  const m = e.options.find(($) => $.value === v);
@@ -7787,7 +7807,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7787
7807
  a("update:modelValue", l), a("change", l, p);
7788
7808
  return;
7789
7809
  }
7790
- if (d(v)) {
7810
+ if (u(v)) {
7791
7811
  if (!e.allowEmpty)
7792
7812
  return;
7793
7813
  a("update:modelValue", null), a("change", null, p);
@@ -7795,7 +7815,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7795
7815
  }
7796
7816
  a("update:modelValue", v), a("change", v, p);
7797
7817
  }
7798
- }, u = (v) => {
7818
+ }, d = (v) => {
7799
7819
  if (e.disabled)
7800
7820
  return;
7801
7821
  const p = e.multiple ? [] : null;
@@ -7809,7 +7829,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7809
7829
  }, [
7810
7830
  (c(!0), b(fe, null, he(v.options, (m) => (c(), b("button", {
7811
7831
  key: String(m.value),
7812
- class: ee(["vf-filter-chips__chip", { "is-active": d(m.value) }]),
7832
+ class: ee(["vf-filter-chips__chip", { "is-active": u(m.value) }]),
7813
7833
  type: "button",
7814
7834
  disabled: v.disabled || m.disabled,
7815
7835
  "data-value": String(m.value),
@@ -7824,7 +7844,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7824
7844
  type: "button",
7825
7845
  disabled: v.disabled,
7826
7846
  "aria-label": v.clearLabel || "Clear filters",
7827
- onClick: u
7847
+ onClick: d
7828
7848
  }, j(v.clearText), 9, ks)) : Q("", !0)
7829
7849
  ], 10, bs));
7830
7850
  }
@@ -7842,8 +7862,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7842
7862
  status: { default: void 0 }
7843
7863
  },
7844
7864
  setup(n) {
7845
- const o = n, a = G(!1), e = (u) => {
7846
- const v = u.trim();
7865
+ const o = n, a = G(!1), e = (d) => {
7866
+ const v = d.trim();
7847
7867
  if (!v)
7848
7868
  return "";
7849
7869
  const p = v.split(/\s+/).filter(Boolean);
@@ -7853,7 +7873,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7853
7873
  return o.alt;
7854
7874
  if (o.name)
7855
7875
  return o.name;
7856
- }), d = f(() => [`vf-avatar_size-${o.size}`, `vf-avatar_shape-${o.shape}`]), r = () => {
7876
+ }), u = f(() => [`vf-avatar_size-${o.size}`, `vf-avatar_shape-${o.shape}`]), r = () => {
7857
7877
  a.value = !0;
7858
7878
  };
7859
7879
  return ve(
@@ -7861,27 +7881,27 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7861
7881
  () => {
7862
7882
  a.value = !1;
7863
7883
  }
7864
- ), (u, v) => (c(), b("div", {
7865
- class: ee(["vf-avatar", d.value]),
7866
- "data-status": u.status || void 0,
7884
+ ), (d, v) => (c(), b("div", {
7885
+ class: ee(["vf-avatar", u.value]),
7886
+ "data-status": d.status || void 0,
7867
7887
  role: "img",
7868
7888
  "aria-label": s.value
7869
7889
  }, [
7870
7890
  B("div", ws, [
7871
- q(u.$slots, "default", {}, () => [
7891
+ q(d.$slots, "default", {}, () => [
7872
7892
  i.value ? (c(), b("img", {
7873
7893
  key: 0,
7874
7894
  class: "vf-avatar__image",
7875
- src: u.src,
7876
- alt: u.alt || u.name || "",
7895
+ src: d.src,
7896
+ alt: d.alt || d.name || "",
7877
7897
  onError: r
7878
7898
  }, null, 40, $s)) : (c(), b("span", zs, j(t.value), 1))
7879
7899
  ])
7880
7900
  ]),
7881
- u.status ? (c(), b("span", {
7901
+ d.status ? (c(), b("span", {
7882
7902
  key: 0,
7883
7903
  class: "vf-avatar__status",
7884
- "data-status": u.status,
7904
+ "data-status": d.status,
7885
7905
  "aria-hidden": "true"
7886
7906
  }, null, 8, Ss)) : Q("", !0)
7887
7907
  ], 10, Cs));
@@ -7901,13 +7921,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7901
7921
  },
7902
7922
  setup(n) {
7903
7923
  const o = n, a = Xe(), e = f(() => !!a.default), t = f(() => o.label || ""), i = f(() => ["vf-spinner", `vf-spinner_${o.variant}`, `vf-spinner_size-${o.size}`]);
7904
- return (s, d) => (c(), b("div", {
7924
+ return (s, u) => (c(), b("div", {
7905
7925
  class: ee(i.value),
7906
7926
  role: "status",
7907
7927
  "aria-label": s.ariaLabel || void 0,
7908
7928
  "data-severity": s.severity
7909
7929
  }, [
7910
- d[0] || (d[0] = B("span", {
7930
+ u[0] || (u[0] = B("span", {
7911
7931
  class: "vf-spinner__icon",
7912
7932
  "aria-hidden": "true"
7913
7933
  }, null, -1)),
@@ -7985,7 +8005,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7985
8005
  "bulkAction"
7986
8006
  ],
7987
8007
  setup(n, { expose: o, emit: a }) {
7988
- const e = n, t = a, i = G(e.sortField ?? null), s = G(e.sortOrder ?? null), d = G(Math.max(1, e.page ?? 1)), r = G(Math.max(1, e.pageSize ?? 10)), u = G({ ...e.filters ?? {} }), v = G(e.selection ?? null);
8008
+ const e = n, t = a, i = G(e.sortField ?? null), s = G(e.sortOrder ?? null), u = G(Math.max(1, e.page ?? 1)), r = G(Math.max(1, e.pageSize ?? 10)), d = G({ ...e.filters ?? {} }), v = G(e.selection ?? null);
7989
8009
  ve(
7990
8010
  () => e.sortField,
7991
8011
  (N) => {
@@ -7999,7 +8019,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7999
8019
  ), ve(
8000
8020
  () => e.page,
8001
8021
  (N) => {
8002
- d.value = Math.max(1, N ?? 1);
8022
+ u.value = Math.max(1, N ?? 1);
8003
8023
  }
8004
8024
  ), ve(
8005
8025
  () => e.pageSize,
@@ -8009,7 +8029,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8009
8029
  ), ve(
8010
8030
  () => e.filters,
8011
8031
  (N) => {
8012
- u.value = { ...N ?? {} };
8032
+ d.value = { ...N ?? {} };
8013
8033
  },
8014
8034
  { deep: !0 }
8015
8035
  ), ve(
@@ -8019,7 +8039,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8019
8039
  },
8020
8040
  { deep: !0 }
8021
8041
  );
8022
- const p = f(() => i.value), m = f(() => s.value), $ = f(() => d.value), l = f(() => r.value), _ = f(() => u.value), k = f(() => e.selectionMode === "single" || e.selectionMode === "multiple"), y = f(() => Math.max(1, e.columns.length + (k.value ? 1 : 0))), z = f(() => e.selectionMode === "single" ? v.value == null ? [] : [v.value] : e.selectionMode === "multiple" ? Array.isArray(v.value) ? v.value : [] : []), C = f(() => {
8042
+ const p = f(() => i.value), m = f(() => s.value), $ = f(() => u.value), l = f(() => r.value), _ = f(() => d.value), k = f(() => e.selectionMode === "single" || e.selectionMode === "multiple"), y = f(() => Math.max(1, e.columns.length + (k.value ? 1 : 0))), z = f(() => e.selectionMode === "single" ? v.value == null ? [] : [v.value] : e.selectionMode === "multiple" ? Array.isArray(v.value) ? v.value : [] : []), C = f(() => {
8023
8043
  const N = new Set(z.value);
8024
8044
  return (e.rows ?? []).filter((oe, le) => {
8025
8045
  const ge = T(oe, le);
@@ -8122,12 +8142,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8122
8142
  t("rowClick", N, oe, le);
8123
8143
  }, U = (N) => {
8124
8144
  const oe = Math.max(1, Number(N) || 1);
8125
- d.value = oe, t("update:page", oe), t("page", oe), e.server && t("request", O());
8145
+ u.value = oe, t("update:page", oe), t("page", oe), e.server && t("request", O());
8126
8146
  }, X = (N) => {
8127
8147
  const oe = Math.max(1, Number(N) || 1);
8128
8148
  r.value = oe, t("update:pageSize", oe), t("page", $.value), e.server && t("request", O());
8129
8149
  }, re = (N) => {
8130
- u.value = { ...N ?? {} }, t("update:filters", { ...u.value }), t("filter", { ...u.value }), e.server && t("request", O());
8150
+ d.value = { ...N ?? {} }, t("update:filters", { ...d.value }), t("filter", { ...d.value }), e.server && t("request", O());
8131
8151
  }, de = () => {
8132
8152
  re({});
8133
8153
  }, ye = () => {
@@ -8308,11 +8328,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8308
8328
  },
8309
8329
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
8310
8330
  setup(n, { emit: o }) {
8311
- const a = o, e = n, t = f(() => e.range || Array.isArray(e.modelValue)), i = f(() => Number.isFinite(e.min) ? e.min : 0), s = f(() => Number.isFinite(e.max) ? e.max : 100), d = f(() => e.step && e.step > 0 ? e.step : 1), r = (x) => {
8331
+ const a = o, e = n, t = f(() => e.range || Array.isArray(e.modelValue)), i = f(() => Number.isFinite(e.min) ? e.min : 0), s = f(() => Number.isFinite(e.max) ? e.max : 100), u = f(() => e.step && e.step > 0 ? e.step : 1), r = (x) => {
8312
8332
  const W = x.toString();
8313
8333
  return W.includes(".") ? W.split(".")[1].length : 0;
8314
- }, u = (x) => Math.min(s.value, Math.max(i.value, x)), v = (x) => {
8315
- const W = Number(x), h = i.value, P = Number.isFinite(W) ? W : h, K = u(P), A = d.value, V = r(A), Y = Math.round((K - i.value) / A) * A + i.value;
8334
+ }, d = (x) => Math.min(s.value, Math.max(i.value, x)), v = (x) => {
8335
+ const W = Number(x), h = i.value, P = Number.isFinite(W) ? W : h, K = d(P), A = u.value, V = r(A), Y = Math.round((K - i.value) / A) * A + i.value;
8316
8336
  return Number.parseFloat(Y.toFixed(V));
8317
8337
  }, p = f(() => {
8318
8338
  if (!t.value) {
@@ -8368,7 +8388,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8368
8388
  }, E = (x) => {
8369
8389
  const W = x.target;
8370
8390
  L(W.value, "end", x, "change");
8371
- }, T = (x) => a("focus", x), D = (x) => a("blur", x), M = f(() => e.marks ?? []), S = (x) => ({ left: `${l(u(x))}%` }), F = f(() => t.value ? `${p.value[0]} - ${p.value[1]}` : `${m.value}`), H = f(() => t.value ? e.ariaLabelStart : e.ariaLabel), Z = f(() => t.value ? e.ariaLabelEnd : e.ariaLabel);
8391
+ }, T = (x) => a("focus", x), D = (x) => a("blur", x), M = f(() => e.marks ?? []), S = (x) => ({ left: `${l(d(x))}%` }), F = f(() => t.value ? `${p.value[0]} - ${p.value[1]}` : `${m.value}`), H = f(() => t.value ? e.ariaLabelStart : e.ariaLabel), Z = f(() => t.value ? e.ariaLabelEnd : e.ariaLabel);
8372
8392
  return (x, W) => (c(), b("div", {
8373
8393
  class: ee(z.value),
8374
8394
  style: ke(y.value)
@@ -8382,7 +8402,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8382
8402
  type: "range",
8383
8403
  min: i.value,
8384
8404
  max: s.value,
8385
- step: d.value,
8405
+ step: u.value,
8386
8406
  value: m.value,
8387
8407
  disabled: x.disabled,
8388
8408
  "aria-label": H.value,
@@ -8398,7 +8418,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8398
8418
  type: "range",
8399
8419
  min: i.value,
8400
8420
  max: s.value,
8401
- step: d.value,
8421
+ step: u.value,
8402
8422
  value: $.value,
8403
8423
  disabled: x.disabled,
8404
8424
  "aria-label": Z.value,
@@ -8434,7 +8454,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8434
8454
  setup(n, { emit: o }) {
8435
8455
  const a = n, e = o;
8436
8456
  let t = 0;
8437
- const i = G(null), s = G([]), d = G([]), r = G(null), u = (x) => typeof x == "number" ? `${x}px` : x, v = (x) => typeof x == "number" && Number.isFinite(x) && x > 0, p = (x, W, h) => Math.min(h, Math.max(W, x)), m = (x, W = 4) => {
8457
+ const i = G(null), s = G([]), u = G([]), r = G(null), d = (x) => typeof x == "number" ? `${x}px` : x, v = (x) => typeof x == "number" && Number.isFinite(x) && x > 0, p = (x, W, h) => Math.min(h, Math.max(W, x)), m = (x, W = 4) => {
8438
8458
  const h = 10 ** W;
8439
8459
  return Math.round(x * h) / h;
8440
8460
  }, $ = (x) => {
@@ -8501,15 +8521,15 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8501
8521
  return v(h) ? h : v(x.minSize) ? x.minSize : 5;
8502
8522
  }), y = () => {
8503
8523
  const x = s.value.length, W = _(x), h = l(W, k());
8504
- d.value = h;
8524
+ u.value = h;
8505
8525
  }, z = f(() => {
8506
8526
  const x = ["vf-splitter", `vf-splitter_${a.direction}`];
8507
8527
  return a.disabled && x.push("vf-splitter_disabled"), x;
8508
- }), C = f(() => Math.max(0, s.value.length - 1)), g = f(() => a.direction === "horizontal" ? "vertical" : "horizontal"), w = f(() => u(a.gutterSize)), L = (x) => {
8528
+ }), C = f(() => Math.max(0, s.value.length - 1)), g = f(() => a.direction === "horizontal" ? "vertical" : "horizontal"), w = f(() => d(a.gutterSize)), L = (x) => {
8509
8529
  const W = s.value.findIndex((K) => K.id === x);
8510
8530
  if (W < 0)
8511
8531
  return;
8512
- const h = `${d.value[W] ?? 0}%`, P = `${k()[W] ?? 0}%`;
8532
+ const h = `${u.value[W] ?? 0}%`, P = `${k()[W] ?? 0}%`;
8513
8533
  return a.direction === "vertical" ? {
8514
8534
  flex: `0 0 ${h}`,
8515
8535
  minHeight: P
@@ -8517,7 +8537,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8517
8537
  flex: `0 0 ${h}`,
8518
8538
  minWidth: P
8519
8539
  };
8520
- }, R = (x) => d.value.slice(0, x + 1).reduce((W, h) => W + h, 0), I = (x) => {
8540
+ }, R = (x) => u.value.slice(0, x + 1).reduce((W, h) => W + h, 0), I = (x) => {
8521
8541
  const W = R(x);
8522
8542
  return a.direction === "vertical" ? {
8523
8543
  top: `calc(${W}% - (${w.value} / 2))`,
@@ -8531,13 +8551,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8531
8551
  width: w.value
8532
8552
  };
8533
8553
  }, O = (x, W, h = !0) => {
8534
- const P = [...d.value];
8554
+ const P = [...u.value];
8535
8555
  if (!P[x] || !P[x + 1])
8536
8556
  return;
8537
8557
  const K = k(), A = P[x] + P[x + 1], V = K[x] ?? 0, Y = K[x + 1] ?? 0, ae = p(P[x] + W, V, A - Y), se = A - ae;
8538
8558
  P[x] = m(ae), P[x + 1] = m(se);
8539
8559
  const U = l($(P), K);
8540
- d.value = U, h && e("update:modelValue", [...U]);
8560
+ u.value = U, h && e("update:modelValue", [...U]);
8541
8561
  };
8542
8562
  let E = 0, T = [0, 0];
8543
8563
  const D = (x) => {
@@ -8546,28 +8566,28 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8546
8566
  const W = i.value.getBoundingClientRect(), h = a.direction === "vertical" ? W.height : W.width;
8547
8567
  if (h <= 0)
8548
8568
  return;
8549
- const K = ((a.direction === "vertical" ? x.clientY : x.clientX) - E) / h * 100, V = T[0] + K - (d.value[r.value] ?? 0);
8569
+ const K = ((a.direction === "vertical" ? x.clientY : x.clientX) - E) / h * 100, V = T[0] + K - (u.value[r.value] ?? 0);
8550
8570
  O(r.value, V, !0);
8551
8571
  }, M = () => {
8552
- r.value !== null && (r.value = null, window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", M), e("change", [...d.value]));
8572
+ r.value !== null && (r.value = null, window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", M), e("change", [...u.value]));
8553
8573
  }, S = (x, W) => {
8554
- a.disabled || !i.value || (r.value = W, E = a.direction === "vertical" ? x.clientY : x.clientX, T = [d.value[W] ?? 0, d.value[W + 1] ?? 0], window.addEventListener("mousemove", D), window.addEventListener("mouseup", M));
8574
+ a.disabled || !i.value || (r.value = W, E = a.direction === "vertical" ? x.clientY : x.clientX, T = [u.value[W] ?? 0, u.value[W + 1] ?? 0], window.addEventListener("mousemove", D), window.addEventListener("mouseup", M));
8555
8575
  }, F = (x, W) => {
8556
8576
  if (a.disabled)
8557
8577
  return;
8558
8578
  const h = a.direction === "horizontal", P = h ? "ArrowLeft" : "ArrowUp", K = h ? "ArrowRight" : "ArrowDown";
8559
8579
  if ([P, K, "Home", "End"].includes(x.key)) {
8560
8580
  if (x.preventDefault(), x.key === "Home") {
8561
- const A = k(), V = d.value[W] ?? 0, Y = A[W] ?? 0;
8581
+ const A = k(), V = u.value[W] ?? 0, Y = A[W] ?? 0;
8562
8582
  O(W, Y - V);
8563
8583
  } else if (x.key === "End") {
8564
- const A = k(), V = (d.value[W] ?? 0) + (d.value[W + 1] ?? 0), Y = d.value[W] ?? 0, ae = V - (A[W + 1] ?? 0);
8584
+ const A = k(), V = (u.value[W] ?? 0) + (u.value[W + 1] ?? 0), Y = u.value[W] ?? 0, ae = V - (A[W + 1] ?? 0);
8565
8585
  O(W, ae - Y);
8566
8586
  } else {
8567
8587
  const A = x.shiftKey ? 5 : 2, V = x.key === K ? A : -A;
8568
8588
  O(W, V);
8569
8589
  }
8570
- e("change", [...d.value]);
8590
+ e("change", [...u.value]);
8571
8591
  }
8572
8592
  }, H = (x) => {
8573
8593
  const W = `vf-splitter-panel-${++t}`;
@@ -8588,13 +8608,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8588
8608
  }), ve(
8589
8609
  () => a.modelValue,
8590
8610
  () => {
8591
- r.value === null && a.modelValue.length === s.value.length && a.modelValue.every(v) && (d.value = l($(a.modelValue), k()));
8611
+ r.value === null && a.modelValue.length === s.value.length && a.modelValue.every(v) && (u.value = l($(a.modelValue), k()));
8592
8612
  },
8593
8613
  { deep: !0 }
8594
8614
  ), ve(
8595
8615
  () => a.minSizes,
8596
8616
  () => {
8597
- d.value = l($(d.value), k());
8617
+ u.value = l($(u.value), k());
8598
8618
  },
8599
8619
  { deep: !0 }
8600
8620
  ), we(() => {
@@ -8611,7 +8631,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8611
8631
  style: ke(I(P)),
8612
8632
  role: "separator",
8613
8633
  "aria-orientation": g.value,
8614
- "aria-valuenow": Math.round(d.value[P] ?? 0),
8634
+ "aria-valuenow": Math.round(u.value[P] ?? 0),
8615
8635
  tabindex: "0",
8616
8636
  onMousedown: ie((K) => S(K, P), ["prevent"]),
8617
8637
  onKeydown: (K) => F(K, P)
@@ -8642,7 +8662,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8642
8662
  a.direction.value === "vertical" ? "vf-splitter__panel_vertical" : "",
8643
8663
  a.disabled.value ? "vf-splitter__panel_disabled" : ""
8644
8664
  ]), i = f(() => a.getPanelStyle(e));
8645
- return (s, d) => (c(), b("div", {
8665
+ return (s, u) => (c(), b("div", {
8646
8666
  class: ee(t.value),
8647
8667
  style: ke(i.value)
8648
8668
  }, [
@@ -8678,11 +8698,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8678
8698
  return 0;
8679
8699
  const g = t.value.findIndex((w, L) => i(w, L) === e.modelValue);
8680
8700
  return g >= 0 ? g : 0;
8681
- }), d = f(() => {
8701
+ }), u = f(() => {
8682
8702
  const g = ["vf-stepper", `vf-stepper_${e.orientation}`, `vf-stepper_size-${e.size}`];
8683
8703
  return e.clickable && g.push("vf-stepper_clickable"), g;
8684
- }), r = (g, w) => g.status ? g.status : w < s.value ? "completed" : w === s.value ? "active" : "upcoming", u = (g) => r(t.value[g], g) === "active", v = (g) => r(t.value[g], g) === "completed", p = (g) => r(t.value[g], g) === "upcoming", m = (g, w) => r(g, w) === "error", $ = (g) => !!g.disabled, l = (g, w) => ({
8685
- "is-active": u(w),
8704
+ }), r = (g, w) => g.status ? g.status : w < s.value ? "completed" : w === s.value ? "active" : "upcoming", d = (g) => r(t.value[g], g) === "active", v = (g) => r(t.value[g], g) === "completed", p = (g) => r(t.value[g], g) === "upcoming", m = (g, w) => r(g, w) === "error", $ = (g) => !!g.disabled, l = (g, w) => ({
8705
+ "is-active": d(w),
8686
8706
  "is-completed": v(w),
8687
8707
  "is-upcoming": p(w),
8688
8708
  "is-error": m(g, w),
@@ -8694,7 +8714,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8694
8714
  a("update:modelValue", R), a("change", R, g, w, L);
8695
8715
  }, C = (g, w) => `${g.value ?? g.label ?? "step"}_${w.toString()}`;
8696
8716
  return (g, w) => (c(), b("nav", {
8697
- class: ee(d.value),
8717
+ class: ee(u.value),
8698
8718
  "aria-label": g.ariaLabel || void 0,
8699
8719
  "aria-labelledby": g.ariaLabelledby || void 0
8700
8720
  }, [
@@ -8707,7 +8727,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8707
8727
  class: "vf-stepper__button",
8708
8728
  type: k(L),
8709
8729
  disabled: y(L),
8710
- "aria-current": u(R) ? "step" : void 0,
8730
+ "aria-current": d(R) ? "step" : void 0,
8711
8731
  "aria-disabled": $(L) ? "true" : void 0,
8712
8732
  onClick: (I) => z(L, R, I)
8713
8733
  }, {
@@ -8718,7 +8738,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8718
8738
  step: L,
8719
8739
  index: R,
8720
8740
  status: r(L, R),
8721
- active: u(R),
8741
+ active: d(R),
8722
8742
  completed: v(R),
8723
8743
  upcoming: p(R),
8724
8744
  error: m(L, R)
@@ -8733,7 +8753,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8733
8753
  step: L,
8734
8754
  index: R,
8735
8755
  status: r(L, R),
8736
- active: u(R),
8756
+ active: d(R),
8737
8757
  completed: v(R),
8738
8758
  upcoming: p(R),
8739
8759
  error: m(L, R)
@@ -8780,18 +8800,18 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8780
8800
  setup(n, { emit: o }) {
8781
8801
  const a = o, e = n;
8782
8802
  let t = 0;
8783
- const i = ++t, s = G(void 0), d = G({}), r = f(() => e.steps ?? []), u = f(() => s.value === void 0 ? -1 : r.value.findIndex((S) => S.value === s.value)), v = f(() => {
8784
- if (!(u.value < 0))
8785
- return r.value[u.value];
8786
- }), p = f(() => u.value <= 0), m = f(() => u.value >= r.value.length - 1), $ = f(() => {
8803
+ const i = ++t, s = G(void 0), u = G({}), r = f(() => e.steps ?? []), d = f(() => s.value === void 0 ? -1 : r.value.findIndex((S) => S.value === s.value)), v = f(() => {
8804
+ if (!(d.value < 0))
8805
+ return r.value[d.value];
8806
+ }), p = f(() => d.value <= 0), m = f(() => d.value >= r.value.length - 1), $ = f(() => {
8787
8807
  const S = ["vf-wizard"];
8788
8808
  return e.disabled && S.push("vf-wizard_disabled"), S;
8789
- }), l = (S) => String(S).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), _ = (S) => `vf-wizard-step-${i}-${l(S)}`, k = (S) => `vf-wizard-panel-${i}-${l(S)}`, y = (S) => s.value === S, z = (S) => S < u.value, C = (S) => d.value[String(S)], g = (S, F) => ({
8809
+ }), l = (S) => String(S).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), _ = (S) => `vf-wizard-step-${i}-${l(S)}`, k = (S) => `vf-wizard-panel-${i}-${l(S)}`, y = (S) => s.value === S, z = (S) => S < d.value, C = (S) => u.value[String(S)], g = (S, F) => ({
8790
8810
  "is-active": y(S.value),
8791
8811
  "is-completed": z(F),
8792
8812
  "is-error": !!C(S.value),
8793
8813
  "is-disabled": w(S, F)
8794
- }), w = (S, F) => e.disabled || S.disabled ? !0 : !e.linear || u.value < 0 ? !1 : F > u.value + 1, L = () => {
8814
+ }), w = (S, F) => e.disabled || S.disabled ? !0 : !e.linear || d.value < 0 ? !1 : F > d.value + 1, L = () => {
8795
8815
  var S;
8796
8816
  if (r.value.length) {
8797
8817
  if (e.modelValue !== void 0) {
@@ -8802,34 +8822,34 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8802
8822
  return ((S = r.value.find((F) => !F.disabled)) == null ? void 0 : S.value) ?? r.value[0].value;
8803
8823
  }
8804
8824
  }, R = (S, F) => {
8805
- s.value = S, a("update:modelValue", S), a("change", S, v.value, u.value), a(F, S, v.value, u.value);
8825
+ s.value = S, a("update:modelValue", S), a("change", S, v.value, d.value), a(F, S, v.value, d.value);
8806
8826
  }, I = async (S) => {
8807
8827
  const F = r.value[S];
8808
8828
  if (!F)
8809
8829
  return !0;
8810
8830
  const H = F.value, Z = F.validate ? await F.validate(H, S) : !0, x = e.validateStep ? await e.validateStep(F, S, H) : !0, W = (V) => V == null || V === !0 ? "" : V === !1 ? "Step is invalid" : String(V), h = W(Z), P = W(x), K = h || P;
8811
8831
  if (K)
8812
- return d.value = {
8813
- ...d.value,
8832
+ return u.value = {
8833
+ ...u.value,
8814
8834
  [String(H)]: K
8815
8835
  }, a("invalidStep", K, F, S), !1;
8816
- const A = { ...d.value };
8817
- return delete A[String(H)], d.value = A, !0;
8836
+ const A = { ...u.value };
8837
+ return delete A[String(H)], u.value = A, !0;
8818
8838
  }, O = async (S, F) => {
8819
8839
  const H = r.value[S];
8820
- !H || w(H, S) || u.value >= 0 && S > u.value && !await I(u.value) || R(H.value, F);
8840
+ !H || w(H, S) || d.value >= 0 && S > d.value && !await I(d.value) || R(H.value, F);
8821
8841
  }, E = async () => {
8822
- u.value <= 0 || await O(u.value - 1, "prev");
8842
+ d.value <= 0 || await O(d.value - 1, "prev");
8823
8843
  }, T = async () => {
8824
- u.value < 0 || !await I(u.value) || a("complete", s.value, v.value, u.value);
8844
+ d.value < 0 || !await I(d.value) || a("complete", s.value, v.value, d.value);
8825
8845
  }, D = async () => {
8826
8846
  if (m.value) {
8827
8847
  await T();
8828
8848
  return;
8829
8849
  }
8830
- await O(u.value + 1, "next");
8850
+ await O(d.value + 1, "next");
8831
8851
  }, M = async (S) => {
8832
- e.disabled || S === u.value || await O(S, S > u.value ? "next" : "prev");
8852
+ e.disabled || S === d.value || await O(S, S > d.value ? "next" : "prev");
8833
8853
  };
8834
8854
  return ve(
8835
8855
  () => e.steps,
@@ -8891,7 +8911,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8891
8911
  B("div", _i, [
8892
8912
  q(S.$slots, "actions", {
8893
8913
  step: v.value,
8894
- index: u.value,
8914
+ index: d.value,
8895
8915
  isFirst: p.value,
8896
8916
  isLast: m.value,
8897
8917
  next: D,
@@ -8923,7 +8943,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8923
8943
  if (!a)
8924
8944
  throw new Error("WizardStep must be used inside Wizard");
8925
8945
  const e = f(() => a.isActive(o.value)), t = f(() => a.getPanelId(o.value)), i = f(() => a.getStepId(o.value));
8926
- return (s, d) => ze((c(), b("section", {
8946
+ return (s, u) => ze((c(), b("section", {
8927
8947
  id: t.value,
8928
8948
  class: "vf-wizard-step",
8929
8949
  role: "tabpanel",
@@ -8969,20 +8989,20 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8969
8989
  "aria-labelledby": i.ariaLabelledby || void 0
8970
8990
  }, [
8971
8991
  B("ol", $i, [
8972
- (c(!0), b(fe, null, he(a.value, (d, r) => (c(), b("li", {
8973
- key: t(d, r),
8992
+ (c(!0), b(fe, null, he(a.value, (u, r) => (c(), b("li", {
8993
+ key: t(u, r),
8974
8994
  class: "vf-timeline__item",
8975
- "data-status": d.status ?? "neutral"
8995
+ "data-status": u.status ?? "neutral"
8976
8996
  }, [
8977
8997
  B("div", Si, [
8978
8998
  B("span", Bi, [
8979
8999
  q(i.$slots, "marker", {
8980
- item: d,
9000
+ item: u,
8981
9001
  index: r
8982
9002
  }, () => [
8983
- d.icon ? (c(), be(We(Ne), {
9003
+ u.icon ? (c(), be(We(Ne), {
8984
9004
  key: 0,
8985
- icon: d.icon
9005
+ icon: u.icon
8986
9006
  }, null, 8, ["icon"])) : (c(), b("span", xi))
8987
9007
  ])
8988
9008
  ]),
@@ -8990,12 +9010,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8990
9010
  ]),
8991
9011
  B("div", Vi, [
8992
9012
  q(i.$slots, "item", {
8993
- item: d,
9013
+ item: u,
8994
9014
  index: r
8995
9015
  }, () => [
8996
- d.date ? (c(), b("time", Fi, j(d.date), 1)) : Q("", !0),
8997
- d.title ? (c(), b("h4", Ti, j(d.title), 1)) : Q("", !0),
8998
- d.description ? (c(), b("p", Ii, j(d.description), 1)) : Q("", !0)
9016
+ u.date ? (c(), b("time", Fi, j(u.date), 1)) : Q("", !0),
9017
+ u.title ? (c(), b("h4", Ti, j(u.title), 1)) : Q("", !0),
9018
+ u.description ? (c(), b("p", Ii, j(u.description), 1)) : Q("", !0)
8999
9019
  ])
9000
9020
  ])
9001
9021
  ], 8, zi))), 128))
@@ -9015,7 +9035,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9015
9035
  },
9016
9036
  emits: ["update:modelValue", "change", "focus", "blur"],
9017
9037
  setup(n, { emit: o }) {
9018
- const a = o, e = n, t = G(null), i = G(null), s = G([]), d = f(() => e.allowHalf ? 0.5 : 1), r = f(() => Math.max(1, Math.floor(e.max))), u = f(() => Array.from({ length: r.value }, (T, D) => D + 1)), v = f(() => {
9038
+ const a = o, e = n, t = G(null), i = G(null), s = G([]), u = f(() => e.allowHalf ? 0.5 : 1), r = f(() => Math.max(1, Math.floor(e.max))), d = f(() => Array.from({ length: r.value }, (T, D) => D + 1)), v = f(() => {
9019
9039
  const T = t.value ?? e.modelValue ?? 0, D = Math.min(r.value, Math.max(0, T));
9020
9040
  return e.allowHalf ? Math.round(D * 2) / 2 : Math.round(D);
9021
9041
  }), p = f(() => {
@@ -9025,7 +9045,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9025
9045
  const T = [`vf-rating_${e.size}`];
9026
9046
  return e.disabled && T.push("vf-rating_disabled"), e.readonly && T.push("vf-rating_readonly"), t.value !== null && T.push("vf-rating_hover"), T;
9027
9047
  }), $ = (T) => Math.min(r.value, Math.max(0, T)), l = (T) => {
9028
- const D = Math.round(T / d.value) * d.value;
9048
+ const D = Math.round(T / u.value) * u.value;
9029
9049
  return $(D);
9030
9050
  }, _ = (T, D) => {
9031
9051
  if (!e.allowHalf)
@@ -9072,11 +9092,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9072
9092
  switch (D.key) {
9073
9093
  case "ArrowRight":
9074
9094
  case "ArrowUp":
9075
- M = (e.modelValue ?? 0) + d.value;
9095
+ M = (e.modelValue ?? 0) + u.value;
9076
9096
  break;
9077
9097
  case "ArrowLeft":
9078
9098
  case "ArrowDown":
9079
- M = (e.modelValue ?? 0) - d.value;
9099
+ M = (e.modelValue ?? 0) - u.value;
9080
9100
  break;
9081
9101
  case "Home":
9082
9102
  M = 0;
@@ -9107,7 +9127,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9107
9127
  onMousemove: y,
9108
9128
  onMouseleave: z
9109
9129
  }, [
9110
- (c(!0), b(fe, null, he(u.value, (M) => (c(), b("button", {
9130
+ (c(!0), b(fe, null, he(d.value, (M) => (c(), b("button", {
9111
9131
  key: M,
9112
9132
  ref_for: !0,
9113
9133
  ref_key: "itemRefs",
@@ -9194,11 +9214,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9194
9214
  }), e = f(() => o.isDisabled(o.node)), t = f(() => o.isSelected(o.node.key)), i = f(() => o.isExpanded(o.node.key)), s = f(() => {
9195
9215
  const l = [`vf-tree__row_${o.variant}`];
9196
9216
  return o.size !== "normal" && l.push(`vf-tree__row_${o.size}`), t.value && l.push("is-selected"), e.value && l.push("is-disabled"), l;
9197
- }), d = f(() => ({
9217
+ }), u = f(() => ({
9198
9218
  "--vf-tree-level": String(o.level)
9199
9219
  })), r = (l) => {
9200
9220
  e.value || (o.expandOnClick && a.value && o.onToggle(o.node, l), o.onSelect(o.node, l));
9201
- }, u = (l) => {
9221
+ }, d = (l) => {
9202
9222
  const _ = l, k = _ == null ? void 0 : _.closest('[role="tree"]');
9203
9223
  return k ? Array.from(k.querySelectorAll('[role="treeitem"]')) : [];
9204
9224
  }, v = (l, _) => {
@@ -9222,7 +9242,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9222
9242
  o.onToggle(o.node, l);
9223
9243
  return;
9224
9244
  }
9225
- const k = u(l.target), y = k.indexOf(_);
9245
+ const k = d(l.target), y = k.indexOf(_);
9226
9246
  v(k, y + 1);
9227
9247
  return;
9228
9248
  }
@@ -9236,7 +9256,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9236
9256
  }
9237
9257
  if (l.key === "ArrowDown" || l.key === "ArrowUp" || l.key === "Home" || l.key === "End") {
9238
9258
  l.preventDefault();
9239
- const k = u(l.target);
9259
+ const k = d(l.target);
9240
9260
  if (!k.length)
9241
9261
  return;
9242
9262
  const y = k.indexOf(_);
@@ -9262,7 +9282,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9262
9282
  return c(), b("li", Ei, [
9263
9283
  B("div", {
9264
9284
  class: ee(["vf-tree__row", s.value]),
9265
- style: ke(d.value),
9285
+ style: ke(u.value),
9266
9286
  role: "treeitem",
9267
9287
  "aria-level": l.level,
9268
9288
  "aria-expanded": a.value ? i.value : void 0,
@@ -9341,8 +9361,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9341
9361
  const a = n, e = o, t = (l) => Array.isArray(l) ? l : l == null ? [] : [l], i = f(() => {
9342
9362
  const l = ["vf-tree", `vf-tree_${a.variant}`];
9343
9363
  return a.size !== "normal" && l.push(`vf-tree_${a.size}`), a.disabled && l.push("vf-tree_disabled"), l;
9344
- }), s = f(() => t(a.modelValue)), d = f(() => new Set(s.value)), r = f(() => new Set(a.expandedKeys)), u = (l) => a.disabled || !!l.disabled, v = (l) => d.value.has(l), p = (l) => r.value.has(l), m = (l, _) => {
9345
- if (e("nodeClick", l, _), !a.selectable || u(l))
9364
+ }), s = f(() => t(a.modelValue)), u = f(() => new Set(s.value)), r = f(() => new Set(a.expandedKeys)), d = (l) => a.disabled || !!l.disabled, v = (l) => u.value.has(l), p = (l) => r.value.has(l), m = (l, _) => {
9365
+ if (e("nodeClick", l, _), !a.selectable || d(l))
9346
9366
  return;
9347
9367
  if (a.multiple) {
9348
9368
  const y = s.value, C = y.includes(l.key) ? y.filter((g) => g !== l.key) : [...y, l.key];
@@ -9352,7 +9372,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9352
9372
  const k = a.modelValue === l.key ? void 0 : l.key;
9353
9373
  e("update:modelValue", k), e("change", k, l, _);
9354
9374
  }, $ = (l, _) => {
9355
- if (u(l))
9375
+ if (d(l))
9356
9376
  return;
9357
9377
  const k = a.expandedKeys, y = k.includes(l.key), z = y ? k.filter((C) => C !== l.key) : [...k, l.key];
9358
9378
  e("update:expandedKeys", z), e("toggle", l.key, !y, l, _);
@@ -9375,7 +9395,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9375
9395
  selectable: l.selectable,
9376
9396
  "is-selected": v,
9377
9397
  "is-expanded": p,
9378
- "is-disabled": u,
9398
+ "is-disabled": d,
9379
9399
  "on-select": m,
9380
9400
  "on-toggle": $
9381
9401
  }, {
@@ -9429,7 +9449,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9429
9449
  ],
9430
9450
  setup(n, { emit: o }) {
9431
9451
  let a = 0;
9432
- const e = o, t = n, i = G(null), s = G(null), d = G(null), r = G(null), u = G(!1), v = G(""), p = G("bottom"), m = G("bottom"), $ = `vf-treeselect-panel-${++a}`;
9452
+ const e = o, t = n, i = G(null), s = G(null), u = G(null), r = G(null), d = G(!1), v = G(""), p = G("bottom"), m = G("bottom"), $ = `vf-treeselect-panel-${++a}`;
9433
9453
  let l = null;
9434
9454
  const _ = (A) => Array.isArray(A) ? A : A == null ? [] : [A], k = (A) => {
9435
9455
  const V = [], Y = (ae) => {
@@ -9465,15 +9485,15 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9465
9485
  const A = v.value.trim().toLowerCase();
9466
9486
  return A ? L(t.items, A) : t.items;
9467
9487
  }), I = f(() => {
9468
- const A = ["vf-treeselect", `vf-treeselect_${t.variant}`, u.value ? "vf-treeselect_open" : ""];
9488
+ const A = ["vf-treeselect", `vf-treeselect_${t.variant}`, d.value ? "vf-treeselect_open" : ""];
9469
9489
  return t.size !== "normal" && A.push(`vf-treeselect_${t.size}`), t.disabled && A.push("vf-treeselect_disabled"), A.filter(Boolean);
9470
9490
  }), O = () => {
9471
- u.value = !1, p.value = "bottom", m.value = "bottom", v.value = "";
9491
+ d.value = !1, p.value = "bottom", m.value = "bottom", v.value = "";
9472
9492
  }, E = async () => {
9473
9493
  var A;
9474
- t.disabled || (u.value = !0, p.value = "bottom", m.value = "bottom", t.filter && (await $e(), (A = r.value) == null || A.focus()));
9494
+ t.disabled || (d.value = !0, p.value = "bottom", m.value = "bottom", t.filter && (await $e(), (A = r.value) == null || A.focus()));
9475
9495
  }, T = () => {
9476
- if (u.value) {
9496
+ if (d.value) {
9477
9497
  O();
9478
9498
  return;
9479
9499
  }
@@ -9498,14 +9518,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9498
9518
  v.value = V.value, e("search", V.value);
9499
9519
  }, W = (A) => e("focus", A), h = (A) => e("blur", A), P = (A) => {
9500
9520
  var Y;
9501
- if (!u.value || !i.value)
9521
+ if (!d.value || !i.value)
9502
9522
  return;
9503
9523
  const V = A.target;
9504
- i.value.contains(V) || (Y = d.value) != null && Y.contains(V) || O();
9524
+ i.value.contains(V) || (Y = u.value) != null && Y.contains(V) || O();
9505
9525
  }, K = () => {
9506
- if (!s.value || !d.value)
9526
+ if (!s.value || !u.value)
9507
9527
  return;
9508
- const A = s.value, V = d.value, Y = async () => {
9528
+ const A = s.value, V = u.value, Y = async () => {
9509
9529
  const {
9510
9530
  x: X,
9511
9531
  y: re,
@@ -9530,7 +9550,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9530
9550
  }
9531
9551
  }, l.update();
9532
9552
  };
9533
- return ve(u, async (A) => {
9553
+ return ve(d, async (A) => {
9534
9554
  if (!A) {
9535
9555
  l && (l.destroy(), l = null);
9536
9556
  return;
@@ -9557,7 +9577,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9557
9577
  class: "vf-treeselect__control",
9558
9578
  type: "button",
9559
9579
  disabled: A.disabled,
9560
- "aria-expanded": u.value,
9580
+ "aria-expanded": d.value,
9561
9581
  "aria-controls": $,
9562
9582
  "aria-haspopup": "tree",
9563
9583
  onClick: T,
@@ -9588,7 +9608,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9588
9608
  ze(B("div", {
9589
9609
  id: $,
9590
9610
  ref_key: "panel",
9591
- ref: d,
9611
+ ref: u,
9592
9612
  class: "vf-treeselect__panel",
9593
9613
  "data-placement": m.value
9594
9614
  }, [
@@ -9628,7 +9648,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9628
9648
  _: 3
9629
9649
  }, 8, ["items", "model-value", "expanded-keys", "multiple", "selectable", "expand-on-click", "disabled", "size", "variant"])) : (c(), b("div", Ji, j(A.emptyText), 1))
9630
9650
  ], 8, Xi), [
9631
- [Se, u.value]
9651
+ [Se, d.value]
9632
9652
  ])
9633
9653
  ]))
9634
9654
  ], 2));
@@ -9650,25 +9670,25 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9650
9670
  ariaLabel: { default: "Breadcrumbs" }
9651
9671
  },
9652
9672
  setup(n) {
9653
- const o = n, a = f(() => o.items ?? []), e = f(() => a.value.some((s) => s.active !== void 0)), t = (s, d) => e.value ? s.active === !0 : d === a.value.length - 1, i = (s, d) => `${s.label ?? s.to ?? s.href ?? s.url ?? "crumb"}_${d.toString()}`;
9654
- return (s, d) => (c(), b("nav", {
9673
+ const o = n, a = f(() => o.items ?? []), e = f(() => a.value.some((s) => s.active !== void 0)), t = (s, u) => e.value ? s.active === !0 : u === a.value.length - 1, i = (s, u) => `${s.label ?? s.to ?? s.href ?? s.url ?? "crumb"}_${u.toString()}`;
9674
+ return (s, u) => (c(), b("nav", {
9655
9675
  class: "vf-breadcrumbs",
9656
9676
  "aria-label": s.ariaLabel
9657
9677
  }, [
9658
9678
  B("ol", td, [
9659
- (c(!0), b(fe, null, he(a.value, (r, u) => (c(), b(fe, {
9660
- key: i(r, u)
9679
+ (c(!0), b(fe, null, he(a.value, (r, d) => (c(), b(fe, {
9680
+ key: i(r, d)
9661
9681
  }, [
9662
9682
  B("li", {
9663
- class: ee(["vf-breadcrumbs__item", { "is-current": t(r, u), "is-disabled": r.disabled }])
9683
+ class: ee(["vf-breadcrumbs__item", { "is-current": t(r, d), "is-disabled": r.disabled }])
9664
9684
  }, [
9665
9685
  q(s.$slots, "item", {
9666
9686
  item: r,
9667
- index: u,
9668
- isLast: u === a.value.length - 1,
9669
- active: t(r, u)
9687
+ index: d,
9688
+ isLast: d === a.value.length - 1,
9689
+ active: t(r, d)
9670
9690
  }, () => [
9671
- t(r, u) ? (c(), b("span", ad, j(r.label), 1)) : (c(), be(it, {
9691
+ t(r, d) ? (c(), b("span", ad, j(r.label), 1)) : (c(), be(it, {
9672
9692
  key: 1,
9673
9693
  class: "vf-breadcrumbs__link",
9674
9694
  to: r.to,
@@ -9682,7 +9702,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9682
9702
  }, 1032, ["to", "href", "disabled"]))
9683
9703
  ])
9684
9704
  ], 2),
9685
- u < a.value.length - 1 ? (c(), b("li", od, [
9705
+ d < a.value.length - 1 ? (c(), b("li", od, [
9686
9706
  q(s.$slots, "separator", { separator: s.separator }, () => [
9687
9707
  me(j(s.separator), 1)
9688
9708
  ])
@@ -9749,14 +9769,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9749
9769
  setup(n) {
9750
9770
  const o = n, a = Xe(), e = f(() => !!o.title || !!a.title), t = f(() => !!o.subtitle || !!a.subtitle), i = G(!1), s = () => {
9751
9771
  typeof window > "u" || (i.value = window.innerWidth <= o.mobileBreakpoint);
9752
- }, d = f(() => {
9772
+ }, u = f(() => {
9753
9773
  const r = ["vf-page-header"];
9754
9774
  return o.size !== "normal" && r.push(`vf-page-header_${o.size}`), o.divider && r.push("vf-page-header_divider"), i.value && r.push("vf-page-header_mobile"), r;
9755
9775
  });
9756
9776
  return typeof window < "u" && (s(), window.addEventListener("resize", s, !1)), we(() => {
9757
9777
  typeof window < "u" && window.removeEventListener("resize", s, !1);
9758
- }), (r, u) => (c(), b("header", {
9759
- class: ee(d.value)
9778
+ }), (r, d) => (c(), b("header", {
9779
+ class: ee(u.value)
9760
9780
  }, [
9761
9781
  r.$slots.breadcrumbs ? (c(), b("div", nd, [
9762
9782
  q(r.$slots, "breadcrumbs")
@@ -9817,7 +9837,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9817
9837
  },
9818
9838
  emits: ["scroll", "rangeChange", "reachEnd"],
9819
9839
  setup(n, { emit: o }) {
9820
- const a = o, e = n, t = G(null), i = G(0), s = G({ start: -1, end: -1 }), d = G(!1), r = f(() => e.items ?? []), u = f(() => r.value.length), v = f(
9840
+ const a = o, e = n, t = G(null), i = G(0), s = G({ start: -1, end: -1 }), u = G(!1), r = f(() => e.items ?? []), d = f(() => r.value.length), v = f(
9821
9841
  () => Number.isFinite(e.itemHeight) && e.itemHeight > 0 ? e.itemHeight : 36
9822
9842
  ), p = f(
9823
9843
  () => Number.isFinite(e.overscan) && e.overscan >= 0 ? Math.floor(e.overscan) : 4
@@ -9836,7 +9856,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9836
9856
  return 0;
9837
9857
  const M = Math.floor(i.value / v.value) - p.value;
9838
9858
  return Math.max(0, M);
9839
- }), _ = f(() => e.virtual ? Math.ceil($.value / v.value) + p.value * 2 : u.value), k = f(() => e.virtual ? Math.min(u.value, l.value + _.value) : u.value), y = f(() => {
9859
+ }), _ = f(() => e.virtual ? Math.ceil($.value / v.value) + p.value * 2 : d.value), k = f(() => e.virtual ? Math.min(d.value, l.value + _.value) : d.value), y = f(() => {
9840
9860
  const M = [];
9841
9861
  for (let S = l.value; S < k.value; S += 1) {
9842
9862
  const F = r.value[S];
@@ -9847,7 +9867,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9847
9867
  });
9848
9868
  }
9849
9869
  return M;
9850
- }), z = f(() => e.virtual ? l.value * v.value : 0), C = f(() => u.value * v.value), g = f(() => ["vf-virtual-scroller"]), w = f(() => ({ height: e.height })), L = f(() => ({ height: `${C.value}px` })), R = f(() => ({ transform: `translateY(${z.value}px)` })), I = f(() => ({ minHeight: `${v.value}px` })), O = (M, S) => {
9870
+ }), z = f(() => e.virtual ? l.value * v.value : 0), C = f(() => d.value * v.value), g = f(() => ["vf-virtual-scroller"]), w = f(() => ({ height: e.height })), L = f(() => ({ height: `${C.value}px` })), R = f(() => ({ transform: `translateY(${z.value}px)` })), I = f(() => ({ minHeight: `${v.value}px` })), O = (M, S) => {
9851
9871
  if (M && typeof M == "object") {
9852
9872
  const F = M[e.keyField];
9853
9873
  if (typeof F == "string" || typeof F == "number")
@@ -9858,8 +9878,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9858
9878
  const M = { start: l.value, end: Math.max(l.value, k.value - 1) };
9859
9879
  (s.value.start !== M.start || s.value.end !== M.end) && (s.value = M, a("rangeChange", M));
9860
9880
  }, T = () => {
9861
- const M = k.value >= u.value && u.value > 0;
9862
- M && !d.value && (d.value = !0, a("reachEnd")), M || (d.value = !1);
9881
+ const M = k.value >= d.value && d.value > 0;
9882
+ M && !u.value && (u.value = !0, a("reachEnd")), M || (u.value = !1);
9863
9883
  }, D = (M) => {
9864
9884
  const S = M.target;
9865
9885
  i.value = S.scrollTop, a("scroll", M), E(), T();
@@ -9879,7 +9899,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9879
9899
  "aria-label": M.ariaLabel || void 0,
9880
9900
  onScroll: D
9881
9901
  }, [
9882
- u.value ? M.virtual ? (c(), b("div", {
9902
+ d.value ? M.virtual ? (c(), b("div", {
9883
9903
  key: 1,
9884
9904
  class: "vf-virtual-scroller__spacer",
9885
9905
  style: ke(L.value)
@@ -9944,35 +9964,35 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9944
9964
  const [o, a, e] = Bt(n);
9945
9965
  return `${o}, ${a}, ${e}`;
9946
9966
  }, kd = (n, o, a) => {
9947
- const e = n / 255, t = o / 255, i = a / 255, s = Math.max(e, t, i), d = Math.min(e, t, i), r = s - d;
9948
- let u = 0, v = 0;
9949
- const p = (s + d) / 2;
9967
+ const e = n / 255, t = o / 255, i = a / 255, s = Math.max(e, t, i), u = Math.min(e, t, i), r = s - u;
9968
+ let d = 0, v = 0;
9969
+ const p = (s + u) / 2;
9950
9970
  if (r !== 0) {
9951
9971
  switch (v = r / (1 - Math.abs(2 * p - 1)), s) {
9952
9972
  case e:
9953
- u = (t - i) / r % 6;
9973
+ d = (t - i) / r % 6;
9954
9974
  break;
9955
9975
  case t:
9956
- u = (i - e) / r + 2;
9976
+ d = (i - e) / r + 2;
9957
9977
  break;
9958
9978
  case i:
9959
- u = (e - t) / r + 4;
9979
+ d = (e - t) / r + 4;
9960
9980
  break;
9961
9981
  }
9962
- u *= 60, u < 0 && (u += 360);
9982
+ d *= 60, d < 0 && (d += 360);
9963
9983
  }
9964
- return [u, v * 100, p * 100];
9984
+ return [d, v * 100, p * 100];
9965
9985
  }, Cd = (n, o, a) => {
9966
- const e = o / 100, t = a / 100, i = (1 - Math.abs(2 * t - 1)) * e, s = i * (1 - Math.abs(n / 60 % 2 - 1)), d = t - i / 2;
9967
- let r = 0, u = 0, v = 0;
9968
- n >= 0 && n < 60 ? (r = i, u = s, v = 0) : n >= 60 && n < 120 ? (r = s, u = i, v = 0) : n >= 120 && n < 180 ? (r = 0, u = i, v = s) : n >= 180 && n < 240 ? (r = 0, u = s, v = i) : n >= 240 && n < 300 ? (r = s, u = 0, v = i) : (r = i, u = 0, v = s);
9969
- const p = Math.round((r + d) * 255), m = Math.round((u + d) * 255), $ = Math.round((v + d) * 255);
9986
+ const e = o / 100, t = a / 100, i = (1 - Math.abs(2 * t - 1)) * e, s = i * (1 - Math.abs(n / 60 % 2 - 1)), u = t - i / 2;
9987
+ let r = 0, d = 0, v = 0;
9988
+ n >= 0 && n < 60 ? (r = i, d = s, v = 0) : n >= 60 && n < 120 ? (r = s, d = i, v = 0) : n >= 120 && n < 180 ? (r = 0, d = i, v = s) : n >= 180 && n < 240 ? (r = 0, d = s, v = i) : n >= 240 && n < 300 ? (r = s, d = 0, v = i) : (r = i, d = 0, v = s);
9989
+ const p = Math.round((r + u) * 255), m = Math.round((d + u) * 255), $ = Math.round((v + u) * 255);
9970
9990
  return [p, m, $];
9971
9991
  }, wd = (n, o, a) => `#${[n, o, a].map((e) => e.toString(16).padStart(2, "0")).join("")}`, $d = (n, o, a) => Math.min(a, Math.max(o, n)), zd = (n, o) => {
9972
9992
  const a = ct(n);
9973
9993
  if (!a)
9974
9994
  return n;
9975
- const [e, t, i] = Bt(a), [s, d, r] = kd(e, t, i), v = (o - 5) * 7, p = $d(r + v, 0, 100), [m, $, l] = Cd(s, d, p);
9995
+ const [e, t, i] = Bt(a), [s, u, r] = kd(e, t, i), v = (o - 5) * 7, p = $d(r + v, 0, 100), [m, $, l] = Cd(s, u, p);
9976
9996
  return wd(m, $, l);
9977
9997
  }, ot = (n) => !!n && typeof n == "object" && !Array.isArray(n), vt = (n, o) => {
9978
9998
  if (!o)
@@ -9998,12 +10018,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9998
10018
  }
9999
10019
  return { preset: n };
10000
10020
  }, Bd = (n) => {
10001
- const o = [], a = [], e = [], t = [], i = (r) => e.push(r), s = (r) => t.push(r), d = (r, u) => {
10021
+ const o = [], a = [], e = [], t = [], i = (r) => e.push(r), s = (r) => t.push(r), u = (r, d) => {
10002
10022
  if (!(!r || typeof r != "object"))
10003
10023
  for (const v in r) {
10004
- const p = r[v], m = u.concat([v]);
10024
+ const p = r[v], m = d.concat([v]);
10005
10025
  if (ot(p)) {
10006
- d(p, m);
10026
+ u(p, m);
10007
10027
  continue;
10008
10028
  }
10009
10029
  if (p && typeof p == "object") {
@@ -10031,7 +10051,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
10031
10051
  }
10032
10052
  }
10033
10053
  };
10034
- return d(n, []), { baseVars: o, darkVars: a, warnings: e, errors: t };
10054
+ return u(n, []), { baseVars: o, darkVars: a, warnings: e, errors: t };
10035
10055
  }, xd = (n) => {
10036
10056
  if (typeof document > "u")
10037
10057
  return null;
@@ -10044,20 +10064,20 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
10044
10064
  selector: n.selector ?? ":root",
10045
10065
  darkSelector: n.darkSelector ?? ":root[data-theme=dark]"
10046
10066
  }), Vd = (n, o, a, e) => {
10047
- const { baseVars: t, darkVars: i, warnings: s, errors: d } = Bd(n), r = xd("vueforge-theme");
10067
+ const { baseVars: t, darkVars: i, warnings: s, errors: u } = Bd(n), r = xd("vueforge-theme");
10048
10068
  if (!r)
10049
10069
  return;
10050
- if (d.length) {
10070
+ if (u.length) {
10051
10071
  if (e)
10052
- throw new Error(`[VueForge] ${d.join(" ")}`);
10053
- for (const v of d)
10072
+ throw new Error(`[VueForge] ${u.join(" ")}`);
10073
+ for (const v of u)
10054
10074
  console.warn(`[VueForge] ${v}`);
10055
10075
  }
10056
10076
  if (s.length)
10057
10077
  for (const v of s)
10058
10078
  console.warn(`[VueForge] ${v}`);
10059
- const u = [];
10060
- t.length && u.push(`${o} { ${t.join(";")} }`), i.length && u.push(`${a} { ${i.join(";")} }`), r.textContent = u.join(`
10079
+ const d = [];
10080
+ t.length && d.push(`${o} { ${t.join(";")} }`), i.length && d.push(`${a} { ${i.join(";")} }`), r.textContent = d.join(`
10061
10081
  `);
10062
10082
  };
10063
10083
  let He = null;