@codemonster-ru/vueforge 0.22.0 → 0.24.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 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";
1
+ import { defineComponent as G, ref as O, computed as y, watch as ee, resolveComponent as Ze, openBlock as m, createElementBlock as _, normalizeClass as T, renderSlot as F, Fragment as ae, createTextVNode as X, toDisplayString as R, createBlock as ne, withCtx as _e, createCommentVNode as P, createElementVNode as B, renderList as ve, withKeys as Z, withModifiers as U, unref as xe, createVNode as Je, useSlots as He, nextTick as Ce, onMounted as Se, onBeforeUnmount as $e, Teleport as we, withDirectives as fe, vShow as pe, provide as Ke, inject as Oe, reactive as st, createSlots as it, normalizeStyle as Fe } from "vue";
2
2
  import { useRoute as dt, useRouter as ct } from "vue-router";
3
- import { CmIcon as Be } from "@codemonster-ru/vueiconify";
4
- const ut = ["href", "aria-disabled", "tabindex"], Je = /* @__PURE__ */ Y({
3
+ import { CmIcon as ze } from "@codemonster-ru/vueiconify";
4
+ const ut = ["href", "aria-disabled", "tabindex"], Qe = /* @__PURE__ */ G({
5
5
  __name: "link",
6
6
  props: {
7
7
  to: { default: void 0 },
@@ -15,48 +15,48 @@ const ut = ["href", "aria-disabled", "tabindex"], Je = /* @__PURE__ */ Y({
15
15
  },
16
16
  emits: ["click", "active", "update:active", "onActive"],
17
17
  setup(t, { emit: e }) {
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(() => {
18
+ const r = e, o = t, a = dt(), d = ct(), i = O(null), c = y(() => o.href ?? o.url), l = y(() => 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 = y(() => o.to), s = y(() => o.to ? d.resolve(o.to) : null), n = y(() => {
19
19
  if (l.value !== "router-link")
20
20
  return !1;
21
21
  const v = s.value;
22
- return v ? v.name ? a.matched.some(({ name: _ }) => _ === v.name) : v.fullPath ? a.fullPath === v.fullPath : a.path === v.path : !1;
23
- }), f = m(() => o.active === void 0 ? n.value : o.active), p = (v) => {
22
+ return v ? v.name ? a.matched.some(({ name: $ }) => $ === v.name) : v.fullPath ? a.fullPath === v.fullPath : a.path === v.path : !1;
23
+ }), f = y(() => 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(n, (v) => {
30
+ return ee(n, (v) => {
31
31
  v && (r("active"), r("onActive")), r("update:active", v);
32
- }), (v, _) => {
33
- const h = qe("router-link");
34
- return l.value === "a" ? (g(), y("a", {
32
+ }), (v, $) => {
33
+ const k = Ze("router-link");
34
+ return l.value === "a" ? (m(), _("a", {
35
35
  key: 0,
36
36
  href: c.value,
37
- class: R(["vf-link", { "vf-link_active": f.value, "vf-link_disabled": v.disabled }]),
37
+ class: T(["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 ? S(v.$slots, "default", { key: 0 }) : (g(), y(se, { key: 1 }, [
43
- Q(O(v.label), 1)
42
+ v.$slots.default ? F(v.$slots, "default", { key: 0 }) : (m(), _(ae, { key: 1 }, [
43
+ X(R(v.label), 1)
44
44
  ], 64))
45
- ], 10, ut)) : (g(), le(h, {
45
+ ], 10, ut)) : (m(), ne(k, {
46
46
  key: 1,
47
47
  ref_key: "link",
48
48
  ref: i,
49
49
  to: u.value,
50
- class: R(["vf-link", { "vf-link_active": f.value }]),
50
+ class: T(["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",
54
54
  "exact-active-class": "vf-link_active",
55
55
  onClick: p
56
56
  }, {
57
- default: ye(() => [
58
- v.$slots.default ? S(v.$slots, "default", { key: 0 }) : (g(), y(se, { key: 1 }, [
59
- Q(O(v.label), 1)
57
+ default: _e(() => [
58
+ v.$slots.default ? F(v.$slots, "default", { key: 0 }) : (m(), _(ae, { key: 1 }, [
59
+ X(R(v.label), 1)
60
60
  ], 64))
61
61
  ]),
62
62
  _: 3
@@ -82,19 +82,19 @@ const ut = ["href", "aria-disabled", "tabindex"], Je = /* @__PURE__ */ Y({
82
82
  class: "vf-card__footer"
83
83
  };
84
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
- ])) : T("", !0),
89
- t.$slots.header ? (g(), y("div", gt, [
90
- S(t.$slots, "header")
91
- ])) : T("", !0),
92
- t.$slots.body ? (g(), y("div", mt, [
93
- S(t.$slots, "body")
94
- ])) : T("", !0),
95
- t.$slots.footer ? (g(), y("div", ht, [
96
- S(t.$slots, "footer")
97
- ])) : T("", !0)
85
+ return m(), _("div", pt, [
86
+ t.$slots.default ? (m(), _("div", bt, [
87
+ F(t.$slots, "default")
88
+ ])) : P("", !0),
89
+ t.$slots.header ? (m(), _("div", gt, [
90
+ F(t.$slots, "header")
91
+ ])) : P("", !0),
92
+ t.$slots.body ? (m(), _("div", mt, [
93
+ F(t.$slots, "body")
94
+ ])) : P("", !0),
95
+ t.$slots.footer ? (m(), _("div", ht, [
96
+ F(t.$slots, "footer")
97
+ ])) : P("", !0)
98
98
  ]);
99
99
  }
100
100
  const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
@@ -104,7 +104,7 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
104
104
  key: 1,
105
105
  class: "vf-menu__separator",
106
106
  role: "separator"
107
- }, wt = ["aria-expanded", "onClick", "onKeydown"], Za = /* @__PURE__ */ Y({
107
+ }, $t = ["aria-expanded", "onClick", "onKeydown"], mr = /* @__PURE__ */ G({
108
108
  name: "VfMenu",
109
109
  __name: "menu",
110
110
  props: {
@@ -113,7 +113,7 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
113
113
  },
114
114
  emits: ["active", "onActive"],
115
115
  setup(t, { emit: e }) {
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) => ({
116
+ const r = e, o = t, a = O([]), 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
117
  ...n,
118
118
  items: n.items ? c(n.items) : void 0
119
119
  })), l = (s) => {
@@ -128,53 +128,53 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
128
128
  }
129
129
  r("active", s), r("onActive", s);
130
130
  };
131
- return te(
131
+ return ee(
132
132
  () => o.items,
133
133
  (s) => {
134
134
  a.value = c(s);
135
135
  },
136
136
  { deep: !0, immediate: !0 }
137
137
  ), (s, n) => {
138
- const f = qe("VfMenu");
139
- return g(), y("div", {
140
- class: R(["vf-menu", `vf-menu_${s.orientation}`])
138
+ const f = Ze("VfMenu");
139
+ return m(), _("div", {
140
+ class: T(["vf-menu", `vf-menu_${s.orientation}`])
141
141
  }, [
142
142
  B("ul", kt, [
143
- (g(!0), y(se, null, ke(a.value, (p, v) => (g(), y("li", {
143
+ (m(!0), _(ae, null, ve(a.value, (p, v) => (m(), _("li", {
144
144
  key: d(p, v),
145
145
  class: "vf-menu__item",
146
146
  role: "none"
147
147
  }, [
148
- s.$slots[d(p, v)] ? S(s.$slots, d(p, v), {
148
+ s.$slots[d(p, v)] ? F(s.$slots, d(p, v), {
149
149
  key: 0,
150
150
  item: { ...p, class: "vf-menu__link" }
151
- }) : p.separator ? (g(), y("hr", Ct)) : p.items && p.items.length ? (g(), y(se, { key: 2 }, [
151
+ }) : p.separator ? (m(), _("hr", Ct)) : p.items && p.items.length ? (m(), _(ae, { key: 2 }, [
152
152
  B("div", {
153
- class: R(["vf-menu__parent", { "vf-menu__parent_active": p.active }]),
153
+ class: T(["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
- onClick: (_) => l(p),
157
+ onClick: ($) => l(p),
158
158
  onKeydown: [
159
- U(G((_) => l(p), ["prevent"]), ["enter"]),
160
- U(G((_) => l(p), ["prevent"]), ["space"])
159
+ Z(U(($) => l(p), ["prevent"]), ["enter"]),
160
+ Z(U(($) => l(p), ["prevent"]), ["space"])
161
161
  ]
162
162
  }, [
163
- p.icon ? (g(), le(xe(Be), {
163
+ p.icon ? (m(), ne(xe(ze), {
164
164
  key: 0,
165
165
  icon: p.icon,
166
166
  class: "vf-menu__icon"
167
- }, null, 8, ["icon"])) : T("", !0),
168
- Q(" " + O(p.label) + " ", 1),
169
- Ue(xe(Be), { icon: "chevronDown" })
170
- ], 42, wt),
171
- p.items ? (g(), le(f, {
167
+ }, null, 8, ["icon"])) : P("", !0),
168
+ X(" " + R(p.label) + " ", 1),
169
+ Je(xe(ze), { icon: "chevronDown" })
170
+ ], 42, $t),
171
+ p.items ? (m(), ne(f, {
172
172
  key: 0,
173
173
  items: p.items,
174
- class: R(["vf-menu__submenu", { "vf-menu__submenu_visible": p.subMenuVisible }]),
174
+ class: T(["vf-menu__submenu", { "vf-menu__submenu_visible": p.subMenuVisible }]),
175
175
  onOnActive: u
176
- }, null, 8, ["items", "class"])) : T("", !0)
177
- ], 64)) : (g(), le(Je, {
176
+ }, null, 8, ["items", "class"])) : P("", !0)
177
+ ], 64)) : (m(), ne(Qe, {
178
178
  key: 3,
179
179
  to: p.to,
180
180
  href: p.href ?? p.url,
@@ -184,16 +184,16 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
184
184
  disabled: p.disabled,
185
185
  role: "menuitem",
186
186
  "aria-disabled": p.disabled ? "true" : "false",
187
- onClick: (_) => l(p),
188
- onActive: (_) => u(p)
187
+ onClick: ($) => l(p),
188
+ onActive: ($) => u(p)
189
189
  }, {
190
- default: ye(() => [
191
- p.icon ? (g(), le(xe(Be), {
190
+ default: _e(() => [
191
+ p.icon ? (m(), ne(xe(ze), {
192
192
  key: 0,
193
193
  icon: p.icon,
194
194
  class: "vf-menu__icon"
195
- }, null, 8, ["icon"])) : T("", !0),
196
- Q(" " + O(p.label), 1)
195
+ }, null, 8, ["icon"])) : P("", !0),
196
+ X(" " + R(p.label), 1)
197
197
  ]),
198
198
  _: 2
199
199
  }, 1032, ["to", "href", "as", "active", "disabled", "aria-disabled", "onClick", "onActive"]))
@@ -202,7 +202,7 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
202
202
  ], 2);
203
203
  };
204
204
  }
205
- }), $t = ["type", "disabled"], Ja = /* @__PURE__ */ Y({
205
+ }), wt = ["type", "disabled"], hr = /* @__PURE__ */ G({
206
206
  __name: "button",
207
207
  props: {
208
208
  to: { default: void 0 },
@@ -221,59 +221,59 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
221
221
  disabled: { type: Boolean, default: !1 }
222
222
  },
223
223
  setup(t) {
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(() => {
224
+ const e = t, r = ["button", "submit", "reset"], o = (s) => !!s && r.includes(s), a = y(() => e.as ? e.as === "button" : !(e.to || e.href || e.url || e.type && !o(e.type))), d = y(() => o(e.type) ? e.type : "button"), i = y(() => 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 = y(() => {
225
225
  let s = ["vf-button", `vf-button_${e.severity}`];
226
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", {
227
+ }), l = y(() => ["vf-button__icon", `vf-button__icon_${e.iconPos}`]), u = y(() => ["vf-button__label"]);
228
+ return (s, n) => a.value ? (m(), _("button", {
229
229
  key: 0,
230
230
  type: d.value,
231
- class: R(c.value),
231
+ class: T(c.value),
232
232
  disabled: e.loading || e.disabled
233
233
  }, [
234
- e.icon && !e.loading ? (g(), le(xe(Be), {
234
+ e.icon && !e.loading ? (m(), ne(xe(ze), {
235
235
  key: 0,
236
236
  icon: e.icon,
237
- class: R(l.value)
238
- }, null, 8, ["icon", "class"])) : T("", !0),
239
- e.loading ? (g(), le(xe(Be), {
237
+ class: T(l.value)
238
+ }, null, 8, ["icon", "class"])) : P("", !0),
239
+ e.loading ? (m(), ne(xe(ze), {
240
240
  key: 1,
241
241
  icon: "circleNotch",
242
- class: R(l.value),
242
+ class: T(l.value),
243
243
  spin: ""
244
- }, null, 8, ["class"])) : T("", !0),
245
- s.$slots.default ? (g(), y("span", {
244
+ }, null, 8, ["class"])) : P("", !0),
245
+ s.$slots.default ? (m(), _("span", {
246
246
  key: 2,
247
- class: R(u.value)
247
+ class: T(u.value)
248
248
  }, [
249
- S(s.$slots, "default")
250
- ], 2)) : s.label ? (g(), y("span", {
249
+ F(s.$slots, "default")
250
+ ], 2)) : s.label ? (m(), _("span", {
251
251
  key: 3,
252
- class: R(u.value)
253
- }, O(s.label), 3)) : T("", !0)
254
- ], 10, $t)) : (g(), le(Je, {
252
+ class: T(u.value)
253
+ }, R(s.label), 3)) : P("", !0)
254
+ ], 10, wt)) : (m(), ne(Qe, {
255
255
  key: 1,
256
256
  to: e.to,
257
257
  href: e.href ?? e.url,
258
258
  as: i.value,
259
- class: R(c.value),
259
+ class: T(c.value),
260
260
  disabled: e.loading || e.disabled
261
261
  }, {
262
- default: ye(() => [
263
- e.icon ? (g(), le(xe(Be), {
262
+ default: _e(() => [
263
+ e.icon ? (m(), ne(xe(ze), {
264
264
  key: 0,
265
265
  icon: e.icon,
266
- class: R(l.value)
267
- }, null, 8, ["icon", "class"])) : T("", !0),
268
- s.$slots.default ? (g(), y("span", {
266
+ class: T(l.value)
267
+ }, null, 8, ["icon", "class"])) : P("", !0),
268
+ s.$slots.default ? (m(), _("span", {
269
269
  key: 1,
270
- class: R(u.value)
270
+ class: T(u.value)
271
271
  }, [
272
- S(s.$slots, "default")
273
- ], 2)) : s.label ? (g(), y("span", {
272
+ F(s.$slots, "default")
273
+ ], 2)) : s.label ? (m(), _("span", {
274
274
  key: 2,
275
- class: R(u.value)
276
- }, O(s.label), 3)) : T("", !0)
275
+ class: T(u.value)
276
+ }, R(s.label), 3)) : P("", !0)
277
277
  ]),
278
278
  _: 3
279
279
  }, 8, ["to", "href", "as", "class", "disabled"]));
@@ -281,10 +281,10 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
281
281
  }), xt = {
282
282
  key: 0,
283
283
  class: "vf-input__prefix"
284
- }, Bt = ["type", "value", "placeholder", "disabled", "readonly"], zt = {
284
+ }, zt = ["type", "value", "placeholder", "disabled", "readonly"], Bt = {
285
285
  key: 1,
286
286
  class: "vf-input__suffix"
287
- }, Qa = /* @__PURE__ */ Y({
287
+ }, yr = /* @__PURE__ */ G({
288
288
  __name: "input",
289
289
  props: {
290
290
  modelValue: { default: "" },
@@ -297,19 +297,19 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
297
297
  },
298
298
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
299
299
  setup(t, { emit: e }) {
300
- const r = e, o = t, a = m(() => {
300
+ const r = e, o = t, a = y(() => {
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
304
  const s = u.target;
305
305
  r("update:modelValue", s.value), r("input", u);
306
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)
307
+ return (u, s) => (m(), _("div", {
308
+ class: T(a.value)
309
309
  }, [
310
- u.$slots.prefix ? (g(), y("span", xt, [
311
- S(u.$slots, "prefix")
312
- ])) : T("", !0),
310
+ u.$slots.prefix ? (m(), _("span", xt, [
311
+ F(u.$slots, "prefix")
312
+ ])) : P("", !0),
313
313
  B("input", {
314
314
  class: "vf-input__control",
315
315
  type: u.type,
@@ -321,17 +321,17 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
321
321
  onChange: i,
322
322
  onFocus: c,
323
323
  onBlur: l
324
- }, null, 40, Bt),
325
- u.$slots.suffix ? (g(), y("span", zt, [
326
- S(u.$slots, "suffix")
327
- ])) : T("", !0)
324
+ }, null, 40, zt),
325
+ u.$slots.suffix ? (m(), _("span", Bt, [
326
+ F(u.$slots, "suffix")
327
+ ])) : P("", !0)
328
328
  ], 2));
329
329
  }
330
330
  }), Ft = ["for"], St = {
331
331
  key: 0,
332
332
  class: "vf-form-field__required",
333
333
  "aria-hidden": "true"
334
- }, Vt = { class: "vf-form-field__control" }, Lt = ["id"], Tt = ["id"], er = /* @__PURE__ */ Y({
334
+ }, Vt = { class: "vf-form-field__control" }, Lt = ["id"], Tt = ["id"], _r = /* @__PURE__ */ G({
335
335
  __name: "form-field",
336
336
  props: {
337
337
  id: { default: void 0 },
@@ -343,56 +343,56 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
343
343
  size: { default: "normal" }
344
344
  },
345
345
  setup(t) {
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(() => {
346
+ const e = t, r = He(), o = `vf-form-field-${Math.random().toString(36).slice(2, 10)}`, a = y(() => e.id || o), d = y(() => `${a.value}-hint`), i = y(() => `${a.value}-error`), c = y(() => !!e.label || !!r.label), l = y(() => !!e.hint || !!r.hint), u = y(() => !!e.error || !!r.error), s = y(() => {
347
347
  const f = [];
348
348
  return l.value && f.push(d.value), u.value && f.push(i.value), f.length ? f.join(" ") : void 0;
349
- }), n = m(() => {
349
+ }), n = y(() => {
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
- return (f, p) => (g(), y("div", {
354
- class: R(n.value)
353
+ return (f, p) => (m(), _("div", {
354
+ class: T(n.value)
355
355
  }, [
356
- c.value ? (g(), y("label", {
356
+ c.value ? (m(), _("label", {
357
357
  key: 0,
358
358
  class: "vf-form-field__label",
359
359
  for: a.value
360
360
  }, [
361
- S(f.$slots, "label", {}, () => [
362
- Q(O(f.label), 1)
361
+ F(f.$slots, "label", {}, () => [
362
+ X(R(f.label), 1)
363
363
  ]),
364
- f.required ? (g(), y("span", St, "*")) : T("", !0)
365
- ], 8, Ft)) : T("", !0),
364
+ f.required ? (m(), _("span", St, "*")) : P("", !0)
365
+ ], 8, Ft)) : P("", !0),
366
366
  B("div", Vt, [
367
- S(f.$slots, "default", {
367
+ F(f.$slots, "default", {
368
368
  id: a.value,
369
369
  describedBy: s.value,
370
370
  invalid: u.value,
371
371
  required: f.required
372
372
  })
373
373
  ]),
374
- l.value ? (g(), y("p", {
374
+ l.value ? (m(), _("p", {
375
375
  key: 1,
376
376
  id: d.value,
377
377
  class: "vf-form-field__hint"
378
378
  }, [
379
- S(f.$slots, "hint", {}, () => [
380
- Q(O(f.hint), 1)
379
+ F(f.$slots, "hint", {}, () => [
380
+ X(R(f.hint), 1)
381
381
  ])
382
- ], 8, Lt)) : T("", !0),
383
- u.value ? (g(), y("p", {
382
+ ], 8, Lt)) : P("", !0),
383
+ u.value ? (m(), _("p", {
384
384
  key: 2,
385
385
  id: i.value,
386
386
  class: "vf-form-field__error",
387
387
  role: "alert"
388
388
  }, [
389
- S(f.$slots, "error", {}, () => [
390
- Q(O(f.error), 1)
389
+ F(f.$slots, "error", {}, () => [
390
+ X(R(f.error), 1)
391
391
  ])
392
- ], 8, Tt)) : T("", !0)
392
+ ], 8, Tt)) : P("", !0)
393
393
  ], 2));
394
394
  }
395
- }), Rt = ["value", "placeholder", "disabled", "readonly", "rows"], tr = /* @__PURE__ */ Y({
395
+ }), Rt = ["value", "placeholder", "disabled", "readonly", "rows"], kr = /* @__PURE__ */ G({
396
396
  __name: "textarea",
397
397
  props: {
398
398
  modelValue: { default: "" },
@@ -405,15 +405,15 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
405
405
  },
406
406
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
407
407
  setup(t, { emit: e }) {
408
- const r = e, o = t, a = m(() => {
408
+ const r = e, o = t, a = y(() => {
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
412
  const s = u.target;
413
413
  r("update:modelValue", s.value), r("input", u);
414
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)
415
+ return (u, s) => (m(), _("div", {
416
+ class: T(a.value)
417
417
  }, [
418
418
  B("textarea", {
419
419
  class: "vf-textarea__control",
@@ -429,7 +429,7 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
429
429
  }, null, 40, Rt)
430
430
  ], 2));
431
431
  }
432
- }), Ye = [
432
+ }), je = [
433
433
  "top",
434
434
  "top-start",
435
435
  "top-end",
@@ -442,7 +442,7 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
442
442
  "left",
443
443
  "left-start",
444
444
  "left-end"
445
- ], pe = (t) => {
445
+ ], be = (t) => {
446
446
  if (t == null || !(t instanceof HTMLElement))
447
447
  return null;
448
448
  if (typeof window < "u") {
@@ -450,13 +450,13 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), kt = {
450
450
  if (/(auto|scroll|overlay)/.test(r))
451
451
  return t;
452
452
  }
453
- return t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth ? t : pe(t.parentNode);
453
+ return t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth ? t : be(t.parentNode);
454
454
  };
455
455
  function Pt(t) {
456
456
  return typeof window > "u" ? !1 : window.getComputedStyle(t).position === "fixed";
457
457
  }
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
- const o = t.getBoundingClientRect(), a = e ? e.offsetParent : null, d = e ? me(r, e) : !1;
458
+ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he = (t, e) => It(t, e) === "fixed", ie = (t, e, r = {}) => {
459
+ const o = t.getBoundingClientRect(), a = e ? e.offsetParent : null, d = e ? he(r, e) : !1;
460
460
  if (a && !d) {
461
461
  const i = a.getBoundingClientRect(), c = a.scrollLeft, l = a.scrollTop;
462
462
  return {
@@ -472,52 +472,52 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
472
472
  width: o.width,
473
473
  height: o.height
474
474
  };
475
- }, _e = (t, e) => {
475
+ }, ke = (t, e) => {
476
476
  var r;
477
477
  return (r = t.middleware) == null ? void 0 : r.find((o) => o.name === e);
478
- }, Qe = (t, e) => !!_e(t, e), Mt = (t) => {
479
- const e = pe(t);
478
+ }, et = (t, e) => !!ke(t, e), Mt = (t) => {
479
+ const e = be(t);
480
480
  let r = "";
481
481
  return e !== null && ((e.dataset.scrollTop === void 0 || e.scrollTop === +e.dataset.scrollTop) && (e.dataset.scrollTop = "0"), (e.dataset.scrollLeft === void 0 || e.scrollLeft === +e.dataset.scrollLeft) && (e.dataset.scrollLeft = "0"), e.scrollTop > +e.dataset.scrollTop ? r = "bottom" : e.scrollTop < +e.dataset.scrollTop ? r = "top" : e.scrollLeft > +e.dataset.scrollLeft ? r = "right" : e.scrollLeft < +e.dataset.scrollLeft && (r = "left"), e.dataset.scrollTop = e.scrollTop <= 0 ? "0" : e.scrollTop.toString(), e.dataset.scrollLeft = e.scrollLeft <= 0 ? "0" : e.scrollLeft.toString()), r;
482
- }, Re = (t) => t.scrollLeft + t.clientWidth, Pe = (t) => t.scrollTop + t.clientHeight, de = (t, e, r = null, o = {}, a) => {
483
- if (r === null && typeof window < "u" && me(o, e))
482
+ }, Pe = (t) => t.scrollLeft + t.clientWidth, Ie = (t) => t.scrollTop + t.clientHeight, de = (t, e, r = null, o = {}, a) => {
483
+ if (r === null && typeof window < "u" && he(o, e))
484
484
  return t;
485
485
  let d = 0;
486
486
  if (r === null) {
487
- const i = pe(e);
487
+ const i = be(e);
488
488
  d = i ? i.scrollTop : 0;
489
489
  }
490
490
  return t - d;
491
491
  }, ce = (t, e, r = null, o = {}, a) => {
492
492
  let d;
493
- if (r === null && typeof window < "u" && me(o, e))
493
+ if (r === null && typeof window < "u" && he(o, e))
494
494
  d = window.innerWidth;
495
495
  else if (r === null) {
496
- const i = pe(e);
497
- d = i ? Re(i) : 0;
496
+ const i = be(e);
497
+ d = i ? Pe(i) : 0;
498
498
  } else
499
499
  d = r.getBoundingClientRect().width;
500
500
  return -(t + e.clientWidth - d);
501
- }, be = (t, e, r = null, o = {}, a) => {
501
+ }, ge = (t, e, r = null, o = {}, a) => {
502
502
  let d;
503
- if (r === null && typeof window < "u" && me(o, e))
503
+ if (r === null && typeof window < "u" && he(o, e))
504
504
  d = window.innerHeight;
505
505
  else if (r === null) {
506
- const i = pe(e);
507
- d = i ? Pe(i) : 0;
506
+ const i = be(e);
507
+ d = i ? Ie(i) : 0;
508
508
  } else
509
509
  d = r.getBoundingClientRect().height;
510
510
  return -(t + e.clientHeight - d);
511
511
  }, ue = (t, e, r = null, o = {}, a) => {
512
- if (r === null && typeof window < "u" && me(o, e))
512
+ if (r === null && typeof window < "u" && he(o, e))
513
513
  return t;
514
514
  let d = 0;
515
515
  if (r === null) {
516
- const i = pe(e);
516
+ const i = be(e);
517
517
  d = i ? i.scrollLeft : 0;
518
518
  }
519
519
  return t - d;
520
- }, Ge = ({
520
+ }, Xe = ({
521
521
  options: t,
522
522
  primaryX: e,
523
523
  primaryY: r,
@@ -526,7 +526,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
526
526
  reference: d,
527
527
  scrollDirection: i
528
528
  }) => {
529
- const c = Ie(d, o, a, t), l = _e(t, "offset");
529
+ const c = Me(d, o, a, t), l = ke(t, "offset");
530
530
  if (l) {
531
531
  const u = l.fn({
532
532
  x: c.x,
@@ -546,7 +546,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
546
546
  y: c.y,
547
547
  placement: a
548
548
  } : !1;
549
- }, Se = (t) => ({
549
+ }, Ve = (t) => ({
550
550
  name: "flip",
551
551
  params: t,
552
552
  fn: ({
@@ -567,103 +567,103 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
567
567
  placement: c
568
568
  }, f = {
569
569
  ...o,
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)
570
+ middleware: (s = o.middleware) == null ? void 0 : s.filter((L) => L.name !== "shift")
571
+ }, p = (t == null ? void 0 : t.placements) ?? je, v = !(t != null && t.placements), $ = v ? je : p;
572
+ let k = !1;
573
+ const w = (L) => {
574
+ if (k)
575
575
  return;
576
- const A = Ge({
576
+ const H = Xe({
577
577
  options: f,
578
578
  primaryX: a,
579
579
  primaryY: d,
580
580
  floating: i,
581
- placement: V,
581
+ placement: L,
582
582
  reference: l,
583
583
  scrollDirection: u
584
584
  });
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({
585
+ H && (n.x = H.x, n.y = H.y, n.placement = H.placement, k = !0);
586
+ }, D = eo(l, i, f);
587
+ if (!v && p.includes(c) && w(c), k || $.forEach(w), !k) {
588
+ const L = p.reduce(
589
+ (H, I) => {
590
+ const M = Xe({
591
591
  options: f,
592
592
  primaryX: a,
593
593
  primaryY: d,
594
594
  floating: i,
595
- placement: P,
595
+ placement: I,
596
596
  reference: l,
597
597
  scrollDirection: u
598
598
  });
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;
599
+ if (!M)
600
+ return H;
601
+ const E = Be(I), S = D[E];
602
+ return !H || S > H.space ? { result: M, space: S } : H;
603
603
  },
604
604
  null
605
605
  );
606
- V && (n.x = V.result.x, n.y = V.result.y, n.placement = V.result.placement, h = !0);
606
+ L && (n.x = L.result.x, n.y = L.result.y, n.placement = L.result.placement, k = !0);
607
607
  }
608
- if (!h && p.length > 0) {
609
- const V = ze(c);
610
- let A = V, P = M[V];
611
- p.forEach((x) => {
612
- const k = ze(x), L = M[k];
613
- L > P && (P = L, A = k);
608
+ if (!k && p.length > 0) {
609
+ const L = Be(c);
610
+ let H = L, I = D[L];
611
+ p.forEach((b) => {
612
+ const h = Be(b), C = D[h];
613
+ C > I && (I = C, H = h);
614
614
  });
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
- x: W.x,
619
- y: W.y,
615
+ const M = Qt(H, c, p), E = Me(l, i, M, f), S = ke(f, "offset");
616
+ if (S) {
617
+ const b = S.fn({
618
+ x: E.x,
619
+ y: E.y,
620
620
  options: f,
621
621
  primaryX: a,
622
622
  primaryY: d,
623
623
  floating: i,
624
- placement: I,
624
+ placement: M,
625
625
  reference: l,
626
626
  scrollDirection: u
627
627
  });
628
- W.x = x.x, W.y = x.y;
628
+ E.x = b.x, E.y = b.y;
629
629
  }
630
- n.x = W.x, n.y = W.y, n.placement = W.placement;
630
+ n.x = E.x, n.y = E.y, n.placement = E.placement;
631
631
  }
632
632
  return n;
633
633
  }
634
- }), et = (t, e, r, o, a) => {
634
+ }), tt = (t, e, r, o, a) => {
635
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"), s = _e(e, "shift");
638
+ const u = ke(e, "arrow"), s = ke(e, "shift");
639
639
  if (u) {
640
640
  const n = ((d = u.params) == null ? void 0 : d.arrow).getBoundingClientRect();
641
641
  o.startsWith("right") ? l -= n.width / 2 : o.startsWith("left") && (l += n.width / 2);
642
642
  }
643
- if (Qe(e, "shift") && u) {
643
+ if (et(e, "shift") && u) {
644
644
  let n = null, f = 0;
645
645
  s && (n = (i = s.params) == null ? void 0 : i.parent);
646
646
  const p = (c = u.params) == null ? void 0 : c.arrow;
647
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
- }, tt = (t, e, r, o, a) => {
650
+ }, ot = (t, e, r, o, a) => {
651
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"), s = _e(e, "shift");
654
+ const u = ke(e, "arrow"), s = ke(e, "shift");
655
655
  if (u) {
656
656
  const n = ((d = u.params) == null ? void 0 : d.arrow).getBoundingClientRect();
657
657
  o.startsWith("top") ? l += n.height / 2 : o.startsWith("bottom") && (l -= n.height / 2);
658
658
  }
659
- if (Qe(e, "shift") && u) {
659
+ if (et(e, "shift") && u) {
660
660
  let n = null, f = 0;
661
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 += 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);
663
+ f = p.getBoundingClientRect().height / 2, f += Wt(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 : ge(r - l + f, a, n, e) <= t && (l = t + ge(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 : ge(r - l, a, n, e) <= t && (ge(r, a, n, e) >= 0 ? l = t - ge(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 : ge(r - l, a, n, e) <= t && (ge(r - l, a, n, e) >= 0 ? l = t - ge(r - l, a, n, e) : l = t);
664
664
  }
665
665
  return l;
666
- }, Ve = (t) => ({
666
+ }, Le = (t) => ({
667
667
  name: "offset",
668
668
  params: { value: t },
669
669
  fn: ({
@@ -675,8 +675,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
675
675
  floating: i,
676
676
  placement: c
677
677
  }) => ({
678
- x: e - et(t, o, a, c, i),
679
- y: r - tt(t, o, d, c, i),
678
+ x: e - tt(t, o, a, c, i),
679
+ y: r - ot(t, o, d, c, i),
680
680
  placement: c
681
681
  })
682
682
  }), Dt = (t) => ({
@@ -697,28 +697,28 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
697
697
  x: e,
698
698
  y: r,
699
699
  placement: c
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;
700
+ }, n = o.middleware || [], f = n.findIndex((C) => C.name === "shift"), p = n.findIndex((C) => C.name === "offset"), v = p !== -1 && (f === -1 || p > f), $ = n.find((C) => C.name === "offset"), k = $ ? (u = $.params) == null ? void 0 : u.value : 0, w = v ? tt(k, o, a, c, i) : 0, D = v ? ot(k, o, d, c, i) : 0, L = e - w, H = r - D;
701
+ let I = L, M = H;
702
+ const E = $ ? Math.abs(k) : 0, S = E, b = E;
703
+ if (he(o, i) && typeof window < "u") {
704
+ const C = S, W = window.innerWidth - i.clientWidth - S, A = W < C ? C : W, q = b, te = window.innerHeight - i.clientHeight - b, j = te < q ? q : te;
705
+ I < C ? I = C : I > A && (I = A), M < q ? M = q : M > j && (M = j), v ? (s.x = e + (I - L), s.y = r + (M - H)) : (s.x = I, s.y = M);
706
+ const re = S, Q = window.innerWidth - i.clientWidth - S, se = b, x = window.innerHeight - i.clientHeight - b, K = v ? re + w : re, N = v ? Q + w : Q, oe = v ? se + D : se, g = v ? x + D : x;
707
+ return s.x < K ? s.x = K : s.x > N && (s.x = N), s.y < oe ? s.y = oe : s.y > g && (s.y = g), s;
708
708
  }
709
- const k = pe(i);
710
- if (k !== null) {
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);
709
+ const h = be(i);
710
+ if (h !== null) {
711
+ const C = ie(l, i, o), W = C.left, A = C.left + C.width, q = C.top, te = C.top + C.height, j = h.scrollLeft + S, re = Pe(h) - i.clientWidth - S, Q = re < j ? j : re, se = h.scrollTop + b, x = Ie(h) - i.clientHeight - b, K = x < se ? se : x, N = h.scrollLeft, oe = Pe(h), g = h.scrollTop, z = Ie(h);
712
+ A <= N ? I = j : W >= oe && (I = Q), te <= g ? M = se : q >= z && (M = K), M < se ? M = se : M > K && (M = K), I < j ? I = j : I > Q && (I = Q);
713
713
  }
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);
714
+ if (v ? (s.x = e + (I - L), s.y = r + (M - H)) : (s.x = I, s.y = M), h !== null) {
715
+ const C = h.scrollLeft + S, W = Pe(h) - i.clientWidth - S, A = h.scrollTop + b, q = Ie(h) - i.clientHeight - b, te = v ? C + w : C, j = v ? W + w : W, re = v ? A + D : A, Q = v ? q + D : q;
716
+ s.x < te ? s.x = te : s.x > j && (s.x = j), s.y < re ? s.y = re : s.y > Q && (s.y = Q);
717
717
  }
718
718
  return s;
719
719
  }
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
- const r = pe(t), o = [];
720
+ }), Ot = (t) => t.getBoundingClientRect().width !== t.clientWidth ? (t.getBoundingClientRect().width - t.clientWidth) / 2 : 0, Wt = (t) => t.getBoundingClientRect().height !== t.clientHeight ? (t.getBoundingClientRect().height - t.clientHeight) / 2 : 0, Te = (t, e) => {
721
+ const r = be(t), o = [];
722
722
  if (r !== null) {
723
723
  const a = () => e();
724
724
  r.addEventListener("scroll", a, !1), o.push(() => r.removeEventListener("scroll", a, !1));
@@ -732,14 +732,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
732
732
  a.observe(t), o.push(() => a.disconnect());
733
733
  }
734
734
  return () => o.forEach((a) => a());
735
- }, Wt = (t, e, r = {}) => {
735
+ }, At = (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
- }, At = (t, e, r = {}) => {
742
+ }, Et = (t, e, r = {}) => {
743
743
  const o = ie(t, e, r);
744
744
  return {
745
745
  x: o.left,
@@ -767,14 +767,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
767
767
  y: o.top,
768
768
  placement: "right-start"
769
769
  };
770
- }, Yt = (t, e, r = {}) => {
770
+ }, Gt = (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
- }, Gt = (t, e, r = {}) => {
777
+ }, Yt = (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,
@@ -816,12 +816,12 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
816
816
  y: o.top + o.height - e.getBoundingClientRect().height,
817
817
  placement: "left-end"
818
818
  };
819
- }, Ie = (t, e, r, o = {}) => {
819
+ }, Me = (t, e, r, o = {}) => {
820
820
  switch (r) {
821
821
  case "top":
822
- return Wt(t, e, o);
823
- case "top-start":
824
822
  return At(t, e, o);
823
+ case "top-start":
824
+ return Et(t, e, o);
825
825
  case "top-end":
826
826
  return Ht(t, e, o);
827
827
  case "right":
@@ -829,9 +829,9 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
829
829
  case "right-start":
830
830
  return Nt(t, e, o);
831
831
  case "right-end":
832
- return Yt(t, e, o);
833
- case "bottom":
834
832
  return Gt(t, e, o);
833
+ case "bottom":
834
+ return Yt(t, e, o);
835
835
  case "bottom-start":
836
836
  return jt(t, e, o);
837
837
  case "bottom-end":
@@ -850,24 +850,24 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
850
850
  };
851
851
  }
852
852
  }, Jt = (t, e, r, o = {}) => {
853
- if (me(o, e)) {
853
+ if (he(o, e)) {
854
854
  if (typeof window > "u")
855
855
  return !0;
856
856
  const n = t.x, f = t.y, p = n + e.clientWidth, v = f + e.clientHeight;
857
857
  return n >= 0 && f >= 0 && p <= window.innerWidth && v <= window.innerHeight;
858
858
  }
859
- if (pe(r) !== null)
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;
859
+ if (be(r) !== null)
860
+ return de(t.y, e, null, o) > 0 && ce(t.x, e, null, o) > 0 && ge(t.y, e, null, o) > 0 && ue(t.x, e, null, o) > 0;
861
861
  if (typeof window > "u")
862
862
  return !0;
863
863
  const a = window.innerWidth, d = window.innerHeight, i = (r instanceof HTMLElement ? r.offsetParent : null) || e.offsetParent;
864
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
- return f >= 0 && p >= 0 && v <= a && _ <= d;
865
+ const n = i.getBoundingClientRect(), f = n.left + t.x, p = n.top + t.y, v = f + e.clientWidth, $ = p + e.clientHeight;
866
+ return f >= 0 && p >= 0 && v <= a && $ <= d;
867
867
  }
868
868
  const c = t.x, l = t.y, u = c + e.clientWidth, s = l + e.clientHeight;
869
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 = {}) => {
870
+ }, Be = (t) => t.startsWith("right") ? "right" : t.startsWith("left") ? "left" : t.startsWith("top") ? "top" : "bottom", Qt = (t, e, r) => Be(e) === t && r.includes(e) ? e : r.find((o) => Be(o) === t) ?? r[0], eo = (t, e, r = {}) => {
871
871
  if (typeof window > "u")
872
872
  return {
873
873
  top: 0,
@@ -875,7 +875,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
875
875
  bottom: 0,
876
876
  left: 0
877
877
  };
878
- const o = me(r, e) ? null : pe(t), a = t.getBoundingClientRect(), d = o ? o.getBoundingClientRect() : {
878
+ const o = he(r, e) ? null : be(t), a = t.getBoundingClientRect(), d = o ? o.getBoundingClientRect() : {
879
879
  top: 0,
880
880
  left: 0,
881
881
  right: window.innerWidth,
@@ -887,18 +887,18 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
887
887
  bottom: d.bottom - a.bottom,
888
888
  left: a.left - d.left
889
889
  };
890
- }, Te = (t, e, r = {}) => new Promise((o) => {
890
+ }, Re = (t, e, r = {}) => new Promise((o) => {
891
891
  var a, d;
892
892
  const i = r.placement ? r.placement : "bottom", c = {
893
893
  x: 0,
894
894
  y: 0,
895
895
  placement: i,
896
896
  middlewareData: {}
897
- }, l = Ie(t, e, i, r);
897
+ }, l = Me(t, e, i, r);
898
898
  c.x = l.x, c.y = l.y, c.placement = l.placement;
899
899
  const u = c.x, s = c.y, n = Mt(t);
900
- (a = r.middleware) == null || a.forEach((_) => {
901
- const h = _.fn({
900
+ (a = r.middleware) == null || a.forEach(($) => {
901
+ const k = $.fn({
902
902
  x: c.x,
903
903
  y: c.y,
904
904
  options: r,
@@ -909,17 +909,17 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
909
909
  reference: t,
910
910
  scrollDirection: n
911
911
  });
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;
912
+ c.x = k.x, c.y = k.y, c.placement = k.placement, $.name === "arrow" && (k.baseX = k.x, k.baseY = k.y, k.x = k.arrowX ?? k.x, k.y = k.arrowY ?? k.y), c.middlewareData[$.name] = k;
913
913
  });
914
- const f = Ie(t, e, c.placement, r), p = _e(r, "offset"), v = p ? (d = p.params) == null ? void 0 : d.value : 0;
914
+ const f = Me(t, e, c.placement, r), p = ke(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
- if (me(r, e)) {
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;
916
+ if (he(r, e)) {
917
+ const $ = t.getBoundingClientRect(), k = e.getBoundingClientRect().height;
918
+ c.placement.startsWith("top") ? c.y = $.top - k - 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
- }), to = ["disabled", "aria-expanded", "onKeydown"], oo = ["data-placement"], ao = ["disabled", "aria-selected", "onClick"], or = /* @__PURE__ */ Y({
922
+ }), to = ["disabled", "aria-expanded", "onKeydown"], oo = ["data-placement"], ao = ["disabled", "aria-selected", "onClick"], Cr = /* @__PURE__ */ G({
923
923
  __name: "select",
924
924
  props: {
925
925
  modelValue: { default: void 0 },
@@ -934,110 +934,110 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(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 = D(null), i = D(null), c = D(null), l = D(!1), u = D("bottom"), s = D("bottom"), n = `vf-select-panel-${++r}`;
937
+ const o = e, a = t, d = O(null), i = O(null), c = O(null), l = O(!1), u = O("bottom"), s = O("bottom"), n = `vf-select-panel-${++r}`;
938
938
  let f = null;
939
- const p = m(() => a.options.map((k) => ({
940
- label: k[a.optionLabel],
941
- value: k[a.optionValue],
942
- disabled: k.disabled
943
- }))), v = m(() => p.value.find((k) => k.value === a.modelValue)), _ = m(() => {
944
- var k;
945
- return ((k = v.value) == null ? void 0 : k.label) ?? "";
946
- }), h = m(() => {
947
- const k = ["vf-select", `vf-select_${a.variant}`, l.value ? "vf-select_open" : ""];
948
- return a.size !== "normal" && k.push(`vf-select_${a.size}`), a.disabled && k.push("vf-select_disabled"), k.filter(Boolean);
949
- }), C = (k) => k.value === a.modelValue, M = (k) => {
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 = () => {
939
+ const p = y(() => a.options.map((h) => ({
940
+ label: h[a.optionLabel],
941
+ value: h[a.optionValue],
942
+ disabled: h.disabled
943
+ }))), v = y(() => p.value.find((h) => h.value === a.modelValue)), $ = y(() => {
944
+ var h;
945
+ return ((h = v.value) == null ? void 0 : h.label) ?? "";
946
+ }), k = y(() => {
947
+ const h = ["vf-select", `vf-select_${a.variant}`, l.value ? "vf-select_open" : ""];
948
+ return a.size !== "normal" && h.push(`vf-select_${a.size}`), a.disabled && h.push("vf-select_disabled"), h.filter(Boolean);
949
+ }), w = (h) => h.value === a.modelValue, D = (h) => {
950
+ h.disabled || (o("update:modelValue", h.value), o("change", h.value), I());
951
+ }, L = (h) => o("focus", h), H = (h) => o("blur", h), I = () => {
952
952
  l.value = !1, u.value = "bottom", s.value = "bottom";
953
- }, I = () => {
953
+ }, M = () => {
954
954
  a.disabled || (l.value = !l.value, l.value && (u.value = "bottom", s.value = "bottom"));
955
- }, W = async () => {
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
- var K;
955
+ }, E = async () => {
956
+ var h, C;
957
+ l.value || (l.value = !0, await Ce()), (C = (h = c.value) == null ? void 0 : h.querySelector(".vf-select__option:not(.is-disabled)")) == null || C.focus();
958
+ }, S = (h) => {
959
+ var W;
960
960
  if (!l.value || !d.value)
961
961
  return;
962
- const L = k.target;
963
- d.value.contains(L) || (K = c.value) != null && K.contains(L) || P();
964
- }, x = () => {
962
+ const C = h.target;
963
+ d.value.contains(C) || (W = c.value) != null && W.contains(C) || I();
964
+ }, b = () => {
965
965
  if (!i.value || !c.value)
966
966
  return;
967
- const k = i.value, L = c.value, K = async () => {
967
+ const h = i.value, C = c.value, W = async () => {
968
968
  const {
969
- x: q,
970
- y: ae,
971
- placement: J
972
- } = await Te(k, L, {
969
+ x: j,
970
+ y: re,
971
+ placement: Q
972
+ } = await Re(h, C, {
973
973
  placement: u.value,
974
974
  strategy: "fixed",
975
- middleware: [Ve(2), Se({ placements: ["bottom", "top"] })]
975
+ middleware: [Le(2), Ve({ placements: ["bottom", "top"] })]
976
976
  });
977
- s.value = J ?? u.value, L.style.minWidth = `${k.getBoundingClientRect().width}px`, L.style.left = `${q}px`, L.style.top = `${ae}px`;
978
- }, j = async () => {
979
- await K();
980
- }, X = Le(k, () => {
981
- j();
982
- }), oe = () => {
983
- j();
977
+ s.value = Q ?? u.value, C.style.minWidth = `${h.getBoundingClientRect().width}px`, C.style.left = `${j}px`, C.style.top = `${re}px`;
978
+ }, A = async () => {
979
+ await W();
980
+ }, q = Te(h, () => {
981
+ A();
982
+ }), te = () => {
983
+ A();
984
984
  };
985
- document.addEventListener("scroll", oe, !0), window.addEventListener("resize", oe, !1), f = {
986
- update: j,
985
+ document.addEventListener("scroll", te, !0), window.addEventListener("resize", te, !1), f = {
986
+ update: A,
987
987
  destroy: () => {
988
- X(), document.removeEventListener("scroll", oe, !0), window.removeEventListener("resize", oe, !1);
988
+ q(), document.removeEventListener("scroll", te, !0), window.removeEventListener("resize", te, !1);
989
989
  }
990
990
  }, f.update();
991
991
  };
992
- return te(l, async (k) => {
993
- if (!k) {
992
+ return ee(l, async (h) => {
993
+ if (!h) {
994
994
  f && (f.destroy(), f = null);
995
995
  return;
996
996
  }
997
- await Ce(), f || x(), f == null || f.update();
998
- }), te(
997
+ await Ce(), f || b(), f == null || f.update();
998
+ }), ee(
999
999
  () => a.options,
1000
1000
  () => {
1001
1001
  f == null || f.update();
1002
1002
  },
1003
1003
  { deep: !0 }
1004
- ), Fe(() => {
1005
- document.addEventListener("click", F);
1006
- }), we(() => {
1007
- document.removeEventListener("click", F), f == null || f.destroy(), f = null;
1008
- }), (k, L) => (g(), y("div", {
1004
+ ), Se(() => {
1005
+ document.addEventListener("click", S);
1006
+ }), $e(() => {
1007
+ document.removeEventListener("click", S), f == null || f.destroy(), f = null;
1008
+ }), (h, C) => (m(), _("div", {
1009
1009
  ref_key: "root",
1010
1010
  ref: d,
1011
- class: R(h.value)
1011
+ class: T(k.value)
1012
1012
  }, [
1013
1013
  B("button", {
1014
1014
  ref_key: "trigger",
1015
1015
  ref: i,
1016
1016
  class: "vf-select__control",
1017
1017
  type: "button",
1018
- disabled: k.disabled,
1018
+ disabled: h.disabled,
1019
1019
  "aria-expanded": l.value,
1020
1020
  "aria-controls": n,
1021
1021
  "aria-haspopup": "listbox",
1022
- onClick: I,
1022
+ onClick: M,
1023
1023
  onKeydown: [
1024
- U(G(W, ["prevent"]), ["down"]),
1025
- U(G(I, ["prevent"]), ["enter"]),
1026
- U(G(P, ["prevent"]), ["esc"])
1024
+ Z(U(E, ["prevent"]), ["down"]),
1025
+ Z(U(M, ["prevent"]), ["enter"]),
1026
+ Z(U(I, ["prevent"]), ["esc"])
1027
1027
  ],
1028
- onFocus: V,
1029
- onBlur: A
1028
+ onFocus: L,
1029
+ onBlur: H
1030
1030
  }, [
1031
1031
  B("span", {
1032
- class: R(["vf-select__label", { "vf-select__label_placeholder": !_.value }])
1033
- }, O(_.value || k.placeholder), 3),
1034
- L[0] || (L[0] = B("span", {
1032
+ class: T(["vf-select__label", { "vf-select__label_placeholder": !$.value }])
1033
+ }, R($.value || h.placeholder), 3),
1034
+ C[0] || (C[0] = B("span", {
1035
1035
  class: "vf-select__chevron",
1036
1036
  "aria-hidden": "true"
1037
1037
  }, "▾", -1))
1038
1038
  ], 40, to),
1039
- (g(), le($e, { to: "body" }, [
1040
- ve(B("div", {
1039
+ (m(), ne(we, { to: "body" }, [
1040
+ fe(B("div", {
1041
1041
  id: n,
1042
1042
  ref_key: "panel",
1043
1043
  ref: c,
@@ -1045,17 +1045,17 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1045
1045
  role: "listbox",
1046
1046
  "data-placement": s.value
1047
1047
  }, [
1048
- (g(!0), y(se, null, ke(p.value, (K) => (g(), y("button", {
1049
- key: K.value,
1050
- class: R(["vf-select__option", { "is-active": C(K), "is-disabled": K.disabled }]),
1048
+ (m(!0), _(ae, null, ve(p.value, (W) => (m(), _("button", {
1049
+ key: W.value,
1050
+ class: T(["vf-select__option", { "is-active": w(W), "is-disabled": W.disabled }]),
1051
1051
  type: "button",
1052
1052
  role: "option",
1053
- disabled: K.disabled,
1054
- "aria-selected": C(K),
1055
- onClick: (j) => M(K)
1056
- }, O(K.label), 11, ao))), 128))
1053
+ disabled: W.disabled,
1054
+ "aria-selected": w(W),
1055
+ onClick: (A) => D(W)
1056
+ }, R(W.label), 11, ao))), 128))
1057
1057
  ], 8, oo), [
1058
- [fe, l.value]
1058
+ [pe, l.value]
1059
1059
  ])
1060
1060
  ]))
1061
1061
  ], 2));
@@ -1066,7 +1066,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1066
1066
  }, io = ["id", "disabled", "aria-selected", "onClick"], co = {
1067
1067
  key: 2,
1068
1068
  class: "vf-autocomplete__empty"
1069
- }, ar = /* @__PURE__ */ Y({
1069
+ }, $r = /* @__PURE__ */ G({
1070
1070
  __name: "autocomplete",
1071
1071
  props: {
1072
1072
  modelValue: { default: void 0 },
@@ -1086,139 +1086,139 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(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 = 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}`;
1089
+ const o = e, a = t, d = O(null), i = O(null), c = O(null), l = O(!1), u = O(""), s = O(-1), n = O("bottom"), f = O("bottom"), p = `vf-autocomplete-panel-${++r}`;
1090
1090
  let v = null;
1091
- const _ = m(() => a.options.map((w) => ({
1092
- label: w[a.optionLabel],
1093
- value: w[a.optionValue],
1094
- disabled: w.disabled
1095
- }))), h = m(() => _.value.find((w) => w.value === a.modelValue)), C = m(() => {
1091
+ const $ = y(() => a.options.map((x) => ({
1092
+ label: x[a.optionLabel],
1093
+ value: x[a.optionValue],
1094
+ disabled: x.disabled
1095
+ }))), k = y(() => $.value.find((x) => x.value === a.modelValue)), w = y(() => {
1096
1096
  if (!a.filter)
1097
- return _.value;
1098
- const w = u.value.trim().toLowerCase();
1099
- return w ? _.value.filter((E) => E.label.toLowerCase().includes(w)) : _.value;
1100
- }), M = m(() => {
1097
+ return $.value;
1098
+ const x = u.value.trim().toLowerCase();
1099
+ return x ? $.value.filter((K) => K.label.toLowerCase().includes(x)) : $.value;
1100
+ }), D = y(() => {
1101
1101
  if (!(!l.value || s.value < 0))
1102
- return A(s.value);
1103
- }), V = m(() => {
1104
- const w = ["vf-autocomplete", `vf-autocomplete_${a.variant}`, l.value ? "vf-autocomplete_open" : ""];
1105
- return a.size !== "normal" && w.push(`vf-autocomplete_${a.size}`), a.disabled && w.push("vf-autocomplete_disabled"), w.filter(Boolean);
1106
- }), A = (w) => `${p}-option-${w}`, P = (w) => w.value === a.modelValue, I = () => C.value.findIndex((w) => !w.disabled), W = (w) => {
1107
- const E = C.value;
1108
- if (!E.length) {
1102
+ return H(s.value);
1103
+ }), L = y(() => {
1104
+ const x = ["vf-autocomplete", `vf-autocomplete_${a.variant}`, l.value ? "vf-autocomplete_open" : ""];
1105
+ return a.size !== "normal" && x.push(`vf-autocomplete_${a.size}`), a.disabled && x.push("vf-autocomplete_disabled"), x.filter(Boolean);
1106
+ }), H = (x) => `${p}-option-${x}`, I = (x) => x.value === a.modelValue, M = () => w.value.findIndex((x) => !x.disabled), E = (x) => {
1107
+ const K = w.value;
1108
+ if (!K.length) {
1109
1109
  s.value = -1;
1110
1110
  return;
1111
1111
  }
1112
- let H = s.value;
1113
- (H < 0 || H >= E.length) && (H = w > 0 ? -1 : E.length);
1114
- for (let ee = 0; ee < E.length; ee += 1)
1115
- if (H = (H + w + E.length) % E.length, !E[H].disabled) {
1116
- s.value = H;
1112
+ let N = s.value;
1113
+ (N < 0 || N >= K.length) && (N = x > 0 ? -1 : K.length);
1114
+ for (let oe = 0; oe < K.length; oe += 1)
1115
+ if (N = (N + x + K.length) % K.length, !K[N].disabled) {
1116
+ s.value = N;
1117
1117
  return;
1118
1118
  }
1119
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
- }, x = () => {
1120
+ }, S = () => {
1121
+ a.disabled || (l.value = !0, n.value = "bottom", f.value = "bottom", s.value < 0 && (s.value = M()));
1122
+ }, b = () => {
1123
1123
  l.value = !1, s.value = -1, n.value = "bottom", f.value = "bottom";
1124
- }, k = () => {
1124
+ }, h = () => {
1125
1125
  if (l.value) {
1126
- x();
1126
+ b();
1127
1127
  return;
1128
1128
  }
1129
- F();
1130
- }, L = (w) => {
1131
- w.disabled || (u.value = w.label, o("update:modelValue", w.value), o("change", w.value), x());
1132
- }, K = (w) => {
1133
- const E = w.target;
1134
- u.value = E.value, o("search", E.value), F(), s.value = I();
1135
- }, j = (w) => {
1136
- o("focus", w), F();
1137
- }, X = (w) => {
1138
- o("blur", w);
1139
- }, oe = () => {
1129
+ S();
1130
+ }, C = (x) => {
1131
+ x.disabled || (u.value = x.label, o("update:modelValue", x.value), o("change", x.value), b());
1132
+ }, W = (x) => {
1133
+ const K = x.target;
1134
+ u.value = K.value, o("search", K.value), S(), s.value = M();
1135
+ }, A = (x) => {
1136
+ o("focus", x), S();
1137
+ }, q = (x) => {
1138
+ o("blur", x);
1139
+ }, te = () => {
1140
1140
  if (!l.value) {
1141
- F();
1141
+ S();
1142
1142
  return;
1143
1143
  }
1144
- W(1);
1145
- }, q = () => {
1144
+ E(1);
1145
+ }, j = () => {
1146
1146
  if (!l.value) {
1147
- F();
1147
+ S();
1148
1148
  return;
1149
1149
  }
1150
- W(-1);
1151
- }, ae = () => {
1150
+ E(-1);
1151
+ }, re = () => {
1152
1152
  if (!l.value) {
1153
- F();
1153
+ S();
1154
1154
  return;
1155
1155
  }
1156
- const w = C.value[s.value];
1157
- w && !w.disabled && L(w);
1158
- }, J = (w) => {
1159
- var H;
1156
+ const x = w.value[s.value];
1157
+ x && !x.disabled && C(x);
1158
+ }, Q = (x) => {
1159
+ var N;
1160
1160
  if (!l.value || !d.value)
1161
1161
  return;
1162
- const E = w.target;
1163
- d.value.contains(E) || (H = c.value) != null && H.contains(E) || x();
1164
- }, ne = () => {
1162
+ const K = x.target;
1163
+ d.value.contains(K) || (N = c.value) != null && N.contains(K) || b();
1164
+ }, se = () => {
1165
1165
  if (!i.value || !c.value)
1166
1166
  return;
1167
- const w = i.value, E = c.value, H = async () => {
1167
+ const x = i.value, K = c.value, N = async () => {
1168
1168
  const {
1169
- x: z,
1170
- y: N,
1171
- placement: re
1172
- } = await Te(w, E, {
1169
+ x: V,
1170
+ y: Y,
1171
+ placement: le
1172
+ } = await Re(x, K, {
1173
1173
  placement: n.value,
1174
1174
  strategy: "fixed",
1175
- middleware: [Ve(2), Se({ placements: ["bottom", "top"] })]
1175
+ middleware: [Le(2), Ve({ placements: ["bottom", "top"] })]
1176
1176
  });
1177
- f.value = re ?? n.value, E.style.minWidth = `${w.getBoundingClientRect().width}px`, E.style.left = `${z}px`, E.style.top = `${N}px`;
1178
- }, ee = async () => {
1179
- await H();
1180
- }, b = Le(w, () => {
1181
- ee();
1182
- }), $ = () => {
1183
- ee();
1177
+ f.value = le ?? n.value, K.style.minWidth = `${x.getBoundingClientRect().width}px`, K.style.left = `${V}px`, K.style.top = `${Y}px`;
1178
+ }, oe = async () => {
1179
+ await N();
1180
+ }, g = Te(x, () => {
1181
+ oe();
1182
+ }), z = () => {
1183
+ oe();
1184
1184
  };
1185
- document.addEventListener("scroll", $, !0), window.addEventListener("resize", $, !1), v = {
1186
- update: ee,
1185
+ document.addEventListener("scroll", z, !0), window.addEventListener("resize", z, !1), v = {
1186
+ update: oe,
1187
1187
  destroy: () => {
1188
- b(), document.removeEventListener("scroll", $, !0), window.removeEventListener("resize", $, !1);
1188
+ g(), document.removeEventListener("scroll", z, !0), window.removeEventListener("resize", z, !1);
1189
1189
  }
1190
1190
  }, v.update();
1191
1191
  };
1192
- return te(
1192
+ return ee(
1193
1193
  () => a.modelValue,
1194
1194
  () => {
1195
- var w;
1196
- u.value = ((w = h.value) == null ? void 0 : w.label) ?? "";
1195
+ var x;
1196
+ u.value = ((x = k.value) == null ? void 0 : x.label) ?? "";
1197
1197
  },
1198
1198
  { immediate: !0 }
1199
- ), te(
1199
+ ), ee(
1200
1200
  () => a.options,
1201
1201
  () => {
1202
- var w;
1203
- l.value || (u.value = ((w = h.value) == null ? void 0 : w.label) ?? ""), v == null || v.update();
1202
+ var x;
1203
+ l.value || (u.value = ((x = k.value) == null ? void 0 : x.label) ?? ""), v == null || v.update();
1204
1204
  },
1205
1205
  { deep: !0 }
1206
- ), te(C, () => {
1207
- s.value >= C.value.length && (s.value = I());
1208
- }), te(l, async (w) => {
1209
- if (!w) {
1206
+ ), ee(w, () => {
1207
+ s.value >= w.value.length && (s.value = M());
1208
+ }), ee(l, async (x) => {
1209
+ if (!x) {
1210
1210
  v && (v.destroy(), v = null);
1211
1211
  return;
1212
1212
  }
1213
- await Ce(), v || ne(), v == null || v.update();
1214
- }), Fe(() => {
1215
- document.addEventListener("click", J);
1216
- }), we(() => {
1217
- document.removeEventListener("click", J), v == null || v.destroy(), v = null;
1218
- }), (w, E) => (g(), y("div", {
1213
+ await Ce(), v || se(), v == null || v.update();
1214
+ }), Se(() => {
1215
+ document.addEventListener("click", Q);
1216
+ }), $e(() => {
1217
+ document.removeEventListener("click", Q), v == null || v.destroy(), v = null;
1218
+ }), (x, K) => (m(), _("div", {
1219
1219
  ref_key: "root",
1220
1220
  ref: d,
1221
- class: R(V.value)
1221
+ class: T(L.value)
1222
1222
  }, [
1223
1223
  B("input", {
1224
1224
  ref_key: "control",
@@ -1227,37 +1227,37 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1227
1227
  type: "text",
1228
1228
  role: "combobox",
1229
1229
  value: u.value,
1230
- placeholder: w.placeholder,
1231
- disabled: w.disabled,
1232
- readonly: w.readonly,
1230
+ placeholder: x.placeholder,
1231
+ disabled: x.disabled,
1232
+ readonly: x.readonly,
1233
1233
  "aria-expanded": l.value,
1234
1234
  "aria-autocomplete": "list",
1235
1235
  "aria-controls": p,
1236
- "aria-activedescendant": M.value,
1237
- onInput: K,
1238
- onFocus: j,
1239
- onBlur: X,
1240
- onClick: F,
1236
+ "aria-activedescendant": D.value,
1237
+ onInput: W,
1238
+ onFocus: A,
1239
+ onBlur: q,
1240
+ onClick: S,
1241
1241
  onKeydown: [
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
- U(x, ["tab"])
1242
+ Z(U(te, ["prevent"]), ["down"]),
1243
+ Z(U(j, ["prevent"]), ["up"]),
1244
+ Z(U(re, ["prevent"]), ["enter"]),
1245
+ Z(U(b, ["prevent"]), ["esc"]),
1246
+ Z(b, ["tab"])
1247
1247
  ]
1248
1248
  }, null, 40, ro),
1249
1249
  B("button", {
1250
1250
  class: "vf-autocomplete__chevron",
1251
1251
  type: "button",
1252
- disabled: w.disabled,
1252
+ disabled: x.disabled,
1253
1253
  "aria-hidden": "true",
1254
1254
  tabindex: "-1",
1255
- onMousedown: E[0] || (E[0] = G(() => {
1255
+ onMousedown: K[0] || (K[0] = U(() => {
1256
1256
  }, ["prevent"])),
1257
- onClick: k
1257
+ onClick: h
1258
1258
  }, " ▾ ", 40, lo),
1259
- (g(), le($e, { to: "body" }, [
1260
- ve(B("div", {
1259
+ (m(), ne(we, { to: "body" }, [
1260
+ fe(B("div", {
1261
1261
  id: p,
1262
1262
  ref_key: "panel",
1263
1263
  ref: c,
@@ -1265,24 +1265,24 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1265
1265
  role: "listbox",
1266
1266
  "data-placement": f.value
1267
1267
  }, [
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
1268
+ x.loading ? (m(), _("div", so, R(x.loadingText), 1)) : w.value.length > 0 ? (m(!0), _(ae, { key: 1 }, ve(w.value, (N, oe) => (m(), _("button", {
1269
+ id: H(oe),
1270
+ key: N.value,
1271
+ class: T(["vf-autocomplete__option", {
1272
+ "is-active": I(N),
1273
+ "is-disabled": N.disabled,
1274
+ "is-highlighted": oe === s.value
1275
1275
  }]),
1276
1276
  type: "button",
1277
1277
  role: "option",
1278
- disabled: H.disabled,
1279
- "aria-selected": P(H),
1280
- onMousedown: E[1] || (E[1] = G(() => {
1278
+ disabled: N.disabled,
1279
+ "aria-selected": I(N),
1280
+ onMousedown: K[1] || (K[1] = U(() => {
1281
1281
  }, ["prevent"])),
1282
- onClick: (b) => L(H)
1283
- }, O(H.label), 43, io))), 128)) : (g(), y("div", co, O(w.emptyText), 1))
1282
+ onClick: (g) => C(N)
1283
+ }, R(N.label), 43, io))), 128)) : (m(), _("div", co, R(x.emptyText), 1))
1284
1284
  ], 8, no), [
1285
- [fe, l.value]
1285
+ [pe, l.value]
1286
1286
  ])
1287
1287
  ]))
1288
1288
  ], 2));
@@ -1300,7 +1300,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1300
1300
  }, yo = {
1301
1301
  key: 3,
1302
1302
  class: "vf-multiselect__empty"
1303
- }, rr = /* @__PURE__ */ Y({
1303
+ }, wr = /* @__PURE__ */ G({
1304
1304
  __name: "multi-select",
1305
1305
  props: {
1306
1306
  modelValue: { default: () => [] },
@@ -1322,172 +1322,172 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(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 = 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
- let _ = null;
1327
- const h = m(() => a.options.map((b) => ({
1328
- label: b[a.optionLabel],
1329
- value: b[a.optionValue],
1330
- disabled: b.disabled
1331
- }))), C = m(() => Array.isArray(a.modelValue) ? a.modelValue : []), M = m(() => {
1325
+ const o = e, a = t, d = O(null), i = O(null), c = O(null), l = O(null), u = O(!1), s = O(""), n = O(-1), f = O("bottom"), p = O("bottom"), v = `vf-multiselect-panel-${++r}`;
1326
+ let $ = null;
1327
+ const k = y(() => a.options.map((g) => ({
1328
+ label: g[a.optionLabel],
1329
+ value: g[a.optionValue],
1330
+ disabled: g.disabled
1331
+ }))), w = y(() => Array.isArray(a.modelValue) ? a.modelValue : []), D = y(() => {
1332
1332
  if (!a.filter)
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
- const b = ["vf-multiselect", `vf-multiselect_${a.variant}`, u.value ? "vf-multiselect_open" : ""];
1338
- return a.size !== "normal" && b.push(`vf-multiselect_${a.size}`), a.disabled && b.push("vf-multiselect_disabled"), b.filter(Boolean);
1339
- }), I = (b) => `${v}-option-${b}`, W = () => M.value.findIndex((b) => !b.disabled), F = (b) => C.value.includes(b.value), x = (b) => {
1340
- o("update:modelValue", b), o("change", b);
1341
- }, k = (b) => {
1342
- if (!(b.disabled || a.readonly)) {
1343
- if (F(b)) {
1344
- x(C.value.filter(($) => $ !== b.value));
1333
+ return k.value;
1334
+ const g = s.value.trim().toLowerCase();
1335
+ return g ? k.value.filter((z) => z.label.toLowerCase().includes(g)) : k.value;
1336
+ }), L = y(() => k.value.filter((g) => w.value.includes(g.value))), H = y(() => L.value.length === 0 ? a.placeholder : L.value.map((g) => g.label).join(", ")), I = y(() => {
1337
+ const g = ["vf-multiselect", `vf-multiselect_${a.variant}`, u.value ? "vf-multiselect_open" : ""];
1338
+ return a.size !== "normal" && g.push(`vf-multiselect_${a.size}`), a.disabled && g.push("vf-multiselect_disabled"), g.filter(Boolean);
1339
+ }), M = (g) => `${v}-option-${g}`, E = () => D.value.findIndex((g) => !g.disabled), S = (g) => w.value.includes(g.value), b = (g) => {
1340
+ o("update:modelValue", g), o("change", g);
1341
+ }, h = (g) => {
1342
+ if (!(g.disabled || a.readonly)) {
1343
+ if (S(g)) {
1344
+ b(w.value.filter((z) => z !== g.value));
1345
1345
  return;
1346
1346
  }
1347
- x([...C.value, b.value]);
1347
+ b([...w.value, g.value]);
1348
1348
  }
1349
- }, L = () => {
1350
- a.readonly || x([]);
1351
- }, K = (b) => {
1352
- const $ = M.value;
1353
- if (!$.length) {
1349
+ }, C = () => {
1350
+ a.readonly || b([]);
1351
+ }, W = (g) => {
1352
+ const z = D.value;
1353
+ if (!z.length) {
1354
1354
  n.value = -1;
1355
1355
  return;
1356
1356
  }
1357
- let z = n.value;
1358
- (z < 0 || z >= $.length) && (z = b > 0 ? -1 : $.length);
1359
- for (let N = 0; N < $.length; N += 1)
1360
- if (z = (z + b + $.length) % $.length, !$[z].disabled) {
1361
- n.value = z;
1357
+ let V = n.value;
1358
+ (V < 0 || V >= z.length) && (V = g > 0 ? -1 : z.length);
1359
+ for (let Y = 0; Y < z.length; Y += 1)
1360
+ if (V = (V + g + z.length) % z.length, !z[V].disabled) {
1361
+ n.value = V;
1362
1362
  return;
1363
1363
  }
1364
1364
  n.value = -1;
1365
- }, j = async () => {
1366
- var b;
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
- }, X = () => {
1365
+ }, A = async () => {
1366
+ var g;
1367
+ a.disabled || (u.value = !0, f.value = "bottom", p.value = "bottom", n.value < 0 && (n.value = E()), a.filter && (await Ce(), (g = l.value) == null || g.focus()));
1368
+ }, q = () => {
1369
1369
  u.value = !1, n.value = -1, f.value = "bottom", p.value = "bottom", s.value = "";
1370
- }, oe = () => {
1370
+ }, te = () => {
1371
1371
  if (u.value) {
1372
- X();
1372
+ q();
1373
1373
  return;
1374
1374
  }
1375
- j();
1376
- }, q = () => {
1375
+ A();
1376
+ }, j = () => {
1377
1377
  if (!u.value) {
1378
- j();
1378
+ A();
1379
1379
  return;
1380
1380
  }
1381
- K(1);
1382
- }, ae = () => {
1381
+ W(1);
1382
+ }, re = () => {
1383
1383
  if (!u.value) {
1384
- j();
1384
+ A();
1385
1385
  return;
1386
1386
  }
1387
- K(-1);
1388
- }, J = () => {
1387
+ W(-1);
1388
+ }, Q = () => {
1389
1389
  if (!u.value) {
1390
- j();
1390
+ A();
1391
1391
  return;
1392
1392
  }
1393
- const b = M.value[n.value];
1394
- b && !b.disabled && k(b);
1395
- }, ne = (b) => {
1396
- const $ = b.target;
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;
1393
+ const g = D.value[n.value];
1394
+ g && !g.disabled && h(g);
1395
+ }, se = (g) => {
1396
+ const z = g.target;
1397
+ s.value = z.value, o("search", z.value), n.value = E();
1398
+ }, x = (g) => o("focus", g), K = (g) => o("blur", g), N = (g) => {
1399
+ var V;
1400
1400
  if (!u.value || !d.value)
1401
1401
  return;
1402
- const $ = b.target;
1403
- d.value.contains($) || (z = c.value) != null && z.contains($) || X();
1404
- }, ee = () => {
1402
+ const z = g.target;
1403
+ d.value.contains(z) || (V = c.value) != null && V.contains(z) || q();
1404
+ }, oe = () => {
1405
1405
  if (!i.value || !c.value)
1406
1406
  return;
1407
- const b = i.value, $ = c.value, z = async () => {
1407
+ const g = i.value, z = c.value, V = async () => {
1408
1408
  const {
1409
- x: he,
1410
- y: Oe,
1411
- placement: Ee
1412
- } = await Te(b, $, {
1409
+ x: ye,
1410
+ y: We,
1411
+ placement: Ae
1412
+ } = await Re(g, z, {
1413
1413
  placement: f.value,
1414
1414
  strategy: "fixed",
1415
- middleware: [Ve(2), Se({ placements: ["bottom", "top"] })]
1415
+ middleware: [Le(2), Ve({ placements: ["bottom", "top"] })]
1416
1416
  });
1417
- p.value = Ee ?? f.value, $.style.minWidth = `${b.getBoundingClientRect().width}px`, $.style.left = `${he}px`, $.style.top = `${Oe}px`;
1418
- }, N = async () => {
1419
- await z();
1420
- }, re = Le(b, () => {
1421
- N();
1422
- }), Z = () => {
1423
- N();
1417
+ p.value = Ae ?? f.value, z.style.minWidth = `${g.getBoundingClientRect().width}px`, z.style.left = `${ye}px`, z.style.top = `${We}px`;
1418
+ }, Y = async () => {
1419
+ await V();
1420
+ }, le = Te(g, () => {
1421
+ Y();
1422
+ }), J = () => {
1423
+ Y();
1424
1424
  };
1425
- document.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z, !1), _ = {
1426
- update: N,
1425
+ document.addEventListener("scroll", J, !0), window.addEventListener("resize", J, !1), $ = {
1426
+ update: Y,
1427
1427
  destroy: () => {
1428
- re(), document.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z, !1);
1428
+ le(), document.removeEventListener("scroll", J, !0), window.removeEventListener("resize", J, !1);
1429
1429
  }
1430
- }, _.update();
1430
+ }, $.update();
1431
1431
  };
1432
- return te(
1432
+ return ee(
1433
1433
  () => a.options,
1434
1434
  () => {
1435
- n.value >= M.value.length && (n.value = W()), _ == null || _.update();
1435
+ n.value >= D.value.length && (n.value = E()), $ == null || $.update();
1436
1436
  },
1437
1437
  { deep: !0 }
1438
- ), te(u, async (b) => {
1439
- if (!b) {
1440
- _ && (_.destroy(), _ = null);
1438
+ ), ee(u, async (g) => {
1439
+ if (!g) {
1440
+ $ && ($.destroy(), $ = null);
1441
1441
  return;
1442
1442
  }
1443
- await Ce(), _ || ee(), _ == null || _.update();
1444
- }), te(M, () => {
1445
- n.value >= M.value.length && (n.value = W());
1446
- }), Fe(() => {
1447
- document.addEventListener("click", H);
1448
- }), we(() => {
1449
- document.removeEventListener("click", H), _ == null || _.destroy(), _ = null;
1450
- }), (b, $) => (g(), y("div", {
1443
+ await Ce(), $ || oe(), $ == null || $.update();
1444
+ }), ee(D, () => {
1445
+ n.value >= D.value.length && (n.value = E());
1446
+ }), Se(() => {
1447
+ document.addEventListener("click", N);
1448
+ }), $e(() => {
1449
+ document.removeEventListener("click", N), $ == null || $.destroy(), $ = null;
1450
+ }), (g, z) => (m(), _("div", {
1451
1451
  ref_key: "root",
1452
1452
  ref: d,
1453
- class: R(P.value)
1453
+ class: T(I.value)
1454
1454
  }, [
1455
1455
  B("button", {
1456
1456
  ref_key: "trigger",
1457
1457
  ref: i,
1458
1458
  class: "vf-multiselect__control",
1459
1459
  type: "button",
1460
- disabled: b.disabled,
1460
+ disabled: g.disabled,
1461
1461
  "aria-expanded": u.value,
1462
1462
  "aria-controls": v,
1463
1463
  "aria-haspopup": "listbox",
1464
- onClick: oe,
1464
+ onClick: te,
1465
1465
  onKeydown: [
1466
- U(G(q, ["prevent"]), ["down"]),
1467
- U(G(ae, ["prevent"]), ["up"]),
1468
- U(G(J, ["prevent"]), ["enter"]),
1469
- U(G(X, ["prevent"]), ["esc"])
1466
+ Z(U(j, ["prevent"]), ["down"]),
1467
+ Z(U(re, ["prevent"]), ["up"]),
1468
+ Z(U(Q, ["prevent"]), ["enter"]),
1469
+ Z(U(q, ["prevent"]), ["esc"])
1470
1470
  ],
1471
- onFocus: w,
1472
- onBlur: E
1471
+ onFocus: x,
1472
+ onBlur: K
1473
1473
  }, [
1474
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", {
1475
+ class: T(["vf-multiselect__label", { "vf-multiselect__label_placeholder": w.value.length === 0 }])
1476
+ }, R(H.value), 3),
1477
+ z[0] || (z[0] = B("span", {
1478
1478
  class: "vf-multiselect__chevron",
1479
1479
  "aria-hidden": "true"
1480
1480
  }, "▾", -1))
1481
1481
  ], 40, uo),
1482
- b.clearable && C.value.length > 0 && !b.disabled && !b.readonly ? (g(), y("button", {
1482
+ g.clearable && w.value.length > 0 && !g.disabled && !g.readonly ? (m(), _("button", {
1483
1483
  key: 0,
1484
1484
  class: "vf-multiselect__clear",
1485
1485
  type: "button",
1486
1486
  "aria-label": "Clear selection",
1487
- onClick: G(L, ["stop"])
1488
- }, " ✕ ")) : T("", !0),
1489
- (g(), le($e, { to: "body" }, [
1490
- ve(B("div", {
1487
+ onClick: U(C, ["stop"])
1488
+ }, " ✕ ")) : P("", !0),
1489
+ (m(), ne(we, { to: "body" }, [
1490
+ fe(B("div", {
1491
1491
  id: v,
1492
1492
  ref_key: "panel",
1493
1493
  ref: c,
@@ -1496,53 +1496,53 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1496
1496
  "aria-multiselectable": "true",
1497
1497
  "data-placement": p.value
1498
1498
  }, [
1499
- b.filter ? (g(), y("div", fo, [
1499
+ g.filter ? (m(), _("div", fo, [
1500
1500
  B("input", {
1501
1501
  ref_key: "searchInput",
1502
1502
  ref: l,
1503
1503
  class: "vf-multiselect__search-control",
1504
1504
  type: "text",
1505
1505
  value: s.value,
1506
- placeholder: b.searchPlaceholder,
1507
- onInput: ne,
1506
+ placeholder: g.searchPlaceholder,
1507
+ onInput: se,
1508
1508
  onKeydown: [
1509
- U(G(q, ["prevent"]), ["down"]),
1510
- U(G(ae, ["prevent"]), ["up"]),
1511
- U(G(J, ["prevent"]), ["enter"]),
1512
- U(G(X, ["prevent"]), ["esc"])
1509
+ Z(U(j, ["prevent"]), ["down"]),
1510
+ Z(U(re, ["prevent"]), ["up"]),
1511
+ Z(U(Q, ["prevent"]), ["enter"]),
1512
+ Z(U(q, ["prevent"]), ["esc"])
1513
1513
  ]
1514
1514
  }, null, 40, po)
1515
- ])) : T("", !0),
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
1515
+ ])) : P("", !0),
1516
+ g.loading ? (m(), _("div", bo, R(g.loadingText), 1)) : D.value.length > 0 ? (m(!0), _(ae, { key: 2 }, ve(D.value, (V, Y) => (m(), _("button", {
1517
+ id: M(Y),
1518
+ key: V.value,
1519
+ class: T(["vf-multiselect__option", {
1520
+ "is-active": S(V),
1521
+ "is-disabled": V.disabled,
1522
+ "is-highlighted": Y === n.value
1523
1523
  }]),
1524
1524
  type: "button",
1525
1525
  role: "option",
1526
- disabled: z.disabled,
1527
- "aria-selected": F(z),
1528
- onClick: (re) => k(z)
1526
+ disabled: V.disabled,
1527
+ "aria-selected": S(V),
1528
+ onClick: (le) => h(V)
1529
1529
  }, [
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))
1530
+ B("span", mo, R(V.label), 1),
1531
+ S(V) ? (m(), _("span", ho, "✓")) : P("", !0)
1532
+ ], 10, go))), 128)) : (m(), _("div", yo, R(g.emptyText), 1))
1533
1533
  ], 8, vo), [
1534
- [fe, u.value]
1534
+ [pe, u.value]
1535
1535
  ])
1536
1536
  ]))
1537
1537
  ], 2));
1538
1538
  }
1539
- }), _o = ["disabled", "aria-expanded", "onKeydown"], ko = ["data-placement", "onKeydown"], Co = { class: "vf-datepicker__header" }, wo = { class: "vf-datepicker__month-label" }, $o = {
1539
+ }), _o = ["disabled", "aria-expanded", "onKeydown"], ko = ["data-placement", "onKeydown"], Co = { class: "vf-datepicker__header" }, $o = { class: "vf-datepicker__month-label" }, wo = {
1540
1540
  class: "vf-datepicker__weekdays",
1541
1541
  role: "row"
1542
1542
  }, xo = {
1543
1543
  class: "vf-datepicker__days",
1544
1544
  role: "grid"
1545
- }, Bo = ["disabled", "data-date", "onClick"], lr = /* @__PURE__ */ Y({
1545
+ }, zo = ["disabled", "data-date", "onClick"], xr = /* @__PURE__ */ G({
1546
1546
  __name: "datepicker",
1547
1547
  props: {
1548
1548
  modelValue: { default: void 0 },
@@ -1559,231 +1559,231 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(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 = 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()));
1562
+ const o = e, a = t, d = O(null), i = O(null), c = O(null), l = O(!1), u = O("bottom"), s = O("bottom"), n = `vf-datepicker-panel-${++r}`, f = O(Q(j(a.modelValue) ?? /* @__PURE__ */ new Date()));
1563
1563
  let p = null;
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, {
1564
+ const v = y(() => j(a.modelValue)), $ = y(() => j(a.min)), k = y(() => j(a.max)), w = y(() => v.value ? v.value.toLocaleDateString(a.locale, {
1565
1565
  year: "numeric",
1566
1566
  month: "short",
1567
1567
  day: "numeric"
1568
- }) : ""), M = m(() => f.value.toLocaleDateString(a.locale, {
1568
+ }) : ""), D = y(() => f.value.toLocaleDateString(a.locale, {
1569
1569
  year: "numeric",
1570
1570
  month: "long"
1571
- })), V = m(() => {
1572
- const b = new Intl.DateTimeFormat(a.locale, { weekday: "short" }), $ = new Date(2026, 0, 4);
1573
- return Array.from({ length: 7 }, (z, N) => {
1574
- const re = (N + a.firstDayOfWeek) % 7, Z = new Date($);
1575
- return Z.setDate($.getDate() + re), b.format(Z);
1571
+ })), L = y(() => {
1572
+ const g = new Intl.DateTimeFormat(a.locale, { weekday: "short" }), z = new Date(2026, 0, 4);
1573
+ return Array.from({ length: 7 }, (V, Y) => {
1574
+ const le = (Y + a.firstDayOfWeek) % 7, J = new Date(z);
1575
+ return J.setDate(z.getDate() + le), g.format(J);
1576
1576
  });
1577
- }), A = m(() => {
1578
- const b = E(f.value, a.firstDayOfWeek), $ = v.value ? H(v.value) : null, z = H(/* @__PURE__ */ new Date());
1579
- return Array.from({ length: 42 }, (N, re) => {
1580
- const Z = w(b, re), he = H(Z);
1577
+ }), H = y(() => {
1578
+ const g = K(f.value, a.firstDayOfWeek), z = v.value ? N(v.value) : null, V = N(/* @__PURE__ */ new Date());
1579
+ return Array.from({ length: 42 }, (Y, le) => {
1580
+ const J = x(g, le), ye = N(J);
1581
1581
  return {
1582
- key: `${he}-${re}`,
1583
- iso: he,
1584
- date: Z,
1585
- day: Z.getDate(),
1586
- inCurrentMonth: Z.getMonth() === f.value.getMonth(),
1587
- isDisabled: ee(Z, _.value, h.value),
1588
- isSelected: $ === he,
1589
- isToday: he === z
1582
+ key: `${ye}-${le}`,
1583
+ iso: ye,
1584
+ date: J,
1585
+ day: J.getDate(),
1586
+ inCurrentMonth: J.getMonth() === f.value.getMonth(),
1587
+ isDisabled: oe(J, $.value, k.value),
1588
+ isSelected: z === ye,
1589
+ isToday: ye === V
1590
1590
  };
1591
1591
  });
1592
- }), P = m(() => {
1593
- const b = ["vf-datepicker", `vf-datepicker_${a.variant}`, l.value ? "vf-datepicker_open" : ""];
1594
- return a.size !== "normal" && b.push(`vf-datepicker_${a.size}`), a.disabled && b.push("vf-datepicker_disabled"), b.filter(Boolean);
1595
- }), I = (b) => o("focus", b), W = (b) => o("blur", b), F = () => {
1592
+ }), I = y(() => {
1593
+ const g = ["vf-datepicker", `vf-datepicker_${a.variant}`, l.value ? "vf-datepicker_open" : ""];
1594
+ return a.size !== "normal" && g.push(`vf-datepicker_${a.size}`), a.disabled && g.push("vf-datepicker_disabled"), g.filter(Boolean);
1595
+ }), M = (g) => o("focus", g), E = (g) => o("blur", g), S = () => {
1596
1596
  a.disabled || a.readonly || (l.value = !0, u.value = "bottom", s.value = "bottom");
1597
- }, x = () => {
1597
+ }, b = () => {
1598
1598
  l.value = !1, u.value = "bottom", s.value = "bottom";
1599
- }, k = () => {
1599
+ }, h = () => {
1600
1600
  if (l.value) {
1601
- x();
1601
+ b();
1602
1602
  return;
1603
1603
  }
1604
- F();
1605
- }, L = () => {
1606
- f.value = ne(f.value, -1);
1607
- }, K = () => {
1608
- f.value = ne(f.value, 1);
1609
- }, j = (b) => {
1610
- if (a.readonly || ee(b, _.value, h.value))
1604
+ S();
1605
+ }, C = () => {
1606
+ f.value = se(f.value, -1);
1607
+ }, W = () => {
1608
+ f.value = se(f.value, 1);
1609
+ }, A = (g) => {
1610
+ if (a.readonly || oe(g, $.value, k.value))
1611
1611
  return;
1612
- const $ = H(b);
1613
- o("update:modelValue", $), o("change", $), x();
1614
- }, X = (b) => {
1615
- var z;
1612
+ const z = N(g);
1613
+ o("update:modelValue", z), o("change", z), b();
1614
+ }, q = (g) => {
1615
+ var V;
1616
1616
  if (!l.value || !d.value)
1617
1617
  return;
1618
- const $ = b.target;
1619
- d.value.contains($) || (z = c.value) != null && z.contains($) || x();
1620
- }, oe = () => {
1618
+ const z = g.target;
1619
+ d.value.contains(z) || (V = c.value) != null && V.contains(z) || b();
1620
+ }, te = () => {
1621
1621
  if (!i.value || !c.value)
1622
1622
  return;
1623
- const b = i.value, $ = c.value, z = async () => {
1623
+ const g = i.value, z = c.value, V = async () => {
1624
1624
  const {
1625
- x: he,
1626
- y: Oe,
1627
- placement: Ee
1628
- } = await Te(b, $, {
1625
+ x: ye,
1626
+ y: We,
1627
+ placement: Ae
1628
+ } = await Re(g, z, {
1629
1629
  placement: u.value,
1630
1630
  strategy: "fixed",
1631
- middleware: [Ve(2), Se({ placements: ["bottom", "top"] })]
1631
+ middleware: [Le(2), Ve({ placements: ["bottom", "top"] })]
1632
1632
  });
1633
- s.value = Ee ?? u.value, $.style.left = `${he}px`, $.style.top = `${Oe}px`;
1634
- }, N = async () => {
1635
- await z();
1636
- }, re = Le(b, () => {
1637
- N();
1638
- }), Z = () => {
1639
- N();
1633
+ s.value = Ae ?? u.value, z.style.left = `${ye}px`, z.style.top = `${We}px`;
1634
+ }, Y = async () => {
1635
+ await V();
1636
+ }, le = Te(g, () => {
1637
+ Y();
1638
+ }), J = () => {
1639
+ Y();
1640
1640
  };
1641
- document.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z, !1), p = {
1642
- update: N,
1641
+ document.addEventListener("scroll", J, !0), window.addEventListener("resize", J, !1), p = {
1642
+ update: Y,
1643
1643
  destroy: () => {
1644
- re(), document.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z, !1);
1644
+ le(), document.removeEventListener("scroll", J, !0), window.removeEventListener("resize", J, !1);
1645
1645
  }
1646
1646
  }, p.update();
1647
1647
  };
1648
- te(
1648
+ ee(
1649
1649
  () => a.modelValue,
1650
- (b) => {
1651
- const $ = q(b);
1652
- $ && (f.value = J($));
1650
+ (g) => {
1651
+ const z = j(g);
1652
+ z && (f.value = Q(z));
1653
1653
  },
1654
1654
  { immediate: !0 }
1655
- ), te(
1655
+ ), ee(
1656
1656
  () => [a.min, a.max],
1657
1657
  () => {
1658
1658
  p == null || p.update();
1659
1659
  }
1660
- ), te(l, async (b) => {
1661
- if (!b) {
1660
+ ), ee(l, async (g) => {
1661
+ if (!g) {
1662
1662
  p && (p.destroy(), p = null);
1663
1663
  return;
1664
1664
  }
1665
- await Ce(), p || oe(), p == null || p.update();
1666
- }), Fe(() => {
1667
- document.addEventListener("click", X);
1668
- }), we(() => {
1669
- document.removeEventListener("click", X), p == null || p.destroy(), p = null;
1665
+ await Ce(), p || te(), p == null || p.update();
1666
+ }), Se(() => {
1667
+ document.addEventListener("click", q);
1668
+ }), $e(() => {
1669
+ document.removeEventListener("click", q), p == null || p.destroy(), p = null;
1670
1670
  });
1671
- function q(b) {
1672
- if (!b)
1671
+ function j(g) {
1672
+ if (!g)
1673
1673
  return null;
1674
- const $ = b.match(/^(\d{4})-(\d{2})-(\d{2})$/);
1675
- if (!$)
1674
+ const z = g.match(/^(\d{4})-(\d{2})-(\d{2})$/);
1675
+ if (!z)
1676
1676
  return null;
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);
1677
+ const V = Number(z[1]), Y = Number(z[2]) - 1, le = Number(z[3]), J = new Date(V, Y, le);
1678
+ return J.getFullYear() !== V || J.getMonth() !== Y || J.getDate() !== le ? null : re(J);
1679
1679
  }
1680
- function ae(b) {
1681
- return new Date(b.getFullYear(), b.getMonth(), b.getDate());
1680
+ function re(g) {
1681
+ return new Date(g.getFullYear(), g.getMonth(), g.getDate());
1682
1682
  }
1683
- function J(b) {
1684
- return new Date(b.getFullYear(), b.getMonth(), 1);
1683
+ function Q(g) {
1684
+ return new Date(g.getFullYear(), g.getMonth(), 1);
1685
1685
  }
1686
- function ne(b, $) {
1687
- return new Date(b.getFullYear(), b.getMonth() + $, 1);
1686
+ function se(g, z) {
1687
+ return new Date(g.getFullYear(), g.getMonth() + z, 1);
1688
1688
  }
1689
- function w(b, $) {
1690
- return new Date(b.getFullYear(), b.getMonth(), b.getDate() + $);
1689
+ function x(g, z) {
1690
+ return new Date(g.getFullYear(), g.getMonth(), g.getDate() + z);
1691
1691
  }
1692
- function E(b, $) {
1693
- const z = J(b), re = (z.getDay() - $ + 7) % 7;
1694
- return w(z, -re);
1692
+ function K(g, z) {
1693
+ const V = Q(g), le = (V.getDay() - z + 7) % 7;
1694
+ return x(V, -le);
1695
1695
  }
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}`;
1696
+ function N(g) {
1697
+ const z = g.getFullYear(), V = `${g.getMonth() + 1}`.padStart(2, "0"), Y = `${g.getDate()}`.padStart(2, "0");
1698
+ return `${z}-${V}-${Y}`;
1699
1699
  }
1700
- function ee(b, $, z) {
1701
- const N = ae(b).getTime();
1702
- return !!($ && N < $.getTime() || z && N > z.getTime());
1700
+ function oe(g, z, V) {
1701
+ const Y = re(g).getTime();
1702
+ return !!(z && Y < z.getTime() || V && Y > V.getTime());
1703
1703
  }
1704
- return (b, $) => (g(), y("div", {
1704
+ return (g, z) => (m(), _("div", {
1705
1705
  ref_key: "root",
1706
1706
  ref: d,
1707
- class: R(P.value)
1707
+ class: T(I.value)
1708
1708
  }, [
1709
1709
  B("button", {
1710
1710
  ref_key: "control",
1711
1711
  ref: i,
1712
1712
  class: "vf-datepicker__control",
1713
1713
  type: "button",
1714
- disabled: b.disabled,
1714
+ disabled: g.disabled,
1715
1715
  "aria-expanded": l.value,
1716
1716
  "aria-controls": n,
1717
1717
  "aria-haspopup": "dialog",
1718
- onClick: k,
1718
+ onClick: h,
1719
1719
  onKeydown: [
1720
- U(G(F, ["prevent"]), ["down"]),
1721
- U(G(k, ["prevent"]), ["enter"]),
1722
- U(G(x, ["prevent"]), ["esc"])
1720
+ Z(U(S, ["prevent"]), ["down"]),
1721
+ Z(U(h, ["prevent"]), ["enter"]),
1722
+ Z(U(b, ["prevent"]), ["esc"])
1723
1723
  ],
1724
- onFocus: I,
1725
- onBlur: W
1724
+ onFocus: M,
1725
+ onBlur: E
1726
1726
  }, [
1727
1727
  B("span", {
1728
- class: R(["vf-datepicker__label", { "vf-datepicker__label_placeholder": !v.value }])
1729
- }, O(C.value || b.placeholder), 3),
1730
- $[0] || ($[0] = B("span", {
1728
+ class: T(["vf-datepicker__label", { "vf-datepicker__label_placeholder": !v.value }])
1729
+ }, R(w.value || g.placeholder), 3),
1730
+ z[0] || (z[0] = B("span", {
1731
1731
  class: "vf-datepicker__chevron",
1732
1732
  "aria-hidden": "true"
1733
1733
  }, "▾", -1))
1734
1734
  ], 40, _o),
1735
- (g(), le($e, { to: "body" }, [
1736
- ve(B("div", {
1735
+ (m(), ne(we, { to: "body" }, [
1736
+ fe(B("div", {
1737
1737
  id: n,
1738
1738
  ref_key: "panel",
1739
1739
  ref: c,
1740
1740
  class: "vf-datepicker__panel",
1741
1741
  role: "dialog",
1742
1742
  "data-placement": s.value,
1743
- onKeydown: U(G(x, ["prevent"]), ["esc"])
1743
+ onKeydown: Z(U(b, ["prevent"]), ["esc"])
1744
1744
  }, [
1745
1745
  B("div", Co, [
1746
1746
  B("button", {
1747
1747
  class: "vf-datepicker__nav",
1748
1748
  type: "button",
1749
1749
  "aria-label": "Previous month",
1750
- onClick: L
1750
+ onClick: C
1751
1751
  }, " ‹ "),
1752
- B("span", wo, O(M.value), 1),
1752
+ B("span", $o, R(D.value), 1),
1753
1753
  B("button", {
1754
1754
  class: "vf-datepicker__nav",
1755
1755
  type: "button",
1756
1756
  "aria-label": "Next month",
1757
- onClick: K
1757
+ onClick: W
1758
1758
  }, " › ")
1759
1759
  ]),
1760
- B("div", $o, [
1761
- (g(!0), y(se, null, ke(V.value, (z) => (g(), y("span", {
1762
- key: z,
1760
+ B("div", wo, [
1761
+ (m(!0), _(ae, null, ve(L.value, (V) => (m(), _("span", {
1762
+ key: V,
1763
1763
  class: "vf-datepicker__weekday"
1764
- }, O(z), 1))), 128))
1764
+ }, R(V), 1))), 128))
1765
1765
  ]),
1766
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
1767
+ (m(!0), _(ae, null, ve(H.value, (V) => (m(), _("button", {
1768
+ key: V.key,
1769
+ class: T(["vf-datepicker__day", {
1770
+ "is-outside": !V.inCurrentMonth,
1771
+ "is-selected": V.isSelected,
1772
+ "is-today": V.isToday
1773
1773
  }]),
1774
1774
  type: "button",
1775
- disabled: z.isDisabled,
1776
- "data-date": z.iso,
1777
- onClick: (N) => j(z.date)
1778
- }, O(z.day), 11, Bo))), 128))
1775
+ disabled: V.isDisabled,
1776
+ "data-date": V.iso,
1777
+ onClick: (Y) => A(V.date)
1778
+ }, R(V.day), 11, zo))), 128))
1779
1779
  ])
1780
1780
  ], 40, ko), [
1781
- [fe, l.value]
1781
+ [pe, l.value]
1782
1782
  ])
1783
1783
  ]))
1784
1784
  ], 2));
1785
1785
  }
1786
- }), zo = ["disabled"], Fo = ["disabled", "aria-current", "aria-label", "onClick"], So = ["disabled"], nr = /* @__PURE__ */ Y({
1786
+ }), Bo = ["disabled"], Fo = ["disabled", "aria-current", "aria-label", "onClick"], So = ["disabled"], zr = /* @__PURE__ */ G({
1787
1787
  __name: "pagination",
1788
1788
  props: {
1789
1789
  modelValue: { default: 1 },
@@ -1801,43 +1801,43 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(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, _, h) => Math.min(h, Math.max(_, v)), d = (v, _) => {
1805
- if (_ < v)
1804
+ const r = t, o = e, a = (v, $, k) => Math.min(k, Math.max($, v)), d = (v, $) => {
1805
+ if ($ < v)
1806
1806
  return [];
1807
- const h = [];
1808
- for (let C = v; C <= _; C += 1)
1809
- h.push(C);
1810
- return h;
1811
- }, i = m(() => {
1807
+ const k = [];
1808
+ for (let w = v; w <= $; w += 1)
1809
+ k.push(w);
1810
+ return k;
1811
+ }, i = y(() => {
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 = 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
- if (v <= M)
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(() => {
1816
+ }), c = y(() => a(Math.floor(r.modelValue), 1, i.value)), l = y(() => c.value <= 1), u = y(() => c.value >= i.value), s = y(() => r.disabled || i.value <= 1), n = y(() => {
1817
+ const v = i.value, $ = c.value, k = Math.max(0, Math.floor(r.siblingCount)), w = Math.max(0, Math.floor(r.boundaryCount)), D = k * 2 + w * 2 + 3, L = [];
1818
+ if (v <= D)
1819
+ return d(1, v).map((S) => ({ key: `page-${S}`, type: "page", page: S }));
1820
+ const H = d(1, w), I = d(v - w + 1, v), M = Math.max(Math.min($ - k, v - w - k * 2 - 1), w + 2), E = Math.min(Math.max($ + k, w + k * 2 + 2), v - w - 1);
1821
+ for (const S of H)
1822
+ L.push({ key: `page-${S}`, type: "page", page: S });
1823
+ M > w + 2 ? L.push({ key: "ellipsis-start", type: "ellipsis", page: -1 }) : w + 1 <= v - w && L.push({ key: `page-${w + 1}`, type: "page", page: w + 1 });
1824
+ for (const S of d(M, E))
1825
+ L.push({ key: `page-${S}`, type: "page", page: S });
1826
+ E < v - w - 1 ? L.push({ key: "ellipsis-end", type: "ellipsis", page: -2 }) : v - w > w && L.push({ key: `page-${v - w}`, type: "page", page: v - w });
1827
+ for (const S of I)
1828
+ L.push({ key: `page-${S}`, type: "page", page: S });
1829
+ return L;
1830
+ }), f = y(() => {
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
- }), p = (v, _) => {
1833
+ }), p = (v, $) => {
1834
1834
  if (s.value)
1835
1835
  return;
1836
- const h = a(v, 1, i.value);
1837
- h !== r.modelValue && (o("update:modelValue", h), o("change", h, _));
1836
+ const k = a(v, 1, i.value);
1837
+ k !== r.modelValue && (o("update:modelValue", k), o("change", k, $));
1838
1838
  };
1839
- return (v, _) => (g(), y("nav", {
1840
- class: R(f.value),
1839
+ return (v, $) => (m(), _("nav", {
1840
+ class: T(f.value),
1841
1841
  "aria-label": "Pagination"
1842
1842
  }, [
1843
1843
  B("button", {
@@ -1845,24 +1845,24 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1845
1845
  type: "button",
1846
1846
  disabled: s.value || l.value,
1847
1847
  "aria-label": "Previous page",
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"
1848
+ onClick: $[0] || ($[0] = (k) => p(c.value - 1, k))
1849
+ }, R(v.prevLabel), 9, Bo),
1850
+ (m(!0), _(ae, null, ve(n.value, (k) => (m(), _("button", {
1851
+ key: k.key,
1852
+ class: T(["vf-pagination__item", {
1853
+ "is-current": k.type === "page" && k.page === c.value,
1854
+ "is-ellipsis": k.type === "ellipsis"
1855
1855
  }]),
1856
1856
  type: "button",
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)
1857
+ disabled: s.value || k.type === "ellipsis",
1858
+ "aria-current": k.type === "page" && k.page === c.value ? "page" : void 0,
1859
+ "aria-label": k.type === "page" ? `Page ${k.page}` : void 0,
1860
+ onClick: (w) => k.type === "page" && p(k.page, w)
1861
1861
  }, [
1862
- h.type === "page" ? (g(), y(se, { key: 0 }, [
1863
- Q(O(h.page), 1)
1864
- ], 64)) : (g(), y(se, { key: 1 }, [
1865
- Q(O(v.ellipsisLabel), 1)
1862
+ k.type === "page" ? (m(), _(ae, { key: 0 }, [
1863
+ X(R(k.page), 1)
1864
+ ], 64)) : (m(), _(ae, { key: 1 }, [
1865
+ X(R(v.ellipsisLabel), 1)
1866
1866
  ], 64))
1867
1867
  ], 10, Fo))), 128)),
1868
1868
  B("button", {
@@ -1870,14 +1870,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1870
1870
  type: "button",
1871
1871
  disabled: s.value || u.value,
1872
1872
  "aria-label": "Next page",
1873
- onClick: _[1] || (_[1] = (h) => p(c.value + 1, h))
1874
- }, O(v.nextLabel), 9, So)
1873
+ onClick: $[1] || ($[1] = (k) => p(c.value + 1, k))
1874
+ }, R(v.nextLabel), 9, So)
1875
1875
  ], 2));
1876
1876
  }
1877
1877
  }), Vo = ["checked", "disabled"], Lo = {
1878
1878
  key: 0,
1879
1879
  class: "vf-checkbox__label"
1880
- }, sr = /* @__PURE__ */ Y({
1880
+ }, Br = /* @__PURE__ */ G({
1881
1881
  __name: "checkbox",
1882
1882
  props: {
1883
1883
  modelValue: { type: Boolean, default: !1 },
@@ -1887,15 +1887,15 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(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 = m(() => {
1890
+ const r = e, o = t, a = y(() => {
1891
1891
  const i = ["vf-checkbox", `vf-checkbox_${o.variant}`];
1892
1892
  return o.disabled && i.push("vf-checkbox_disabled"), i;
1893
1893
  }), d = (i) => {
1894
1894
  const c = i.target;
1895
1895
  r("update:modelValue", c.checked), r("change", i);
1896
1896
  };
1897
- return (i, c) => (g(), y("label", {
1898
- class: R(a.value)
1897
+ return (i, c) => (m(), _("label", {
1898
+ class: T(a.value)
1899
1899
  }, [
1900
1900
  B("input", {
1901
1901
  class: "vf-checkbox__control",
@@ -1905,14 +1905,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1905
1905
  onChange: d
1906
1906
  }, null, 40, Vo),
1907
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)
1908
+ i.label || i.$slots.default ? (m(), _("span", Lo, [
1909
+ F(i.$slots, "default", {}, () => [
1910
+ X(R(i.label), 1)
1911
1911
  ])
1912
- ])) : T("", !0)
1912
+ ])) : P("", !0)
1913
1913
  ], 2));
1914
1914
  }
1915
- }), ot = Symbol("VueForgeRadioGroup"), To = ["aria-disabled", "aria-label", "aria-labelledby"], ir = /* @__PURE__ */ Y({
1915
+ }), at = Symbol("VueForgeRadioGroup"), To = ["aria-disabled", "aria-label", "aria-labelledby"], Fr = /* @__PURE__ */ G({
1916
1916
  __name: "radio-group",
1917
1917
  props: {
1918
1918
  modelValue: { type: [String, Number, Boolean, null], default: void 0 },
@@ -1925,32 +1925,32 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(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 = m(() => {
1928
+ const r = e, o = t, a = y(() => {
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
1933
  }, i = {
1934
- name: m(() => o.name),
1935
- modelValue: m(() => o.modelValue),
1936
- disabled: m(() => o.disabled),
1937
- variant: m(() => o.variant),
1934
+ name: y(() => o.name),
1935
+ modelValue: y(() => o.modelValue),
1936
+ disabled: y(() => o.disabled),
1937
+ variant: y(() => o.variant),
1938
1938
  onChange: d
1939
1939
  };
1940
- return Ae(ot, i), (c, l) => (g(), y("div", {
1941
- class: R(a.value),
1940
+ return Ke(at, i), (c, l) => (m(), _("div", {
1941
+ class: T(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
- S(c.$slots, "default")
1947
+ F(c.$slots, "default")
1948
1948
  ], 10, To));
1949
1949
  }
1950
1950
  }), Ro = ["name", "value", "checked", "disabled"], Po = {
1951
1951
  key: 0,
1952
1952
  class: "vf-radio__label"
1953
- }, dr = /* @__PURE__ */ Y({
1953
+ }, Sr = /* @__PURE__ */ G({
1954
1954
  __name: "radio-button",
1955
1955
  props: {
1956
1956
  modelValue: { type: [String, Number, Boolean, null], default: void 0 },
@@ -1962,14 +1962,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(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 = 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(() => {
1965
+ const r = e, o = t, a = Oe(at, null), d = y(() => a ? a.modelValue.value : o.modelValue), i = y(() => a ? a.name.value : o.name), c = y(() => a ? a.variant.value : o.variant), l = y(() => (a ? a.disabled.value : !1) || o.disabled), u = y(() => d.value === o.value), s = y(() => {
1966
1966
  const f = ["vf-radio", `vf-radio_${c.value}`];
1967
1967
  return l.value && f.push("vf-radio_disabled"), f;
1968
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
- return (f, p) => (g(), y("label", {
1972
- class: R(s.value)
1971
+ return (f, p) => (m(), _("label", {
1972
+ class: T(s.value)
1973
1973
  }, [
1974
1974
  B("input", {
1975
1975
  class: "vf-radio__control",
@@ -1981,14 +1981,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
1981
1981
  onChange: n
1982
1982
  }, null, 40, Ro),
1983
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
- Q(O(f.label), 1)
1984
+ f.label || f.$slots.default ? (m(), _("span", Po, [
1985
+ F(f.$slots, "default", {}, () => [
1986
+ X(R(f.label), 1)
1987
1987
  ])
1988
- ])) : T("", !0)
1988
+ ])) : P("", !0)
1989
1989
  ], 2));
1990
1990
  }
1991
- }), He = Symbol("VueForgeTabs"), Io = ["aria-orientation", "aria-label", "aria-labelledby"], Mo = { class: "vf-tabs__panels" }, cr = /* @__PURE__ */ Y({
1991
+ }), Ne = Symbol("VueForgeTabs"), Io = ["aria-orientation", "aria-label", "aria-labelledby"], Mo = { class: "vf-tabs__panels" }, Vr = /* @__PURE__ */ G({
1992
1992
  __name: "tabs",
1993
1993
  props: {
1994
1994
  modelValue: { default: void 0 },
@@ -2000,35 +2000,35 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(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, i = (v) => String(v).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), c = m(() => {
2003
+ const o = e, a = t, d = ++r, i = (v) => String(v).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), c = y(() => {
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 = D(null), u = () => l.value ? Array.from(l.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], s = (v) => {
2006
+ }), l = O(null), u = () => l.value ? Array.from(l.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], s = (v) => {
2007
2007
  v && (v.focus(), v.click());
2008
2008
  }, n = (v) => {
2009
2009
  if (a.disabled)
2010
2010
  return;
2011
- const _ = a.orientation === "horizontal", h = v.key, C = _ ? ["ArrowRight"] : ["ArrowDown"], M = _ ? ["ArrowLeft"] : ["ArrowUp"];
2012
- if (![...C, ...M, "Home", "End"].includes(h))
2011
+ const $ = a.orientation === "horizontal", k = v.key, w = $ ? ["ArrowRight"] : ["ArrowDown"], D = $ ? ["ArrowLeft"] : ["ArrowUp"];
2012
+ if (![...w, ...D, "Home", "End"].includes(k))
2013
2013
  return;
2014
- const V = u();
2015
- if (!V.length)
2014
+ const L = u();
2015
+ if (!L.length)
2016
2016
  return;
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
- }, f = (v, _) => {
2021
- o("update:modelValue", v), o("change", v, _);
2017
+ const H = L.findIndex((S) => S.getAttribute("aria-selected") === "true"), I = L.findIndex((S) => S === document.activeElement), M = I >= 0 ? I : Math.max(H, 0);
2018
+ let E = M;
2019
+ w.includes(k) ? E = (M + 1) % L.length : D.includes(k) ? E = (M - 1 + L.length) % L.length : k === "Home" ? E = 0 : k === "End" && (E = L.length - 1), v.preventDefault(), s(L[E]);
2020
+ }, f = (v, $) => {
2021
+ o("update:modelValue", v), o("change", v, $);
2022
2022
  }, p = {
2023
- activeValue: m(() => a.modelValue),
2024
- disabled: m(() => a.disabled),
2025
- orientation: m(() => a.orientation),
2023
+ activeValue: y(() => a.modelValue),
2024
+ disabled: y(() => a.disabled),
2025
+ orientation: y(() => a.orientation),
2026
2026
  onChange: f,
2027
2027
  getTabId: (v) => `vf-tab-${d}-${i(v)}`,
2028
2028
  getPanelId: (v) => `vf-tabpanel-${d}-${i(v)}`
2029
2029
  };
2030
- return Ae(He, p), (v, _) => (g(), y("div", {
2031
- class: R(c.value)
2030
+ return Ke(Ne, p), (v, $) => (m(), _("div", {
2031
+ class: T(c.value)
2032
2032
  }, [
2033
2033
  B("div", {
2034
2034
  ref_key: "list",
@@ -2040,14 +2040,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2040
2040
  "aria-labelledby": v.ariaLabelledby || void 0,
2041
2041
  onKeydown: n
2042
2042
  }, [
2043
- S(v.$slots, "tabs")
2043
+ F(v.$slots, "tabs")
2044
2044
  ], 40, Io),
2045
2045
  B("div", Mo, [
2046
- S(v.$slots, "panels")
2046
+ F(v.$slots, "panels")
2047
2047
  ])
2048
2048
  ], 2));
2049
2049
  }
2050
- }), Do = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"], ur = /* @__PURE__ */ Y({
2050
+ }), Do = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"], Lr = /* @__PURE__ */ G({
2051
2051
  __name: "tab",
2052
2052
  props: {
2053
2053
  value: {},
@@ -2056,12 +2056,12 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2056
2056
  },
2057
2057
  emits: ["change"],
2058
2058
  setup(t, { emit: e }) {
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) => {
2059
+ const r = e, o = t, a = Oe(Ne, null), d = y(() => (a == null ? void 0 : a.activeValue.value) === o.value), i = y(() => ((a == null ? void 0 : a.disabled.value) ?? !1) || o.disabled), c = y(() => a ? a.getTabId(o.value) : void 0), l = y(() => a ? a.getPanelId(o.value) : void 0), u = y(() => i.value ? -1 : d.value ? 0 : -1), s = (n) => {
2060
2060
  !a || i.value || (a.onChange(o.value, n), r("change", o.value, n));
2061
2061
  };
2062
- return (n, f) => (g(), y("button", {
2062
+ return (n, f) => (m(), _("button", {
2063
2063
  id: c.value,
2064
- class: R(["vf-tab", { "vf-tab_active": d.value, "vf-tab_disabled": i.value }]),
2064
+ class: T(["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,
@@ -2070,31 +2070,31 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2070
2070
  tabindex: u.value,
2071
2071
  onClick: s
2072
2072
  }, [
2073
- S(n.$slots, "default", {}, () => [
2074
- Q(O(n.label), 1)
2073
+ F(n.$slots, "default", {}, () => [
2074
+ X(R(n.label), 1)
2075
2075
  ])
2076
2076
  ], 10, Do));
2077
2077
  }
2078
- }), Oo = ["id", "aria-labelledby"], vr = /* @__PURE__ */ Y({
2078
+ }), Oo = ["id", "aria-labelledby"], Tr = /* @__PURE__ */ G({
2079
2079
  __name: "tab-panel",
2080
2080
  props: {
2081
2081
  value: {}
2082
2082
  },
2083
2083
  setup(t) {
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", {
2084
+ const e = t, r = Oe(Ne, null), o = y(() => (r == null ? void 0 : r.activeValue.value) === e.value), a = y(() => r ? r.getTabId(e.value) : void 0), d = y(() => r ? r.getPanelId(e.value) : void 0);
2085
+ return (i, c) => fe((m(), _("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
- S(i.$slots, "default")
2092
+ F(i.$slots, "default")
2093
2093
  ], 8, Oo)), [
2094
- [fe, o.value]
2094
+ [pe, o.value]
2095
2095
  ]);
2096
2096
  }
2097
- }), at = Symbol("VueForgeAccordion"), Eo = ["aria-label", "aria-labelledby"], fr = /* @__PURE__ */ Y({
2097
+ }), rt = Symbol("VueForgeAccordion"), Wo = ["aria-label", "aria-labelledby"], Rr = /* @__PURE__ */ G({
2098
2098
  __name: "accordion",
2099
2099
  props: {
2100
2100
  modelValue: { default: void 0 },
@@ -2108,38 +2108,38 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2108
2108
  emits: ["update:modelValue", "change"],
2109
2109
  setup(t, { emit: e }) {
2110
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(() => {
2111
+ const o = e, a = t, d = ++r, i = (n) => String(n).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), c = y(() => {
2112
2112
  const n = ["vf-accordion", `vf-accordion_${a.variant}`];
2113
2113
  return a.size !== "normal" && n.push(`vf-accordion_${a.size}`), a.disabled && n.push("vf-accordion_disabled"), n;
2114
2114
  }), l = (n) => Array.isArray(n) ? n : n == null ? [] : [n], u = (n, f) => {
2115
2115
  if (a.disabled)
2116
2116
  return;
2117
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);
2118
+ const v = l(a.modelValue), k = v.includes(n) ? v.filter((w) => w !== n) : [...v, n];
2119
+ o("update:modelValue", k), o("change", k, f);
2120
2120
  return;
2121
2121
  }
2122
2122
  const p = a.modelValue === n ? void 0 : n;
2123
2123
  o("update:modelValue", p), o("change", p, f);
2124
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),
2125
+ modelValue: y(() => a.modelValue),
2126
+ multiple: y(() => a.multiple),
2127
+ disabled: y(() => a.disabled),
2128
+ variant: y(() => a.variant),
2129
+ size: y(() => a.size),
2130
2130
  onToggle: u,
2131
2131
  getHeaderId: (n) => `vf-accordion-header-${d}-${i(n)}`,
2132
2132
  getPanelId: (n) => `vf-accordion-panel-${d}-${i(n)}`
2133
2133
  };
2134
- return Ae(at, s), (n, f) => (g(), y("div", {
2135
- class: R(c.value),
2134
+ return Ke(rt, s), (n, f) => (m(), _("div", {
2135
+ class: T(c.value),
2136
2136
  "aria-label": n.ariaLabel || void 0,
2137
2137
  "aria-labelledby": n.ariaLabelledby || void 0
2138
2138
  }, [
2139
- S(n.$slots, "default")
2140
- ], 10, Eo));
2139
+ F(n.$slots, "default")
2140
+ ], 10, Wo));
2141
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({
2142
+ }), Ao = ["id", "disabled", "aria-expanded", "aria-controls"], Eo = { class: "vf-accordion__title" }, Ho = ["id", "aria-labelledby", "aria-hidden"], Ko = { class: "vf-accordion__panel-inner" }, Pr = /* @__PURE__ */ G({
2143
2143
  __name: "accordion-item",
2144
2144
  props: {
2145
2145
  value: {},
@@ -2148,19 +2148,19 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2148
2148
  unmount: { type: Boolean, default: !1 }
2149
2149
  },
2150
2150
  setup(t) {
2151
- const e = t, r = De(at, null), o = m(() => {
2151
+ const e = t, r = Oe(rt, null), o = y(() => {
2152
2152
  if (!r)
2153
2153
  return !1;
2154
2154
  const s = r.modelValue.value;
2155
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(() => {
2156
+ }), a = y(() => ((r == null ? void 0 : r.disabled.value) ?? !1) || e.disabled), d = y(() => r ? r.getHeaderId(e.value) : void 0), i = y(() => r ? r.getPanelId(e.value) : void 0), c = y(() => e.unmount ? o.value : !0), l = y(() => {
2157
2157
  const s = ["vf-accordion-item"];
2158
2158
  return o.value && s.push("vf-accordion-item_open"), a.value && s.push("vf-accordion-item_disabled"), s;
2159
2159
  }), u = (s) => {
2160
2160
  !r || a.value || r.onToggle(e.value, s);
2161
2161
  };
2162
- return (s, n) => (g(), y("div", {
2163
- class: R(l.value)
2162
+ return (s, n) => (m(), _("div", {
2163
+ class: T(l.value)
2164
2164
  }, [
2165
2165
  B("button", {
2166
2166
  id: d.value,
@@ -2171,37 +2171,37 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2171
2171
  "aria-controls": i.value,
2172
2172
  onClick: u
2173
2173
  }, [
2174
- B("span", Ao, [
2175
- S(s.$slots, "title", {}, () => [
2176
- Q(O(s.title), 1)
2174
+ B("span", Eo, [
2175
+ F(s.$slots, "title", {}, () => [
2176
+ X(R(s.title), 1)
2177
2177
  ])
2178
2178
  ]),
2179
2179
  n[0] || (n[0] = B("span", {
2180
2180
  class: "vf-accordion__icon",
2181
2181
  "aria-hidden": "true"
2182
2182
  }, null, -1))
2183
- ], 8, Wo),
2184
- c.value ? (g(), y("div", {
2183
+ ], 8, Ao),
2184
+ c.value ? (m(), _("div", {
2185
2185
  key: 0,
2186
2186
  id: i.value,
2187
- class: R(["vf-accordion__panel", { "vf-accordion__panel_open": o.value }]),
2187
+ class: T(["vf-accordion__panel", { "vf-accordion__panel_open": o.value }]),
2188
2188
  role: "region",
2189
2189
  "aria-labelledby": d.value,
2190
2190
  "aria-hidden": o.value ? void 0 : "true"
2191
2191
  }, [
2192
2192
  B("div", Ko, [
2193
- S(s.$slots, "default")
2193
+ F(s.$slots, "default")
2194
2194
  ])
2195
- ], 10, Ho)) : T("", !0)
2195
+ ], 10, Ho)) : P("", !0)
2196
2196
  ], 2));
2197
2197
  }
2198
- }), No = ["data-severity"], Yo = { class: "vf-toast__body" }, Go = {
2198
+ }), No = ["data-severity"], Go = { class: "vf-toast__body" }, Yo = {
2199
2199
  key: 0,
2200
2200
  class: "vf-toast__title"
2201
2201
  }, jo = {
2202
2202
  key: 1,
2203
2203
  class: "vf-toast__message"
2204
- }, br = /* @__PURE__ */ Y({
2204
+ }, Ir = /* @__PURE__ */ G({
2205
2205
  __name: "toast",
2206
2206
  props: {
2207
2207
  modelValue: { type: Boolean, default: !1 },
@@ -2224,56 +2224,56 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2224
2224
  }, c = () => {
2225
2225
  d(), r("update:modelValue", !1), r("close");
2226
2226
  };
2227
- return te(
2227
+ return ee(
2228
2228
  () => o.modelValue,
2229
2229
  (l) => {
2230
2230
  l && r("open"), i();
2231
2231
  },
2232
2232
  { immediate: !0 }
2233
- ), we(() => {
2233
+ ), $e(() => {
2234
2234
  d();
2235
- }), (l, u) => ve((g(), y("div", {
2235
+ }), (l, u) => fe((m(), _("div", {
2236
2236
  class: "vf-toast",
2237
2237
  role: "status",
2238
2238
  "aria-live": "polite",
2239
2239
  "data-severity": l.severity
2240
2240
  }, [
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", {}, () => [
2245
- Q(O(l.message), 1)
2241
+ B("div", Go, [
2242
+ l.title ? (m(), _("div", Yo, R(l.title), 1)) : P("", !0),
2243
+ l.message || l.$slots.default ? (m(), _("div", jo, [
2244
+ F(l.$slots, "default", {}, () => [
2245
+ X(R(l.message), 1)
2246
2246
  ])
2247
- ])) : T("", !0)
2247
+ ])) : P("", !0)
2248
2248
  ]),
2249
- l.closable ? (g(), y("button", {
2249
+ l.closable ? (m(), _("button", {
2250
2250
  key: 0,
2251
2251
  class: "vf-toast__close",
2252
2252
  type: "button",
2253
2253
  onClick: c
2254
2254
  }, [
2255
- S(l.$slots, "close", {}, () => [
2256
- u[0] || (u[0] = Q("×"))
2255
+ F(l.$slots, "close", {}, () => [
2256
+ u[0] || (u[0] = X("×"))
2257
2257
  ])
2258
- ])) : T("", !0)
2258
+ ])) : P("", !0)
2259
2259
  ], 8, No)), [
2260
- [fe, l.modelValue]
2260
+ [pe, l.modelValue]
2261
2261
  ]);
2262
2262
  }
2263
- }), gr = /* @__PURE__ */ Y({
2263
+ }), Mr = /* @__PURE__ */ G({
2264
2264
  __name: "toast-container",
2265
2265
  props: {
2266
2266
  position: { default: "top-right" }
2267
2267
  },
2268
2268
  setup(t) {
2269
- const e = t, r = m(() => `vf-toast-container_${e.position}`);
2270
- return (o, a) => (g(), le($e, { to: "body" }, [
2269
+ const e = t, r = y(() => `vf-toast-container_${e.position}`);
2270
+ return (o, a) => (m(), ne(we, { to: "body" }, [
2271
2271
  B("div", {
2272
- class: R(["vf-toast-container", r.value]),
2272
+ class: T(["vf-toast-container", r.value]),
2273
2273
  role: "region",
2274
2274
  "aria-live": "polite"
2275
2275
  }, [
2276
- S(o.$slots, "default")
2276
+ F(o.$slots, "default")
2277
2277
  ], 2)
2278
2278
  ]));
2279
2279
  }
@@ -2290,7 +2290,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2290
2290
  }, Qo = {
2291
2291
  key: 1,
2292
2292
  class: "vf-alert__actions"
2293
- }, mr = /* @__PURE__ */ Y({
2293
+ }, Dr = /* @__PURE__ */ G({
2294
2294
  __name: "alert",
2295
2295
  props: {
2296
2296
  modelValue: { type: Boolean },
@@ -2302,8 +2302,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2302
2302
  },
2303
2303
  emits: ["update:modelValue", "close"],
2304
2304
  setup(t, { emit: e }) {
2305
- const r = e, o = t, a = D(!0), d = m(() => typeof o.modelValue == "boolean"), i = m(() => d.value ? o.modelValue : a.value);
2306
- te(
2305
+ const r = e, o = t, a = O(!0), d = y(() => typeof o.modelValue == "boolean"), i = y(() => d.value ? o.modelValue : a.value);
2306
+ ee(
2307
2307
  () => o.modelValue,
2308
2308
  (l) => {
2309
2309
  typeof l == "boolean" && (a.value = l);
@@ -2313,50 +2313,50 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2313
2313
  const c = () => {
2314
2314
  d.value ? r("update:modelValue", !1) : a.value = !1, r("close");
2315
2315
  };
2316
- return (l, u) => ve((g(), y("div", {
2316
+ return (l, u) => fe((m(), _("div", {
2317
2317
  class: "vf-alert",
2318
2318
  role: "alert",
2319
2319
  "data-severity": l.severity
2320
2320
  }, [
2321
- l.$slots.icon || l.icon ? (g(), y("div", qo, [
2322
- S(l.$slots, "icon", {}, () => [
2323
- Q(O(l.icon), 1)
2321
+ l.$slots.icon || l.icon ? (m(), _("div", qo, [
2322
+ F(l.$slots, "icon", {}, () => [
2323
+ X(R(l.icon), 1)
2324
2324
  ])
2325
- ])) : T("", !0),
2325
+ ])) : P("", !0),
2326
2326
  B("div", Uo, [
2327
- l.title || l.$slots.title ? (g(), y("div", Zo, [
2328
- S(l.$slots, "title", {}, () => [
2329
- Q(O(l.title), 1)
2327
+ l.title || l.$slots.title ? (m(), _("div", Zo, [
2328
+ F(l.$slots, "title", {}, () => [
2329
+ X(R(l.title), 1)
2330
2330
  ])
2331
- ])) : T("", !0),
2332
- l.message || l.$slots.default ? (g(), y("div", Jo, [
2333
- S(l.$slots, "default", {}, () => [
2334
- Q(O(l.message), 1)
2331
+ ])) : P("", !0),
2332
+ l.message || l.$slots.default ? (m(), _("div", Jo, [
2333
+ F(l.$slots, "default", {}, () => [
2334
+ X(R(l.message), 1)
2335
2335
  ])
2336
- ])) : T("", !0)
2336
+ ])) : P("", !0)
2337
2337
  ]),
2338
- l.$slots.actions ? (g(), y("div", Qo, [
2339
- S(l.$slots, "actions")
2340
- ])) : T("", !0),
2341
- l.closable ? (g(), y("button", {
2338
+ l.$slots.actions ? (m(), _("div", Qo, [
2339
+ F(l.$slots, "actions")
2340
+ ])) : P("", !0),
2341
+ l.closable ? (m(), _("button", {
2342
2342
  key: 2,
2343
2343
  class: "vf-alert__close",
2344
2344
  type: "button",
2345
2345
  "aria-label": "Close",
2346
2346
  onClick: c
2347
2347
  }, [
2348
- S(l.$slots, "close", {}, () => [
2349
- u[0] || (u[0] = Q("×"))
2348
+ F(l.$slots, "close", {}, () => [
2349
+ u[0] || (u[0] = X("×"))
2350
2350
  ])
2351
- ])) : T("", !0)
2351
+ ])) : P("", !0)
2352
2352
  ], 8, Xo)), [
2353
- [fe, i.value]
2353
+ [pe, i.value]
2354
2354
  ]);
2355
2355
  }
2356
2356
  }), ea = ["checked", "disabled"], ta = {
2357
2357
  key: 0,
2358
2358
  class: "vf-switch__label"
2359
- }, hr = /* @__PURE__ */ Y({
2359
+ }, Or = /* @__PURE__ */ G({
2360
2360
  __name: "switch",
2361
2361
  props: {
2362
2362
  modelValue: { type: Boolean, default: !1 },
@@ -2365,15 +2365,15 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2365
2365
  },
2366
2366
  emits: ["update:modelValue", "change"],
2367
2367
  setup(t, { emit: e }) {
2368
- const r = e, o = t, a = m(() => {
2368
+ const r = e, o = t, a = y(() => {
2369
2369
  const i = ["vf-switch"];
2370
2370
  return o.disabled && i.push("vf-switch_disabled"), i;
2371
2371
  }), d = (i) => {
2372
2372
  const c = i.target;
2373
2373
  r("update:modelValue", c.checked), r("change", i);
2374
2374
  };
2375
- return (i, c) => (g(), y("label", {
2376
- class: R(a.value)
2375
+ return (i, c) => (m(), _("label", {
2376
+ class: T(a.value)
2377
2377
  }, [
2378
2378
  B("input", {
2379
2379
  class: "vf-switch__control",
@@ -2385,23 +2385,23 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2385
2385
  c[0] || (c[0] = B("span", { class: "vf-switch__track" }, [
2386
2386
  B("span", { class: "vf-switch__thumb" })
2387
2387
  ], -1)),
2388
- i.label || i.$slots.default ? (g(), y("span", ta, [
2389
- S(i.$slots, "default", {}, () => [
2390
- Q(O(i.label), 1)
2388
+ i.label || i.$slots.default ? (m(), _("span", ta, [
2389
+ F(i.$slots, "default", {}, () => [
2390
+ X(R(i.label), 1)
2391
2391
  ])
2392
- ])) : T("", !0)
2392
+ ])) : P("", !0)
2393
2393
  ], 2));
2394
2394
  }
2395
- }), oa = { class: "vf-popover" }, aa = ["aria-expanded", "onKeydown"], yr = /* @__PURE__ */ Y({
2395
+ }), oa = { class: "vf-popover" }, aa = ["aria-expanded", "onKeydown"], Wr = /* @__PURE__ */ G({
2396
2396
  __name: "popover",
2397
2397
  emits: ["click", "onClick"],
2398
2398
  setup(t, { expose: e, emit: r }) {
2399
- const o = r, a = nt({ visible: !1 });
2399
+ const o = r, a = st({ visible: !1 });
2400
2400
  let d = 0;
2401
2401
  const i = `vf-popover-panel-${++d}`, c = () => a.visible = !0, l = () => a.visible = !1, u = () => a.visible = !a.visible, s = () => {
2402
2402
  u(), o("click"), o("onClick");
2403
2403
  };
2404
- return e({ show: c, hide: l, toggle: u }), (n, f) => (g(), y("div", oa, [
2404
+ return e({ show: c, hide: l, toggle: u }), (n, f) => (m(), _("div", oa, [
2405
2405
  B("div", {
2406
2406
  class: "vf-popover__button",
2407
2407
  role: "button",
@@ -2411,54 +2411,54 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2411
2411
  "aria-controls": i,
2412
2412
  onClick: s,
2413
2413
  onKeydown: [
2414
- U(G(s, ["prevent"]), ["enter"]),
2415
- U(G(s, ["prevent"]), ["space"])
2414
+ Z(U(s, ["prevent"]), ["enter"]),
2415
+ Z(U(s, ["prevent"]), ["space"])
2416
2416
  ]
2417
2417
  }, [
2418
- S(n.$slots, "button")
2418
+ F(n.$slots, "button")
2419
2419
  ], 40, aa),
2420
- ve(Ue(_t, {
2420
+ fe(Je(_t, {
2421
2421
  id: i,
2422
2422
  class: "vf-popover__wrapper"
2423
- }, st({
2424
- default: ye(() => [
2423
+ }, it({
2424
+ default: _e(() => [
2425
2425
  f[0] || (f[0] = B("div", { class: "vf-popover__arrow" }, null, -1))
2426
2426
  ]),
2427
2427
  _: 2
2428
2428
  }, [
2429
2429
  n.$slots.default ? {
2430
2430
  name: "default",
2431
- fn: ye(() => [
2432
- S(n.$slots, "default")
2431
+ fn: _e(() => [
2432
+ F(n.$slots, "default")
2433
2433
  ]),
2434
2434
  key: "0"
2435
2435
  } : void 0,
2436
2436
  n.$slots.header || n.$slots.popoverHeader ? {
2437
2437
  name: "header",
2438
- fn: ye(() => [
2439
- S(n.$slots, "header"),
2440
- n.$slots.header ? T("", !0) : S(n.$slots, "popoverHeader", { key: 0 })
2438
+ fn: _e(() => [
2439
+ F(n.$slots, "header"),
2440
+ n.$slots.header ? P("", !0) : F(n.$slots, "popoverHeader", { key: 0 })
2441
2441
  ]),
2442
2442
  key: "1"
2443
2443
  } : void 0,
2444
2444
  n.$slots.body || n.$slots.popoverBody ? {
2445
2445
  name: "body",
2446
- fn: ye(() => [
2447
- S(n.$slots, "body"),
2448
- n.$slots.body ? T("", !0) : S(n.$slots, "popoverBody", { key: 0 })
2446
+ fn: _e(() => [
2447
+ F(n.$slots, "body"),
2448
+ n.$slots.body ? P("", !0) : F(n.$slots, "popoverBody", { key: 0 })
2449
2449
  ]),
2450
2450
  key: "2"
2451
2451
  } : void 0,
2452
2452
  n.$slots.footer || n.$slots.popoverFooter ? {
2453
2453
  name: "footer",
2454
- fn: ye(() => [
2455
- S(n.$slots, "footer"),
2456
- n.$slots.footer ? T("", !0) : S(n.$slots, "popoverFooter", { key: 0 })
2454
+ fn: _e(() => [
2455
+ F(n.$slots, "footer"),
2456
+ n.$slots.footer ? P("", !0) : F(n.$slots, "popoverFooter", { key: 0 })
2457
2457
  ]),
2458
2458
  key: "3"
2459
2459
  } : void 0
2460
2460
  ]), 1536), [
2461
- [fe, a.visible]
2461
+ [pe, a.visible]
2462
2462
  ])
2463
2463
  ]));
2464
2464
  }
@@ -2471,7 +2471,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2471
2471
  }, sa = {
2472
2472
  key: 3,
2473
2473
  class: "vf-modal__footer"
2474
- }, _r = /* @__PURE__ */ Y({
2474
+ }, Ar = /* @__PURE__ */ G({
2475
2475
  __name: "modal",
2476
2476
  props: {
2477
2477
  modelValue: { type: Boolean, default: !1 },
@@ -2486,55 +2486,55 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2486
2486
  setup(t, { expose: e, emit: r }) {
2487
2487
  const o = r, a = t;
2488
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(() => {
2490
- const x = ["vf-modal"];
2491
- return a.size !== "md" && x.push(`vf-modal_${a.size}`), x;
2492
- }), h = () => o("update:modelValue", !0), C = () => {
2489
+ const u = O(null), s = He(), n = `vf-modal-title-${++d}`, f = `vf-modal-body-${d}`, p = y(() => !!a.title || !!s.header), v = y(() => !!s.body || !!s.default), $ = y(() => {
2490
+ const b = ["vf-modal"];
2491
+ return a.size !== "md" && b.push(`vf-modal_${a.size}`), b;
2492
+ }), k = () => o("update:modelValue", !0), w = () => {
2493
2493
  o("update:modelValue", !1), o("close");
2494
- }, M = () => {
2495
- a.closeOnOverlay && C();
2496
- }, V = (x) => {
2497
- !a.modelValue || !a.closeOnEsc || x.key === "Escape" && (x.preventDefault(), C());
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 = () => {
2499
- var k;
2500
- const x = A();
2501
- x.length ? x[0].focus() : (k = u.value) == null || k.focus();
2502
- }, I = (x) => {
2503
- var X;
2504
- if (x.key !== "Tab")
2494
+ }, D = () => {
2495
+ a.closeOnOverlay && w();
2496
+ }, L = (b) => {
2497
+ !a.modelValue || !a.closeOnEsc || b.key === "Escape" && (b.preventDefault(), w());
2498
+ }, 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((h) => !h.hasAttribute("disabled") && !h.getAttribute("aria-hidden")) : [], I = () => {
2499
+ var h;
2500
+ const b = H();
2501
+ b.length ? b[0].focus() : (h = u.value) == null || h.focus();
2502
+ }, M = (b) => {
2503
+ var q;
2504
+ if (b.key !== "Tab")
2505
2505
  return;
2506
- const k = A();
2507
- if (!k.length) {
2508
- x.preventDefault(), (X = u.value) == null || X.focus();
2506
+ const h = H();
2507
+ if (!h.length) {
2508
+ b.preventDefault(), (q = u.value) == null || q.focus();
2509
2509
  return;
2510
2510
  }
2511
- const L = k[0], K = k[k.length - 1], j = document.activeElement;
2512
- if (x.shiftKey && j === L) {
2513
- x.preventDefault(), K.focus();
2511
+ const C = h[0], W = h[h.length - 1], A = document.activeElement;
2512
+ if (b.shiftKey && A === C) {
2513
+ b.preventDefault(), W.focus();
2514
2514
  return;
2515
2515
  }
2516
- !x.shiftKey && j === K && (x.preventDefault(), L.focus());
2517
- }, W = () => {
2516
+ !b.shiftKey && A === W && (b.preventDefault(), C.focus());
2517
+ }, E = () => {
2518
2518
  !a.lockScroll || typeof document > "u" || (i === 0 && (c = document.body.style.overflow, document.body.style.overflow = "hidden"), i += 1);
2519
- }, F = () => {
2519
+ }, S = () => {
2520
2520
  !a.lockScroll || typeof document > "u" || (i = Math.max(0, i - 1), i === 0 && (document.body.style.overflow = c));
2521
2521
  };
2522
- return te(
2522
+ return ee(
2523
2523
  () => a.modelValue,
2524
- async (x) => {
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()));
2524
+ async (b) => {
2525
+ b ? (typeof document < "u" && (l = document.activeElement), E(), o("open"), await Ce(), I(), typeof document < "u" && document.addEventListener("keydown", L)) : (S(), typeof document < "u" && (document.removeEventListener("keydown", L), l == null || l.focus()));
2526
2526
  },
2527
2527
  { immediate: !0 }
2528
- ), we(() => {
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),
2528
+ ), $e(() => {
2529
+ S(), typeof document < "u" && document.removeEventListener("keydown", L);
2530
+ }), e({ open: k, close: w }), (b, h) => (m(), ne(we, { to: "body" }, [
2531
+ fe(B("div", {
2532
+ class: T($.value),
2533
2533
  role: "presentation"
2534
2534
  }, [
2535
2535
  B("div", {
2536
2536
  class: "vf-modal__overlay",
2537
- onClick: M
2537
+ onClick: D
2538
2538
  }),
2539
2539
  B("div", {
2540
2540
  ref_key: "panel",
@@ -2545,43 +2545,43 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2545
2545
  "aria-labelledby": p.value ? n : void 0,
2546
2546
  "aria-describedby": v.value ? f : void 0,
2547
2547
  tabindex: "-1",
2548
- onKeydown: I
2548
+ onKeydown: M
2549
2549
  }, [
2550
- p.value ? (g(), y("div", la, [
2550
+ p.value ? (m(), _("div", la, [
2551
2551
  B("div", {
2552
2552
  id: n,
2553
2553
  class: "vf-modal__header-content"
2554
2554
  }, [
2555
- S(x.$slots, "header", {}, () => [
2556
- x.title ? (g(), y("h3", na, O(x.title), 1)) : T("", !0)
2555
+ F(b.$slots, "header", {}, () => [
2556
+ b.title ? (m(), _("h3", na, R(b.title), 1)) : P("", !0)
2557
2557
  ])
2558
2558
  ])
2559
- ])) : T("", !0),
2560
- x.showClose ? S(x.$slots, "close", {
2559
+ ])) : P("", !0),
2560
+ b.showClose ? F(b.$slots, "close", {
2561
2561
  key: 1,
2562
- close: C
2562
+ close: w
2563
2563
  }, () => [
2564
2564
  B("button", {
2565
2565
  type: "button",
2566
2566
  class: "vf-modal__close",
2567
2567
  "aria-label": "Close",
2568
- onClick: C
2568
+ onClick: w
2569
2569
  }, "×")
2570
- ]) : T("", !0),
2571
- x.$slots.body || x.$slots.default ? (g(), y("div", {
2570
+ ]) : P("", !0),
2571
+ b.$slots.body || b.$slots.default ? (m(), _("div", {
2572
2572
  key: 2,
2573
2573
  id: f,
2574
2574
  class: "vf-modal__body"
2575
2575
  }, [
2576
- S(x.$slots, "body"),
2577
- x.$slots.body ? T("", !0) : S(x.$slots, "default", { key: 0 })
2578
- ])) : T("", !0),
2579
- x.$slots.footer ? (g(), y("div", sa, [
2580
- S(x.$slots, "footer")
2581
- ])) : T("", !0)
2576
+ F(b.$slots, "body"),
2577
+ b.$slots.body ? P("", !0) : F(b.$slots, "default", { key: 0 })
2578
+ ])) : P("", !0),
2579
+ b.$slots.footer ? (m(), _("div", sa, [
2580
+ F(b.$slots, "footer")
2581
+ ])) : P("", !0)
2582
2582
  ], 40, ra)
2583
2583
  ], 2), [
2584
- [fe, x.modelValue]
2584
+ [pe, b.modelValue]
2585
2585
  ])
2586
2586
  ]));
2587
2587
  }
@@ -2589,7 +2589,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2589
2589
  key: 0,
2590
2590
  class: "vf-tooltip__arrow",
2591
2591
  "aria-hidden": "true"
2592
- }, kr = /* @__PURE__ */ Y({
2592
+ }, Er = /* @__PURE__ */ G({
2593
2593
  __name: "tooltip",
2594
2594
  props: {
2595
2595
  text: { default: "" },
@@ -2600,7 +2600,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2600
2600
  setup(t) {
2601
2601
  const e = t;
2602
2602
  let r = 0;
2603
- const o = D(null), a = D(null), d = D(!1), i = D("top"), c = `vf-tooltip-${++r}`;
2603
+ const o = O(null), a = O(null), d = O(!1), i = O("top"), c = `vf-tooltip-${++r}`;
2604
2604
  let l = null;
2605
2605
  const u = () => {
2606
2606
  e.disabled || (d.value = !0);
@@ -2609,46 +2609,46 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2609
2609
  }, n = () => {
2610
2610
  if (!o.value || !a.value)
2611
2611
  return;
2612
- const p = o.value, v = a.value, _ = async () => {
2612
+ const p = o.value, v = a.value, $ = async () => {
2613
2613
  const {
2614
- x: V,
2615
- y: A,
2616
- placement: P
2617
- } = await Te(p, v, {
2614
+ x: L,
2615
+ y: H,
2616
+ placement: I
2617
+ } = await Re(p, v, {
2618
2618
  placement: e.placement,
2619
2619
  strategy: "fixed",
2620
- middleware: [Ve(8), Se(), Dt()]
2620
+ middleware: [Le(8), Ve(), Dt()]
2621
2621
  });
2622
- i.value = P ?? e.placement, v.style.left = `${V}px`, v.style.top = `${A}px`;
2623
- }, h = async () => {
2624
- await _();
2625
- }, C = Le(p, () => {
2626
- h();
2627
- }), M = () => {
2628
- h();
2622
+ i.value = I ?? e.placement, v.style.left = `${L}px`, v.style.top = `${H}px`;
2623
+ }, k = async () => {
2624
+ await $();
2625
+ }, w = Te(p, () => {
2626
+ k();
2627
+ }), D = () => {
2628
+ k();
2629
2629
  };
2630
- document.addEventListener("scroll", M, !0), window.addEventListener("resize", M, !1), l = {
2631
- update: h,
2630
+ document.addEventListener("scroll", D, !0), window.addEventListener("resize", D, !1), l = {
2631
+ update: k,
2632
2632
  destroy: () => {
2633
- C(), document.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M, !1);
2633
+ w(), document.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D, !1);
2634
2634
  }
2635
2635
  }, l.update();
2636
2636
  };
2637
- te(d, async (p) => {
2637
+ ee(d, async (p) => {
2638
2638
  if (!p) {
2639
2639
  l && (l.destroy(), l = null);
2640
2640
  return;
2641
2641
  }
2642
2642
  l || n(), l == null || l.update();
2643
- }), Fe(() => {
2643
+ }), Se(() => {
2644
2644
  d.value && n();
2645
- }), we(() => {
2645
+ }), $e(() => {
2646
2646
  l == null || l.destroy(), l = null;
2647
2647
  });
2648
- const f = m(() => !!e.text || !!(a.value && a.value.textContent));
2649
- return te(f, (p) => {
2648
+ const f = y(() => !!e.text || !!(a.value && a.value.textContent));
2649
+ return ee(f, (p) => {
2650
2650
  p || (d.value = !1);
2651
- }), (p, v) => (g(), y(se, null, [
2651
+ }), (p, v) => (m(), _(ae, null, [
2652
2652
  B("span", {
2653
2653
  ref_key: "trigger",
2654
2654
  ref: o,
@@ -2659,10 +2659,10 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2659
2659
  onFocus: u,
2660
2660
  onBlur: s
2661
2661
  }, [
2662
- S(p.$slots, "default")
2662
+ F(p.$slots, "default")
2663
2663
  ], 544),
2664
- (g(), le($e, { to: "body" }, [
2665
- ve(B("div", {
2664
+ (m(), ne(we, { to: "body" }, [
2665
+ fe(B("div", {
2666
2666
  id: c,
2667
2667
  ref_key: "panel",
2668
2668
  ref: a,
@@ -2671,18 +2671,18 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2671
2671
  "data-placement": i.value
2672
2672
  }, [
2673
2673
  B("span", da, [
2674
- S(p.$slots, "content", {}, () => [
2675
- Q(O(p.text), 1)
2674
+ F(p.$slots, "content", {}, () => [
2675
+ X(R(p.text), 1)
2676
2676
  ])
2677
2677
  ]),
2678
- p.arrow ? (g(), y("span", ca)) : T("", !0)
2678
+ p.arrow ? (m(), _("span", ca)) : P("", !0)
2679
2679
  ], 8, ia), [
2680
- [fe, d.value]
2680
+ [pe, d.value]
2681
2681
  ])
2682
2682
  ]))
2683
2683
  ], 64));
2684
2684
  }
2685
- }), Cr = /* @__PURE__ */ Y({
2685
+ }), Hr = /* @__PURE__ */ G({
2686
2686
  __name: "skeleton",
2687
2687
  props: {
2688
2688
  width: {},
@@ -2694,40 +2694,297 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2694
2694
  const e = t, r = (d) => {
2695
2695
  if (!(d == null || d === ""))
2696
2696
  return typeof d == "number" ? `${d}px` : d;
2697
- }, o = m(() => {
2697
+ }, o = y(() => {
2698
2698
  const d = r(e.width), i = r(e.height), c = {};
2699
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(() => {
2700
+ }), a = y(() => {
2701
2701
  const d = ["vf-skeleton", `vf-skeleton_${e.variant}`];
2702
2702
  return e.animated && d.push("vf-skeleton_animated"), d;
2703
2703
  });
2704
- return (d, i) => (g(), y("div", {
2705
- class: R(a.value),
2706
- style: it(o.value),
2704
+ return (d, i) => (m(), _("div", {
2705
+ class: T(a.value),
2706
+ style: Fe(o.value),
2707
2707
  "aria-hidden": "true"
2708
2708
  }, null, 6));
2709
2709
  }
2710
- }), ua = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], va = (t) => {
2710
+ }), ua = ["aria-label", "aria-valuenow", "data-severity"], va = {
2711
+ key: 0,
2712
+ class: "vf-progress__track"
2713
+ }, fa = {
2714
+ key: 1,
2715
+ class: "vf-progress__circle"
2716
+ }, pa = {
2717
+ viewBox: "0 0 100 100",
2718
+ class: "vf-progress__svg",
2719
+ "aria-hidden": "true"
2720
+ }, ba = {
2721
+ key: 2,
2722
+ class: "vf-progress__label"
2723
+ }, Kr = /* @__PURE__ */ G({
2724
+ __name: "progress",
2725
+ props: {
2726
+ value: {},
2727
+ variant: { default: "linear" },
2728
+ size: { default: "normal" },
2729
+ label: { default: "" },
2730
+ showValue: { type: Boolean, default: !1 },
2731
+ severity: { default: "neutral" },
2732
+ ariaLabel: { default: "" }
2733
+ },
2734
+ setup(t) {
2735
+ const e = t, r = He(), o = (p) => Math.min(100, Math.max(0, p)), a = y(() => e.value === void 0 || e.value === null || Number.isNaN(e.value)), d = y(() => a.value ? 0 : o(Number(e.value))), i = y(() => a.value ? void 0 : d.value), c = y(() => !!r.default), l = y(() => e.label ? e.label : e.showValue && !a.value ? `${Math.round(d.value)}%` : ""), u = y(() => {
2736
+ const p = ["vf-progress", `vf-progress_${e.variant}`, `vf-progress_size-${e.size}`];
2737
+ return a.value && p.push("vf-progress_indeterminate"), p;
2738
+ }), s = y(() => {
2739
+ if (!a.value)
2740
+ return { width: `${d.value}%` };
2741
+ }), n = 2 * Math.PI * 45, f = y(() => {
2742
+ if (a.value)
2743
+ return {
2744
+ strokeDasharray: `${n}px`,
2745
+ strokeDashoffset: `${n * 0.75}px`
2746
+ };
2747
+ const p = n - d.value / 100 * n;
2748
+ return {
2749
+ strokeDasharray: `${n}px`,
2750
+ strokeDashoffset: `${p}px`
2751
+ };
2752
+ });
2753
+ return (p, v) => (m(), _("div", {
2754
+ class: T(u.value),
2755
+ role: "progressbar",
2756
+ "aria-label": p.ariaLabel || void 0,
2757
+ "aria-valuemin": "0",
2758
+ "aria-valuemax": "100",
2759
+ "aria-valuenow": i.value,
2760
+ "data-severity": p.severity
2761
+ }, [
2762
+ p.variant === "linear" ? (m(), _("div", va, [
2763
+ B("div", {
2764
+ class: "vf-progress__bar",
2765
+ style: Fe(s.value)
2766
+ }, null, 4)
2767
+ ])) : (m(), _("div", fa, [
2768
+ (m(), _("svg", pa, [
2769
+ v[0] || (v[0] = B("circle", {
2770
+ class: "vf-progress__circle-track",
2771
+ cx: "50",
2772
+ cy: "50",
2773
+ r: "45"
2774
+ }, null, -1)),
2775
+ B("circle", {
2776
+ class: "vf-progress__circle-bar",
2777
+ cx: "50",
2778
+ cy: "50",
2779
+ r: "45",
2780
+ style: Fe(f.value)
2781
+ }, null, 4)
2782
+ ]))
2783
+ ])),
2784
+ l.value || c.value ? (m(), _("span", ba, [
2785
+ F(p.$slots, "default", {}, () => [
2786
+ X(R(l.value), 1)
2787
+ ])
2788
+ ])) : P("", !0)
2789
+ ], 10, ua));
2790
+ }
2791
+ }), ga = ["aria-label"], ma = {
2792
+ key: 0,
2793
+ class: "vf-datatable__head"
2794
+ }, ha = { class: "vf-datatable__row" }, ya = ["aria-sort"], _a = ["onClick"], ka = { class: "vf-datatable__header-text" }, Ca = {
2795
+ key: 1,
2796
+ class: "vf-datatable__header-text"
2797
+ }, $a = { class: "vf-datatable__body" }, wa = {
2798
+ key: 0,
2799
+ class: "vf-datatable__row vf-datatable__row_state"
2800
+ }, xa = ["colspan"], za = {
2801
+ key: 1,
2802
+ class: "vf-datatable__row vf-datatable__row_state"
2803
+ }, Ba = ["colspan"], Fa = ["onClick"], Nr = /* @__PURE__ */ G({
2804
+ __name: "data-table",
2805
+ props: {
2806
+ rows: { default: () => [] },
2807
+ columns: { default: () => [] },
2808
+ rowKey: { type: [String, Function], default: "id" },
2809
+ sortable: { type: Boolean, default: !1 },
2810
+ sortField: { default: null },
2811
+ sortOrder: { default: null },
2812
+ loading: { type: Boolean, default: !1 },
2813
+ loadingText: { default: "Loading..." },
2814
+ emptyText: { default: "No data" },
2815
+ striped: { type: Boolean, default: !1 },
2816
+ hover: { type: Boolean, default: !0 },
2817
+ size: { default: "normal" },
2818
+ variant: { default: "filled" },
2819
+ showHeader: { type: Boolean, default: !0 },
2820
+ ariaLabel: { default: "Data table" }
2821
+ },
2822
+ emits: ["update:sortField", "update:sortOrder", "sort", "rowClick"],
2823
+ setup(t, { emit: e }) {
2824
+ const r = t, o = e, a = O(r.sortField ?? null), d = O(r.sortOrder ?? null);
2825
+ ee(
2826
+ () => r.sortField,
2827
+ (b) => {
2828
+ a.value = b ?? null;
2829
+ }
2830
+ ), ee(
2831
+ () => r.sortOrder,
2832
+ (b) => {
2833
+ d.value = b ?? null;
2834
+ }
2835
+ );
2836
+ const i = y(() => a.value), c = y(() => d.value), l = y(() => Math.max(1, r.columns.length)), u = (b) => b.sortable === !1 ? !1 : b.sortable === !0 ? !0 : r.sortable, s = (b, h) => b == null && h == null ? 0 : b == null ? -1 : h == null ? 1 : typeof b == "number" && typeof h == "number" ? b - h : String(b).localeCompare(String(h)), n = y(() => {
2837
+ const b = r.rows ?? [], h = i.value, C = c.value;
2838
+ return !h || !C ? b : [...b].sort((W, A) => {
2839
+ const q = W == null ? void 0 : W[h], te = A == null ? void 0 : A[h], j = s(q, te);
2840
+ return C === "asc" ? j : -j;
2841
+ });
2842
+ }), f = y(() => {
2843
+ const b = ["vf-datatable", `vf-datatable_${r.variant}`];
2844
+ return r.size !== "normal" && b.push(`vf-datatable_${r.size}`), r.striped && b.push("vf-datatable_striped"), r.hover && b.push("vf-datatable_hover"), b;
2845
+ }), p = (b, h) => {
2846
+ if (typeof r.rowKey == "function")
2847
+ return r.rowKey(b, h);
2848
+ if (r.rowKey && typeof r.rowKey == "string") {
2849
+ const C = b == null ? void 0 : b[r.rowKey];
2850
+ return typeof C == "string" || typeof C == "number" ? C : h;
2851
+ }
2852
+ return h;
2853
+ }, v = (b, h) => b == null ? void 0 : b[h.field], $ = (b, h) => {
2854
+ const C = v(b, h);
2855
+ return h.formatter ? h.formatter(b, C, h) : C ?? "";
2856
+ }, k = (b) => {
2857
+ if (!u(b))
2858
+ return;
2859
+ let h = b.field, C = "asc";
2860
+ i.value === b.field && (c.value === "asc" ? C = "desc" : c.value === "desc" ? (h = null, C = null) : C = "asc"), a.value = h, d.value = C, o("update:sortField", h), o("update:sortOrder", C), o("sort", h, C);
2861
+ }, w = (b) => i.value !== b.field ? "↕" : c.value === "asc" ? "↑" : "↓", D = (b) => i.value !== b.field ? "" : "is-active", L = (b) => {
2862
+ if (u(b))
2863
+ return i.value !== b.field ? "none" : c.value === "asc" ? "ascending" : "descending";
2864
+ }, H = (b) => {
2865
+ const h = [];
2866
+ return r.striped && b % 2 === 1 && h.push("vf-datatable__row_striped"), h;
2867
+ }, I = (b) => {
2868
+ const h = [];
2869
+ return b.align && h.push(`vf-datatable__cell_${b.align}`), u(b) && h.push("vf-datatable__header_sortable"), h;
2870
+ }, M = (b) => {
2871
+ const h = [];
2872
+ return b.align && h.push(`vf-datatable__cell_${b.align}`), h;
2873
+ }, E = (b) => {
2874
+ const h = {};
2875
+ return b.width && (h.width = b.width), b.minWidth && (h.minWidth = b.minWidth), h;
2876
+ }, S = (b, h, C) => {
2877
+ o("rowClick", b, h, C);
2878
+ };
2879
+ return (b, h) => (m(), _("div", {
2880
+ class: T(f.value)
2881
+ }, [
2882
+ B("table", {
2883
+ class: "vf-datatable__table",
2884
+ "aria-label": b.ariaLabel
2885
+ }, [
2886
+ b.showHeader ? (m(), _("thead", ma, [
2887
+ B("tr", ha, [
2888
+ (m(!0), _(ae, null, ve(b.columns, (C) => (m(), _("th", {
2889
+ key: C.field,
2890
+ class: T(["vf-datatable__header", I(C)]),
2891
+ style: Fe(E(C)),
2892
+ "aria-sort": L(C),
2893
+ scope: "col"
2894
+ }, [
2895
+ u(C) ? (m(), _("button", {
2896
+ key: 0,
2897
+ type: "button",
2898
+ class: "vf-datatable__sort-button",
2899
+ onClick: (W) => k(C)
2900
+ }, [
2901
+ B("span", ka, [
2902
+ b.$slots[`header-${C.field}`] ? F(b.$slots, `header-${C.field}`, {
2903
+ key: 0,
2904
+ column: C
2905
+ }) : (m(), _(ae, { key: 1 }, [
2906
+ X(R(C.header ?? C.field), 1)
2907
+ ], 64))
2908
+ ]),
2909
+ B("span", {
2910
+ class: T(["vf-datatable__sort-icon", D(C)])
2911
+ }, R(w(C)), 3)
2912
+ ], 8, _a)) : (m(), _("span", Ca, [
2913
+ b.$slots[`header-${C.field}`] ? F(b.$slots, `header-${C.field}`, {
2914
+ key: 0,
2915
+ column: C
2916
+ }) : (m(), _(ae, { key: 1 }, [
2917
+ X(R(C.header ?? C.field), 1)
2918
+ ], 64))
2919
+ ]))
2920
+ ], 14, ya))), 128))
2921
+ ])
2922
+ ])) : P("", !0),
2923
+ B("tbody", $a, [
2924
+ b.loading ? (m(), _("tr", wa, [
2925
+ B("td", {
2926
+ class: "vf-datatable__cell vf-datatable__cell_state",
2927
+ colspan: l.value
2928
+ }, [
2929
+ F(b.$slots, "loading", {}, () => [
2930
+ X(R(b.loadingText), 1)
2931
+ ])
2932
+ ], 8, xa)
2933
+ ])) : n.value.length ? (m(!0), _(ae, { key: 2 }, ve(n.value, (C, W) => (m(), _("tr", {
2934
+ key: p(C, W),
2935
+ class: T(["vf-datatable__row", H(W)]),
2936
+ onClick: (A) => S(C, W, A)
2937
+ }, [
2938
+ (m(!0), _(ae, null, ve(b.columns, (A) => (m(), _("td", {
2939
+ key: A.field,
2940
+ class: T(["vf-datatable__cell", M(A)]),
2941
+ style: Fe(E(A))
2942
+ }, [
2943
+ b.$slots[`cell-${A.field}`] ? F(b.$slots, `cell-${A.field}`, {
2944
+ key: 0,
2945
+ row: C,
2946
+ column: A,
2947
+ value: v(C, A),
2948
+ index: W
2949
+ }) : (m(), _(ae, { key: 1 }, [
2950
+ X(R($(C, A)), 1)
2951
+ ], 64))
2952
+ ], 6))), 128))
2953
+ ], 10, Fa))), 128)) : (m(), _("tr", za, [
2954
+ B("td", {
2955
+ class: "vf-datatable__cell vf-datatable__cell_state",
2956
+ colspan: l.value
2957
+ }, [
2958
+ F(b.$slots, "empty", {}, () => [
2959
+ X(R(b.emptyText), 1)
2960
+ ])
2961
+ ], 8, Ba)
2962
+ ]))
2963
+ ])
2964
+ ], 8, ga)
2965
+ ], 2));
2966
+ }
2967
+ }), Sa = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], Va = (t) => {
2711
2968
  const e = t.replace(/([A-Z])/g, "-$1");
2712
2969
  return e.charAt(0).toUpperCase() + e.slice(1);
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))
2970
+ }, La = (t) => t.filter((e) => !Sa.includes(e)).map((e) => Va(e)).join("-").toLowerCase(), Ee = (t) => t.join("."), Ta = (t) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t), Ge = (t) => {
2971
+ if (!Ta(t))
2715
2972
  return null;
2716
2973
  if (t.length === 4) {
2717
2974
  const e = t[1], r = t[2], o = t[3];
2718
2975
  return `#${e}${e}${r}${r}${o}${o}`;
2719
2976
  }
2720
2977
  return t.toLowerCase();
2721
- }, rt = (t) => {
2722
- const e = Ke(t);
2978
+ }, lt = (t) => {
2979
+ const e = Ge(t);
2723
2980
  if (!e)
2724
2981
  return [0, 0, 0];
2725
2982
  const r = parseInt(e.slice(1), 16), o = r >> 16 & 255, a = r >> 8 & 255, d = r & 255;
2726
2983
  return [o, a, d];
2727
- }, je = (t) => {
2728
- const [e, r, o] = rt(t);
2984
+ }, qe = (t) => {
2985
+ const [e, r, o] = lt(t);
2729
2986
  return `${e}, ${r}, ${o}`;
2730
- }, ba = (t, e, r) => {
2987
+ }, Ra = (t, e, r) => {
2731
2988
  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
2989
  let u = 0, s = 0;
2733
2990
  const n = (i + c) / 2;
@@ -2746,31 +3003,31 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2746
3003
  u *= 60, u < 0 && (u += 360);
2747
3004
  }
2748
3005
  return [u, s * 100, n * 100];
2749
- }, ga = (t, e, r) => {
3006
+ }, Pa = (t, e, r) => {
2750
3007
  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
3008
  let l = 0, u = 0, s = 0;
2752
3009
  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
3010
  const n = Math.round((l + c) * 255), f = Math.round((u + c) * 255), p = Math.round((s + c) * 255);
2754
3011
  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);
3012
+ }, Ia = (t, e, r) => `#${[t, e, r].map((o) => o.toString(16).padStart(2, "0")).join("")}`, Ma = (t, e, r) => Math.min(r, Math.max(e, t)), Da = (t, e) => {
3013
+ const r = Ge(t);
2757
3014
  if (!r)
2758
3015
  return t;
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) => {
3016
+ const [o, a, d] = lt(r), [i, c, l] = Ra(o, a, d), s = (e - 5) * 7, n = Ma(l + s, 0, 100), [f, p, v] = Pa(i, c, n);
3017
+ return Ia(f, p, v);
3018
+ }, De = (t) => !!t && typeof t == "object" && !Array.isArray(t), Ye = (t, e) => {
2762
3019
  if (!e)
2763
3020
  return { ...t };
2764
3021
  const r = { ...t };
2765
3022
  for (const o in e) {
2766
3023
  const a = e[o], d = t[o];
2767
- Me(d) && Me(a) ? r[o] = Ne(d, a) : r[o] = a;
3024
+ De(d) && De(a) ? r[o] = Ye(d, a) : r[o] = a;
2768
3025
  }
2769
3026
  return r;
2770
- }, _a = (t) => {
3027
+ }, Oa = (t) => {
2771
3028
  if (!t)
2772
3029
  return null;
2773
- if (Me(t) && "preset" in t) {
3030
+ if (De(t) && "preset" in t) {
2774
3031
  const e = t;
2775
3032
  return {
2776
3033
  preset: e.preset ?? {},
@@ -2781,42 +3038,42 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2781
3038
  };
2782
3039
  }
2783
3040
  return { preset: t };
2784
- }, ka = (t) => {
3041
+ }, Wa = (t) => {
2785
3042
  const e = [], r = [], o = [], a = [], d = (l) => o.push(l), i = (l) => a.push(l), c = (l, u) => {
2786
3043
  if (!(!l || typeof l != "object"))
2787
3044
  for (const s in l) {
2788
3045
  const n = l[s], f = u.concat([s]);
2789
- if (Me(n)) {
3046
+ if (De(n)) {
2790
3047
  c(n, f);
2791
3048
  continue;
2792
3049
  }
2793
3050
  if (n && typeof n == "object") {
2794
- i(`Theme value "${We(f)}" is not a plain object or string and will be ignored.`);
3051
+ i(`Theme value "${Ee(f)}" is not a plain object or string and will be ignored.`);
2795
3052
  continue;
2796
3053
  }
2797
3054
  if (typeof n != "string") {
2798
- i(`Theme value "${We(f)}" is not a string and will be ignored.`);
3055
+ i(`Theme value "${Ee(f)}" is not a string and will be ignored.`);
2799
3056
  continue;
2800
3057
  }
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) {
3058
+ const v = f.includes("colorScheme") && f.includes("dark") ? r : e, $ = La(f);
3059
+ if (v.push(`--vf-${$}: ${n}`), f.includes("colors")) {
3060
+ const k = Ge(n);
3061
+ if (!k) {
2805
3062
  d(
2806
- `Theme color "${We(f)}" is not hex. Shade variables will not be generated for it.`
3063
+ `Theme color "${Ee(f)}" is not hex. Shade variables will not be generated for it.`
2807
3064
  );
2808
3065
  continue;
2809
3066
  }
2810
- if (v.push(`--vf-${_}-rgb: ${je(h)}`), s !== "white")
2811
- for (let C = 1; C < 10; ++C) {
2812
- const M = ya(h, C);
2813
- v.push(`--vf-${_}-${C}00: ${M}`), v.push(`--vf-${_}-${C}00-rgb: ${je(M)}`);
3067
+ if (v.push(`--vf-${$}-rgb: ${qe(k)}`), s !== "white")
3068
+ for (let w = 1; w < 10; ++w) {
3069
+ const D = Da(k, w);
3070
+ v.push(`--vf-${$}-${w}00: ${D}`), v.push(`--vf-${$}-${w}00-rgb: ${qe(D)}`);
2814
3071
  }
2815
3072
  }
2816
3073
  }
2817
3074
  };
2818
3075
  return c(t, []), { baseVars: e, darkVars: r, warnings: o, errors: a };
2819
- }, Ca = (t) => {
3076
+ }, Aa = (t) => {
2820
3077
  if (typeof document > "u")
2821
3078
  return null;
2822
3079
  const e = document.getElementById(t);
@@ -2824,11 +3081,11 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2824
3081
  return e;
2825
3082
  const r = document.createElement("style");
2826
3083
  return r.id = t, document.head.appendChild(r), r;
2827
- }, wa = (t) => ({
3084
+ }, Ea = (t) => ({
2828
3085
  selector: t.selector ?? ":root",
2829
3086
  darkSelector: t.darkSelector ?? ":root[data-theme=dark]"
2830
- }), $a = (t, e, r, o) => {
2831
- const { baseVars: a, darkVars: d, warnings: i, errors: c } = ka(t), l = Ca("vueforge-theme");
3087
+ }), Ha = (t, e, r, o) => {
3088
+ const { baseVars: a, darkVars: d, warnings: i, errors: c } = Wa(t), l = Aa("vueforge-theme");
2832
3089
  if (!l)
2833
3090
  return;
2834
3091
  if (c.length) {
@@ -2844,28 +3101,28 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", me
2844
3101
  a.length && u.push(`${e} { ${a.join(";")} }`), d.length && u.push(`${r} { ${d.join(";")} }`), l.textContent = u.join(`
2845
3102
  `);
2846
3103
  };
2847
- let ge = null;
2848
- const lt = (t) => {
2849
- const e = _a(t);
3104
+ let me = null;
3105
+ const nt = (t) => {
3106
+ const e = Oa(t);
2850
3107
  if (!e)
2851
3108
  return;
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) => {
2855
- if (!ge)
3109
+ const r = Ye(e.preset, e.overrides), { selector: o, darkSelector: a } = Ea(e);
3110
+ me = { ...e }, Ha(r, o, a, e.strict);
3111
+ }, Gr = (t) => {
3112
+ if (!me)
2856
3113
  return;
2857
- const e = t.overrides === void 0 ? ge.overrides : Ne(ge.overrides ?? {}, t.overrides ?? {}), r = {
2858
- preset: t.preset ?? ge.preset,
3114
+ const e = t.overrides === void 0 ? me.overrides : Ye(me.overrides ?? {}, t.overrides ?? {}), r = {
3115
+ preset: t.preset ?? me.preset,
2859
3116
  overrides: e,
2860
- selector: t.selector ?? ge.selector,
2861
- darkSelector: t.darkSelector ?? ge.darkSelector
3117
+ selector: t.selector ?? me.selector,
3118
+ darkSelector: t.darkSelector ?? me.darkSelector
2862
3119
  };
2863
- lt(r);
2864
- }, $r = () => ge ? { ...ge } : null, xr = {
3120
+ nt(r);
3121
+ }, Yr = () => me ? { ...me } : null, jr = {
2865
3122
  install(t, e = {}) {
2866
- e.theme && lt(e.theme);
3123
+ e.theme && nt(e.theme);
2867
3124
  }
2868
- }, Xe = {
3125
+ }, Ue = {
2869
3126
  colors: {
2870
3127
  white: "#ffffff",
2871
3128
  green: "#0cbc87",
@@ -2928,7 +3185,7 @@ const lt = (t) => {
2928
3185
  dividerColor: "#2e2e32"
2929
3186
  }
2930
3187
  }
2931
- }, xa = {
3188
+ }, Ka = {
2932
3189
  fontSize: "var(--vf-typography-font-size)",
2933
3190
  padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
2934
3191
  borderRadius: "var(--vf-radii-md)",
@@ -3070,11 +3327,11 @@ const lt = (t) => {
3070
3327
  }
3071
3328
  }
3072
3329
  }
3073
- }, Ba = {
3330
+ }, Na = {
3074
3331
  padding: "12px",
3075
3332
  borderColor: "var(--vf-border-color)",
3076
3333
  borderRadius: "var(--vf-radii-md)"
3077
- }, za = {
3334
+ }, Ga = {
3078
3335
  gap: "0.5rem",
3079
3336
  fontSize: "var(--vf-typography-font-size)",
3080
3337
  padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
@@ -3095,7 +3352,7 @@ const lt = (t) => {
3095
3352
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
3096
3353
  fontSize: "var(--vf-sizes-lg-font-size)"
3097
3354
  }
3098
- }, Fa = {
3355
+ }, Ya = {
3099
3356
  gap: "0.375rem",
3100
3357
  textColor: "var(--vf-text-color)",
3101
3358
  labelFontSize: "0.875rem",
@@ -3115,7 +3372,7 @@ const lt = (t) => {
3115
3372
  labelFontSize: "0.9375rem",
3116
3373
  hintFontSize: "0.875rem"
3117
3374
  }
3118
- }, Sa = {
3375
+ }, ja = {
3119
3376
  gap: "0.5rem",
3120
3377
  fontSize: "var(--vf-typography-font-size)",
3121
3378
  padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
@@ -3138,10 +3395,10 @@ const lt = (t) => {
3138
3395
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
3139
3396
  fontSize: "var(--vf-sizes-lg-font-size)"
3140
3397
  }
3141
- }, Va = {
3398
+ }, Xa = {
3142
3399
  hoverColor: "var(--vf-blue)",
3143
3400
  activeColor: "var(--vf-blue)"
3144
- }, La = {
3401
+ }, qa = {
3145
3402
  iconGap: "6px",
3146
3403
  submenuOffset: "12px",
3147
3404
  separatorThickness: "1px",
@@ -3161,7 +3418,7 @@ const lt = (t) => {
3161
3418
  marginBottom: "0.5rem",
3162
3419
  marginLeft: "0.5rem"
3163
3420
  }
3164
- }, Ta = {
3421
+ }, Ua = {
3165
3422
  width: "90vw",
3166
3423
  maxWidth: "520px",
3167
3424
  maxHeight: "80vh",
@@ -3188,9 +3445,9 @@ const lt = (t) => {
3188
3445
  closeColor: "var(--vf-text-color)",
3189
3446
  closeFontSize: "1.25rem",
3190
3447
  closeHoverBackgroundColor: "rgba(0, 0, 0, 0.06)"
3191
- }, Ra = {
3448
+ }, Za = {
3192
3449
  backgroundColor: "var(--vf-bg-color)"
3193
- }, Pa = {
3450
+ }, Ja = {
3194
3451
  minWidth: "12rem",
3195
3452
  fontSize: "var(--vf-typography-font-size)",
3196
3453
  controlGap: "0.75rem",
@@ -3223,7 +3480,7 @@ const lt = (t) => {
3223
3480
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
3224
3481
  fontSize: "var(--vf-sizes-lg-font-size)"
3225
3482
  }
3226
- }, Ia = {
3483
+ }, Qa = {
3227
3484
  minWidth: "12rem",
3228
3485
  fontSize: "var(--vf-typography-font-size)",
3229
3486
  controlGap: "0.5rem",
@@ -3262,7 +3519,7 @@ const lt = (t) => {
3262
3519
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
3263
3520
  fontSize: "var(--vf-sizes-lg-font-size)"
3264
3521
  }
3265
- }, Ma = {
3522
+ }, er = {
3266
3523
  minWidth: "12rem",
3267
3524
  fontSize: "var(--vf-typography-font-size)",
3268
3525
  controlGap: "0.5rem",
@@ -3307,7 +3564,7 @@ const lt = (t) => {
3307
3564
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
3308
3565
  fontSize: "var(--vf-sizes-lg-font-size)"
3309
3566
  }
3310
- }, Da = {
3567
+ }, tr = {
3311
3568
  minWidth: "12rem",
3312
3569
  fontSize: "var(--vf-typography-font-size)",
3313
3570
  controlGap: "0.75rem",
@@ -3357,7 +3614,7 @@ const lt = (t) => {
3357
3614
  fontSize: "var(--vf-sizes-lg-font-size)",
3358
3615
  daySize: "2.2rem"
3359
3616
  }
3360
- }, Oa = {
3617
+ }, or = {
3361
3618
  gap: "0.4rem",
3362
3619
  itemMinWidth: "2rem",
3363
3620
  fontSize: "var(--vf-typography-font-size)",
@@ -3382,7 +3639,7 @@ const lt = (t) => {
3382
3639
  fontSize: "var(--vf-sizes-lg-font-size)",
3383
3640
  padding: "0.45rem 0.8rem"
3384
3641
  }
3385
- }, Ea = {
3642
+ }, ar = {
3386
3643
  size: "1rem",
3387
3644
  gap: "0.5rem",
3388
3645
  borderRadius: "var(--vf-radii-sm)",
@@ -3394,7 +3651,7 @@ const lt = (t) => {
3394
3651
  checkColor: "#ffffff",
3395
3652
  textColor: "var(--vf-text-color)",
3396
3653
  disabledOpacity: "var(--vf-states-disabled-opacity)"
3397
- }, Wa = {
3654
+ }, rr = {
3398
3655
  size: "1rem",
3399
3656
  dotSize: "0.45rem",
3400
3657
  gap: "0.5rem",
@@ -3408,7 +3665,7 @@ const lt = (t) => {
3408
3665
  dotColor: "#ffffff",
3409
3666
  textColor: "var(--vf-text-color)",
3410
3667
  disabledOpacity: "var(--vf-states-disabled-opacity)"
3411
- }, Aa = {
3668
+ }, lr = {
3412
3669
  width: "2.25rem",
3413
3670
  height: "1.25rem",
3414
3671
  thumbSize: "1rem",
@@ -3420,7 +3677,7 @@ const lt = (t) => {
3420
3677
  thumbColor: "#ffffff",
3421
3678
  textColor: "var(--vf-text-color)",
3422
3679
  disabledOpacity: "var(--vf-states-disabled-opacity)"
3423
- }, Ha = {
3680
+ }, nr = {
3424
3681
  gap: "0.75rem",
3425
3682
  listGap: "0.5rem",
3426
3683
  listBorderWidth: "1px",
@@ -3441,7 +3698,7 @@ const lt = (t) => {
3441
3698
  panelBackgroundColor: "transparent",
3442
3699
  panelTextColor: "var(--vf-text-color)",
3443
3700
  disabledOpacity: "var(--vf-states-disabled-opacity)"
3444
- }, Ka = {
3701
+ }, sr = {
3445
3702
  gap: "0.75rem",
3446
3703
  borderRadius: "var(--vf-radii-md)",
3447
3704
  borderColor: "var(--vf-border-color)",
@@ -3472,7 +3729,7 @@ const lt = (t) => {
3472
3729
  headerFontSize: "1rem",
3473
3730
  contentPadding: "0.9rem 1.1rem"
3474
3731
  }
3475
- }, Na = {
3732
+ }, ir = {
3476
3733
  padding: "0.35rem 0.6rem",
3477
3734
  borderRadius: "8px",
3478
3735
  backgroundColor: "rgba(0, 0, 0, 0.8)",
@@ -3483,7 +3740,7 @@ const lt = (t) => {
3483
3740
  zIndex: "120",
3484
3741
  maxWidth: "240px",
3485
3742
  arrowSize: "8px"
3486
- }, Ya = {
3743
+ }, dr = {
3487
3744
  width: "100%",
3488
3745
  height: "1rem",
3489
3746
  lineHeight: "0.9rem",
@@ -3491,7 +3748,38 @@ const lt = (t) => {
3491
3748
  backgroundColor: "var(--vf-gutter-color)",
3492
3749
  shimmerColor: "var(--vf-bg-color)",
3493
3750
  animationDuration: "2s"
3494
- }, Ga = {
3751
+ }, cr = {
3752
+ borderColor: "var(--vf-border-color)",
3753
+ borderRadius: "var(--vf-radii-md)",
3754
+ backgroundColor: "var(--vf-bg-color)",
3755
+ fontSize: "var(--vf-typography-font-size)",
3756
+ textColor: "var(--vf-text-color)",
3757
+ headerBackgroundColor: "var(--vf-bg-soft-color)",
3758
+ headerTextColor: "var(--vf-text-color)",
3759
+ headerFontSize: "var(--vf-typography-font-size)",
3760
+ headerFontWeight: "600",
3761
+ headerBorderColor: "var(--vf-divider-color)",
3762
+ headerGap: "0.35rem",
3763
+ rowBackgroundColor: "var(--vf-bg-color)",
3764
+ rowTextColor: "var(--vf-text-color)",
3765
+ rowBorderColor: "var(--vf-divider-color)",
3766
+ cellPadding: "0.6rem 0.75rem",
3767
+ stripedBackgroundColor: "var(--vf-bg-soft-color)",
3768
+ hoverBackgroundColor: "rgba(var(--vf-blue-600-rgb), 0.06)",
3769
+ sortIconColor: "var(--vf-secondary-text-color)",
3770
+ sortIconActiveColor: "var(--vf-blue-600)",
3771
+ sortIconSize: "0.8rem",
3772
+ statePadding: "1rem",
3773
+ stateTextColor: "var(--vf-secondary-text-color)",
3774
+ small: {
3775
+ fontSize: "var(--vf-sizes-sm-font-size)",
3776
+ cellPadding: "0.45rem 0.6rem"
3777
+ },
3778
+ large: {
3779
+ fontSize: "var(--vf-sizes-lg-font-size)",
3780
+ cellPadding: "0.75rem 0.9rem"
3781
+ }
3782
+ }, ur = {
3495
3783
  gap: "0.75rem",
3496
3784
  padding: "0.75rem 0.9rem",
3497
3785
  borderRadius: "var(--vf-radii-md)",
@@ -3530,7 +3818,7 @@ const lt = (t) => {
3530
3818
  borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
3531
3819
  textColor: "var(--vf-text-color)"
3532
3820
  }
3533
- }, ja = {
3821
+ }, vr = {
3534
3822
  gap: "0.75rem",
3535
3823
  padding: "0.75rem 0.9rem",
3536
3824
  borderRadius: "var(--vf-radii-md)",
@@ -3568,67 +3856,107 @@ const lt = (t) => {
3568
3856
  borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
3569
3857
  textColor: "var(--vf-text-color)"
3570
3858
  }
3571
- }, Br = {
3572
- ...Xe,
3859
+ }, fr = {
3860
+ width: "100%",
3861
+ height: "0.5rem",
3862
+ borderRadius: "999px",
3863
+ backgroundColor: "var(--vf-gutter-color)",
3864
+ barColor: "var(--vf-blue-600)",
3865
+ labelColor: "var(--vf-secondary-text-color)",
3866
+ labelFontSize: "0.875rem",
3867
+ gap: "0.5rem",
3868
+ circularSize: "2.5rem",
3869
+ circularThickness: "6",
3870
+ animationDuration: "1.4s",
3871
+ info: {
3872
+ barColor: "var(--vf-sky-600)"
3873
+ },
3874
+ success: {
3875
+ barColor: "var(--vf-green-600)"
3876
+ },
3877
+ warn: {
3878
+ barColor: "var(--vf-yellow-600)"
3879
+ },
3880
+ danger: {
3881
+ barColor: "var(--vf-red-600)"
3882
+ },
3883
+ small: {
3884
+ height: "0.35rem",
3885
+ labelFontSize: "0.8rem",
3886
+ circularSize: "2rem",
3887
+ circularThickness: "5"
3888
+ },
3889
+ large: {
3890
+ height: "0.75rem",
3891
+ labelFontSize: "1rem",
3892
+ circularSize: "3.25rem",
3893
+ circularThickness: "7"
3894
+ }
3895
+ }, Xr = {
3896
+ ...Ue,
3573
3897
  components: {
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
3898
+ base: Ue,
3899
+ button: Ka,
3900
+ card: Na,
3901
+ input: Ga,
3902
+ formField: Ya,
3903
+ textarea: ja,
3904
+ link: Xa,
3905
+ menu: qa,
3906
+ modal: Ua,
3907
+ popover: Za,
3908
+ select: Ja,
3909
+ autocomplete: Qa,
3910
+ multiselect: er,
3911
+ datepicker: tr,
3912
+ pagination: or,
3913
+ checkbox: ar,
3914
+ radio: rr,
3915
+ switch: lr,
3916
+ tabs: nr,
3917
+ accordion: sr,
3918
+ tooltip: ir,
3919
+ skeleton: dr,
3920
+ datatable: cr,
3921
+ toast: ur,
3922
+ alert: vr,
3923
+ progress: fr
3598
3924
  }
3599
3925
  };
3600
3926
  export {
3601
- fr as Accordion,
3602
- pr as AccordionItem,
3603
- mr as Alert,
3604
- ar as Autocomplete,
3605
- Ja as Button,
3927
+ Rr as Accordion,
3928
+ Pr as AccordionItem,
3929
+ Dr as Alert,
3930
+ $r as Autocomplete,
3931
+ hr as Button,
3606
3932
  _t as Card,
3607
- sr as Checkbox,
3608
- lr as DatePicker,
3609
- Br as DefaultTheme,
3610
- er as FormField,
3611
- Qa as Input,
3612
- Je as Link,
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
3933
+ Br as Checkbox,
3934
+ Nr as DataTable,
3935
+ xr as DatePicker,
3936
+ Xr as DefaultTheme,
3937
+ _r as FormField,
3938
+ yr as Input,
3939
+ Qe as Link,
3940
+ mr as Menu,
3941
+ Ar as Modal,
3942
+ wr as MultiSelect,
3943
+ zr as Pagination,
3944
+ Wr as Popover,
3945
+ Kr as Progress,
3946
+ Sr as RadioButton,
3947
+ Fr as RadioGroup,
3948
+ Cr as Select,
3949
+ Hr as Skeleton,
3950
+ Or as Switch,
3951
+ Lr as Tab,
3952
+ Tr as TabPanel,
3953
+ Vr as Tabs,
3954
+ kr as Textarea,
3955
+ Ir as Toast,
3956
+ Mr as ToastContainer,
3957
+ Er as Tooltip,
3958
+ jr as VueForge,
3959
+ Yr as getTheme,
3960
+ nt as setTheme,
3961
+ Gr as updateTheme
3634
3962
  };