@codemonster-ru/vueforge 0.82.0 → 0.84.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
@@ -1,4 +1,4 @@
1
- import { defineComponent as ne, ref as N, computed as f, watch as ce, resolveComponent as nt, openBlock as c, createElementBlock as b, normalizeClass as ee, renderSlot as Y, Fragment as fe, createTextVNode as me, toDisplayString as j, createBlock as ge, withCtx as Ce, createCommentVNode as Q, resolveDynamicComponent as Ye, normalizeStyle as ke, createElementVNode as B, renderList as be, unref as We, createVNode as Ge, nextTick as $e, inject as qe, provide as Qe, withKeys as pe, withModifiers as ie, onBeforeUnmount as we, withDirectives as ze, vShow as Se, onMounted as Ve, useSlots as Xe, Teleport as Le, reactive as Dt, createSlots as bt, useAttrs as Mt, mergeProps as st, Transition as Rt, normalizeProps as Pt, guardReactiveProps as Et } from "vue";
1
+ import { defineComponent as ne, ref as G, computed as f, watch as ve, resolveComponent as nt, openBlock as c, createElementBlock as b, normalizeClass as ee, renderSlot as q, Fragment as fe, createTextVNode as me, toDisplayString as j, createBlock as be, withCtx as Ce, createCommentVNode as Q, resolveDynamicComponent as Ye, normalizeStyle as ke, createElementVNode as B, renderList as he, unref as We, createVNode as Ge, nextTick as $e, inject as qe, provide as Qe, withKeys as pe, withModifiers as ie, onBeforeUnmount as we, withDirectives as ze, vShow as Se, onMounted as Ve, useSlots as Xe, Teleport as Le, reactive as Dt, createSlots as bt, useAttrs as Mt, mergeProps as st, Transition as Rt, normalizeProps as Pt, guardReactiveProps as Et } from "vue";
2
2
  import { useRoute as Ot, useRouter as At } from "vue-router";
3
3
  import { CmIcon as Ne } from "@codemonster-ru/vueiconify";
4
4
  const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ ne({
@@ -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 = N(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), 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(() => {
19
19
  if (r.value !== "router-link")
20
20
  return !1;
21
21
  const _ = v.value;
@@ -29,7 +29,7 @@ const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ ne({
29
29
  }, l = (_) => {
30
30
  e.disabled && (_.key === "Enter" || _.key === " ") && (_.preventDefault(), _.stopPropagation());
31
31
  };
32
- return ce(p, (_) => {
32
+ return ve(p, (_) => {
33
33
  _ && (a("active"), a("onActive")), a("update:active", _);
34
34
  }), (_, k) => {
35
35
  const y = nt("router-link");
@@ -42,10 +42,10 @@ const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ ne({
42
42
  onClick: $,
43
43
  onKeydown: l
44
44
  }, [
45
- _.$slots.default ? Y(_.$slots, "default", { key: 0 }) : (c(), b(fe, { key: 1 }, [
45
+ _.$slots.default ? q(_.$slots, "default", { key: 0 }) : (c(), b(fe, { key: 1 }, [
46
46
  me(j(_.label), 1)
47
47
  ], 64))
48
- ], 42, Ht)) : (c(), ge(y, {
48
+ ], 42, Ht)) : (c(), be(y, {
49
49
  key: 1,
50
50
  ref_key: "link",
51
51
  ref: s,
@@ -59,7 +59,7 @@ const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ ne({
59
59
  onKeydown: l
60
60
  }, {
61
61
  default: Ce(() => [
62
- _.$slots.default ? Y(_.$slots, "default", { key: 0 }) : (c(), b(fe, { key: 1 }, [
62
+ _.$slots.default ? q(_.$slots, "default", { key: 0 }) : (c(), b(fe, { key: 1 }, [
63
63
  me(j(_.label), 1)
64
64
  ], 64))
65
65
  ]),
@@ -88,16 +88,16 @@ const Ht = ["href", "aria-disabled", "tabindex"], it = /* @__PURE__ */ ne({
88
88
  function Xt(n, o) {
89
89
  return c(), b("div", Nt, [
90
90
  n.$slots.default ? (c(), b("div", Gt, [
91
- Y(n.$slots, "default")
91
+ q(n.$slots, "default")
92
92
  ])) : Q("", !0),
93
93
  n.$slots.header ? (c(), b("div", jt, [
94
- Y(n.$slots, "header")
94
+ q(n.$slots, "header")
95
95
  ])) : Q("", !0),
96
96
  n.$slots.body ? (c(), b("div", Yt, [
97
- Y(n.$slots, "body")
97
+ q(n.$slots, "body")
98
98
  ])) : Q("", !0),
99
99
  n.$slots.footer ? (c(), b("div", qt, [
100
- Y(n.$slots, "footer")
100
+ q(n.$slots, "footer")
101
101
  ])) : Q("", !0)
102
102
  ]);
103
103
  }
@@ -115,12 +115,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
115
115
  const t = {};
116
116
  return o.maxWidth && (t["--vf-container-max-width-override"] = o.maxWidth), o.paddingX && (t["--vf-container-padding-x-override"] = o.paddingX), t;
117
117
  });
118
- return (t, i) => (c(), ge(Ye(t.as), {
118
+ return (t, i) => (c(), be(Ye(t.as), {
119
119
  class: ee(a.value),
120
120
  style: ke(e.value)
121
121
  }, {
122
122
  default: Ce(() => [
123
- Y(t.$slots, "default")
123
+ q(t.$slots, "default")
124
124
  ]),
125
125
  _: 3
126
126
  }, 8, ["class", "style"]));
@@ -139,12 +139,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
139
139
  const t = {};
140
140
  return o.paddingY && (t["--vf-section-padding-y-override"] = o.paddingY), t;
141
141
  });
142
- return (t, i) => (c(), ge(Ye(t.as), {
142
+ return (t, i) => (c(), be(Ye(t.as), {
143
143
  class: ee(a.value),
144
144
  style: ke(e.value)
145
145
  }, {
146
146
  default: Ce(() => [
147
- Y(t.$slots, "default")
147
+ q(t.$slots, "default")
148
148
  ]),
149
149
  _: 3
150
150
  }, 8, ["class", "style"]));
@@ -184,12 +184,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
184
184
  }
185
185
  return t;
186
186
  });
187
- return (t, i) => (c(), ge(Ye(t.as), {
187
+ return (t, i) => (c(), be(Ye(t.as), {
188
188
  class: "vf-grid",
189
189
  style: ke(e.value)
190
190
  }, {
191
191
  default: Ce(() => [
192
- Y(t.$slots, "default")
192
+ q(t.$slots, "default")
193
193
  ]),
194
194
  _: 3
195
195
  }, 8, ["style"]));
@@ -221,12 +221,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
221
221
  }
222
222
  return t;
223
223
  });
224
- return (t, i) => (c(), ge(Ye(t.as), {
224
+ return (t, i) => (c(), be(Ye(t.as), {
225
225
  class: "vf-grid-item",
226
226
  style: ke(e.value)
227
227
  }, {
228
228
  default: Ce(() => [
229
- Y(t.$slots, "default")
229
+ q(t.$slots, "default")
230
230
  ]),
231
231
  _: 3
232
232
  }, 8, ["style"]));
@@ -250,12 +250,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
250
250
  };
251
251
  return o.gap && (e["--vf-stack-gap-override"] = o.gap), e;
252
252
  });
253
- return (e, t) => (c(), ge(Ye(e.as), {
253
+ return (e, t) => (c(), be(Ye(e.as), {
254
254
  class: "vf-stack",
255
255
  style: ke(a.value)
256
256
  }, {
257
257
  default: Ce(() => [
258
- Y(e.$slots, "default")
258
+ q(e.$slots, "default")
259
259
  ]),
260
260
  _: 3
261
261
  }, 8, ["style"]));
@@ -279,12 +279,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
279
279
  };
280
280
  return o.gap && (e["--vf-inline-gap-override"] = o.gap), e;
281
281
  });
282
- return (e, t) => (c(), ge(Ye(e.as), {
282
+ return (e, t) => (c(), be(Ye(e.as), {
283
283
  class: "vf-inline",
284
284
  style: ke(a.value)
285
285
  }, {
286
286
  default: Ce(() => [
287
- Y(e.$slots, "default")
287
+ q(e.$slots, "default")
288
288
  ]),
289
289
  _: 3
290
290
  }, 8, ["style"]));
@@ -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 = N([]), 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, "-"), 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) => ({
306
306
  ...z,
307
307
  items: z.items ? v(z.items) : void 0
308
308
  })), p = (y) => {
@@ -333,7 +333,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
333
333
  }
334
334
  a("active", y), a("onActive", y);
335
335
  };
336
- return ce(
336
+ return ve(
337
337
  () => e.items,
338
338
  (y) => {
339
339
  t.value = v(y);
@@ -349,12 +349,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
349
349
  role: "menu",
350
350
  "aria-orientation": y.orientation === "horizontal" ? "horizontal" : "vertical"
351
351
  }, [
352
- (c(!0), b(fe, null, be(t.value, (g, w) => (c(), b("li", {
352
+ (c(!0), b(fe, null, he(t.value, (g, w) => (c(), b("li", {
353
353
  key: i(g, w),
354
354
  class: "vf-menu__item",
355
355
  role: "none"
356
356
  }, [
357
- y.$slots[i(g, w)] ? Y(y.$slots, i(g, w), {
357
+ y.$slots[i(g, w)] ? q(y.$slots, i(g, w), {
358
358
  key: 0,
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 }, [
@@ -370,7 +370,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
370
370
  onClick: (L) => p(g),
371
371
  onKeydown: (L) => $(L, g, w)
372
372
  }, [
373
- g.icon ? (c(), ge(We(Ne), {
373
+ g.icon ? (c(), be(We(Ne), {
374
374
  key: 0,
375
375
  icon: g.icon,
376
376
  class: "vf-menu__icon"
@@ -381,14 +381,14 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
381
381
  class: "vf-menu__chevron"
382
382
  })
383
383
  ], 42, Jt),
384
- g.items ? (c(), ge(C, {
384
+ g.items ? (c(), be(C, {
385
385
  key: 0,
386
386
  id: r(g, w),
387
387
  items: g.items,
388
388
  class: ee(["vf-menu__submenu", { "vf-menu__submenu_visible": g.subMenuVisible }]),
389
389
  onOnActive: k
390
390
  }, null, 8, ["id", "items", "class"])) : Q("", !0)
391
- ], 64)) : (c(), ge(it, {
391
+ ], 64)) : (c(), be(it, {
392
392
  key: 3,
393
393
  to: g.to,
394
394
  href: g.href ?? g.url,
@@ -403,7 +403,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
403
403
  onActive: (L) => k(g)
404
404
  }, {
405
405
  default: Ce(() => [
406
- g.icon ? (c(), ge(We(Ne), {
406
+ g.icon ? (c(), be(We(Ne), {
407
407
  key: 0,
408
408
  icon: g.icon,
409
409
  class: "vf-menu__icon"
@@ -447,12 +447,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
447
447
  class: ee(r.value),
448
448
  disabled: o.loading || u.value
449
449
  }, [
450
- o.icon && !o.loading ? (c(), ge(We(Ne), {
450
+ o.icon && !o.loading ? (c(), be(We(Ne), {
451
451
  key: 0,
452
452
  icon: o.icon,
453
453
  class: ee(v.value)
454
454
  }, null, 8, ["icon", "class"])) : Q("", !0),
455
- o.loading ? (c(), ge(We(Ne), {
455
+ o.loading ? (c(), be(We(Ne), {
456
456
  key: 1,
457
457
  icon: "circleNotch",
458
458
  class: ee(v.value),
@@ -462,12 +462,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
462
462
  key: 2,
463
463
  class: ee(p.value)
464
464
  }, [
465
- Y(m.$slots, "default")
465
+ q(m.$slots, "default")
466
466
  ], 2)) : m.label ? (c(), b("span", {
467
467
  key: 3,
468
468
  class: ee(p.value)
469
469
  }, j(m.label), 3)) : Q("", !0)
470
- ], 10, ea)) : (c(), ge(it, {
470
+ ], 10, ea)) : (c(), be(it, {
471
471
  key: 1,
472
472
  to: o.to,
473
473
  href: o.href ?? o.url,
@@ -476,7 +476,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
476
476
  disabled: o.loading || u.value
477
477
  }, {
478
478
  default: Ce(() => [
479
- o.icon ? (c(), ge(We(Ne), {
479
+ o.icon ? (c(), be(We(Ne), {
480
480
  key: 0,
481
481
  icon: o.icon,
482
482
  class: ee(v.value)
@@ -485,7 +485,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
485
485
  key: 1,
486
486
  class: ee(p.value)
487
487
  }, [
488
- Y(m.$slots, "default")
488
+ q(m.$slots, "default")
489
489
  ], 2)) : m.label ? (c(), b("span", {
490
490
  key: 2,
491
491
  class: ee(p.value)
@@ -522,7 +522,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
522
522
  role: "group",
523
523
  "aria-disabled": t.disabled ? "true" : void 0
524
524
  }, [
525
- Y(t.$slots, "default")
525
+ q(t.$slots, "default")
526
526
  ], 10, ta));
527
527
  }
528
528
  }), aa = {
@@ -555,7 +555,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
555
555
  class: ee(t.value)
556
556
  }, [
557
557
  u.$slots.prefix ? (c(), b("span", aa, [
558
- Y(u.$slots, "prefix")
558
+ q(u.$slots, "prefix")
559
559
  ])) : Q("", !0),
560
560
  B("input", {
561
561
  class: "vf-input__control",
@@ -570,7 +570,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
570
570
  onBlur: r
571
571
  }, null, 40, oa),
572
572
  u.$slots.suffix ? (c(), b("span", ra, [
573
- Y(u.$slots, "suffix")
573
+ q(u.$slots, "suffix")
574
574
  ])) : Q("", !0)
575
575
  ], 2));
576
576
  }
@@ -591,7 +591,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
591
591
  role: "group",
592
592
  "aria-disabled": e.disabled ? "true" : void 0
593
593
  }, [
594
- Y(e.$slots, "default")
594
+ q(e.$slots, "default")
595
595
  ], 10, la));
596
596
  }
597
597
  }), fc = /* @__PURE__ */ ne({
@@ -600,9 +600,9 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
600
600
  as: { default: "span" }
601
601
  },
602
602
  setup(n) {
603
- return (o, a) => (c(), ge(Ye(o.as), { class: "vf-input-group__addon" }, {
603
+ return (o, a) => (c(), be(Ye(o.as), { class: "vf-input-group__addon" }, {
604
604
  default: Ce(() => [
605
- Y(o.$slots, "default")
605
+ q(o.$slots, "default")
606
606
  ]),
607
607
  _: 3
608
608
  }));
@@ -623,7 +623,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
623
623
  },
624
624
  emits: ["update:modelValue", "save", "cancel", "start", "end", "focus", "blur"],
625
625
  setup(n, { emit: o }) {
626
- const a = o, e = n, t = N(!1), i = N(""), s = N(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(
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(
627
627
  () => e.modelValue === null || e.modelValue === void 0 || e.modelValue === ""
628
628
  ), p = f(() => {
629
629
  const g = ["vf-inline-edit", `vf-inline-edit_${e.variant}`];
@@ -725,13 +725,13 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
725
725
  },
726
726
  emits: ["update:modelValue", "input", "change", "search", "clear", "focus", "blur"],
727
727
  setup(n, { emit: o }) {
728
- const a = o, e = n, t = N(null), i = N(`${e.modelValue ?? ""}`);
728
+ const a = o, e = n, t = G(null), i = G(`${e.modelValue ?? ""}`);
729
729
  let s = null;
730
730
  const d = f(() => {
731
731
  const k = ["vf-search-input", `vf-search-input_${e.variant}`];
732
732
  return e.size !== "normal" && k.push(`vf-search-input_${e.size}`), e.disabled && k.push("vf-search-input_disabled"), k;
733
733
  });
734
- ce(
734
+ ve(
735
735
  () => e.modelValue,
736
736
  (k) => {
737
737
  i.value = `${k ?? ""}`;
@@ -821,7 +821,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
821
821
  emits: ["update:modelValue", "input", "change", "search", "insert", "select", "focus", "blur"],
822
822
  setup(n, { emit: o }) {
823
823
  let a = 0;
824
- const e = o, t = n, i = N(null), s = N(null), d = N(!1), r = N(-1), u = `vf-mention-input-panel-${++a}`, v = N(null), p = f(() => {
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(() => {
825
825
  var F;
826
826
  return ((F = v.value) == null ? void 0 : F.trigger) ?? t.triggers[0] ?? "@";
827
827
  }), m = f(() => t.suggestions.map((F) => ({
@@ -833,8 +833,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
833
833
  return [];
834
834
  if (F.query.length < t.minQueryLength)
835
835
  return [];
836
- const A = F.query.toLowerCase();
837
- return m.value.filter((Z) => Z.trigger === F.trigger).filter((Z) => Z.label.toLowerCase().includes(A)).slice(0, Math.max(1, t.maxSuggestions));
836
+ const H = F.query.toLowerCase();
837
+ return m.value.filter((Z) => Z.trigger === F.trigger).filter((Z) => Z.label.toLowerCase().includes(H)).slice(0, Math.max(1, t.maxSuggestions));
838
838
  }), l = f(() => $.value), _ = f(() => {
839
839
  const F = [
840
840
  "vf-mention-input",
@@ -852,8 +852,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
852
852
  }
853
853
  d.value = !0, r.value < 0 && (r.value = z());
854
854
  }
855
- }, z = () => l.value.findIndex((F) => !F.disabled), C = (F, A) => {
856
- const Z = F.slice(0, A);
855
+ }, z = () => l.value.findIndex((F) => !F.disabled), C = (F, H) => {
856
+ const Z = F.slice(0, H);
857
857
  let x = -1, W = "";
858
858
  for (const P of t.triggers) {
859
859
  const K = Z.lastIndexOf(P);
@@ -866,31 +866,31 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
866
866
  trigger: W,
867
867
  query: h,
868
868
  start: x,
869
- end: A
869
+ end: H
870
870
  };
871
871
  }, g = (F) => {
872
- const A = F.selectionStart ?? F.value.length, Z = C(F.value, A);
872
+ const H = F.selectionStart ?? F.value.length, Z = C(F.value, H);
873
873
  if (v.value = Z, Z) {
874
874
  e("search", { trigger: Z.trigger, query: Z.query }), y();
875
875
  return;
876
876
  }
877
877
  k();
878
878
  }, w = (F) => {
879
- const A = F.target;
880
- e("update:modelValue", A.value), e("input", F), g(A);
879
+ const H = F.target;
880
+ e("update:modelValue", H.value), e("input", F), g(H);
881
881
  }, L = (F) => e("change", F), R = (F) => e("focus", F), I = (F) => {
882
882
  e("blur", F), window.setTimeout(() => {
883
- var A;
884
- (A = i.value) != null && A.contains(document.activeElement) || k();
883
+ var H;
884
+ (H = i.value) != null && H.contains(document.activeElement) || k();
885
885
  }, 0);
886
886
  }, O = (F) => {
887
887
  if (!d.value || !l.value.length)
888
888
  return;
889
- let A = r.value;
890
- (A < 0 || A >= l.value.length) && (A = F > 0 ? -1 : l.value.length);
889
+ let H = r.value;
890
+ (H < 0 || H >= l.value.length) && (H = F > 0 ? -1 : l.value.length);
891
891
  for (let Z = 0; Z < l.value.length; Z += 1)
892
- if (A = (A + F + l.value.length) % l.value.length, !l.value[A].disabled) {
893
- r.value = A;
892
+ if (H = (H + F + l.value.length) % l.value.length, !l.value[H].disabled) {
893
+ r.value = H;
894
894
  return;
895
895
  }
896
896
  }, E = () => {
@@ -908,7 +908,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
908
908
  }, D = (F) => {
909
909
  if (F.disabled || !v.value || !s.value)
910
910
  return;
911
- const A = t.modelValue ?? "", Z = v.value, x = A.slice(0, Z.start), W = A.slice(Z.end), h = String(F.value ?? F.label), P = `${Z.trigger}${h}${t.appendSpace ? " " : ""}`, K = `${x}${P}${W}`, H = x.length + P.length;
911
+ const H = t.modelValue ?? "", Z = v.value, x = H.slice(0, Z.start), W = H.slice(Z.end), h = String(F.value ?? F.label), P = `${Z.trigger}${h}${t.appendSpace ? " " : ""}`, K = `${x}${P}${W}`, A = x.length + P.length;
912
912
  e("update:modelValue", K), e("select", F), e("insert", {
913
913
  trigger: Z.trigger,
914
914
  query: Z.query,
@@ -916,8 +916,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
916
916
  text: P,
917
917
  range: [Z.start, Z.end]
918
918
  }), k(), requestAnimationFrame(() => {
919
- var V, q;
920
- (V = s.value) == null || V.focus(), (q = s.value) == null || q.setSelectionRange(H, H);
919
+ var V, Y;
920
+ (V = s.value) == null || V.focus(), (Y = s.value) == null || Y.setSelectionRange(A, A);
921
921
  });
922
922
  }, M = () => {
923
923
  if (!d.value)
@@ -925,33 +925,33 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
925
925
  const F = l.value[r.value];
926
926
  F && D(F);
927
927
  }, S = (F) => {
928
- const A = F.key;
929
- if (A === "ArrowDown") {
928
+ const H = F.key;
929
+ if (H === "ArrowDown") {
930
930
  F.preventDefault(), E();
931
931
  return;
932
932
  }
933
- if (A === "ArrowUp") {
933
+ if (H === "ArrowUp") {
934
934
  F.preventDefault(), T();
935
935
  return;
936
936
  }
937
- if (A === "Enter") {
937
+ if (H === "Enter") {
938
938
  F.preventDefault(), M();
939
939
  return;
940
940
  }
941
- A === "Escape" && (F.preventDefault(), k());
941
+ H === "Escape" && (F.preventDefault(), k());
942
942
  };
943
- return ce(
943
+ return ve(
944
944
  () => t.modelValue,
945
945
  () => {
946
946
  s.value && g(s.value);
947
947
  }
948
- ), ce(l, () => {
948
+ ), ve(l, () => {
949
949
  if (!l.value.length) {
950
950
  k();
951
951
  return;
952
952
  }
953
953
  (r.value < 0 || r.value >= l.value.length) && (r.value = z());
954
- }), (F, A) => (c(), b("div", {
954
+ }), (F, H) => (c(), b("div", {
955
955
  ref_key: "root",
956
956
  ref: i,
957
957
  class: ee(_.value)
@@ -980,13 +980,13 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
980
980
  class: "vf-mention-input__panel",
981
981
  role: "listbox"
982
982
  }, [
983
- F.loading ? (c(), b("div", ma, j(F.loadingText), 1)) : l.value.length ? (c(!0), b(fe, { key: 1 }, be(l.value, (Z, x) => (c(), b("button", {
983
+ F.loading ? (c(), b("div", ma, j(F.loadingText), 1)) : l.value.length ? (c(!0), b(fe, { key: 1 }, he(l.value, (Z, x) => (c(), b("button", {
984
984
  key: `${Z.trigger ?? ""}-${String(Z.value ?? Z.label)}-${x}`,
985
985
  class: ee(["vf-mention-input__option", { "is-highlighted": x === r.value }]),
986
986
  type: "button",
987
987
  role: "option",
988
988
  disabled: Z.disabled,
989
- onMousedown: A[0] || (A[0] = ie(() => {
989
+ onMousedown: H[0] || (H[0] = ie(() => {
990
990
  }, ["prevent"])),
991
991
  onClick: (W) => D(Z)
992
992
  }, [
@@ -1035,7 +1035,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1035
1035
  },
1036
1036
  emits: ["update:modelValue", "input", "change", "focus", "blur", "toggleVisibility"],
1037
1037
  setup(n, { emit: o }) {
1038
- const a = o, e = n, t = N(!1), i = N(!1), s = f(() => {
1038
+ const a = o, e = n, t = G(!1), i = G(!1), s = f(() => {
1039
1039
  const y = ["vf-password-input", `vf-password-input_${e.variant}`];
1040
1040
  return e.size !== "normal" && y.push(`vf-password-input_${e.size}`), e.disabled && y.push("vf-password-input_disabled"), y;
1041
1041
  }), d = f(() => {
@@ -1062,7 +1062,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1062
1062
  }, [
1063
1063
  B("div", ya, [
1064
1064
  y.$slots.prefix ? (c(), b("span", _a, [
1065
- Y(y.$slots, "prefix")
1065
+ q(y.$slots, "prefix")
1066
1066
  ])) : Q("", !0),
1067
1067
  B("input", {
1068
1068
  class: "vf-password-input__control",
@@ -1089,7 +1089,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1089
1089
  onClick: k
1090
1090
  }, j(t.value ? y.hideText : y.revealText), 9, Ca)) : Q("", !0),
1091
1091
  y.$slots.suffix ? (c(), b("span", wa, [
1092
- Y(y.$slots, "suffix")
1092
+ q(y.$slots, "suffix")
1093
1093
  ])) : Q("", !0)
1094
1094
  ]),
1095
1095
  y.showStrength && y.modelValue ? (c(), b("div", $a, [
@@ -1122,7 +1122,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1122
1122
  },
1123
1123
  emits: ["update:modelValue", "change", "complete", "focus", "blur", "paste"],
1124
1124
  setup(n, { emit: o }) {
1125
- const a = o, e = n, t = N([]), i = f(() => Math.max(1, Math.floor(e.length))), s = f(() => e.alphanumeric ? /[0-9a-z]/i : /[0-9]/), d = (C) => {
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) => {
1126
1126
  const g = `${C ?? ""}`;
1127
1127
  let w = "";
1128
1128
  for (const L of g)
@@ -1193,7 +1193,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1193
1193
  "aria-label": C.ariaLabel,
1194
1194
  onPaste: _
1195
1195
  }, [
1196
- (c(!0), b(fe, null, be(i.value, (w, L) => (c(), b("input", {
1196
+ (c(!0), b(fe, null, he(i.value, (w, L) => (c(), b("input", {
1197
1197
  key: L,
1198
1198
  ref_for: !0,
1199
1199
  ref: (R) => v(R, L),
@@ -1239,49 +1239,49 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1239
1239
  },
1240
1240
  emits: ["update:modelValue", "change", "open", "close"],
1241
1241
  setup(n, { emit: o }) {
1242
- const a = o, e = n, t = N(null), i = N(!1), s = N("#3b82f6"), d = N(100), r = (S, F, A) => Math.min(A, Math.max(F, S)), u = (S) => r(Math.round(S), 0, 255).toString(16).padStart(2, "0"), v = (S) => {
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) => {
1243
1243
  const F = S.trim().replace(/^#/, "");
1244
1244
  if (![3, 4, 6, 8].includes(F.length))
1245
1245
  return null;
1246
- let A = F;
1247
- if ((F.length === 3 || F.length === 4) && (A = F.split("").map((P) => `${P}${P}`).join("")), !/^[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$/.test(A))
1246
+ let H = F;
1247
+ if ((F.length === 3 || F.length === 4) && (H = F.split("").map((P) => `${P}${P}`).join("")), !/^[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$/.test(H))
1248
1248
  return null;
1249
- const Z = Number.parseInt(A.slice(0, 2), 16), x = Number.parseInt(A.slice(2, 4), 16), W = Number.parseInt(A.slice(4, 6), 16), h = A.length === 8 ? Number.parseInt(A.slice(6, 8), 16) / 255 : 1;
1249
+ const Z = Number.parseInt(H.slice(0, 2), 16), x = Number.parseInt(H.slice(2, 4), 16), W = Number.parseInt(H.slice(4, 6), 16), h = H.length === 8 ? Number.parseInt(H.slice(6, 8), 16) / 255 : 1;
1250
1250
  return { r: Z, g: x, b: W, a: h, valid: !0, preview: `rgba(${Z}, ${x}, ${W}, ${h})` };
1251
1251
  }, p = (S) => {
1252
1252
  const F = S.trim().match(/^rgba?\((.*)\)$/i);
1253
1253
  if (!F)
1254
1254
  return null;
1255
- const A = F[1].split(",").map((q) => q.trim());
1256
- if (A.length !== 3 && A.length !== 4)
1255
+ const H = F[1].split(",").map((Y) => Y.trim());
1256
+ if (H.length !== 3 && H.length !== 4)
1257
1257
  return null;
1258
- const Z = Number(A[0]), x = Number(A[1]), W = Number(A[2]), h = A.length === 4 ? Number(A[3]) : 1;
1258
+ const Z = Number(H[0]), x = Number(H[1]), W = Number(H[2]), h = H.length === 4 ? Number(H[3]) : 1;
1259
1259
  if (![Z, x, W, h].every(Number.isFinite))
1260
1260
  return null;
1261
- const P = r(Z, 0, 255), K = r(x, 0, 255), H = r(W, 0, 255), V = r(h, 0, 1);
1262
- return { r: P, g: K, b: H, a: V, valid: !0, preview: `rgba(${P}, ${K}, ${H}, ${V})` };
1263
- }, m = (S, F, A) => {
1264
- const Z = (S % 360 + 360) % 360, x = r(F, 0, 100) / 100, W = r(A, 0, 100) / 100, h = (1 - Math.abs(2 * W - 1)) * x, P = h * (1 - Math.abs(Z / 60 % 2 - 1)), K = W - h / 2;
1265
- let H = 0, V = 0, q = 0;
1266
- return Z < 60 ? (H = h, V = P) : Z < 120 ? (H = P, V = h) : Z < 180 ? (V = h, q = P) : Z < 240 ? (V = P, q = h) : Z < 300 ? (H = P, q = h) : (H = h, q = P), {
1267
- r: Math.round((H + K) * 255),
1261
+ const P = r(Z, 0, 255), K = r(x, 0, 255), A = r(W, 0, 255), V = r(h, 0, 1);
1262
+ return { r: P, g: K, b: A, a: V, valid: !0, preview: `rgba(${P}, ${K}, ${A}, ${V})` };
1263
+ }, m = (S, F, H) => {
1264
+ const Z = (S % 360 + 360) % 360, x = r(F, 0, 100) / 100, W = r(H, 0, 100) / 100, h = (1 - Math.abs(2 * W - 1)) * x, P = h * (1 - Math.abs(Z / 60 % 2 - 1)), K = W - h / 2;
1265
+ let A = 0, V = 0, Y = 0;
1266
+ return Z < 60 ? (A = h, V = P) : Z < 120 ? (A = P, V = h) : Z < 180 ? (V = h, Y = P) : Z < 240 ? (V = P, Y = h) : Z < 300 ? (A = P, Y = h) : (A = h, Y = P), {
1267
+ r: Math.round((A + K) * 255),
1268
1268
  g: Math.round((V + K) * 255),
1269
- b: Math.round((q + K) * 255)
1269
+ b: Math.round((Y + K) * 255)
1270
1270
  };
1271
- }, $ = (S, F, A) => {
1272
- const Z = S / 255, x = F / 255, W = A / 255, h = Math.max(Z, x, W), P = Math.min(Z, x, W), K = h - P;
1273
- let H = 0;
1274
- K !== 0 && (h === Z ? H = (x - W) / K % 6 : h === x ? H = (W - Z) / K + 2 : H = (Z - x) / K + 4, H *= 60), H < 0 && (H += 360);
1275
- const V = (h + P) / 2, q = K === 0 ? 0 : K / (1 - Math.abs(2 * V - 1));
1276
- return { h: Math.round(H), s: Math.round(q * 100), l: Math.round(V * 100) };
1271
+ }, $ = (S, F, H) => {
1272
+ const Z = S / 255, x = F / 255, W = H / 255, h = Math.max(Z, x, W), P = Math.min(Z, x, W), K = h - P;
1273
+ let A = 0;
1274
+ K !== 0 && (h === Z ? A = (x - W) / K % 6 : h === x ? A = (W - Z) / K + 2 : A = (Z - x) / K + 4, A *= 60), A < 0 && (A += 360);
1275
+ const V = (h + P) / 2, Y = K === 0 ? 0 : K / (1 - Math.abs(2 * V - 1));
1276
+ return { h: Math.round(A), s: Math.round(Y * 100), l: Math.round(V * 100) };
1277
1277
  }, l = (S) => {
1278
1278
  const F = S.trim().match(/^hsla?\((.*)\)$/i);
1279
1279
  if (!F)
1280
1280
  return null;
1281
- const A = F[1].split(",").map((H) => H.trim().replace("%", ""));
1282
- if (A.length !== 3 && A.length !== 4)
1281
+ const H = F[1].split(",").map((A) => A.trim().replace("%", ""));
1282
+ if (H.length !== 3 && H.length !== 4)
1283
1283
  return null;
1284
- const Z = Number(A[0]), x = Number(A[1]), W = Number(A[2]), h = A.length === 4 ? Number(A[3]) : 1;
1284
+ const Z = Number(H[0]), x = Number(H[1]), W = Number(H[2]), h = H.length === 4 ? Number(H[3]) : 1;
1285
1285
  if (![Z, x, W, h].every(Number.isFinite))
1286
1286
  return null;
1287
1287
  const P = m(Z, x, W), K = r(h, 0, 1);
@@ -1289,20 +1289,20 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1289
1289
  }, _ = (S) => {
1290
1290
  const F = v(S) ?? p(S) ?? l(S);
1291
1291
  return F || { r: 59, g: 130, b: 246, a: 1, valid: !1, preview: "rgba(59, 130, 246, 1)" };
1292
- }, k = (S, F, A, Z) => {
1292
+ }, k = (S, F, H, Z) => {
1293
1293
  if (e.format === "rgb")
1294
- return e.alpha ? `rgba(${S}, ${F}, ${A}, ${Z.toFixed(2)})` : `rgb(${S}, ${F}, ${A})`;
1294
+ return e.alpha ? `rgba(${S}, ${F}, ${H}, ${Z.toFixed(2)})` : `rgb(${S}, ${F}, ${H})`;
1295
1295
  if (e.format === "hsl") {
1296
- const W = $(S, F, A);
1296
+ const W = $(S, F, H);
1297
1297
  return e.alpha ? `hsla(${W.h}, ${W.s}%, ${W.l}%, ${Z.toFixed(2)})` : `hsl(${W.h}, ${W.s}%, ${W.l}%)`;
1298
1298
  }
1299
- const x = `#${u(S)}${u(F)}${u(A)}`;
1299
+ const x = `#${u(S)}${u(F)}${u(H)}`;
1300
1300
  return e.alpha ? `${x}${u(Z * 255)}` : x;
1301
1301
  }, y = (S) => {
1302
1302
  const F = _(S);
1303
1303
  s.value = `#${u(F.r)}${u(F.g)}${u(F.b)}`, d.value = Math.round(r(F.a, 0, 1) * 100);
1304
1304
  };
1305
- ce(
1305
+ ve(
1306
1306
  () => e.modelValue,
1307
1307
  (S) => {
1308
1308
  y(S);
@@ -1319,8 +1319,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1319
1319
  const S = ["vf-color-picker", `vf-color-picker_${e.variant}`];
1320
1320
  return e.size !== "normal" && S.push(`vf-color-picker_${e.size}`), e.disabled && S.push("vf-color-picker_disabled"), S;
1321
1321
  }), w = () => {
1322
- const S = _(s.value), F = e.alpha ? d.value / 100 : 1, A = k(S.r, S.g, S.b, F);
1323
- a("update:modelValue", A), a("change", A);
1322
+ const S = _(s.value), F = e.alpha ? d.value / 100 : 1, H = k(S.r, S.g, S.b, F);
1323
+ a("update:modelValue", H), a("change", H);
1324
1324
  }, L = (S) => {
1325
1325
  const F = S.target;
1326
1326
  s.value = F.value, w();
@@ -1328,12 +1328,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1328
1328
  const F = S.target;
1329
1329
  d.value = r(Number(F.value), 0, 100), w();
1330
1330
  }, I = (S) => {
1331
- const F = S.target, A = _(F.value);
1332
- if (!A.valid) {
1331
+ const F = S.target, H = _(F.value);
1332
+ if (!H.valid) {
1333
1333
  F.value = C.value;
1334
1334
  return;
1335
1335
  }
1336
- s.value = `#${u(A.r)}${u(A.g)}${u(A.b)}`, e.alpha && (d.value = Math.round(A.a * 100)), w();
1336
+ s.value = `#${u(H.r)}${u(H.g)}${u(H.b)}`, e.alpha && (d.value = Math.round(H.a * 100)), w();
1337
1337
  }, O = (S) => {
1338
1338
  if (e.disabled || e.readonly)
1339
1339
  return;
@@ -1403,12 +1403,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1403
1403
  }, null, 40, Oa)
1404
1404
  ]),
1405
1405
  S.presets.length ? (c(), b("div", Aa, [
1406
- (c(!0), b(fe, null, be(S.presets, (A, Z) => (c(), b("button", {
1407
- key: `${A}-${Z}`,
1406
+ (c(!0), b(fe, null, he(S.presets, (H, Z) => (c(), b("button", {
1407
+ key: `${H}-${Z}`,
1408
1408
  class: "vf-color-picker__preset",
1409
1409
  type: "button",
1410
- style: ke({ backgroundColor: _(A).preview }),
1411
- onClick: (x) => O(A)
1410
+ style: ke({ backgroundColor: _(H).preview }),
1411
+ onClick: (x) => O(H)
1412
1412
  }, null, 12, Ha))), 128))
1413
1413
  ])) : Q("", !0)
1414
1414
  ])) : Q("", !0)
@@ -1499,7 +1499,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1499
1499
  class: ee(k.value)
1500
1500
  }, [
1501
1501
  w.$slots.prefix ? (c(), b("span", Wa, [
1502
- Y(w.$slots, "prefix")
1502
+ q(w.$slots, "prefix")
1503
1503
  ])) : Q("", !0),
1504
1504
  B("input", {
1505
1505
  ref: "control",
@@ -1515,7 +1515,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1515
1515
  onBlur: g
1516
1516
  }, null, 40, Ka),
1517
1517
  w.$slots.suffix ? (c(), b("span", Na, [
1518
- Y(w.$slots, "suffix")
1518
+ q(w.$slots, "suffix")
1519
1519
  ])) : Q("", !0)
1520
1520
  ], 2));
1521
1521
  }
@@ -1577,7 +1577,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1577
1577
  class: ee(p.value)
1578
1578
  }, [
1579
1579
  C.$slots.prefix ? (c(), b("span", Ga, [
1580
- Y(C.$slots, "prefix")
1580
+ q(C.$slots, "prefix")
1581
1581
  ])) : Q("", !0),
1582
1582
  B("input", {
1583
1583
  class: "vf-number-input__control",
@@ -1612,7 +1612,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1612
1612
  }, " - ", 8, Xa)
1613
1613
  ])) : Q("", !0),
1614
1614
  C.$slots.suffix ? (c(), b("span", Ua, [
1615
- Y(C.$slots, "suffix")
1615
+ q(C.$slots, "suffix")
1616
1616
  ])) : Q("", !0)
1617
1617
  ], 2));
1618
1618
  }
@@ -1622,6 +1622,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1622
1622
  modelValue: { default: void 0 },
1623
1623
  initialValues: { default: void 0 },
1624
1624
  validate: { type: Function, default: void 0 },
1625
+ submit: { type: Function, default: void 0 },
1626
+ mapSubmitError: { type: Function, default: void 0 },
1625
1627
  validateOn: { default: "submit" },
1626
1628
  disabled: { type: Boolean, default: !1 },
1627
1629
  novalidate: { type: Boolean, default: !0 },
@@ -1629,16 +1631,26 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1629
1631
  ariaLabel: { default: void 0 },
1630
1632
  ariaLabelledby: { default: void 0 }
1631
1633
  },
1632
- emits: ["update:modelValue", "change", "blur", "validate", "submit", "invalidSubmit", "reset"],
1634
+ emits: [
1635
+ "update:modelValue",
1636
+ "change",
1637
+ "blur",
1638
+ "validate",
1639
+ "submit",
1640
+ "submitSuccess",
1641
+ "submitError",
1642
+ "invalidSubmit",
1643
+ "reset"
1644
+ ],
1633
1645
  setup(n, { emit: o }) {
1634
- const a = n, e = o, t = N(null), i = N(D(S(a.initialValues, a.modelValue))), s = N(D(i.value)), d = N({}), r = N({}), u = N(!1);
1635
- ce(
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);
1647
+ ve(
1636
1648
  () => a.modelValue,
1637
1649
  (h) => {
1638
1650
  h !== void 0 && (M(h, s.value) || (s.value = D(h)));
1639
1651
  },
1640
1652
  { deep: !0 }
1641
- ), ce(
1653
+ ), ve(
1642
1654
  () => a.initialValues,
1643
1655
  (h) => {
1644
1656
  i.value = D(S(h, a.modelValue));
@@ -1682,7 +1694,17 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1682
1694
  e("invalidSubmit", D(r.value), K, h);
1683
1695
  return;
1684
1696
  }
1685
- e("submit", K, h);
1697
+ if (e("submit", K, h), !a.submit) {
1698
+ e("submitSuccess", K, void 0, h);
1699
+ return;
1700
+ }
1701
+ try {
1702
+ const A = await a.submit(K);
1703
+ e("submitSuccess", K, A, h);
1704
+ } catch (A) {
1705
+ const V = a.mapSubmitError ? a.mapSubmitError(A, K) : "Submit failed", Y = F(V);
1706
+ r.value = Y, e("submitError", A, D(Y), K, h), e("invalidSubmit", D(Y), K, h);
1707
+ }
1686
1708
  } finally {
1687
1709
  u.value = !1;
1688
1710
  }
@@ -1694,19 +1716,19 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1694
1716
  }, R = (h) => {
1695
1717
  h.preventDefault(), w(h);
1696
1718
  }, I = async (h) => {
1697
- const P = A(h.target);
1719
+ const P = H(h.target);
1698
1720
  if (!P)
1699
1721
  return;
1700
- const K = P.name.trim(), H = Z(P);
1701
- l(K, H), z("input") && await C("input");
1722
+ const K = P.name.trim(), A = Z(P);
1723
+ l(K, A), z("input") && await C("input");
1702
1724
  }, O = async (h) => {
1703
- const P = A(h.target);
1725
+ const P = H(h.target);
1704
1726
  if (!P)
1705
1727
  return;
1706
- const K = P.name.trim(), H = Z(P);
1707
- l(K, H), z("change") && await C("change");
1728
+ const K = P.name.trim(), A = Z(P);
1729
+ l(K, A), z("change") && await C("change");
1708
1730
  }, E = async (h) => {
1709
- const P = A(h.target);
1731
+ const P = H(h.target);
1710
1732
  if (!P)
1711
1733
  return;
1712
1734
  const K = P.name.trim();
@@ -1738,8 +1760,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1738
1760
  return !0;
1739
1761
  }
1740
1762
  if (T(h) && T(P)) {
1741
- const K = Object.keys(h), H = Object.keys(P);
1742
- if (K.length !== H.length)
1763
+ const K = Object.keys(h), A = Object.keys(P);
1764
+ if (K.length !== A.length)
1743
1765
  return !1;
1744
1766
  for (const V of K)
1745
1767
  if (!M(h[V], P[V]))
@@ -1752,8 +1774,8 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1752
1774
  const P = {};
1753
1775
  for (const K of h)
1754
1776
  if (!(!K || !T(K)))
1755
- for (const H in K)
1756
- P[H] = D(K[H]);
1777
+ for (const A in K)
1778
+ P[A] = D(K[A]);
1757
1779
  return P;
1758
1780
  }
1759
1781
  function F(h) {
@@ -1767,12 +1789,12 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1767
1789
  return {};
1768
1790
  const P = {};
1769
1791
  for (const K in h) {
1770
- const H = h[K];
1771
- typeof H == "string" && H && (P[K] = H);
1792
+ const A = h[K];
1793
+ typeof A == "string" && A && (P[K] = A);
1772
1794
  }
1773
1795
  return P;
1774
1796
  }
1775
- function A(h) {
1797
+ function H(h) {
1776
1798
  var P;
1777
1799
  return h && (h instanceof HTMLInputElement || h instanceof HTMLSelectElement || h instanceof HTMLTextAreaElement) && ((P = h.name) == null ? void 0 : P.trim()) ? h : null;
1778
1800
  }
@@ -1785,16 +1807,16 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1785
1807
  if (!P)
1786
1808
  return h.checked;
1787
1809
  const K = Array.from(P.querySelectorAll('input[type="checkbox"]')).filter(
1788
- (H) => H.name === h.name
1810
+ (A) => A.name === h.name
1789
1811
  );
1790
- return K.length > 1 || h.value !== "on" ? K.filter((H) => H.checked).map((H) => H.value) : h.checked;
1812
+ return K.length > 1 || h.value !== "on" ? K.filter((A) => A.checked).map((A) => A.value) : h.checked;
1791
1813
  }
1792
1814
  function W(h) {
1793
1815
  const P = t.value;
1794
1816
  if (!P)
1795
1817
  return h.value;
1796
1818
  const K = Array.from(P.querySelectorAll('input[type="radio"]')).find(
1797
- (H) => H.name === h.name && H.checked
1819
+ (A) => A.name === h.name && A.checked
1798
1820
  );
1799
1821
  return K == null ? void 0 : K.value;
1800
1822
  }
@@ -1812,7 +1834,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1812
1834
  onChange: O,
1813
1835
  onFocusout: E
1814
1836
  }, [
1815
- Y(h.$slots, "default", {
1837
+ q(h.$slots, "default", {
1816
1838
  values: s.value,
1817
1839
  errors: r.value,
1818
1840
  touched: d.value,
@@ -1859,13 +1881,13 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1859
1881
  class: "vf-form-field__label",
1860
1882
  for: t.value
1861
1883
  }, [
1862
- Y(m.$slots, "label", {}, () => [
1884
+ q(m.$slots, "label", {}, () => [
1863
1885
  me(j(m.label), 1)
1864
1886
  ]),
1865
1887
  m.required ? (c(), b("span", Ja, "*")) : Q("", !0)
1866
1888
  ], 8, Za)) : Q("", !0),
1867
1889
  B("div", eo, [
1868
- Y(m.$slots, "default", {
1890
+ q(m.$slots, "default", {
1869
1891
  id: t.value,
1870
1892
  describedBy: v.value,
1871
1893
  invalid: u.value,
@@ -1877,7 +1899,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1877
1899
  id: i.value,
1878
1900
  class: "vf-form-field__hint"
1879
1901
  }, [
1880
- Y(m.$slots, "hint", {}, () => [
1902
+ q(m.$slots, "hint", {}, () => [
1881
1903
  me(j(m.hint), 1)
1882
1904
  ])
1883
1905
  ], 8, to)) : Q("", !0),
@@ -1887,7 +1909,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1887
1909
  class: "vf-form-field__error",
1888
1910
  role: "alert"
1889
1911
  }, [
1890
- Y(m.$slots, "error", {}, () => [
1912
+ q(m.$slots, "error", {}, () => [
1891
1913
  me(j(m.error), 1)
1892
1914
  ])
1893
1915
  ], 8, ao)) : Q("", !0)
@@ -1949,7 +1971,7 @@ const Ut = /* @__PURE__ */ Wt(Kt, [["render", Xt]]), rc = /* @__PURE__ */ ne({
1949
1971
  },
1950
1972
  emits: ["update:modelValue", "input", "change", "focus", "blur", "action"],
1951
1973
  setup(n, { emit: o }) {
1952
- const a = n, e = o, t = N(null), i = f(() => {
1974
+ const a = n, e = o, t = G(null), i = f(() => {
1953
1975
  const g = ["vf-rich-text-editor", `vf-rich-text-editor_${a.variant}`];
1954
1976
  return a.size !== "normal" && g.push(`vf-rich-text-editor_${a.size}`), a.disabled && g.push("vf-rich-text-editor_disabled"), g;
1955
1977
  }), 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) => {
@@ -2039,7 +2061,7 @@ ${w}
2039
2061
  role: "toolbar",
2040
2062
  "aria-label": g.toolbarLabel
2041
2063
  }, [
2042
- (c(!0), b(fe, null, be(s.value, (L) => (c(), b("button", {
2064
+ (c(!0), b(fe, null, he(s.value, (L) => (c(), b("button", {
2043
2065
  key: L,
2044
2066
  type: "button",
2045
2067
  class: "vf-rich-text-editor__toolbar-button",
@@ -2092,7 +2114,7 @@ ${w}
2092
2114
  },
2093
2115
  emits: ["update:modelValue", "change", "reject", "focus", "blur"],
2094
2116
  setup(n, { emit: o }) {
2095
- const a = o, e = n, t = N(null), i = N(null), s = N(!1), d = f(() => Array.isArray(e.modelValue) ? e.modelValue : e.modelValue instanceof File ? [e.modelValue] : []), r = f(() => {
2117
+ 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(() => {
2096
2118
  const L = [
2097
2119
  "vf-file-upload",
2098
2120
  `vf-file-upload_${e.variant}`,
@@ -2190,7 +2212,7 @@ ${w}
2190
2212
  }, [
2191
2213
  B("div", uo, [
2192
2214
  d.value.length === 0 ? (c(), b("span", co, j(L.placeholder), 1)) : (c(), b("div", vo, [
2193
- (c(!0), b(fe, null, be(d.value, (I, O) => (c(), b("div", {
2215
+ (c(!0), b(fe, null, he(d.value, (I, O) => (c(), b("div", {
2194
2216
  key: u(I, O),
2195
2217
  class: "vf-file-upload__item"
2196
2218
  }, [
@@ -2487,19 +2509,19 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2487
2509
  let w = C, L = g;
2488
2510
  const R = _ ? Math.abs(k) : 0, I = R, O = R;
2489
2511
  if (Ke(e, s) && typeof window < "u") {
2490
- const T = I, D = window.innerWidth - s.clientWidth - I, M = D < T ? T : D, S = O, F = window.innerHeight - s.clientHeight - O, A = F < S ? S : F;
2491
- w < T ? w = T : w > M && (w = M), L < S ? L = S : L > A && (L = A), l ? (v.x = o + (w - C), v.y = a + (L - g)) : (v.x = w, v.y = L);
2492
- const Z = I, x = window.innerWidth - s.clientWidth - I, W = O, h = window.innerHeight - s.clientHeight - O, P = l ? Z + y : Z, K = l ? x + y : x, H = l ? W + z : W, V = l ? h + z : h;
2493
- return v.x < P ? v.x = P : v.x > K && (v.x = K), v.y < H ? v.y = H : v.y > V && (v.y = V), v;
2512
+ const T = I, D = window.innerWidth - s.clientWidth - I, M = D < T ? T : D, S = O, F = window.innerHeight - s.clientHeight - O, H = F < S ? S : F;
2513
+ w < T ? w = T : w > M && (w = M), L < S ? L = S : L > H && (L = H), l ? (v.x = o + (w - C), v.y = a + (L - g)) : (v.x = w, v.y = L);
2514
+ const Z = I, x = window.innerWidth - s.clientWidth - I, W = O, h = window.innerHeight - s.clientHeight - O, P = l ? Z + y : Z, K = l ? x + y : x, A = l ? W + z : W, V = l ? h + z : h;
2515
+ return v.x < P ? v.x = P : v.x > K && (v.x = K), v.y < A ? v.y = A : v.y > V && (v.y = V), v;
2494
2516
  }
2495
2517
  const E = Oe(s);
2496
2518
  if (E !== null) {
2497
- const T = Fe(r, s, e), D = T.left, M = T.left + T.width, S = T.top, F = T.top + T.height, A = E.scrollLeft + I, Z = et(E) - s.clientWidth - I, x = Z < A ? A : Z, W = E.scrollTop + O, h = tt(E) - s.clientHeight - O, P = h < W ? W : h, K = E.scrollLeft, H = et(E), V = E.scrollTop, q = tt(E);
2498
- M <= K ? w = A : D >= H && (w = x), F <= V ? L = W : S >= q && (L = P), L < W ? L = W : L > P && (L = P), w < A ? w = A : w > x && (w = x);
2519
+ const T = Fe(r, s, e), D = T.left, M = T.left + T.width, S = T.top, F = T.top + T.height, H = E.scrollLeft + I, Z = et(E) - s.clientWidth - I, x = Z < H ? H : Z, W = E.scrollTop + O, h = tt(E) - s.clientHeight - O, P = h < W ? W : h, K = E.scrollLeft, A = et(E), V = E.scrollTop, Y = tt(E);
2520
+ M <= K ? w = H : D >= A && (w = x), F <= V ? L = W : S >= Y && (L = P), L < W ? L = W : L > P && (L = P), w < H ? w = H : w > x && (w = x);
2499
2521
  }
2500
2522
  if (l ? (v.x = o + (w - C), v.y = a + (L - g)) : (v.x = w, v.y = L), E !== null) {
2501
- const T = E.scrollLeft + I, D = et(E) - s.clientWidth - I, M = E.scrollTop + O, S = tt(E) - s.clientHeight - O, F = l ? T + y : T, A = l ? D + y : D, Z = l ? M + z : M, x = l ? S + z : S;
2502
- v.x < F ? v.x = F : v.x > A && (v.x = A), v.y < Z ? v.y = Z : v.y > x && (v.y = x);
2523
+ const T = E.scrollLeft + I, D = et(E) - s.clientWidth - I, M = E.scrollTop + O, S = tt(E) - s.clientHeight - O, F = l ? T + y : T, H = l ? D + y : D, Z = l ? M + z : M, x = l ? S + z : S;
2524
+ v.x < F ? v.x = F : v.x > H && (v.x = H), v.y < Z ? v.y = Z : v.y > x && (v.y = x);
2503
2525
  }
2504
2526
  return v;
2505
2527
  }
@@ -2720,7 +2742,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2720
2742
  emits: ["update:modelValue", "change", "focus", "blur"],
2721
2743
  setup(n, { emit: o }) {
2722
2744
  let a = 0;
2723
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(!1), u = N("bottom"), v = N("bottom"), p = `vf-select-panel-${++a}`;
2745
+ 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}`;
2724
2746
  let m = null;
2725
2747
  const $ = f(() => t.options.map((E) => ({
2726
2748
  label: E[t.optionLabel],
@@ -2752,7 +2774,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2752
2774
  return;
2753
2775
  const E = s.value, T = d.value, D = async () => {
2754
2776
  const {
2755
- x: A,
2777
+ x: H,
2756
2778
  y: Z,
2757
2779
  placement: x
2758
2780
  } = await Me(E, T, {
@@ -2760,7 +2782,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2760
2782
  strategy: "fixed",
2761
2783
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
2762
2784
  });
2763
- v.value = x ?? u.value, T.style.minWidth = `${E.getBoundingClientRect().width}px`, T.style.left = `${A}px`, T.style.top = `${Z}px`;
2785
+ v.value = x ?? u.value, T.style.minWidth = `${E.getBoundingClientRect().width}px`, T.style.left = `${H}px`, T.style.top = `${Z}px`;
2764
2786
  }, M = async () => {
2765
2787
  await D();
2766
2788
  }, S = De(E, () => {
@@ -2775,13 +2797,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2775
2797
  }
2776
2798
  }, m.update();
2777
2799
  };
2778
- return ce(r, async (E) => {
2800
+ return ve(r, async (E) => {
2779
2801
  if (!E) {
2780
2802
  m && (m.destroy(), m = null);
2781
2803
  return;
2782
2804
  }
2783
2805
  await $e(), m || O(), m == null || m.update();
2784
- }), ce(
2806
+ }), ve(
2785
2807
  () => t.options,
2786
2808
  () => {
2787
2809
  m == null || m.update();
@@ -2822,7 +2844,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2822
2844
  "aria-hidden": "true"
2823
2845
  }, "▾", -1))
2824
2846
  ], 40, Po),
2825
- (c(), ge(Le, { to: "body" }, [
2847
+ (c(), be(Le, { to: "body" }, [
2826
2848
  ze(B("div", {
2827
2849
  id: p,
2828
2850
  ref_key: "panel",
@@ -2831,7 +2853,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2831
2853
  role: "listbox",
2832
2854
  "data-placement": v.value
2833
2855
  }, [
2834
- (c(!0), b(fe, null, be($.value, (D) => (c(), b("button", {
2856
+ (c(!0), b(fe, null, he($.value, (D) => (c(), b("button", {
2835
2857
  key: D.value,
2836
2858
  class: ee(["vf-select__option", { "is-active": y(D), "is-disabled": D.disabled }]),
2837
2859
  type: "button",
@@ -2872,7 +2894,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2872
2894
  emits: ["update:modelValue", "change", "focus", "blur", "search"],
2873
2895
  setup(n, { emit: o }) {
2874
2896
  let a = 0;
2875
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(!1), u = N(""), v = N(-1), p = N("bottom"), m = N("bottom"), $ = `vf-autocomplete-panel-${++a}`;
2897
+ 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}`;
2876
2898
  let l = null;
2877
2899
  const _ = f(() => t.options.map((h) => ({
2878
2900
  label: h[t.optionLabel],
@@ -2897,7 +2919,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2897
2919
  }
2898
2920
  let K = v.value;
2899
2921
  (K < 0 || K >= P.length) && (K = h > 0 ? -1 : P.length);
2900
- for (let H = 0; H < P.length; H += 1)
2922
+ for (let A = 0; A < P.length; A += 1)
2901
2923
  if (K = (K + h + P.length) % P.length, !P[K].disabled) {
2902
2924
  v.value = K;
2903
2925
  return;
@@ -2928,7 +2950,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2928
2950
  return;
2929
2951
  }
2930
2952
  R(1);
2931
- }, A = () => {
2953
+ }, H = () => {
2932
2954
  if (!r.value) {
2933
2955
  I();
2934
2956
  return;
@@ -2961,37 +2983,37 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
2961
2983
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
2962
2984
  });
2963
2985
  m.value = U ?? p.value, P.style.minWidth = `${h.getBoundingClientRect().width}px`, P.style.left = `${ae}px`, P.style.top = `${se}px`;
2964
- }, H = async () => {
2986
+ }, A = async () => {
2965
2987
  await K();
2966
2988
  }, V = De(h, () => {
2967
- H();
2968
- }), q = () => {
2969
- H();
2989
+ A();
2990
+ }), Y = () => {
2991
+ A();
2970
2992
  };
2971
- document.addEventListener("scroll", q, !0), window.addEventListener("resize", q, !1), l = {
2972
- update: H,
2993
+ document.addEventListener("scroll", Y, !0), window.addEventListener("resize", Y, !1), l = {
2994
+ update: A,
2973
2995
  destroy: () => {
2974
- V(), document.removeEventListener("scroll", q, !0), window.removeEventListener("resize", q, !1);
2996
+ V(), document.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y, !1);
2975
2997
  }
2976
2998
  }, l.update();
2977
2999
  };
2978
- return ce(
3000
+ return ve(
2979
3001
  () => t.modelValue,
2980
3002
  () => {
2981
3003
  var h;
2982
3004
  u.value = ((h = k.value) == null ? void 0 : h.label) ?? "";
2983
3005
  },
2984
3006
  { immediate: !0 }
2985
- ), ce(
3007
+ ), ve(
2986
3008
  () => t.options,
2987
3009
  () => {
2988
3010
  var h;
2989
3011
  r.value || (u.value = ((h = k.value) == null ? void 0 : h.label) ?? ""), l == null || l.update();
2990
3012
  },
2991
3013
  { deep: !0 }
2992
- ), ce(y, () => {
3014
+ ), ve(y, () => {
2993
3015
  v.value >= y.value.length && (v.value = L());
2994
- }), ce(r, async (h) => {
3016
+ }), ve(r, async (h) => {
2995
3017
  if (!h) {
2996
3018
  l && (l.destroy(), l = null);
2997
3019
  return;
@@ -3026,7 +3048,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3026
3048
  onClick: I,
3027
3049
  onKeydown: [
3028
3050
  pe(ie(F, ["prevent"]), ["down"]),
3029
- pe(ie(A, ["prevent"]), ["up"]),
3051
+ pe(ie(H, ["prevent"]), ["up"]),
3030
3052
  pe(ie(Z, ["prevent"]), ["enter"]),
3031
3053
  pe(ie(O, ["prevent"]), ["esc"]),
3032
3054
  pe(O, ["tab"])
@@ -3042,7 +3064,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3042
3064
  }, ["prevent"])),
3043
3065
  onClick: E
3044
3066
  }, " ▾ ", 40, Ho),
3045
- (c(), ge(Le, { to: "body" }, [
3067
+ (c(), be(Le, { to: "body" }, [
3046
3068
  ze(B("div", {
3047
3069
  id: $,
3048
3070
  ref_key: "panel",
@@ -3051,13 +3073,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3051
3073
  role: "listbox",
3052
3074
  "data-placement": m.value
3053
3075
  }, [
3054
- h.loading ? (c(), b("div", Ko, j(h.loadingText), 1)) : y.value.length > 0 ? (c(!0), b(fe, { key: 1 }, be(y.value, (K, H) => (c(), b("button", {
3055
- id: g(H),
3076
+ h.loading ? (c(), b("div", Ko, j(h.loadingText), 1)) : y.value.length > 0 ? (c(!0), b(fe, { key: 1 }, he(y.value, (K, A) => (c(), b("button", {
3077
+ id: g(A),
3056
3078
  key: K.value,
3057
3079
  class: ee(["vf-autocomplete__option", {
3058
3080
  "is-active": w(K),
3059
3081
  "is-disabled": K.disabled,
3060
- "is-highlighted": H === v.value
3082
+ "is-highlighted": A === v.value
3061
3083
  }]),
3062
3084
  type: "button",
3063
3085
  role: "option",
@@ -3103,7 +3125,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3103
3125
  emits: ["update:modelValue", "update:inputValue", "change", "focus", "blur", "search", "create"],
3104
3126
  setup(n, { emit: o }) {
3105
3127
  let a = 0;
3106
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(!1), u = N(""), v = N(-1), p = N("bottom"), m = N("bottom"), $ = `vf-combobox-panel-${++a}`;
3128
+ 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}`;
3107
3129
  let l = null;
3108
3130
  const _ = f(() => t.options.map((U) => ({
3109
3131
  label: U[t.optionLabel],
@@ -3145,7 +3167,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3145
3167
  return;
3146
3168
  }
3147
3169
  M();
3148
- }, A = () => {
3170
+ }, H = () => {
3149
3171
  const U = u.value.trim();
3150
3172
  return !U || !w.value ? !1 : (t.allowCreate && !C.value && e("create", U), T(U), E(U), S(), !0);
3151
3173
  }, Z = () => {
@@ -3164,7 +3186,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3164
3186
  }, K = (U) => {
3165
3187
  var X;
3166
3188
  e("blur", U), t.strict && u.value.trim() !== ((X = k.value) == null ? void 0 : X.label) && Z();
3167
- }, H = () => {
3189
+ }, A = () => {
3168
3190
  if (!r.value) {
3169
3191
  M();
3170
3192
  return;
@@ -3176,7 +3198,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3176
3198
  return;
3177
3199
  }
3178
3200
  D(-1);
3179
- }, q = () => {
3201
+ }, Y = () => {
3180
3202
  if (!r.value) {
3181
3203
  M();
3182
3204
  return;
@@ -3186,7 +3208,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3186
3208
  x(U);
3187
3209
  return;
3188
3210
  }
3189
- A() || t.strict && Z();
3211
+ H() || t.strict && Z();
3190
3212
  }, ae = (U) => {
3191
3213
  var re;
3192
3214
  if (!r.value || !i.value)
@@ -3198,7 +3220,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3198
3220
  return;
3199
3221
  const U = s.value, X = d.value, re = async () => {
3200
3222
  const {
3201
- x: G,
3223
+ x: N,
3202
3224
  y: oe,
3203
3225
  placement: le
3204
3226
  } = await Me(U, X, {
@@ -3206,7 +3228,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3206
3228
  strategy: "fixed",
3207
3229
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
3208
3230
  });
3209
- m.value = le ?? p.value, X.style.minWidth = `${U.getBoundingClientRect().width}px`, X.style.left = `${G}px`, X.style.top = `${oe}px`;
3231
+ m.value = le ?? p.value, X.style.minWidth = `${U.getBoundingClientRect().width}px`, X.style.left = `${N}px`, X.style.top = `${oe}px`;
3210
3232
  }, de = async () => {
3211
3233
  await re();
3212
3234
  }, ye = De(U, () => {
@@ -3221,29 +3243,29 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3221
3243
  }
3222
3244
  }, l.update();
3223
3245
  };
3224
- return ce(
3246
+ return ve(
3225
3247
  () => t.inputValue,
3226
3248
  (U) => {
3227
3249
  typeof U == "string" && (u.value = U);
3228
3250
  },
3229
3251
  { immediate: !0 }
3230
- ), ce(
3252
+ ), ve(
3231
3253
  () => t.modelValue,
3232
3254
  () => {
3233
3255
  var U;
3234
3256
  typeof t.inputValue != "string" && (u.value = ((U = k.value) == null ? void 0 : U.label) ?? "");
3235
3257
  },
3236
3258
  { immediate: !0 }
3237
- ), ce(
3259
+ ), ve(
3238
3260
  () => t.options,
3239
3261
  () => {
3240
3262
  var U;
3241
3263
  !r.value && t.strict && typeof t.inputValue != "string" && (u.value = ((U = k.value) == null ? void 0 : U.label) ?? ""), l == null || l.update();
3242
3264
  },
3243
3265
  { deep: !0 }
3244
- ), ce(z, () => {
3266
+ ), ve(z, () => {
3245
3267
  v.value >= z.value.length && (v.value = O());
3246
- }), ce(r, async (U) => {
3268
+ }), ve(r, async (U) => {
3247
3269
  if (!U) {
3248
3270
  l && (l.destroy(), l = null);
3249
3271
  return;
@@ -3277,9 +3299,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3277
3299
  onBlur: K,
3278
3300
  onClick: M,
3279
3301
  onKeydown: [
3280
- pe(ie(H, ["prevent"]), ["down"]),
3302
+ pe(ie(A, ["prevent"]), ["down"]),
3281
3303
  pe(ie(V, ["prevent"]), ["up"]),
3282
- pe(ie(q, ["prevent"]), ["enter"]),
3304
+ pe(ie(Y, ["prevent"]), ["enter"]),
3283
3305
  pe(ie(S, ["prevent"]), ["esc"]),
3284
3306
  pe(S, ["tab"])
3285
3307
  ]
@@ -3303,7 +3325,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3303
3325
  }, ["prevent"])),
3304
3326
  onClick: F
3305
3327
  }, " ▾ ", 40, Yo),
3306
- (c(), ge(Le, { to: "body" }, [
3328
+ (c(), be(Le, { to: "body" }, [
3307
3329
  ze(B("div", {
3308
3330
  id: $,
3309
3331
  ref_key: "panel",
@@ -3312,7 +3334,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3312
3334
  role: "listbox",
3313
3335
  "data-placement": m.value
3314
3336
  }, [
3315
- U.loading ? (c(), b("div", Xo, j(U.loadingText), 1)) : z.value.length > 0 ? (c(!0), b(fe, { key: 1 }, be(z.value, (re, de) => (c(), b("button", {
3337
+ U.loading ? (c(), b("div", Xo, j(U.loadingText), 1)) : z.value.length > 0 ? (c(!0), b(fe, { key: 1 }, he(z.value, (re, de) => (c(), b("button", {
3316
3338
  id: R(de),
3317
3339
  key: re.value,
3318
3340
  class: ee(["vf-combobox__option", {
@@ -3369,7 +3391,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3369
3391
  emits: ["update:modelValue", "change", "search", "focus", "blur"],
3370
3392
  setup(n, { emit: o }) {
3371
3393
  let a = 0;
3372
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(null), u = N(!1), v = N(""), p = N(-1), m = N("bottom"), $ = N("bottom"), l = `vf-multiselect-panel-${++a}`;
3394
+ 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}`;
3373
3395
  let _ = null;
3374
3396
  const k = f(() => t.options.map((V) => ({
3375
3397
  label: V[t.optionLabel],
@@ -3379,7 +3401,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3379
3401
  if (!t.filter)
3380
3402
  return k.value;
3381
3403
  const V = v.value.trim().toLowerCase();
3382
- return V ? k.value.filter((q) => q.label.toLowerCase().includes(V)) : k.value;
3404
+ return V ? k.value.filter((Y) => Y.label.toLowerCase().includes(V)) : k.value;
3383
3405
  }), 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(() => {
3384
3406
  const V = ["vf-multiselect", `vf-multiselect_${t.variant}`, u.value ? "vf-multiselect_open" : ""];
3385
3407
  return t.size !== "normal" && V.push(`vf-multiselect_${t.size}`), t.disabled && V.push("vf-multiselect_disabled"), V.filter(Boolean);
@@ -3388,7 +3410,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3388
3410
  }, E = (V) => {
3389
3411
  if (!(V.disabled || t.readonly)) {
3390
3412
  if (I(V)) {
3391
- O(y.value.filter((q) => q !== V.value));
3413
+ O(y.value.filter((Y) => Y !== V.value));
3392
3414
  return;
3393
3415
  }
3394
3416
  O([...y.value, V.value]);
@@ -3396,15 +3418,15 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3396
3418
  }, T = () => {
3397
3419
  t.readonly || O([]);
3398
3420
  }, D = (V) => {
3399
- const q = z.value;
3400
- if (!q.length) {
3421
+ const Y = z.value;
3422
+ if (!Y.length) {
3401
3423
  p.value = -1;
3402
3424
  return;
3403
3425
  }
3404
3426
  let ae = p.value;
3405
- (ae < 0 || ae >= q.length) && (ae = V > 0 ? -1 : q.length);
3406
- for (let se = 0; se < q.length; se += 1)
3407
- if (ae = (ae + V + q.length) % q.length, !q[ae].disabled) {
3427
+ (ae < 0 || ae >= Y.length) && (ae = V > 0 ? -1 : Y.length);
3428
+ for (let se = 0; se < Y.length; se += 1)
3429
+ if (ae = (ae + V + Y.length) % Y.length, !Y[ae].disabled) {
3408
3430
  p.value = ae;
3409
3431
  return;
3410
3432
  }
@@ -3420,7 +3442,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3420
3442
  return;
3421
3443
  }
3422
3444
  M();
3423
- }, A = () => {
3445
+ }, H = () => {
3424
3446
  if (!u.value) {
3425
3447
  M();
3426
3448
  return;
@@ -3440,28 +3462,28 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3440
3462
  const V = z.value[p.value];
3441
3463
  V && !V.disabled && E(V);
3442
3464
  }, W = (V) => {
3443
- const q = V.target;
3444
- v.value = q.value, e("search", q.value), p.value = R();
3465
+ const Y = V.target;
3466
+ v.value = Y.value, e("search", Y.value), p.value = R();
3445
3467
  }, h = (V) => e("focus", V), P = (V) => e("blur", V), K = (V) => {
3446
3468
  var ae;
3447
3469
  if (!u.value || !i.value)
3448
3470
  return;
3449
- const q = V.target;
3450
- i.value.contains(q) || (ae = d.value) != null && ae.contains(q) || S();
3451
- }, H = () => {
3471
+ const Y = V.target;
3472
+ i.value.contains(Y) || (ae = d.value) != null && ae.contains(Y) || S();
3473
+ }, A = () => {
3452
3474
  if (!s.value || !d.value)
3453
3475
  return;
3454
- const V = s.value, q = d.value, ae = async () => {
3476
+ const V = s.value, Y = d.value, ae = async () => {
3455
3477
  const {
3456
3478
  x: re,
3457
3479
  y: de,
3458
3480
  placement: ye
3459
- } = await Me(V, q, {
3481
+ } = await Me(V, Y, {
3460
3482
  placement: m.value,
3461
3483
  strategy: "fixed",
3462
3484
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
3463
3485
  });
3464
- $.value = ye ?? m.value, q.style.minWidth = `${V.getBoundingClientRect().width}px`, q.style.left = `${re}px`, q.style.top = `${de}px`;
3486
+ $.value = ye ?? m.value, Y.style.minWidth = `${V.getBoundingClientRect().width}px`, Y.style.left = `${re}px`, Y.style.top = `${de}px`;
3465
3487
  }, se = async () => {
3466
3488
  await ae();
3467
3489
  }, U = De(V, () => {
@@ -3476,25 +3498,25 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3476
3498
  }
3477
3499
  }, _.update();
3478
3500
  };
3479
- return ce(
3501
+ return ve(
3480
3502
  () => t.options,
3481
3503
  () => {
3482
3504
  p.value >= z.value.length && (p.value = R()), _ == null || _.update();
3483
3505
  },
3484
3506
  { deep: !0 }
3485
- ), ce(u, async (V) => {
3507
+ ), ve(u, async (V) => {
3486
3508
  if (!V) {
3487
3509
  _ && (_.destroy(), _ = null);
3488
3510
  return;
3489
3511
  }
3490
- await $e(), _ || H(), _ == null || _.update();
3491
- }), ce(z, () => {
3512
+ await $e(), _ || A(), _ == null || _.update();
3513
+ }), ve(z, () => {
3492
3514
  p.value >= z.value.length && (p.value = R());
3493
3515
  }), Ve(() => {
3494
3516
  document.addEventListener("click", K);
3495
3517
  }), we(() => {
3496
3518
  document.removeEventListener("click", K), _ == null || _.destroy(), _ = null;
3497
- }), (V, q) => (c(), b("div", {
3519
+ }), (V, Y) => (c(), b("div", {
3498
3520
  ref_key: "root",
3499
3521
  ref: i,
3500
3522
  class: ee(w.value)
@@ -3510,7 +3532,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3510
3532
  "aria-haspopup": "listbox",
3511
3533
  onClick: F,
3512
3534
  onKeydown: [
3513
- pe(ie(A, ["prevent"]), ["down"]),
3535
+ pe(ie(H, ["prevent"]), ["down"]),
3514
3536
  pe(ie(Z, ["prevent"]), ["up"]),
3515
3537
  pe(ie(x, ["prevent"]), ["enter"]),
3516
3538
  pe(ie(S, ["prevent"]), ["esc"])
@@ -3521,7 +3543,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3521
3543
  B("span", {
3522
3544
  class: ee(["vf-multiselect__label", { "vf-multiselect__label_placeholder": y.value.length === 0 }])
3523
3545
  }, j(g.value), 3),
3524
- q[0] || (q[0] = B("span", {
3546
+ Y[0] || (Y[0] = B("span", {
3525
3547
  class: "vf-multiselect__chevron",
3526
3548
  "aria-hidden": "true"
3527
3549
  }, "▾", -1))
@@ -3533,7 +3555,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3533
3555
  "aria-label": "Clear selection",
3534
3556
  onClick: ie(T, ["stop"])
3535
3557
  }, " ✕ ")) : Q("", !0),
3536
- (c(), ge(Le, { to: "body" }, [
3558
+ (c(), be(Le, { to: "body" }, [
3537
3559
  ze(B("div", {
3538
3560
  id: l,
3539
3561
  ref_key: "panel",
@@ -3553,14 +3575,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3553
3575
  placeholder: V.searchPlaceholder,
3554
3576
  onInput: W,
3555
3577
  onKeydown: [
3556
- pe(ie(A, ["prevent"]), ["down"]),
3578
+ pe(ie(H, ["prevent"]), ["down"]),
3557
3579
  pe(ie(Z, ["prevent"]), ["up"]),
3558
3580
  pe(ie(x, ["prevent"]), ["enter"]),
3559
3581
  pe(ie(S, ["prevent"]), ["esc"])
3560
3582
  ]
3561
3583
  }, null, 40, tr)
3562
3584
  ])) : Q("", !0),
3563
- V.loading ? (c(), b("div", ar, j(V.loadingText), 1)) : z.value.length > 0 ? (c(!0), b(fe, { key: 2 }, be(z.value, (ae, se) => (c(), b("button", {
3585
+ V.loading ? (c(), b("div", ar, j(V.loadingText), 1)) : z.value.length > 0 ? (c(!0), b(fe, { key: 2 }, he(z.value, (ae, se) => (c(), b("button", {
3564
3586
  id: L(se),
3565
3587
  key: ae.value,
3566
3588
  class: ee(["vf-multiselect__option", {
@@ -3613,7 +3635,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3613
3635
  emits: ["update:modelValue", "change", "focus", "blur", "search", "add", "remove", "reject"],
3614
3636
  setup(n, { emit: o }) {
3615
3637
  let a = 0;
3616
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(""), u = N(!1), v = N(-1), p = N("bottom"), m = N("bottom"), $ = `vf-tag-input-panel-${++a}`;
3638
+ 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}`;
3617
3639
  let l = null;
3618
3640
  const _ = f(() => Array.isArray(t.modelValue) ? t.modelValue : []), k = f(() => t.options.map((te) => ({
3619
3641
  label: te[t.optionLabel],
@@ -3623,8 +3645,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3623
3645
  const te = k.value.filter((oe) => !y.value.has(String(oe.value)));
3624
3646
  if (!t.filter)
3625
3647
  return te;
3626
- const G = r.value.trim().toLowerCase();
3627
- return G ? te.filter((oe) => oe.label.toLowerCase().includes(G)) : te;
3648
+ const N = r.value.trim().toLowerCase();
3649
+ return N ? te.filter((oe) => oe.label.toLowerCase().includes(N)) : te;
3628
3650
  }), C = f(() => new Map(k.value.map((te) => [String(te.value), te.label]))), g = f(() => {
3629
3651
  if (!(!u.value || v.value < 0))
3630
3652
  return L(v.value);
@@ -3633,11 +3655,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3633
3655
  return t.size !== "normal" && te.push(`vf-tag-input_${t.size}`), t.disabled && te.push("vf-tag-input_disabled"), te.filter(Boolean);
3634
3656
  }), L = (te) => `${$}-option-${te}`, R = () => z.value.findIndex((te) => !te.disabled), I = (te) => C.value.get(String(te)) ?? String(te), O = (te) => {
3635
3657
  e("update:modelValue", te), e("change", te);
3636
- }, E = (te, G) => {
3637
- e("reject", { reason: te, value: G });
3638
- }, T = (te) => t.readonly ? (E("readonly", te), !1) : te ? y.value.has(te) ? (E("duplicate", te), !1) : typeof t.maxTags == "number" && _.value.length >= t.maxTags ? (E("maxTags", te), !1) : t.validateTag && !t.validateTag(te) ? (E("invalid", te), !1) : !0 : !1, D = (te, G) => {
3658
+ }, E = (te, N) => {
3659
+ e("reject", { reason: te, value: N });
3660
+ }, T = (te) => t.readonly ? (E("readonly", te), !1) : te ? y.value.has(te) ? (E("duplicate", te), !1) : typeof t.maxTags == "number" && _.value.length >= t.maxTags ? (E("maxTags", te), !1) : t.validateTag && !t.validateTag(te) ? (E("invalid", te), !1) : !0 : !1, D = (te, N) => {
3639
3661
  const oe = typeof te == "string" ? te.trim() : String(te);
3640
- return T(oe) ? (O([..._.value, te]), e("add", { value: te, source: G }), r.value = "", v.value = R(), !0) : !1;
3662
+ return T(oe) ? (O([..._.value, te]), e("add", { value: te, source: N }), r.value = "", v.value = R(), !0) : !1;
3641
3663
  }, M = (te) => {
3642
3664
  te.disabled || t.readonly || D(te.value, "option");
3643
3665
  }, S = () => {
@@ -3648,23 +3670,23 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3648
3670
  }, F = (te) => {
3649
3671
  if (t.readonly)
3650
3672
  return;
3651
- const G = _.value[te];
3652
- if (G === void 0)
3673
+ const N = _.value[te];
3674
+ if (N === void 0)
3653
3675
  return;
3654
- const oe = _.value.filter((le, he) => he !== te);
3655
- O(oe), e("remove", G);
3656
- }, A = () => {
3676
+ const oe = _.value.filter((le, ge) => ge !== te);
3677
+ O(oe), e("remove", N);
3678
+ }, H = () => {
3657
3679
  t.readonly || _.value.length !== 0 && (O([]), e("remove", [..._.value]));
3658
3680
  }, Z = (te) => {
3659
- const G = z.value;
3660
- if (!G.length) {
3681
+ const N = z.value;
3682
+ if (!N.length) {
3661
3683
  v.value = -1;
3662
3684
  return;
3663
3685
  }
3664
3686
  let oe = v.value;
3665
- (oe < 0 || oe >= G.length) && (oe = te > 0 ? -1 : G.length);
3666
- for (let le = 0; le < G.length; le += 1)
3667
- if (oe = (oe + te + G.length) % G.length, !G[oe].disabled) {
3687
+ (oe < 0 || oe >= N.length) && (oe = te > 0 ? -1 : N.length);
3688
+ for (let le = 0; le < N.length; le += 1)
3689
+ if (oe = (oe + te + N.length) % N.length, !N[oe].disabled) {
3668
3690
  v.value = oe;
3669
3691
  return;
3670
3692
  }
@@ -3683,13 +3705,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3683
3705
  var te;
3684
3706
  (te = s.value) == null || te.focus();
3685
3707
  }, K = (te) => {
3686
- const G = te.target;
3687
- r.value = G.value, e("search", G.value), x(), v.value = R();
3688
- }, H = (te) => {
3708
+ const N = te.target;
3709
+ r.value = N.value, e("search", N.value), x(), v.value = R();
3710
+ }, A = (te) => {
3689
3711
  e("focus", te), x();
3690
3712
  }, V = (te) => {
3691
3713
  e("blur", te);
3692
- }, q = () => {
3714
+ }, Y = () => {
3693
3715
  if (!u.value) {
3694
3716
  x();
3695
3717
  return;
@@ -3720,25 +3742,25 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3720
3742
  var oe;
3721
3743
  if (!u.value || !i.value)
3722
3744
  return;
3723
- const G = te.target;
3724
- i.value.contains(G) || (oe = d.value) != null && oe.contains(G) || W();
3745
+ const N = te.target;
3746
+ i.value.contains(N) || (oe = d.value) != null && oe.contains(N) || W();
3725
3747
  }, ye = () => {
3726
3748
  if (!i.value || !d.value)
3727
3749
  return;
3728
- const te = i.value, G = d.value, oe = async () => {
3750
+ const te = i.value, N = d.value, oe = async () => {
3729
3751
  const {
3730
3752
  x: ue,
3731
- y: ve,
3753
+ y: ce,
3732
3754
  placement: _e
3733
- } = await Me(te, G, {
3755
+ } = await Me(te, N, {
3734
3756
  placement: p.value,
3735
3757
  strategy: "fixed",
3736
3758
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
3737
3759
  });
3738
- m.value = _e ?? p.value, G.style.minWidth = `${te.getBoundingClientRect().width}px`, G.style.left = `${ue}px`, G.style.top = `${ve}px`;
3760
+ m.value = _e ?? p.value, N.style.minWidth = `${te.getBoundingClientRect().width}px`, N.style.left = `${ue}px`, N.style.top = `${ce}px`;
3739
3761
  }, le = async () => {
3740
3762
  await oe();
3741
- }, he = De(te, () => {
3763
+ }, ge = De(te, () => {
3742
3764
  le();
3743
3765
  }), J = () => {
3744
3766
  le();
@@ -3746,19 +3768,19 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3746
3768
  document.addEventListener("scroll", J, !0), window.addEventListener("resize", J, !1), l = {
3747
3769
  update: le,
3748
3770
  destroy: () => {
3749
- he(), document.removeEventListener("scroll", J, !0), window.removeEventListener("resize", J, !1);
3771
+ ge(), document.removeEventListener("scroll", J, !0), window.removeEventListener("resize", J, !1);
3750
3772
  }
3751
3773
  }, l.update();
3752
3774
  };
3753
- return ce(
3775
+ return ve(
3754
3776
  () => t.options,
3755
3777
  () => {
3756
3778
  v.value >= z.value.length && (v.value = R()), l == null || l.update();
3757
3779
  },
3758
3780
  { deep: !0 }
3759
- ), ce(z, () => {
3781
+ ), ve(z, () => {
3760
3782
  v.value >= z.value.length && (v.value = R());
3761
- }), ce(u, async (te) => {
3783
+ }), ve(u, async (te) => {
3762
3784
  if (!te) {
3763
3785
  l && (l.destroy(), l = null);
3764
3786
  return;
@@ -3768,14 +3790,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3768
3790
  document.addEventListener("click", de);
3769
3791
  }), we(() => {
3770
3792
  document.removeEventListener("click", de), l == null || l.destroy(), l = null;
3771
- }), (te, G) => (c(), b("div", {
3793
+ }), (te, N) => (c(), b("div", {
3772
3794
  ref_key: "root",
3773
3795
  ref: i,
3774
3796
  class: ee(w.value),
3775
3797
  onClick: P
3776
3798
  }, [
3777
3799
  B("div", sr, [
3778
- (c(!0), b(fe, null, be(_.value, (oe, le) => (c(), b("span", {
3800
+ (c(!0), b(fe, null, he(_.value, (oe, le) => (c(), b("span", {
3779
3801
  key: `${String(oe)}-${le}`,
3780
3802
  class: "vf-tag-input__tag"
3781
3803
  }, [
@@ -3785,7 +3807,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3785
3807
  type: "button",
3786
3808
  disabled: te.disabled || te.readonly,
3787
3809
  "aria-label": `Remove ${I(oe)}`,
3788
- onClick: ie((he) => F(le), ["stop"])
3810
+ onClick: ie((ge) => F(le), ["stop"])
3789
3811
  }, " × ", 8, dr)
3790
3812
  ]))), 128)),
3791
3813
  B("input", {
@@ -3803,10 +3825,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3803
3825
  "aria-controls": $,
3804
3826
  "aria-activedescendant": g.value,
3805
3827
  onInput: K,
3806
- onFocus: H,
3828
+ onFocus: A,
3807
3829
  onBlur: V,
3808
3830
  onKeydown: [
3809
- pe(ie(q, ["prevent"]), ["down"]),
3831
+ pe(ie(Y, ["prevent"]), ["down"]),
3810
3832
  pe(ie(ae, ["prevent"]), ["up"]),
3811
3833
  pe(ie(se, ["prevent"]), ["enter"]),
3812
3834
  pe(ie(W, ["prevent"]), ["esc"]),
@@ -3821,7 +3843,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3821
3843
  class: "vf-tag-input__clear",
3822
3844
  type: "button",
3823
3845
  "aria-label": "Clear tags",
3824
- onClick: ie(A, ["stop"])
3846
+ onClick: ie(H, ["stop"])
3825
3847
  }, " ✕ ")) : Q("", !0),
3826
3848
  B("button", {
3827
3849
  class: "vf-tag-input__chevron",
@@ -3829,11 +3851,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3829
3851
  disabled: te.disabled,
3830
3852
  "aria-hidden": "true",
3831
3853
  tabindex: "-1",
3832
- onMousedown: G[0] || (G[0] = ie(() => {
3854
+ onMousedown: N[0] || (N[0] = ie(() => {
3833
3855
  }, ["prevent"])),
3834
3856
  onClick: ie(h, ["stop"])
3835
3857
  }, " ▾ ", 40, cr),
3836
- (c(), ge(Le, { to: "body" }, [
3858
+ (c(), be(Le, { to: "body" }, [
3837
3859
  ze(B("div", {
3838
3860
  id: $,
3839
3861
  ref_key: "panel",
@@ -3842,7 +3864,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3842
3864
  role: "listbox",
3843
3865
  "data-placement": m.value
3844
3866
  }, [
3845
- te.loading ? (c(), b("div", fr, j(te.loadingText), 1)) : z.value.length > 0 ? (c(!0), b(fe, { key: 1 }, be(z.value, (oe, le) => (c(), b("button", {
3867
+ te.loading ? (c(), b("div", fr, j(te.loadingText), 1)) : z.value.length > 0 ? (c(!0), b(fe, { key: 1 }, he(z.value, (oe, le) => (c(), b("button", {
3846
3868
  id: L(le),
3847
3869
  key: oe.value,
3848
3870
  class: ee(["vf-tag-input__option", {
@@ -3852,9 +3874,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3852
3874
  type: "button",
3853
3875
  role: "option",
3854
3876
  disabled: oe.disabled,
3855
- onMousedown: G[1] || (G[1] = ie(() => {
3877
+ onMousedown: N[1] || (N[1] = ie(() => {
3856
3878
  }, ["prevent"])),
3857
- onClick: (he) => M(oe)
3879
+ onClick: (ge) => M(oe)
3858
3880
  }, j(oe.label), 43, pr))), 128)) : (c(), b("div", mr, j(te.emptyText), 1))
3859
3881
  ], 8, vr), [
3860
3882
  [Se, u.value]
@@ -3885,9 +3907,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3885
3907
  emits: ["update:modelValue", "change", "focus", "blur"],
3886
3908
  setup(n, { emit: o }) {
3887
3909
  let a = 0;
3888
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(!1), u = N("bottom"), v = N("bottom"), p = `vf-datepicker-panel-${++a}`, m = N(x(A(t.modelValue) ?? /* @__PURE__ */ new Date()));
3910
+ 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()));
3889
3911
  let $ = null;
3890
- const l = f(() => A(t.modelValue)), _ = f(() => A(t.min)), k = f(() => A(t.max)), y = f(() => l.value ? l.value.toLocaleDateString(t.locale, {
3912
+ const l = f(() => H(t.modelValue)), _ = f(() => H(t.min)), k = f(() => H(t.max)), y = f(() => l.value ? l.value.toLocaleDateString(t.locale, {
3891
3913
  year: "numeric",
3892
3914
  month: "short",
3893
3915
  day: "numeric"
@@ -3895,13 +3917,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3895
3917
  year: "numeric",
3896
3918
  month: "long"
3897
3919
  })), C = f(() => {
3898
- const V = new Intl.DateTimeFormat(t.locale, { weekday: "short" }), q = new Date(2026, 0, 4);
3920
+ const V = new Intl.DateTimeFormat(t.locale, { weekday: "short" }), Y = new Date(2026, 0, 4);
3899
3921
  return Array.from({ length: 7 }, (ae, se) => {
3900
- const U = (se + t.firstDayOfWeek) % 7, X = new Date(q);
3901
- return X.setDate(q.getDate() + U), V.format(X);
3922
+ const U = (se + t.firstDayOfWeek) % 7, X = new Date(Y);
3923
+ return X.setDate(Y.getDate() + U), V.format(X);
3902
3924
  });
3903
3925
  }), g = f(() => {
3904
- const V = P(m.value, t.firstDayOfWeek), q = l.value ? K(l.value) : null, ae = K(/* @__PURE__ */ new Date());
3926
+ const V = P(m.value, t.firstDayOfWeek), Y = l.value ? K(l.value) : null, ae = K(/* @__PURE__ */ new Date());
3905
3927
  return Array.from({ length: 42 }, (se, U) => {
3906
3928
  const X = h(V, U), re = K(X);
3907
3929
  return {
@@ -3910,8 +3932,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3910
3932
  date: X,
3911
3933
  day: X.getDate(),
3912
3934
  inCurrentMonth: X.getMonth() === m.value.getMonth(),
3913
- isDisabled: H(X, _.value, k.value),
3914
- isSelected: q === re,
3935
+ isDisabled: A(X, _.value, k.value),
3936
+ isSelected: Y === re,
3915
3937
  isToday: re === ae
3916
3938
  };
3917
3939
  });
@@ -3933,30 +3955,30 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3933
3955
  }, D = () => {
3934
3956
  m.value = W(m.value, 1);
3935
3957
  }, M = (V) => {
3936
- if (t.readonly || H(V, _.value, k.value))
3958
+ if (t.readonly || A(V, _.value, k.value))
3937
3959
  return;
3938
- const q = K(V);
3939
- e("update:modelValue", q), e("change", q), O();
3960
+ const Y = K(V);
3961
+ e("update:modelValue", Y), e("change", Y), O();
3940
3962
  }, S = (V) => {
3941
3963
  var ae;
3942
3964
  if (!r.value || !i.value)
3943
3965
  return;
3944
- const q = V.target;
3945
- i.value.contains(q) || (ae = d.value) != null && ae.contains(q) || O();
3966
+ const Y = V.target;
3967
+ i.value.contains(Y) || (ae = d.value) != null && ae.contains(Y) || O();
3946
3968
  }, F = () => {
3947
3969
  if (!s.value || !d.value)
3948
3970
  return;
3949
- const V = s.value, q = d.value, ae = async () => {
3971
+ const V = s.value, Y = d.value, ae = async () => {
3950
3972
  const {
3951
3973
  x: re,
3952
3974
  y: de,
3953
3975
  placement: ye
3954
- } = await Me(V, q, {
3976
+ } = await Me(V, Y, {
3955
3977
  placement: u.value,
3956
3978
  strategy: "fixed",
3957
3979
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
3958
3980
  });
3959
- v.value = ye ?? u.value, q.style.left = `${re}px`, q.style.top = `${de}px`;
3981
+ v.value = ye ?? u.value, Y.style.left = `${re}px`, Y.style.top = `${de}px`;
3960
3982
  }, se = async () => {
3961
3983
  await ae();
3962
3984
  }, U = De(V, () => {
@@ -3971,19 +3993,19 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3971
3993
  }
3972
3994
  }, $.update();
3973
3995
  };
3974
- ce(
3996
+ ve(
3975
3997
  () => t.modelValue,
3976
3998
  (V) => {
3977
- const q = A(V);
3978
- q && (m.value = x(q));
3999
+ const Y = H(V);
4000
+ Y && (m.value = x(Y));
3979
4001
  },
3980
4002
  { immediate: !0 }
3981
- ), ce(
4003
+ ), ve(
3982
4004
  () => [t.min, t.max],
3983
4005
  () => {
3984
4006
  $ == null || $.update();
3985
4007
  }
3986
- ), ce(r, async (V) => {
4008
+ ), ve(r, async (V) => {
3987
4009
  if (!V) {
3988
4010
  $ && ($.destroy(), $ = null);
3989
4011
  return;
@@ -3994,13 +4016,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
3994
4016
  }), we(() => {
3995
4017
  document.removeEventListener("click", S), $ == null || $.destroy(), $ = null;
3996
4018
  });
3997
- function A(V) {
4019
+ function H(V) {
3998
4020
  if (!V)
3999
4021
  return null;
4000
- const q = V.match(/^(\d{4})-(\d{2})-(\d{2})$/);
4001
- if (!q)
4022
+ const Y = V.match(/^(\d{4})-(\d{2})-(\d{2})$/);
4023
+ if (!Y)
4002
4024
  return null;
4003
- const ae = Number(q[1]), se = Number(q[2]) - 1, U = Number(q[3]), X = new Date(ae, se, U);
4025
+ const ae = Number(Y[1]), se = Number(Y[2]) - 1, U = Number(Y[3]), X = new Date(ae, se, U);
4004
4026
  return X.getFullYear() !== ae || X.getMonth() !== se || X.getDate() !== U ? null : Z(X);
4005
4027
  }
4006
4028
  function Z(V) {
@@ -4009,25 +4031,25 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4009
4031
  function x(V) {
4010
4032
  return new Date(V.getFullYear(), V.getMonth(), 1);
4011
4033
  }
4012
- function W(V, q) {
4013
- return new Date(V.getFullYear(), V.getMonth() + q, 1);
4034
+ function W(V, Y) {
4035
+ return new Date(V.getFullYear(), V.getMonth() + Y, 1);
4014
4036
  }
4015
- function h(V, q) {
4016
- return new Date(V.getFullYear(), V.getMonth(), V.getDate() + q);
4037
+ function h(V, Y) {
4038
+ return new Date(V.getFullYear(), V.getMonth(), V.getDate() + Y);
4017
4039
  }
4018
- function P(V, q) {
4019
- const ae = x(V), U = (ae.getDay() - q + 7) % 7;
4040
+ function P(V, Y) {
4041
+ const ae = x(V), U = (ae.getDay() - Y + 7) % 7;
4020
4042
  return h(ae, -U);
4021
4043
  }
4022
4044
  function K(V) {
4023
- const q = V.getFullYear(), ae = `${V.getMonth() + 1}`.padStart(2, "0"), se = `${V.getDate()}`.padStart(2, "0");
4024
- return `${q}-${ae}-${se}`;
4045
+ const Y = V.getFullYear(), ae = `${V.getMonth() + 1}`.padStart(2, "0"), se = `${V.getDate()}`.padStart(2, "0");
4046
+ return `${Y}-${ae}-${se}`;
4025
4047
  }
4026
- function H(V, q, ae) {
4048
+ function A(V, Y, ae) {
4027
4049
  const se = Z(V).getTime();
4028
- return !!(q && se < q.getTime() || ae && se > ae.getTime());
4050
+ return !!(Y && se < Y.getTime() || ae && se > ae.getTime());
4029
4051
  }
4030
- return (V, q) => (c(), b("div", {
4052
+ return (V, Y) => (c(), b("div", {
4031
4053
  ref_key: "root",
4032
4054
  ref: i,
4033
4055
  class: ee(w.value)
@@ -4053,12 +4075,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4053
4075
  B("span", {
4054
4076
  class: ee(["vf-datepicker__label", { "vf-datepicker__label_placeholder": !l.value }])
4055
4077
  }, j(y.value || V.placeholder), 3),
4056
- q[0] || (q[0] = B("span", {
4078
+ Y[0] || (Y[0] = B("span", {
4057
4079
  class: "vf-datepicker__chevron",
4058
4080
  "aria-hidden": "true"
4059
4081
  }, "▾", -1))
4060
4082
  ], 40, gr),
4061
- (c(), ge(Le, { to: "body" }, [
4083
+ (c(), be(Le, { to: "body" }, [
4062
4084
  ze(B("div", {
4063
4085
  id: p,
4064
4086
  ref_key: "panel",
@@ -4084,13 +4106,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4084
4106
  }, " › ")
4085
4107
  ]),
4086
4108
  B("div", _r, [
4087
- (c(!0), b(fe, null, be(C.value, (ae) => (c(), b("span", {
4109
+ (c(!0), b(fe, null, he(C.value, (ae) => (c(), b("span", {
4088
4110
  key: ae,
4089
4111
  class: "vf-datepicker__weekday"
4090
4112
  }, j(ae), 1))), 128))
4091
4113
  ]),
4092
4114
  B("div", kr, [
4093
- (c(!0), b(fe, null, be(g.value, (ae) => (c(), b("button", {
4115
+ (c(!0), b(fe, null, he(g.value, (ae) => (c(), b("button", {
4094
4116
  key: ae.key,
4095
4117
  class: ee(["vf-datepicker__day", {
4096
4118
  "is-outside": !ae.inCurrentMonth,
@@ -4135,7 +4157,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4135
4157
  emits: ["update:modelValue", "change", "focus", "blur"],
4136
4158
  setup(n, { emit: o }) {
4137
4159
  let a = 0;
4138
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(!1), u = N("bottom"), v = N("bottom"), p = `vf-daterangepicker-panel-${++a}`, m = N(H(/* @__PURE__ */ new Date()));
4160
+ 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()));
4139
4161
  let $ = null;
4140
4162
  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(() => {
4141
4163
  if (C.value)
@@ -4152,24 +4174,24 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4152
4174
  })), L = f(() => {
4153
4175
  const X = new Intl.DateTimeFormat(t.locale, { weekday: "short" }), re = new Date(2026, 0, 4);
4154
4176
  return Array.from({ length: 7 }, (de, ye) => {
4155
- const te = (ye + t.firstDayOfWeek) % 7, G = new Date(re);
4156
- return G.setDate(re.getDate() + te), X.format(G);
4177
+ const te = (ye + t.firstDayOfWeek) % 7, N = new Date(re);
4178
+ return N.setDate(re.getDate() + te), X.format(N);
4157
4179
  });
4158
4180
  }), R = f(() => {
4159
- const X = ae(m.value, t.firstDayOfWeek), re = se(/* @__PURE__ */ new Date()), de = y.value ? K(y.value).getTime() : null, ye = z.value ? K(z.value).getTime() : null, te = y.value ? se(y.value) : null, G = z.value ? se(z.value) : null;
4181
+ const X = ae(m.value, t.firstDayOfWeek), re = se(/* @__PURE__ */ new Date()), de = y.value ? K(y.value).getTime() : null, ye = z.value ? K(z.value).getTime() : null, te = y.value ? se(y.value) : null, N = z.value ? se(z.value) : null;
4160
4182
  return Array.from({ length: 42 }, (oe, le) => {
4161
- const he = q(X, le), J = se(he), ue = K(he).getTime(), ve = de !== null && ye !== null ? ue >= de && ue <= ye : !1, _e = te === J, Be = G === J;
4183
+ const ge = Y(X, le), J = se(ge), ue = K(ge).getTime(), ce = de !== null && ye !== null ? ue >= de && ue <= ye : !1, _e = te === J, Be = N === J;
4162
4184
  return {
4163
4185
  key: `${J}-${le}`,
4164
4186
  iso: J,
4165
- date: he,
4166
- day: he.getDate(),
4167
- inCurrentMonth: he.getMonth() === m.value.getMonth(),
4168
- isDisabled: U(he, l.value, _.value),
4187
+ date: ge,
4188
+ day: ge.getDate(),
4189
+ inCurrentMonth: ge.getMonth() === m.value.getMonth(),
4190
+ isDisabled: U(ge, l.value, _.value),
4169
4191
  isSelected: _e || Be,
4170
4192
  isRangeStart: _e,
4171
4193
  isRangeEnd: Be,
4172
- isInRange: ve,
4194
+ isInRange: ce,
4173
4195
  isToday: J === re
4174
4196
  };
4175
4197
  });
@@ -4194,7 +4216,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4194
4216
  m.value = V(m.value, -1);
4195
4217
  }, F = () => {
4196
4218
  m.value = V(m.value, 1);
4197
- }, A = (X, re) => {
4219
+ }, H = (X, re) => {
4198
4220
  const de = X ? se(X) : null, ye = re ? se(re) : null;
4199
4221
  e("update:modelValue", [de, ye]), e("change", [de, ye]);
4200
4222
  }, Z = (X) => {
@@ -4202,11 +4224,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4202
4224
  return;
4203
4225
  const re = y.value, de = z.value;
4204
4226
  if (!re || re && de) {
4205
- A(X, null);
4227
+ H(X, null);
4206
4228
  return;
4207
4229
  }
4208
4230
  const ye = K(re).getTime();
4209
- K(X).getTime() < ye ? A(X, re) : A(re, X), D();
4231
+ K(X).getTime() < ye ? H(X, re) : H(re, X), D();
4210
4232
  }, x = (X) => {
4211
4233
  var de;
4212
4234
  if (!r.value || !i.value)
@@ -4220,40 +4242,40 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4220
4242
  const {
4221
4243
  x: oe,
4222
4244
  y: le,
4223
- placement: he
4245
+ placement: ge
4224
4246
  } = await Me(X, re, {
4225
4247
  placement: u.value,
4226
4248
  strategy: "fixed",
4227
4249
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
4228
4250
  });
4229
- v.value = he ?? u.value, re.style.left = `${oe}px`, re.style.top = `${le}px`;
4251
+ v.value = ge ?? u.value, re.style.left = `${oe}px`, re.style.top = `${le}px`;
4230
4252
  }, ye = async () => {
4231
4253
  await de();
4232
4254
  }, te = De(X, () => {
4233
4255
  ye();
4234
- }), G = () => {
4256
+ }), N = () => {
4235
4257
  ye();
4236
4258
  };
4237
- document.addEventListener("scroll", G, !0), window.addEventListener("resize", G, !1), $ = {
4259
+ document.addEventListener("scroll", N, !0), window.addEventListener("resize", N, !1), $ = {
4238
4260
  update: ye,
4239
4261
  destroy: () => {
4240
- te(), document.removeEventListener("scroll", G, !0), window.removeEventListener("resize", G, !1);
4262
+ te(), document.removeEventListener("scroll", N, !0), window.removeEventListener("resize", N, !1);
4241
4263
  }
4242
4264
  }, $.update();
4243
4265
  };
4244
- ce(
4266
+ ve(
4245
4267
  () => t.modelValue,
4246
4268
  (X) => {
4247
4269
  const [re, de] = h(X), ye = re ?? de ?? /* @__PURE__ */ new Date();
4248
- m.value = H(ye);
4270
+ m.value = A(ye);
4249
4271
  },
4250
4272
  { immediate: !0 }
4251
- ), ce(
4273
+ ), ve(
4252
4274
  () => [t.min, t.max],
4253
4275
  () => {
4254
4276
  $ == null || $.update();
4255
4277
  }
4256
- ), ce(r, async (X) => {
4278
+ ), ve(r, async (X) => {
4257
4279
  if (!X) {
4258
4280
  $ && ($.destroy(), $ = null);
4259
4281
  return;
@@ -4276,24 +4298,24 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4276
4298
  const re = X.match(/^(\d{4})-(\d{2})-(\d{2})$/);
4277
4299
  if (!re)
4278
4300
  return null;
4279
- const de = Number(re[1]), ye = Number(re[2]) - 1, te = Number(re[3]), G = new Date(de, ye, te);
4280
- return G.getFullYear() !== de || G.getMonth() !== ye || G.getDate() !== te ? null : K(G);
4301
+ const de = Number(re[1]), ye = Number(re[2]) - 1, te = Number(re[3]), N = new Date(de, ye, te);
4302
+ return N.getFullYear() !== de || N.getMonth() !== ye || N.getDate() !== te ? null : K(N);
4281
4303
  }
4282
4304
  function K(X) {
4283
4305
  return new Date(X.getFullYear(), X.getMonth(), X.getDate());
4284
4306
  }
4285
- function H(X) {
4307
+ function A(X) {
4286
4308
  return new Date(X.getFullYear(), X.getMonth(), 1);
4287
4309
  }
4288
4310
  function V(X, re) {
4289
4311
  return new Date(X.getFullYear(), X.getMonth() + re, 1);
4290
4312
  }
4291
- function q(X, re) {
4313
+ function Y(X, re) {
4292
4314
  return new Date(X.getFullYear(), X.getMonth(), X.getDate() + re);
4293
4315
  }
4294
4316
  function ae(X, re) {
4295
- const de = H(X), te = (de.getDay() - re + 7) % 7;
4296
- return q(de, -te);
4317
+ const de = A(X), te = (de.getDay() - re + 7) % 7;
4318
+ return Y(de, -te);
4297
4319
  }
4298
4320
  function se(X) {
4299
4321
  const re = X.getFullYear(), de = `${X.getMonth() + 1}`.padStart(2, "0"), ye = `${X.getDate()}`.padStart(2, "0");
@@ -4334,7 +4356,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4334
4356
  "aria-hidden": "true"
4335
4357
  }, "▾", -1))
4336
4358
  ], 40, wr),
4337
- (c(), ge(Le, { to: "body" }, [
4359
+ (c(), be(Le, { to: "body" }, [
4338
4360
  ze(B("div", {
4339
4361
  id: p,
4340
4362
  ref_key: "panel",
@@ -4360,13 +4382,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4360
4382
  }, " › ")
4361
4383
  ]),
4362
4384
  B("div", Br, [
4363
- (c(!0), b(fe, null, be(L.value, (de) => (c(), b("span", {
4385
+ (c(!0), b(fe, null, he(L.value, (de) => (c(), b("span", {
4364
4386
  key: de,
4365
4387
  class: "vf-daterangepicker__weekday"
4366
4388
  }, j(de), 1))), 128))
4367
4389
  ]),
4368
4390
  B("div", xr, [
4369
- (c(!0), b(fe, null, be(R.value, (de) => (c(), b("button", {
4391
+ (c(!0), b(fe, null, he(R.value, (de) => (c(), b("button", {
4370
4392
  key: de.key,
4371
4393
  class: ee(["vf-daterangepicker__day", {
4372
4394
  "is-outside": !de.inCurrentMonth,
@@ -4405,16 +4427,16 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4405
4427
  emits: ["update:modelValue", "change", "focus", "blur"],
4406
4428
  setup(n, { emit: o }) {
4407
4429
  let a = 0;
4408
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(!1), u = N("bottom"), v = N("bottom"), p = `vf-timepicker-panel-${++a}`;
4430
+ 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}`;
4409
4431
  let m = null;
4410
- const $ = f(() => S(t.min)), l = f(() => S(t.max)), _ = f(() => S(t.modelValue)), k = f(() => _.value === null ? "" : A(_.value, t.format)), y = f(() => !t.step || t.step <= 0 ? 30 : Math.min(Math.max(Math.round(t.step), 1), 1440)), z = f(() => {
4432
+ 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(() => {
4411
4433
  const x = [], W = y.value, h = $.value, P = l.value;
4412
4434
  for (let K = 0; K < 1440; K += W) {
4413
- const H = F(K);
4435
+ const A = F(K);
4414
4436
  x.push({
4415
- value: H,
4437
+ value: A,
4416
4438
  minutes: K,
4417
- label: A(K, t.format),
4439
+ label: H(K, t.format),
4418
4440
  isSelected: _.value === K,
4419
4441
  isDisabled: Z(K, h, P)
4420
4442
  });
@@ -4453,7 +4475,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4453
4475
  const x = s.value, W = d.value, h = async () => {
4454
4476
  const {
4455
4477
  x: V,
4456
- y: q,
4478
+ y: Y,
4457
4479
  placement: ae
4458
4480
  } = await Me(x, W, {
4459
4481
  placement: u.value,
@@ -4462,18 +4484,18 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4462
4484
  });
4463
4485
  v.value = ae ?? u.value;
4464
4486
  const se = x.getBoundingClientRect().width;
4465
- W.style.minWidth = `${se}px`, W.style.width = `${se}px`, W.style.left = `${V}px`, W.style.top = `${q}px`;
4487
+ W.style.minWidth = `${se}px`, W.style.width = `${se}px`, W.style.left = `${V}px`, W.style.top = `${Y}px`;
4466
4488
  }, P = async () => {
4467
4489
  await h();
4468
4490
  }, K = De(x, () => {
4469
4491
  P();
4470
- }), H = () => {
4492
+ }), A = () => {
4471
4493
  P();
4472
4494
  };
4473
- document.addEventListener("scroll", H, !0), window.addEventListener("resize", H, !1), m = {
4495
+ document.addEventListener("scroll", A, !0), window.addEventListener("resize", A, !1), m = {
4474
4496
  update: P,
4475
4497
  destroy: () => {
4476
- K(), document.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H, !1);
4498
+ K(), document.removeEventListener("scroll", A, !0), window.removeEventListener("resize", A, !1);
4477
4499
  }
4478
4500
  }, m.update();
4479
4501
  }, M = () => {
@@ -4482,13 +4504,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4482
4504
  const x = d.value.querySelector(`[data-time="${F(_.value)}"]`);
4483
4505
  !x || typeof x.scrollIntoView != "function" || x.scrollIntoView({ block: "nearest" });
4484
4506
  };
4485
- ce(r, async (x) => {
4507
+ ve(r, async (x) => {
4486
4508
  if (!x) {
4487
4509
  m && (m.destroy(), m = null);
4488
4510
  return;
4489
4511
  }
4490
4512
  await $e(), m || D(), m == null || m.update(), M();
4491
- }), ce(
4513
+ }), ve(
4492
4514
  () => [t.min, t.max, t.step],
4493
4515
  () => {
4494
4516
  m == null || m.update();
@@ -4511,7 +4533,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4511
4533
  const W = Math.floor(x / 60), h = x % 60;
4512
4534
  return `${String(W).padStart(2, "0")}:${String(h).padStart(2, "0")}`;
4513
4535
  }
4514
- function A(x, W) {
4536
+ function H(x, W) {
4515
4537
  if (W === "12h") {
4516
4538
  const h = Math.floor(x / 60), P = x % 60, K = h >= 12 ? "PM" : "AM";
4517
4539
  return `${h % 12 || 12}:${String(P).padStart(2, "0")} ${K}`;
@@ -4552,7 +4574,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4552
4574
  "aria-hidden": "true"
4553
4575
  }, "▾", -1))
4554
4576
  ], 40, Vr),
4555
- (c(), ge(Le, { to: "body" }, [
4577
+ (c(), be(Le, { to: "body" }, [
4556
4578
  ze(B("div", {
4557
4579
  id: p,
4558
4580
  ref_key: "panel",
@@ -4561,7 +4583,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4561
4583
  role: "listbox",
4562
4584
  "data-placement": v.value
4563
4585
  }, [
4564
- (c(!0), b(fe, null, be(z.value, (h) => (c(), b("button", {
4586
+ (c(!0), b(fe, null, he(z.value, (h) => (c(), b("button", {
4565
4587
  key: h.value,
4566
4588
  class: ee(["vf-timepicker__option", { "is-active": h.isSelected, "is-disabled": h.isDisabled }]),
4567
4589
  type: "button",
@@ -4605,7 +4627,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4605
4627
  emits: ["update:modelValue", "change", "focus", "blur"],
4606
4628
  setup(n, { emit: o }) {
4607
4629
  let a = 0;
4608
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(!1), u = N("bottom"), v = N("bottom"), p = `vf-datetimepicker-panel-${++a}`, m = N(U(/* @__PURE__ */ new Date())), $ = N(null), l = N(null);
4630
+ 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);
4609
4631
  let _ = null;
4610
4632
  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(() => {
4611
4633
  if (!y.value)
@@ -4621,12 +4643,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4621
4643
  month: "long"
4622
4644
  })), L = f(() => {
4623
4645
  const J = new Intl.DateTimeFormat(t.locale, { weekday: "short" }), ue = new Date(2026, 0, 4);
4624
- return Array.from({ length: 7 }, (ve, _e) => {
4646
+ return Array.from({ length: 7 }, (ce, _e) => {
4625
4647
  const Be = (_e + t.firstDayOfWeek) % 7, xe = new Date(ue);
4626
4648
  return xe.setDate(ue.getDate() + Be), J.format(xe);
4627
4649
  });
4628
4650
  }), R = f(() => {
4629
- const J = de(m.value, t.firstDayOfWeek), ue = $.value ? ye($.value) : null, ve = ye(/* @__PURE__ */ new Date());
4651
+ const J = de(m.value, t.firstDayOfWeek), ue = $.value ? ye($.value) : null, ce = ye(/* @__PURE__ */ new Date());
4630
4652
  return Array.from({ length: 42 }, (_e, Be) => {
4631
4653
  const xe = re(J, Be), Ue = ye(xe);
4632
4654
  return {
@@ -4637,7 +4659,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4637
4659
  inCurrentMonth: xe.getMonth() === m.value.getMonth(),
4638
4660
  isDisabled: le(xe, z.value, C.value),
4639
4661
  isSelected: ue === Ue,
4640
- isToday: Ue === ve
4662
+ isToday: Ue === ce
4641
4663
  };
4642
4664
  });
4643
4665
  }), I = f(() => {
@@ -4648,7 +4670,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4648
4670
  label: oe(ue, t.format),
4649
4671
  minutes: ue,
4650
4672
  isSelected: l.value === ue,
4651
- isDisabled: he($.value, ue, z.value, C.value)
4673
+ isDisabled: ge($.value, ue, z.value, C.value)
4652
4674
  });
4653
4675
  return J;
4654
4676
  }), O = f(() => {
@@ -4659,9 +4681,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4659
4681
  ];
4660
4682
  return t.size !== "normal" && J.push(`vf-datetimepicker_${t.size}`), t.disabled && J.push("vf-datetimepicker_disabled"), J.filter(Boolean);
4661
4683
  }), E = (J) => e("focus", J), T = (J) => e("blur", J), D = () => {
4662
- if (!$.value || l.value === null || he($.value, l.value, z.value, C.value))
4684
+ if (!$.value || l.value === null || ge($.value, l.value, z.value, C.value))
4663
4685
  return;
4664
- const J = G($.value, l.value);
4686
+ const J = N($.value, l.value);
4665
4687
  e("update:modelValue", J), e("change", J);
4666
4688
  }, M = () => {
4667
4689
  const J = y.value;
@@ -4671,19 +4693,19 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4671
4693
  }
4672
4694
  $.value = null, l.value = null;
4673
4695
  }, S = (J) => {
4674
- if (l.value !== null && !he(J, l.value, z.value, C.value))
4696
+ if (l.value !== null && !ge(J, l.value, z.value, C.value))
4675
4697
  return;
4676
4698
  const ue = I.value.find(
4677
- (ve) => !he(J, ve.minutes, z.value, C.value)
4699
+ (ce) => !ge(J, ce.minutes, z.value, C.value)
4678
4700
  );
4679
4701
  l.value = ue ? ue.minutes : null;
4680
4702
  }, F = () => {
4681
4703
  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");
4682
- }, A = () => {
4704
+ }, H = () => {
4683
4705
  r.value = !1, u.value = "bottom", v.value = "bottom";
4684
4706
  }, Z = () => {
4685
4707
  if (r.value) {
4686
- A();
4708
+ H();
4687
4709
  return;
4688
4710
  }
4689
4711
  F();
@@ -4694,17 +4716,17 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4694
4716
  }, h = (J) => {
4695
4717
  t.readonly || le(J, z.value, C.value) || ($.value = se(J), S($.value), D());
4696
4718
  }, P = (J) => {
4697
- t.readonly || !$.value || he($.value, J, z.value, C.value) || (l.value = J, D(), A());
4719
+ t.readonly || !$.value || ge($.value, J, z.value, C.value) || (l.value = J, D(), H());
4698
4720
  }, K = (J) => {
4699
- var ve;
4721
+ var ce;
4700
4722
  if (!r.value || !i.value)
4701
4723
  return;
4702
4724
  const ue = J.target;
4703
- i.value.contains(ue) || (ve = d.value) != null && ve.contains(ue) || A();
4704
- }, H = () => {
4725
+ i.value.contains(ue) || (ce = d.value) != null && ce.contains(ue) || H();
4726
+ }, A = () => {
4705
4727
  if (!s.value || !d.value)
4706
4728
  return;
4707
- const J = s.value, ue = d.value, ve = async () => {
4729
+ const J = s.value, ue = d.value, ce = async () => {
4708
4730
  const {
4709
4731
  x: Ue,
4710
4732
  y: Lt,
@@ -4718,7 +4740,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4718
4740
  const rt = 8, Ft = ue.getBoundingClientRect().width, Tt = Math.max(rt, window.innerWidth - Ft - rt), It = Math.min(Math.max(Ue, rt), Tt);
4719
4741
  ue.style.left = `${It}px`, ue.style.top = `${Lt}px`;
4720
4742
  }, _e = async () => {
4721
- await ve();
4743
+ await ce();
4722
4744
  }, Be = De(J, () => {
4723
4745
  _e();
4724
4746
  }), xe = () => {
@@ -4731,24 +4753,24 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4731
4753
  }
4732
4754
  }, _.update();
4733
4755
  };
4734
- ce(
4756
+ ve(
4735
4757
  () => t.modelValue,
4736
4758
  (J) => {
4737
4759
  const ue = ae(J);
4738
4760
  ue && (m.value = U(ue.date));
4739
4761
  },
4740
4762
  { immediate: !0 }
4741
- ), ce(
4763
+ ), ve(
4742
4764
  () => [t.min, t.max, t.minuteStep],
4743
4765
  () => {
4744
4766
  $.value && S($.value), _ == null || _.update();
4745
4767
  }
4746
- ), ce(r, async (J) => {
4768
+ ), ve(r, async (J) => {
4747
4769
  if (!J) {
4748
4770
  _ && (_.destroy(), _ = null);
4749
4771
  return;
4750
4772
  }
4751
- await $e(), _ || H(), _ == null || _.update();
4773
+ await $e(), _ || A(), _ == null || _.update();
4752
4774
  }), Ve(() => {
4753
4775
  document.addEventListener("click", K);
4754
4776
  }), we(() => {
@@ -4760,17 +4782,17 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4760
4782
  const ue = J.match(/^(\d{4})-(\d{2})-(\d{2})$/);
4761
4783
  if (!ue)
4762
4784
  return null;
4763
- const ve = Number(ue[1]), _e = Number(ue[2]) - 1, Be = Number(ue[3]), xe = new Date(ve, _e, Be);
4764
- return xe.getFullYear() !== ve || xe.getMonth() !== _e || xe.getDate() !== Be ? null : se(xe);
4785
+ const ce = Number(ue[1]), _e = Number(ue[2]) - 1, Be = Number(ue[3]), xe = new Date(ce, _e, Be);
4786
+ return xe.getFullYear() !== ce || xe.getMonth() !== _e || xe.getDate() !== Be ? null : se(xe);
4765
4787
  }
4766
- function q(J) {
4788
+ function Y(J) {
4767
4789
  if (!J)
4768
4790
  return null;
4769
4791
  const ue = J.match(/^(\d{2}):(\d{2})$/);
4770
4792
  if (!ue)
4771
4793
  return null;
4772
- const ve = Number(ue[1]), _e = Number(ue[2]);
4773
- return ve < 0 || ve > 23 || _e < 0 || _e > 59 ? null : ve * 60 + _e;
4794
+ const ce = Number(ue[1]), _e = Number(ue[2]);
4795
+ return ce < 0 || ce > 23 || _e < 0 || _e > 59 ? null : ce * 60 + _e;
4774
4796
  }
4775
4797
  function ae(J) {
4776
4798
  if (!J)
@@ -4778,8 +4800,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4778
4800
  const ue = J.match(/^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/);
4779
4801
  if (!ue)
4780
4802
  return null;
4781
- const ve = V(ue[1]), _e = q(ue[2]);
4782
- return !ve || _e === null ? null : { date: ve, minutes: _e };
4803
+ const ce = V(ue[1]), _e = Y(ue[2]);
4804
+ return !ce || _e === null ? null : { date: ce, minutes: _e };
4783
4805
  }
4784
4806
  function se(J) {
4785
4807
  return new Date(J.getFullYear(), J.getMonth(), J.getDate());
@@ -4794,36 +4816,36 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4794
4816
  return new Date(J.getFullYear(), J.getMonth(), J.getDate() + ue);
4795
4817
  }
4796
4818
  function de(J, ue) {
4797
- const ve = U(J), Be = (ve.getDay() - ue + 7) % 7;
4798
- return re(ve, -Be);
4819
+ const ce = U(J), Be = (ce.getDay() - ue + 7) % 7;
4820
+ return re(ce, -Be);
4799
4821
  }
4800
4822
  function ye(J) {
4801
- const ue = J.getFullYear(), ve = `${J.getMonth() + 1}`.padStart(2, "0"), _e = `${J.getDate()}`.padStart(2, "0");
4802
- return `${ue}-${ve}-${_e}`;
4823
+ const ue = J.getFullYear(), ce = `${J.getMonth() + 1}`.padStart(2, "0"), _e = `${J.getDate()}`.padStart(2, "0");
4824
+ return `${ue}-${ce}-${_e}`;
4803
4825
  }
4804
4826
  function te(J) {
4805
- const ue = Math.floor(J / 60), ve = J % 60;
4806
- return `${String(ue).padStart(2, "0")}:${String(ve).padStart(2, "0")}`;
4827
+ const ue = Math.floor(J / 60), ce = J % 60;
4828
+ return `${String(ue).padStart(2, "0")}:${String(ce).padStart(2, "0")}`;
4807
4829
  }
4808
- function G(J, ue) {
4830
+ function N(J, ue) {
4809
4831
  return `${ye(J)}T${te(ue)}`;
4810
4832
  }
4811
4833
  function oe(J, ue) {
4812
4834
  if (ue === "12h") {
4813
- const ve = Math.floor(J / 60), _e = J % 60, Be = ve >= 12 ? "PM" : "AM";
4814
- return `${ve % 12 || 12}:${String(_e).padStart(2, "0")} ${Be}`;
4835
+ const ce = Math.floor(J / 60), _e = J % 60, Be = ce >= 12 ? "PM" : "AM";
4836
+ return `${ce % 12 || 12}:${String(_e).padStart(2, "0")} ${Be}`;
4815
4837
  }
4816
4838
  return te(J);
4817
4839
  }
4818
- function le(J, ue, ve) {
4840
+ function le(J, ue, ce) {
4819
4841
  const _e = se(J).getTime();
4820
- return !!(ue && _e < ue.date.getTime() || ve && _e > ve.date.getTime());
4842
+ return !!(ue && _e < ue.date.getTime() || ce && _e > ce.date.getTime());
4821
4843
  }
4822
- function he(J, ue, ve, _e) {
4844
+ function ge(J, ue, ce, _e) {
4823
4845
  if (!J)
4824
4846
  return !0;
4825
4847
  const Be = se(J).getTime();
4826
- return !!(ve && Be === ve.date.getTime() && ue < ve.minutes || _e && Be === _e.date.getTime() && ue > _e.minutes);
4848
+ return !!(ce && Be === ce.date.getTime() && ue < ce.minutes || _e && Be === _e.date.getTime() && ue > _e.minutes);
4827
4849
  }
4828
4850
  return (J, ue) => (c(), b("div", {
4829
4851
  ref_key: "root",
@@ -4843,7 +4865,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4843
4865
  onKeydown: [
4844
4866
  pe(ie(F, ["prevent"]), ["down"]),
4845
4867
  pe(ie(Z, ["prevent"]), ["enter"]),
4846
- pe(ie(A, ["prevent"]), ["esc"])
4868
+ pe(ie(H, ["prevent"]), ["esc"])
4847
4869
  ],
4848
4870
  onFocus: E,
4849
4871
  onBlur: T
@@ -4856,7 +4878,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4856
4878
  "aria-hidden": "true"
4857
4879
  }, "▾", -1))
4858
4880
  ], 40, Ir),
4859
- (c(), ge(Le, { to: "body" }, [
4881
+ (c(), be(Le, { to: "body" }, [
4860
4882
  ze(B("div", {
4861
4883
  id: p,
4862
4884
  ref_key: "panel",
@@ -4864,7 +4886,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4864
4886
  class: "vf-datetimepicker__panel",
4865
4887
  role: "dialog",
4866
4888
  "data-placement": v.value,
4867
- onKeydown: pe(ie(A, ["prevent"]), ["esc"])
4889
+ onKeydown: pe(ie(H, ["prevent"]), ["esc"])
4868
4890
  }, [
4869
4891
  B("div", Mr, [
4870
4892
  B("div", Rr, [
@@ -4883,37 +4905,37 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4883
4905
  }, " › ")
4884
4906
  ]),
4885
4907
  B("div", Er, [
4886
- (c(!0), b(fe, null, be(L.value, (ve) => (c(), b("span", {
4887
- key: ve,
4908
+ (c(!0), b(fe, null, he(L.value, (ce) => (c(), b("span", {
4909
+ key: ce,
4888
4910
  class: "vf-datetimepicker__weekday"
4889
- }, j(ve), 1))), 128))
4911
+ }, j(ce), 1))), 128))
4890
4912
  ]),
4891
4913
  B("div", Or, [
4892
- (c(!0), b(fe, null, be(R.value, (ve) => (c(), b("button", {
4893
- key: ve.key,
4914
+ (c(!0), b(fe, null, he(R.value, (ce) => (c(), b("button", {
4915
+ key: ce.key,
4894
4916
  class: ee(["vf-datetimepicker__day", {
4895
- "is-outside": !ve.inCurrentMonth,
4896
- "is-selected": ve.isSelected,
4897
- "is-today": ve.isToday
4917
+ "is-outside": !ce.inCurrentMonth,
4918
+ "is-selected": ce.isSelected,
4919
+ "is-today": ce.isToday
4898
4920
  }]),
4899
4921
  type: "button",
4900
- disabled: ve.isDisabled,
4901
- "data-date": ve.iso,
4902
- onClick: (_e) => h(ve.date)
4903
- }, j(ve.day), 11, Ar))), 128))
4922
+ disabled: ce.isDisabled,
4923
+ "data-date": ce.iso,
4924
+ onClick: (_e) => h(ce.date)
4925
+ }, j(ce.day), 11, Ar))), 128))
4904
4926
  ])
4905
4927
  ]),
4906
4928
  B("div", Hr, [
4907
- (c(!0), b(fe, null, be(I.value, (ve) => (c(), b("button", {
4908
- key: ve.value,
4909
- class: ee(["vf-datetimepicker__time", { "is-active": ve.isSelected, "is-disabled": ve.isDisabled }]),
4929
+ (c(!0), b(fe, null, he(I.value, (ce) => (c(), b("button", {
4930
+ key: ce.value,
4931
+ class: ee(["vf-datetimepicker__time", { "is-active": ce.isSelected, "is-disabled": ce.isDisabled }]),
4910
4932
  type: "button",
4911
4933
  role: "option",
4912
- "data-time": ve.value,
4913
- disabled: ve.isDisabled,
4914
- "aria-selected": ve.isSelected,
4915
- onClick: (_e) => P(ve.minutes)
4916
- }, j(ve.label), 11, Wr))), 128))
4934
+ "data-time": ce.value,
4935
+ disabled: ce.isDisabled,
4936
+ "aria-selected": ce.isSelected,
4937
+ onClick: (_e) => P(ce.minutes)
4938
+ }, j(ce.label), 11, Wr))), 128))
4917
4939
  ])
4918
4940
  ], 40, Dr), [
4919
4941
  [Se, r.value]
@@ -4942,7 +4964,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4942
4964
  },
4943
4965
  emits: ["update:modelValue", "change"],
4944
4966
  setup(n, { emit: o }) {
4945
- const a = o, e = n, t = N(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, {
4967
+ 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, {
4946
4968
  year: "numeric",
4947
4969
  month: "long"
4948
4970
  })), u = f(() => {
@@ -4979,7 +5001,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
4979
5001
  const I = w(R);
4980
5002
  a("update:modelValue", I), a("change", I);
4981
5003
  };
4982
- ce(
5004
+ ve(
4983
5005
  () => e.modelValue,
4984
5006
  (R) => {
4985
5007
  const I = _(R);
@@ -5041,13 +5063,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5041
5063
  }, " › ", 8, jr)
5042
5064
  ]),
5043
5065
  B("div", Yr, [
5044
- (c(!0), b(fe, null, be(u.value, (O) => (c(), b("span", {
5066
+ (c(!0), b(fe, null, he(u.value, (O) => (c(), b("span", {
5045
5067
  key: O,
5046
5068
  class: "vf-calendar__weekday"
5047
5069
  }, j(O), 1))), 128))
5048
5070
  ]),
5049
5071
  B("div", qr, [
5050
- (c(!0), b(fe, null, be(v.value, (O) => (c(), b("button", {
5072
+ (c(!0), b(fe, null, he(v.value, (O) => (c(), b("button", {
5051
5073
  key: O.key,
5052
5074
  class: ee(["vf-calendar__day", {
5053
5075
  "is-outside": !O.inCurrentMonth,
@@ -5126,7 +5148,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5126
5148
  "aria-label": "Previous page",
5127
5149
  onClick: _[0] || (_[0] = (k) => $(d.value - 1, k))
5128
5150
  }, j(l.prevLabel), 9, Ur),
5129
- (c(!0), b(fe, null, be(p.value, (k) => (c(), b("button", {
5151
+ (c(!0), b(fe, null, he(p.value, (k) => (c(), b("button", {
5130
5152
  key: k.key,
5131
5153
  class: ee(["vf-pagination__item", {
5132
5154
  "is-current": k.type === "page" && k.page === d.value,
@@ -5185,7 +5207,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5185
5207
  }, null, 40, Jr),
5186
5208
  d[0] || (d[0] = B("span", { class: "vf-checkbox__box" }, null, -1)),
5187
5209
  s.label || s.$slots.default ? (c(), b("span", el, [
5188
- Y(s.$slots, "default", {}, () => [
5210
+ q(s.$slots, "default", {}, () => [
5189
5211
  me(j(s.label), 1)
5190
5212
  ])
5191
5213
  ])) : Q("", !0)
@@ -5223,7 +5245,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5223
5245
  "aria-label": d.ariaLabel || void 0,
5224
5246
  "aria-labelledby": d.ariaLabelledby || void 0
5225
5247
  }, [
5226
- Y(d.$slots, "default")
5248
+ q(d.$slots, "default")
5227
5249
  ], 10, tl));
5228
5250
  }
5229
5251
  }), al = ["name", "value", "checked", "disabled"], ol = {
@@ -5261,7 +5283,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5261
5283
  }, null, 40, al),
5262
5284
  $[0] || ($[0] = B("span", { class: "vf-radio__circle" }, null, -1)),
5263
5285
  m.label || m.$slots.default ? (c(), b("span", ol, [
5264
- Y(m.$slots, "default", {}, () => [
5286
+ q(m.$slots, "default", {}, () => [
5265
5287
  me(j(m.label), 1)
5266
5288
  ])
5267
5289
  ])) : Q("", !0)
@@ -5281,7 +5303,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5281
5303
  },
5282
5304
  emits: ["update:modelValue", "change", "focus", "blur"],
5283
5305
  setup(n, { emit: o }) {
5284
- const a = o, e = n, t = N([]), i = f(() => e.options.map((l, _) => ({
5306
+ const a = o, e = n, t = G([]), i = f(() => e.options.map((l, _) => ({
5285
5307
  ...l,
5286
5308
  key: `${String(l.value)}-${_}`
5287
5309
  }))), s = f(() => i.value.reduce((l, _, k) => (_.disabled || l.push(k), l), [])), d = f(() => {
@@ -5313,7 +5335,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5313
5335
  "aria-label": l.ariaLabel || void 0,
5314
5336
  "aria-labelledby": l.ariaLabelledby || void 0
5315
5337
  }, [
5316
- (c(!0), b(fe, null, be(i.value, (k, y) => (c(), b("button", {
5338
+ (c(!0), b(fe, null, he(i.value, (k, y) => (c(), b("button", {
5317
5339
  key: k.key,
5318
5340
  ref_for: !0,
5319
5341
  ref: (z) => m(z, y),
@@ -5344,7 +5366,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5344
5366
  const e = o, t = n, i = ++a, s = (l) => String(l).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), d = f(() => {
5345
5367
  const l = ["vf-tabs"];
5346
5368
  return t.orientation === "vertical" && l.push("vf-tabs_vertical"), t.disabled && l.push("vf-tabs_disabled"), l;
5347
- }), r = N(null), u = () => r.value ? Array.from(r.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], v = (l) => {
5369
+ }), r = G(null), u = () => r.value ? Array.from(r.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], v = (l) => {
5348
5370
  l && (l.focus(), l.click());
5349
5371
  }, p = (l) => {
5350
5372
  if (t.disabled)
@@ -5381,10 +5403,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5381
5403
  "aria-labelledby": l.ariaLabelledby || void 0,
5382
5404
  onKeydown: p
5383
5405
  }, [
5384
- Y(l.$slots, "tabs")
5406
+ q(l.$slots, "tabs")
5385
5407
  ], 40, nl),
5386
5408
  B("div", sl, [
5387
- Y(l.$slots, "panels")
5409
+ q(l.$slots, "panels")
5388
5410
  ])
5389
5411
  ], 2));
5390
5412
  }
@@ -5411,7 +5433,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5411
5433
  tabindex: u.value,
5412
5434
  onClick: v
5413
5435
  }, [
5414
- Y(p.$slots, "default", {}, () => [
5436
+ q(p.$slots, "default", {}, () => [
5415
5437
  me(j(p.label), 1)
5416
5438
  ])
5417
5439
  ], 10, il));
@@ -5430,7 +5452,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5430
5452
  tabindex: "0",
5431
5453
  "aria-labelledby": t.value
5432
5454
  }, [
5433
- Y(s.$slots, "default")
5455
+ q(s.$slots, "default")
5434
5456
  ], 8, dl)), [
5435
5457
  [Se, e.value]
5436
5458
  ]);
@@ -5477,7 +5499,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5477
5499
  "aria-label": p.ariaLabel || void 0,
5478
5500
  "aria-labelledby": p.ariaLabelledby || void 0
5479
5501
  }, [
5480
- Y(p.$slots, "default")
5502
+ q(p.$slots, "default")
5481
5503
  ], 10, ul));
5482
5504
  }
5483
5505
  }), cl = ["id", "disabled", "aria-expanded", "aria-controls"], vl = { class: "vf-accordion__title" }, fl = ["id", "aria-labelledby", "aria-hidden"], pl = { class: "vf-accordion__panel-inner" }, jc = /* @__PURE__ */ ne({
@@ -5513,7 +5535,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5513
5535
  onClick: u
5514
5536
  }, [
5515
5537
  B("span", vl, [
5516
- Y(v.$slots, "title", {}, () => [
5538
+ q(v.$slots, "title", {}, () => [
5517
5539
  me(j(v.title), 1)
5518
5540
  ])
5519
5541
  ]),
@@ -5531,7 +5553,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5531
5553
  "aria-hidden": e.value ? void 0 : "true"
5532
5554
  }, [
5533
5555
  B("div", pl, [
5534
- Y(v.$slots, "default")
5556
+ q(v.$slots, "default")
5535
5557
  ])
5536
5558
  ], 10, fl)) : Q("", !0)
5537
5559
  ], 2));
@@ -5565,7 +5587,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5565
5587
  }, d = () => {
5566
5588
  i(), a("update:modelValue", !1), a("close");
5567
5589
  };
5568
- return ce(
5590
+ return ve(
5569
5591
  () => e.modelValue,
5570
5592
  (r) => {
5571
5593
  r && a("open"), s();
@@ -5582,7 +5604,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5582
5604
  B("div", gl, [
5583
5605
  r.title ? (c(), b("div", bl, j(r.title), 1)) : Q("", !0),
5584
5606
  r.message || r.$slots.default ? (c(), b("div", hl, [
5585
- Y(r.$slots, "default", {}, () => [
5607
+ q(r.$slots, "default", {}, () => [
5586
5608
  me(j(r.message), 1)
5587
5609
  ])
5588
5610
  ])) : Q("", !0)
@@ -5593,7 +5615,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5593
5615
  type: "button",
5594
5616
  onClick: d
5595
5617
  }, [
5596
- Y(r.$slots, "close", {}, () => [
5618
+ q(r.$slots, "close", {}, () => [
5597
5619
  u[0] || (u[0] = me("×"))
5598
5620
  ])
5599
5621
  ])) : Q("", !0)
@@ -5608,13 +5630,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5608
5630
  },
5609
5631
  setup(n) {
5610
5632
  const o = n, a = f(() => `vf-toast-container_${o.position}`);
5611
- return (e, t) => (c(), ge(Le, { to: "body" }, [
5633
+ return (e, t) => (c(), be(Le, { to: "body" }, [
5612
5634
  B("div", {
5613
5635
  class: ee(["vf-toast-container", a.value]),
5614
5636
  role: "region",
5615
5637
  "aria-live": "polite"
5616
5638
  }, [
5617
- Y(e.$slots, "default")
5639
+ q(e.$slots, "default")
5618
5640
  ], 2)
5619
5641
  ]));
5620
5642
  }
@@ -5643,8 +5665,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5643
5665
  },
5644
5666
  emits: ["update:modelValue", "close"],
5645
5667
  setup(n, { emit: o }) {
5646
- const a = o, e = n, t = N(!0), i = f(() => typeof e.modelValue == "boolean"), s = f(() => i.value ? e.modelValue : t.value);
5647
- ce(
5668
+ const a = o, e = n, t = G(!0), i = f(() => typeof e.modelValue == "boolean"), s = f(() => i.value ? e.modelValue : t.value);
5669
+ ve(
5648
5670
  () => e.modelValue,
5649
5671
  (r) => {
5650
5672
  typeof r == "boolean" && (t.value = r);
@@ -5660,24 +5682,24 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5660
5682
  "data-severity": r.severity
5661
5683
  }, [
5662
5684
  r.$slots.icon || r.icon ? (c(), b("div", _l, [
5663
- Y(r.$slots, "icon", {}, () => [
5685
+ q(r.$slots, "icon", {}, () => [
5664
5686
  me(j(r.icon), 1)
5665
5687
  ])
5666
5688
  ])) : Q("", !0),
5667
5689
  B("div", kl, [
5668
5690
  r.title || r.$slots.title ? (c(), b("div", Cl, [
5669
- Y(r.$slots, "title", {}, () => [
5691
+ q(r.$slots, "title", {}, () => [
5670
5692
  me(j(r.title), 1)
5671
5693
  ])
5672
5694
  ])) : Q("", !0),
5673
5695
  r.message || r.$slots.default ? (c(), b("div", wl, [
5674
- Y(r.$slots, "default", {}, () => [
5696
+ q(r.$slots, "default", {}, () => [
5675
5697
  me(j(r.message), 1)
5676
5698
  ])
5677
5699
  ])) : Q("", !0)
5678
5700
  ]),
5679
5701
  r.$slots.actions ? (c(), b("div", $l, [
5680
- Y(r.$slots, "actions")
5702
+ q(r.$slots, "actions")
5681
5703
  ])) : Q("", !0),
5682
5704
  r.closable ? (c(), b("button", {
5683
5705
  key: 2,
@@ -5686,7 +5708,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5686
5708
  "aria-label": "Close",
5687
5709
  onClick: d
5688
5710
  }, [
5689
- Y(r.$slots, "close", {}, () => [
5711
+ q(r.$slots, "close", {}, () => [
5690
5712
  u[0] || (u[0] = me("×"))
5691
5713
  ])
5692
5714
  ])) : Q("", !0)
@@ -5727,24 +5749,24 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5727
5749
  "aria-live": "polite"
5728
5750
  }, [
5729
5751
  e.$slots.icon || e.icon ? (c(), b("div", zl, [
5730
- Y(e.$slots, "icon", {}, () => [
5752
+ q(e.$slots, "icon", {}, () => [
5731
5753
  me(j(e.icon), 1)
5732
5754
  ])
5733
5755
  ])) : Q("", !0),
5734
5756
  B("div", Sl, [
5735
5757
  e.title || e.$slots.title ? (c(), b("div", Bl, [
5736
- Y(e.$slots, "title", {}, () => [
5758
+ q(e.$slots, "title", {}, () => [
5737
5759
  me(j(e.title), 1)
5738
5760
  ])
5739
5761
  ])) : Q("", !0),
5740
5762
  e.description || e.$slots.default ? (c(), b("div", xl, [
5741
- Y(e.$slots, "default", {}, () => [
5763
+ q(e.$slots, "default", {}, () => [
5742
5764
  me(j(e.description), 1)
5743
5765
  ])
5744
5766
  ])) : Q("", !0)
5745
5767
  ]),
5746
5768
  e.$slots.actions ? (c(), b("div", Ll, [
5747
- Y(e.$slots, "actions")
5769
+ q(e.$slots, "actions")
5748
5770
  ])) : Q("", !0)
5749
5771
  ], 2));
5750
5772
  }
@@ -5781,7 +5803,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5781
5803
  B("span", { class: "vf-switch__thumb" })
5782
5804
  ], -1)),
5783
5805
  s.label || s.$slots.default ? (c(), b("span", Fl, [
5784
- Y(s.$slots, "default", {}, () => [
5806
+ q(s.$slots, "default", {}, () => [
5785
5807
  me(j(s.label), 1)
5786
5808
  ])
5787
5809
  ])) : Q("", !0)
@@ -5810,7 +5832,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5810
5832
  pe(ie(v, ["prevent"]), ["space"])
5811
5833
  ]
5812
5834
  }, [
5813
- Y(p.$slots, "button")
5835
+ q(p.$slots, "button")
5814
5836
  ], 40, Il),
5815
5837
  ze(Ge(Ut, {
5816
5838
  id: s,
@@ -5824,31 +5846,31 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5824
5846
  p.$slots.default ? {
5825
5847
  name: "default",
5826
5848
  fn: Ce(() => [
5827
- Y(p.$slots, "default")
5849
+ q(p.$slots, "default")
5828
5850
  ]),
5829
5851
  key: "0"
5830
5852
  } : void 0,
5831
5853
  p.$slots.header || p.$slots.popoverHeader ? {
5832
5854
  name: "header",
5833
5855
  fn: Ce(() => [
5834
- Y(p.$slots, "header"),
5835
- p.$slots.header ? Q("", !0) : Y(p.$slots, "popoverHeader", { key: 0 })
5856
+ q(p.$slots, "header"),
5857
+ p.$slots.header ? Q("", !0) : q(p.$slots, "popoverHeader", { key: 0 })
5836
5858
  ]),
5837
5859
  key: "1"
5838
5860
  } : void 0,
5839
5861
  p.$slots.body || p.$slots.popoverBody ? {
5840
5862
  name: "body",
5841
5863
  fn: Ce(() => [
5842
- Y(p.$slots, "body"),
5843
- p.$slots.body ? Q("", !0) : Y(p.$slots, "popoverBody", { key: 0 })
5864
+ q(p.$slots, "body"),
5865
+ p.$slots.body ? Q("", !0) : q(p.$slots, "popoverBody", { key: 0 })
5844
5866
  ]),
5845
5867
  key: "2"
5846
5868
  } : void 0,
5847
5869
  p.$slots.footer || p.$slots.popoverFooter ? {
5848
5870
  name: "footer",
5849
5871
  fn: Ce(() => [
5850
- Y(p.$slots, "footer"),
5851
- p.$slots.footer ? Q("", !0) : Y(p.$slots, "popoverFooter", { key: 0 })
5872
+ q(p.$slots, "footer"),
5873
+ p.$slots.footer ? Q("", !0) : q(p.$slots, "popoverFooter", { key: 0 })
5852
5874
  ]),
5853
5875
  key: "3"
5854
5876
  } : void 0
@@ -5882,7 +5904,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5882
5904
  setup(n, { expose: o, emit: a }) {
5883
5905
  const e = a, t = n;
5884
5906
  let i = 0, s = 0, d = "", r = null;
5885
- const u = N(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(() => {
5907
+ 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(() => {
5886
5908
  const E = ["vf-modal"];
5887
5909
  return t.size !== "md" && E.push(`vf-modal_${t.size}`), E;
5888
5910
  }), y = () => e("update:modelValue", !0), z = () => {
@@ -5915,7 +5937,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5915
5937
  }, O = () => {
5916
5938
  !t.lockScroll || typeof document > "u" || (s = Math.max(0, s - 1), s === 0 && (document.body.style.overflow = d));
5917
5939
  };
5918
- return ce(
5940
+ return ve(
5919
5941
  () => t.modelValue,
5920
5942
  async (E) => {
5921
5943
  E ? (typeof document < "u" && (r = document.activeElement), I(), e("open"), await $e(), L(), typeof document < "u" && document.addEventListener("keydown", g)) : (O(), typeof document < "u" && (document.removeEventListener("keydown", g), r == null || r.focus()));
@@ -5923,7 +5945,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5923
5945
  { immediate: !0 }
5924
5946
  ), we(() => {
5925
5947
  O(), typeof document < "u" && document.removeEventListener("keydown", g);
5926
- }), o({ open: y, close: z }), (E, T) => (c(), ge(Le, { to: "body" }, [
5948
+ }), o({ open: y, close: z }), (E, T) => (c(), be(Le, { to: "body" }, [
5927
5949
  ze(B("div", st(We(v), {
5928
5950
  class: k.value,
5929
5951
  role: "presentation"
@@ -5948,12 +5970,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5948
5970
  id: m,
5949
5971
  class: "vf-modal__header-content"
5950
5972
  }, [
5951
- Y(E.$slots, "header", {}, () => [
5973
+ q(E.$slots, "header", {}, () => [
5952
5974
  E.title ? (c(), b("h3", Rl, j(E.title), 1)) : Q("", !0)
5953
5975
  ])
5954
5976
  ])
5955
5977
  ])) : Q("", !0),
5956
- E.showClose ? Y(E.$slots, "close", {
5978
+ E.showClose ? q(E.$slots, "close", {
5957
5979
  key: 1,
5958
5980
  close: z
5959
5981
  }, () => [
@@ -5969,11 +5991,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
5969
5991
  id: $,
5970
5992
  class: "vf-modal__body"
5971
5993
  }, [
5972
- Y(E.$slots, "body"),
5973
- E.$slots.body ? Q("", !0) : Y(E.$slots, "default", { key: 0 })
5994
+ q(E.$slots, "body"),
5995
+ E.$slots.body ? Q("", !0) : q(E.$slots, "default", { key: 0 })
5974
5996
  ])) : Q("", !0),
5975
5997
  E.$slots.footer ? (c(), b("div", Pl, [
5976
- Y(E.$slots, "footer")
5998
+ q(E.$slots, "footer")
5977
5999
  ])) : Q("", !0)
5978
6000
  ], 40, Dl)
5979
6001
  ], 16), [
@@ -6000,7 +6022,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6000
6022
  },
6001
6023
  emits: ["update:modelValue", "confirm", "cancel", "open", "close"],
6002
6024
  setup(n, { expose: o, emit: a }) {
6003
- const e = n, t = a, i = N(null), s = N(null), d = () => {
6025
+ const e = n, t = a, i = G(null), s = G(null), d = () => {
6004
6026
  if (i.value) {
6005
6027
  i.value.close();
6006
6028
  return;
@@ -6027,7 +6049,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6027
6049
  close: () => {
6028
6050
  s.value = "cancel", d();
6029
6051
  }
6030
- }), (m, $) => (c(), ge(El, {
6052
+ }), (m, $) => (c(), be(El, {
6031
6053
  ref_key: "modal",
6032
6054
  ref: i,
6033
6055
  class: "vf-confirm-dialog",
@@ -6044,14 +6066,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6044
6066
  }, {
6045
6067
  body: Ce(() => [
6046
6068
  B("div", Ol, [
6047
- Y(m.$slots, "default", {}, () => [
6069
+ q(m.$slots, "default", {}, () => [
6048
6070
  me(j(m.message), 1)
6049
6071
  ])
6050
6072
  ])
6051
6073
  ]),
6052
6074
  footer: Ce(() => [
6053
6075
  B("div", Al, [
6054
- Y(m.$slots, "actions", {
6076
+ q(m.$slots, "actions", {
6055
6077
  confirm: p,
6056
6078
  cancel: v
6057
6079
  }, () => [
@@ -6102,7 +6124,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6102
6124
  setup(n, { expose: o, emit: a }) {
6103
6125
  const e = a, t = n;
6104
6126
  let i = 0, s = 0, d = "", r = null;
6105
- const u = N(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(() => {
6127
+ 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(() => {
6106
6128
  switch (t.position) {
6107
6129
  case "left":
6108
6130
  return "translate3d(-100%, 0, 0)";
@@ -6131,12 +6153,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6131
6153
  const T = L();
6132
6154
  T.length ? T[0].focus() : (D = u.value) == null || D.focus();
6133
6155
  }, I = (T) => {
6134
- var A;
6156
+ var H;
6135
6157
  if (T.key !== "Tab")
6136
6158
  return;
6137
6159
  const D = L();
6138
6160
  if (!D.length) {
6139
- T.preventDefault(), (A = u.value) == null || A.focus();
6161
+ T.preventDefault(), (H = u.value) == null || H.focus();
6140
6162
  return;
6141
6163
  }
6142
6164
  const M = D[0], S = D[D.length - 1], F = document.activeElement;
@@ -6150,7 +6172,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6150
6172
  }, E = () => {
6151
6173
  !t.lockScroll || typeof document > "u" || (s = Math.max(0, s - 1), s === 0 && (document.body.style.overflow = d));
6152
6174
  };
6153
- return ce(
6175
+ return ve(
6154
6176
  () => t.modelValue,
6155
6177
  async (T) => {
6156
6178
  T ? (typeof document < "u" && (r = document.activeElement), O(), e("open"), await $e(), R(), typeof document < "u" && document.addEventListener("keydown", w)) : (E(), typeof document < "u" && (document.removeEventListener("keydown", w), r == null || r.focus()));
@@ -6158,7 +6180,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6158
6180
  { immediate: !0 }
6159
6181
  ), we(() => {
6160
6182
  E(), typeof document < "u" && document.removeEventListener("keydown", w);
6161
- }), o({ open: z, close: C }), (T, D) => (c(), ge(Le, { to: "body" }, [
6183
+ }), o({ open: z, close: C }), (T, D) => (c(), be(Le, { to: "body" }, [
6162
6184
  Ge(Rt, {
6163
6185
  name: "vf-drawer",
6164
6186
  duration: { enter: 320, leave: 320 }
@@ -6190,12 +6212,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6190
6212
  id: p,
6191
6213
  class: "vf-drawer__header-content"
6192
6214
  }, [
6193
- Y(T.$slots, "header", {}, () => [
6215
+ q(T.$slots, "header", {}, () => [
6194
6216
  T.title ? (c(), b("h3", Kl, j(T.title), 1)) : Q("", !0)
6195
6217
  ])
6196
6218
  ])
6197
6219
  ])) : Q("", !0),
6198
- T.showClose ? Y(T.$slots, "close", {
6220
+ T.showClose ? q(T.$slots, "close", {
6199
6221
  key: 1,
6200
6222
  close: C
6201
6223
  }, () => [
@@ -6211,11 +6233,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6211
6233
  id: m,
6212
6234
  class: "vf-drawer__body"
6213
6235
  }, [
6214
- Y(T.$slots, "body"),
6215
- T.$slots.body ? Q("", !0) : Y(T.$slots, "default", { key: 0 })
6236
+ q(T.$slots, "body"),
6237
+ T.$slots.body ? Q("", !0) : q(T.$slots, "default", { key: 0 })
6216
6238
  ])) : Q("", !0),
6217
6239
  T.$slots.footer ? (c(), b("div", Nl, [
6218
- Y(T.$slots, "footer")
6240
+ q(T.$slots, "footer")
6219
6241
  ])) : Q("", !0)
6220
6242
  ], 40, Hl)
6221
6243
  ], 6), [
@@ -6243,7 +6265,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6243
6265
  setup(n, { expose: o, emit: a }) {
6244
6266
  const e = a, t = n;
6245
6267
  let i = 0;
6246
- const s = N(null), d = N(null), r = N(null), u = N(!1), v = N(t.placement), p = N(t.placement), m = `vf-dropdown-panel-${++i}`;
6268
+ 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}`;
6247
6269
  let $ = null;
6248
6270
  const l = f(() => t.modelValue !== void 0), _ = (O) => {
6249
6271
  t.disabled || (e("update:modelValue", O), l.value || (u.value = O));
@@ -6290,14 +6312,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6290
6312
  const O = d.value, E = r.value, T = async () => {
6291
6313
  const {
6292
6314
  x: F,
6293
- y: A,
6315
+ y: H,
6294
6316
  placement: Z
6295
6317
  } = await Me(O, E, {
6296
6318
  placement: v.value,
6297
6319
  strategy: "fixed",
6298
6320
  middleware: [Ie(t.offset), Te({ placements: R(v.value) })]
6299
6321
  });
6300
- p.value = Z ?? v.value, t.matchTriggerWidth && (E.style.minWidth = `${O.getBoundingClientRect().width}px`), E.style.left = `${F}px`, E.style.top = `${A}px`;
6322
+ p.value = Z ?? v.value, t.matchTriggerWidth && (E.style.minWidth = `${O.getBoundingClientRect().width}px`), E.style.left = `${F}px`, E.style.top = `${H}px`;
6301
6323
  }, D = async () => {
6302
6324
  await T();
6303
6325
  }, M = De(O, () => {
@@ -6312,18 +6334,18 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6312
6334
  }
6313
6335
  }, $.update();
6314
6336
  };
6315
- return ce(
6337
+ return ve(
6316
6338
  () => t.modelValue,
6317
6339
  (O) => {
6318
6340
  l.value && (u.value = !!O);
6319
6341
  },
6320
6342
  { immediate: !0 }
6321
- ), ce(
6343
+ ), ve(
6322
6344
  () => t.placement,
6323
6345
  (O) => {
6324
6346
  v.value = O, p.value = O;
6325
6347
  }
6326
- ), ce(u, async (O) => {
6348
+ ), ve(u, async (O) => {
6327
6349
  if (e(O ? "open" : "close"), !O) {
6328
6350
  $ && ($.destroy(), $ = null);
6329
6351
  return;
@@ -6353,9 +6375,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6353
6375
  pe(ie(C, ["prevent"]), ["space"])
6354
6376
  ]
6355
6377
  }, [
6356
- Y(O.$slots, "trigger")
6378
+ q(O.$slots, "trigger")
6357
6379
  ], 40, Gl),
6358
- (c(), ge(Le, { to: "body" }, [
6380
+ (c(), be(Le, { to: "body" }, [
6359
6381
  ze(B("div", {
6360
6382
  id: m,
6361
6383
  ref_key: "panel",
@@ -6365,8 +6387,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6365
6387
  "data-placement": p.value,
6366
6388
  onClick: g
6367
6389
  }, [
6368
- Y(O.$slots, "default", {}, () => [
6369
- t.items.length ? (c(), ge(ht, {
6390
+ q(O.$slots, "default", {}, () => [
6391
+ t.items.length ? (c(), be(ht, {
6370
6392
  key: 0,
6371
6393
  items: t.items
6372
6394
  }, null, 8, ["items"])) : Q("", !0)
@@ -6400,7 +6422,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6400
6422
  },
6401
6423
  emits: ["click", "update:modelValue", "open", "close", "select"],
6402
6424
  setup(n, { expose: o, emit: a }) {
6403
- const e = n, t = a, i = qe(dt, null), s = N(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(() => {
6425
+ 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(() => {
6404
6426
  const l = ["vf-splitbutton"];
6405
6427
  return (v.value || e.loading) && l.push("vf-splitbutton_disabled"), (d.value === "small" || d.value === "large") && l.push(`vf-splitbutton_${d.value}`), l;
6406
6428
  }), m = (l) => {
@@ -6429,7 +6451,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6429
6451
  }), (l, _) => (c(), b("div", {
6430
6452
  class: ee(["vf-splitbutton", p.value])
6431
6453
  }, [
6432
- l.$slots.default ? (c(), ge(Ze, {
6454
+ l.$slots.default ? (c(), be(Ze, {
6433
6455
  key: 0,
6434
6456
  class: "vf-splitbutton__main",
6435
6457
  label: l.label,
@@ -6443,10 +6465,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6443
6465
  onClick: m
6444
6466
  }, {
6445
6467
  default: Ce(() => [
6446
- Y(l.$slots, "default")
6468
+ q(l.$slots, "default")
6447
6469
  ]),
6448
6470
  _: 3
6449
- }, 8, ["label", "icon", "type", "size", "variant", "severity", "loading", "disabled"])) : (c(), ge(Ze, {
6471
+ }, 8, ["label", "icon", "type", "size", "variant", "severity", "loading", "disabled"])) : (c(), be(Ze, {
6450
6472
  key: 1,
6451
6473
  class: "vf-splitbutton__main",
6452
6474
  label: l.label,
@@ -6492,7 +6514,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6492
6514
  l.$slots.menu ? {
6493
6515
  name: "default",
6494
6516
  fn: Ce(() => [
6495
- Y(l.$slots, "menu")
6517
+ q(l.$slots, "menu")
6496
6518
  ]),
6497
6519
  key: "0"
6498
6520
  } : void 0
@@ -6514,7 +6536,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6514
6536
  setup(n, { expose: o, emit: a }) {
6515
6537
  const e = a, t = n;
6516
6538
  let i = 0;
6517
- const s = N(null), d = N(null), r = N(!1), u = N({}), v = `vf-context-menu-panel-${++i}`, p = N({ x: 0, y: 0 }), m = f(() => t.modelValue !== void 0), $ = () => {
6539
+ 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), $ = () => {
6518
6540
  if (!s.value)
6519
6541
  return { x: 0, y: 0 };
6520
6542
  const I = s.value.getBoundingClientRect();
@@ -6558,13 +6580,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6558
6580
  }, R = () => {
6559
6581
  r.value && _();
6560
6582
  };
6561
- return ce(
6583
+ return ve(
6562
6584
  () => t.modelValue,
6563
6585
  (I) => {
6564
6586
  m.value && (r.value = !!I);
6565
6587
  },
6566
6588
  { immediate: !0 }
6567
- ), ce(r, async (I) => {
6589
+ ), ve(r, async (I) => {
6568
6590
  I ? (!p.value.x && !p.value.y && (p.value = $()), e("open"), await $e(), _()) : e("close");
6569
6591
  }), Ve(() => {
6570
6592
  document.addEventListener("click", w), document.addEventListener("keydown", L), window.addEventListener("resize", R);
@@ -6579,9 +6601,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6579
6601
  onContextmenu: ie(z, ["prevent"]),
6580
6602
  onKeydown: C
6581
6603
  }, [
6582
- Y(I.$slots, "default")
6604
+ q(I.$slots, "default")
6583
6605
  ], 34),
6584
- (c(), ge(Le, { to: "body" }, [
6606
+ (c(), be(Le, { to: "body" }, [
6585
6607
  ze(B("div", {
6586
6608
  id: v,
6587
6609
  ref_key: "panel",
@@ -6591,8 +6613,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6591
6613
  style: ke(u.value),
6592
6614
  onClick: g
6593
6615
  }, [
6594
- Y(I.$slots, "menu", {}, () => [
6595
- t.items.length ? (c(), ge(ht, {
6616
+ q(I.$slots, "menu", {}, () => [
6617
+ t.items.length ? (c(), be(ht, {
6596
6618
  key: 0,
6597
6619
  items: t.items
6598
6620
  }, null, 8, ["items"])) : Q("", !0)
@@ -6639,7 +6661,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6639
6661
  },
6640
6662
  emits: ["update:modelValue", "open", "close", "select", "search"],
6641
6663
  setup(n, { expose: o, emit: a }) {
6642
- const e = n, t = a, i = N(null), s = N(null), d = N(!1), r = N(""), u = N(-1), v = f(() => e.modelValue !== void 0), p = f(() => e.items.map((M, S) => {
6664
+ 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) => {
6643
6665
  const F = M.group ?? "";
6644
6666
  return {
6645
6667
  ...M,
@@ -6656,10 +6678,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6656
6678
  var S;
6657
6679
  const M = /* @__PURE__ */ new Map();
6658
6680
  for (const F of m.value) {
6659
- const A = F.group ?? "";
6660
- M.has(A) || M.set(A, []), (S = M.get(A)) == null || S.push(F);
6681
+ const H = F.group ?? "";
6682
+ M.has(H) || M.set(H, []), (S = M.get(H)) == null || S.push(F);
6661
6683
  }
6662
- return Array.from(M.entries()).map(([F, A]) => ({ name: F, items: A }));
6684
+ return Array.from(M.entries()).map(([F, H]) => ({ name: F, items: H }));
6663
6685
  }), l = f(() => m.value.filter((M) => !M.disabled)), _ = async () => {
6664
6686
  var M;
6665
6687
  await $e(), (M = s.value) == null || M.focus();
@@ -6692,8 +6714,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6692
6714
  u.value = -1;
6693
6715
  return;
6694
6716
  }
6695
- const S = l.value.findIndex((Z) => Z._index === u.value), A = ((S >= 0 ? S : M > 0 ? -1 : 0) + M + l.value.length) % l.value.length;
6696
- u.value = l.value[A]._index;
6717
+ 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;
6718
+ u.value = l.value[H]._index;
6697
6719
  }, I = (M) => {
6698
6720
  if (u.value < 0)
6699
6721
  return;
@@ -6723,19 +6745,19 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6723
6745
  }, D = (M) => {
6724
6746
  e.enableShortcut && (T(M.target) || M.key.toLowerCase() === e.shortcutKey.toLowerCase() && (!M.metaKey && !M.ctrlKey || (M.preventDefault(), g())));
6725
6747
  };
6726
- return ce(
6748
+ return ve(
6727
6749
  () => e.modelValue,
6728
6750
  (M) => {
6729
6751
  v.value && (d.value = !!M);
6730
6752
  },
6731
6753
  { immediate: !0 }
6732
- ), ce(d, async (M) => {
6754
+ ), ve(d, async (M) => {
6733
6755
  if (M) {
6734
6756
  t("open"), r.value = "", k(), await _();
6735
6757
  return;
6736
6758
  }
6737
6759
  t("close");
6738
- }), ce(
6760
+ }), ve(
6739
6761
  () => m.value,
6740
6762
  () => {
6741
6763
  m.value.some((S) => S._index === u.value && !S.disabled) || k();
@@ -6745,7 +6767,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6745
6767
  document.addEventListener("keydown", D);
6746
6768
  }), we(() => {
6747
6769
  document.removeEventListener("keydown", D);
6748
- }), o({ open: z, close: C, toggle: g }), (M, S) => (c(), ge(Le, { to: "body" }, [
6770
+ }), o({ open: z, close: C, toggle: g }), (M, S) => (c(), be(Le, { to: "body" }, [
6749
6771
  ze(B("div", ql, [
6750
6772
  B("div", {
6751
6773
  class: "vf-command-palette__overlay",
@@ -6772,29 +6794,29 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6772
6794
  }, null, 40, Ql)
6773
6795
  ]),
6774
6796
  B("div", Zl, [
6775
- $.value.length ? (c(!0), b(fe, { key: 0 }, be($.value, (F) => (c(), b("div", {
6797
+ $.value.length ? (c(!0), b(fe, { key: 0 }, he($.value, (F) => (c(), b("div", {
6776
6798
  key: F.name,
6777
6799
  class: "vf-command-palette__group",
6778
6800
  "data-group": F.name
6779
6801
  }, [
6780
6802
  F.name ? (c(), b("div", en, j(F.name), 1)) : Q("", !0),
6781
- (c(!0), b(fe, null, be(F.items, (A) => (c(), b("button", {
6782
- key: A._key,
6803
+ (c(!0), b(fe, null, he(F.items, (H) => (c(), b("button", {
6804
+ key: H._key,
6783
6805
  class: ee(["vf-command-palette__item", {
6784
- "is-active": A._index === u.value,
6785
- "is-disabled": A.disabled
6806
+ "is-active": H._index === u.value,
6807
+ "is-disabled": H.disabled
6786
6808
  }]),
6787
6809
  type: "button",
6788
6810
  role: "option",
6789
- "aria-selected": A._index === u.value,
6790
- disabled: A.disabled,
6791
- onClick: (Z) => L(A, Z)
6811
+ "aria-selected": H._index === u.value,
6812
+ disabled: H.disabled,
6813
+ onClick: (Z) => L(H, Z)
6792
6814
  }, [
6793
6815
  B("div", an, [
6794
- B("span", on, j(A.label), 1),
6795
- A.shortcut ? (c(), b("span", rn, j(A.shortcut), 1)) : Q("", !0)
6816
+ B("span", on, j(H.label), 1),
6817
+ H.shortcut ? (c(), b("span", rn, j(H.shortcut), 1)) : Q("", !0)
6796
6818
  ]),
6797
- A.description ? (c(), b("span", ln, j(A.description), 1)) : Q("", !0)
6819
+ H.description ? (c(), b("span", ln, j(H.description), 1)) : Q("", !0)
6798
6820
  ], 10, tn))), 128))
6799
6821
  ], 8, Jl))), 128)) : (c(), b("div", nn, j(M.emptyText), 1))
6800
6822
  ])
@@ -6842,11 +6864,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6842
6864
  },
6843
6865
  emits: ["update:modelValue", "update:items", "open", "close", "click", "read", "readAll", "clear"],
6844
6866
  setup(n, { emit: o }) {
6845
- const a = o, e = n, t = N(null), i = N([]), s = f(() => i.value.filter((z) => !z.read).length), d = f(() => s.value > 0), r = (z) => z.map((C) => ({
6867
+ 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) => ({
6846
6868
  ...C,
6847
6869
  read: !!C.read
6848
6870
  }));
6849
- ce(
6871
+ ve(
6850
6872
  () => e.items,
6851
6873
  (z) => {
6852
6874
  i.value = r(z);
@@ -6865,7 +6887,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6865
6887
  }, m = (z) => {
6866
6888
  !e.modelValue || !e.closeOnEsc || z.key === "Escape" && (z.preventDefault(), v());
6867
6889
  };
6868
- ce(
6890
+ ve(
6869
6891
  () => e.modelValue,
6870
6892
  async (z) => {
6871
6893
  var C;
@@ -6897,7 +6919,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6897
6919
  const z = i.value.map((C) => ({ ...C }));
6898
6920
  i.value = [], u(), a("clear", z);
6899
6921
  };
6900
- return (z, C) => (c(), ge(Le, { to: "body" }, [
6922
+ return (z, C) => (c(), be(Le, { to: "body" }, [
6901
6923
  ze(B("div", sn, [
6902
6924
  B("div", {
6903
6925
  class: "vf-notification-center__overlay",
@@ -6940,12 +6962,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6940
6962
  ]),
6941
6963
  B("div", hn, [
6942
6964
  i.value.length ? (c(), b("ul", yn, [
6943
- (c(!0), b(fe, null, be(i.value, (g, w) => (c(), b("li", {
6965
+ (c(!0), b(fe, null, he(i.value, (g, w) => (c(), b("li", {
6944
6966
  key: String(g.id),
6945
6967
  class: ee(["vf-notification-center__item", { "is-unread": !g.read }]),
6946
6968
  "data-severity": g.severity || "neutral"
6947
6969
  }, [
6948
- Y(z.$slots, "item", {
6970
+ q(z.$slots, "item", {
6949
6971
  item: g,
6950
6972
  index: w,
6951
6973
  toggleRead: () => _(g.id)
@@ -6970,7 +6992,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
6970
6992
  }, j(g.read ? z.unreadLabel : z.readLabel), 9, Bn)
6971
6993
  ], 10, _n))), 128))
6972
6994
  ])) : (c(), b("p", xn, [
6973
- Y(z.$slots, "empty", {}, () => [
6995
+ q(z.$slots, "empty", {}, () => [
6974
6996
  me(j(z.emptyText), 1)
6975
6997
  ])
6976
6998
  ]))
@@ -7002,7 +7024,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7002
7024
  },
7003
7025
  emits: ["update:modelValue", "sidebar-toggle", "breakpoint-change"],
7004
7026
  setup(n, { emit: o }) {
7005
- const a = o, e = n, t = Xe(), i = f(() => !!t.footer), s = N(!!e.modelValue), d = N(!1), r = N(!1), u = f(() => ({
7027
+ const a = o, e = n, t = Xe(), i = f(() => !!t.footer), s = G(!!e.modelValue), d = G(!1), r = G(!1), u = f(() => ({
7006
7028
  "--vf-app-shell-sidebar-width-prop": e.sidebarWidth,
7007
7029
  "--vf-app-shell-sidebar-collapsed-width-prop": e.sidebarCollapsedWidth
7008
7030
  })), v = () => {
@@ -7027,7 +7049,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7027
7049
  }, l = (_) => {
7028
7050
  !e.closeOnEsc || !r.value || _.key === "Escape" && (_.preventDefault(), $());
7029
7051
  };
7030
- return ce(
7052
+ return ve(
7031
7053
  () => e.modelValue,
7032
7054
  (_) => {
7033
7055
  s.value = !!_;
@@ -7048,7 +7070,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7048
7070
  class: "vf-app-shell__sidebar",
7049
7071
  "aria-hidden": d.value && !r.value ? "true" : "false"
7050
7072
  }, [
7051
- Y(_.$slots, "sidebar", {
7073
+ q(_.$slots, "sidebar", {
7052
7074
  mobile: d.value,
7053
7075
  collapsed: s.value
7054
7076
  })
@@ -7069,7 +7091,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7069
7091
  onClick: m
7070
7092
  }, j(_.toggleIcon), 9, Tn)) : Q("", !0),
7071
7093
  B("div", In, [
7072
- Y(_.$slots, "header", {
7094
+ q(_.$slots, "header", {
7073
7095
  mobile: d.value,
7074
7096
  collapsed: s.value,
7075
7097
  mobileSidebarOpen: r.value,
@@ -7081,10 +7103,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7081
7103
  class: "vf-app-shell__main",
7082
7104
  "aria-label": _.mainAriaLabel
7083
7105
  }, [
7084
- Y(_.$slots, "default")
7106
+ q(_.$slots, "default")
7085
7107
  ], 8, Dn),
7086
7108
  i.value ? (c(), b("footer", Mn, [
7087
- Y(_.$slots, "footer", {
7109
+ q(_.$slots, "footer", {
7088
7110
  mobile: d.value,
7089
7111
  collapsed: s.value
7090
7112
  })
@@ -7113,7 +7135,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7113
7135
  },
7114
7136
  emits: ["update:items", "move", "click"],
7115
7137
  setup(n, { emit: o }) {
7116
- const a = o, e = n, t = N([]), i = N(null), s = N(null), d = f(() => e.columns ?? []), r = (y) => y.map((z) => ({
7138
+ const a = o, e = n, t = G([]), i = G(null), s = G(null), d = f(() => e.columns ?? []), r = (y) => y.map((z) => ({
7117
7139
  ...z,
7118
7140
  tags: z.tags ? [...z.tags] : []
7119
7141
  })), u = (y) => t.value.filter((z) => String(z.columnId) === String(y)), v = (y, z, C) => {
@@ -7151,7 +7173,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7151
7173
  const g = ((w = z.dataTransfer) == null ? void 0 : w.getData("text/plain")) || (i.value !== null ? String(i.value) : "");
7152
7174
  g && (p(g, y), l());
7153
7175
  };
7154
- return ce(
7176
+ return ve(
7155
7177
  () => e.items,
7156
7178
  (y) => {
7157
7179
  t.value = r(y);
@@ -7163,13 +7185,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7163
7185
  "aria-label": y.ariaLabel || void 0
7164
7186
  }, [
7165
7187
  B("div", Pn, [
7166
- (c(!0), b(fe, null, be(d.value, (C) => (c(), b("section", {
7188
+ (c(!0), b(fe, null, he(d.value, (C) => (c(), b("section", {
7167
7189
  key: String(C.id),
7168
7190
  class: "vf-kanban-board__column",
7169
7191
  "data-column-id": String(C.id)
7170
7192
  }, [
7171
7193
  B("header", On, [
7172
- Y(y.$slots, "column-header", {
7194
+ q(y.$slots, "column-header", {
7173
7195
  column: C,
7174
7196
  items: u(C.id)
7175
7197
  }, () => [
@@ -7183,7 +7205,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7183
7205
  }, ["prevent"])),
7184
7206
  onDrop: ie((g) => k(C.id, g), ["prevent"])
7185
7207
  }, [
7186
- (c(!0), b(fe, null, be(u(C.id), (g, w) => (c(), b("li", {
7208
+ (c(!0), b(fe, null, he(u(C.id), (g, w) => (c(), b("li", {
7187
7209
  key: String(g.id),
7188
7210
  class: ee(["vf-kanban-board__item", {
7189
7211
  "is-dragging": i.value === g.id,
@@ -7199,7 +7221,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7199
7221
  }, ["prevent"])),
7200
7222
  onDrop: ie((L) => _(C.id, w, L), ["prevent", "stop"])
7201
7223
  }, [
7202
- Y(y.$slots, "card", {
7224
+ q(y.$slots, "card", {
7203
7225
  item: g,
7204
7226
  column: C,
7205
7227
  index: w
@@ -7210,7 +7232,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7210
7232
  B("p", Gn, j(g.title), 1),
7211
7233
  g.description ? (c(), b("p", jn, j(g.description), 1)) : Q("", !0),
7212
7234
  (L = g.tags) != null && L.length ? (c(), b("div", Yn, [
7213
- (c(!0), b(fe, null, be(g.tags, (R) => (c(), b("span", {
7235
+ (c(!0), b(fe, null, he(g.tags, (R) => (c(), b("span", {
7214
7236
  key: R,
7215
7237
  class: "vf-kanban-board__tag"
7216
7238
  }, j(R), 1))), 128))
@@ -7221,13 +7243,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7221
7243
  })
7222
7244
  ], 42, Kn))), 128)),
7223
7245
  u(C.id).length ? Q("", !0) : (c(), b("li", Xn, [
7224
- Y(y.$slots, "empty-column", { column: C }, () => [
7246
+ q(y.$slots, "empty-column", { column: C }, () => [
7225
7247
  me(j(y.emptyColumnText), 1)
7226
7248
  ])
7227
7249
  ]))
7228
7250
  ], 40, Wn),
7229
7251
  B("footer", Un, [
7230
- Y(y.$slots, "column-footer", {
7252
+ q(y.$slots, "column-footer", {
7231
7253
  column: C,
7232
7254
  items: u(C.id)
7233
7255
  })
@@ -7251,7 +7273,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7251
7273
  setup(n) {
7252
7274
  const o = n;
7253
7275
  let a = 0;
7254
- const e = N(null), t = N(null), i = N(!1), s = N("top"), d = `vf-tooltip-${++a}`;
7276
+ const e = G(null), t = G(null), i = G(!1), s = G("top"), d = `vf-tooltip-${++a}`;
7255
7277
  let r = null;
7256
7278
  const u = () => {
7257
7279
  o.disabled || (i.value = !0);
@@ -7285,7 +7307,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7285
7307
  }
7286
7308
  }, r.update();
7287
7309
  };
7288
- ce(i, async ($) => {
7310
+ ve(i, async ($) => {
7289
7311
  if (!$) {
7290
7312
  r && (r.destroy(), r = null);
7291
7313
  return;
@@ -7297,7 +7319,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7297
7319
  r == null || r.destroy(), r = null;
7298
7320
  });
7299
7321
  const m = f(() => !!o.text || !!(t.value && t.value.textContent));
7300
- return ce(m, ($) => {
7322
+ return ve(m, ($) => {
7301
7323
  $ || (i.value = !1);
7302
7324
  }), ($, l) => (c(), b(fe, null, [
7303
7325
  B("span", {
@@ -7310,9 +7332,9 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7310
7332
  onFocus: u,
7311
7333
  onBlur: v
7312
7334
  }, [
7313
- Y($.$slots, "default")
7335
+ q($.$slots, "default")
7314
7336
  ], 544),
7315
- (c(), ge(Le, { to: "body" }, [
7337
+ (c(), be(Le, { to: "body" }, [
7316
7338
  ze(B("div", {
7317
7339
  id: d,
7318
7340
  ref_key: "panel",
@@ -7322,7 +7344,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7322
7344
  "data-placement": s.value
7323
7345
  }, [
7324
7346
  B("span", Zn, [
7325
- Y($.$slots, "content", {}, () => [
7347
+ q($.$slots, "content", {}, () => [
7326
7348
  me(j($.text), 1)
7327
7349
  ])
7328
7350
  ]),
@@ -7367,7 +7389,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7367
7389
  },
7368
7390
  emits: ["update:modelValue", "open", "close", "stepChange", "next", "prev", "complete", "skip"],
7369
7391
  setup(n, { emit: o }) {
7370
- const a = o, e = n, t = N(null), i = N(0), s = N("bottom"), d = N({}), r = N(null);
7392
+ const a = o, e = n, t = G(null), i = G(0), s = G("bottom"), d = G({}), r = G(null);
7371
7393
  let u = null;
7372
7394
  const v = f(() => e.steps.length), p = f(() => {
7373
7395
  if (v.value)
@@ -7400,7 +7422,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7400
7422
  }, F = () => {
7401
7423
  var h;
7402
7424
  return ((h = p.value) == null ? void 0 : h.offset) ?? e.offset;
7403
- }, A = async () => {
7425
+ }, H = async () => {
7404
7426
  const {
7405
7427
  x: h,
7406
7428
  y: P,
@@ -7412,7 +7434,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7412
7434
  });
7413
7435
  s.value = K ?? S(), M.style.left = `${h}px`, M.style.top = `${P}px`;
7414
7436
  }, Z = async () => {
7415
- y(), await A();
7437
+ y(), await H();
7416
7438
  }, x = De(D, () => {
7417
7439
  Z();
7418
7440
  }), W = () => {
@@ -7447,13 +7469,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7447
7469
  }, T = (D) => {
7448
7470
  !e.modelValue || !e.closeOnEsc || D.key === "Escape" && (D.preventDefault(), w("esc"));
7449
7471
  };
7450
- return ce(
7472
+ return ve(
7451
7473
  () => e.modelValue,
7452
7474
  async (D) => {
7453
7475
  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));
7454
7476
  },
7455
7477
  { immediate: !0 }
7456
- ), ce(
7478
+ ), ve(
7457
7479
  () => [i.value, e.steps],
7458
7480
  async () => {
7459
7481
  e.modelValue && await g();
@@ -7463,7 +7485,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7463
7485
  u == null || u.destroy(), u = null, typeof document < "u" && document.removeEventListener("keydown", T, !1);
7464
7486
  }), (D, M) => {
7465
7487
  var S, F;
7466
- return c(), ge(Le, { to: "body" }, [
7488
+ return c(), be(Le, { to: "body" }, [
7467
7489
  ze(B("div", es, [
7468
7490
  B("div", {
7469
7491
  class: "vf-tour__overlay",
@@ -7484,30 +7506,30 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7484
7506
  "data-placement": s.value
7485
7507
  }, [
7486
7508
  (S = p.value) != null && S.title || D.$slots.title ? (c(), b("div", as, [
7487
- Y(D.$slots, "title", {
7509
+ q(D.$slots, "title", {
7488
7510
  step: p.value,
7489
7511
  index: i.value
7490
7512
  }, () => {
7491
- var A;
7513
+ var H;
7492
7514
  return [
7493
- me(j((A = p.value) == null ? void 0 : A.title), 1)
7515
+ me(j((H = p.value) == null ? void 0 : H.title), 1)
7494
7516
  ];
7495
7517
  })
7496
7518
  ])) : Q("", !0),
7497
7519
  (F = p.value) != null && F.content || D.$slots.default ? (c(), b("div", os, [
7498
- Y(D.$slots, "default", {
7520
+ q(D.$slots, "default", {
7499
7521
  step: p.value,
7500
7522
  index: i.value
7501
7523
  }, () => {
7502
- var A;
7524
+ var H;
7503
7525
  return [
7504
- me(j((A = p.value) == null ? void 0 : A.content), 1)
7526
+ me(j((H = p.value) == null ? void 0 : H.content), 1)
7505
7527
  ];
7506
7528
  })
7507
7529
  ])) : Q("", !0),
7508
7530
  D.showProgress ? (c(), b("div", rs, j(i.value + 1) + " / " + j(v.value), 1)) : Q("", !0),
7509
7531
  B("div", ls, [
7510
- Y(D.$slots, "actions", {
7532
+ q(D.$slots, "actions", {
7511
7533
  step: p.value,
7512
7534
  index: i.value,
7513
7535
  isFirst: m.value,
@@ -7642,7 +7664,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7642
7664
  ]))
7643
7665
  ])),
7644
7666
  r.value || d.value ? (c(), b("span", cs, [
7645
- Y($.$slots, "default", {}, () => [
7667
+ q($.$slots, "default", {}, () => [
7646
7668
  me(j(r.value), 1)
7647
7669
  ])
7648
7670
  ])) : Q("", !0)
@@ -7666,7 +7688,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7666
7688
  role: "status",
7667
7689
  "aria-label": e.ariaLabel || void 0
7668
7690
  }, [
7669
- Y(e.$slots, "default", {}, () => [
7691
+ q(e.$slots, "default", {}, () => [
7670
7692
  me(j(e.label), 1)
7671
7693
  ])
7672
7694
  ], 10, vs));
@@ -7703,12 +7725,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7703
7725
  "aria-label": s.ariaLabel || void 0
7704
7726
  }, [
7705
7727
  s.$slots.icon || s.icon ? (c(), b("span", ps, [
7706
- Y(s.$slots, "icon", {}, () => [
7728
+ q(s.$slots, "icon", {}, () => [
7707
7729
  Ge(We(Ne), { icon: s.icon }, null, 8, ["icon"])
7708
7730
  ])
7709
7731
  ])) : Q("", !0),
7710
7732
  B("span", ms, [
7711
- Y(s.$slots, "default", {}, () => [
7733
+ q(s.$slots, "default", {}, () => [
7712
7734
  me(j(s.label), 1)
7713
7735
  ])
7714
7736
  ]),
@@ -7720,7 +7742,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7720
7742
  "aria-label": s.closeLabel || "Remove",
7721
7743
  onClick: i
7722
7744
  }, [
7723
- Y(s.$slots, "close", {}, () => [
7745
+ q(s.$slots, "close", {}, () => [
7724
7746
  d[0] || (d[0] = me("×"))
7725
7747
  ])
7726
7748
  ], 8, gs)) : Q("", !0)
@@ -7783,7 +7805,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7783
7805
  "aria-label": v.ariaLabel || void 0,
7784
7806
  "aria-labelledby": v.ariaLabelledby || void 0
7785
7807
  }, [
7786
- (c(!0), b(fe, null, be(v.options, (m) => (c(), b("button", {
7808
+ (c(!0), b(fe, null, he(v.options, (m) => (c(), b("button", {
7787
7809
  key: String(m.value),
7788
7810
  class: ee(["vf-filter-chips__chip", { "is-active": d(m.value) }]),
7789
7811
  type: "button",
@@ -7818,7 +7840,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7818
7840
  status: { default: void 0 }
7819
7841
  },
7820
7842
  setup(n) {
7821
- const o = n, a = N(!1), e = (u) => {
7843
+ const o = n, a = G(!1), e = (u) => {
7822
7844
  const v = u.trim();
7823
7845
  if (!v)
7824
7846
  return "";
@@ -7832,7 +7854,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7832
7854
  }), d = f(() => [`vf-avatar_size-${o.size}`, `vf-avatar_shape-${o.shape}`]), r = () => {
7833
7855
  a.value = !0;
7834
7856
  };
7835
- return ce(
7857
+ return ve(
7836
7858
  () => o.src,
7837
7859
  () => {
7838
7860
  a.value = !1;
@@ -7844,7 +7866,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7844
7866
  "aria-label": s.value
7845
7867
  }, [
7846
7868
  B("div", ws, [
7847
- Y(u.$slots, "default", {}, () => [
7869
+ q(u.$slots, "default", {}, () => [
7848
7870
  i.value ? (c(), b("img", {
7849
7871
  key: 0,
7850
7872
  class: "vf-avatar__image",
@@ -7888,7 +7910,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7888
7910
  "aria-hidden": "true"
7889
7911
  }, null, -1)),
7890
7912
  t.value || e.value ? (c(), b("span", xs, [
7891
- Y(s.$slots, "default", {}, () => [
7913
+ q(s.$slots, "default", {}, () => [
7892
7914
  me(j(t.value), 1)
7893
7915
  ])
7894
7916
  ])) : Q("", !0)
@@ -7942,7 +7964,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7942
7964
  selection: { default: null },
7943
7965
  bulkActions: { default: () => [] },
7944
7966
  selectAllAriaLabel: { default: "Select all rows" },
7945
- selectRowAriaLabel: { default: "Select row" }
7967
+ selectRowAriaLabel: { default: "Select row" },
7968
+ stickyHeader: { type: Boolean, default: !1 }
7946
7969
  },
7947
7970
  emits: [
7948
7971
  "update:sortField",
@@ -7960,58 +7983,58 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
7960
7983
  "bulkAction"
7961
7984
  ],
7962
7985
  setup(n, { expose: o, emit: a }) {
7963
- const e = n, t = a, i = N(e.sortField ?? null), s = N(e.sortOrder ?? null), d = N(Math.max(1, e.page ?? 1)), r = N(Math.max(1, e.pageSize ?? 10)), u = N({ ...e.filters ?? {} }), v = N(e.selection ?? null);
7964
- ce(
7986
+ 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);
7987
+ ve(
7965
7988
  () => e.sortField,
7966
- (G) => {
7967
- i.value = G ?? null;
7989
+ (N) => {
7990
+ i.value = N ?? null;
7968
7991
  }
7969
- ), ce(
7992
+ ), ve(
7970
7993
  () => e.sortOrder,
7971
- (G) => {
7972
- s.value = G ?? null;
7994
+ (N) => {
7995
+ s.value = N ?? null;
7973
7996
  }
7974
- ), ce(
7997
+ ), ve(
7975
7998
  () => e.page,
7976
- (G) => {
7977
- d.value = Math.max(1, G ?? 1);
7999
+ (N) => {
8000
+ d.value = Math.max(1, N ?? 1);
7978
8001
  }
7979
- ), ce(
8002
+ ), ve(
7980
8003
  () => e.pageSize,
7981
- (G) => {
7982
- r.value = Math.max(1, G ?? 10);
8004
+ (N) => {
8005
+ r.value = Math.max(1, N ?? 10);
7983
8006
  }
7984
- ), ce(
8007
+ ), ve(
7985
8008
  () => e.filters,
7986
- (G) => {
7987
- u.value = { ...G ?? {} };
8009
+ (N) => {
8010
+ u.value = { ...N ?? {} };
7988
8011
  },
7989
8012
  { deep: !0 }
7990
- ), ce(
8013
+ ), ve(
7991
8014
  () => e.selection,
7992
- (G) => {
7993
- v.value = G ?? null;
8015
+ (N) => {
8016
+ v.value = N ?? null;
7994
8017
  },
7995
8018
  { deep: !0 }
7996
8019
  );
7997
8020
  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(() => {
7998
- const G = new Set(z.value);
8021
+ const N = new Set(z.value);
7999
8022
  return (e.rows ?? []).filter((oe, le) => {
8000
- const he = T(oe, le);
8001
- return G.has(he);
8023
+ const ge = T(oe, le);
8024
+ return N.has(ge);
8002
8025
  });
8003
8026
  }), g = f(() => {
8004
8027
  if (e.selectionMode !== "multiple" || !I.value.length)
8005
8028
  return !1;
8006
- const G = new Set(z.value);
8007
- return I.value.every((oe, le) => G.has(T(oe, le)));
8008
- }), w = f(() => !(e.selectionMode !== "multiple" || z.value.length === 0)), L = (G) => G.sortable === !1 ? !1 : G.sortable === !0 ? !0 : e.sortable, R = (G, oe) => G == null && oe == null ? 0 : G == null ? -1 : oe == null ? 1 : typeof G == "number" && typeof oe == "number" ? G - oe : String(G).localeCompare(String(oe)), I = f(() => {
8009
- const G = e.rows ?? [];
8029
+ const N = new Set(z.value);
8030
+ return I.value.every((oe, le) => N.has(T(oe, le)));
8031
+ }), w = f(() => !(e.selectionMode !== "multiple" || z.value.length === 0)), L = (N) => N.sortable === !1 ? !1 : N.sortable === !0 ? !0 : e.sortable, R = (N, oe) => N == null && oe == null ? 0 : N == null ? -1 : oe == null ? 1 : typeof N == "number" && typeof oe == "number" ? N - oe : String(N).localeCompare(String(oe)), I = f(() => {
8032
+ const N = e.rows ?? [];
8010
8033
  if (e.server)
8011
- return G;
8034
+ return N;
8012
8035
  const oe = p.value, le = m.value;
8013
- return !oe || !le ? G : [...G].sort((he, J) => {
8014
- const ue = he == null ? void 0 : he[oe], ve = J == null ? void 0 : J[oe], _e = R(ue, ve);
8036
+ return !oe || !le ? N : [...N].sort((ge, J) => {
8037
+ const ue = ge == null ? void 0 : ge[oe], ce = J == null ? void 0 : J[oe], _e = R(ue, ce);
8015
8038
  return le === "asc" ? _e : -_e;
8016
8039
  });
8017
8040
  }), O = () => ({
@@ -8021,83 +8044,94 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8021
8044
  pageSize: l.value,
8022
8045
  filters: { ..._.value }
8023
8046
  }), E = f(() => {
8024
- const G = ["vf-datatable", `vf-datatable_${e.variant}`];
8025
- return e.size !== "normal" && G.push(`vf-datatable_${e.size}`), e.striped && G.push("vf-datatable_striped"), e.hover && G.push("vf-datatable_hover"), G;
8026
- }), T = (G, oe) => {
8047
+ const N = ["vf-datatable", `vf-datatable_${e.variant}`];
8048
+ return e.size !== "normal" && N.push(`vf-datatable_${e.size}`), e.striped && N.push("vf-datatable_striped"), e.hover && N.push("vf-datatable_hover"), e.stickyHeader && N.push("vf-datatable_sticky-header"), N;
8049
+ }), T = (N, oe) => {
8027
8050
  if (typeof e.rowKey == "function")
8028
- return e.rowKey(G, oe);
8051
+ return e.rowKey(N, oe);
8029
8052
  if (e.rowKey && typeof e.rowKey == "string") {
8030
- const le = G == null ? void 0 : G[e.rowKey];
8053
+ const le = N == null ? void 0 : N[e.rowKey];
8031
8054
  return typeof le == "string" || typeof le == "number" ? le : oe;
8032
8055
  }
8033
8056
  return oe;
8034
- }, D = (G) => {
8035
- v.value = G, t("update:selection", G), t("selectionChange", G, C.value);
8036
- }, M = (G, oe) => {
8037
- const le = T(G, oe);
8057
+ }, D = (N) => {
8058
+ v.value = N, t("update:selection", N), t("selectionChange", N, C.value);
8059
+ }, M = (N, oe) => {
8060
+ const le = T(N, oe);
8038
8061
  return e.selectionMode === "single" ? v.value === le : e.selectionMode === "multiple" ? (Array.isArray(v.value) ? v.value : []).includes(le) : !1;
8039
- }, S = (G, oe) => {
8040
- const le = T(G, oe);
8062
+ }, S = (N, oe) => {
8063
+ const le = T(N, oe);
8041
8064
  return `${e.selectRowAriaLabel} ${String(le)}`;
8042
- }, F = (G, oe) => {
8043
- const le = T(G, oe);
8065
+ }, F = (N, oe) => {
8066
+ const le = T(N, oe);
8044
8067
  if (e.selectionMode === "single") {
8045
- const he = v.value === le ? null : le;
8046
- D(he);
8068
+ const ge = v.value === le ? null : le;
8069
+ D(ge);
8047
8070
  return;
8048
8071
  }
8049
8072
  if (e.selectionMode === "multiple") {
8050
- const he = Array.isArray(v.value) ? [...v.value] : [], J = he.indexOf(le);
8051
- J >= 0 ? he.splice(J, 1) : he.push(le), D(he);
8073
+ const ge = Array.isArray(v.value) ? [...v.value] : [], J = ge.indexOf(le);
8074
+ J >= 0 ? ge.splice(J, 1) : ge.push(le), D(ge);
8052
8075
  }
8053
- }, A = () => {
8076
+ }, H = () => {
8054
8077
  if (e.selectionMode !== "multiple")
8055
8078
  return;
8056
8079
  if (g.value) {
8057
8080
  D([]);
8058
8081
  return;
8059
8082
  }
8060
- const G = I.value.map((oe, le) => T(oe, le));
8061
- D(G);
8062
- }, Z = (G, oe) => G == null ? void 0 : G[oe.field], x = (G, oe) => {
8063
- const le = Z(G, oe);
8064
- return oe.formatter ? oe.formatter(G, le, oe) : le ?? "";
8065
- }, W = (G) => {
8066
- if (!L(G))
8067
- return;
8068
- let oe = G.field, le = "asc";
8069
- p.value === G.field && (m.value === "asc" ? le = "desc" : m.value === "desc" ? (oe = null, le = null) : le = "asc"), i.value = oe, s.value = le, t("update:sortField", oe), t("update:sortOrder", le), t("sort", oe, le), e.server && t("request", O());
8070
- }, h = (G) => p.value !== G.field ? "↕" : m.value === "asc" ? "↑" : "↓", P = (G) => p.value !== G.field ? "" : "is-active", K = (G) => {
8071
- if (L(G))
8072
- return p.value !== G.field ? "none" : m.value === "asc" ? "ascending" : "descending";
8073
- }, H = (G) => {
8083
+ const N = I.value.map((oe, le) => T(oe, le));
8084
+ D(N);
8085
+ }, Z = (N, oe) => N == null ? void 0 : N[oe.field], x = (N, oe) => {
8086
+ const le = Z(N, oe);
8087
+ return oe.formatter ? oe.formatter(N, le, oe) : le ?? "";
8088
+ }, W = (N) => {
8089
+ if (!L(N))
8090
+ return;
8091
+ let oe = N.field, le = "asc";
8092
+ p.value === N.field && (m.value === "asc" ? le = "desc" : m.value === "desc" ? (oe = null, le = null) : le = "asc"), i.value = oe, s.value = le, t("update:sortField", oe), t("update:sortOrder", le), t("sort", oe, le), e.server && t("request", O());
8093
+ }, h = (N) => p.value !== N.field ? "↕" : m.value === "asc" ? "↑" : "↓", P = (N) => p.value !== N.field ? "" : "is-active", K = (N) => {
8094
+ if (L(N))
8095
+ return p.value !== N.field ? "none" : m.value === "asc" ? "ascending" : "descending";
8096
+ }, A = (N) => {
8074
8097
  const oe = [];
8075
- return e.striped && G % 2 === 1 && oe.push("vf-datatable__row_striped"), oe;
8076
- }, V = (G) => {
8098
+ return e.striped && N % 2 === 1 && oe.push("vf-datatable__row_striped"), oe;
8099
+ }, V = (N) => {
8077
8100
  const oe = [];
8078
- return G.align && oe.push(`vf-datatable__cell_${G.align}`), L(G) && oe.push("vf-datatable__header_sortable"), oe;
8079
- }, q = (G) => {
8101
+ return N.align && oe.push(`vf-datatable__cell_${N.align}`), L(N) && oe.push("vf-datatable__header_sortable"), N.sticky && oe.push(`vf-datatable__cell_sticky-${N.sticky}`), oe;
8102
+ }, Y = (N) => {
8080
8103
  const oe = [];
8081
- return G.align && oe.push(`vf-datatable__cell_${G.align}`), oe;
8082
- }, ae = (G) => {
8104
+ return N.align && oe.push(`vf-datatable__cell_${N.align}`), N.sticky && oe.push(`vf-datatable__cell_sticky-${N.sticky}`), oe;
8105
+ }, ae = (N) => {
8083
8106
  const oe = {};
8084
- return G.width && (oe.width = G.width), G.minWidth && (oe.minWidth = G.minWidth), oe;
8085
- }, se = (G, oe, le) => {
8086
- t("rowClick", G, oe, le);
8087
- }, U = (G) => {
8088
- const oe = Math.max(1, Number(G) || 1);
8107
+ if (N.width && (oe.width = N.width), N.minWidth && (oe.minWidth = N.minWidth), N.sticky) {
8108
+ oe.position = "sticky", oe.backgroundColor = "var(--vf-datatable-row-background-color)", oe.zIndex = "1";
8109
+ const le = e.columns.filter((ce) => ce.sticky === N.sticky), ge = le.findIndex((ce) => ce.field === N.field), ue = (N.sticky === "left" ? le.slice(0, ge) : le.slice(ge + 1)).reduce((ce, _e) => {
8110
+ const Be = _e.width ?? _e.minWidth;
8111
+ if (!Be || !Be.endsWith("px"))
8112
+ return ce;
8113
+ const xe = Number.parseFloat(Be);
8114
+ return Number.isFinite(xe) ? ce + xe : ce;
8115
+ }, 0);
8116
+ N.sticky === "left" ? oe.left = `${ue}px` : oe.right = `${ue}px`;
8117
+ }
8118
+ return oe;
8119
+ }, se = (N, oe, le) => {
8120
+ t("rowClick", N, oe, le);
8121
+ }, U = (N) => {
8122
+ const oe = Math.max(1, Number(N) || 1);
8089
8123
  d.value = oe, t("update:page", oe), t("page", oe), e.server && t("request", O());
8090
- }, X = (G) => {
8091
- const oe = Math.max(1, Number(G) || 1);
8124
+ }, X = (N) => {
8125
+ const oe = Math.max(1, Number(N) || 1);
8092
8126
  r.value = oe, t("update:pageSize", oe), t("page", $.value), e.server && t("request", O());
8093
- }, re = (G) => {
8094
- u.value = { ...G ?? {} }, t("update:filters", { ...u.value }), t("filter", { ...u.value }), e.server && t("request", O());
8127
+ }, re = (N) => {
8128
+ u.value = { ...N ?? {} }, t("update:filters", { ...u.value }), t("filter", { ...u.value }), e.server && t("request", O());
8095
8129
  }, de = () => {
8096
8130
  re({});
8097
8131
  }, ye = () => {
8098
8132
  D(e.selectionMode === "multiple" ? [] : null);
8099
- }, te = (G) => {
8100
- t("bulkAction", G, z.value, C.value);
8133
+ }, te = (N) => {
8134
+ t("bulkAction", N, z.value, C.value);
8101
8135
  };
8102
8136
  return o({
8103
8137
  setPage: U,
@@ -8109,11 +8143,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8109
8143
  getSelectedKeys: () => [...z.value],
8110
8144
  getSelectedRows: () => [...C.value],
8111
8145
  applyBulkAction: te
8112
- }), (G, oe) => (c(), b("div", {
8146
+ }), (N, oe) => (c(), b("div", {
8113
8147
  class: ee(E.value)
8114
8148
  }, [
8115
8149
  w.value ? (c(), b("div", Ls, [
8116
- Y(G.$slots, "bulk-actions", {
8150
+ q(N.$slots, "bulk-actions", {
8117
8151
  selectedKeys: z.value,
8118
8152
  selectedRows: C.value,
8119
8153
  clearSelection: ye,
@@ -8121,12 +8155,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8121
8155
  }, () => [
8122
8156
  B("div", Vs, [
8123
8157
  B("span", Fs, j(z.value.length) + " selected", 1),
8124
- (c(!0), b(fe, null, be(G.bulkActions, (le) => (c(), b("button", {
8158
+ (c(!0), b(fe, null, he(N.bulkActions, (le) => (c(), b("button", {
8125
8159
  key: le.value,
8126
8160
  type: "button",
8127
8161
  class: "vf-datatable__bulk-action",
8128
8162
  disabled: le.disabled,
8129
- onClick: (he) => te(le.value)
8163
+ onClick: (ge) => te(le.value)
8130
8164
  }, j(le.label), 9, Ts))), 128)),
8131
8165
  B("button", {
8132
8166
  type: "button",
@@ -8138,21 +8172,21 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8138
8172
  ])) : Q("", !0),
8139
8173
  B("table", {
8140
8174
  class: "vf-datatable__table",
8141
- "aria-label": G.ariaLabel
8175
+ "aria-label": N.ariaLabel
8142
8176
  }, [
8143
- G.showHeader ? (c(), b("thead", Ds, [
8177
+ N.showHeader ? (c(), b("thead", Ds, [
8144
8178
  B("tr", Ms, [
8145
8179
  k.value ? (c(), b("th", Rs, [
8146
- G.selectionMode === "multiple" ? (c(), b("input", {
8180
+ N.selectionMode === "multiple" ? (c(), b("input", {
8147
8181
  key: 0,
8148
8182
  type: "checkbox",
8149
8183
  class: "vf-datatable__selection-control",
8150
8184
  checked: g.value,
8151
- "aria-label": G.selectAllAriaLabel,
8152
- onChange: A
8185
+ "aria-label": N.selectAllAriaLabel,
8186
+ onChange: H
8153
8187
  }, null, 40, Ps)) : Q("", !0)
8154
8188
  ])) : Q("", !0),
8155
- (c(!0), b(fe, null, be(G.columns, (le) => (c(), b("th", {
8189
+ (c(!0), b(fe, null, he(N.columns, (le) => (c(), b("th", {
8156
8190
  key: le.field,
8157
8191
  class: ee(["vf-datatable__header", V(le)]),
8158
8192
  style: ke(ae(le)),
@@ -8163,10 +8197,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8163
8197
  key: 0,
8164
8198
  type: "button",
8165
8199
  class: "vf-datatable__sort-button",
8166
- onClick: (he) => W(le)
8200
+ onClick: (ge) => W(le)
8167
8201
  }, [
8168
8202
  B("span", As, [
8169
- G.$slots[`header-${le.field}`] ? Y(G.$slots, `header-${le.field}`, {
8203
+ N.$slots[`header-${le.field}`] ? q(N.$slots, `header-${le.field}`, {
8170
8204
  key: 0,
8171
8205
  column: le
8172
8206
  }) : (c(), b(fe, { key: 1 }, [
@@ -8177,7 +8211,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8177
8211
  class: ee(["vf-datatable__sort-icon", P(le)])
8178
8212
  }, j(h(le)), 3)
8179
8213
  ], 8, Os)) : (c(), b("span", Hs, [
8180
- G.$slots[`header-${le.field}`] ? Y(G.$slots, `header-${le.field}`, {
8214
+ N.$slots[`header-${le.field}`] ? q(N.$slots, `header-${le.field}`, {
8181
8215
  key: 0,
8182
8216
  column: le
8183
8217
  }) : (c(), b(fe, { key: 1 }, [
@@ -8188,43 +8222,43 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8188
8222
  ])
8189
8223
  ])) : Q("", !0),
8190
8224
  B("tbody", Ws, [
8191
- G.loading ? (c(), b("tr", Ks, [
8225
+ N.loading ? (c(), b("tr", Ks, [
8192
8226
  B("td", {
8193
8227
  class: "vf-datatable__cell vf-datatable__cell_state",
8194
8228
  colspan: y.value
8195
8229
  }, [
8196
- Y(G.$slots, "loading", {}, () => [
8197
- me(j(G.loadingText), 1)
8230
+ q(N.$slots, "loading", {}, () => [
8231
+ me(j(N.loadingText), 1)
8198
8232
  ])
8199
8233
  ], 8, Ns)
8200
- ])) : I.value.length ? (c(!0), b(fe, { key: 2 }, be(I.value, (le, he) => (c(), b("tr", {
8201
- key: T(le, he),
8202
- class: ee(["vf-datatable__row", H(he)]),
8203
- onClick: (J) => se(le, he, J)
8234
+ ])) : I.value.length ? (c(!0), b(fe, { key: 2 }, he(I.value, (le, ge) => (c(), b("tr", {
8235
+ key: T(le, ge),
8236
+ class: ee(["vf-datatable__row", A(ge)]),
8237
+ onClick: (J) => se(le, ge, J)
8204
8238
  }, [
8205
8239
  k.value ? (c(), b("td", qs, [
8206
8240
  B("input", {
8207
- type: G.selectionMode === "multiple" ? "checkbox" : "radio",
8241
+ type: N.selectionMode === "multiple" ? "checkbox" : "radio",
8208
8242
  name: "vf-datatable-selection",
8209
8243
  class: "vf-datatable__selection-control",
8210
- checked: M(le, he),
8211
- "aria-label": S(le, he),
8244
+ checked: M(le, ge),
8245
+ "aria-label": S(le, ge),
8212
8246
  onClick: oe[0] || (oe[0] = ie(() => {
8213
8247
  }, ["stop"])),
8214
- onChange: (J) => F(le, he)
8248
+ onChange: (J) => F(le, ge)
8215
8249
  }, null, 40, Xs)
8216
8250
  ])) : Q("", !0),
8217
- (c(!0), b(fe, null, be(G.columns, (J) => (c(), b("td", {
8251
+ (c(!0), b(fe, null, he(N.columns, (J) => (c(), b("td", {
8218
8252
  key: J.field,
8219
- class: ee(["vf-datatable__cell", q(J)]),
8253
+ class: ee(["vf-datatable__cell", Y(J)]),
8220
8254
  style: ke(ae(J))
8221
8255
  }, [
8222
- G.$slots[`cell-${J.field}`] ? Y(G.$slots, `cell-${J.field}`, {
8256
+ N.$slots[`cell-${J.field}`] ? q(N.$slots, `cell-${J.field}`, {
8223
8257
  key: 0,
8224
8258
  row: le,
8225
8259
  column: J,
8226
8260
  value: Z(le, J),
8227
- index: he
8261
+ index: ge
8228
8262
  }) : (c(), b(fe, { key: 1 }, [
8229
8263
  me(j(x(le, J)), 1)
8230
8264
  ], 64))
@@ -8234,8 +8268,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8234
8268
  class: "vf-datatable__cell vf-datatable__cell_state",
8235
8269
  colspan: y.value
8236
8270
  }, [
8237
- Y(G.$slots, "empty", {}, () => [
8238
- me(j(G.emptyText), 1)
8271
+ q(N.$slots, "empty", {}, () => [
8272
+ me(j(N.emptyText), 1)
8239
8273
  ])
8240
8274
  ], 8, js)
8241
8275
  ]))
@@ -8276,8 +8310,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8276
8310
  const W = x.toString();
8277
8311
  return W.includes(".") ? W.split(".")[1].length : 0;
8278
8312
  }, u = (x) => Math.min(s.value, Math.max(i.value, x)), v = (x) => {
8279
- const W = Number(x), h = i.value, P = Number.isFinite(W) ? W : h, K = u(P), H = d.value, V = r(H), q = Math.round((K - i.value) / H) * H + i.value;
8280
- return Number.parseFloat(q.toFixed(V));
8313
+ 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;
8314
+ return Number.parseFloat(Y.toFixed(V));
8281
8315
  }, p = f(() => {
8282
8316
  if (!t.value) {
8283
8317
  const P = v(e.modelValue ?? i.value);
@@ -8310,8 +8344,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8310
8344
  if (e.disabled)
8311
8345
  return;
8312
8346
  const K = v(Number(x));
8313
- let [H, V] = p.value;
8314
- W === "start" ? H = Math.min(K, V) : V = Math.max(K, H), a("update:modelValue", [H, V]), a(P, h);
8347
+ let [A, V] = p.value;
8348
+ W === "start" ? A = Math.min(K, V) : V = Math.max(K, A), a("update:modelValue", [A, V]), a(P, h);
8315
8349
  }, R = (x) => {
8316
8350
  const W = x.target;
8317
8351
  if (t.value) {
@@ -8332,7 +8366,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8332
8366
  }, E = (x) => {
8333
8367
  const W = x.target;
8334
8368
  L(W.value, "end", x, "change");
8335
- }, 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}`), A = f(() => t.value ? e.ariaLabelStart : e.ariaLabel), Z = f(() => t.value ? e.ariaLabelEnd : e.ariaLabel);
8369
+ }, 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);
8336
8370
  return (x, W) => (c(), b("div", {
8337
8371
  class: ee(z.value),
8338
8372
  style: ke(y.value)
@@ -8349,7 +8383,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8349
8383
  step: d.value,
8350
8384
  value: m.value,
8351
8385
  disabled: x.disabled,
8352
- "aria-label": A.value,
8386
+ "aria-label": H.value,
8353
8387
  style: ke(C.value),
8354
8388
  onInput: R,
8355
8389
  onChange: O,
@@ -8374,7 +8408,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8374
8408
  }, null, 44, Zs)) : Q("", !0)
8375
8409
  ]),
8376
8410
  M.value.length ? (c(), b("div", Js, [
8377
- (c(!0), b(fe, null, be(M.value, (h) => (c(), b("span", {
8411
+ (c(!0), b(fe, null, he(M.value, (h) => (c(), b("span", {
8378
8412
  key: h.value,
8379
8413
  class: "vf-slider__mark",
8380
8414
  style: ke(S(h.value))
@@ -8398,28 +8432,28 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8398
8432
  setup(n, { emit: o }) {
8399
8433
  const a = n, e = o;
8400
8434
  let t = 0;
8401
- const i = N(null), s = N([]), d = N([]), r = N(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) => {
8435
+ 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) => {
8402
8436
  const h = 10 ** W;
8403
8437
  return Math.round(x * h) / h;
8404
8438
  }, $ = (x) => {
8405
8439
  if (!x.length)
8406
8440
  return [];
8407
- const W = x.reduce((V, q) => V + q, 0);
8441
+ const W = x.reduce((V, Y) => V + Y, 0);
8408
8442
  if (W <= 0) {
8409
8443
  const V = 100 / x.length;
8410
8444
  return x.map(
8411
- (q, ae) => ae === x.length - 1 ? m(100 - V * (x.length - 1)) : V
8445
+ (Y, ae) => ae === x.length - 1 ? m(100 - V * (x.length - 1)) : V
8412
8446
  );
8413
8447
  }
8414
- const P = x.map((V) => V / W * 100).map((V) => m(V)), K = m(100 - P.reduce((V, q) => V + q, 0)), H = P.length - 1;
8415
- return P[H] = m(P[H] + K), P;
8448
+ const P = x.map((V) => V / W * 100).map((V) => m(V)), K = m(100 - P.reduce((V, Y) => V + Y, 0)), A = P.length - 1;
8449
+ return P[A] = m(P[A] + K), P;
8416
8450
  }, l = (x, W) => {
8417
8451
  if (!x.length)
8418
8452
  return [];
8419
8453
  const P = W.reduce((ae, se) => ae + se, 0) >= 100 ? $(W) : W.map((ae) => Math.max(ae, 0)), K = x.map((ae, se) => Math.max(ae, P[se] ?? 0));
8420
- let H = K.reduce((ae, se) => ae + se, 0);
8421
- if (H > 100) {
8422
- let ae = H - 100, se = 0;
8454
+ let A = K.reduce((ae, se) => ae + se, 0);
8455
+ if (A > 100) {
8456
+ let ae = A - 100, se = 0;
8423
8457
  for (; ae > 1e-4 && se < 50; ) {
8424
8458
  const U = K.map((re, de) => ({ index: de, slack: re - (P[de] ?? 0) })).filter((re) => re.slack > 1e-4);
8425
8459
  if (!U.length)
@@ -8436,25 +8470,25 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8436
8470
  K[re.index] = K[re.index] - ae * de;
8437
8471
  }), ae = 0, ++se;
8438
8472
  }
8439
- } else if (H < 100) {
8440
- const se = (100 - H) / K.length;
8473
+ } else if (A < 100) {
8474
+ const se = (100 - A) / K.length;
8441
8475
  for (let U = 0; U < K.length; ++U)
8442
8476
  K[U] += se;
8443
8477
  }
8444
- const V = K.map((ae) => m(ae)), q = m(100 - V.reduce((ae, se) => ae + se, 0));
8445
- return V[V.length - 1] = m(V[V.length - 1] + q), V;
8478
+ const V = K.map((ae) => m(ae)), Y = m(100 - V.reduce((ae, se) => ae + se, 0));
8479
+ return V[V.length - 1] = m(V[V.length - 1] + Y), V;
8446
8480
  }, _ = (x) => {
8447
8481
  if (!x)
8448
8482
  return [];
8449
8483
  const W = a.modelValue;
8450
8484
  if (W.length === x && W.every(v))
8451
8485
  return $(W);
8452
- const h = s.value.map((q) => q.size), P = h.filter(v);
8486
+ const h = s.value.map((Y) => Y.size), P = h.filter(v);
8453
8487
  if (!P.length)
8454
8488
  return $(Array.from({ length: x }, () => 1));
8455
- const K = P.reduce((q, ae) => q + ae, 0), H = h.length - P.length, V = h.map((q) => v(q) ? q : 0);
8456
- if (K < 100 && H > 0) {
8457
- const ae = (100 - K) / H;
8489
+ const K = P.reduce((Y, ae) => Y + ae, 0), A = h.length - P.length, V = h.map((Y) => v(Y) ? Y : 0);
8490
+ if (K < 100 && A > 0) {
8491
+ const ae = (100 - K) / A;
8458
8492
  for (let se = 0; se < V.length; ++se)
8459
8493
  v(h[se]) || (V[se] = ae);
8460
8494
  return $(V);
@@ -8498,7 +8532,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8498
8532
  const P = [...d.value];
8499
8533
  if (!P[x] || !P[x + 1])
8500
8534
  return;
8501
- const K = k(), H = P[x] + P[x + 1], V = K[x] ?? 0, q = K[x + 1] ?? 0, ae = p(P[x] + W, V, H - q), se = H - ae;
8535
+ 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;
8502
8536
  P[x] = m(ae), P[x + 1] = m(se);
8503
8537
  const U = l($(P), K);
8504
8538
  d.value = U, h && e("update:modelValue", [...U]);
@@ -8522,18 +8556,18 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8522
8556
  const h = a.direction === "horizontal", P = h ? "ArrowLeft" : "ArrowUp", K = h ? "ArrowRight" : "ArrowDown";
8523
8557
  if ([P, K, "Home", "End"].includes(x.key)) {
8524
8558
  if (x.preventDefault(), x.key === "Home") {
8525
- const H = k(), V = d.value[W] ?? 0, q = H[W] ?? 0;
8526
- O(W, q - V);
8559
+ const A = k(), V = d.value[W] ?? 0, Y = A[W] ?? 0;
8560
+ O(W, Y - V);
8527
8561
  } else if (x.key === "End") {
8528
- const H = k(), V = (d.value[W] ?? 0) + (d.value[W + 1] ?? 0), q = d.value[W] ?? 0, ae = V - (H[W + 1] ?? 0);
8529
- O(W, ae - q);
8562
+ const A = k(), V = (d.value[W] ?? 0) + (d.value[W + 1] ?? 0), Y = d.value[W] ?? 0, ae = V - (A[W + 1] ?? 0);
8563
+ O(W, ae - Y);
8530
8564
  } else {
8531
- const H = x.shiftKey ? 5 : 2, V = x.key === K ? H : -H;
8565
+ const A = x.shiftKey ? 5 : 2, V = x.key === K ? A : -A;
8532
8566
  O(W, V);
8533
8567
  }
8534
8568
  e("change", [...d.value]);
8535
8569
  }
8536
- }, A = (x) => {
8570
+ }, H = (x) => {
8537
8571
  const W = `vf-splitter-panel-${++t}`;
8538
8572
  return s.value.push({
8539
8573
  id: W,
@@ -8546,16 +8580,16 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8546
8580
  return Qe(zt, {
8547
8581
  direction: f(() => a.direction),
8548
8582
  disabled: f(() => a.disabled),
8549
- registerPanel: A,
8583
+ registerPanel: H,
8550
8584
  unregisterPanel: Z,
8551
8585
  getPanelStyle: L
8552
- }), ce(
8586
+ }), ve(
8553
8587
  () => a.modelValue,
8554
8588
  () => {
8555
8589
  r.value === null && a.modelValue.length === s.value.length && a.modelValue.every(v) && (d.value = l($(a.modelValue), k()));
8556
8590
  },
8557
8591
  { deep: !0 }
8558
- ), ce(
8592
+ ), ve(
8559
8593
  () => a.minSizes,
8560
8594
  () => {
8561
8595
  d.value = l($(d.value), k());
@@ -8568,8 +8602,8 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8568
8602
  ref: i,
8569
8603
  class: ee(z.value)
8570
8604
  }, [
8571
- Y(x.$slots, "default"),
8572
- (c(!0), b(fe, null, be(C.value, (h, P) => (c(), b("div", {
8605
+ q(x.$slots, "default"),
8606
+ (c(!0), b(fe, null, he(C.value, (h, P) => (c(), b("div", {
8573
8607
  key: `gutter-${P}`,
8574
8608
  class: ee(["vf-splitter__gutter", { "is-dragging": r.value === P }]),
8575
8609
  style: ke(I(P)),
@@ -8610,7 +8644,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8610
8644
  class: ee(t.value),
8611
8645
  style: ke(i.value)
8612
8646
  }, [
8613
- Y(s.$slots, "default")
8647
+ q(s.$slots, "default")
8614
8648
  ], 6));
8615
8649
  }
8616
8650
  }), oi = ["aria-label", "aria-labelledby"], ri = { class: "vf-stepper__list" }, li = { class: "vf-stepper__indicator-wrap" }, ni = { class: "vf-stepper__indicator" }, si = {
@@ -8663,11 +8697,11 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8663
8697
  "aria-labelledby": g.ariaLabelledby || void 0
8664
8698
  }, [
8665
8699
  B("ol", ri, [
8666
- (c(!0), b(fe, null, be(t.value, (L, R) => (c(), b("li", {
8700
+ (c(!0), b(fe, null, he(t.value, (L, R) => (c(), b("li", {
8667
8701
  key: C(L, R),
8668
8702
  class: ee(["vf-stepper__item", l(L, R)])
8669
8703
  }, [
8670
- (c(), ge(Ye(_(L)), {
8704
+ (c(), be(Ye(_(L)), {
8671
8705
  class: "vf-stepper__button",
8672
8706
  type: k(L),
8673
8707
  disabled: y(L),
@@ -8678,7 +8712,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8678
8712
  default: Ce(() => [
8679
8713
  B("span", li, [
8680
8714
  B("span", ni, [
8681
- Y(g.$slots, "indicator", {
8715
+ q(g.$slots, "indicator", {
8682
8716
  step: L,
8683
8717
  index: R,
8684
8718
  status: r(L, R),
@@ -8693,7 +8727,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8693
8727
  R < t.value.length - 1 ? (c(), b("span", si)) : Q("", !0)
8694
8728
  ]),
8695
8729
  B("span", ii, [
8696
- Y(g.$slots, "step", {
8730
+ q(g.$slots, "step", {
8697
8731
  step: L,
8698
8732
  index: R,
8699
8733
  status: r(L, R),
@@ -8744,7 +8778,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8744
8778
  setup(n, { emit: o }) {
8745
8779
  const a = o, e = n;
8746
8780
  let t = 0;
8747
- const i = ++t, s = N(void 0), d = N({}), r = f(() => e.steps ?? []), u = f(() => s.value === void 0 ? -1 : r.value.findIndex((S) => S.value === s.value)), v = f(() => {
8781
+ 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(() => {
8748
8782
  if (!(u.value < 0))
8749
8783
  return r.value[u.value];
8750
8784
  }), p = f(() => u.value <= 0), m = f(() => u.value >= r.value.length - 1), $ = f(() => {
@@ -8759,7 +8793,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8759
8793
  var S;
8760
8794
  if (r.value.length) {
8761
8795
  if (e.modelValue !== void 0) {
8762
- const F = r.value.find((A) => A.value === e.modelValue && !A.disabled);
8796
+ const F = r.value.find((H) => H.value === e.modelValue && !H.disabled);
8763
8797
  if (F)
8764
8798
  return F.value;
8765
8799
  }
@@ -8771,17 +8805,17 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8771
8805
  const F = r.value[S];
8772
8806
  if (!F)
8773
8807
  return !0;
8774
- const A = F.value, Z = F.validate ? await F.validate(A, S) : !0, x = e.validateStep ? await e.validateStep(F, S, A) : !0, W = (V) => V == null || V === !0 ? "" : V === !1 ? "Step is invalid" : String(V), h = W(Z), P = W(x), K = h || P;
8808
+ 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;
8775
8809
  if (K)
8776
8810
  return d.value = {
8777
8811
  ...d.value,
8778
- [String(A)]: K
8812
+ [String(H)]: K
8779
8813
  }, a("invalidStep", K, F, S), !1;
8780
- const H = { ...d.value };
8781
- return delete H[String(A)], d.value = H, !0;
8814
+ const A = { ...d.value };
8815
+ return delete A[String(H)], d.value = A, !0;
8782
8816
  }, O = async (S, F) => {
8783
- const A = r.value[S];
8784
- !A || w(A, S) || u.value >= 0 && S > u.value && !await I(u.value) || R(A.value, F);
8817
+ const H = r.value[S];
8818
+ !H || w(H, S) || u.value >= 0 && S > u.value && !await I(u.value) || R(H.value, F);
8785
8819
  }, E = async () => {
8786
8820
  u.value <= 0 || await O(u.value - 1, "prev");
8787
8821
  }, T = async () => {
@@ -8795,14 +8829,14 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8795
8829
  }, M = async (S) => {
8796
8830
  e.disabled || S === u.value || await O(S, S > u.value ? "next" : "prev");
8797
8831
  };
8798
- return ce(
8832
+ return ve(
8799
8833
  () => e.steps,
8800
8834
  () => {
8801
8835
  const S = L();
8802
8836
  S !== void 0 && !r.value.some((F) => F.value === s.value) && (s.value = S);
8803
8837
  },
8804
8838
  { deep: !0, immediate: !0 }
8805
- ), ce(
8839
+ ), ve(
8806
8840
  () => e.modelValue,
8807
8841
  (S) => {
8808
8842
  S === void 0 || S === s.value || r.value.some((F) => F.value === S && !F.disabled) && (s.value = S);
@@ -8819,41 +8853,41 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8819
8853
  }, [
8820
8854
  B("nav", vi, [
8821
8855
  B("ol", fi, [
8822
- (c(!0), b(fe, null, be(r.value, (A, Z) => (c(), b("li", {
8823
- key: String(A.value),
8824
- class: ee(["vf-wizard__item", g(A, Z)])
8856
+ (c(!0), b(fe, null, he(r.value, (H, Z) => (c(), b("li", {
8857
+ key: String(H.value),
8858
+ class: ee(["vf-wizard__item", g(H, Z)])
8825
8859
  }, [
8826
8860
  B("button", {
8827
- id: _(A.value),
8861
+ id: _(H.value),
8828
8862
  class: "vf-wizard__step",
8829
8863
  type: "button",
8830
8864
  role: "tab",
8831
- "aria-selected": y(A.value) ? "true" : "false",
8832
- "aria-controls": k(A.value),
8833
- disabled: w(A, Z),
8865
+ "aria-selected": y(H.value) ? "true" : "false",
8866
+ "aria-controls": k(H.value),
8867
+ disabled: w(H, Z),
8834
8868
  onClick: (x) => M(Z)
8835
8869
  }, [
8836
8870
  B("span", mi, [
8837
- Y(S.$slots, "indicator", {
8838
- step: A,
8871
+ q(S.$slots, "indicator", {
8872
+ step: H,
8839
8873
  index: Z
8840
8874
  }, () => [
8841
8875
  me(j(Z + 1), 1)
8842
8876
  ])
8843
8877
  ]),
8844
8878
  B("span", gi, [
8845
- B("span", bi, j(A.title || `Step ${Z + 1}`), 1),
8846
- A.description ? (c(), b("span", hi, j(A.description), 1)) : Q("", !0)
8879
+ B("span", bi, j(H.title || `Step ${Z + 1}`), 1),
8880
+ H.description ? (c(), b("span", hi, j(H.description), 1)) : Q("", !0)
8847
8881
  ])
8848
8882
  ], 8, pi)
8849
8883
  ], 2))), 128))
8850
8884
  ])
8851
8885
  ]),
8852
8886
  B("div", yi, [
8853
- Y(S.$slots, "default")
8887
+ q(S.$slots, "default")
8854
8888
  ]),
8855
8889
  B("div", _i, [
8856
- Y(S.$slots, "actions", {
8890
+ q(S.$slots, "actions", {
8857
8891
  step: v.value,
8858
8892
  index: u.value,
8859
8893
  isFirst: p.value,
@@ -8894,7 +8928,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8894
8928
  "aria-labelledby": i.value,
8895
8929
  "aria-hidden": e.value ? "false" : "true"
8896
8930
  }, [
8897
- Y(s.$slots, "default")
8931
+ q(s.$slots, "default")
8898
8932
  ], 8, Ci)), [
8899
8933
  [Se, e.value]
8900
8934
  ]);
@@ -8933,18 +8967,18 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8933
8967
  "aria-labelledby": i.ariaLabelledby || void 0
8934
8968
  }, [
8935
8969
  B("ol", $i, [
8936
- (c(!0), b(fe, null, be(a.value, (d, r) => (c(), b("li", {
8970
+ (c(!0), b(fe, null, he(a.value, (d, r) => (c(), b("li", {
8937
8971
  key: t(d, r),
8938
8972
  class: "vf-timeline__item",
8939
8973
  "data-status": d.status ?? "neutral"
8940
8974
  }, [
8941
8975
  B("div", Si, [
8942
8976
  B("span", Bi, [
8943
- Y(i.$slots, "marker", {
8977
+ q(i.$slots, "marker", {
8944
8978
  item: d,
8945
8979
  index: r
8946
8980
  }, () => [
8947
- d.icon ? (c(), ge(We(Ne), {
8981
+ d.icon ? (c(), be(We(Ne), {
8948
8982
  key: 0,
8949
8983
  icon: d.icon
8950
8984
  }, null, 8, ["icon"])) : (c(), b("span", xi))
@@ -8953,7 +8987,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8953
8987
  r < a.value.length - 1 ? (c(), b("span", Li)) : Q("", !0)
8954
8988
  ]),
8955
8989
  B("div", Vi, [
8956
- Y(i.$slots, "item", {
8990
+ q(i.$slots, "item", {
8957
8991
  item: d,
8958
8992
  index: r
8959
8993
  }, () => [
@@ -8979,7 +9013,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
8979
9013
  },
8980
9014
  emits: ["update:modelValue", "change", "focus", "blur"],
8981
9015
  setup(n, { emit: o }) {
8982
- const a = o, e = n, t = N(null), i = N(null), s = N([]), 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(() => {
9016
+ 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(() => {
8983
9017
  const T = t.value ?? e.modelValue ?? 0, D = Math.min(r.value, Math.max(0, T));
8984
9018
  return e.allowHalf ? Math.round(D * 2) / 2 : Math.round(D);
8985
9019
  }), p = f(() => {
@@ -9014,12 +9048,12 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9014
9048
  t.value = r.value;
9015
9049
  return;
9016
9050
  }
9017
- let A = 0, Z = S, x = Number.POSITIVE_INFINITY;
9051
+ let H = 0, Z = S, x = Number.POSITIVE_INFINITY;
9018
9052
  D.forEach((h, P) => {
9019
- const K = h.getBoundingClientRect(), H = K.left + K.width / 2, V = Math.abs(M - H);
9020
- V < x && (x = V, A = P, Z = K);
9053
+ const K = h.getBoundingClientRect(), A = K.left + K.width / 2, V = Math.abs(M - A);
9054
+ V < x && (x = V, H = P, Z = K);
9021
9055
  });
9022
- let W = A + 1;
9056
+ let W = H + 1;
9023
9057
  if (e.allowHalf) {
9024
9058
  const h = Z.left + Z.width / 2;
9025
9059
  W = M < h ? W - 0.5 : W;
@@ -9071,7 +9105,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9071
9105
  onMousemove: y,
9072
9106
  onMouseleave: z
9073
9107
  }, [
9074
- (c(!0), b(fe, null, be(u.value, (M) => (c(), b("button", {
9108
+ (c(!0), b(fe, null, he(u.value, (M) => (c(), b("button", {
9075
9109
  key: M,
9076
9110
  ref_for: !0,
9077
9111
  ref_key: "itemRefs",
@@ -9089,7 +9123,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9089
9123
  onKeydown: (S) => g(M, S)
9090
9124
  }, [
9091
9125
  B("span", Ri, [
9092
- Y(T.$slots, "icon", {}, () => [
9126
+ q(T.$slots, "icon", {}, () => [
9093
9127
  D[0] || (D[0] = B("svg", {
9094
9128
  viewBox: "0 0 24 24",
9095
9129
  "aria-hidden": "true",
@@ -9107,7 +9141,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9107
9141
  style: ke({ width: R(M) })
9108
9142
  }, [
9109
9143
  B("span", Pi, [
9110
- Y(T.$slots, "active-icon", {}, () => [
9144
+ q(T.$slots, "active-icon", {}, () => [
9111
9145
  D[1] || (D[1] = B("svg", {
9112
9146
  viewBox: "0 0 24 24",
9113
9147
  "aria-hidden": "true",
@@ -9246,7 +9280,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9246
9280
  onClick: ie($, ["stop"])
9247
9281
  }, j(i.value ? "-" : "+"), 11, Ai)) : (c(), b("span", Hi)),
9248
9282
  B("span", Wi, [
9249
- Y(l.$slots, "label", {
9283
+ q(l.$slots, "label", {
9250
9284
  node: l.node,
9251
9285
  level: l.level,
9252
9286
  selected: t.value,
@@ -9258,7 +9292,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9258
9292
  ])
9259
9293
  ], 46, Oi),
9260
9294
  a.value && i.value ? (c(), b("ul", Ki, [
9261
- (c(!0), b(fe, null, be(l.node.children, (y) => (c(), ge(k, {
9295
+ (c(!0), b(fe, null, he(l.node.children, (y) => (c(), be(k, {
9262
9296
  key: y.key,
9263
9297
  node: y,
9264
9298
  level: l.level + 1,
@@ -9274,7 +9308,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9274
9308
  "on-toggle": l.onToggle
9275
9309
  }, {
9276
9310
  label: Ce((z) => [
9277
- Y(l.$slots, "label", st({ ref_for: !0 }, z))
9311
+ q(l.$slots, "label", st({ ref_for: !0 }, z))
9278
9312
  ]),
9279
9313
  _: 2
9280
9314
  }, 1032, ["node", "level", "size", "variant", "disabled", "expand-on-click", "selectable", "is-selected", "is-expanded", "is-disabled", "on-select", "on-toggle"]))), 128))
@@ -9328,7 +9362,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9328
9362
  "aria-labelledby": l.ariaLabelledby || void 0
9329
9363
  }, [
9330
9364
  B("ul", ji, [
9331
- (c(!0), b(fe, null, be(l.items, (k) => (c(), ge(Ni, {
9365
+ (c(!0), b(fe, null, he(l.items, (k) => (c(), be(Ni, {
9332
9366
  key: k.key,
9333
9367
  node: k,
9334
9368
  level: 1,
@@ -9344,7 +9378,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9344
9378
  "on-toggle": $
9345
9379
  }, {
9346
9380
  label: Ce((y) => [
9347
- Y(l.$slots, "label", st({ ref_for: !0 }, y))
9381
+ q(l.$slots, "label", st({ ref_for: !0 }, y))
9348
9382
  ]),
9349
9383
  _: 2
9350
9384
  }, 1032, ["node", "size", "variant", "disabled", "expand-on-click", "selectable"]))), 128))
@@ -9393,96 +9427,96 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9393
9427
  ],
9394
9428
  setup(n, { emit: o }) {
9395
9429
  let a = 0;
9396
- const e = o, t = n, i = N(null), s = N(null), d = N(null), r = N(null), u = N(!1), v = N(""), p = N("bottom"), m = N("bottom"), $ = `vf-treeselect-panel-${++a}`;
9430
+ 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}`;
9397
9431
  let l = null;
9398
- const _ = (H) => Array.isArray(H) ? H : H == null ? [] : [H], k = (H) => {
9399
- const V = [], q = (ae) => {
9432
+ const _ = (A) => Array.isArray(A) ? A : A == null ? [] : [A], k = (A) => {
9433
+ const V = [], Y = (ae) => {
9400
9434
  ae.forEach((se) => {
9401
9435
  var U;
9402
- V.push(se), (U = se.children) != null && U.length && q(se.children);
9436
+ V.push(se), (U = se.children) != null && U.length && Y(se.children);
9403
9437
  });
9404
9438
  };
9405
- return q(H), V;
9439
+ return Y(A), V;
9406
9440
  }, y = f(() => _(t.modelValue)), z = f(() => y.value.length > 0), C = f(() => {
9407
- const H = /* @__PURE__ */ new Map();
9441
+ const A = /* @__PURE__ */ new Map();
9408
9442
  return k(t.items).forEach((V) => {
9409
- H.set(V.key, V.label);
9410
- }), H;
9443
+ A.set(V.key, V.label);
9444
+ }), A;
9411
9445
  }), g = f(() => {
9412
- const H = y.value.map((V) => C.value.get(V)).filter((V) => !!V);
9413
- return H.length ? t.multiple ? H.join(", ") : H[0] : "";
9414
- }), w = (H, V) => H.label.toLowerCase().includes(V), L = (H, V) => {
9446
+ const A = y.value.map((V) => C.value.get(V)).filter((V) => !!V);
9447
+ return A.length ? t.multiple ? A.join(", ") : A[0] : "";
9448
+ }), w = (A, V) => A.label.toLowerCase().includes(V), L = (A, V) => {
9415
9449
  if (!V)
9416
- return H;
9417
- const q = [];
9418
- return H.forEach((ae) => {
9450
+ return A;
9451
+ const Y = [];
9452
+ return A.forEach((ae) => {
9419
9453
  var U;
9420
9454
  const se = (U = ae.children) != null && U.length ? L(ae.children, V) : [];
9421
- (w(ae, V) || se.length) && q.push({
9455
+ (w(ae, V) || se.length) && Y.push({
9422
9456
  ...ae,
9423
9457
  children: se
9424
9458
  });
9425
- }), q;
9459
+ }), Y;
9426
9460
  }, R = f(() => {
9427
9461
  if (!t.filter)
9428
9462
  return t.items;
9429
- const H = v.value.trim().toLowerCase();
9430
- return H ? L(t.items, H) : t.items;
9463
+ const A = v.value.trim().toLowerCase();
9464
+ return A ? L(t.items, A) : t.items;
9431
9465
  }), I = f(() => {
9432
- const H = ["vf-treeselect", `vf-treeselect_${t.variant}`, u.value ? "vf-treeselect_open" : ""];
9433
- return t.size !== "normal" && H.push(`vf-treeselect_${t.size}`), t.disabled && H.push("vf-treeselect_disabled"), H.filter(Boolean);
9466
+ const A = ["vf-treeselect", `vf-treeselect_${t.variant}`, u.value ? "vf-treeselect_open" : ""];
9467
+ return t.size !== "normal" && A.push(`vf-treeselect_${t.size}`), t.disabled && A.push("vf-treeselect_disabled"), A.filter(Boolean);
9434
9468
  }), O = () => {
9435
9469
  u.value = !1, p.value = "bottom", m.value = "bottom", v.value = "";
9436
9470
  }, E = async () => {
9437
- var H;
9438
- t.disabled || (u.value = !0, p.value = "bottom", m.value = "bottom", t.filter && (await $e(), (H = r.value) == null || H.focus()));
9471
+ var A;
9472
+ t.disabled || (u.value = !0, p.value = "bottom", m.value = "bottom", t.filter && (await $e(), (A = r.value) == null || A.focus()));
9439
9473
  }, T = () => {
9440
9474
  if (u.value) {
9441
9475
  O();
9442
9476
  return;
9443
9477
  }
9444
9478
  E();
9445
- }, D = (H) => {
9446
- t.readonly || (e("update:modelValue", H), t.multiple || O());
9447
- }, M = (H, V, q) => {
9448
- t.readonly || e("change", H, V, q);
9449
- }, S = (H) => {
9450
- e("update:expandedKeys", H);
9451
- }, F = (H, V, q, ae) => {
9452
- e("toggle", H, V, q, ae);
9453
- }, A = (H, V) => {
9454
- e("nodeClick", H, V);
9479
+ }, D = (A) => {
9480
+ t.readonly || (e("update:modelValue", A), t.multiple || O());
9481
+ }, M = (A, V, Y) => {
9482
+ t.readonly || e("change", A, V, Y);
9483
+ }, S = (A) => {
9484
+ e("update:expandedKeys", A);
9485
+ }, F = (A, V, Y, ae) => {
9486
+ e("toggle", A, V, Y, ae);
9487
+ }, H = (A, V) => {
9488
+ e("nodeClick", A, V);
9455
9489
  }, Z = () => {
9456
9490
  if (t.readonly)
9457
9491
  return;
9458
- const H = t.multiple ? [] : void 0;
9459
- e("update:modelValue", H), e("change", H);
9460
- }, x = (H) => {
9461
- const V = H.target;
9492
+ const A = t.multiple ? [] : void 0;
9493
+ e("update:modelValue", A), e("change", A);
9494
+ }, x = (A) => {
9495
+ const V = A.target;
9462
9496
  v.value = V.value, e("search", V.value);
9463
- }, W = (H) => e("focus", H), h = (H) => e("blur", H), P = (H) => {
9464
- var q;
9497
+ }, W = (A) => e("focus", A), h = (A) => e("blur", A), P = (A) => {
9498
+ var Y;
9465
9499
  if (!u.value || !i.value)
9466
9500
  return;
9467
- const V = H.target;
9468
- i.value.contains(V) || (q = d.value) != null && q.contains(V) || O();
9501
+ const V = A.target;
9502
+ i.value.contains(V) || (Y = d.value) != null && Y.contains(V) || O();
9469
9503
  }, K = () => {
9470
9504
  if (!s.value || !d.value)
9471
9505
  return;
9472
- const H = s.value, V = d.value, q = async () => {
9506
+ const A = s.value, V = d.value, Y = async () => {
9473
9507
  const {
9474
9508
  x: X,
9475
9509
  y: re,
9476
9510
  placement: de
9477
- } = await Me(H, V, {
9511
+ } = await Me(A, V, {
9478
9512
  placement: p.value,
9479
9513
  strategy: "fixed",
9480
9514
  middleware: [Ie(2), Te({ placements: ["bottom", "top"] })]
9481
9515
  });
9482
- m.value = de ?? p.value, V.style.minWidth = `${H.getBoundingClientRect().width}px`, V.style.left = `${X}px`, V.style.top = `${re}px`;
9516
+ m.value = de ?? p.value, V.style.minWidth = `${A.getBoundingClientRect().width}px`, V.style.left = `${X}px`, V.style.top = `${re}px`;
9483
9517
  }, ae = async () => {
9484
- await q();
9485
- }, se = De(H, () => {
9518
+ await Y();
9519
+ }, se = De(A, () => {
9486
9520
  ae();
9487
9521
  }), U = () => {
9488
9522
  ae();
@@ -9494,13 +9528,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9494
9528
  }
9495
9529
  }, l.update();
9496
9530
  };
9497
- return ce(u, async (H) => {
9498
- if (!H) {
9531
+ return ve(u, async (A) => {
9532
+ if (!A) {
9499
9533
  l && (l.destroy(), l = null);
9500
9534
  return;
9501
9535
  }
9502
9536
  await $e(), l || K(), l == null || l.update();
9503
- }), ce(
9537
+ }), ve(
9504
9538
  () => [t.items, v.value, t.expandedKeys],
9505
9539
  () => {
9506
9540
  l == null || l.update();
@@ -9510,7 +9544,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9510
9544
  document.addEventListener("click", P);
9511
9545
  }), we(() => {
9512
9546
  document.removeEventListener("click", P), l == null || l.destroy(), l = null;
9513
- }), (H, V) => (c(), b("div", {
9547
+ }), (A, V) => (c(), b("div", {
9514
9548
  ref_key: "root",
9515
9549
  ref: i,
9516
9550
  class: ee(I.value)
@@ -9520,7 +9554,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9520
9554
  ref: s,
9521
9555
  class: "vf-treeselect__control",
9522
9556
  type: "button",
9523
- disabled: H.disabled,
9557
+ disabled: A.disabled,
9524
9558
  "aria-expanded": u.value,
9525
9559
  "aria-controls": $,
9526
9560
  "aria-haspopup": "tree",
@@ -9535,20 +9569,20 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9535
9569
  }, [
9536
9570
  B("span", {
9537
9571
  class: ee(["vf-treeselect__label", { "vf-treeselect__label_placeholder": !g.value }])
9538
- }, j(g.value || H.placeholder), 3),
9572
+ }, j(g.value || A.placeholder), 3),
9539
9573
  V[0] || (V[0] = B("span", {
9540
9574
  class: "vf-treeselect__chevron",
9541
9575
  "aria-hidden": "true"
9542
9576
  }, "▾", -1))
9543
9577
  ], 40, qi),
9544
- H.clearable && z.value && !H.disabled && !H.readonly ? (c(), b("button", {
9578
+ A.clearable && z.value && !A.disabled && !A.readonly ? (c(), b("button", {
9545
9579
  key: 0,
9546
9580
  class: "vf-treeselect__clear",
9547
9581
  type: "button",
9548
9582
  "aria-label": "Clear selection",
9549
9583
  onClick: ie(Z, ["stop"])
9550
9584
  }, " ✕ ")) : Q("", !0),
9551
- (c(), ge(Le, { to: "body" }, [
9585
+ (c(), be(Le, { to: "body" }, [
9552
9586
  ze(B("div", {
9553
9587
  id: $,
9554
9588
  ref_key: "panel",
@@ -9556,41 +9590,41 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9556
9590
  class: "vf-treeselect__panel",
9557
9591
  "data-placement": m.value
9558
9592
  }, [
9559
- H.filter ? (c(), b("div", Ui, [
9593
+ A.filter ? (c(), b("div", Ui, [
9560
9594
  B("input", {
9561
9595
  ref_key: "searchInput",
9562
9596
  ref: r,
9563
9597
  class: "vf-treeselect__search-control",
9564
9598
  type: "text",
9565
9599
  value: v.value,
9566
- placeholder: H.searchPlaceholder,
9600
+ placeholder: A.searchPlaceholder,
9567
9601
  onInput: x,
9568
9602
  onKeydown: pe(ie(O, ["prevent"]), ["esc"])
9569
9603
  }, null, 40, Qi)
9570
9604
  ])) : Q("", !0),
9571
- H.loading ? (c(), b("div", Zi, j(H.loadingText), 1)) : R.value.length > 0 ? (c(), ge(Yi, {
9605
+ A.loading ? (c(), b("div", Zi, j(A.loadingText), 1)) : R.value.length > 0 ? (c(), be(Yi, {
9572
9606
  key: 2,
9573
9607
  class: "vf-treeselect__tree",
9574
9608
  items: R.value,
9575
- "model-value": H.modelValue,
9576
- "expanded-keys": H.expandedKeys,
9577
- multiple: H.multiple,
9578
- selectable: H.selectable,
9579
- "expand-on-click": H.expandOnClick,
9580
- disabled: H.disabled,
9581
- size: H.size,
9582
- variant: H.variant,
9609
+ "model-value": A.modelValue,
9610
+ "expanded-keys": A.expandedKeys,
9611
+ multiple: A.multiple,
9612
+ selectable: A.selectable,
9613
+ "expand-on-click": A.expandOnClick,
9614
+ disabled: A.disabled,
9615
+ size: A.size,
9616
+ variant: A.variant,
9583
9617
  "onUpdate:modelValue": D,
9584
9618
  onChange: M,
9585
9619
  "onUpdate:expandedKeys": S,
9586
9620
  onToggle: F,
9587
- onNodeClick: A
9621
+ onNodeClick: H
9588
9622
  }, {
9589
- label: Ce((q) => [
9590
- Y(H.$slots, "label", Pt(Et(q)))
9623
+ label: Ce((Y) => [
9624
+ q(A.$slots, "label", Pt(Et(Y)))
9591
9625
  ]),
9592
9626
  _: 3
9593
- }, 8, ["items", "model-value", "expanded-keys", "multiple", "selectable", "expand-on-click", "disabled", "size", "variant"])) : (c(), b("div", Ji, j(H.emptyText), 1))
9627
+ }, 8, ["items", "model-value", "expanded-keys", "multiple", "selectable", "expand-on-click", "disabled", "size", "variant"])) : (c(), b("div", Ji, j(A.emptyText), 1))
9594
9628
  ], 8, Xi), [
9595
9629
  [Se, u.value]
9596
9630
  ])
@@ -9620,19 +9654,19 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9620
9654
  "aria-label": s.ariaLabel
9621
9655
  }, [
9622
9656
  B("ol", td, [
9623
- (c(!0), b(fe, null, be(a.value, (r, u) => (c(), b(fe, {
9657
+ (c(!0), b(fe, null, he(a.value, (r, u) => (c(), b(fe, {
9624
9658
  key: i(r, u)
9625
9659
  }, [
9626
9660
  B("li", {
9627
9661
  class: ee(["vf-breadcrumbs__item", { "is-current": t(r, u), "is-disabled": r.disabled }])
9628
9662
  }, [
9629
- Y(s.$slots, "item", {
9663
+ q(s.$slots, "item", {
9630
9664
  item: r,
9631
9665
  index: u,
9632
9666
  isLast: u === a.value.length - 1,
9633
9667
  active: t(r, u)
9634
9668
  }, () => [
9635
- t(r, u) ? (c(), b("span", ad, j(r.label), 1)) : (c(), ge(it, {
9669
+ t(r, u) ? (c(), b("span", ad, j(r.label), 1)) : (c(), be(it, {
9636
9670
  key: 1,
9637
9671
  class: "vf-breadcrumbs__link",
9638
9672
  to: r.to,
@@ -9647,7 +9681,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9647
9681
  ])
9648
9682
  ], 2),
9649
9683
  u < a.value.length - 1 ? (c(), b("li", od, [
9650
- Y(s.$slots, "separator", { separator: s.separator }, () => [
9684
+ q(s.$slots, "separator", { separator: s.separator }, () => [
9651
9685
  me(j(s.separator), 1)
9652
9686
  ])
9653
9687
  ])) : Q("", !0)
@@ -9680,7 +9714,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9680
9714
  "aria-label": i.ariaLabel
9681
9715
  }, [
9682
9716
  e.value ? (c(), b("span", ld, [
9683
- Y(i.$slots, "default", {}, () => [
9717
+ q(i.$slots, "default", {}, () => [
9684
9718
  me(j(i.label), 1)
9685
9719
  ])
9686
9720
  ])) : Q("", !0)
@@ -9711,7 +9745,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9711
9745
  metaAriaLabel: { default: "Page metadata" }
9712
9746
  },
9713
9747
  setup(n) {
9714
- const o = n, a = Xe(), e = f(() => !!o.title || !!a.title), t = f(() => !!o.subtitle || !!a.subtitle), i = N(!1), s = () => {
9748
+ const o = n, a = Xe(), e = f(() => !!o.title || !!a.title), t = f(() => !!o.subtitle || !!a.subtitle), i = G(!1), s = () => {
9715
9749
  typeof window > "u" || (i.value = window.innerWidth <= o.mobileBreakpoint);
9716
9750
  }, d = f(() => {
9717
9751
  const r = ["vf-page-header"];
@@ -9723,17 +9757,17 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9723
9757
  class: ee(d.value)
9724
9758
  }, [
9725
9759
  r.$slots.breadcrumbs ? (c(), b("div", nd, [
9726
- Y(r.$slots, "breadcrumbs")
9760
+ q(r.$slots, "breadcrumbs")
9727
9761
  ])) : Q("", !0),
9728
9762
  B("div", sd, [
9729
9763
  B("div", id, [
9730
9764
  e.value ? (c(), b("h1", dd, [
9731
- Y(r.$slots, "title", {}, () => [
9765
+ q(r.$slots, "title", {}, () => [
9732
9766
  me(j(r.title), 1)
9733
9767
  ])
9734
9768
  ])) : Q("", !0),
9735
9769
  t.value ? (c(), b("p", ud, [
9736
- Y(r.$slots, "subtitle", {}, () => [
9770
+ q(r.$slots, "subtitle", {}, () => [
9737
9771
  me(j(r.subtitle), 1)
9738
9772
  ])
9739
9773
  ])) : Q("", !0),
@@ -9743,10 +9777,10 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9743
9777
  role: "group",
9744
9778
  "aria-label": r.metaAriaLabel || void 0
9745
9779
  }, [
9746
- Y(r.$slots, "meta")
9780
+ q(r.$slots, "meta")
9747
9781
  ], 8, cd)) : Q("", !0),
9748
9782
  r.$slots.default ? (c(), b("div", vd, [
9749
- Y(r.$slots, "default")
9783
+ q(r.$slots, "default")
9750
9784
  ])) : Q("", !0)
9751
9785
  ]),
9752
9786
  r.$slots.actions ? (c(), b("div", {
@@ -9755,7 +9789,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9755
9789
  role: "group",
9756
9790
  "aria-label": r.actionsAriaLabel || void 0
9757
9791
  }, [
9758
- Y(r.$slots, "actions")
9792
+ q(r.$slots, "actions")
9759
9793
  ], 8, fd)) : Q("", !0)
9760
9794
  ])
9761
9795
  ], 2));
@@ -9781,7 +9815,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9781
9815
  },
9782
9816
  emits: ["scroll", "rangeChange", "reachEnd"],
9783
9817
  setup(n, { emit: o }) {
9784
- const a = o, e = n, t = N(null), i = N(0), s = N({ start: -1, end: -1 }), d = N(!1), r = f(() => e.items ?? []), u = f(() => r.value.length), v = f(
9818
+ 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(
9785
9819
  () => Number.isFinite(e.itemHeight) && e.itemHeight > 0 ? e.itemHeight : 36
9786
9820
  ), p = f(
9787
9821
  () => Number.isFinite(e.overscan) && e.overscan >= 0 ? Math.floor(e.overscan) : 4
@@ -9828,7 +9862,7 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9828
9862
  const S = M.target;
9829
9863
  i.value = S.scrollTop, a("scroll", M), E(), T();
9830
9864
  };
9831
- return ce(
9865
+ return ve(
9832
9866
  () => [e.items, e.virtual, e.itemHeight, e.overscan],
9833
9867
  () => {
9834
9868
  E(), T();
@@ -9852,13 +9886,13 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9852
9886
  class: "vf-virtual-scroller__content",
9853
9887
  style: ke(R.value)
9854
9888
  }, [
9855
- (c(!0), b(fe, null, be(y.value, (F) => (c(), b("div", {
9889
+ (c(!0), b(fe, null, he(y.value, (F) => (c(), b("div", {
9856
9890
  key: F.key,
9857
9891
  class: "vf-virtual-scroller__item",
9858
9892
  style: ke(I.value),
9859
9893
  role: "listitem"
9860
9894
  }, [
9861
- Y(M.$slots, "default", {
9895
+ q(M.$slots, "default", {
9862
9896
  item: F.item,
9863
9897
  index: F.index
9864
9898
  }, () => [
@@ -9867,21 +9901,21 @@ const ho = (n, o) => n.strategy ? n.strategy : bo(o) ? "fixed" : "absolute", Ke
9867
9901
  ], 4))), 128))
9868
9902
  ], 4)
9869
9903
  ], 4)) : (c(), b("div", gd, [
9870
- (c(!0), b(fe, null, be(r.value, (F, A) => (c(), b("div", {
9871
- key: O(F, A),
9904
+ (c(!0), b(fe, null, he(r.value, (F, H) => (c(), b("div", {
9905
+ key: O(F, H),
9872
9906
  class: "vf-virtual-scroller__item",
9873
9907
  style: ke(I.value),
9874
9908
  role: "listitem"
9875
9909
  }, [
9876
- Y(M.$slots, "default", {
9910
+ q(M.$slots, "default", {
9877
9911
  item: F,
9878
- index: A
9912
+ index: H
9879
9913
  }, () => [
9880
9914
  me(j(F), 1)
9881
9915
  ])
9882
9916
  ], 4))), 128))
9883
9917
  ])) : (c(), b("div", md, [
9884
- Y(M.$slots, "empty", {}, () => [
9918
+ q(M.$slots, "empty", {}, () => [
9885
9919
  me(j(M.emptyText), 1)
9886
9920
  ])
9887
9921
  ]))