@codemonster-ru/vueforge 0.21.0 → 0.22.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,7 +1,7 @@
1
- import { defineComponent as G, ref as I, computed as h, watch as te, resolveComponent as Xe, openBlock as g, createElementBlock as y, normalizeClass as D, renderSlot as L, Fragment as se, createTextVNode as Q, toDisplayString as O, createBlock as le, withCtx as ye, createCommentVNode as T, createElementVNode as F, renderList as ke, withKeys as U, withModifiers as Y, unref as xe, createVNode as qe, useSlots as Ue, nextTick as Ce, onMounted as Fe, onBeforeUnmount as we, Teleport as $e, withDirectives as ve, vShow as fe, provide as Ze, inject as We, reactive as lt, createSlots as nt, normalizeStyle as st } from "vue";
2
- import { useRoute as it, useRouter as dt } from "vue-router";
1
+ import { defineComponent as Y, ref as D, computed as m, watch as te, resolveComponent as qe, openBlock as g, createElementBlock as y, normalizeClass as R, renderSlot as S, Fragment as se, createTextVNode as Q, toDisplayString as O, createBlock as le, withCtx as ye, createCommentVNode as T, createElementVNode as B, renderList as ke, withKeys as U, withModifiers as G, unref as xe, createVNode as Ue, useSlots as Ze, nextTick as Ce, onMounted as Fe, onBeforeUnmount as we, Teleport as $e, withDirectives as ve, vShow as fe, provide as Ae, inject as De, reactive as nt, createSlots as st, normalizeStyle as it } from "vue";
2
+ import { useRoute as dt, useRouter as ct } from "vue-router";
3
3
  import { CmIcon as Be } from "@codemonster-ru/vueiconify";
4
- const ct = ["href", "aria-disabled", "tabindex"], Je = /* @__PURE__ */ G({
4
+ const ut = ["href", "aria-disabled", "tabindex"], Je = /* @__PURE__ */ Y({
5
5
  __name: "link",
6
6
  props: {
7
7
  to: { default: void 0 },
@@ -15,39 +15,39 @@ const ct = ["href", "aria-disabled", "tabindex"], Je = /* @__PURE__ */ G({
15
15
  },
16
16
  emits: ["click", "active", "update:active", "onActive"],
17
17
  setup(t, { emit: e }) {
18
- const r = e, o = t, a = it(), d = dt(), s = I(null), c = h(() => o.href ?? o.url), l = h(() => o.as ? o.as === "router-link" && !o.to ? "a" : o.as : o.type === "router-link" || o.type === "a" ? o.type === "router-link" && !o.to ? "a" : o.type : o.to ? "router-link" : "a"), u = h(() => o.to), n = h(() => o.to ? d.resolve(o.to) : null), i = h(() => {
18
+ const r = e, o = t, a = dt(), d = ct(), i = D(null), c = m(() => o.href ?? o.url), l = m(() => o.as ? o.as === "router-link" && !o.to ? "a" : o.as : o.type === "router-link" || o.type === "a" ? o.type === "router-link" && !o.to ? "a" : o.type : o.to ? "router-link" : "a"), u = m(() => o.to), s = m(() => o.to ? d.resolve(o.to) : null), n = m(() => {
19
19
  if (l.value !== "router-link")
20
20
  return !1;
21
- const v = n.value;
21
+ const v = s.value;
22
22
  return v ? v.name ? a.matched.some(({ name: _ }) => _ === v.name) : v.fullPath ? a.fullPath === v.fullPath : a.path === v.path : !1;
23
- }), f = h(() => o.active === void 0 ? i.value : o.active), p = (v) => {
23
+ }), f = m(() => o.active === void 0 ? n.value : o.active), p = (v) => {
24
24
  if (!o.disabled) {
25
25
  r("click", v);
26
26
  return;
27
27
  }
28
28
  v.preventDefault(), v.stopPropagation();
29
29
  };
30
- return te(i, (v) => {
30
+ return te(n, (v) => {
31
31
  v && (r("active"), r("onActive")), r("update:active", v);
32
32
  }), (v, _) => {
33
- const m = Xe("router-link");
33
+ const h = qe("router-link");
34
34
  return l.value === "a" ? (g(), y("a", {
35
35
  key: 0,
36
36
  href: c.value,
37
- class: D(["vf-link", { "vf-link_active": f.value, "vf-link_disabled": v.disabled }]),
37
+ class: R(["vf-link", { "vf-link_active": f.value, "vf-link_disabled": v.disabled }]),
38
38
  "aria-disabled": v.disabled,
39
39
  tabindex: v.disabled ? -1 : void 0,
40
40
  onClick: p
41
41
  }, [
42
- v.$slots.default ? L(v.$slots, "default", { key: 0 }) : (g(), y(se, { key: 1 }, [
42
+ v.$slots.default ? S(v.$slots, "default", { key: 0 }) : (g(), y(se, { key: 1 }, [
43
43
  Q(O(v.label), 1)
44
44
  ], 64))
45
- ], 10, ct)) : (g(), le(m, {
45
+ ], 10, ut)) : (g(), le(h, {
46
46
  key: 1,
47
47
  ref_key: "link",
48
- ref: s,
48
+ ref: i,
49
49
  to: u.value,
50
- class: D(["vf-link", { "vf-link_active": f.value }]),
50
+ class: R(["vf-link", { "vf-link_active": f.value }]),
51
51
  "aria-disabled": v.disabled,
52
52
  tabindex: v.disabled ? -1 : void 0,
53
53
  "active-class": "vf-link_partially-active",
@@ -55,7 +55,7 @@ const ct = ["href", "aria-disabled", "tabindex"], Je = /* @__PURE__ */ G({
55
55
  onClick: p
56
56
  }, {
57
57
  default: ye(() => [
58
- v.$slots.default ? L(v.$slots, "default", { key: 0 }) : (g(), y(se, { key: 1 }, [
58
+ v.$slots.default ? S(v.$slots, "default", { key: 0 }) : (g(), y(se, { key: 1 }, [
59
59
  Q(O(v.label), 1)
60
60
  ], 64))
61
61
  ]),
@@ -63,48 +63,48 @@ const ct = ["href", "aria-disabled", "tabindex"], Je = /* @__PURE__ */ G({
63
63
  }, 8, ["to", "class", "aria-disabled", "tabindex"]));
64
64
  };
65
65
  }
66
- }), ut = (t, e) => {
66
+ }), vt = (t, e) => {
67
67
  const r = t.__vccOpts || t;
68
68
  for (const [o, a] of e)
69
69
  r[o] = a;
70
70
  return r;
71
- }, vt = {}, ft = { class: "vf-card" }, pt = {
71
+ }, ft = {}, pt = { class: "vf-card" }, bt = {
72
72
  key: 0,
73
73
  class: "vf-card__default"
74
- }, bt = {
74
+ }, gt = {
75
75
  key: 1,
76
76
  class: "vf-card__header"
77
- }, gt = {
77
+ }, mt = {
78
78
  key: 2,
79
79
  class: "vf-card__body"
80
- }, mt = {
80
+ }, ht = {
81
81
  key: 3,
82
82
  class: "vf-card__footer"
83
83
  };
84
- function ht(t, e) {
85
- return g(), y("div", ft, [
86
- t.$slots.default ? (g(), y("div", pt, [
87
- L(t.$slots, "default")
84
+ function yt(t, e) {
85
+ return g(), y("div", pt, [
86
+ t.$slots.default ? (g(), y("div", bt, [
87
+ S(t.$slots, "default")
88
88
  ])) : T("", !0),
89
- t.$slots.header ? (g(), y("div", bt, [
90
- L(t.$slots, "header")
89
+ t.$slots.header ? (g(), y("div", gt, [
90
+ S(t.$slots, "header")
91
91
  ])) : T("", !0),
92
- t.$slots.body ? (g(), y("div", gt, [
93
- L(t.$slots, "body")
92
+ t.$slots.body ? (g(), y("div", mt, [
93
+ S(t.$slots, "body")
94
94
  ])) : T("", !0),
95
- t.$slots.footer ? (g(), y("div", mt, [
96
- L(t.$slots, "footer")
95
+ t.$slots.footer ? (g(), y("div", ht, [
96
+ S(t.$slots, "footer")
97
97
  ])) : T("", !0)
98
98
  ]);
99
99
  }
100
- const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
100
+ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
101
101
  class: "vf-menu__list",
102
102
  role: "menu"
103
- }, kt = {
103
+ }, Ct = {
104
104
  key: 1,
105
105
  class: "vf-menu__separator",
106
106
  role: "separator"
107
- }, Ct = ["aria-expanded", "onClick", "onKeydown"], Na = /* @__PURE__ */ G({
107
+ }, wt = ["aria-expanded", "onClick", "onKeydown"], Za = /* @__PURE__ */ Y({
108
108
  name: "VfMenu",
109
109
  __name: "menu",
110
110
  props: {
@@ -113,51 +113,51 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
113
113
  },
114
114
  emits: ["active", "onActive"],
115
115
  setup(t, { emit: e }) {
116
- const r = e, o = t, a = I([]), d = (n, i) => `${n.label ?? n.to ?? n.href ?? n.url ?? "item"}_${i.toString()}`, s = (n) => n.to ? "router-link" : "a", c = (n) => n.map((i) => ({
117
- ...i,
118
- items: i.items ? c(i.items) : void 0
119
- })), l = (n) => {
120
- n.items && n.items.length ? (a.value.map((i) => {
121
- i !== n && (i.subMenuVisible = !1);
122
- }), n.subMenuVisible = !n.subMenuVisible) : Object.prototype.hasOwnProperty.call(n, "command") && typeof n.command == "function" && n.command();
123
- }, u = (n) => {
124
- var i;
116
+ const r = e, o = t, a = D([]), d = (s, n) => `${s.label ?? s.to ?? s.href ?? s.url ?? "item"}_${n.toString()}`, i = (s) => s.to ? "router-link" : "a", c = (s) => s.map((n) => ({
117
+ ...n,
118
+ items: n.items ? c(n.items) : void 0
119
+ })), l = (s) => {
120
+ s.items && s.items.length ? (a.value.map((n) => {
121
+ n !== s && (n.subMenuVisible = !1);
122
+ }), s.subMenuVisible = !s.subMenuVisible) : Object.prototype.hasOwnProperty.call(s, "command") && typeof s.command == "function" && s.command();
123
+ }, u = (s) => {
124
+ var n;
125
125
  for (const f in a.value) {
126
126
  const p = a.value[f];
127
- Object.prototype.hasOwnProperty.call(p, "items") && ((i = p.items) != null && i.some((v) => v === n) ? (p.active = !0, p.subMenuVisible = !0) : (p.active = !1, p.subMenuVisible = !1));
127
+ Object.prototype.hasOwnProperty.call(p, "items") && ((n = p.items) != null && n.some((v) => v === s) ? (p.active = !0, p.subMenuVisible = !0) : (p.active = !1, p.subMenuVisible = !1));
128
128
  }
129
- r("active", n), r("onActive", n);
129
+ r("active", s), r("onActive", s);
130
130
  };
131
131
  return te(
132
132
  () => o.items,
133
- (n) => {
134
- a.value = c(n);
133
+ (s) => {
134
+ a.value = c(s);
135
135
  },
136
136
  { deep: !0, immediate: !0 }
137
- ), (n, i) => {
138
- const f = Xe("VfMenu");
137
+ ), (s, n) => {
138
+ const f = qe("VfMenu");
139
139
  return g(), y("div", {
140
- class: D(["vf-menu", `vf-menu_${n.orientation}`])
140
+ class: R(["vf-menu", `vf-menu_${s.orientation}`])
141
141
  }, [
142
- F("ul", _t, [
142
+ B("ul", kt, [
143
143
  (g(!0), y(se, null, ke(a.value, (p, v) => (g(), y("li", {
144
144
  key: d(p, v),
145
145
  class: "vf-menu__item",
146
146
  role: "none"
147
147
  }, [
148
- n.$slots[d(p, v)] ? L(n.$slots, d(p, v), {
148
+ s.$slots[d(p, v)] ? S(s.$slots, d(p, v), {
149
149
  key: 0,
150
150
  item: { ...p, class: "vf-menu__link" }
151
- }) : p.separator ? (g(), y("hr", kt)) : p.items && p.items.length ? (g(), y(se, { key: 2 }, [
152
- F("div", {
153
- class: D(["vf-menu__parent", { "vf-menu__parent_active": p.active }]),
151
+ }) : p.separator ? (g(), y("hr", Ct)) : p.items && p.items.length ? (g(), y(se, { key: 2 }, [
152
+ B("div", {
153
+ class: R(["vf-menu__parent", { "vf-menu__parent_active": p.active }]),
154
154
  role: "menuitem",
155
155
  tabindex: "0",
156
156
  "aria-expanded": p.subMenuVisible ? "true" : "false",
157
157
  onClick: (_) => l(p),
158
158
  onKeydown: [
159
- U(Y((_) => l(p), ["prevent"]), ["enter"]),
160
- U(Y((_) => l(p), ["prevent"]), ["space"])
159
+ U(G((_) => l(p), ["prevent"]), ["enter"]),
160
+ U(G((_) => l(p), ["prevent"]), ["space"])
161
161
  ]
162
162
  }, [
163
163
  p.icon ? (g(), le(xe(Be), {
@@ -166,19 +166,19 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
166
166
  class: "vf-menu__icon"
167
167
  }, null, 8, ["icon"])) : T("", !0),
168
168
  Q(" " + O(p.label) + " ", 1),
169
- qe(xe(Be), { icon: "chevronDown" })
170
- ], 42, Ct),
169
+ Ue(xe(Be), { icon: "chevronDown" })
170
+ ], 42, wt),
171
171
  p.items ? (g(), le(f, {
172
172
  key: 0,
173
173
  items: p.items,
174
- class: D(["vf-menu__submenu", { "vf-menu__submenu_visible": p.subMenuVisible }]),
174
+ class: R(["vf-menu__submenu", { "vf-menu__submenu_visible": p.subMenuVisible }]),
175
175
  onOnActive: u
176
176
  }, null, 8, ["items", "class"])) : T("", !0)
177
177
  ], 64)) : (g(), le(Je, {
178
178
  key: 3,
179
179
  to: p.to,
180
180
  href: p.href ?? p.url,
181
- as: s(p),
181
+ as: i(p),
182
182
  class: "vf-menu__link",
183
183
  active: p.active,
184
184
  disabled: p.disabled,
@@ -202,7 +202,7 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
202
202
  ], 2);
203
203
  };
204
204
  }
205
- }), wt = ["type", "disabled"], Ya = /* @__PURE__ */ G({
205
+ }), $t = ["type", "disabled"], Ja = /* @__PURE__ */ Y({
206
206
  __name: "button",
207
207
  props: {
208
208
  to: { default: void 0 },
@@ -221,70 +221,70 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
221
221
  disabled: { type: Boolean, default: !1 }
222
222
  },
223
223
  setup(t) {
224
- const e = t, r = ["button", "submit", "reset"], o = (n) => !!n && r.includes(n), a = h(() => e.as ? e.as === "button" : !(e.to || e.href || e.url || e.type && !o(e.type))), d = h(() => o(e.type) ? e.type : "button"), s = h(() => e.as === "link" ? e.to ? "router-link" : "a" : e.type && !o(e.type) ? e.type === "router-link" && e.to ? "router-link" : "a" : e.to ? "router-link" : "a"), c = h(() => {
225
- let n = ["vf-button", `vf-button_${e.severity}`];
226
- return ["top", "bottom"].includes(e.iconPos) && n.push("vf-button_vertical"), e.variant === "text" && n.push("vf-button_text"), e.variant === "outlined" && n.push("vf-button_outlined"), ["small", "large"].indexOf(e.size) > -1 && n.push(`vf-button_${e.size}`), (e.loading || e.disabled) && n.push("vf-button_disabled"), e.rounded && n.push("vf-button_rounded"), n;
227
- }), l = h(() => ["vf-button__icon", `vf-button__icon_${e.iconPos}`]), u = h(() => ["vf-button__label"]);
228
- return (n, i) => a.value ? (g(), y("button", {
224
+ const e = t, r = ["button", "submit", "reset"], o = (s) => !!s && r.includes(s), a = m(() => e.as ? e.as === "button" : !(e.to || e.href || e.url || e.type && !o(e.type))), d = m(() => o(e.type) ? e.type : "button"), i = m(() => e.as === "link" ? e.to ? "router-link" : "a" : e.type && !o(e.type) ? e.type === "router-link" && e.to ? "router-link" : "a" : e.to ? "router-link" : "a"), c = m(() => {
225
+ let s = ["vf-button", `vf-button_${e.severity}`];
226
+ return ["top", "bottom"].includes(e.iconPos) && s.push("vf-button_vertical"), e.variant === "text" && s.push("vf-button_text"), e.variant === "outlined" && s.push("vf-button_outlined"), ["small", "large"].indexOf(e.size) > -1 && s.push(`vf-button_${e.size}`), (e.loading || e.disabled) && s.push("vf-button_disabled"), e.rounded && s.push("vf-button_rounded"), s;
227
+ }), l = m(() => ["vf-button__icon", `vf-button__icon_${e.iconPos}`]), u = m(() => ["vf-button__label"]);
228
+ return (s, n) => a.value ? (g(), y("button", {
229
229
  key: 0,
230
230
  type: d.value,
231
- class: D(c.value),
231
+ class: R(c.value),
232
232
  disabled: e.loading || e.disabled
233
233
  }, [
234
234
  e.icon && !e.loading ? (g(), le(xe(Be), {
235
235
  key: 0,
236
236
  icon: e.icon,
237
- class: D(l.value)
237
+ class: R(l.value)
238
238
  }, null, 8, ["icon", "class"])) : T("", !0),
239
239
  e.loading ? (g(), le(xe(Be), {
240
240
  key: 1,
241
241
  icon: "circleNotch",
242
- class: D(l.value),
242
+ class: R(l.value),
243
243
  spin: ""
244
244
  }, null, 8, ["class"])) : T("", !0),
245
- n.$slots.default ? (g(), y("span", {
245
+ s.$slots.default ? (g(), y("span", {
246
246
  key: 2,
247
- class: D(u.value)
247
+ class: R(u.value)
248
248
  }, [
249
- L(n.$slots, "default")
250
- ], 2)) : n.label ? (g(), y("span", {
249
+ S(s.$slots, "default")
250
+ ], 2)) : s.label ? (g(), y("span", {
251
251
  key: 3,
252
- class: D(u.value)
253
- }, O(n.label), 3)) : T("", !0)
254
- ], 10, wt)) : (g(), le(Je, {
252
+ class: R(u.value)
253
+ }, O(s.label), 3)) : T("", !0)
254
+ ], 10, $t)) : (g(), le(Je, {
255
255
  key: 1,
256
256
  to: e.to,
257
257
  href: e.href ?? e.url,
258
- as: s.value,
259
- class: D(c.value),
258
+ as: i.value,
259
+ class: R(c.value),
260
260
  disabled: e.loading || e.disabled
261
261
  }, {
262
262
  default: ye(() => [
263
263
  e.icon ? (g(), le(xe(Be), {
264
264
  key: 0,
265
265
  icon: e.icon,
266
- class: D(l.value)
266
+ class: R(l.value)
267
267
  }, null, 8, ["icon", "class"])) : T("", !0),
268
- n.$slots.default ? (g(), y("span", {
268
+ s.$slots.default ? (g(), y("span", {
269
269
  key: 1,
270
- class: D(u.value)
270
+ class: R(u.value)
271
271
  }, [
272
- L(n.$slots, "default")
273
- ], 2)) : n.label ? (g(), y("span", {
272
+ S(s.$slots, "default")
273
+ ], 2)) : s.label ? (g(), y("span", {
274
274
  key: 2,
275
- class: D(u.value)
276
- }, O(n.label), 3)) : T("", !0)
275
+ class: R(u.value)
276
+ }, O(s.label), 3)) : T("", !0)
277
277
  ]),
278
278
  _: 3
279
279
  }, 8, ["to", "href", "as", "class", "disabled"]));
280
280
  }
281
- }), $t = {
281
+ }), xt = {
282
282
  key: 0,
283
283
  class: "vf-input__prefix"
284
- }, xt = ["type", "value", "placeholder", "disabled", "readonly"], Bt = {
284
+ }, Bt = ["type", "value", "placeholder", "disabled", "readonly"], zt = {
285
285
  key: 1,
286
286
  class: "vf-input__suffix"
287
- }, Ga = /* @__PURE__ */ G({
287
+ }, Qa = /* @__PURE__ */ Y({
288
288
  __name: "input",
289
289
  props: {
290
290
  modelValue: { default: "" },
@@ -297,20 +297,20 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
297
297
  },
298
298
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
299
299
  setup(t, { emit: e }) {
300
- const r = e, o = t, a = h(() => {
300
+ const r = e, o = t, a = m(() => {
301
301
  const u = ["vf-input", `vf-input_${o.variant}`];
302
302
  return o.size !== "normal" && u.push(`vf-input_${o.size}`), o.disabled && u.push("vf-input_disabled"), u;
303
303
  }), d = (u) => {
304
- const n = u.target;
305
- r("update:modelValue", n.value), r("input", u);
306
- }, s = (u) => r("change", u), c = (u) => r("focus", u), l = (u) => r("blur", u);
307
- return (u, n) => (g(), y("div", {
308
- class: D(a.value)
304
+ const s = u.target;
305
+ r("update:modelValue", s.value), r("input", u);
306
+ }, i = (u) => r("change", u), c = (u) => r("focus", u), l = (u) => r("blur", u);
307
+ return (u, s) => (g(), y("div", {
308
+ class: R(a.value)
309
309
  }, [
310
- u.$slots.prefix ? (g(), y("span", $t, [
311
- L(u.$slots, "prefix")
310
+ u.$slots.prefix ? (g(), y("span", xt, [
311
+ S(u.$slots, "prefix")
312
312
  ])) : T("", !0),
313
- F("input", {
313
+ B("input", {
314
314
  class: "vf-input__control",
315
315
  type: u.type,
316
316
  value: u.modelValue,
@@ -318,20 +318,20 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
318
318
  disabled: u.disabled,
319
319
  readonly: u.readonly,
320
320
  onInput: d,
321
- onChange: s,
321
+ onChange: i,
322
322
  onFocus: c,
323
323
  onBlur: l
324
- }, null, 40, xt),
325
- u.$slots.suffix ? (g(), y("span", Bt, [
326
- L(u.$slots, "suffix")
324
+ }, null, 40, Bt),
325
+ u.$slots.suffix ? (g(), y("span", zt, [
326
+ S(u.$slots, "suffix")
327
327
  ])) : T("", !0)
328
328
  ], 2));
329
329
  }
330
- }), zt = ["for"], Ft = {
330
+ }), Ft = ["for"], St = {
331
331
  key: 0,
332
332
  class: "vf-form-field__required",
333
333
  "aria-hidden": "true"
334
- }, St = { class: "vf-form-field__control" }, Vt = ["id"], Lt = ["id"], ja = /* @__PURE__ */ G({
334
+ }, Vt = { class: "vf-form-field__control" }, Lt = ["id"], Tt = ["id"], er = /* @__PURE__ */ Y({
335
335
  __name: "form-field",
336
336
  props: {
337
337
  id: { default: void 0 },
@@ -343,30 +343,30 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
343
343
  size: { default: "normal" }
344
344
  },
345
345
  setup(t) {
346
- const e = t, r = Ue(), o = `vf-form-field-${Math.random().toString(36).slice(2, 10)}`, a = h(() => e.id || o), d = h(() => `${a.value}-hint`), s = h(() => `${a.value}-error`), c = h(() => !!e.label || !!r.label), l = h(() => !!e.hint || !!r.hint), u = h(() => !!e.error || !!r.error), n = h(() => {
346
+ const e = t, r = Ze(), o = `vf-form-field-${Math.random().toString(36).slice(2, 10)}`, a = m(() => e.id || o), d = m(() => `${a.value}-hint`), i = m(() => `${a.value}-error`), c = m(() => !!e.label || !!r.label), l = m(() => !!e.hint || !!r.hint), u = m(() => !!e.error || !!r.error), s = m(() => {
347
347
  const f = [];
348
- return l.value && f.push(d.value), u.value && f.push(s.value), f.length ? f.join(" ") : void 0;
349
- }), i = h(() => {
348
+ return l.value && f.push(d.value), u.value && f.push(i.value), f.length ? f.join(" ") : void 0;
349
+ }), n = m(() => {
350
350
  const f = ["vf-form-field"];
351
351
  return e.size !== "normal" && f.push(`vf-form-field_${e.size}`), e.disabled && f.push("vf-form-field_disabled"), u.value && f.push("vf-form-field_invalid"), f;
352
352
  });
353
353
  return (f, p) => (g(), y("div", {
354
- class: D(i.value)
354
+ class: R(n.value)
355
355
  }, [
356
356
  c.value ? (g(), y("label", {
357
357
  key: 0,
358
358
  class: "vf-form-field__label",
359
359
  for: a.value
360
360
  }, [
361
- L(f.$slots, "label", {}, () => [
361
+ S(f.$slots, "label", {}, () => [
362
362
  Q(O(f.label), 1)
363
363
  ]),
364
- f.required ? (g(), y("span", Ft, "*")) : T("", !0)
365
- ], 8, zt)) : T("", !0),
366
- F("div", St, [
367
- L(f.$slots, "default", {
364
+ f.required ? (g(), y("span", St, "*")) : T("", !0)
365
+ ], 8, Ft)) : T("", !0),
366
+ B("div", Vt, [
367
+ S(f.$slots, "default", {
368
368
  id: a.value,
369
- describedBy: n.value,
369
+ describedBy: s.value,
370
370
  invalid: u.value,
371
371
  required: f.required
372
372
  })
@@ -376,23 +376,23 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
376
376
  id: d.value,
377
377
  class: "vf-form-field__hint"
378
378
  }, [
379
- L(f.$slots, "hint", {}, () => [
379
+ S(f.$slots, "hint", {}, () => [
380
380
  Q(O(f.hint), 1)
381
381
  ])
382
- ], 8, Vt)) : T("", !0),
382
+ ], 8, Lt)) : T("", !0),
383
383
  u.value ? (g(), y("p", {
384
384
  key: 2,
385
- id: s.value,
385
+ id: i.value,
386
386
  class: "vf-form-field__error",
387
387
  role: "alert"
388
388
  }, [
389
- L(f.$slots, "error", {}, () => [
389
+ S(f.$slots, "error", {}, () => [
390
390
  Q(O(f.error), 1)
391
391
  ])
392
- ], 8, Lt)) : T("", !0)
392
+ ], 8, Tt)) : T("", !0)
393
393
  ], 2));
394
394
  }
395
- }), Tt = ["value", "placeholder", "disabled", "readonly", "rows"], Xa = /* @__PURE__ */ G({
395
+ }), Rt = ["value", "placeholder", "disabled", "readonly", "rows"], tr = /* @__PURE__ */ Y({
396
396
  __name: "textarea",
397
397
  props: {
398
398
  modelValue: { default: "" },
@@ -405,17 +405,17 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
405
405
  },
406
406
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
407
407
  setup(t, { emit: e }) {
408
- const r = e, o = t, a = h(() => {
408
+ const r = e, o = t, a = m(() => {
409
409
  const u = ["vf-textarea", `vf-textarea_${o.variant}`];
410
410
  return o.size !== "normal" && u.push(`vf-textarea_${o.size}`), o.disabled && u.push("vf-textarea_disabled"), u;
411
411
  }), d = (u) => {
412
- const n = u.target;
413
- r("update:modelValue", n.value), r("input", u);
414
- }, s = (u) => r("change", u), c = (u) => r("focus", u), l = (u) => r("blur", u);
415
- return (u, n) => (g(), y("div", {
416
- class: D(a.value)
412
+ const s = u.target;
413
+ r("update:modelValue", s.value), r("input", u);
414
+ }, i = (u) => r("change", u), c = (u) => r("focus", u), l = (u) => r("blur", u);
415
+ return (u, s) => (g(), y("div", {
416
+ class: R(a.value)
417
417
  }, [
418
- F("textarea", {
418
+ B("textarea", {
419
419
  class: "vf-textarea__control",
420
420
  value: u.modelValue,
421
421
  placeholder: u.placeholder,
@@ -423,13 +423,13 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
423
423
  readonly: u.readonly,
424
424
  rows: u.rows,
425
425
  onInput: d,
426
- onChange: s,
426
+ onChange: i,
427
427
  onFocus: c,
428
428
  onBlur: l
429
- }, null, 40, Tt)
429
+ }, null, 40, Rt)
430
430
  ], 2));
431
431
  }
432
- }), Ne = [
432
+ }), Ye = [
433
433
  "top",
434
434
  "top-start",
435
435
  "top-end",
@@ -452,16 +452,16 @@ const yt = /* @__PURE__ */ ut(vt, [["render", ht]]), _t = {
452
452
  }
453
453
  return t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth ? t : pe(t.parentNode);
454
454
  };
455
- function Rt(t) {
455
+ function Pt(t) {
456
456
  return typeof window > "u" ? !1 : window.getComputedStyle(t).position === "fixed";
457
457
  }
458
- const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me = (t, e) => Pt(t, e) === "fixed", ie = (t, e, r = {}) => {
458
+ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me = (t, e) => It(t, e) === "fixed", ie = (t, e, r = {}) => {
459
459
  const o = t.getBoundingClientRect(), a = e ? e.offsetParent : null, d = e ? me(r, e) : !1;
460
460
  if (a && !d) {
461
- const s = a.getBoundingClientRect(), c = a.scrollLeft, l = a.scrollTop;
461
+ const i = a.getBoundingClientRect(), c = a.scrollLeft, l = a.scrollTop;
462
462
  return {
463
- left: o.left - s.left + c,
464
- top: o.top - s.top + l,
463
+ left: o.left - i.left + c,
464
+ top: o.top - i.top + l,
465
465
  width: o.width,
466
466
  height: o.height
467
467
  };
@@ -484,8 +484,8 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
484
484
  return t;
485
485
  let d = 0;
486
486
  if (r === null) {
487
- const s = pe(e);
488
- d = s ? s.scrollTop : 0;
487
+ const i = pe(e);
488
+ d = i ? i.scrollTop : 0;
489
489
  }
490
490
  return t - d;
491
491
  }, ce = (t, e, r = null, o = {}, a) => {
@@ -493,8 +493,8 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
493
493
  if (r === null && typeof window < "u" && me(o, e))
494
494
  d = window.innerWidth;
495
495
  else if (r === null) {
496
- const s = pe(e);
497
- d = s ? Re(s) : 0;
496
+ const i = pe(e);
497
+ d = i ? Re(i) : 0;
498
498
  } else
499
499
  d = r.getBoundingClientRect().width;
500
500
  return -(t + e.clientWidth - d);
@@ -503,8 +503,8 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
503
503
  if (r === null && typeof window < "u" && me(o, e))
504
504
  d = window.innerHeight;
505
505
  else if (r === null) {
506
- const s = pe(e);
507
- d = s ? Pe(s) : 0;
506
+ const i = pe(e);
507
+ d = i ? Pe(i) : 0;
508
508
  } else
509
509
  d = r.getBoundingClientRect().height;
510
510
  return -(t + e.clientHeight - d);
@@ -513,20 +513,20 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
513
513
  return t;
514
514
  let d = 0;
515
515
  if (r === null) {
516
- const s = pe(e);
517
- d = s ? s.scrollLeft : 0;
516
+ const i = pe(e);
517
+ d = i ? i.scrollLeft : 0;
518
518
  }
519
519
  return t - d;
520
- }, Ye = ({
520
+ }, Ge = ({
521
521
  options: t,
522
522
  primaryX: e,
523
523
  primaryY: r,
524
524
  floating: o,
525
525
  placement: a,
526
526
  reference: d,
527
- scrollDirection: s
527
+ scrollDirection: i
528
528
  }) => {
529
- const c = Me(d, o, a, t), l = _e(t, "offset");
529
+ const c = Ie(d, o, a, t), l = _e(t, "offset");
530
530
  if (l) {
531
531
  const u = l.fn({
532
532
  x: c.x,
@@ -537,11 +537,11 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
537
537
  floating: o,
538
538
  placement: a,
539
539
  reference: d,
540
- scrollDirection: s
540
+ scrollDirection: i
541
541
  });
542
542
  c.x = u.x, c.y = u.y;
543
543
  }
544
- return Zt(c, o, d, t) ? {
544
+ return Jt(c, o, d, t) ? {
545
545
  x: c.x,
546
546
  y: c.y,
547
547
  placement: a
@@ -555,112 +555,112 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
555
555
  options: o,
556
556
  primaryX: a,
557
557
  primaryY: d,
558
- floating: s,
558
+ floating: i,
559
559
  placement: c,
560
560
  reference: l,
561
561
  scrollDirection: u
562
562
  }) => {
563
- var n;
564
- const i = {
563
+ var s;
564
+ const n = {
565
565
  x: e,
566
566
  y: r,
567
567
  placement: c
568
568
  }, f = {
569
569
  ...o,
570
- middleware: (n = o.middleware) == null ? void 0 : n.filter((S) => S.name !== "shift")
571
- }, p = (t == null ? void 0 : t.placements) ?? Ne, v = !(t != null && t.placements), _ = v ? Ne : p;
572
- let m = !1;
573
- const C = (S) => {
574
- if (m)
570
+ middleware: (s = o.middleware) == null ? void 0 : s.filter((V) => V.name !== "shift")
571
+ }, p = (t == null ? void 0 : t.placements) ?? Ye, v = !(t != null && t.placements), _ = v ? Ye : p;
572
+ let h = !1;
573
+ const C = (V) => {
574
+ if (h)
575
575
  return;
576
- const H = Ye({
576
+ const A = Ge({
577
577
  options: f,
578
578
  primaryX: a,
579
579
  primaryY: d,
580
- floating: s,
581
- placement: S,
580
+ floating: i,
581
+ placement: V,
582
582
  reference: l,
583
583
  scrollDirection: u
584
584
  });
585
- H && (i.x = H.x, i.y = H.y, i.placement = H.placement, m = !0);
586
- }, M = Qt(l, s, f);
587
- if (!v && p.includes(c) && C(c), m || _.forEach(C), !m) {
588
- const S = p.reduce(
589
- (H, R) => {
590
- const P = Ye({
585
+ A && (n.x = A.x, n.y = A.y, n.placement = A.placement, h = !0);
586
+ }, M = eo(l, i, f);
587
+ if (!v && p.includes(c) && C(c), h || _.forEach(C), !h) {
588
+ const V = p.reduce(
589
+ (A, P) => {
590
+ const I = Ge({
591
591
  options: f,
592
592
  primaryX: a,
593
593
  primaryY: d,
594
- floating: s,
595
- placement: R,
594
+ floating: i,
595
+ placement: P,
596
596
  reference: l,
597
597
  scrollDirection: u
598
598
  });
599
- if (!P)
600
- return H;
601
- const W = ze(R), z = M[W];
602
- return !H || z > H.space ? { result: P, space: z } : H;
599
+ if (!I)
600
+ return A;
601
+ const W = ze(P), F = M[W];
602
+ return !A || F > A.space ? { result: I, space: F } : A;
603
603
  },
604
604
  null
605
605
  );
606
- S && (i.x = S.result.x, i.y = S.result.y, i.placement = S.result.placement, m = !0);
606
+ V && (n.x = V.result.x, n.y = V.result.y, n.placement = V.result.placement, h = !0);
607
607
  }
608
- if (!m && p.length > 0) {
609
- const S = ze(c);
610
- let H = S, R = M[S];
608
+ if (!h && p.length > 0) {
609
+ const V = ze(c);
610
+ let A = V, P = M[V];
611
611
  p.forEach((x) => {
612
- const k = ze(x), V = M[k];
613
- V > R && (R = V, H = k);
612
+ const k = ze(x), L = M[k];
613
+ L > P && (P = L, A = k);
614
614
  });
615
- const P = Jt(H, c, p), W = Me(l, s, P, f), z = _e(f, "offset");
616
- if (z) {
617
- const x = z.fn({
615
+ const I = Qt(A, c, p), W = Ie(l, i, I, f), F = _e(f, "offset");
616
+ if (F) {
617
+ const x = F.fn({
618
618
  x: W.x,
619
619
  y: W.y,
620
620
  options: f,
621
621
  primaryX: a,
622
622
  primaryY: d,
623
- floating: s,
624
- placement: P,
623
+ floating: i,
624
+ placement: I,
625
625
  reference: l,
626
626
  scrollDirection: u
627
627
  });
628
628
  W.x = x.x, W.y = x.y;
629
629
  }
630
- i.x = W.x, i.y = W.y, i.placement = W.placement;
630
+ n.x = W.x, n.y = W.y, n.placement = W.placement;
631
631
  }
632
- return i;
632
+ return n;
633
633
  }
634
634
  }), et = (t, e, r, o, a) => {
635
- var d, s, c;
635
+ var d, i, c;
636
636
  let l = 0;
637
637
  o.startsWith("right") ? l = -t : o.startsWith("left") && (l = t);
638
- const u = _e(e, "arrow"), n = _e(e, "shift");
638
+ const u = _e(e, "arrow"), s = _e(e, "shift");
639
639
  if (u) {
640
- const i = ((d = u.params) == null ? void 0 : d.arrow).getBoundingClientRect();
641
- o.startsWith("right") ? l -= i.width / 2 : o.startsWith("left") && (l += i.width / 2);
640
+ const n = ((d = u.params) == null ? void 0 : d.arrow).getBoundingClientRect();
641
+ o.startsWith("right") ? l -= n.width / 2 : o.startsWith("left") && (l += n.width / 2);
642
642
  }
643
643
  if (Qe(e, "shift") && u) {
644
- let i = null, f = 0;
645
- n && (i = (s = n.params) == null ? void 0 : s.parent);
644
+ let n = null, f = 0;
645
+ s && (n = (i = s.params) == null ? void 0 : i.parent);
646
646
  const p = (c = u.params) == null ? void 0 : c.arrow;
647
- f = p.getBoundingClientRect().width / 2, f += Dt(p), f -= t, o.startsWith("right") ? ce(r - l, a, i, e) <= t ? ce(r, a, i, e) > 0 ? l = t - ce(r, a, i, e) : l = t : ue(r - l - f, a, i, e) <= t && (ue(r - l - f, a, i, e) >= 0 ? (l = -t - (ue(r - l - f, a, i, e) + t), i && (l = -t)) : l = -t) : o.startsWith("left") ? ce(r - l + f, a, i, e) <= t ? (l = t + ce(r - f, a, i, e), l <= t && (l = t)) : ue(r - l, a, i, e) <= t && (l = -t + ue(r, a, i, e), l <= -t && (l = -t)) : ce(r - l, a, i, e) <= t ? ce(r - l, a, i, e) <= t && ce(r, a, i, e) > 0 ? l = t - ce(r, a, i, e) : l = t : ue(r - l, a, i, e) <= t && (ue(r - l, a, i, e) <= t && ue(r, a, i, e) > 0 ? l = -(t - ue(r, a, i, e)) : l = -t);
647
+ f = p.getBoundingClientRect().width / 2, f += Ot(p), f -= t, o.startsWith("right") ? ce(r - l, a, n, e) <= t ? ce(r, a, n, e) > 0 ? l = t - ce(r, a, n, e) : l = t : ue(r - l - f, a, n, e) <= t && (ue(r - l - f, a, n, e) >= 0 ? (l = -t - (ue(r - l - f, a, n, e) + t), n && (l = -t)) : l = -t) : o.startsWith("left") ? ce(r - l + f, a, n, e) <= t ? (l = t + ce(r - f, a, n, e), l <= t && (l = t)) : ue(r - l, a, n, e) <= t && (l = -t + ue(r, a, n, e), l <= -t && (l = -t)) : ce(r - l, a, n, e) <= t ? ce(r - l, a, n, e) <= t && ce(r, a, n, e) > 0 ? l = t - ce(r, a, n, e) : l = t : ue(r - l, a, n, e) <= t && (ue(r - l, a, n, e) <= t && ue(r, a, n, e) > 0 ? l = -(t - ue(r, a, n, e)) : l = -t);
648
648
  }
649
649
  return l;
650
650
  }, tt = (t, e, r, o, a) => {
651
- var d, s, c;
651
+ var d, i, c;
652
652
  let l = 0;
653
653
  o.startsWith("top") ? l = t : o.startsWith("bottom") && (l = -t);
654
- const u = _e(e, "arrow"), n = _e(e, "shift");
654
+ const u = _e(e, "arrow"), s = _e(e, "shift");
655
655
  if (u) {
656
- const i = ((d = u.params) == null ? void 0 : d.arrow).getBoundingClientRect();
657
- o.startsWith("top") ? l += i.height / 2 : o.startsWith("bottom") && (l -= i.height / 2);
656
+ const n = ((d = u.params) == null ? void 0 : d.arrow).getBoundingClientRect();
657
+ o.startsWith("top") ? l += n.height / 2 : o.startsWith("bottom") && (l -= n.height / 2);
658
658
  }
659
659
  if (Qe(e, "shift") && u) {
660
- let i = null, f = 0;
661
- n && (i = (s = n.params) == null ? void 0 : s.parent);
660
+ let n = null, f = 0;
661
+ s && (n = (i = s.params) == null ? void 0 : i.parent);
662
662
  const p = (c = u.params) == null ? void 0 : c.arrow;
663
- f = p.getBoundingClientRect().height / 2, f += Ot(p), f -= t, o.startsWith("top") ? de(r - l, a, i, e) <= t ? de(r, a, i, e) >= 0 ? l = -(t - de(r, a, i, e)) : l = -t : be(r - l + f, a, i, e) <= t && (l = t + be(r - f, a, i, e), l <= t && (l = t)) : o.startsWith("bottom") ? de(r - l - f, a, i, e) <= t ? de(r - l - f, a, i, e) >= 0 ? (l = -t - (de(r - l - f, a, i, e) + t), i && (l = -t)) : l = -t : be(r - l, a, i, e) <= t && (be(r, a, i, e) >= 0 ? l = t - be(r, a, i, e) : l = t) : de(r - l, a, i, e) <= t ? de(r - l, a, i, e) >= 0 ? l = -(t - de(r - l, a, i, e)) : l = -t : be(r - l, a, i, e) <= t && (be(r - l, a, i, e) >= 0 ? l = t - be(r - l, a, i, e) : l = t);
663
+ f = p.getBoundingClientRect().height / 2, f += Et(p), f -= t, o.startsWith("top") ? de(r - l, a, n, e) <= t ? de(r, a, n, e) >= 0 ? l = -(t - de(r, a, n, e)) : l = -t : be(r - l + f, a, n, e) <= t && (l = t + be(r - f, a, n, e), l <= t && (l = t)) : o.startsWith("bottom") ? de(r - l - f, a, n, e) <= t ? de(r - l - f, a, n, e) >= 0 ? (l = -t - (de(r - l - f, a, n, e) + t), n && (l = -t)) : l = -t : be(r - l, a, n, e) <= t && (be(r, a, n, e) >= 0 ? l = t - be(r, a, n, e) : l = t) : de(r - l, a, n, e) <= t ? de(r - l, a, n, e) >= 0 ? l = -(t - de(r - l, a, n, e)) : l = -t : be(r - l, a, n, e) <= t && (be(r - l, a, n, e) >= 0 ? l = t - be(r - l, a, n, e) : l = t);
664
664
  }
665
665
  return l;
666
666
  }, Ve = (t) => ({
@@ -672,14 +672,14 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
672
672
  options: o,
673
673
  primaryX: a,
674
674
  primaryY: d,
675
- floating: s,
675
+ floating: i,
676
676
  placement: c
677
677
  }) => ({
678
- x: e - et(t, o, a, c, s),
679
- y: r - tt(t, o, d, c, s),
678
+ x: e - et(t, o, a, c, i),
679
+ y: r - tt(t, o, d, c, i),
680
680
  placement: c
681
681
  })
682
- }), It = (t) => ({
682
+ }), Dt = (t) => ({
683
683
  name: "shift",
684
684
  params: t,
685
685
  fn: ({
@@ -688,36 +688,36 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
688
688
  options: o,
689
689
  primaryX: a,
690
690
  primaryY: d,
691
- floating: s,
691
+ floating: i,
692
692
  placement: c,
693
693
  reference: l
694
694
  }) => {
695
695
  var u;
696
- const n = {
696
+ const s = {
697
697
  x: e,
698
698
  y: r,
699
699
  placement: c
700
- }, i = o.middleware || [], f = i.findIndex((V) => V.name === "shift"), p = i.findIndex((V) => V.name === "offset"), v = p !== -1 && (f === -1 || p > f), _ = i.find((V) => V.name === "offset"), m = _ ? (u = _.params) == null ? void 0 : u.value : 0, C = v ? et(m, o, a, c, s) : 0, M = v ? tt(m, o, d, c, s) : 0, S = e - C, H = r - M;
701
- let R = S, P = H;
702
- const W = _ ? Math.abs(m) : 0, z = W, x = W;
703
- if (me(o, s) && typeof window < "u") {
704
- const V = z, K = window.innerWidth - s.clientWidth - z, j = K < V ? V : K, X = x, oe = window.innerHeight - s.clientHeight - x, q = oe < X ? X : oe;
705
- R < V ? R = V : R > j && (R = j), P < X ? P = X : P > q && (P = q), v ? (n.x = e + (R - S), n.y = r + (P - H)) : (n.x = R, n.y = P);
706
- const ae = z, J = window.innerWidth - s.clientWidth - z, ne = x, w = window.innerHeight - s.clientHeight - x, E = v ? ae + C : ae, A = v ? J + C : J, ee = v ? ne + M : ne, b = v ? w + M : w;
707
- return n.x < E ? n.x = E : n.x > A && (n.x = A), n.y < ee ? n.y = ee : n.y > b && (n.y = b), n;
700
+ }, n = o.middleware || [], f = n.findIndex((L) => L.name === "shift"), p = n.findIndex((L) => L.name === "offset"), v = p !== -1 && (f === -1 || p > f), _ = n.find((L) => L.name === "offset"), h = _ ? (u = _.params) == null ? void 0 : u.value : 0, C = v ? et(h, o, a, c, i) : 0, M = v ? tt(h, o, d, c, i) : 0, V = e - C, A = r - M;
701
+ let P = V, I = A;
702
+ const W = _ ? Math.abs(h) : 0, F = W, x = W;
703
+ if (me(o, i) && typeof window < "u") {
704
+ const L = F, K = window.innerWidth - i.clientWidth - F, j = K < L ? L : K, X = x, oe = window.innerHeight - i.clientHeight - x, q = oe < X ? X : oe;
705
+ P < L ? P = L : P > j && (P = j), I < X ? I = X : I > q && (I = q), v ? (s.x = e + (P - V), s.y = r + (I - A)) : (s.x = P, s.y = I);
706
+ const ae = F, J = window.innerWidth - i.clientWidth - F, ne = x, w = window.innerHeight - i.clientHeight - x, E = v ? ae + C : ae, H = v ? J + C : J, ee = v ? ne + M : ne, b = v ? w + M : w;
707
+ return s.x < E ? s.x = E : s.x > H && (s.x = H), s.y < ee ? s.y = ee : s.y > b && (s.y = b), s;
708
708
  }
709
- const k = pe(s);
709
+ const k = pe(i);
710
710
  if (k !== null) {
711
- const V = ie(l, s, o), K = V.left, j = V.left + V.width, X = V.top, oe = V.top + V.height, q = k.scrollLeft + z, ae = Re(k) - s.clientWidth - z, J = ae < q ? q : ae, ne = k.scrollTop + x, w = Pe(k) - s.clientHeight - x, E = w < ne ? ne : w, A = k.scrollLeft, ee = Re(k), b = k.scrollTop, $ = Pe(k);
712
- j <= A ? R = q : K >= ee && (R = J), oe <= b ? P = ne : X >= $ && (P = E), P < ne ? P = ne : P > E && (P = E), R < q ? R = q : R > J && (R = J);
711
+ const L = ie(l, i, o), K = L.left, j = L.left + L.width, X = L.top, oe = L.top + L.height, q = k.scrollLeft + F, ae = Re(k) - i.clientWidth - F, J = ae < q ? q : ae, ne = k.scrollTop + x, w = Pe(k) - i.clientHeight - x, E = w < ne ? ne : w, H = k.scrollLeft, ee = Re(k), b = k.scrollTop, $ = Pe(k);
712
+ j <= H ? P = q : K >= ee && (P = J), oe <= b ? I = ne : X >= $ && (I = E), I < ne ? I = ne : I > E && (I = E), P < q ? P = q : P > J && (P = J);
713
713
  }
714
- if (v ? (n.x = e + (R - S), n.y = r + (P - H)) : (n.x = R, n.y = P), k !== null) {
715
- const V = k.scrollLeft + z, K = Re(k) - s.clientWidth - z, j = k.scrollTop + x, X = Pe(k) - s.clientHeight - x, oe = v ? V + C : V, q = v ? K + C : K, ae = v ? j + M : j, J = v ? X + M : X;
716
- n.x < oe ? n.x = oe : n.x > q && (n.x = q), n.y < ae ? n.y = ae : n.y > J && (n.y = J);
714
+ if (v ? (s.x = e + (P - V), s.y = r + (I - A)) : (s.x = P, s.y = I), k !== null) {
715
+ const L = k.scrollLeft + F, K = Re(k) - i.clientWidth - F, j = k.scrollTop + x, X = Pe(k) - i.clientHeight - x, oe = v ? L + C : L, q = v ? K + C : K, ae = v ? j + M : j, J = v ? X + M : X;
716
+ s.x < oe ? s.x = oe : s.x > q && (s.x = q), s.y < ae ? s.y = ae : s.y > J && (s.y = J);
717
717
  }
718
- return n;
718
+ return s;
719
719
  }
720
- }), Dt = (t) => t.getBoundingClientRect().width !== t.clientWidth ? (t.getBoundingClientRect().width - t.clientWidth) / 2 : 0, Ot = (t) => t.getBoundingClientRect().height !== t.clientHeight ? (t.getBoundingClientRect().height - t.clientHeight) / 2 : 0, Le = (t, e) => {
720
+ }), Ot = (t) => t.getBoundingClientRect().width !== t.clientWidth ? (t.getBoundingClientRect().width - t.clientWidth) / 2 : 0, Et = (t) => t.getBoundingClientRect().height !== t.clientHeight ? (t.getBoundingClientRect().height - t.clientHeight) / 2 : 0, Le = (t, e) => {
721
721
  const r = pe(t), o = [];
722
722
  if (r !== null) {
723
723
  const a = () => e();
@@ -732,14 +732,14 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
732
732
  a.observe(t), o.push(() => a.disconnect());
733
733
  }
734
734
  return () => o.forEach((a) => a());
735
- }, Et = (t, e, r = {}) => {
735
+ }, Wt = (t, e, r = {}) => {
736
736
  const o = ie(t, e, r);
737
737
  return {
738
738
  x: o.left - e.getBoundingClientRect().width / 2 + o.width / 2,
739
739
  y: o.top - e.getBoundingClientRect().height,
740
740
  placement: "top"
741
741
  };
742
- }, Wt = (t, e, r = {}) => {
742
+ }, At = (t, e, r = {}) => {
743
743
  const o = ie(t, e, r);
744
744
  return {
745
745
  x: o.left,
@@ -753,95 +753,95 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
753
753
  y: o.top - e.getBoundingClientRect().height,
754
754
  placement: "top-end"
755
755
  };
756
- }, At = (t, e, r = {}) => {
756
+ }, Kt = (t, e, r = {}) => {
757
757
  const o = ie(t, e, r);
758
758
  return {
759
759
  x: o.left + o.width,
760
760
  y: o.top - e.getBoundingClientRect().height / 2 + o.height / 2,
761
761
  placement: "right"
762
762
  };
763
- }, Kt = (t, e, r = {}) => {
763
+ }, Nt = (t, e, r = {}) => {
764
764
  const o = ie(t, e, r);
765
765
  return {
766
766
  x: o.left + o.width,
767
767
  y: o.top,
768
768
  placement: "right-start"
769
769
  };
770
- }, Nt = (t, e, r = {}) => {
770
+ }, Yt = (t, e, r = {}) => {
771
771
  const o = ie(t, e, r);
772
772
  return {
773
773
  x: o.left + o.width,
774
774
  y: o.top + o.height - e.getBoundingClientRect().height,
775
775
  placement: "right-end"
776
776
  };
777
- }, Yt = (t, e, r = {}) => {
777
+ }, Gt = (t, e, r = {}) => {
778
778
  const o = ie(t, e, r);
779
779
  return {
780
780
  x: o.left + o.width / 2 - e.getBoundingClientRect().width / 2,
781
781
  y: o.top + o.height,
782
782
  placement: "bottom"
783
783
  };
784
- }, Gt = (t, e, r = {}) => {
784
+ }, jt = (t, e, r = {}) => {
785
785
  const o = ie(t, e, r);
786
786
  return {
787
787
  x: o.left,
788
788
  y: o.top + o.height,
789
789
  placement: "bottom-start"
790
790
  };
791
- }, jt = (t, e, r = {}) => {
791
+ }, Xt = (t, e, r = {}) => {
792
792
  const o = ie(t, e, r);
793
793
  return {
794
794
  x: o.left - e.getBoundingClientRect().width + o.width,
795
795
  y: o.top + o.height,
796
796
  placement: "bottom-end"
797
797
  };
798
- }, Xt = (t, e, r = {}) => {
798
+ }, qt = (t, e, r = {}) => {
799
799
  const o = ie(t, e, r);
800
800
  return {
801
801
  x: o.left - e.getBoundingClientRect().width,
802
802
  y: o.top + o.height / 2 - e.getBoundingClientRect().height / 2,
803
803
  placement: "left"
804
804
  };
805
- }, qt = (t, e, r = {}) => {
805
+ }, Ut = (t, e, r = {}) => {
806
806
  const o = ie(t, e, r);
807
807
  return {
808
808
  x: o.left - e.getBoundingClientRect().width,
809
809
  y: o.top,
810
810
  placement: "left-start"
811
811
  };
812
- }, Ut = (t, e, r = {}) => {
812
+ }, Zt = (t, e, r = {}) => {
813
813
  const o = ie(t, e, r);
814
814
  return {
815
815
  x: o.left - e.getBoundingClientRect().width,
816
816
  y: o.top + o.height - e.getBoundingClientRect().height,
817
817
  placement: "left-end"
818
818
  };
819
- }, Me = (t, e, r, o = {}) => {
819
+ }, Ie = (t, e, r, o = {}) => {
820
820
  switch (r) {
821
821
  case "top":
822
- return Et(t, e, o);
823
- case "top-start":
824
822
  return Wt(t, e, o);
823
+ case "top-start":
824
+ return At(t, e, o);
825
825
  case "top-end":
826
826
  return Ht(t, e, o);
827
827
  case "right":
828
- return At(t, e, o);
829
- case "right-start":
830
828
  return Kt(t, e, o);
831
- case "right-end":
829
+ case "right-start":
832
830
  return Nt(t, e, o);
833
- case "bottom":
831
+ case "right-end":
834
832
  return Yt(t, e, o);
835
- case "bottom-start":
833
+ case "bottom":
836
834
  return Gt(t, e, o);
837
- case "bottom-end":
835
+ case "bottom-start":
838
836
  return jt(t, e, o);
839
- case "left":
837
+ case "bottom-end":
840
838
  return Xt(t, e, o);
841
- case "left-start":
839
+ case "left":
842
840
  return qt(t, e, o);
843
- case "left-end":
841
+ case "left-start":
844
842
  return Ut(t, e, o);
843
+ case "left-end":
844
+ return Zt(t, e, o);
845
845
  default:
846
846
  return {
847
847
  x: 0,
@@ -849,25 +849,25 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
849
849
  placement: ""
850
850
  };
851
851
  }
852
- }, Zt = (t, e, r, o = {}) => {
852
+ }, Jt = (t, e, r, o = {}) => {
853
853
  if (me(o, e)) {
854
854
  if (typeof window > "u")
855
855
  return !0;
856
- const i = t.x, f = t.y, p = i + e.clientWidth, v = f + e.clientHeight;
857
- return i >= 0 && f >= 0 && p <= window.innerWidth && v <= window.innerHeight;
856
+ const n = t.x, f = t.y, p = n + e.clientWidth, v = f + e.clientHeight;
857
+ return n >= 0 && f >= 0 && p <= window.innerWidth && v <= window.innerHeight;
858
858
  }
859
859
  if (pe(r) !== null)
860
860
  return de(t.y, e, null, o) > 0 && ce(t.x, e, null, o) > 0 && be(t.y, e, null, o) > 0 && ue(t.x, e, null, o) > 0;
861
861
  if (typeof window > "u")
862
862
  return !0;
863
- const a = window.innerWidth, d = window.innerHeight, s = (r instanceof HTMLElement ? r.offsetParent : null) || e.offsetParent;
864
- if (s) {
865
- const i = s.getBoundingClientRect(), f = i.left + t.x, p = i.top + t.y, v = f + e.clientWidth, _ = p + e.clientHeight;
863
+ const a = window.innerWidth, d = window.innerHeight, i = (r instanceof HTMLElement ? r.offsetParent : null) || e.offsetParent;
864
+ if (i) {
865
+ const n = i.getBoundingClientRect(), f = n.left + t.x, p = n.top + t.y, v = f + e.clientWidth, _ = p + e.clientHeight;
866
866
  return f >= 0 && p >= 0 && v <= a && _ <= d;
867
867
  }
868
- const c = t.x, l = t.y, u = c + e.clientWidth, n = l + e.clientHeight;
869
- return c >= 0 && l >= 0 && u <= a && n <= d;
870
- }, ze = (t) => t.startsWith("right") ? "right" : t.startsWith("left") ? "left" : t.startsWith("top") ? "top" : "bottom", Jt = (t, e, r) => ze(e) === t && r.includes(e) ? e : r.find((o) => ze(o) === t) ?? r[0], Qt = (t, e, r = {}) => {
868
+ const c = t.x, l = t.y, u = c + e.clientWidth, s = l + e.clientHeight;
869
+ return c >= 0 && l >= 0 && u <= a && s <= d;
870
+ }, ze = (t) => t.startsWith("right") ? "right" : t.startsWith("left") ? "left" : t.startsWith("top") ? "top" : "bottom", Qt = (t, e, r) => ze(e) === t && r.includes(e) ? e : r.find((o) => ze(o) === t) ?? r[0], eo = (t, e, r = {}) => {
871
871
  if (typeof window > "u")
872
872
  return {
873
873
  top: 0,
@@ -889,37 +889,37 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
889
889
  };
890
890
  }, Te = (t, e, r = {}) => new Promise((o) => {
891
891
  var a, d;
892
- const s = r.placement ? r.placement : "bottom", c = {
892
+ const i = r.placement ? r.placement : "bottom", c = {
893
893
  x: 0,
894
894
  y: 0,
895
- placement: s,
895
+ placement: i,
896
896
  middlewareData: {}
897
- }, l = Me(t, e, s, r);
897
+ }, l = Ie(t, e, i, r);
898
898
  c.x = l.x, c.y = l.y, c.placement = l.placement;
899
- const u = c.x, n = c.y, i = Mt(t);
899
+ const u = c.x, s = c.y, n = Mt(t);
900
900
  (a = r.middleware) == null || a.forEach((_) => {
901
- const m = _.fn({
901
+ const h = _.fn({
902
902
  x: c.x,
903
903
  y: c.y,
904
904
  options: r,
905
905
  primaryX: u,
906
- primaryY: n,
906
+ primaryY: s,
907
907
  floating: e,
908
908
  placement: c.placement,
909
909
  reference: t,
910
- scrollDirection: i
910
+ scrollDirection: n
911
911
  });
912
- c.x = m.x, c.y = m.y, c.placement = m.placement, _.name === "arrow" && (m.baseX = m.x, m.baseY = m.y, m.x = m.arrowX ?? m.x, m.y = m.arrowY ?? m.y), c.middlewareData[_.name] = m;
912
+ c.x = h.x, c.y = h.y, c.placement = h.placement, _.name === "arrow" && (h.baseX = h.x, h.baseY = h.y, h.x = h.arrowX ?? h.x, h.y = h.arrowY ?? h.y), c.middlewareData[_.name] = h;
913
913
  });
914
- const f = Me(t, e, c.placement, r), p = _e(r, "offset"), v = p ? (d = p.params) == null ? void 0 : d.value : 0;
914
+ const f = Ie(t, e, c.placement, r), p = _e(r, "offset"), v = p ? (d = p.params) == null ? void 0 : d.value : 0;
915
915
  if (Number.isFinite(c.x) || (c.x = f.x), !Number.isFinite(c.y))
916
916
  if (me(r, e)) {
917
- const _ = t.getBoundingClientRect(), m = e.getBoundingClientRect().height;
918
- c.placement.startsWith("top") ? c.y = _.top - m - v : c.placement.startsWith("bottom") ? c.y = _.bottom + v : c.y = f.y;
917
+ const _ = t.getBoundingClientRect(), h = e.getBoundingClientRect().height;
918
+ c.placement.startsWith("top") ? c.y = _.top - h - v : c.placement.startsWith("bottom") ? c.y = _.bottom + v : c.y = f.y;
919
919
  } else
920
920
  c.y = f.y;
921
921
  o(c);
922
- }), eo = ["disabled", "aria-expanded", "onKeydown"], to = ["data-placement"], oo = ["disabled", "aria-selected", "onClick"], qa = /* @__PURE__ */ G({
922
+ }), to = ["disabled", "aria-expanded", "onKeydown"], oo = ["data-placement"], ao = ["disabled", "aria-selected", "onClick"], or = /* @__PURE__ */ Y({
923
923
  __name: "select",
924
924
  props: {
925
925
  modelValue: { default: void 0 },
@@ -934,47 +934,47 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
934
934
  emits: ["update:modelValue", "change", "focus", "blur"],
935
935
  setup(t, { emit: e }) {
936
936
  let r = 0;
937
- const o = e, a = t, d = I(null), s = I(null), c = I(null), l = I(!1), u = I("bottom"), n = I("bottom"), i = `vf-select-panel-${++r}`;
937
+ const o = e, a = t, d = D(null), i = D(null), c = D(null), l = D(!1), u = D("bottom"), s = D("bottom"), n = `vf-select-panel-${++r}`;
938
938
  let f = null;
939
- const p = h(() => a.options.map((k) => ({
939
+ const p = m(() => a.options.map((k) => ({
940
940
  label: k[a.optionLabel],
941
941
  value: k[a.optionValue],
942
942
  disabled: k.disabled
943
- }))), v = h(() => p.value.find((k) => k.value === a.modelValue)), _ = h(() => {
943
+ }))), v = m(() => p.value.find((k) => k.value === a.modelValue)), _ = m(() => {
944
944
  var k;
945
945
  return ((k = v.value) == null ? void 0 : k.label) ?? "";
946
- }), m = h(() => {
946
+ }), h = m(() => {
947
947
  const k = ["vf-select", `vf-select_${a.variant}`, l.value ? "vf-select_open" : ""];
948
948
  return a.size !== "normal" && k.push(`vf-select_${a.size}`), a.disabled && k.push("vf-select_disabled"), k.filter(Boolean);
949
949
  }), C = (k) => k.value === a.modelValue, M = (k) => {
950
- k.disabled || (o("update:modelValue", k.value), o("change", k.value), R());
951
- }, S = (k) => o("focus", k), H = (k) => o("blur", k), R = () => {
952
- l.value = !1, u.value = "bottom", n.value = "bottom";
953
- }, P = () => {
954
- a.disabled || (l.value = !l.value, l.value && (u.value = "bottom", n.value = "bottom"));
950
+ k.disabled || (o("update:modelValue", k.value), o("change", k.value), P());
951
+ }, V = (k) => o("focus", k), A = (k) => o("blur", k), P = () => {
952
+ l.value = !1, u.value = "bottom", s.value = "bottom";
953
+ }, I = () => {
954
+ a.disabled || (l.value = !l.value, l.value && (u.value = "bottom", s.value = "bottom"));
955
955
  }, W = async () => {
956
- var k, V;
957
- l.value || (l.value = !0, await Ce()), (V = (k = c.value) == null ? void 0 : k.querySelector(".vf-select__option:not(.is-disabled)")) == null || V.focus();
958
- }, z = (k) => {
956
+ var k, L;
957
+ l.value || (l.value = !0, await Ce()), (L = (k = c.value) == null ? void 0 : k.querySelector(".vf-select__option:not(.is-disabled)")) == null || L.focus();
958
+ }, F = (k) => {
959
959
  var K;
960
960
  if (!l.value || !d.value)
961
961
  return;
962
- const V = k.target;
963
- d.value.contains(V) || (K = c.value) != null && K.contains(V) || R();
962
+ const L = k.target;
963
+ d.value.contains(L) || (K = c.value) != null && K.contains(L) || P();
964
964
  }, x = () => {
965
- if (!s.value || !c.value)
965
+ if (!i.value || !c.value)
966
966
  return;
967
- const k = s.value, V = c.value, K = async () => {
967
+ const k = i.value, L = c.value, K = async () => {
968
968
  const {
969
969
  x: q,
970
970
  y: ae,
971
971
  placement: J
972
- } = await Te(k, V, {
972
+ } = await Te(k, L, {
973
973
  placement: u.value,
974
974
  strategy: "fixed",
975
975
  middleware: [Ve(2), Se({ placements: ["bottom", "top"] })]
976
976
  });
977
- n.value = J ?? u.value, V.style.minWidth = `${k.getBoundingClientRect().width}px`, V.style.left = `${q}px`, V.style.top = `${ae}px`;
977
+ s.value = J ?? u.value, L.style.minWidth = `${k.getBoundingClientRect().width}px`, L.style.left = `${q}px`, L.style.top = `${ae}px`;
978
978
  }, j = async () => {
979
979
  await K();
980
980
  }, X = Le(k, () => {
@@ -1002,71 +1002,71 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1002
1002
  },
1003
1003
  { deep: !0 }
1004
1004
  ), Fe(() => {
1005
- document.addEventListener("click", z);
1005
+ document.addEventListener("click", F);
1006
1006
  }), we(() => {
1007
- document.removeEventListener("click", z), f == null || f.destroy(), f = null;
1008
- }), (k, V) => (g(), y("div", {
1007
+ document.removeEventListener("click", F), f == null || f.destroy(), f = null;
1008
+ }), (k, L) => (g(), y("div", {
1009
1009
  ref_key: "root",
1010
1010
  ref: d,
1011
- class: D(m.value)
1011
+ class: R(h.value)
1012
1012
  }, [
1013
- F("button", {
1013
+ B("button", {
1014
1014
  ref_key: "trigger",
1015
- ref: s,
1015
+ ref: i,
1016
1016
  class: "vf-select__control",
1017
1017
  type: "button",
1018
1018
  disabled: k.disabled,
1019
1019
  "aria-expanded": l.value,
1020
- "aria-controls": i,
1020
+ "aria-controls": n,
1021
1021
  "aria-haspopup": "listbox",
1022
- onClick: P,
1022
+ onClick: I,
1023
1023
  onKeydown: [
1024
- U(Y(W, ["prevent"]), ["down"]),
1025
- U(Y(P, ["prevent"]), ["enter"]),
1026
- U(Y(R, ["prevent"]), ["esc"])
1024
+ U(G(W, ["prevent"]), ["down"]),
1025
+ U(G(I, ["prevent"]), ["enter"]),
1026
+ U(G(P, ["prevent"]), ["esc"])
1027
1027
  ],
1028
- onFocus: S,
1029
- onBlur: H
1028
+ onFocus: V,
1029
+ onBlur: A
1030
1030
  }, [
1031
- F("span", {
1032
- class: D(["vf-select__label", { "vf-select__label_placeholder": !_.value }])
1031
+ B("span", {
1032
+ class: R(["vf-select__label", { "vf-select__label_placeholder": !_.value }])
1033
1033
  }, O(_.value || k.placeholder), 3),
1034
- V[0] || (V[0] = F("span", {
1034
+ L[0] || (L[0] = B("span", {
1035
1035
  class: "vf-select__chevron",
1036
1036
  "aria-hidden": "true"
1037
1037
  }, "▾", -1))
1038
- ], 40, eo),
1038
+ ], 40, to),
1039
1039
  (g(), le($e, { to: "body" }, [
1040
- ve(F("div", {
1041
- id: i,
1040
+ ve(B("div", {
1041
+ id: n,
1042
1042
  ref_key: "panel",
1043
1043
  ref: c,
1044
1044
  class: "vf-select__panel",
1045
1045
  role: "listbox",
1046
- "data-placement": n.value
1046
+ "data-placement": s.value
1047
1047
  }, [
1048
1048
  (g(!0), y(se, null, ke(p.value, (K) => (g(), y("button", {
1049
1049
  key: K.value,
1050
- class: D(["vf-select__option", { "is-active": C(K), "is-disabled": K.disabled }]),
1050
+ class: R(["vf-select__option", { "is-active": C(K), "is-disabled": K.disabled }]),
1051
1051
  type: "button",
1052
1052
  role: "option",
1053
1053
  disabled: K.disabled,
1054
1054
  "aria-selected": C(K),
1055
1055
  onClick: (j) => M(K)
1056
- }, O(K.label), 11, oo))), 128))
1057
- ], 8, to), [
1056
+ }, O(K.label), 11, ao))), 128))
1057
+ ], 8, oo), [
1058
1058
  [fe, l.value]
1059
1059
  ])
1060
1060
  ]))
1061
1061
  ], 2));
1062
1062
  }
1063
- }), ao = ["value", "placeholder", "disabled", "readonly", "aria-expanded", "aria-activedescendant", "onKeydown"], ro = ["disabled"], lo = ["data-placement"], no = {
1063
+ }), ro = ["value", "placeholder", "disabled", "readonly", "aria-expanded", "aria-activedescendant", "onKeydown"], lo = ["disabled"], no = ["data-placement"], so = {
1064
1064
  key: 0,
1065
1065
  class: "vf-autocomplete__loading"
1066
- }, so = ["id", "disabled", "aria-selected", "onClick"], io = {
1066
+ }, io = ["id", "disabled", "aria-selected", "onClick"], co = {
1067
1067
  key: 2,
1068
1068
  class: "vf-autocomplete__empty"
1069
- }, Ua = /* @__PURE__ */ G({
1069
+ }, ar = /* @__PURE__ */ Y({
1070
1070
  __name: "autocomplete",
1071
1071
  props: {
1072
1072
  modelValue: { default: void 0 },
@@ -1086,97 +1086,97 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1086
1086
  emits: ["update:modelValue", "change", "focus", "blur", "search"],
1087
1087
  setup(t, { emit: e }) {
1088
1088
  let r = 0;
1089
- const o = e, a = t, d = I(null), s = I(null), c = I(null), l = I(!1), u = I(""), n = I(-1), i = I("bottom"), f = I("bottom"), p = `vf-autocomplete-panel-${++r}`;
1089
+ const o = e, a = t, d = D(null), i = D(null), c = D(null), l = D(!1), u = D(""), s = D(-1), n = D("bottom"), f = D("bottom"), p = `vf-autocomplete-panel-${++r}`;
1090
1090
  let v = null;
1091
- const _ = h(() => a.options.map((w) => ({
1091
+ const _ = m(() => a.options.map((w) => ({
1092
1092
  label: w[a.optionLabel],
1093
1093
  value: w[a.optionValue],
1094
1094
  disabled: w.disabled
1095
- }))), m = h(() => _.value.find((w) => w.value === a.modelValue)), C = h(() => {
1095
+ }))), h = m(() => _.value.find((w) => w.value === a.modelValue)), C = m(() => {
1096
1096
  if (!a.filter)
1097
1097
  return _.value;
1098
1098
  const w = u.value.trim().toLowerCase();
1099
1099
  return w ? _.value.filter((E) => E.label.toLowerCase().includes(w)) : _.value;
1100
- }), M = h(() => {
1101
- if (!(!l.value || n.value < 0))
1102
- return H(n.value);
1103
- }), S = h(() => {
1100
+ }), M = m(() => {
1101
+ if (!(!l.value || s.value < 0))
1102
+ return A(s.value);
1103
+ }), V = m(() => {
1104
1104
  const w = ["vf-autocomplete", `vf-autocomplete_${a.variant}`, l.value ? "vf-autocomplete_open" : ""];
1105
1105
  return a.size !== "normal" && w.push(`vf-autocomplete_${a.size}`), a.disabled && w.push("vf-autocomplete_disabled"), w.filter(Boolean);
1106
- }), H = (w) => `${p}-option-${w}`, R = (w) => w.value === a.modelValue, P = () => C.value.findIndex((w) => !w.disabled), W = (w) => {
1106
+ }), A = (w) => `${p}-option-${w}`, P = (w) => w.value === a.modelValue, I = () => C.value.findIndex((w) => !w.disabled), W = (w) => {
1107
1107
  const E = C.value;
1108
1108
  if (!E.length) {
1109
- n.value = -1;
1109
+ s.value = -1;
1110
1110
  return;
1111
1111
  }
1112
- let A = n.value;
1113
- (A < 0 || A >= E.length) && (A = w > 0 ? -1 : E.length);
1112
+ let H = s.value;
1113
+ (H < 0 || H >= E.length) && (H = w > 0 ? -1 : E.length);
1114
1114
  for (let ee = 0; ee < E.length; ee += 1)
1115
- if (A = (A + w + E.length) % E.length, !E[A].disabled) {
1116
- n.value = A;
1115
+ if (H = (H + w + E.length) % E.length, !E[H].disabled) {
1116
+ s.value = H;
1117
1117
  return;
1118
1118
  }
1119
- n.value = -1;
1120
- }, z = () => {
1121
- a.disabled || (l.value = !0, i.value = "bottom", f.value = "bottom", n.value < 0 && (n.value = P()));
1119
+ s.value = -1;
1120
+ }, F = () => {
1121
+ a.disabled || (l.value = !0, n.value = "bottom", f.value = "bottom", s.value < 0 && (s.value = I()));
1122
1122
  }, x = () => {
1123
- l.value = !1, n.value = -1, i.value = "bottom", f.value = "bottom";
1123
+ l.value = !1, s.value = -1, n.value = "bottom", f.value = "bottom";
1124
1124
  }, k = () => {
1125
1125
  if (l.value) {
1126
1126
  x();
1127
1127
  return;
1128
1128
  }
1129
- z();
1130
- }, V = (w) => {
1129
+ F();
1130
+ }, L = (w) => {
1131
1131
  w.disabled || (u.value = w.label, o("update:modelValue", w.value), o("change", w.value), x());
1132
1132
  }, K = (w) => {
1133
1133
  const E = w.target;
1134
- u.value = E.value, o("search", E.value), z(), n.value = P();
1134
+ u.value = E.value, o("search", E.value), F(), s.value = I();
1135
1135
  }, j = (w) => {
1136
- o("focus", w), z();
1136
+ o("focus", w), F();
1137
1137
  }, X = (w) => {
1138
1138
  o("blur", w);
1139
1139
  }, oe = () => {
1140
1140
  if (!l.value) {
1141
- z();
1141
+ F();
1142
1142
  return;
1143
1143
  }
1144
1144
  W(1);
1145
1145
  }, q = () => {
1146
1146
  if (!l.value) {
1147
- z();
1147
+ F();
1148
1148
  return;
1149
1149
  }
1150
1150
  W(-1);
1151
1151
  }, ae = () => {
1152
1152
  if (!l.value) {
1153
- z();
1153
+ F();
1154
1154
  return;
1155
1155
  }
1156
- const w = C.value[n.value];
1157
- w && !w.disabled && V(w);
1156
+ const w = C.value[s.value];
1157
+ w && !w.disabled && L(w);
1158
1158
  }, J = (w) => {
1159
- var A;
1159
+ var H;
1160
1160
  if (!l.value || !d.value)
1161
1161
  return;
1162
1162
  const E = w.target;
1163
- d.value.contains(E) || (A = c.value) != null && A.contains(E) || x();
1163
+ d.value.contains(E) || (H = c.value) != null && H.contains(E) || x();
1164
1164
  }, ne = () => {
1165
- if (!s.value || !c.value)
1165
+ if (!i.value || !c.value)
1166
1166
  return;
1167
- const w = s.value, E = c.value, A = async () => {
1167
+ const w = i.value, E = c.value, H = async () => {
1168
1168
  const {
1169
- x: B,
1169
+ x: z,
1170
1170
  y: N,
1171
1171
  placement: re
1172
1172
  } = await Te(w, E, {
1173
- placement: i.value,
1173
+ placement: n.value,
1174
1174
  strategy: "fixed",
1175
1175
  middleware: [Ve(2), Se({ placements: ["bottom", "top"] })]
1176
1176
  });
1177
- f.value = re ?? i.value, E.style.minWidth = `${w.getBoundingClientRect().width}px`, E.style.left = `${B}px`, E.style.top = `${N}px`;
1177
+ f.value = re ?? n.value, E.style.minWidth = `${w.getBoundingClientRect().width}px`, E.style.left = `${z}px`, E.style.top = `${N}px`;
1178
1178
  }, ee = async () => {
1179
- await A();
1179
+ await H();
1180
1180
  }, b = Le(w, () => {
1181
1181
  ee();
1182
1182
  }), $ = () => {
@@ -1193,18 +1193,18 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1193
1193
  () => a.modelValue,
1194
1194
  () => {
1195
1195
  var w;
1196
- u.value = ((w = m.value) == null ? void 0 : w.label) ?? "";
1196
+ u.value = ((w = h.value) == null ? void 0 : w.label) ?? "";
1197
1197
  },
1198
1198
  { immediate: !0 }
1199
1199
  ), te(
1200
1200
  () => a.options,
1201
1201
  () => {
1202
1202
  var w;
1203
- l.value || (u.value = ((w = m.value) == null ? void 0 : w.label) ?? ""), v == null || v.update();
1203
+ l.value || (u.value = ((w = h.value) == null ? void 0 : w.label) ?? ""), v == null || v.update();
1204
1204
  },
1205
1205
  { deep: !0 }
1206
1206
  ), te(C, () => {
1207
- n.value >= C.value.length && (n.value = P());
1207
+ s.value >= C.value.length && (s.value = I());
1208
1208
  }), te(l, async (w) => {
1209
1209
  if (!w) {
1210
1210
  v && (v.destroy(), v = null);
@@ -1218,11 +1218,11 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1218
1218
  }), (w, E) => (g(), y("div", {
1219
1219
  ref_key: "root",
1220
1220
  ref: d,
1221
- class: D(S.value)
1221
+ class: R(V.value)
1222
1222
  }, [
1223
- F("input", {
1223
+ B("input", {
1224
1224
  ref_key: "control",
1225
- ref: s,
1225
+ ref: i,
1226
1226
  class: "vf-autocomplete__control",
1227
1227
  type: "text",
1228
1228
  role: "combobox",
@@ -1237,27 +1237,27 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1237
1237
  onInput: K,
1238
1238
  onFocus: j,
1239
1239
  onBlur: X,
1240
- onClick: z,
1240
+ onClick: F,
1241
1241
  onKeydown: [
1242
- U(Y(oe, ["prevent"]), ["down"]),
1243
- U(Y(q, ["prevent"]), ["up"]),
1244
- U(Y(ae, ["prevent"]), ["enter"]),
1245
- U(Y(x, ["prevent"]), ["esc"]),
1242
+ U(G(oe, ["prevent"]), ["down"]),
1243
+ U(G(q, ["prevent"]), ["up"]),
1244
+ U(G(ae, ["prevent"]), ["enter"]),
1245
+ U(G(x, ["prevent"]), ["esc"]),
1246
1246
  U(x, ["tab"])
1247
1247
  ]
1248
- }, null, 40, ao),
1249
- F("button", {
1248
+ }, null, 40, ro),
1249
+ B("button", {
1250
1250
  class: "vf-autocomplete__chevron",
1251
1251
  type: "button",
1252
1252
  disabled: w.disabled,
1253
1253
  "aria-hidden": "true",
1254
1254
  tabindex: "-1",
1255
- onMousedown: E[0] || (E[0] = Y(() => {
1255
+ onMousedown: E[0] || (E[0] = G(() => {
1256
1256
  }, ["prevent"])),
1257
1257
  onClick: k
1258
- }, " ▾ ", 40, ro),
1258
+ }, " ▾ ", 40, lo),
1259
1259
  (g(), le($e, { to: "body" }, [
1260
- ve(F("div", {
1260
+ ve(B("div", {
1261
1261
  id: p,
1262
1262
  ref_key: "panel",
1263
1263
  ref: c,
@@ -1265,42 +1265,42 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1265
1265
  role: "listbox",
1266
1266
  "data-placement": f.value
1267
1267
  }, [
1268
- w.loading ? (g(), y("div", no, O(w.loadingText), 1)) : C.value.length > 0 ? (g(!0), y(se, { key: 1 }, ke(C.value, (A, ee) => (g(), y("button", {
1269
- id: H(ee),
1270
- key: A.value,
1271
- class: D(["vf-autocomplete__option", {
1272
- "is-active": R(A),
1273
- "is-disabled": A.disabled,
1274
- "is-highlighted": ee === n.value
1268
+ w.loading ? (g(), y("div", so, O(w.loadingText), 1)) : C.value.length > 0 ? (g(!0), y(se, { key: 1 }, ke(C.value, (H, ee) => (g(), y("button", {
1269
+ id: A(ee),
1270
+ key: H.value,
1271
+ class: R(["vf-autocomplete__option", {
1272
+ "is-active": P(H),
1273
+ "is-disabled": H.disabled,
1274
+ "is-highlighted": ee === s.value
1275
1275
  }]),
1276
1276
  type: "button",
1277
1277
  role: "option",
1278
- disabled: A.disabled,
1279
- "aria-selected": R(A),
1280
- onMousedown: E[1] || (E[1] = Y(() => {
1278
+ disabled: H.disabled,
1279
+ "aria-selected": P(H),
1280
+ onMousedown: E[1] || (E[1] = G(() => {
1281
1281
  }, ["prevent"])),
1282
- onClick: (b) => V(A)
1283
- }, O(A.label), 43, so))), 128)) : (g(), y("div", io, O(w.emptyText), 1))
1284
- ], 8, lo), [
1282
+ onClick: (b) => L(H)
1283
+ }, O(H.label), 43, io))), 128)) : (g(), y("div", co, O(w.emptyText), 1))
1284
+ ], 8, no), [
1285
1285
  [fe, l.value]
1286
1286
  ])
1287
1287
  ]))
1288
1288
  ], 2));
1289
1289
  }
1290
- }), co = ["disabled", "aria-expanded", "onKeydown"], uo = ["data-placement"], vo = {
1290
+ }), uo = ["disabled", "aria-expanded", "onKeydown"], vo = ["data-placement"], fo = {
1291
1291
  key: 0,
1292
1292
  class: "vf-multiselect__search"
1293
- }, fo = ["value", "placeholder", "onKeydown"], po = {
1293
+ }, po = ["value", "placeholder", "onKeydown"], bo = {
1294
1294
  key: 1,
1295
1295
  class: "vf-multiselect__loading"
1296
- }, bo = ["id", "disabled", "aria-selected", "onClick"], go = { class: "vf-multiselect__option-label" }, mo = {
1296
+ }, go = ["id", "disabled", "aria-selected", "onClick"], mo = { class: "vf-multiselect__option-label" }, ho = {
1297
1297
  key: 0,
1298
1298
  class: "vf-multiselect__option-check",
1299
1299
  "aria-hidden": "true"
1300
- }, ho = {
1300
+ }, yo = {
1301
1301
  key: 3,
1302
1302
  class: "vf-multiselect__empty"
1303
- }, Za = /* @__PURE__ */ G({
1303
+ }, rr = /* @__PURE__ */ Y({
1304
1304
  __name: "multi-select",
1305
1305
  props: {
1306
1306
  modelValue: { default: () => [] },
@@ -1322,51 +1322,51 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1322
1322
  emits: ["update:modelValue", "change", "search", "focus", "blur"],
1323
1323
  setup(t, { emit: e }) {
1324
1324
  let r = 0;
1325
- const o = e, a = t, d = I(null), s = I(null), c = I(null), l = I(null), u = I(!1), n = I(""), i = I(-1), f = I("bottom"), p = I("bottom"), v = `vf-multiselect-panel-${++r}`;
1325
+ const o = e, a = t, d = D(null), i = D(null), c = D(null), l = D(null), u = D(!1), s = D(""), n = D(-1), f = D("bottom"), p = D("bottom"), v = `vf-multiselect-panel-${++r}`;
1326
1326
  let _ = null;
1327
- const m = h(() => a.options.map((b) => ({
1327
+ const h = m(() => a.options.map((b) => ({
1328
1328
  label: b[a.optionLabel],
1329
1329
  value: b[a.optionValue],
1330
1330
  disabled: b.disabled
1331
- }))), C = h(() => Array.isArray(a.modelValue) ? a.modelValue : []), M = h(() => {
1331
+ }))), C = m(() => Array.isArray(a.modelValue) ? a.modelValue : []), M = m(() => {
1332
1332
  if (!a.filter)
1333
- return m.value;
1334
- const b = n.value.trim().toLowerCase();
1335
- return b ? m.value.filter(($) => $.label.toLowerCase().includes(b)) : m.value;
1336
- }), S = h(() => m.value.filter((b) => C.value.includes(b.value))), H = h(() => S.value.length === 0 ? a.placeholder : S.value.map((b) => b.label).join(", ")), R = h(() => {
1333
+ return h.value;
1334
+ const b = s.value.trim().toLowerCase();
1335
+ return b ? h.value.filter(($) => $.label.toLowerCase().includes(b)) : h.value;
1336
+ }), V = m(() => h.value.filter((b) => C.value.includes(b.value))), A = m(() => V.value.length === 0 ? a.placeholder : V.value.map((b) => b.label).join(", ")), P = m(() => {
1337
1337
  const b = ["vf-multiselect", `vf-multiselect_${a.variant}`, u.value ? "vf-multiselect_open" : ""];
1338
1338
  return a.size !== "normal" && b.push(`vf-multiselect_${a.size}`), a.disabled && b.push("vf-multiselect_disabled"), b.filter(Boolean);
1339
- }), P = (b) => `${v}-option-${b}`, W = () => M.value.findIndex((b) => !b.disabled), z = (b) => C.value.includes(b.value), x = (b) => {
1339
+ }), I = (b) => `${v}-option-${b}`, W = () => M.value.findIndex((b) => !b.disabled), F = (b) => C.value.includes(b.value), x = (b) => {
1340
1340
  o("update:modelValue", b), o("change", b);
1341
1341
  }, k = (b) => {
1342
1342
  if (!(b.disabled || a.readonly)) {
1343
- if (z(b)) {
1343
+ if (F(b)) {
1344
1344
  x(C.value.filter(($) => $ !== b.value));
1345
1345
  return;
1346
1346
  }
1347
1347
  x([...C.value, b.value]);
1348
1348
  }
1349
- }, V = () => {
1349
+ }, L = () => {
1350
1350
  a.readonly || x([]);
1351
1351
  }, K = (b) => {
1352
1352
  const $ = M.value;
1353
1353
  if (!$.length) {
1354
- i.value = -1;
1354
+ n.value = -1;
1355
1355
  return;
1356
1356
  }
1357
- let B = i.value;
1358
- (B < 0 || B >= $.length) && (B = b > 0 ? -1 : $.length);
1357
+ let z = n.value;
1358
+ (z < 0 || z >= $.length) && (z = b > 0 ? -1 : $.length);
1359
1359
  for (let N = 0; N < $.length; N += 1)
1360
- if (B = (B + b + $.length) % $.length, !$[B].disabled) {
1361
- i.value = B;
1360
+ if (z = (z + b + $.length) % $.length, !$[z].disabled) {
1361
+ n.value = z;
1362
1362
  return;
1363
1363
  }
1364
- i.value = -1;
1364
+ n.value = -1;
1365
1365
  }, j = async () => {
1366
1366
  var b;
1367
- a.disabled || (u.value = !0, f.value = "bottom", p.value = "bottom", i.value < 0 && (i.value = W()), a.filter && (await Ce(), (b = l.value) == null || b.focus()));
1367
+ a.disabled || (u.value = !0, f.value = "bottom", p.value = "bottom", n.value < 0 && (n.value = W()), a.filter && (await Ce(), (b = l.value) == null || b.focus()));
1368
1368
  }, X = () => {
1369
- u.value = !1, i.value = -1, f.value = "bottom", p.value = "bottom", n.value = "";
1369
+ u.value = !1, n.value = -1, f.value = "bottom", p.value = "bottom", s.value = "";
1370
1370
  }, oe = () => {
1371
1371
  if (u.value) {
1372
1372
  X();
@@ -1390,33 +1390,33 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1390
1390
  j();
1391
1391
  return;
1392
1392
  }
1393
- const b = M.value[i.value];
1393
+ const b = M.value[n.value];
1394
1394
  b && !b.disabled && k(b);
1395
1395
  }, ne = (b) => {
1396
1396
  const $ = b.target;
1397
- n.value = $.value, o("search", $.value), i.value = W();
1398
- }, w = (b) => o("focus", b), E = (b) => o("blur", b), A = (b) => {
1399
- var B;
1397
+ s.value = $.value, o("search", $.value), n.value = W();
1398
+ }, w = (b) => o("focus", b), E = (b) => o("blur", b), H = (b) => {
1399
+ var z;
1400
1400
  if (!u.value || !d.value)
1401
1401
  return;
1402
1402
  const $ = b.target;
1403
- d.value.contains($) || (B = c.value) != null && B.contains($) || X();
1403
+ d.value.contains($) || (z = c.value) != null && z.contains($) || X();
1404
1404
  }, ee = () => {
1405
- if (!s.value || !c.value)
1405
+ if (!i.value || !c.value)
1406
1406
  return;
1407
- const b = s.value, $ = c.value, B = async () => {
1407
+ const b = i.value, $ = c.value, z = async () => {
1408
1408
  const {
1409
1409
  x: he,
1410
- y: De,
1411
- placement: Oe
1410
+ y: Oe,
1411
+ placement: Ee
1412
1412
  } = await Te(b, $, {
1413
1413
  placement: f.value,
1414
1414
  strategy: "fixed",
1415
1415
  middleware: [Ve(2), Se({ placements: ["bottom", "top"] })]
1416
1416
  });
1417
- p.value = Oe ?? f.value, $.style.minWidth = `${b.getBoundingClientRect().width}px`, $.style.left = `${he}px`, $.style.top = `${De}px`;
1417
+ p.value = Ee ?? f.value, $.style.minWidth = `${b.getBoundingClientRect().width}px`, $.style.left = `${he}px`, $.style.top = `${Oe}px`;
1418
1418
  }, N = async () => {
1419
- await B();
1419
+ await z();
1420
1420
  }, re = Le(b, () => {
1421
1421
  N();
1422
1422
  }), Z = () => {
@@ -1432,7 +1432,7 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1432
1432
  return te(
1433
1433
  () => a.options,
1434
1434
  () => {
1435
- i.value >= M.value.length && (i.value = W()), _ == null || _.update();
1435
+ n.value >= M.value.length && (n.value = W()), _ == null || _.update();
1436
1436
  },
1437
1437
  { deep: !0 }
1438
1438
  ), te(u, async (b) => {
@@ -1442,19 +1442,19 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1442
1442
  }
1443
1443
  await Ce(), _ || ee(), _ == null || _.update();
1444
1444
  }), te(M, () => {
1445
- i.value >= M.value.length && (i.value = W());
1445
+ n.value >= M.value.length && (n.value = W());
1446
1446
  }), Fe(() => {
1447
- document.addEventListener("click", A);
1447
+ document.addEventListener("click", H);
1448
1448
  }), we(() => {
1449
- document.removeEventListener("click", A), _ == null || _.destroy(), _ = null;
1449
+ document.removeEventListener("click", H), _ == null || _.destroy(), _ = null;
1450
1450
  }), (b, $) => (g(), y("div", {
1451
1451
  ref_key: "root",
1452
1452
  ref: d,
1453
- class: D(R.value)
1453
+ class: R(P.value)
1454
1454
  }, [
1455
- F("button", {
1455
+ B("button", {
1456
1456
  ref_key: "trigger",
1457
- ref: s,
1457
+ ref: i,
1458
1458
  class: "vf-multiselect__control",
1459
1459
  type: "button",
1460
1460
  disabled: b.disabled,
@@ -1463,31 +1463,31 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1463
1463
  "aria-haspopup": "listbox",
1464
1464
  onClick: oe,
1465
1465
  onKeydown: [
1466
- U(Y(q, ["prevent"]), ["down"]),
1467
- U(Y(ae, ["prevent"]), ["up"]),
1468
- U(Y(J, ["prevent"]), ["enter"]),
1469
- U(Y(X, ["prevent"]), ["esc"])
1466
+ U(G(q, ["prevent"]), ["down"]),
1467
+ U(G(ae, ["prevent"]), ["up"]),
1468
+ U(G(J, ["prevent"]), ["enter"]),
1469
+ U(G(X, ["prevent"]), ["esc"])
1470
1470
  ],
1471
1471
  onFocus: w,
1472
1472
  onBlur: E
1473
1473
  }, [
1474
- F("span", {
1475
- class: D(["vf-multiselect__label", { "vf-multiselect__label_placeholder": C.value.length === 0 }])
1476
- }, O(H.value), 3),
1477
- $[0] || ($[0] = F("span", {
1474
+ B("span", {
1475
+ class: R(["vf-multiselect__label", { "vf-multiselect__label_placeholder": C.value.length === 0 }])
1476
+ }, O(A.value), 3),
1477
+ $[0] || ($[0] = B("span", {
1478
1478
  class: "vf-multiselect__chevron",
1479
1479
  "aria-hidden": "true"
1480
1480
  }, "▾", -1))
1481
- ], 40, co),
1481
+ ], 40, uo),
1482
1482
  b.clearable && C.value.length > 0 && !b.disabled && !b.readonly ? (g(), y("button", {
1483
1483
  key: 0,
1484
1484
  class: "vf-multiselect__clear",
1485
1485
  type: "button",
1486
1486
  "aria-label": "Clear selection",
1487
- onClick: Y(V, ["stop"])
1487
+ onClick: G(L, ["stop"])
1488
1488
  }, " ✕ ")) : T("", !0),
1489
1489
  (g(), le($e, { to: "body" }, [
1490
- ve(F("div", {
1490
+ ve(B("div", {
1491
1491
  id: v,
1492
1492
  ref_key: "panel",
1493
1493
  ref: c,
@@ -1496,53 +1496,53 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1496
1496
  "aria-multiselectable": "true",
1497
1497
  "data-placement": p.value
1498
1498
  }, [
1499
- b.filter ? (g(), y("div", vo, [
1500
- F("input", {
1499
+ b.filter ? (g(), y("div", fo, [
1500
+ B("input", {
1501
1501
  ref_key: "searchInput",
1502
1502
  ref: l,
1503
1503
  class: "vf-multiselect__search-control",
1504
1504
  type: "text",
1505
- value: n.value,
1505
+ value: s.value,
1506
1506
  placeholder: b.searchPlaceholder,
1507
1507
  onInput: ne,
1508
1508
  onKeydown: [
1509
- U(Y(q, ["prevent"]), ["down"]),
1510
- U(Y(ae, ["prevent"]), ["up"]),
1511
- U(Y(J, ["prevent"]), ["enter"]),
1512
- U(Y(X, ["prevent"]), ["esc"])
1509
+ U(G(q, ["prevent"]), ["down"]),
1510
+ U(G(ae, ["prevent"]), ["up"]),
1511
+ U(G(J, ["prevent"]), ["enter"]),
1512
+ U(G(X, ["prevent"]), ["esc"])
1513
1513
  ]
1514
- }, null, 40, fo)
1514
+ }, null, 40, po)
1515
1515
  ])) : T("", !0),
1516
- b.loading ? (g(), y("div", po, O(b.loadingText), 1)) : M.value.length > 0 ? (g(!0), y(se, { key: 2 }, ke(M.value, (B, N) => (g(), y("button", {
1517
- id: P(N),
1518
- key: B.value,
1519
- class: D(["vf-multiselect__option", {
1520
- "is-active": z(B),
1521
- "is-disabled": B.disabled,
1522
- "is-highlighted": N === i.value
1516
+ b.loading ? (g(), y("div", bo, O(b.loadingText), 1)) : M.value.length > 0 ? (g(!0), y(se, { key: 2 }, ke(M.value, (z, N) => (g(), y("button", {
1517
+ id: I(N),
1518
+ key: z.value,
1519
+ class: R(["vf-multiselect__option", {
1520
+ "is-active": F(z),
1521
+ "is-disabled": z.disabled,
1522
+ "is-highlighted": N === n.value
1523
1523
  }]),
1524
1524
  type: "button",
1525
1525
  role: "option",
1526
- disabled: B.disabled,
1527
- "aria-selected": z(B),
1528
- onClick: (re) => k(B)
1526
+ disabled: z.disabled,
1527
+ "aria-selected": F(z),
1528
+ onClick: (re) => k(z)
1529
1529
  }, [
1530
- F("span", go, O(B.label), 1),
1531
- z(B) ? (g(), y("span", mo, "✓")) : T("", !0)
1532
- ], 10, bo))), 128)) : (g(), y("div", ho, O(b.emptyText), 1))
1533
- ], 8, uo), [
1530
+ B("span", mo, O(z.label), 1),
1531
+ F(z) ? (g(), y("span", ho, "✓")) : T("", !0)
1532
+ ], 10, go))), 128)) : (g(), y("div", yo, O(b.emptyText), 1))
1533
+ ], 8, vo), [
1534
1534
  [fe, u.value]
1535
1535
  ])
1536
1536
  ]))
1537
1537
  ], 2));
1538
1538
  }
1539
- }), yo = ["disabled", "aria-expanded", "onKeydown"], _o = ["data-placement", "onKeydown"], ko = { class: "vf-datepicker__header" }, Co = { class: "vf-datepicker__month-label" }, wo = {
1539
+ }), _o = ["disabled", "aria-expanded", "onKeydown"], ko = ["data-placement", "onKeydown"], Co = { class: "vf-datepicker__header" }, wo = { class: "vf-datepicker__month-label" }, $o = {
1540
1540
  class: "vf-datepicker__weekdays",
1541
1541
  role: "row"
1542
- }, $o = {
1542
+ }, xo = {
1543
1543
  class: "vf-datepicker__days",
1544
1544
  role: "grid"
1545
- }, xo = ["disabled", "data-date", "onClick"], Ja = /* @__PURE__ */ G({
1545
+ }, Bo = ["disabled", "data-date", "onClick"], lr = /* @__PURE__ */ Y({
1546
1546
  __name: "datepicker",
1547
1547
  props: {
1548
1548
  modelValue: { default: void 0 },
@@ -1559,80 +1559,80 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1559
1559
  emits: ["update:modelValue", "change", "focus", "blur"],
1560
1560
  setup(t, { emit: e }) {
1561
1561
  let r = 0;
1562
- const o = e, a = t, d = I(null), s = I(null), c = I(null), l = I(!1), u = I("bottom"), n = I("bottom"), i = `vf-datepicker-panel-${++r}`, f = I(J(q(a.modelValue) ?? /* @__PURE__ */ new Date()));
1562
+ const o = e, a = t, d = D(null), i = D(null), c = D(null), l = D(!1), u = D("bottom"), s = D("bottom"), n = `vf-datepicker-panel-${++r}`, f = D(J(q(a.modelValue) ?? /* @__PURE__ */ new Date()));
1563
1563
  let p = null;
1564
- const v = h(() => q(a.modelValue)), _ = h(() => q(a.min)), m = h(() => q(a.max)), C = h(() => v.value ? v.value.toLocaleDateString(a.locale, {
1564
+ const v = m(() => q(a.modelValue)), _ = m(() => q(a.min)), h = m(() => q(a.max)), C = m(() => v.value ? v.value.toLocaleDateString(a.locale, {
1565
1565
  year: "numeric",
1566
1566
  month: "short",
1567
1567
  day: "numeric"
1568
- }) : ""), M = h(() => f.value.toLocaleDateString(a.locale, {
1568
+ }) : ""), M = m(() => f.value.toLocaleDateString(a.locale, {
1569
1569
  year: "numeric",
1570
1570
  month: "long"
1571
- })), S = h(() => {
1571
+ })), V = m(() => {
1572
1572
  const b = new Intl.DateTimeFormat(a.locale, { weekday: "short" }), $ = new Date(2026, 0, 4);
1573
- return Array.from({ length: 7 }, (B, N) => {
1573
+ return Array.from({ length: 7 }, (z, N) => {
1574
1574
  const re = (N + a.firstDayOfWeek) % 7, Z = new Date($);
1575
1575
  return Z.setDate($.getDate() + re), b.format(Z);
1576
1576
  });
1577
- }), H = h(() => {
1578
- const b = E(f.value, a.firstDayOfWeek), $ = v.value ? A(v.value) : null, B = A(/* @__PURE__ */ new Date());
1577
+ }), A = m(() => {
1578
+ const b = E(f.value, a.firstDayOfWeek), $ = v.value ? H(v.value) : null, z = H(/* @__PURE__ */ new Date());
1579
1579
  return Array.from({ length: 42 }, (N, re) => {
1580
- const Z = w(b, re), he = A(Z);
1580
+ const Z = w(b, re), he = H(Z);
1581
1581
  return {
1582
1582
  key: `${he}-${re}`,
1583
1583
  iso: he,
1584
1584
  date: Z,
1585
1585
  day: Z.getDate(),
1586
1586
  inCurrentMonth: Z.getMonth() === f.value.getMonth(),
1587
- isDisabled: ee(Z, _.value, m.value),
1587
+ isDisabled: ee(Z, _.value, h.value),
1588
1588
  isSelected: $ === he,
1589
- isToday: he === B
1589
+ isToday: he === z
1590
1590
  };
1591
1591
  });
1592
- }), R = h(() => {
1592
+ }), P = m(() => {
1593
1593
  const b = ["vf-datepicker", `vf-datepicker_${a.variant}`, l.value ? "vf-datepicker_open" : ""];
1594
1594
  return a.size !== "normal" && b.push(`vf-datepicker_${a.size}`), a.disabled && b.push("vf-datepicker_disabled"), b.filter(Boolean);
1595
- }), P = (b) => o("focus", b), W = (b) => o("blur", b), z = () => {
1596
- a.disabled || a.readonly || (l.value = !0, u.value = "bottom", n.value = "bottom");
1595
+ }), I = (b) => o("focus", b), W = (b) => o("blur", b), F = () => {
1596
+ a.disabled || a.readonly || (l.value = !0, u.value = "bottom", s.value = "bottom");
1597
1597
  }, x = () => {
1598
- l.value = !1, u.value = "bottom", n.value = "bottom";
1598
+ l.value = !1, u.value = "bottom", s.value = "bottom";
1599
1599
  }, k = () => {
1600
1600
  if (l.value) {
1601
1601
  x();
1602
1602
  return;
1603
1603
  }
1604
- z();
1605
- }, V = () => {
1604
+ F();
1605
+ }, L = () => {
1606
1606
  f.value = ne(f.value, -1);
1607
1607
  }, K = () => {
1608
1608
  f.value = ne(f.value, 1);
1609
1609
  }, j = (b) => {
1610
- if (a.readonly || ee(b, _.value, m.value))
1610
+ if (a.readonly || ee(b, _.value, h.value))
1611
1611
  return;
1612
- const $ = A(b);
1612
+ const $ = H(b);
1613
1613
  o("update:modelValue", $), o("change", $), x();
1614
1614
  }, X = (b) => {
1615
- var B;
1615
+ var z;
1616
1616
  if (!l.value || !d.value)
1617
1617
  return;
1618
1618
  const $ = b.target;
1619
- d.value.contains($) || (B = c.value) != null && B.contains($) || x();
1619
+ d.value.contains($) || (z = c.value) != null && z.contains($) || x();
1620
1620
  }, oe = () => {
1621
- if (!s.value || !c.value)
1621
+ if (!i.value || !c.value)
1622
1622
  return;
1623
- const b = s.value, $ = c.value, B = async () => {
1623
+ const b = i.value, $ = c.value, z = async () => {
1624
1624
  const {
1625
1625
  x: he,
1626
- y: De,
1627
- placement: Oe
1626
+ y: Oe,
1627
+ placement: Ee
1628
1628
  } = await Te(b, $, {
1629
1629
  placement: u.value,
1630
1630
  strategy: "fixed",
1631
1631
  middleware: [Ve(2), Se({ placements: ["bottom", "top"] })]
1632
1632
  });
1633
- n.value = Oe ?? u.value, $.style.left = `${he}px`, $.style.top = `${De}px`;
1633
+ s.value = Ee ?? u.value, $.style.left = `${he}px`, $.style.top = `${Oe}px`;
1634
1634
  }, N = async () => {
1635
- await B();
1635
+ await z();
1636
1636
  }, re = Le(b, () => {
1637
1637
  N();
1638
1638
  }), Z = () => {
@@ -1674,8 +1674,8 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1674
1674
  const $ = b.match(/^(\d{4})-(\d{2})-(\d{2})$/);
1675
1675
  if (!$)
1676
1676
  return null;
1677
- const B = Number($[1]), N = Number($[2]) - 1, re = Number($[3]), Z = new Date(B, N, re);
1678
- return Z.getFullYear() !== B || Z.getMonth() !== N || Z.getDate() !== re ? null : ae(Z);
1677
+ const z = Number($[1]), N = Number($[2]) - 1, re = Number($[3]), Z = new Date(z, N, re);
1678
+ return Z.getFullYear() !== z || Z.getMonth() !== N || Z.getDate() !== re ? null : ae(Z);
1679
1679
  }
1680
1680
  function ae(b) {
1681
1681
  return new Date(b.getFullYear(), b.getMonth(), b.getDate());
@@ -1690,100 +1690,100 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1690
1690
  return new Date(b.getFullYear(), b.getMonth(), b.getDate() + $);
1691
1691
  }
1692
1692
  function E(b, $) {
1693
- const B = J(b), re = (B.getDay() - $ + 7) % 7;
1694
- return w(B, -re);
1693
+ const z = J(b), re = (z.getDay() - $ + 7) % 7;
1694
+ return w(z, -re);
1695
1695
  }
1696
- function A(b) {
1697
- const $ = b.getFullYear(), B = `${b.getMonth() + 1}`.padStart(2, "0"), N = `${b.getDate()}`.padStart(2, "0");
1698
- return `${$}-${B}-${N}`;
1696
+ function H(b) {
1697
+ const $ = b.getFullYear(), z = `${b.getMonth() + 1}`.padStart(2, "0"), N = `${b.getDate()}`.padStart(2, "0");
1698
+ return `${$}-${z}-${N}`;
1699
1699
  }
1700
- function ee(b, $, B) {
1700
+ function ee(b, $, z) {
1701
1701
  const N = ae(b).getTime();
1702
- return !!($ && N < $.getTime() || B && N > B.getTime());
1702
+ return !!($ && N < $.getTime() || z && N > z.getTime());
1703
1703
  }
1704
1704
  return (b, $) => (g(), y("div", {
1705
1705
  ref_key: "root",
1706
1706
  ref: d,
1707
- class: D(R.value)
1707
+ class: R(P.value)
1708
1708
  }, [
1709
- F("button", {
1709
+ B("button", {
1710
1710
  ref_key: "control",
1711
- ref: s,
1711
+ ref: i,
1712
1712
  class: "vf-datepicker__control",
1713
1713
  type: "button",
1714
1714
  disabled: b.disabled,
1715
1715
  "aria-expanded": l.value,
1716
- "aria-controls": i,
1716
+ "aria-controls": n,
1717
1717
  "aria-haspopup": "dialog",
1718
1718
  onClick: k,
1719
1719
  onKeydown: [
1720
- U(Y(z, ["prevent"]), ["down"]),
1721
- U(Y(k, ["prevent"]), ["enter"]),
1722
- U(Y(x, ["prevent"]), ["esc"])
1720
+ U(G(F, ["prevent"]), ["down"]),
1721
+ U(G(k, ["prevent"]), ["enter"]),
1722
+ U(G(x, ["prevent"]), ["esc"])
1723
1723
  ],
1724
- onFocus: P,
1724
+ onFocus: I,
1725
1725
  onBlur: W
1726
1726
  }, [
1727
- F("span", {
1728
- class: D(["vf-datepicker__label", { "vf-datepicker__label_placeholder": !v.value }])
1727
+ B("span", {
1728
+ class: R(["vf-datepicker__label", { "vf-datepicker__label_placeholder": !v.value }])
1729
1729
  }, O(C.value || b.placeholder), 3),
1730
- $[0] || ($[0] = F("span", {
1730
+ $[0] || ($[0] = B("span", {
1731
1731
  class: "vf-datepicker__chevron",
1732
1732
  "aria-hidden": "true"
1733
1733
  }, "▾", -1))
1734
- ], 40, yo),
1734
+ ], 40, _o),
1735
1735
  (g(), le($e, { to: "body" }, [
1736
- ve(F("div", {
1737
- id: i,
1736
+ ve(B("div", {
1737
+ id: n,
1738
1738
  ref_key: "panel",
1739
1739
  ref: c,
1740
1740
  class: "vf-datepicker__panel",
1741
1741
  role: "dialog",
1742
- "data-placement": n.value,
1743
- onKeydown: U(Y(x, ["prevent"]), ["esc"])
1742
+ "data-placement": s.value,
1743
+ onKeydown: U(G(x, ["prevent"]), ["esc"])
1744
1744
  }, [
1745
- F("div", ko, [
1746
- F("button", {
1745
+ B("div", Co, [
1746
+ B("button", {
1747
1747
  class: "vf-datepicker__nav",
1748
1748
  type: "button",
1749
1749
  "aria-label": "Previous month",
1750
- onClick: V
1750
+ onClick: L
1751
1751
  }, " ‹ "),
1752
- F("span", Co, O(M.value), 1),
1753
- F("button", {
1752
+ B("span", wo, O(M.value), 1),
1753
+ B("button", {
1754
1754
  class: "vf-datepicker__nav",
1755
1755
  type: "button",
1756
1756
  "aria-label": "Next month",
1757
1757
  onClick: K
1758
1758
  }, " › ")
1759
1759
  ]),
1760
- F("div", wo, [
1761
- (g(!0), y(se, null, ke(S.value, (B) => (g(), y("span", {
1762
- key: B,
1760
+ B("div", $o, [
1761
+ (g(!0), y(se, null, ke(V.value, (z) => (g(), y("span", {
1762
+ key: z,
1763
1763
  class: "vf-datepicker__weekday"
1764
- }, O(B), 1))), 128))
1764
+ }, O(z), 1))), 128))
1765
1765
  ]),
1766
- F("div", $o, [
1767
- (g(!0), y(se, null, ke(H.value, (B) => (g(), y("button", {
1768
- key: B.key,
1769
- class: D(["vf-datepicker__day", {
1770
- "is-outside": !B.inCurrentMonth,
1771
- "is-selected": B.isSelected,
1772
- "is-today": B.isToday
1766
+ B("div", xo, [
1767
+ (g(!0), y(se, null, ke(A.value, (z) => (g(), y("button", {
1768
+ key: z.key,
1769
+ class: R(["vf-datepicker__day", {
1770
+ "is-outside": !z.inCurrentMonth,
1771
+ "is-selected": z.isSelected,
1772
+ "is-today": z.isToday
1773
1773
  }]),
1774
1774
  type: "button",
1775
- disabled: B.isDisabled,
1776
- "data-date": B.iso,
1777
- onClick: (N) => j(B.date)
1778
- }, O(B.day), 11, xo))), 128))
1775
+ disabled: z.isDisabled,
1776
+ "data-date": z.iso,
1777
+ onClick: (N) => j(z.date)
1778
+ }, O(z.day), 11, Bo))), 128))
1779
1779
  ])
1780
- ], 40, _o), [
1780
+ ], 40, ko), [
1781
1781
  [fe, l.value]
1782
1782
  ])
1783
1783
  ]))
1784
1784
  ], 2));
1785
1785
  }
1786
- }), Bo = ["disabled"], zo = ["disabled", "aria-current", "aria-label", "onClick"], Fo = ["disabled"], Qa = /* @__PURE__ */ G({
1786
+ }), zo = ["disabled"], Fo = ["disabled", "aria-current", "aria-label", "onClick"], So = ["disabled"], nr = /* @__PURE__ */ Y({
1787
1787
  __name: "pagination",
1788
1788
  props: {
1789
1789
  modelValue: { default: 1 },
@@ -1801,83 +1801,83 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1801
1801
  },
1802
1802
  emits: ["update:modelValue", "change"],
1803
1803
  setup(t, { emit: e }) {
1804
- const r = t, o = e, a = (v, _, m) => Math.min(m, Math.max(_, v)), d = (v, _) => {
1804
+ const r = t, o = e, a = (v, _, h) => Math.min(h, Math.max(_, v)), d = (v, _) => {
1805
1805
  if (_ < v)
1806
1806
  return [];
1807
- const m = [];
1807
+ const h = [];
1808
1808
  for (let C = v; C <= _; C += 1)
1809
- m.push(C);
1810
- return m;
1811
- }, s = h(() => {
1809
+ h.push(C);
1810
+ return h;
1811
+ }, i = m(() => {
1812
1812
  if (typeof r.totalPages == "number" && Number.isFinite(r.totalPages))
1813
1813
  return Math.max(1, Math.floor(r.totalPages));
1814
1814
  const v = Math.max(1, Math.floor(r.pageSize));
1815
1815
  return Math.max(1, Math.ceil(Math.max(0, r.totalItems) / v));
1816
- }), c = h(() => a(Math.floor(r.modelValue), 1, s.value)), l = h(() => c.value <= 1), u = h(() => c.value >= s.value), n = h(() => r.disabled || s.value <= 1), i = h(() => {
1817
- const v = s.value, _ = c.value, m = Math.max(0, Math.floor(r.siblingCount)), C = Math.max(0, Math.floor(r.boundaryCount)), M = m * 2 + C * 2 + 3, S = [];
1816
+ }), c = m(() => a(Math.floor(r.modelValue), 1, i.value)), l = m(() => c.value <= 1), u = m(() => c.value >= i.value), s = m(() => r.disabled || i.value <= 1), n = m(() => {
1817
+ const v = i.value, _ = c.value, h = Math.max(0, Math.floor(r.siblingCount)), C = Math.max(0, Math.floor(r.boundaryCount)), M = h * 2 + C * 2 + 3, V = [];
1818
1818
  if (v <= M)
1819
- return d(1, v).map((z) => ({ key: `page-${z}`, type: "page", page: z }));
1820
- const H = d(1, C), R = d(v - C + 1, v), P = Math.max(Math.min(_ - m, v - C - m * 2 - 1), C + 2), W = Math.min(Math.max(_ + m, C + m * 2 + 2), v - C - 1);
1821
- for (const z of H)
1822
- S.push({ key: `page-${z}`, type: "page", page: z });
1823
- P > C + 2 ? S.push({ key: "ellipsis-start", type: "ellipsis", page: -1 }) : C + 1 <= v - C && S.push({ key: `page-${C + 1}`, type: "page", page: C + 1 });
1824
- for (const z of d(P, W))
1825
- S.push({ key: `page-${z}`, type: "page", page: z });
1826
- W < v - C - 1 ? S.push({ key: "ellipsis-end", type: "ellipsis", page: -2 }) : v - C > C && S.push({ key: `page-${v - C}`, type: "page", page: v - C });
1827
- for (const z of R)
1828
- S.push({ key: `page-${z}`, type: "page", page: z });
1829
- return S;
1830
- }), f = h(() => {
1819
+ return d(1, v).map((F) => ({ key: `page-${F}`, type: "page", page: F }));
1820
+ const A = d(1, C), P = d(v - C + 1, v), I = Math.max(Math.min(_ - h, v - C - h * 2 - 1), C + 2), W = Math.min(Math.max(_ + h, C + h * 2 + 2), v - C - 1);
1821
+ for (const F of A)
1822
+ V.push({ key: `page-${F}`, type: "page", page: F });
1823
+ I > C + 2 ? V.push({ key: "ellipsis-start", type: "ellipsis", page: -1 }) : C + 1 <= v - C && V.push({ key: `page-${C + 1}`, type: "page", page: C + 1 });
1824
+ for (const F of d(I, W))
1825
+ V.push({ key: `page-${F}`, type: "page", page: F });
1826
+ W < v - C - 1 ? V.push({ key: "ellipsis-end", type: "ellipsis", page: -2 }) : v - C > C && V.push({ key: `page-${v - C}`, type: "page", page: v - C });
1827
+ for (const F of P)
1828
+ V.push({ key: `page-${F}`, type: "page", page: F });
1829
+ return V;
1830
+ }), f = m(() => {
1831
1831
  const v = ["vf-pagination", `vf-pagination_${r.variant}`];
1832
1832
  return r.size !== "normal" && v.push(`vf-pagination_${r.size}`), r.disabled && v.push("vf-pagination_disabled"), v;
1833
1833
  }), p = (v, _) => {
1834
- if (n.value)
1834
+ if (s.value)
1835
1835
  return;
1836
- const m = a(v, 1, s.value);
1837
- m !== r.modelValue && (o("update:modelValue", m), o("change", m, _));
1836
+ const h = a(v, 1, i.value);
1837
+ h !== r.modelValue && (o("update:modelValue", h), o("change", h, _));
1838
1838
  };
1839
1839
  return (v, _) => (g(), y("nav", {
1840
- class: D(f.value),
1840
+ class: R(f.value),
1841
1841
  "aria-label": "Pagination"
1842
1842
  }, [
1843
- F("button", {
1843
+ B("button", {
1844
1844
  class: "vf-pagination__item vf-pagination__item_nav",
1845
1845
  type: "button",
1846
- disabled: n.value || l.value,
1846
+ disabled: s.value || l.value,
1847
1847
  "aria-label": "Previous page",
1848
- onClick: _[0] || (_[0] = (m) => p(c.value - 1, m))
1849
- }, O(v.prevLabel), 9, Bo),
1850
- (g(!0), y(se, null, ke(i.value, (m) => (g(), y("button", {
1851
- key: m.key,
1852
- class: D(["vf-pagination__item", {
1853
- "is-current": m.type === "page" && m.page === c.value,
1854
- "is-ellipsis": m.type === "ellipsis"
1848
+ onClick: _[0] || (_[0] = (h) => p(c.value - 1, h))
1849
+ }, O(v.prevLabel), 9, zo),
1850
+ (g(!0), y(se, null, ke(n.value, (h) => (g(), y("button", {
1851
+ key: h.key,
1852
+ class: R(["vf-pagination__item", {
1853
+ "is-current": h.type === "page" && h.page === c.value,
1854
+ "is-ellipsis": h.type === "ellipsis"
1855
1855
  }]),
1856
1856
  type: "button",
1857
- disabled: n.value || m.type === "ellipsis",
1858
- "aria-current": m.type === "page" && m.page === c.value ? "page" : void 0,
1859
- "aria-label": m.type === "page" ? `Page ${m.page}` : void 0,
1860
- onClick: (C) => m.type === "page" && p(m.page, C)
1857
+ disabled: s.value || h.type === "ellipsis",
1858
+ "aria-current": h.type === "page" && h.page === c.value ? "page" : void 0,
1859
+ "aria-label": h.type === "page" ? `Page ${h.page}` : void 0,
1860
+ onClick: (C) => h.type === "page" && p(h.page, C)
1861
1861
  }, [
1862
- m.type === "page" ? (g(), y(se, { key: 0 }, [
1863
- Q(O(m.page), 1)
1862
+ h.type === "page" ? (g(), y(se, { key: 0 }, [
1863
+ Q(O(h.page), 1)
1864
1864
  ], 64)) : (g(), y(se, { key: 1 }, [
1865
1865
  Q(O(v.ellipsisLabel), 1)
1866
1866
  ], 64))
1867
- ], 10, zo))), 128)),
1868
- F("button", {
1867
+ ], 10, Fo))), 128)),
1868
+ B("button", {
1869
1869
  class: "vf-pagination__item vf-pagination__item_nav",
1870
1870
  type: "button",
1871
- disabled: n.value || u.value,
1871
+ disabled: s.value || u.value,
1872
1872
  "aria-label": "Next page",
1873
- onClick: _[1] || (_[1] = (m) => p(c.value + 1, m))
1874
- }, O(v.nextLabel), 9, Fo)
1873
+ onClick: _[1] || (_[1] = (h) => p(c.value + 1, h))
1874
+ }, O(v.nextLabel), 9, So)
1875
1875
  ], 2));
1876
1876
  }
1877
- }), So = ["checked", "disabled"], Vo = {
1877
+ }), Vo = ["checked", "disabled"], Lo = {
1878
1878
  key: 0,
1879
1879
  class: "vf-checkbox__label"
1880
- }, er = /* @__PURE__ */ G({
1880
+ }, sr = /* @__PURE__ */ Y({
1881
1881
  __name: "checkbox",
1882
1882
  props: {
1883
1883
  modelValue: { type: Boolean, default: !1 },
@@ -1887,32 +1887,32 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1887
1887
  },
1888
1888
  emits: ["update:modelValue", "change"],
1889
1889
  setup(t, { emit: e }) {
1890
- const r = e, o = t, a = h(() => {
1891
- const s = ["vf-checkbox", `vf-checkbox_${o.variant}`];
1892
- return o.disabled && s.push("vf-checkbox_disabled"), s;
1893
- }), d = (s) => {
1894
- const c = s.target;
1895
- r("update:modelValue", c.checked), r("change", s);
1890
+ const r = e, o = t, a = m(() => {
1891
+ const i = ["vf-checkbox", `vf-checkbox_${o.variant}`];
1892
+ return o.disabled && i.push("vf-checkbox_disabled"), i;
1893
+ }), d = (i) => {
1894
+ const c = i.target;
1895
+ r("update:modelValue", c.checked), r("change", i);
1896
1896
  };
1897
- return (s, c) => (g(), y("label", {
1898
- class: D(a.value)
1897
+ return (i, c) => (g(), y("label", {
1898
+ class: R(a.value)
1899
1899
  }, [
1900
- F("input", {
1900
+ B("input", {
1901
1901
  class: "vf-checkbox__control",
1902
1902
  type: "checkbox",
1903
- checked: s.modelValue,
1904
- disabled: s.disabled,
1903
+ checked: i.modelValue,
1904
+ disabled: i.disabled,
1905
1905
  onChange: d
1906
- }, null, 40, So),
1907
- c[0] || (c[0] = F("span", { class: "vf-checkbox__box" }, null, -1)),
1908
- s.label || s.$slots.default ? (g(), y("span", Vo, [
1909
- L(s.$slots, "default", {}, () => [
1910
- Q(O(s.label), 1)
1906
+ }, null, 40, Vo),
1907
+ c[0] || (c[0] = B("span", { class: "vf-checkbox__box" }, null, -1)),
1908
+ i.label || i.$slots.default ? (g(), y("span", Lo, [
1909
+ S(i.$slots, "default", {}, () => [
1910
+ Q(O(i.label), 1)
1911
1911
  ])
1912
1912
  ])) : T("", !0)
1913
1913
  ], 2));
1914
1914
  }
1915
- }), ot = Symbol("VueForgeRadioGroup"), Lo = ["aria-disabled", "aria-label", "aria-labelledby"], tr = /* @__PURE__ */ G({
1915
+ }), ot = Symbol("VueForgeRadioGroup"), To = ["aria-disabled", "aria-label", "aria-labelledby"], ir = /* @__PURE__ */ Y({
1916
1916
  __name: "radio-group",
1917
1917
  props: {
1918
1918
  modelValue: { type: [String, Number, Boolean, null], default: void 0 },
@@ -1925,32 +1925,32 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1925
1925
  },
1926
1926
  emits: ["update:modelValue", "change"],
1927
1927
  setup(t, { emit: e }) {
1928
- const r = e, o = t, a = h(() => {
1928
+ const r = e, o = t, a = m(() => {
1929
1929
  const c = ["vf-radio-group"];
1930
1930
  return o.direction === "horizontal" && c.push("vf-radio-group_horizontal"), c;
1931
1931
  }), d = (c, l) => {
1932
1932
  r("update:modelValue", c), r("change", c, l);
1933
- }, s = {
1934
- name: h(() => o.name),
1935
- modelValue: h(() => o.modelValue),
1936
- disabled: h(() => o.disabled),
1937
- variant: h(() => o.variant),
1933
+ }, i = {
1934
+ name: m(() => o.name),
1935
+ modelValue: m(() => o.modelValue),
1936
+ disabled: m(() => o.disabled),
1937
+ variant: m(() => o.variant),
1938
1938
  onChange: d
1939
1939
  };
1940
- return Ze(ot, s), (c, l) => (g(), y("div", {
1941
- class: D(a.value),
1940
+ return Ae(ot, i), (c, l) => (g(), y("div", {
1941
+ class: R(a.value),
1942
1942
  role: "radiogroup",
1943
1943
  "aria-disabled": c.disabled || void 0,
1944
1944
  "aria-label": c.ariaLabel || void 0,
1945
1945
  "aria-labelledby": c.ariaLabelledby || void 0
1946
1946
  }, [
1947
- L(c.$slots, "default")
1948
- ], 10, Lo));
1947
+ S(c.$slots, "default")
1948
+ ], 10, To));
1949
1949
  }
1950
- }), To = ["name", "value", "checked", "disabled"], Ro = {
1950
+ }), Ro = ["name", "value", "checked", "disabled"], Po = {
1951
1951
  key: 0,
1952
1952
  class: "vf-radio__label"
1953
- }, or = /* @__PURE__ */ G({
1953
+ }, dr = /* @__PURE__ */ Y({
1954
1954
  __name: "radio-button",
1955
1955
  props: {
1956
1956
  modelValue: { type: [String, Number, Boolean, null], default: void 0 },
@@ -1962,33 +1962,33 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
1962
1962
  },
1963
1963
  emits: ["update:modelValue", "change"],
1964
1964
  setup(t, { emit: e }) {
1965
- const r = e, o = t, a = We(ot, null), d = h(() => a ? a.modelValue.value : o.modelValue), s = h(() => a ? a.name.value : o.name), c = h(() => a ? a.variant.value : o.variant), l = h(() => (a ? a.disabled.value : !1) || o.disabled), u = h(() => d.value === o.value), n = h(() => {
1965
+ const r = e, o = t, a = De(ot, null), d = m(() => a ? a.modelValue.value : o.modelValue), i = m(() => a ? a.name.value : o.name), c = m(() => a ? a.variant.value : o.variant), l = m(() => (a ? a.disabled.value : !1) || o.disabled), u = m(() => d.value === o.value), s = m(() => {
1966
1966
  const f = ["vf-radio", `vf-radio_${c.value}`];
1967
1967
  return l.value && f.push("vf-radio_disabled"), f;
1968
- }), i = (f) => {
1968
+ }), n = (f) => {
1969
1969
  l.value || (a ? a.onChange(o.value, f) : r("update:modelValue", o.value), r("change", o.value, f));
1970
1970
  };
1971
1971
  return (f, p) => (g(), y("label", {
1972
- class: D(n.value)
1972
+ class: R(s.value)
1973
1973
  }, [
1974
- F("input", {
1974
+ B("input", {
1975
1975
  class: "vf-radio__control",
1976
1976
  type: "radio",
1977
- name: s.value,
1977
+ name: i.value,
1978
1978
  value: f.value,
1979
1979
  checked: u.value,
1980
1980
  disabled: l.value,
1981
- onChange: i
1982
- }, null, 40, To),
1983
- p[0] || (p[0] = F("span", { class: "vf-radio__circle" }, null, -1)),
1984
- f.label || f.$slots.default ? (g(), y("span", Ro, [
1985
- L(f.$slots, "default", {}, () => [
1981
+ onChange: n
1982
+ }, null, 40, Ro),
1983
+ p[0] || (p[0] = B("span", { class: "vf-radio__circle" }, null, -1)),
1984
+ f.label || f.$slots.default ? (g(), y("span", Po, [
1985
+ S(f.$slots, "default", {}, () => [
1986
1986
  Q(O(f.label), 1)
1987
1987
  ])
1988
1988
  ])) : T("", !0)
1989
1989
  ], 2));
1990
1990
  }
1991
- }), He = Symbol("VueForgeTabs"), Po = ["aria-orientation", "aria-label", "aria-labelledby"], Mo = { class: "vf-tabs__panels" }, ar = /* @__PURE__ */ G({
1991
+ }), He = Symbol("VueForgeTabs"), Io = ["aria-orientation", "aria-label", "aria-labelledby"], Mo = { class: "vf-tabs__panels" }, cr = /* @__PURE__ */ Y({
1992
1992
  __name: "tabs",
1993
1993
  props: {
1994
1994
  modelValue: { default: void 0 },
@@ -2000,37 +2000,37 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2000
2000
  emits: ["update:modelValue", "change"],
2001
2001
  setup(t, { emit: e }) {
2002
2002
  let r = 0;
2003
- const o = e, a = t, d = ++r, s = (v) => String(v).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), c = h(() => {
2003
+ const o = e, a = t, d = ++r, i = (v) => String(v).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), c = m(() => {
2004
2004
  const v = ["vf-tabs"];
2005
2005
  return a.orientation === "vertical" && v.push("vf-tabs_vertical"), a.disabled && v.push("vf-tabs_disabled"), v;
2006
- }), l = I(null), u = () => l.value ? Array.from(l.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], n = (v) => {
2006
+ }), l = D(null), u = () => l.value ? Array.from(l.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], s = (v) => {
2007
2007
  v && (v.focus(), v.click());
2008
- }, i = (v) => {
2008
+ }, n = (v) => {
2009
2009
  if (a.disabled)
2010
2010
  return;
2011
- const _ = a.orientation === "horizontal", m = v.key, C = _ ? ["ArrowRight"] : ["ArrowDown"], M = _ ? ["ArrowLeft"] : ["ArrowUp"];
2012
- if (![...C, ...M, "Home", "End"].includes(m))
2011
+ const _ = a.orientation === "horizontal", h = v.key, C = _ ? ["ArrowRight"] : ["ArrowDown"], M = _ ? ["ArrowLeft"] : ["ArrowUp"];
2012
+ if (![...C, ...M, "Home", "End"].includes(h))
2013
2013
  return;
2014
- const S = u();
2015
- if (!S.length)
2014
+ const V = u();
2015
+ if (!V.length)
2016
2016
  return;
2017
- const H = S.findIndex((z) => z.getAttribute("aria-selected") === "true"), R = S.findIndex((z) => z === document.activeElement), P = R >= 0 ? R : Math.max(H, 0);
2018
- let W = P;
2019
- C.includes(m) ? W = (P + 1) % S.length : M.includes(m) ? W = (P - 1 + S.length) % S.length : m === "Home" ? W = 0 : m === "End" && (W = S.length - 1), v.preventDefault(), n(S[W]);
2017
+ const A = V.findIndex((F) => F.getAttribute("aria-selected") === "true"), P = V.findIndex((F) => F === document.activeElement), I = P >= 0 ? P : Math.max(A, 0);
2018
+ let W = I;
2019
+ C.includes(h) ? W = (I + 1) % V.length : M.includes(h) ? W = (I - 1 + V.length) % V.length : h === "Home" ? W = 0 : h === "End" && (W = V.length - 1), v.preventDefault(), s(V[W]);
2020
2020
  }, f = (v, _) => {
2021
2021
  o("update:modelValue", v), o("change", v, _);
2022
2022
  }, p = {
2023
- activeValue: h(() => a.modelValue),
2024
- disabled: h(() => a.disabled),
2025
- orientation: h(() => a.orientation),
2023
+ activeValue: m(() => a.modelValue),
2024
+ disabled: m(() => a.disabled),
2025
+ orientation: m(() => a.orientation),
2026
2026
  onChange: f,
2027
- getTabId: (v) => `vf-tab-${d}-${s(v)}`,
2028
- getPanelId: (v) => `vf-tabpanel-${d}-${s(v)}`
2027
+ getTabId: (v) => `vf-tab-${d}-${i(v)}`,
2028
+ getPanelId: (v) => `vf-tabpanel-${d}-${i(v)}`
2029
2029
  };
2030
- return Ze(He, p), (v, _) => (g(), y("div", {
2031
- class: D(c.value)
2030
+ return Ae(He, p), (v, _) => (g(), y("div", {
2031
+ class: R(c.value)
2032
2032
  }, [
2033
- F("div", {
2033
+ B("div", {
2034
2034
  ref_key: "list",
2035
2035
  ref: l,
2036
2036
  class: "vf-tabs__list",
@@ -2038,16 +2038,16 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2038
2038
  "aria-orientation": v.orientation,
2039
2039
  "aria-label": v.ariaLabel || void 0,
2040
2040
  "aria-labelledby": v.ariaLabelledby || void 0,
2041
- onKeydown: i
2041
+ onKeydown: n
2042
2042
  }, [
2043
- L(v.$slots, "tabs")
2044
- ], 40, Po),
2045
- F("div", Mo, [
2046
- L(v.$slots, "panels")
2043
+ S(v.$slots, "tabs")
2044
+ ], 40, Io),
2045
+ B("div", Mo, [
2046
+ S(v.$slots, "panels")
2047
2047
  ])
2048
2048
  ], 2));
2049
2049
  }
2050
- }), Io = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"], rr = /* @__PURE__ */ G({
2050
+ }), Do = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"], ur = /* @__PURE__ */ Y({
2051
2051
  __name: "tab",
2052
2052
  props: {
2053
2053
  value: {},
@@ -2056,51 +2056,152 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2056
2056
  },
2057
2057
  emits: ["change"],
2058
2058
  setup(t, { emit: e }) {
2059
- const r = e, o = t, a = We(He, null), d = h(() => (a == null ? void 0 : a.activeValue.value) === o.value), s = h(() => ((a == null ? void 0 : a.disabled.value) ?? !1) || o.disabled), c = h(() => a ? a.getTabId(o.value) : void 0), l = h(() => a ? a.getPanelId(o.value) : void 0), u = h(() => s.value ? -1 : d.value ? 0 : -1), n = (i) => {
2060
- !a || s.value || (a.onChange(o.value, i), r("change", o.value, i));
2059
+ const r = e, o = t, a = De(He, null), d = m(() => (a == null ? void 0 : a.activeValue.value) === o.value), i = m(() => ((a == null ? void 0 : a.disabled.value) ?? !1) || o.disabled), c = m(() => a ? a.getTabId(o.value) : void 0), l = m(() => a ? a.getPanelId(o.value) : void 0), u = m(() => i.value ? -1 : d.value ? 0 : -1), s = (n) => {
2060
+ !a || i.value || (a.onChange(o.value, n), r("change", o.value, n));
2061
2061
  };
2062
- return (i, f) => (g(), y("button", {
2062
+ return (n, f) => (g(), y("button", {
2063
2063
  id: c.value,
2064
- class: D(["vf-tab", { "vf-tab_active": d.value, "vf-tab_disabled": s.value }]),
2064
+ class: R(["vf-tab", { "vf-tab_active": d.value, "vf-tab_disabled": i.value }]),
2065
2065
  type: "button",
2066
2066
  role: "tab",
2067
2067
  "aria-selected": d.value,
2068
2068
  "aria-controls": l.value,
2069
- disabled: s.value,
2069
+ disabled: i.value,
2070
2070
  tabindex: u.value,
2071
- onClick: n
2071
+ onClick: s
2072
2072
  }, [
2073
- L(i.$slots, "default", {}, () => [
2074
- Q(O(i.label), 1)
2073
+ S(n.$slots, "default", {}, () => [
2074
+ Q(O(n.label), 1)
2075
2075
  ])
2076
- ], 10, Io));
2076
+ ], 10, Do));
2077
2077
  }
2078
- }), Do = ["id", "aria-labelledby"], lr = /* @__PURE__ */ G({
2078
+ }), Oo = ["id", "aria-labelledby"], vr = /* @__PURE__ */ Y({
2079
2079
  __name: "tab-panel",
2080
2080
  props: {
2081
2081
  value: {}
2082
2082
  },
2083
2083
  setup(t) {
2084
- const e = t, r = We(He, null), o = h(() => (r == null ? void 0 : r.activeValue.value) === e.value), a = h(() => r ? r.getTabId(e.value) : void 0), d = h(() => r ? r.getPanelId(e.value) : void 0);
2085
- return (s, c) => ve((g(), y("div", {
2084
+ const e = t, r = De(He, null), o = m(() => (r == null ? void 0 : r.activeValue.value) === e.value), a = m(() => r ? r.getTabId(e.value) : void 0), d = m(() => r ? r.getPanelId(e.value) : void 0);
2085
+ return (i, c) => ve((g(), y("div", {
2086
2086
  id: d.value,
2087
2087
  class: "vf-tab-panel",
2088
2088
  role: "tabpanel",
2089
2089
  tabindex: "0",
2090
2090
  "aria-labelledby": a.value
2091
2091
  }, [
2092
- L(s.$slots, "default")
2093
- ], 8, Do)), [
2092
+ S(i.$slots, "default")
2093
+ ], 8, Oo)), [
2094
2094
  [fe, o.value]
2095
2095
  ]);
2096
2096
  }
2097
- }), Oo = ["data-severity"], Eo = { class: "vf-toast__body" }, Wo = {
2097
+ }), at = Symbol("VueForgeAccordion"), Eo = ["aria-label", "aria-labelledby"], fr = /* @__PURE__ */ Y({
2098
+ __name: "accordion",
2099
+ props: {
2100
+ modelValue: { default: void 0 },
2101
+ multiple: { type: Boolean, default: !1 },
2102
+ disabled: { type: Boolean, default: !1 },
2103
+ variant: { default: "filled" },
2104
+ size: { default: "normal" },
2105
+ ariaLabel: {},
2106
+ ariaLabelledby: {}
2107
+ },
2108
+ emits: ["update:modelValue", "change"],
2109
+ setup(t, { emit: e }) {
2110
+ let r = 0;
2111
+ const o = e, a = t, d = ++r, i = (n) => String(n).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), c = m(() => {
2112
+ const n = ["vf-accordion", `vf-accordion_${a.variant}`];
2113
+ return a.size !== "normal" && n.push(`vf-accordion_${a.size}`), a.disabled && n.push("vf-accordion_disabled"), n;
2114
+ }), l = (n) => Array.isArray(n) ? n : n == null ? [] : [n], u = (n, f) => {
2115
+ if (a.disabled)
2116
+ return;
2117
+ if (a.multiple) {
2118
+ const v = l(a.modelValue), h = v.includes(n) ? v.filter((C) => C !== n) : [...v, n];
2119
+ o("update:modelValue", h), o("change", h, f);
2120
+ return;
2121
+ }
2122
+ const p = a.modelValue === n ? void 0 : n;
2123
+ o("update:modelValue", p), o("change", p, f);
2124
+ }, s = {
2125
+ modelValue: m(() => a.modelValue),
2126
+ multiple: m(() => a.multiple),
2127
+ disabled: m(() => a.disabled),
2128
+ variant: m(() => a.variant),
2129
+ size: m(() => a.size),
2130
+ onToggle: u,
2131
+ getHeaderId: (n) => `vf-accordion-header-${d}-${i(n)}`,
2132
+ getPanelId: (n) => `vf-accordion-panel-${d}-${i(n)}`
2133
+ };
2134
+ return Ae(at, s), (n, f) => (g(), y("div", {
2135
+ class: R(c.value),
2136
+ "aria-label": n.ariaLabel || void 0,
2137
+ "aria-labelledby": n.ariaLabelledby || void 0
2138
+ }, [
2139
+ S(n.$slots, "default")
2140
+ ], 10, Eo));
2141
+ }
2142
+ }), Wo = ["id", "disabled", "aria-expanded", "aria-controls"], Ao = { class: "vf-accordion__title" }, Ho = ["id", "aria-labelledby", "aria-hidden"], Ko = { class: "vf-accordion__panel-inner" }, pr = /* @__PURE__ */ Y({
2143
+ __name: "accordion-item",
2144
+ props: {
2145
+ value: {},
2146
+ title: { default: "" },
2147
+ disabled: { type: Boolean, default: !1 },
2148
+ unmount: { type: Boolean, default: !1 }
2149
+ },
2150
+ setup(t) {
2151
+ const e = t, r = De(at, null), o = m(() => {
2152
+ if (!r)
2153
+ return !1;
2154
+ const s = r.modelValue.value;
2155
+ return Array.isArray(s) ? s.includes(e.value) : s === e.value;
2156
+ }), a = m(() => ((r == null ? void 0 : r.disabled.value) ?? !1) || e.disabled), d = m(() => r ? r.getHeaderId(e.value) : void 0), i = m(() => r ? r.getPanelId(e.value) : void 0), c = m(() => e.unmount ? o.value : !0), l = m(() => {
2157
+ const s = ["vf-accordion-item"];
2158
+ return o.value && s.push("vf-accordion-item_open"), a.value && s.push("vf-accordion-item_disabled"), s;
2159
+ }), u = (s) => {
2160
+ !r || a.value || r.onToggle(e.value, s);
2161
+ };
2162
+ return (s, n) => (g(), y("div", {
2163
+ class: R(l.value)
2164
+ }, [
2165
+ B("button", {
2166
+ id: d.value,
2167
+ class: "vf-accordion__header",
2168
+ type: "button",
2169
+ disabled: a.value,
2170
+ "aria-expanded": o.value,
2171
+ "aria-controls": i.value,
2172
+ onClick: u
2173
+ }, [
2174
+ B("span", Ao, [
2175
+ S(s.$slots, "title", {}, () => [
2176
+ Q(O(s.title), 1)
2177
+ ])
2178
+ ]),
2179
+ n[0] || (n[0] = B("span", {
2180
+ class: "vf-accordion__icon",
2181
+ "aria-hidden": "true"
2182
+ }, null, -1))
2183
+ ], 8, Wo),
2184
+ c.value ? (g(), y("div", {
2185
+ key: 0,
2186
+ id: i.value,
2187
+ class: R(["vf-accordion__panel", { "vf-accordion__panel_open": o.value }]),
2188
+ role: "region",
2189
+ "aria-labelledby": d.value,
2190
+ "aria-hidden": o.value ? void 0 : "true"
2191
+ }, [
2192
+ B("div", Ko, [
2193
+ S(s.$slots, "default")
2194
+ ])
2195
+ ], 10, Ho)) : T("", !0)
2196
+ ], 2));
2197
+ }
2198
+ }), No = ["data-severity"], Yo = { class: "vf-toast__body" }, Go = {
2098
2199
  key: 0,
2099
2200
  class: "vf-toast__title"
2100
- }, Ho = {
2201
+ }, jo = {
2101
2202
  key: 1,
2102
2203
  class: "vf-toast__message"
2103
- }, nr = /* @__PURE__ */ G({
2204
+ }, br = /* @__PURE__ */ Y({
2104
2205
  __name: "toast",
2105
2206
  props: {
2106
2207
  modelValue: { type: Boolean, default: !1 },
@@ -2116,7 +2217,7 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2116
2217
  let a = null;
2117
2218
  const d = () => {
2118
2219
  a !== null && (clearTimeout(a), a = null);
2119
- }, s = () => {
2220
+ }, i = () => {
2120
2221
  d(), !(!o.modelValue || o.duration <= 0) && (a = window.setTimeout(() => {
2121
2222
  r("update:modelValue", !1), r("close");
2122
2223
  }, o.duration));
@@ -2126,7 +2227,7 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2126
2227
  return te(
2127
2228
  () => o.modelValue,
2128
2229
  (l) => {
2129
- l && r("open"), s();
2230
+ l && r("open"), i();
2130
2231
  },
2131
2232
  { immediate: !0 }
2132
2233
  ), we(() => {
@@ -2137,10 +2238,10 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2137
2238
  "aria-live": "polite",
2138
2239
  "data-severity": l.severity
2139
2240
  }, [
2140
- F("div", Eo, [
2141
- l.title ? (g(), y("div", Wo, O(l.title), 1)) : T("", !0),
2142
- l.message || l.$slots.default ? (g(), y("div", Ho, [
2143
- L(l.$slots, "default", {}, () => [
2241
+ B("div", Yo, [
2242
+ l.title ? (g(), y("div", Go, O(l.title), 1)) : T("", !0),
2243
+ l.message || l.$slots.default ? (g(), y("div", jo, [
2244
+ S(l.$slots, "default", {}, () => [
2144
2245
  Q(O(l.message), 1)
2145
2246
  ])
2146
2247
  ])) : T("", !0)
@@ -2151,45 +2252,45 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2151
2252
  type: "button",
2152
2253
  onClick: c
2153
2254
  }, [
2154
- L(l.$slots, "close", {}, () => [
2255
+ S(l.$slots, "close", {}, () => [
2155
2256
  u[0] || (u[0] = Q("×"))
2156
2257
  ])
2157
2258
  ])) : T("", !0)
2158
- ], 8, Oo)), [
2259
+ ], 8, No)), [
2159
2260
  [fe, l.modelValue]
2160
2261
  ]);
2161
2262
  }
2162
- }), sr = /* @__PURE__ */ G({
2263
+ }), gr = /* @__PURE__ */ Y({
2163
2264
  __name: "toast-container",
2164
2265
  props: {
2165
2266
  position: { default: "top-right" }
2166
2267
  },
2167
2268
  setup(t) {
2168
- const e = t, r = h(() => `vf-toast-container_${e.position}`);
2269
+ const e = t, r = m(() => `vf-toast-container_${e.position}`);
2169
2270
  return (o, a) => (g(), le($e, { to: "body" }, [
2170
- F("div", {
2171
- class: D(["vf-toast-container", r.value]),
2271
+ B("div", {
2272
+ class: R(["vf-toast-container", r.value]),
2172
2273
  role: "region",
2173
2274
  "aria-live": "polite"
2174
2275
  }, [
2175
- L(o.$slots, "default")
2276
+ S(o.$slots, "default")
2176
2277
  ], 2)
2177
2278
  ]));
2178
2279
  }
2179
- }), Ao = ["data-severity"], Ko = {
2280
+ }), Xo = ["data-severity"], qo = {
2180
2281
  key: 0,
2181
2282
  class: "vf-alert__icon",
2182
2283
  "aria-hidden": "true"
2183
- }, No = { class: "vf-alert__body" }, Yo = {
2284
+ }, Uo = { class: "vf-alert__body" }, Zo = {
2184
2285
  key: 0,
2185
2286
  class: "vf-alert__title"
2186
- }, Go = {
2287
+ }, Jo = {
2187
2288
  key: 1,
2188
2289
  class: "vf-alert__message"
2189
- }, jo = {
2290
+ }, Qo = {
2190
2291
  key: 1,
2191
2292
  class: "vf-alert__actions"
2192
- }, ir = /* @__PURE__ */ G({
2293
+ }, mr = /* @__PURE__ */ Y({
2193
2294
  __name: "alert",
2194
2295
  props: {
2195
2296
  modelValue: { type: Boolean },
@@ -2201,7 +2302,7 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2201
2302
  },
2202
2303
  emits: ["update:modelValue", "close"],
2203
2304
  setup(t, { emit: e }) {
2204
- const r = e, o = t, a = I(!0), d = h(() => typeof o.modelValue == "boolean"), s = h(() => d.value ? o.modelValue : a.value);
2305
+ const r = e, o = t, a = D(!0), d = m(() => typeof o.modelValue == "boolean"), i = m(() => d.value ? o.modelValue : a.value);
2205
2306
  te(
2206
2307
  () => o.modelValue,
2207
2308
  (l) => {
@@ -2217,25 +2318,25 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2217
2318
  role: "alert",
2218
2319
  "data-severity": l.severity
2219
2320
  }, [
2220
- l.$slots.icon || l.icon ? (g(), y("div", Ko, [
2221
- L(l.$slots, "icon", {}, () => [
2321
+ l.$slots.icon || l.icon ? (g(), y("div", qo, [
2322
+ S(l.$slots, "icon", {}, () => [
2222
2323
  Q(O(l.icon), 1)
2223
2324
  ])
2224
2325
  ])) : T("", !0),
2225
- F("div", No, [
2226
- l.title || l.$slots.title ? (g(), y("div", Yo, [
2227
- L(l.$slots, "title", {}, () => [
2326
+ B("div", Uo, [
2327
+ l.title || l.$slots.title ? (g(), y("div", Zo, [
2328
+ S(l.$slots, "title", {}, () => [
2228
2329
  Q(O(l.title), 1)
2229
2330
  ])
2230
2331
  ])) : T("", !0),
2231
- l.message || l.$slots.default ? (g(), y("div", Go, [
2232
- L(l.$slots, "default", {}, () => [
2332
+ l.message || l.$slots.default ? (g(), y("div", Jo, [
2333
+ S(l.$slots, "default", {}, () => [
2233
2334
  Q(O(l.message), 1)
2234
2335
  ])
2235
2336
  ])) : T("", !0)
2236
2337
  ]),
2237
- l.$slots.actions ? (g(), y("div", jo, [
2238
- L(l.$slots, "actions")
2338
+ l.$slots.actions ? (g(), y("div", Qo, [
2339
+ S(l.$slots, "actions")
2239
2340
  ])) : T("", !0),
2240
2341
  l.closable ? (g(), y("button", {
2241
2342
  key: 2,
@@ -2244,18 +2345,18 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2244
2345
  "aria-label": "Close",
2245
2346
  onClick: c
2246
2347
  }, [
2247
- L(l.$slots, "close", {}, () => [
2348
+ S(l.$slots, "close", {}, () => [
2248
2349
  u[0] || (u[0] = Q("×"))
2249
2350
  ])
2250
2351
  ])) : T("", !0)
2251
- ], 8, Ao)), [
2252
- [fe, s.value]
2352
+ ], 8, Xo)), [
2353
+ [fe, i.value]
2253
2354
  ]);
2254
2355
  }
2255
- }), Xo = ["checked", "disabled"], qo = {
2356
+ }), ea = ["checked", "disabled"], ta = {
2256
2357
  key: 0,
2257
2358
  class: "vf-switch__label"
2258
- }, dr = /* @__PURE__ */ G({
2359
+ }, hr = /* @__PURE__ */ Y({
2259
2360
  __name: "switch",
2260
2361
  props: {
2261
2362
  modelValue: { type: Boolean, default: !1 },
@@ -2264,95 +2365,95 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2264
2365
  },
2265
2366
  emits: ["update:modelValue", "change"],
2266
2367
  setup(t, { emit: e }) {
2267
- const r = e, o = t, a = h(() => {
2268
- const s = ["vf-switch"];
2269
- return o.disabled && s.push("vf-switch_disabled"), s;
2270
- }), d = (s) => {
2271
- const c = s.target;
2272
- r("update:modelValue", c.checked), r("change", s);
2368
+ const r = e, o = t, a = m(() => {
2369
+ const i = ["vf-switch"];
2370
+ return o.disabled && i.push("vf-switch_disabled"), i;
2371
+ }), d = (i) => {
2372
+ const c = i.target;
2373
+ r("update:modelValue", c.checked), r("change", i);
2273
2374
  };
2274
- return (s, c) => (g(), y("label", {
2275
- class: D(a.value)
2375
+ return (i, c) => (g(), y("label", {
2376
+ class: R(a.value)
2276
2377
  }, [
2277
- F("input", {
2378
+ B("input", {
2278
2379
  class: "vf-switch__control",
2279
2380
  type: "checkbox",
2280
- checked: s.modelValue,
2281
- disabled: s.disabled,
2381
+ checked: i.modelValue,
2382
+ disabled: i.disabled,
2282
2383
  onChange: d
2283
- }, null, 40, Xo),
2284
- c[0] || (c[0] = F("span", { class: "vf-switch__track" }, [
2285
- F("span", { class: "vf-switch__thumb" })
2384
+ }, null, 40, ea),
2385
+ c[0] || (c[0] = B("span", { class: "vf-switch__track" }, [
2386
+ B("span", { class: "vf-switch__thumb" })
2286
2387
  ], -1)),
2287
- s.label || s.$slots.default ? (g(), y("span", qo, [
2288
- L(s.$slots, "default", {}, () => [
2289
- Q(O(s.label), 1)
2388
+ i.label || i.$slots.default ? (g(), y("span", ta, [
2389
+ S(i.$slots, "default", {}, () => [
2390
+ Q(O(i.label), 1)
2290
2391
  ])
2291
2392
  ])) : T("", !0)
2292
2393
  ], 2));
2293
2394
  }
2294
- }), Uo = { class: "vf-popover" }, Zo = ["aria-expanded", "onKeydown"], cr = /* @__PURE__ */ G({
2395
+ }), oa = { class: "vf-popover" }, aa = ["aria-expanded", "onKeydown"], yr = /* @__PURE__ */ Y({
2295
2396
  __name: "popover",
2296
2397
  emits: ["click", "onClick"],
2297
2398
  setup(t, { expose: e, emit: r }) {
2298
- const o = r, a = lt({ visible: !1 });
2399
+ const o = r, a = nt({ visible: !1 });
2299
2400
  let d = 0;
2300
- const s = `vf-popover-panel-${++d}`, c = () => a.visible = !0, l = () => a.visible = !1, u = () => a.visible = !a.visible, n = () => {
2401
+ const i = `vf-popover-panel-${++d}`, c = () => a.visible = !0, l = () => a.visible = !1, u = () => a.visible = !a.visible, s = () => {
2301
2402
  u(), o("click"), o("onClick");
2302
2403
  };
2303
- return e({ show: c, hide: l, toggle: u }), (i, f) => (g(), y("div", Uo, [
2304
- F("div", {
2404
+ return e({ show: c, hide: l, toggle: u }), (n, f) => (g(), y("div", oa, [
2405
+ B("div", {
2305
2406
  class: "vf-popover__button",
2306
2407
  role: "button",
2307
2408
  tabindex: "0",
2308
2409
  "aria-haspopup": "dialog",
2309
2410
  "aria-expanded": a.visible,
2310
- "aria-controls": s,
2311
- onClick: n,
2411
+ "aria-controls": i,
2412
+ onClick: s,
2312
2413
  onKeydown: [
2313
- U(Y(n, ["prevent"]), ["enter"]),
2314
- U(Y(n, ["prevent"]), ["space"])
2414
+ U(G(s, ["prevent"]), ["enter"]),
2415
+ U(G(s, ["prevent"]), ["space"])
2315
2416
  ]
2316
2417
  }, [
2317
- L(i.$slots, "button")
2318
- ], 40, Zo),
2319
- ve(qe(yt, {
2320
- id: s,
2418
+ S(n.$slots, "button")
2419
+ ], 40, aa),
2420
+ ve(Ue(_t, {
2421
+ id: i,
2321
2422
  class: "vf-popover__wrapper"
2322
- }, nt({
2423
+ }, st({
2323
2424
  default: ye(() => [
2324
- f[0] || (f[0] = F("div", { class: "vf-popover__arrow" }, null, -1))
2425
+ f[0] || (f[0] = B("div", { class: "vf-popover__arrow" }, null, -1))
2325
2426
  ]),
2326
2427
  _: 2
2327
2428
  }, [
2328
- i.$slots.default ? {
2429
+ n.$slots.default ? {
2329
2430
  name: "default",
2330
2431
  fn: ye(() => [
2331
- L(i.$slots, "default")
2432
+ S(n.$slots, "default")
2332
2433
  ]),
2333
2434
  key: "0"
2334
2435
  } : void 0,
2335
- i.$slots.header || i.$slots.popoverHeader ? {
2436
+ n.$slots.header || n.$slots.popoverHeader ? {
2336
2437
  name: "header",
2337
2438
  fn: ye(() => [
2338
- L(i.$slots, "header"),
2339
- i.$slots.header ? T("", !0) : L(i.$slots, "popoverHeader", { key: 0 })
2439
+ S(n.$slots, "header"),
2440
+ n.$slots.header ? T("", !0) : S(n.$slots, "popoverHeader", { key: 0 })
2340
2441
  ]),
2341
2442
  key: "1"
2342
2443
  } : void 0,
2343
- i.$slots.body || i.$slots.popoverBody ? {
2444
+ n.$slots.body || n.$slots.popoverBody ? {
2344
2445
  name: "body",
2345
2446
  fn: ye(() => [
2346
- L(i.$slots, "body"),
2347
- i.$slots.body ? T("", !0) : L(i.$slots, "popoverBody", { key: 0 })
2447
+ S(n.$slots, "body"),
2448
+ n.$slots.body ? T("", !0) : S(n.$slots, "popoverBody", { key: 0 })
2348
2449
  ]),
2349
2450
  key: "2"
2350
2451
  } : void 0,
2351
- i.$slots.footer || i.$slots.popoverFooter ? {
2452
+ n.$slots.footer || n.$slots.popoverFooter ? {
2352
2453
  name: "footer",
2353
2454
  fn: ye(() => [
2354
- L(i.$slots, "footer"),
2355
- i.$slots.footer ? T("", !0) : L(i.$slots, "popoverFooter", { key: 0 })
2455
+ S(n.$slots, "footer"),
2456
+ n.$slots.footer ? T("", !0) : S(n.$slots, "popoverFooter", { key: 0 })
2356
2457
  ]),
2357
2458
  key: "3"
2358
2459
  } : void 0
@@ -2361,16 +2462,16 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2361
2462
  ])
2362
2463
  ]));
2363
2464
  }
2364
- }), Jo = ["aria-labelledby", "aria-describedby"], Qo = {
2465
+ }), ra = ["aria-labelledby", "aria-describedby"], la = {
2365
2466
  key: 0,
2366
2467
  class: "vf-modal__header"
2367
- }, ea = {
2468
+ }, na = {
2368
2469
  key: 0,
2369
2470
  class: "vf-modal__title"
2370
- }, ta = {
2471
+ }, sa = {
2371
2472
  key: 3,
2372
2473
  class: "vf-modal__footer"
2373
- }, ur = /* @__PURE__ */ G({
2474
+ }, _r = /* @__PURE__ */ Y({
2374
2475
  __name: "modal",
2375
2476
  props: {
2376
2477
  modelValue: { type: Boolean, default: !1 },
@@ -2384,83 +2485,83 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2384
2485
  emits: ["update:modelValue", "open", "close"],
2385
2486
  setup(t, { expose: e, emit: r }) {
2386
2487
  const o = r, a = t;
2387
- let d = 0, s = 0, c = "", l = null;
2388
- const u = I(null), n = Ue(), i = `vf-modal-title-${++d}`, f = `vf-modal-body-${d}`, p = h(() => !!a.title || !!n.header), v = h(() => !!n.body || !!n.default), _ = h(() => {
2488
+ let d = 0, i = 0, c = "", l = null;
2489
+ const u = D(null), s = Ze(), n = `vf-modal-title-${++d}`, f = `vf-modal-body-${d}`, p = m(() => !!a.title || !!s.header), v = m(() => !!s.body || !!s.default), _ = m(() => {
2389
2490
  const x = ["vf-modal"];
2390
2491
  return a.size !== "md" && x.push(`vf-modal_${a.size}`), x;
2391
- }), m = () => o("update:modelValue", !0), C = () => {
2492
+ }), h = () => o("update:modelValue", !0), C = () => {
2392
2493
  o("update:modelValue", !1), o("close");
2393
2494
  }, M = () => {
2394
2495
  a.closeOnOverlay && C();
2395
- }, S = (x) => {
2496
+ }, V = (x) => {
2396
2497
  !a.modelValue || !a.closeOnEsc || x.key === "Escape" && (x.preventDefault(), C());
2397
- }, H = () => u.value ? Array.from(u.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((k) => !k.hasAttribute("disabled") && !k.getAttribute("aria-hidden")) : [], R = () => {
2498
+ }, A = () => u.value ? Array.from(u.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((k) => !k.hasAttribute("disabled") && !k.getAttribute("aria-hidden")) : [], P = () => {
2398
2499
  var k;
2399
- const x = H();
2500
+ const x = A();
2400
2501
  x.length ? x[0].focus() : (k = u.value) == null || k.focus();
2401
- }, P = (x) => {
2502
+ }, I = (x) => {
2402
2503
  var X;
2403
2504
  if (x.key !== "Tab")
2404
2505
  return;
2405
- const k = H();
2506
+ const k = A();
2406
2507
  if (!k.length) {
2407
2508
  x.preventDefault(), (X = u.value) == null || X.focus();
2408
2509
  return;
2409
2510
  }
2410
- const V = k[0], K = k[k.length - 1], j = document.activeElement;
2411
- if (x.shiftKey && j === V) {
2511
+ const L = k[0], K = k[k.length - 1], j = document.activeElement;
2512
+ if (x.shiftKey && j === L) {
2412
2513
  x.preventDefault(), K.focus();
2413
2514
  return;
2414
2515
  }
2415
- !x.shiftKey && j === K && (x.preventDefault(), V.focus());
2516
+ !x.shiftKey && j === K && (x.preventDefault(), L.focus());
2416
2517
  }, W = () => {
2417
- !a.lockScroll || typeof document > "u" || (s === 0 && (c = document.body.style.overflow, document.body.style.overflow = "hidden"), s += 1);
2418
- }, z = () => {
2419
- !a.lockScroll || typeof document > "u" || (s = Math.max(0, s - 1), s === 0 && (document.body.style.overflow = c));
2518
+ !a.lockScroll || typeof document > "u" || (i === 0 && (c = document.body.style.overflow, document.body.style.overflow = "hidden"), i += 1);
2519
+ }, F = () => {
2520
+ !a.lockScroll || typeof document > "u" || (i = Math.max(0, i - 1), i === 0 && (document.body.style.overflow = c));
2420
2521
  };
2421
2522
  return te(
2422
2523
  () => a.modelValue,
2423
2524
  async (x) => {
2424
- x ? (typeof document < "u" && (l = document.activeElement), W(), o("open"), await Ce(), R(), typeof document < "u" && document.addEventListener("keydown", S)) : (z(), typeof document < "u" && (document.removeEventListener("keydown", S), l == null || l.focus()));
2525
+ x ? (typeof document < "u" && (l = document.activeElement), W(), o("open"), await Ce(), P(), typeof document < "u" && document.addEventListener("keydown", V)) : (F(), typeof document < "u" && (document.removeEventListener("keydown", V), l == null || l.focus()));
2425
2526
  },
2426
2527
  { immediate: !0 }
2427
2528
  ), we(() => {
2428
- z(), typeof document < "u" && document.removeEventListener("keydown", S);
2429
- }), e({ open: m, close: C }), (x, k) => (g(), le($e, { to: "body" }, [
2430
- ve(F("div", {
2431
- class: D(_.value),
2529
+ F(), typeof document < "u" && document.removeEventListener("keydown", V);
2530
+ }), e({ open: h, close: C }), (x, k) => (g(), le($e, { to: "body" }, [
2531
+ ve(B("div", {
2532
+ class: R(_.value),
2432
2533
  role: "presentation"
2433
2534
  }, [
2434
- F("div", {
2535
+ B("div", {
2435
2536
  class: "vf-modal__overlay",
2436
2537
  onClick: M
2437
2538
  }),
2438
- F("div", {
2539
+ B("div", {
2439
2540
  ref_key: "panel",
2440
2541
  ref: u,
2441
2542
  class: "vf-modal__panel",
2442
2543
  role: "dialog",
2443
2544
  "aria-modal": "true",
2444
- "aria-labelledby": p.value ? i : void 0,
2545
+ "aria-labelledby": p.value ? n : void 0,
2445
2546
  "aria-describedby": v.value ? f : void 0,
2446
2547
  tabindex: "-1",
2447
- onKeydown: P
2548
+ onKeydown: I
2448
2549
  }, [
2449
- p.value ? (g(), y("div", Qo, [
2450
- F("div", {
2451
- id: i,
2550
+ p.value ? (g(), y("div", la, [
2551
+ B("div", {
2552
+ id: n,
2452
2553
  class: "vf-modal__header-content"
2453
2554
  }, [
2454
- L(x.$slots, "header", {}, () => [
2455
- x.title ? (g(), y("h3", ea, O(x.title), 1)) : T("", !0)
2555
+ S(x.$slots, "header", {}, () => [
2556
+ x.title ? (g(), y("h3", na, O(x.title), 1)) : T("", !0)
2456
2557
  ])
2457
2558
  ])
2458
2559
  ])) : T("", !0),
2459
- x.showClose ? L(x.$slots, "close", {
2560
+ x.showClose ? S(x.$slots, "close", {
2460
2561
  key: 1,
2461
2562
  close: C
2462
2563
  }, () => [
2463
- F("button", {
2564
+ B("button", {
2464
2565
  type: "button",
2465
2566
  class: "vf-modal__close",
2466
2567
  "aria-label": "Close",
@@ -2472,23 +2573,23 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2472
2573
  id: f,
2473
2574
  class: "vf-modal__body"
2474
2575
  }, [
2475
- L(x.$slots, "body"),
2476
- x.$slots.body ? T("", !0) : L(x.$slots, "default", { key: 0 })
2576
+ S(x.$slots, "body"),
2577
+ x.$slots.body ? T("", !0) : S(x.$slots, "default", { key: 0 })
2477
2578
  ])) : T("", !0),
2478
- x.$slots.footer ? (g(), y("div", ta, [
2479
- L(x.$slots, "footer")
2579
+ x.$slots.footer ? (g(), y("div", sa, [
2580
+ S(x.$slots, "footer")
2480
2581
  ])) : T("", !0)
2481
- ], 40, Jo)
2582
+ ], 40, ra)
2482
2583
  ], 2), [
2483
2584
  [fe, x.modelValue]
2484
2585
  ])
2485
2586
  ]));
2486
2587
  }
2487
- }), oa = ["data-placement"], aa = { class: "vf-tooltip__content" }, ra = {
2588
+ }), ia = ["data-placement"], da = { class: "vf-tooltip__content" }, ca = {
2488
2589
  key: 0,
2489
2590
  class: "vf-tooltip__arrow",
2490
2591
  "aria-hidden": "true"
2491
- }, vr = /* @__PURE__ */ G({
2592
+ }, kr = /* @__PURE__ */ Y({
2492
2593
  __name: "tooltip",
2493
2594
  props: {
2494
2595
  text: { default: "" },
@@ -2499,35 +2600,35 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2499
2600
  setup(t) {
2500
2601
  const e = t;
2501
2602
  let r = 0;
2502
- const o = I(null), a = I(null), d = I(!1), s = I("top"), c = `vf-tooltip-${++r}`;
2603
+ const o = D(null), a = D(null), d = D(!1), i = D("top"), c = `vf-tooltip-${++r}`;
2503
2604
  let l = null;
2504
2605
  const u = () => {
2505
2606
  e.disabled || (d.value = !0);
2506
- }, n = () => {
2607
+ }, s = () => {
2507
2608
  d.value = !1;
2508
- }, i = () => {
2609
+ }, n = () => {
2509
2610
  if (!o.value || !a.value)
2510
2611
  return;
2511
2612
  const p = o.value, v = a.value, _ = async () => {
2512
2613
  const {
2513
- x: S,
2514
- y: H,
2515
- placement: R
2614
+ x: V,
2615
+ y: A,
2616
+ placement: P
2516
2617
  } = await Te(p, v, {
2517
2618
  placement: e.placement,
2518
2619
  strategy: "fixed",
2519
- middleware: [Ve(8), Se(), It()]
2620
+ middleware: [Ve(8), Se(), Dt()]
2520
2621
  });
2521
- s.value = R ?? e.placement, v.style.left = `${S}px`, v.style.top = `${H}px`;
2522
- }, m = async () => {
2622
+ i.value = P ?? e.placement, v.style.left = `${V}px`, v.style.top = `${A}px`;
2623
+ }, h = async () => {
2523
2624
  await _();
2524
2625
  }, C = Le(p, () => {
2525
- m();
2626
+ h();
2526
2627
  }), M = () => {
2527
- m();
2628
+ h();
2528
2629
  };
2529
2630
  document.addEventListener("scroll", M, !0), window.addEventListener("resize", M, !1), l = {
2530
- update: m,
2631
+ update: h,
2531
2632
  destroy: () => {
2532
2633
  C(), document.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M, !1);
2533
2634
  }
@@ -2538,50 +2639,50 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2538
2639
  l && (l.destroy(), l = null);
2539
2640
  return;
2540
2641
  }
2541
- l || i(), l == null || l.update();
2642
+ l || n(), l == null || l.update();
2542
2643
  }), Fe(() => {
2543
- d.value && i();
2644
+ d.value && n();
2544
2645
  }), we(() => {
2545
2646
  l == null || l.destroy(), l = null;
2546
2647
  });
2547
- const f = h(() => !!e.text || !!(a.value && a.value.textContent));
2648
+ const f = m(() => !!e.text || !!(a.value && a.value.textContent));
2548
2649
  return te(f, (p) => {
2549
2650
  p || (d.value = !1);
2550
2651
  }), (p, v) => (g(), y(se, null, [
2551
- F("span", {
2652
+ B("span", {
2552
2653
  ref_key: "trigger",
2553
2654
  ref: o,
2554
2655
  class: "vf-tooltip__trigger",
2555
2656
  "aria-describedby": c,
2556
2657
  onMouseenter: u,
2557
- onMouseleave: n,
2658
+ onMouseleave: s,
2558
2659
  onFocus: u,
2559
- onBlur: n
2660
+ onBlur: s
2560
2661
  }, [
2561
- L(p.$slots, "default")
2662
+ S(p.$slots, "default")
2562
2663
  ], 544),
2563
2664
  (g(), le($e, { to: "body" }, [
2564
- ve(F("div", {
2665
+ ve(B("div", {
2565
2666
  id: c,
2566
2667
  ref_key: "panel",
2567
2668
  ref: a,
2568
2669
  class: "vf-tooltip",
2569
2670
  role: "tooltip",
2570
- "data-placement": s.value
2671
+ "data-placement": i.value
2571
2672
  }, [
2572
- F("span", aa, [
2573
- L(p.$slots, "content", {}, () => [
2673
+ B("span", da, [
2674
+ S(p.$slots, "content", {}, () => [
2574
2675
  Q(O(p.text), 1)
2575
2676
  ])
2576
2677
  ]),
2577
- p.arrow ? (g(), y("span", ra)) : T("", !0)
2578
- ], 8, oa), [
2678
+ p.arrow ? (g(), y("span", ca)) : T("", !0)
2679
+ ], 8, ia), [
2579
2680
  [fe, d.value]
2580
2681
  ])
2581
2682
  ]))
2582
2683
  ], 64));
2583
2684
  }
2584
- }), fr = /* @__PURE__ */ G({
2685
+ }), Cr = /* @__PURE__ */ Y({
2585
2686
  __name: "skeleton",
2586
2687
  props: {
2587
2688
  width: {},
@@ -2593,45 +2694,45 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2593
2694
  const e = t, r = (d) => {
2594
2695
  if (!(d == null || d === ""))
2595
2696
  return typeof d == "number" ? `${d}px` : d;
2596
- }, o = h(() => {
2597
- const d = r(e.width), s = r(e.height), c = {};
2598
- return d && (c.width = d), s && (c.height = s), e.variant === "circle" && (!d && s && (c.width = s), !s && d && (c.height = d)), c;
2599
- }), a = h(() => {
2697
+ }, o = m(() => {
2698
+ const d = r(e.width), i = r(e.height), c = {};
2699
+ return d && (c.width = d), i && (c.height = i), e.variant === "circle" && (!d && i && (c.width = i), !i && d && (c.height = d)), c;
2700
+ }), a = m(() => {
2600
2701
  const d = ["vf-skeleton", `vf-skeleton_${e.variant}`];
2601
2702
  return e.animated && d.push("vf-skeleton_animated"), d;
2602
2703
  });
2603
- return (d, s) => (g(), y("div", {
2604
- class: D(a.value),
2605
- style: st(o.value),
2704
+ return (d, i) => (g(), y("div", {
2705
+ class: R(a.value),
2706
+ style: it(o.value),
2606
2707
  "aria-hidden": "true"
2607
2708
  }, null, 6));
2608
2709
  }
2609
- }), la = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], na = (t) => {
2710
+ }), ua = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], va = (t) => {
2610
2711
  const e = t.replace(/([A-Z])/g, "-$1");
2611
2712
  return e.charAt(0).toUpperCase() + e.slice(1);
2612
- }, sa = (t) => t.filter((e) => !la.includes(e)).map((e) => na(e)).join("-").toLowerCase(), Ee = (t) => t.join("."), ia = (t) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t), Ae = (t) => {
2613
- if (!ia(t))
2713
+ }, fa = (t) => t.filter((e) => !ua.includes(e)).map((e) => va(e)).join("-").toLowerCase(), We = (t) => t.join("."), pa = (t) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t), Ke = (t) => {
2714
+ if (!pa(t))
2614
2715
  return null;
2615
2716
  if (t.length === 4) {
2616
2717
  const e = t[1], r = t[2], o = t[3];
2617
2718
  return `#${e}${e}${r}${r}${o}${o}`;
2618
2719
  }
2619
2720
  return t.toLowerCase();
2620
- }, at = (t) => {
2621
- const e = Ae(t);
2721
+ }, rt = (t) => {
2722
+ const e = Ke(t);
2622
2723
  if (!e)
2623
2724
  return [0, 0, 0];
2624
2725
  const r = parseInt(e.slice(1), 16), o = r >> 16 & 255, a = r >> 8 & 255, d = r & 255;
2625
2726
  return [o, a, d];
2626
- }, Ge = (t) => {
2627
- const [e, r, o] = at(t);
2727
+ }, je = (t) => {
2728
+ const [e, r, o] = rt(t);
2628
2729
  return `${e}, ${r}, ${o}`;
2629
- }, da = (t, e, r) => {
2630
- const o = t / 255, a = e / 255, d = r / 255, s = Math.max(o, a, d), c = Math.min(o, a, d), l = s - c;
2631
- let u = 0, n = 0;
2632
- const i = (s + c) / 2;
2730
+ }, ba = (t, e, r) => {
2731
+ const o = t / 255, a = e / 255, d = r / 255, i = Math.max(o, a, d), c = Math.min(o, a, d), l = i - c;
2732
+ let u = 0, s = 0;
2733
+ const n = (i + c) / 2;
2633
2734
  if (l !== 0) {
2634
- switch (n = l / (1 - Math.abs(2 * i - 1)), s) {
2735
+ switch (s = l / (1 - Math.abs(2 * n - 1)), i) {
2635
2736
  case o:
2636
2737
  u = (a - d) / l % 6;
2637
2738
  break;
@@ -2644,32 +2745,32 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2644
2745
  }
2645
2746
  u *= 60, u < 0 && (u += 360);
2646
2747
  }
2647
- return [u, n * 100, i * 100];
2648
- }, ca = (t, e, r) => {
2649
- const o = e / 100, a = r / 100, d = (1 - Math.abs(2 * a - 1)) * o, s = d * (1 - Math.abs(t / 60 % 2 - 1)), c = a - d / 2;
2650
- let l = 0, u = 0, n = 0;
2651
- t >= 0 && t < 60 ? (l = d, u = s, n = 0) : t >= 60 && t < 120 ? (l = s, u = d, n = 0) : t >= 120 && t < 180 ? (l = 0, u = d, n = s) : t >= 180 && t < 240 ? (l = 0, u = s, n = d) : t >= 240 && t < 300 ? (l = s, u = 0, n = d) : (l = d, u = 0, n = s);
2652
- const i = Math.round((l + c) * 255), f = Math.round((u + c) * 255), p = Math.round((n + c) * 255);
2653
- return [i, f, p];
2654
- }, ua = (t, e, r) => `#${[t, e, r].map((o) => o.toString(16).padStart(2, "0")).join("")}`, va = (t, e, r) => Math.min(r, Math.max(e, t)), fa = (t, e) => {
2655
- const r = Ae(t);
2748
+ return [u, s * 100, n * 100];
2749
+ }, ga = (t, e, r) => {
2750
+ const o = e / 100, a = r / 100, d = (1 - Math.abs(2 * a - 1)) * o, i = d * (1 - Math.abs(t / 60 % 2 - 1)), c = a - d / 2;
2751
+ let l = 0, u = 0, s = 0;
2752
+ t >= 0 && t < 60 ? (l = d, u = i, s = 0) : t >= 60 && t < 120 ? (l = i, u = d, s = 0) : t >= 120 && t < 180 ? (l = 0, u = d, s = i) : t >= 180 && t < 240 ? (l = 0, u = i, s = d) : t >= 240 && t < 300 ? (l = i, u = 0, s = d) : (l = d, u = 0, s = i);
2753
+ const n = Math.round((l + c) * 255), f = Math.round((u + c) * 255), p = Math.round((s + c) * 255);
2754
+ return [n, f, p];
2755
+ }, ma = (t, e, r) => `#${[t, e, r].map((o) => o.toString(16).padStart(2, "0")).join("")}`, ha = (t, e, r) => Math.min(r, Math.max(e, t)), ya = (t, e) => {
2756
+ const r = Ke(t);
2656
2757
  if (!r)
2657
2758
  return t;
2658
- const [o, a, d] = at(r), [s, c, l] = da(o, a, d), n = (e - 5) * 7, i = va(l + n, 0, 100), [f, p, v] = ca(s, c, i);
2659
- return ua(f, p, v);
2660
- }, Ie = (t) => !!t && typeof t == "object" && !Array.isArray(t), Ke = (t, e) => {
2759
+ const [o, a, d] = rt(r), [i, c, l] = ba(o, a, d), s = (e - 5) * 7, n = ha(l + s, 0, 100), [f, p, v] = ga(i, c, n);
2760
+ return ma(f, p, v);
2761
+ }, Me = (t) => !!t && typeof t == "object" && !Array.isArray(t), Ne = (t, e) => {
2661
2762
  if (!e)
2662
2763
  return { ...t };
2663
2764
  const r = { ...t };
2664
2765
  for (const o in e) {
2665
2766
  const a = e[o], d = t[o];
2666
- Ie(d) && Ie(a) ? r[o] = Ke(d, a) : r[o] = a;
2767
+ Me(d) && Me(a) ? r[o] = Ne(d, a) : r[o] = a;
2667
2768
  }
2668
2769
  return r;
2669
- }, pa = (t) => {
2770
+ }, _a = (t) => {
2670
2771
  if (!t)
2671
2772
  return null;
2672
- if (Ie(t) && "preset" in t) {
2773
+ if (Me(t) && "preset" in t) {
2673
2774
  const e = t;
2674
2775
  return {
2675
2776
  preset: e.preset ?? {},
@@ -2680,42 +2781,42 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2680
2781
  };
2681
2782
  }
2682
2783
  return { preset: t };
2683
- }, ba = (t) => {
2684
- const e = [], r = [], o = [], a = [], d = (l) => o.push(l), s = (l) => a.push(l), c = (l, u) => {
2784
+ }, ka = (t) => {
2785
+ const e = [], r = [], o = [], a = [], d = (l) => o.push(l), i = (l) => a.push(l), c = (l, u) => {
2685
2786
  if (!(!l || typeof l != "object"))
2686
- for (const n in l) {
2687
- const i = l[n], f = u.concat([n]);
2688
- if (Ie(i)) {
2689
- c(i, f);
2787
+ for (const s in l) {
2788
+ const n = l[s], f = u.concat([s]);
2789
+ if (Me(n)) {
2790
+ c(n, f);
2690
2791
  continue;
2691
2792
  }
2692
- if (i && typeof i == "object") {
2693
- s(`Theme value "${Ee(f)}" is not a plain object or string and will be ignored.`);
2793
+ if (n && typeof n == "object") {
2794
+ i(`Theme value "${We(f)}" is not a plain object or string and will be ignored.`);
2694
2795
  continue;
2695
2796
  }
2696
- if (typeof i != "string") {
2697
- s(`Theme value "${Ee(f)}" is not a string and will be ignored.`);
2797
+ if (typeof n != "string") {
2798
+ i(`Theme value "${We(f)}" is not a string and will be ignored.`);
2698
2799
  continue;
2699
2800
  }
2700
- const v = f.includes("colorScheme") && f.includes("dark") ? r : e, _ = sa(f);
2701
- if (v.push(`--vf-${_}: ${i}`), f.includes("colors")) {
2702
- const m = Ae(i);
2703
- if (!m) {
2801
+ const v = f.includes("colorScheme") && f.includes("dark") ? r : e, _ = fa(f);
2802
+ if (v.push(`--vf-${_}: ${n}`), f.includes("colors")) {
2803
+ const h = Ke(n);
2804
+ if (!h) {
2704
2805
  d(
2705
- `Theme color "${Ee(f)}" is not hex. Shade variables will not be generated for it.`
2806
+ `Theme color "${We(f)}" is not hex. Shade variables will not be generated for it.`
2706
2807
  );
2707
2808
  continue;
2708
2809
  }
2709
- if (v.push(`--vf-${_}-rgb: ${Ge(m)}`), n !== "white")
2810
+ if (v.push(`--vf-${_}-rgb: ${je(h)}`), s !== "white")
2710
2811
  for (let C = 1; C < 10; ++C) {
2711
- const M = fa(m, C);
2712
- v.push(`--vf-${_}-${C}00: ${M}`), v.push(`--vf-${_}-${C}00-rgb: ${Ge(M)}`);
2812
+ const M = ya(h, C);
2813
+ v.push(`--vf-${_}-${C}00: ${M}`), v.push(`--vf-${_}-${C}00-rgb: ${je(M)}`);
2713
2814
  }
2714
2815
  }
2715
2816
  }
2716
2817
  };
2717
2818
  return c(t, []), { baseVars: e, darkVars: r, warnings: o, errors: a };
2718
- }, ga = (t) => {
2819
+ }, Ca = (t) => {
2719
2820
  if (typeof document > "u")
2720
2821
  return null;
2721
2822
  const e = document.getElementById(t);
@@ -2723,48 +2824,48 @@ const Pt = (t, e) => t.strategy ? t.strategy : Rt(e) ? "fixed" : "absolute", me
2723
2824
  return e;
2724
2825
  const r = document.createElement("style");
2725
2826
  return r.id = t, document.head.appendChild(r), r;
2726
- }, ma = (t) => ({
2827
+ }, wa = (t) => ({
2727
2828
  selector: t.selector ?? ":root",
2728
2829
  darkSelector: t.darkSelector ?? ":root[data-theme=dark]"
2729
- }), ha = (t, e, r, o) => {
2730
- const { baseVars: a, darkVars: d, warnings: s, errors: c } = ba(t), l = ga("vueforge-theme");
2830
+ }), $a = (t, e, r, o) => {
2831
+ const { baseVars: a, darkVars: d, warnings: i, errors: c } = ka(t), l = Ca("vueforge-theme");
2731
2832
  if (!l)
2732
2833
  return;
2733
2834
  if (c.length) {
2734
2835
  if (o)
2735
2836
  throw new Error(`[VueForge] ${c.join(" ")}`);
2736
- for (const n of c)
2737
- console.warn(`[VueForge] ${n}`);
2837
+ for (const s of c)
2838
+ console.warn(`[VueForge] ${s}`);
2738
2839
  }
2739
- if (s.length)
2740
- for (const n of s)
2741
- console.warn(`[VueForge] ${n}`);
2840
+ if (i.length)
2841
+ for (const s of i)
2842
+ console.warn(`[VueForge] ${s}`);
2742
2843
  const u = [];
2743
2844
  a.length && u.push(`${e} { ${a.join(";")} }`), d.length && u.push(`${r} { ${d.join(";")} }`), l.textContent = u.join(`
2744
2845
  `);
2745
2846
  };
2746
2847
  let ge = null;
2747
- const rt = (t) => {
2748
- const e = pa(t);
2848
+ const lt = (t) => {
2849
+ const e = _a(t);
2749
2850
  if (!e)
2750
2851
  return;
2751
- const r = Ke(e.preset, e.overrides), { selector: o, darkSelector: a } = ma(e);
2752
- ge = { ...e }, ha(r, o, a, e.strict);
2753
- }, pr = (t) => {
2852
+ const r = Ne(e.preset, e.overrides), { selector: o, darkSelector: a } = wa(e);
2853
+ ge = { ...e }, $a(r, o, a, e.strict);
2854
+ }, wr = (t) => {
2754
2855
  if (!ge)
2755
2856
  return;
2756
- const e = t.overrides === void 0 ? ge.overrides : Ke(ge.overrides ?? {}, t.overrides ?? {}), r = {
2857
+ const e = t.overrides === void 0 ? ge.overrides : Ne(ge.overrides ?? {}, t.overrides ?? {}), r = {
2757
2858
  preset: t.preset ?? ge.preset,
2758
2859
  overrides: e,
2759
2860
  selector: t.selector ?? ge.selector,
2760
2861
  darkSelector: t.darkSelector ?? ge.darkSelector
2761
2862
  };
2762
- rt(r);
2763
- }, br = () => ge ? { ...ge } : null, gr = {
2863
+ lt(r);
2864
+ }, $r = () => ge ? { ...ge } : null, xr = {
2764
2865
  install(t, e = {}) {
2765
- e.theme && rt(e.theme);
2866
+ e.theme && lt(e.theme);
2766
2867
  }
2767
- }, je = {
2868
+ }, Xe = {
2768
2869
  colors: {
2769
2870
  white: "#ffffff",
2770
2871
  green: "#0cbc87",
@@ -2827,7 +2928,7 @@ const rt = (t) => {
2827
2928
  dividerColor: "#2e2e32"
2828
2929
  }
2829
2930
  }
2830
- }, ya = {
2931
+ }, xa = {
2831
2932
  fontSize: "var(--vf-typography-font-size)",
2832
2933
  padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
2833
2934
  borderRadius: "var(--vf-radii-md)",
@@ -2969,11 +3070,11 @@ const rt = (t) => {
2969
3070
  }
2970
3071
  }
2971
3072
  }
2972
- }, _a = {
3073
+ }, Ba = {
2973
3074
  padding: "12px",
2974
3075
  borderColor: "var(--vf-border-color)",
2975
3076
  borderRadius: "var(--vf-radii-md)"
2976
- }, ka = {
3077
+ }, za = {
2977
3078
  gap: "0.5rem",
2978
3079
  fontSize: "var(--vf-typography-font-size)",
2979
3080
  padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
@@ -2994,7 +3095,7 @@ const rt = (t) => {
2994
3095
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
2995
3096
  fontSize: "var(--vf-sizes-lg-font-size)"
2996
3097
  }
2997
- }, Ca = {
3098
+ }, Fa = {
2998
3099
  gap: "0.375rem",
2999
3100
  textColor: "var(--vf-text-color)",
3000
3101
  labelFontSize: "0.875rem",
@@ -3014,7 +3115,7 @@ const rt = (t) => {
3014
3115
  labelFontSize: "0.9375rem",
3015
3116
  hintFontSize: "0.875rem"
3016
3117
  }
3017
- }, wa = {
3118
+ }, Sa = {
3018
3119
  gap: "0.5rem",
3019
3120
  fontSize: "var(--vf-typography-font-size)",
3020
3121
  padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
@@ -3037,10 +3138,10 @@ const rt = (t) => {
3037
3138
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
3038
3139
  fontSize: "var(--vf-sizes-lg-font-size)"
3039
3140
  }
3040
- }, $a = {
3141
+ }, Va = {
3041
3142
  hoverColor: "var(--vf-blue)",
3042
3143
  activeColor: "var(--vf-blue)"
3043
- }, xa = {
3144
+ }, La = {
3044
3145
  iconGap: "6px",
3045
3146
  submenuOffset: "12px",
3046
3147
  separatorThickness: "1px",
@@ -3060,7 +3161,7 @@ const rt = (t) => {
3060
3161
  marginBottom: "0.5rem",
3061
3162
  marginLeft: "0.5rem"
3062
3163
  }
3063
- }, Ba = {
3164
+ }, Ta = {
3064
3165
  width: "90vw",
3065
3166
  maxWidth: "520px",
3066
3167
  maxHeight: "80vh",
@@ -3087,9 +3188,9 @@ const rt = (t) => {
3087
3188
  closeColor: "var(--vf-text-color)",
3088
3189
  closeFontSize: "1.25rem",
3089
3190
  closeHoverBackgroundColor: "rgba(0, 0, 0, 0.06)"
3090
- }, za = {
3191
+ }, Ra = {
3091
3192
  backgroundColor: "var(--vf-bg-color)"
3092
- }, Fa = {
3193
+ }, Pa = {
3093
3194
  minWidth: "12rem",
3094
3195
  fontSize: "var(--vf-typography-font-size)",
3095
3196
  controlGap: "0.75rem",
@@ -3122,7 +3223,7 @@ const rt = (t) => {
3122
3223
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
3123
3224
  fontSize: "var(--vf-sizes-lg-font-size)"
3124
3225
  }
3125
- }, Sa = {
3226
+ }, Ia = {
3126
3227
  minWidth: "12rem",
3127
3228
  fontSize: "var(--vf-typography-font-size)",
3128
3229
  controlGap: "0.5rem",
@@ -3161,7 +3262,7 @@ const rt = (t) => {
3161
3262
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
3162
3263
  fontSize: "var(--vf-sizes-lg-font-size)"
3163
3264
  }
3164
- }, Va = {
3265
+ }, Ma = {
3165
3266
  minWidth: "12rem",
3166
3267
  fontSize: "var(--vf-typography-font-size)",
3167
3268
  controlGap: "0.5rem",
@@ -3206,7 +3307,7 @@ const rt = (t) => {
3206
3307
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
3207
3308
  fontSize: "var(--vf-sizes-lg-font-size)"
3208
3309
  }
3209
- }, La = {
3310
+ }, Da = {
3210
3311
  minWidth: "12rem",
3211
3312
  fontSize: "var(--vf-typography-font-size)",
3212
3313
  controlGap: "0.75rem",
@@ -3256,7 +3357,7 @@ const rt = (t) => {
3256
3357
  fontSize: "var(--vf-sizes-lg-font-size)",
3257
3358
  daySize: "2.2rem"
3258
3359
  }
3259
- }, Ta = {
3360
+ }, Oa = {
3260
3361
  gap: "0.4rem",
3261
3362
  itemMinWidth: "2rem",
3262
3363
  fontSize: "var(--vf-typography-font-size)",
@@ -3281,7 +3382,7 @@ const rt = (t) => {
3281
3382
  fontSize: "var(--vf-sizes-lg-font-size)",
3282
3383
  padding: "0.45rem 0.8rem"
3283
3384
  }
3284
- }, Ra = {
3385
+ }, Ea = {
3285
3386
  size: "1rem",
3286
3387
  gap: "0.5rem",
3287
3388
  borderRadius: "var(--vf-radii-sm)",
@@ -3293,7 +3394,7 @@ const rt = (t) => {
3293
3394
  checkColor: "#ffffff",
3294
3395
  textColor: "var(--vf-text-color)",
3295
3396
  disabledOpacity: "var(--vf-states-disabled-opacity)"
3296
- }, Pa = {
3397
+ }, Wa = {
3297
3398
  size: "1rem",
3298
3399
  dotSize: "0.45rem",
3299
3400
  gap: "0.5rem",
@@ -3307,7 +3408,7 @@ const rt = (t) => {
3307
3408
  dotColor: "#ffffff",
3308
3409
  textColor: "var(--vf-text-color)",
3309
3410
  disabledOpacity: "var(--vf-states-disabled-opacity)"
3310
- }, Ma = {
3411
+ }, Aa = {
3311
3412
  width: "2.25rem",
3312
3413
  height: "1.25rem",
3313
3414
  thumbSize: "1rem",
@@ -3319,7 +3420,7 @@ const rt = (t) => {
3319
3420
  thumbColor: "#ffffff",
3320
3421
  textColor: "var(--vf-text-color)",
3321
3422
  disabledOpacity: "var(--vf-states-disabled-opacity)"
3322
- }, Ia = {
3423
+ }, Ha = {
3323
3424
  gap: "0.75rem",
3324
3425
  listGap: "0.5rem",
3325
3426
  listBorderWidth: "1px",
@@ -3340,7 +3441,38 @@ const rt = (t) => {
3340
3441
  panelBackgroundColor: "transparent",
3341
3442
  panelTextColor: "var(--vf-text-color)",
3342
3443
  disabledOpacity: "var(--vf-states-disabled-opacity)"
3343
- }, Da = {
3444
+ }, Ka = {
3445
+ gap: "0.75rem",
3446
+ borderRadius: "var(--vf-radii-md)",
3447
+ borderColor: "var(--vf-border-color)",
3448
+ backgroundColor: "var(--vf-bg-color)",
3449
+ headerGap: "0.75rem",
3450
+ headerPadding: "0.75rem 0.9rem",
3451
+ headerFontSize: "0.95rem",
3452
+ headerFontWeight: "600",
3453
+ headerTextColor: "var(--vf-text-color)",
3454
+ headerBackgroundColor: "var(--vf-bg-color)",
3455
+ headerHoverBackgroundColor: "var(--vf-bg-soft-color)",
3456
+ headerActiveBackgroundColor: "var(--vf-bg-soft-color)",
3457
+ contentPadding: "0.75rem 0.9rem",
3458
+ contentTextColor: "var(--vf-text-color)",
3459
+ contentBackgroundColor: "var(--vf-bg-color)",
3460
+ iconSize: "1rem",
3461
+ iconColor: "var(--vf-secondary-text-color)",
3462
+ dividerColor: "var(--vf-divider-color)",
3463
+ focusRingShadow: "var(--vf-states-focus-ring-shadow)",
3464
+ disabledOpacity: "var(--vf-states-disabled-opacity)",
3465
+ small: {
3466
+ headerPadding: "0.5rem 0.75rem",
3467
+ headerFontSize: "0.875rem",
3468
+ contentPadding: "0.5rem 0.75rem"
3469
+ },
3470
+ large: {
3471
+ headerPadding: "0.9rem 1.1rem",
3472
+ headerFontSize: "1rem",
3473
+ contentPadding: "0.9rem 1.1rem"
3474
+ }
3475
+ }, Na = {
3344
3476
  padding: "0.35rem 0.6rem",
3345
3477
  borderRadius: "8px",
3346
3478
  backgroundColor: "rgba(0, 0, 0, 0.8)",
@@ -3351,7 +3483,7 @@ const rt = (t) => {
3351
3483
  zIndex: "120",
3352
3484
  maxWidth: "240px",
3353
3485
  arrowSize: "8px"
3354
- }, Oa = {
3486
+ }, Ya = {
3355
3487
  width: "100%",
3356
3488
  height: "1rem",
3357
3489
  lineHeight: "0.9rem",
@@ -3359,7 +3491,7 @@ const rt = (t) => {
3359
3491
  backgroundColor: "var(--vf-gutter-color)",
3360
3492
  shimmerColor: "var(--vf-bg-color)",
3361
3493
  animationDuration: "2s"
3362
- }, Ea = {
3494
+ }, Ga = {
3363
3495
  gap: "0.75rem",
3364
3496
  padding: "0.75rem 0.9rem",
3365
3497
  borderRadius: "var(--vf-radii-md)",
@@ -3398,7 +3530,7 @@ const rt = (t) => {
3398
3530
  borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
3399
3531
  textColor: "var(--vf-text-color)"
3400
3532
  }
3401
- }, Wa = {
3533
+ }, ja = {
3402
3534
  gap: "0.75rem",
3403
3535
  padding: "0.75rem 0.9rem",
3404
3536
  borderRadius: "var(--vf-radii-md)",
@@ -3436,64 +3568,67 @@ const rt = (t) => {
3436
3568
  borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
3437
3569
  textColor: "var(--vf-text-color)"
3438
3570
  }
3439
- }, mr = {
3440
- ...je,
3571
+ }, Br = {
3572
+ ...Xe,
3441
3573
  components: {
3442
- base: je,
3443
- button: ya,
3444
- card: _a,
3445
- input: ka,
3446
- formField: Ca,
3447
- textarea: wa,
3448
- link: $a,
3449
- menu: xa,
3450
- modal: Ba,
3451
- popover: za,
3452
- select: Fa,
3453
- autocomplete: Sa,
3454
- multiselect: Va,
3455
- datepicker: La,
3456
- pagination: Ta,
3457
- checkbox: Ra,
3458
- radio: Pa,
3459
- switch: Ma,
3460
- tabs: Ia,
3461
- tooltip: Da,
3462
- skeleton: Oa,
3463
- toast: Ea,
3464
- alert: Wa
3574
+ base: Xe,
3575
+ button: xa,
3576
+ card: Ba,
3577
+ input: za,
3578
+ formField: Fa,
3579
+ textarea: Sa,
3580
+ link: Va,
3581
+ menu: La,
3582
+ modal: Ta,
3583
+ popover: Ra,
3584
+ select: Pa,
3585
+ autocomplete: Ia,
3586
+ multiselect: Ma,
3587
+ datepicker: Da,
3588
+ pagination: Oa,
3589
+ checkbox: Ea,
3590
+ radio: Wa,
3591
+ switch: Aa,
3592
+ tabs: Ha,
3593
+ accordion: Ka,
3594
+ tooltip: Na,
3595
+ skeleton: Ya,
3596
+ toast: Ga,
3597
+ alert: ja
3465
3598
  }
3466
3599
  };
3467
3600
  export {
3468
- ir as Alert,
3469
- Ua as Autocomplete,
3470
- Ya as Button,
3471
- yt as Card,
3472
- er as Checkbox,
3473
- Ja as DatePicker,
3474
- mr as DefaultTheme,
3475
- ja as FormField,
3476
- Ga as Input,
3601
+ fr as Accordion,
3602
+ pr as AccordionItem,
3603
+ mr as Alert,
3604
+ ar as Autocomplete,
3605
+ Ja as Button,
3606
+ _t as Card,
3607
+ sr as Checkbox,
3608
+ lr as DatePicker,
3609
+ Br as DefaultTheme,
3610
+ er as FormField,
3611
+ Qa as Input,
3477
3612
  Je as Link,
3478
- Na as Menu,
3479
- ur as Modal,
3480
- Za as MultiSelect,
3481
- Qa as Pagination,
3482
- cr as Popover,
3483
- or as RadioButton,
3484
- tr as RadioGroup,
3485
- qa as Select,
3486
- fr as Skeleton,
3487
- dr as Switch,
3488
- rr as Tab,
3489
- lr as TabPanel,
3490
- ar as Tabs,
3491
- Xa as Textarea,
3492
- nr as Toast,
3493
- sr as ToastContainer,
3494
- vr as Tooltip,
3495
- gr as VueForge,
3496
- br as getTheme,
3497
- rt as setTheme,
3498
- pr as updateTheme
3613
+ Za as Menu,
3614
+ _r as Modal,
3615
+ rr as MultiSelect,
3616
+ nr as Pagination,
3617
+ yr as Popover,
3618
+ dr as RadioButton,
3619
+ ir as RadioGroup,
3620
+ or as Select,
3621
+ Cr as Skeleton,
3622
+ hr as Switch,
3623
+ ur as Tab,
3624
+ vr as TabPanel,
3625
+ cr as Tabs,
3626
+ tr as Textarea,
3627
+ br as Toast,
3628
+ gr as ToastContainer,
3629
+ kr as Tooltip,
3630
+ xr as VueForge,
3631
+ $r as getTheme,
3632
+ lt as setTheme,
3633
+ wr as updateTheme
3499
3634
  };