@codemonster-ru/vueforge 0.16.0 → 0.18.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 M, computed as h, watch as oe, resolveComponent as Ge, openBlock as m, createElementBlock as _, normalizeClass as P, renderSlot as F, Fragment as pe, createTextVNode as se, toDisplayString as K, createBlock as ae, withCtx as me, createCommentVNode as O, createElementVNode as B, renderList as Be, withKeys as ee, withModifiers as J, unref as _e, createVNode as je, nextTick as ze, onMounted as Le, onBeforeUnmount as we, Teleport as $e, withDirectives as he, vShow as ye, provide as Xe, inject as Oe, reactive as rt, createSlots as lt, useSlots as nt } from "vue";
1
+ import { defineComponent as N, ref as M, computed as g, watch as oe, resolveComponent as Ge, openBlock as b, createElementBlock as y, normalizeClass as I, renderSlot as $, Fragment as pe, createTextVNode as Z, toDisplayString as E, createBlock as re, withCtx as he, createCommentVNode as F, createElementVNode as B, renderList as Be, withKeys as te, withModifiers as Q, unref as ke, createVNode as je, useSlots as Xe, nextTick as ze, onMounted as Le, onBeforeUnmount as we, Teleport as $e, withDirectives as be, vShow as me, provide as qe, inject as Oe, reactive as lt, createSlots as nt } from "vue";
2
2
  import { useRoute as st, useRouter as it } from "vue-router";
3
3
  import { CmIcon as Ce } from "@codemonster-ru/vueiconify";
4
- const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__PURE__ */ Y({
4
+ const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__PURE__ */ N({
5
5
  __name: "link",
6
6
  props: {
7
7
  to: { default: void 0 },
@@ -15,48 +15,48 @@ const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__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 = st(), u = it(), i = M(null), d = h(() => o.href ?? o.url), l = h(() => o.as ? o.as === "router-link" && !o.to ? "a" : o.as : o.type === "router-link" || o.type === "a" ? o.type === "router-link" && !o.to ? "a" : o.type : o.to ? "router-link" : "a"), c = h(() => o.to), n = h(() => o.to ? u.resolve(o.to) : null), s = h(() => {
18
+ const r = e, o = t, a = st(), u = it(), s = M(null), c = g(() => o.href ?? o.url), l = g(() => 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"), d = g(() => o.to), n = g(() => o.to ? u.resolve(o.to) : null), i = g(() => {
19
19
  if (l.value !== "router-link")
20
20
  return !1;
21
- const v = n.value;
22
- return v ? v.name ? a.matched.some(({ name: w }) => w === v.name) : v.fullPath ? a.fullPath === v.fullPath : a.path === v.path : !1;
23
- }), p = h(() => o.active === void 0 ? s.value : o.active), f = (v) => {
21
+ const f = n.value;
22
+ return f ? f.name ? a.matched.some(({ name: w }) => w === f.name) : f.fullPath ? a.fullPath === f.fullPath : a.path === f.path : !1;
23
+ }), v = g(() => o.active === void 0 ? i.value : o.active), p = (f) => {
24
24
  if (!o.disabled) {
25
- r("click", v);
25
+ r("click", f);
26
26
  return;
27
27
  }
28
- v.preventDefault(), v.stopPropagation();
28
+ f.preventDefault(), f.stopPropagation();
29
29
  };
30
- return oe(s, (v) => {
31
- v && (r("active"), r("onActive")), r("update:active", v);
32
- }), (v, w) => {
30
+ return oe(i, (f) => {
31
+ f && (r("active"), r("onActive")), r("update:active", f);
32
+ }), (f, w) => {
33
33
  const C = Ge("router-link");
34
- return l.value === "a" ? (m(), _("a", {
34
+ return l.value === "a" ? (b(), y("a", {
35
35
  key: 0,
36
- href: d.value,
37
- class: P(["vf-link", { "vf-link_active": p.value, "vf-link_disabled": v.disabled }]),
38
- "aria-disabled": v.disabled,
39
- tabindex: v.disabled ? -1 : void 0,
40
- onClick: f
36
+ href: c.value,
37
+ class: I(["vf-link", { "vf-link_active": v.value, "vf-link_disabled": f.disabled }]),
38
+ "aria-disabled": f.disabled,
39
+ tabindex: f.disabled ? -1 : void 0,
40
+ onClick: p
41
41
  }, [
42
- v.$slots.default ? F(v.$slots, "default", { key: 0 }) : (m(), _(pe, { key: 1 }, [
43
- se(K(v.label), 1)
42
+ f.$slots.default ? $(f.$slots, "default", { key: 0 }) : (b(), y(pe, { key: 1 }, [
43
+ Z(E(f.label), 1)
44
44
  ], 64))
45
- ], 10, dt)) : (m(), ae(C, {
45
+ ], 10, dt)) : (b(), re(C, {
46
46
  key: 1,
47
47
  ref_key: "link",
48
- ref: i,
49
- to: c.value,
50
- class: P(["vf-link", { "vf-link_active": p.value }]),
51
- "aria-disabled": v.disabled,
52
- tabindex: v.disabled ? -1 : void 0,
48
+ ref: s,
49
+ to: d.value,
50
+ class: I(["vf-link", { "vf-link_active": v.value }]),
51
+ "aria-disabled": f.disabled,
52
+ tabindex: f.disabled ? -1 : void 0,
53
53
  "active-class": "vf-link_partially-active",
54
54
  "exact-active-class": "vf-link_active",
55
- onClick: f
55
+ onClick: p
56
56
  }, {
57
- default: me(() => [
58
- v.$slots.default ? F(v.$slots, "default", { key: 0 }) : (m(), _(pe, { key: 1 }, [
59
- se(K(v.label), 1)
57
+ default: he(() => [
58
+ f.$slots.default ? $(f.$slots, "default", { key: 0 }) : (b(), y(pe, { key: 1 }, [
59
+ Z(E(f.label), 1)
60
60
  ], 64))
61
61
  ]),
62
62
  _: 3
@@ -82,29 +82,29 @@ const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__PURE__ */ Y({
82
82
  class: "vf-card__footer"
83
83
  };
84
84
  function gt(t, e) {
85
- return m(), _("div", vt, [
86
- t.$slots.default ? (m(), _("div", ft, [
87
- F(t.$slots, "default")
88
- ])) : O("", !0),
89
- t.$slots.header ? (m(), _("div", pt, [
90
- F(t.$slots, "header")
91
- ])) : O("", !0),
92
- t.$slots.body ? (m(), _("div", bt, [
93
- F(t.$slots, "body")
94
- ])) : O("", !0),
95
- t.$slots.footer ? (m(), _("div", mt, [
96
- F(t.$slots, "footer")
97
- ])) : O("", !0)
85
+ return b(), y("div", vt, [
86
+ t.$slots.default ? (b(), y("div", ft, [
87
+ $(t.$slots, "default")
88
+ ])) : F("", !0),
89
+ t.$slots.header ? (b(), y("div", pt, [
90
+ $(t.$slots, "header")
91
+ ])) : F("", !0),
92
+ t.$slots.body ? (b(), y("div", bt, [
93
+ $(t.$slots, "body")
94
+ ])) : F("", !0),
95
+ t.$slots.footer ? (b(), y("div", mt, [
96
+ $(t.$slots, "footer")
97
+ ])) : F("", !0)
98
98
  ]);
99
99
  }
100
100
  const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
101
101
  class: "vf-menu__list",
102
102
  role: "menu"
103
- }, kt = {
103
+ }, _t = {
104
104
  key: 1,
105
105
  class: "vf-menu__separator",
106
106
  role: "separator"
107
- }, _t = ["aria-expanded", "onClick", "onKeydown"], ba = /* @__PURE__ */ Y({
107
+ }, kt = ["aria-expanded", "onClick", "onKeydown"], Fa = /* @__PURE__ */ N({
108
108
  name: "VfMenu",
109
109
  __name: "menu",
110
110
  props: {
@@ -113,87 +113,87 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
113
113
  },
114
114
  emits: ["active", "onActive"],
115
115
  setup(t, { emit: e }) {
116
- const r = e, o = t, a = M([]), u = (n, s) => `${n.label ?? n.to ?? n.href ?? n.url ?? "item"}_${s.toString()}`, i = (n) => n.to ? "router-link" : "a", d = (n) => n.map((s) => ({
117
- ...s,
118
- items: s.items ? d(s.items) : void 0
116
+ const r = e, o = t, a = M([]), u = (n, i) => `${n.label ?? n.to ?? n.href ?? n.url ?? "item"}_${i.toString()}`, s = (n) => n.to ? "router-link" : "a", c = (n) => n.map((i) => ({
117
+ ...i,
118
+ items: i.items ? c(i.items) : void 0
119
119
  })), l = (n) => {
120
- n.items && n.items.length ? (a.value.map((s) => {
121
- s !== n && (s.subMenuVisible = !1);
120
+ n.items && n.items.length ? (a.value.map((i) => {
121
+ i !== n && (i.subMenuVisible = !1);
122
122
  }), n.subMenuVisible = !n.subMenuVisible) : Object.prototype.hasOwnProperty.call(n, "command") && typeof n.command == "function" && n.command();
123
- }, c = (n) => {
124
- var s;
125
- for (const p in a.value) {
126
- const f = a.value[p];
127
- Object.prototype.hasOwnProperty.call(f, "items") && ((s = f.items) != null && s.some((v) => v === n) ? (f.active = !0, f.subMenuVisible = !0) : (f.active = !1, f.subMenuVisible = !1));
123
+ }, d = (n) => {
124
+ var i;
125
+ for (const v in a.value) {
126
+ const p = a.value[v];
127
+ Object.prototype.hasOwnProperty.call(p, "items") && ((i = p.items) != null && i.some((f) => f === n) ? (p.active = !0, p.subMenuVisible = !0) : (p.active = !1, p.subMenuVisible = !1));
128
128
  }
129
129
  r("active", n), r("onActive", n);
130
130
  };
131
131
  return oe(
132
132
  () => o.items,
133
133
  (n) => {
134
- a.value = d(n);
134
+ a.value = c(n);
135
135
  },
136
136
  { deep: !0, immediate: !0 }
137
- ), (n, s) => {
138
- const p = Ge("VfMenu");
139
- return m(), _("div", {
140
- class: P(["vf-menu", `vf-menu_${n.orientation}`])
137
+ ), (n, i) => {
138
+ const v = Ge("VfMenu");
139
+ return b(), y("div", {
140
+ class: I(["vf-menu", `vf-menu_${n.orientation}`])
141
141
  }, [
142
142
  B("ul", yt, [
143
- (m(!0), _(pe, null, Be(a.value, (f, v) => (m(), _("li", {
144
- key: u(f, v),
143
+ (b(!0), y(pe, null, Be(a.value, (p, f) => (b(), y("li", {
144
+ key: u(p, f),
145
145
  class: "vf-menu__item",
146
146
  role: "none"
147
147
  }, [
148
- n.$slots[u(f, v)] ? F(n.$slots, u(f, v), {
148
+ n.$slots[u(p, f)] ? $(n.$slots, u(p, f), {
149
149
  key: 0,
150
- item: { ...f, class: "vf-menu__link" }
151
- }) : f.separator ? (m(), _("hr", kt)) : f.items && f.items.length ? (m(), _(pe, { key: 2 }, [
150
+ item: { ...p, class: "vf-menu__link" }
151
+ }) : p.separator ? (b(), y("hr", _t)) : p.items && p.items.length ? (b(), y(pe, { key: 2 }, [
152
152
  B("div", {
153
- class: P(["vf-menu__parent", { "vf-menu__parent_active": f.active }]),
153
+ class: I(["vf-menu__parent", { "vf-menu__parent_active": p.active }]),
154
154
  role: "menuitem",
155
155
  tabindex: "0",
156
- "aria-expanded": f.subMenuVisible ? "true" : "false",
157
- onClick: (w) => l(f),
156
+ "aria-expanded": p.subMenuVisible ? "true" : "false",
157
+ onClick: (w) => l(p),
158
158
  onKeydown: [
159
- ee(J((w) => l(f), ["prevent"]), ["enter"]),
160
- ee(J((w) => l(f), ["prevent"]), ["space"])
159
+ te(Q((w) => l(p), ["prevent"]), ["enter"]),
160
+ te(Q((w) => l(p), ["prevent"]), ["space"])
161
161
  ]
162
162
  }, [
163
- f.icon ? (m(), ae(_e(Ce), {
163
+ p.icon ? (b(), re(ke(Ce), {
164
164
  key: 0,
165
- icon: f.icon,
165
+ icon: p.icon,
166
166
  class: "vf-menu__icon"
167
- }, null, 8, ["icon"])) : O("", !0),
168
- se(" " + K(f.label) + " ", 1),
169
- je(_e(Ce), { icon: "chevronDown" })
170
- ], 42, _t),
171
- f.items ? (m(), ae(p, {
167
+ }, null, 8, ["icon"])) : F("", !0),
168
+ Z(" " + E(p.label) + " ", 1),
169
+ je(ke(Ce), { icon: "chevronDown" })
170
+ ], 42, kt),
171
+ p.items ? (b(), re(v, {
172
172
  key: 0,
173
- items: f.items,
174
- class: P(["vf-menu__submenu", { "vf-menu__submenu_visible": f.subMenuVisible }]),
175
- onOnActive: c
176
- }, null, 8, ["items", "class"])) : O("", !0)
177
- ], 64)) : (m(), ae(Ue, {
173
+ items: p.items,
174
+ class: I(["vf-menu__submenu", { "vf-menu__submenu_visible": p.subMenuVisible }]),
175
+ onOnActive: d
176
+ }, null, 8, ["items", "class"])) : F("", !0)
177
+ ], 64)) : (b(), re(Ue, {
178
178
  key: 3,
179
- to: f.to,
180
- href: f.href ?? f.url,
181
- as: i(f),
179
+ to: p.to,
180
+ href: p.href ?? p.url,
181
+ as: s(p),
182
182
  class: "vf-menu__link",
183
- active: f.active,
184
- disabled: f.disabled,
183
+ active: p.active,
184
+ disabled: p.disabled,
185
185
  role: "menuitem",
186
- "aria-disabled": f.disabled ? "true" : "false",
187
- onClick: (w) => l(f),
188
- onActive: (w) => c(f)
186
+ "aria-disabled": p.disabled ? "true" : "false",
187
+ onClick: (w) => l(p),
188
+ onActive: (w) => d(p)
189
189
  }, {
190
- default: me(() => [
191
- f.icon ? (m(), ae(_e(Ce), {
190
+ default: he(() => [
191
+ p.icon ? (b(), re(ke(Ce), {
192
192
  key: 0,
193
- icon: f.icon,
193
+ icon: p.icon,
194
194
  class: "vf-menu__icon"
195
- }, null, 8, ["icon"])) : O("", !0),
196
- se(" " + K(f.label), 1)
195
+ }, null, 8, ["icon"])) : F("", !0),
196
+ Z(" " + E(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 ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
202
202
  ], 2);
203
203
  };
204
204
  }
205
- }), Ct = ["type", "disabled"], ma = /* @__PURE__ */ Y({
205
+ }), Ct = ["type", "disabled"], Sa = /* @__PURE__ */ N({
206
206
  __name: "button",
207
207
  props: {
208
208
  to: { default: void 0 },
@@ -221,59 +221,59 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
221
221
  disabled: { type: Boolean, default: !1 }
222
222
  },
223
223
  setup(t) {
224
- const e = t, r = ["button", "submit", "reset"], o = (n) => !!n && r.includes(n), a = h(() => e.as ? e.as === "button" : !(e.to || e.href || e.url || e.type && !o(e.type))), u = h(() => o(e.type) ? e.type : "button"), i = h(() => e.as === "link" ? e.to ? "router-link" : "a" : e.type && !o(e.type) ? e.type === "router-link" && e.to ? "router-link" : "a" : e.to ? "router-link" : "a"), d = h(() => {
224
+ const e = t, r = ["button", "submit", "reset"], o = (n) => !!n && r.includes(n), a = g(() => e.as ? e.as === "button" : !(e.to || e.href || e.url || e.type && !o(e.type))), u = g(() => o(e.type) ? e.type : "button"), s = g(() => 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 = g(() => {
225
225
  let n = ["vf-button", `vf-button_${e.severity}`];
226
226
  return ["top", "bottom"].includes(e.iconPos) && n.push("vf-button_vertical"), e.variant === "text" && n.push("vf-button_text"), e.variant === "outlined" && n.push("vf-button_outlined"), ["small", "large"].indexOf(e.size) > -1 && n.push(`vf-button_${e.size}`), (e.loading || e.disabled) && n.push("vf-button_disabled"), e.rounded && n.push("vf-button_rounded"), n;
227
- }), l = h(() => ["vf-button__icon", `vf-button__icon_${e.iconPos}`]), c = h(() => ["vf-button__label"]);
228
- return (n, s) => a.value ? (m(), _("button", {
227
+ }), l = g(() => ["vf-button__icon", `vf-button__icon_${e.iconPos}`]), d = g(() => ["vf-button__label"]);
228
+ return (n, i) => a.value ? (b(), y("button", {
229
229
  key: 0,
230
230
  type: u.value,
231
- class: P(d.value),
231
+ class: I(c.value),
232
232
  disabled: e.loading || e.disabled
233
233
  }, [
234
- e.icon && !e.loading ? (m(), ae(_e(Ce), {
234
+ e.icon && !e.loading ? (b(), re(ke(Ce), {
235
235
  key: 0,
236
236
  icon: e.icon,
237
- class: P(l.value)
238
- }, null, 8, ["icon", "class"])) : O("", !0),
239
- e.loading ? (m(), ae(_e(Ce), {
237
+ class: I(l.value)
238
+ }, null, 8, ["icon", "class"])) : F("", !0),
239
+ e.loading ? (b(), re(ke(Ce), {
240
240
  key: 1,
241
241
  icon: "circleNotch",
242
- class: P(l.value),
242
+ class: I(l.value),
243
243
  spin: ""
244
- }, null, 8, ["class"])) : O("", !0),
245
- n.$slots.default ? (m(), _("span", {
244
+ }, null, 8, ["class"])) : F("", !0),
245
+ n.$slots.default ? (b(), y("span", {
246
246
  key: 2,
247
- class: P(c.value)
247
+ class: I(d.value)
248
248
  }, [
249
- F(n.$slots, "default")
250
- ], 2)) : n.label ? (m(), _("span", {
249
+ $(n.$slots, "default")
250
+ ], 2)) : n.label ? (b(), y("span", {
251
251
  key: 3,
252
- class: P(c.value)
253
- }, K(n.label), 3)) : O("", !0)
254
- ], 10, Ct)) : (m(), ae(Ue, {
252
+ class: I(d.value)
253
+ }, E(n.label), 3)) : F("", !0)
254
+ ], 10, Ct)) : (b(), re(Ue, {
255
255
  key: 1,
256
256
  to: e.to,
257
257
  href: e.href ?? e.url,
258
- as: i.value,
259
- class: P(d.value),
258
+ as: s.value,
259
+ class: I(c.value),
260
260
  disabled: e.loading || e.disabled
261
261
  }, {
262
- default: me(() => [
263
- e.icon ? (m(), ae(_e(Ce), {
262
+ default: he(() => [
263
+ e.icon ? (b(), re(ke(Ce), {
264
264
  key: 0,
265
265
  icon: e.icon,
266
- class: P(l.value)
267
- }, null, 8, ["icon", "class"])) : O("", !0),
268
- n.$slots.default ? (m(), _("span", {
266
+ class: I(l.value)
267
+ }, null, 8, ["icon", "class"])) : F("", !0),
268
+ n.$slots.default ? (b(), y("span", {
269
269
  key: 1,
270
- class: P(c.value)
270
+ class: I(d.value)
271
271
  }, [
272
- F(n.$slots, "default")
273
- ], 2)) : n.label ? (m(), _("span", {
272
+ $(n.$slots, "default")
273
+ ], 2)) : n.label ? (b(), y("span", {
274
274
  key: 2,
275
- class: P(c.value)
276
- }, K(n.label), 3)) : O("", !0)
275
+ class: I(d.value)
276
+ }, E(n.label), 3)) : F("", !0)
277
277
  ]),
278
278
  _: 3
279
279
  }, 8, ["to", "href", "as", "class", "disabled"]));
@@ -284,7 +284,7 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
284
284
  }, $t = ["type", "value", "placeholder", "disabled", "readonly"], xt = {
285
285
  key: 1,
286
286
  class: "vf-input__suffix"
287
- }, ga = /* @__PURE__ */ Y({
287
+ }, Va = /* @__PURE__ */ N({
288
288
  __name: "input",
289
289
  props: {
290
290
  modelValue: { default: "" },
@@ -297,37 +297,102 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
297
297
  },
298
298
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
299
299
  setup(t, { emit: e }) {
300
- const r = e, o = t, a = h(() => {
301
- const c = ["vf-input", `vf-input_${o.variant}`];
302
- return o.size !== "normal" && c.push(`vf-input_${o.size}`), o.disabled && c.push("vf-input_disabled"), c;
303
- }), u = (c) => {
304
- const n = c.target;
305
- r("update:modelValue", n.value), r("input", c);
306
- }, i = (c) => r("change", c), d = (c) => r("focus", c), l = (c) => r("blur", c);
307
- return (c, n) => (m(), _("div", {
308
- class: P(a.value)
300
+ const r = e, o = t, a = g(() => {
301
+ const d = ["vf-input", `vf-input_${o.variant}`];
302
+ return o.size !== "normal" && d.push(`vf-input_${o.size}`), o.disabled && d.push("vf-input_disabled"), d;
303
+ }), u = (d) => {
304
+ const n = d.target;
305
+ r("update:modelValue", n.value), r("input", d);
306
+ }, s = (d) => r("change", d), c = (d) => r("focus", d), l = (d) => r("blur", d);
307
+ return (d, n) => (b(), y("div", {
308
+ class: I(a.value)
309
309
  }, [
310
- c.$slots.prefix ? (m(), _("span", wt, [
311
- F(c.$slots, "prefix")
312
- ])) : O("", !0),
310
+ d.$slots.prefix ? (b(), y("span", wt, [
311
+ $(d.$slots, "prefix")
312
+ ])) : F("", !0),
313
313
  B("input", {
314
314
  class: "vf-input__control",
315
- type: c.type,
316
- value: c.modelValue,
317
- placeholder: c.placeholder,
318
- disabled: c.disabled,
319
- readonly: c.readonly,
315
+ type: d.type,
316
+ value: d.modelValue,
317
+ placeholder: d.placeholder,
318
+ disabled: d.disabled,
319
+ readonly: d.readonly,
320
320
  onInput: u,
321
- onChange: i,
322
- onFocus: d,
321
+ onChange: s,
322
+ onFocus: c,
323
323
  onBlur: l
324
324
  }, null, 40, $t),
325
- c.$slots.suffix ? (m(), _("span", xt, [
326
- F(c.$slots, "suffix")
327
- ])) : O("", !0)
325
+ d.$slots.suffix ? (b(), y("span", xt, [
326
+ $(d.$slots, "suffix")
327
+ ])) : F("", !0)
328
+ ], 2));
329
+ }
330
+ }), Bt = ["for"], zt = {
331
+ key: 0,
332
+ class: "vf-form-field__required",
333
+ "aria-hidden": "true"
334
+ }, Ft = { class: "vf-form-field__control" }, St = ["id"], Vt = ["id"], Ta = /* @__PURE__ */ N({
335
+ __name: "form-field",
336
+ props: {
337
+ id: { default: void 0 },
338
+ label: { default: "" },
339
+ hint: { default: "" },
340
+ error: { default: "" },
341
+ disabled: { type: Boolean, default: !1 },
342
+ required: { type: Boolean, default: !1 },
343
+ size: { default: "normal" }
344
+ },
345
+ setup(t) {
346
+ const e = t, r = Xe(), o = `vf-form-field-${Math.random().toString(36).slice(2, 10)}`, a = g(() => e.id || o), u = g(() => `${a.value}-hint`), s = g(() => `${a.value}-error`), c = g(() => !!e.label || !!r.label), l = g(() => !!e.hint || !!r.hint), d = g(() => !!e.error || !!r.error), n = g(() => {
347
+ const v = [];
348
+ return l.value && v.push(u.value), d.value && v.push(s.value), v.length ? v.join(" ") : void 0;
349
+ }), i = g(() => {
350
+ const v = ["vf-form-field"];
351
+ return e.size !== "normal" && v.push(`vf-form-field_${e.size}`), e.disabled && v.push("vf-form-field_disabled"), d.value && v.push("vf-form-field_invalid"), v;
352
+ });
353
+ return (v, p) => (b(), y("div", {
354
+ class: I(i.value)
355
+ }, [
356
+ c.value ? (b(), y("label", {
357
+ key: 0,
358
+ class: "vf-form-field__label",
359
+ for: a.value
360
+ }, [
361
+ $(v.$slots, "label", {}, () => [
362
+ Z(E(v.label), 1)
363
+ ]),
364
+ v.required ? (b(), y("span", zt, "*")) : F("", !0)
365
+ ], 8, Bt)) : F("", !0),
366
+ B("div", Ft, [
367
+ $(v.$slots, "default", {
368
+ id: a.value,
369
+ describedBy: n.value,
370
+ invalid: d.value,
371
+ required: v.required
372
+ })
373
+ ]),
374
+ l.value ? (b(), y("p", {
375
+ key: 1,
376
+ id: u.value,
377
+ class: "vf-form-field__hint"
378
+ }, [
379
+ $(v.$slots, "hint", {}, () => [
380
+ Z(E(v.hint), 1)
381
+ ])
382
+ ], 8, St)) : F("", !0),
383
+ d.value ? (b(), y("p", {
384
+ key: 2,
385
+ id: s.value,
386
+ class: "vf-form-field__error",
387
+ role: "alert"
388
+ }, [
389
+ $(v.$slots, "error", {}, () => [
390
+ Z(E(v.error), 1)
391
+ ])
392
+ ], 8, Vt)) : F("", !0)
328
393
  ], 2));
329
394
  }
330
- }), Bt = ["value", "placeholder", "disabled", "readonly", "rows"], ha = /* @__PURE__ */ Y({
395
+ }), Tt = ["value", "placeholder", "disabled", "readonly", "rows"], La = /* @__PURE__ */ N({
331
396
  __name: "textarea",
332
397
  props: {
333
398
  modelValue: { default: "" },
@@ -340,28 +405,28 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
340
405
  },
341
406
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
342
407
  setup(t, { emit: e }) {
343
- const r = e, o = t, a = h(() => {
344
- const c = ["vf-textarea", `vf-textarea_${o.variant}`];
345
- return o.size !== "normal" && c.push(`vf-textarea_${o.size}`), o.disabled && c.push("vf-textarea_disabled"), c;
346
- }), u = (c) => {
347
- const n = c.target;
348
- r("update:modelValue", n.value), r("input", c);
349
- }, i = (c) => r("change", c), d = (c) => r("focus", c), l = (c) => r("blur", c);
350
- return (c, n) => (m(), _("div", {
351
- class: P(a.value)
408
+ const r = e, o = t, a = g(() => {
409
+ const d = ["vf-textarea", `vf-textarea_${o.variant}`];
410
+ return o.size !== "normal" && d.push(`vf-textarea_${o.size}`), o.disabled && d.push("vf-textarea_disabled"), d;
411
+ }), u = (d) => {
412
+ const n = d.target;
413
+ r("update:modelValue", n.value), r("input", d);
414
+ }, s = (d) => r("change", d), c = (d) => r("focus", d), l = (d) => r("blur", d);
415
+ return (d, n) => (b(), y("div", {
416
+ class: I(a.value)
352
417
  }, [
353
418
  B("textarea", {
354
419
  class: "vf-textarea__control",
355
- value: c.modelValue,
356
- placeholder: c.placeholder,
357
- disabled: c.disabled,
358
- readonly: c.readonly,
359
- rows: c.rows,
420
+ value: d.modelValue,
421
+ placeholder: d.placeholder,
422
+ disabled: d.disabled,
423
+ readonly: d.readonly,
424
+ rows: d.rows,
360
425
  onInput: u,
361
- onChange: i,
362
- onFocus: d,
426
+ onChange: s,
427
+ onFocus: c,
363
428
  onBlur: l
364
- }, null, 40, Bt)
429
+ }, null, 40, Tt)
365
430
  ], 2));
366
431
  }
367
432
  }), Ae = [
@@ -387,16 +452,16 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
387
452
  }
388
453
  return t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth ? t : ue(t.parentNode);
389
454
  };
390
- function zt(t) {
455
+ function Lt(t) {
391
456
  return typeof window > "u" ? !1 : window.getComputedStyle(t).position === "fixed";
392
457
  }
393
- const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be = (t, e) => Ft(t, e) === "fixed", ne = (t, e, r = {}) => {
394
- const o = t.getBoundingClientRect(), a = e ? e.offsetParent : null, u = e ? be(r, e) : !1;
458
+ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", ge = (t, e) => Rt(t, e) === "fixed", se = (t, e, r = {}) => {
459
+ const o = t.getBoundingClientRect(), a = e ? e.offsetParent : null, u = e ? ge(r, e) : !1;
395
460
  if (a && !u) {
396
- const i = a.getBoundingClientRect(), d = a.scrollLeft, l = a.scrollTop;
461
+ const s = a.getBoundingClientRect(), c = a.scrollLeft, l = a.scrollTop;
397
462
  return {
398
- left: o.left - i.left + d,
399
- top: o.top - i.top + l,
463
+ left: o.left - s.left + c,
464
+ top: o.top - s.top + l,
400
465
  width: o.width,
401
466
  height: o.height
402
467
  };
@@ -407,49 +472,49 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
407
472
  width: o.width,
408
473
  height: o.height
409
474
  };
410
- }, ge = (t, e) => {
475
+ }, ye = (t, e) => {
411
476
  var r;
412
477
  return (r = t.middleware) == null ? void 0 : r.find((o) => o.name === e);
413
- }, qe = (t, e) => !!ge(t, e), St = (t) => {
478
+ }, Ze = (t, e) => !!ye(t, e), Dt = (t) => {
414
479
  const e = ue(t);
415
480
  let r = "";
416
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;
417
482
  }, Fe = (t) => t.scrollLeft + t.clientWidth, Se = (t) => t.scrollTop + t.clientHeight, ie = (t, e, r = null, o = {}, a) => {
418
- if (r === null && typeof window < "u" && be(o, e))
483
+ if (r === null && typeof window < "u" && ge(o, e))
419
484
  return t;
420
485
  let u = 0;
421
486
  if (r === null) {
422
- const i = ue(e);
423
- u = i ? i.scrollTop : 0;
487
+ const s = ue(e);
488
+ u = s ? s.scrollTop : 0;
424
489
  }
425
490
  return t - u;
426
491
  }, de = (t, e, r = null, o = {}, a) => {
427
492
  let u;
428
- if (r === null && typeof window < "u" && be(o, e))
493
+ if (r === null && typeof window < "u" && ge(o, e))
429
494
  u = window.innerWidth;
430
495
  else if (r === null) {
431
- const i = ue(e);
432
- u = i ? Fe(i) : 0;
496
+ const s = ue(e);
497
+ u = s ? Fe(s) : 0;
433
498
  } else
434
499
  u = r.getBoundingClientRect().width;
435
500
  return -(t + e.clientWidth - u);
436
501
  }, ve = (t, e, r = null, o = {}, a) => {
437
502
  let u;
438
- if (r === null && typeof window < "u" && be(o, e))
503
+ if (r === null && typeof window < "u" && ge(o, e))
439
504
  u = window.innerHeight;
440
505
  else if (r === null) {
441
- const i = ue(e);
442
- u = i ? Se(i) : 0;
506
+ const s = ue(e);
507
+ u = s ? Se(s) : 0;
443
508
  } else
444
509
  u = r.getBoundingClientRect().height;
445
510
  return -(t + e.clientHeight - u);
446
511
  }, ce = (t, e, r = null, o = {}, a) => {
447
- if (r === null && typeof window < "u" && be(o, e))
512
+ if (r === null && typeof window < "u" && ge(o, e))
448
513
  return t;
449
514
  let u = 0;
450
515
  if (r === null) {
451
- const i = ue(e);
452
- u = i ? i.scrollLeft : 0;
516
+ const s = ue(e);
517
+ u = s ? s.scrollLeft : 0;
453
518
  }
454
519
  return t - u;
455
520
  }, Ke = ({
@@ -459,26 +524,26 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
459
524
  floating: o,
460
525
  placement: a,
461
526
  reference: u,
462
- scrollDirection: i
527
+ scrollDirection: s
463
528
  }) => {
464
- const d = Ve(u, o, a, t), l = ge(t, "offset");
529
+ const c = Ve(u, o, a, t), l = ye(t, "offset");
465
530
  if (l) {
466
- const c = l.fn({
467
- x: d.x,
468
- y: d.y,
531
+ const d = l.fn({
532
+ x: c.x,
533
+ y: c.y,
469
534
  options: t,
470
535
  primaryX: e,
471
536
  primaryY: r,
472
537
  floating: o,
473
538
  placement: a,
474
539
  reference: u,
475
- scrollDirection: i
540
+ scrollDirection: s
476
541
  });
477
- d.x = c.x, d.y = c.y;
542
+ c.x = d.x, c.y = d.y;
478
543
  }
479
- return Yt(d, o, u, t) ? {
480
- x: d.x,
481
- y: d.y,
544
+ return Ut(c, o, u, t) ? {
545
+ x: c.x,
546
+ y: c.y,
482
547
  placement: a
483
548
  } : !1;
484
549
  }, Re = (t) => ({
@@ -490,112 +555,112 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
490
555
  options: o,
491
556
  primaryX: a,
492
557
  primaryY: u,
493
- floating: i,
494
- placement: d,
558
+ floating: s,
559
+ placement: c,
495
560
  reference: l,
496
- scrollDirection: c
561
+ scrollDirection: d
497
562
  }) => {
498
563
  var n;
499
- const s = {
564
+ const i = {
500
565
  x: e,
501
566
  y: r,
502
- placement: d
503
- }, p = {
567
+ placement: c
568
+ }, v = {
504
569
  ...o,
505
- middleware: (n = o.middleware) == null ? void 0 : n.filter((S) => S.name !== "shift")
506
- }, f = (t == null ? void 0 : t.placements) ?? Ae, v = !(t != null && t.placements), w = v ? Ae : f;
570
+ middleware: (n = o.middleware) == null ? void 0 : n.filter((V) => V.name !== "shift")
571
+ }, p = (t == null ? void 0 : t.placements) ?? Ae, f = !(t != null && t.placements), w = f ? Ae : p;
507
572
  let C = !1;
508
- const z = (S) => {
573
+ const S = (V) => {
509
574
  if (C)
510
575
  return;
511
576
  const W = Ke({
512
- options: p,
577
+ options: v,
513
578
  primaryX: a,
514
579
  primaryY: u,
515
- floating: i,
516
- placement: S,
580
+ floating: s,
581
+ placement: V,
517
582
  reference: l,
518
- scrollDirection: c
583
+ scrollDirection: d
519
584
  });
520
- W && (s.x = W.x, s.y = W.y, s.placement = W.placement, C = !0);
521
- }, E = jt(l, i, p);
522
- if (!v && f.includes(d) && z(d), C || w.forEach(z), !C) {
523
- const S = f.reduce(
524
- (W, V) => {
525
- const T = Ke({
526
- options: p,
585
+ W && (i.x = W.x, i.y = W.y, i.placement = W.placement, C = !0);
586
+ }, H = Jt(l, s, v);
587
+ if (!f && p.includes(c) && S(c), C || w.forEach(S), !C) {
588
+ const V = p.reduce(
589
+ (W, T) => {
590
+ const L = Ke({
591
+ options: v,
527
592
  primaryX: a,
528
593
  primaryY: u,
529
- floating: i,
530
- placement: V,
594
+ floating: s,
595
+ placement: T,
531
596
  reference: l,
532
- scrollDirection: c
597
+ scrollDirection: d
533
598
  });
534
- if (!T)
599
+ if (!L)
535
600
  return W;
536
- const H = xe(V), L = E[H];
537
- return !W || L > W.space ? { result: T, space: L } : W;
601
+ const A = xe(T), R = H[A];
602
+ return !W || R > W.space ? { result: L, space: R } : W;
538
603
  },
539
604
  null
540
605
  );
541
- S && (s.x = S.result.x, s.y = S.result.y, s.placement = S.result.placement, C = !0);
606
+ V && (i.x = V.result.x, i.y = V.result.y, i.placement = V.result.placement, C = !0);
542
607
  }
543
- if (!C && f.length > 0) {
544
- const S = xe(d);
545
- let W = S, V = E[S];
546
- f.forEach((y) => {
547
- const b = xe(y), $ = E[b];
548
- $ > V && (V = $, W = b);
608
+ if (!C && p.length > 0) {
609
+ const V = xe(c);
610
+ let W = V, T = H[V];
611
+ p.forEach((_) => {
612
+ const m = xe(_), x = H[m];
613
+ x > T && (T = x, W = m);
549
614
  });
550
- const T = Gt(W, d, f), H = Ve(l, i, T, p), L = ge(p, "offset");
551
- if (L) {
552
- const y = L.fn({
553
- x: H.x,
554
- y: H.y,
555
- options: p,
615
+ const L = Zt(W, c, p), A = Ve(l, s, L, v), R = ye(v, "offset");
616
+ if (R) {
617
+ const _ = R.fn({
618
+ x: A.x,
619
+ y: A.y,
620
+ options: v,
556
621
  primaryX: a,
557
622
  primaryY: u,
558
- floating: i,
559
- placement: T,
623
+ floating: s,
624
+ placement: L,
560
625
  reference: l,
561
- scrollDirection: c
626
+ scrollDirection: d
562
627
  });
563
- H.x = y.x, H.y = y.y;
628
+ A.x = _.x, A.y = _.y;
564
629
  }
565
- s.x = H.x, s.y = H.y, s.placement = H.placement;
630
+ i.x = A.x, i.y = A.y, i.placement = A.placement;
566
631
  }
567
- return s;
632
+ return i;
568
633
  }
569
- }), Ze = (t, e, r, o, a) => {
570
- var u, i, d;
634
+ }), Je = (t, e, r, o, a) => {
635
+ var u, s, c;
571
636
  let l = 0;
572
637
  o.startsWith("right") ? l = -t : o.startsWith("left") && (l = t);
573
- const c = ge(e, "arrow"), n = ge(e, "shift");
574
- if (c) {
575
- const s = ((u = c.params) == null ? void 0 : u.arrow).getBoundingClientRect();
576
- o.startsWith("right") ? l -= s.width / 2 : o.startsWith("left") && (l += s.width / 2);
638
+ const d = ye(e, "arrow"), n = ye(e, "shift");
639
+ if (d) {
640
+ const i = ((u = d.params) == null ? void 0 : u.arrow).getBoundingClientRect();
641
+ o.startsWith("right") ? l -= i.width / 2 : o.startsWith("left") && (l += i.width / 2);
577
642
  }
578
- if (qe(e, "shift") && c) {
579
- let s = null, p = 0;
580
- n && (s = (i = n.params) == null ? void 0 : i.parent);
581
- const f = (d = c.params) == null ? void 0 : d.arrow;
582
- p = f.getBoundingClientRect().width / 2, p += Tt(f), p -= t, o.startsWith("right") ? de(r - l, a, s, e) <= t ? de(r, a, s, e) > 0 ? l = t - de(r, a, s, e) : l = t : ce(r - l - p, a, s, e) <= t && (ce(r - l - p, a, s, e) >= 0 ? (l = -t - (ce(r - l - p, a, s, e) + t), s && (l = -t)) : l = -t) : o.startsWith("left") ? de(r - l + p, a, s, e) <= t ? (l = t + de(r - p, a, s, e), l <= t && (l = t)) : ce(r - l, a, s, e) <= t && (l = -t + ce(r, a, s, e), l <= -t && (l = -t)) : de(r - l, a, s, e) <= t ? de(r - l, a, s, e) <= t && de(r, a, s, e) > 0 ? l = t - de(r, a, s, e) : l = t : ce(r - l, a, s, e) <= t && (ce(r - l, a, s, e) <= t && ce(r, a, s, e) > 0 ? l = -(t - ce(r, a, s, e)) : l = -t);
643
+ if (Ze(e, "shift") && d) {
644
+ let i = null, v = 0;
645
+ n && (i = (s = n.params) == null ? void 0 : s.parent);
646
+ const p = (c = d.params) == null ? void 0 : c.arrow;
647
+ v = p.getBoundingClientRect().width / 2, v += Pt(p), v -= t, o.startsWith("right") ? de(r - l, a, i, e) <= t ? de(r, a, i, e) > 0 ? l = t - de(r, a, i, e) : l = t : ce(r - l - v, a, i, e) <= t && (ce(r - l - v, a, i, e) >= 0 ? (l = -t - (ce(r - l - v, a, i, e) + t), i && (l = -t)) : l = -t) : o.startsWith("left") ? de(r - l + v, a, i, e) <= t ? (l = t + de(r - v, a, i, e), l <= t && (l = t)) : ce(r - l, a, i, e) <= t && (l = -t + ce(r, a, i, e), l <= -t && (l = -t)) : de(r - l, a, i, e) <= t ? de(r - l, a, i, e) <= t && de(r, a, i, e) > 0 ? l = t - de(r, a, i, e) : l = t : ce(r - l, a, i, e) <= t && (ce(r - l, a, i, e) <= t && ce(r, a, i, e) > 0 ? l = -(t - ce(r, a, i, e)) : l = -t);
583
648
  }
584
649
  return l;
585
- }, Je = (t, e, r, o, a) => {
586
- var u, i, d;
650
+ }, Qe = (t, e, r, o, a) => {
651
+ var u, s, c;
587
652
  let l = 0;
588
653
  o.startsWith("top") ? l = t : o.startsWith("bottom") && (l = -t);
589
- const c = ge(e, "arrow"), n = ge(e, "shift");
590
- if (c) {
591
- const s = ((u = c.params) == null ? void 0 : u.arrow).getBoundingClientRect();
592
- o.startsWith("top") ? l += s.height / 2 : o.startsWith("bottom") && (l -= s.height / 2);
654
+ const d = ye(e, "arrow"), n = ye(e, "shift");
655
+ if (d) {
656
+ const i = ((u = d.params) == null ? void 0 : u.arrow).getBoundingClientRect();
657
+ o.startsWith("top") ? l += i.height / 2 : o.startsWith("bottom") && (l -= i.height / 2);
593
658
  }
594
- if (qe(e, "shift") && c) {
595
- let s = null, p = 0;
596
- n && (s = (i = n.params) == null ? void 0 : i.parent);
597
- const f = (d = c.params) == null ? void 0 : d.arrow;
598
- p = f.getBoundingClientRect().height / 2, p += Lt(f), p -= t, o.startsWith("top") ? ie(r - l, a, s, e) <= t ? ie(r, a, s, e) >= 0 ? l = -(t - ie(r, a, s, e)) : l = -t : ve(r - l + p, a, s, e) <= t && (l = t + ve(r - p, a, s, e), l <= t && (l = t)) : o.startsWith("bottom") ? ie(r - l - p, a, s, e) <= t ? ie(r - l - p, a, s, e) >= 0 ? (l = -t - (ie(r - l - p, a, s, e) + t), s && (l = -t)) : l = -t : ve(r - l, a, s, e) <= t && (ve(r, a, s, e) >= 0 ? l = t - ve(r, a, s, e) : l = t) : ie(r - l, a, s, e) <= t ? ie(r - l, a, s, e) >= 0 ? l = -(t - ie(r - l, a, s, e)) : l = -t : ve(r - l, a, s, e) <= t && (ve(r - l, a, s, e) >= 0 ? l = t - ve(r - l, a, s, e) : l = t);
659
+ if (Ze(e, "shift") && d) {
660
+ let i = null, v = 0;
661
+ n && (i = (s = n.params) == null ? void 0 : s.parent);
662
+ const p = (c = d.params) == null ? void 0 : c.arrow;
663
+ v = p.getBoundingClientRect().height / 2, v += Wt(p), v -= t, o.startsWith("top") ? ie(r - l, a, i, e) <= t ? ie(r, a, i, e) >= 0 ? l = -(t - ie(r, a, i, e)) : l = -t : ve(r - l + v, a, i, e) <= t && (l = t + ve(r - v, a, i, e), l <= t && (l = t)) : o.startsWith("bottom") ? ie(r - l - v, a, i, e) <= t ? ie(r - l - v, a, i, e) >= 0 ? (l = -t - (ie(r - l - v, a, i, e) + t), i && (l = -t)) : l = -t : ve(r - l, a, i, e) <= t && (ve(r, a, i, e) >= 0 ? l = t - ve(r, a, i, e) : l = t) : ie(r - l, a, i, e) <= t ? ie(r - l, a, i, e) >= 0 ? l = -(t - ie(r - l, a, i, e)) : l = -t : ve(r - l, a, i, e) <= t && (ve(r - l, a, i, e) >= 0 ? l = t - ve(r - l, a, i, e) : l = t);
599
664
  }
600
665
  return l;
601
666
  }, De = (t) => ({
@@ -607,14 +672,14 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
607
672
  options: o,
608
673
  primaryX: a,
609
674
  primaryY: u,
610
- floating: i,
611
- placement: d
675
+ floating: s,
676
+ placement: c
612
677
  }) => ({
613
- x: e - Ze(t, o, a, d, i),
614
- y: r - Je(t, o, u, d, i),
615
- placement: d
678
+ x: e - Je(t, o, a, c, s),
679
+ y: r - Qe(t, o, u, c, s),
680
+ placement: c
616
681
  })
617
- }), Vt = (t) => ({
682
+ }), It = (t) => ({
618
683
  name: "shift",
619
684
  params: t,
620
685
  fn: ({
@@ -623,36 +688,36 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
623
688
  options: o,
624
689
  primaryX: a,
625
690
  primaryY: u,
626
- floating: i,
627
- placement: d,
691
+ floating: s,
692
+ placement: c,
628
693
  reference: l
629
694
  }) => {
630
- var c;
695
+ var d;
631
696
  const n = {
632
697
  x: e,
633
698
  y: r,
634
- placement: d
635
- }, s = o.middleware || [], p = s.findIndex(($) => $.name === "shift"), f = s.findIndex(($) => $.name === "offset"), v = f !== -1 && (p === -1 || f > p), w = s.find(($) => $.name === "offset"), C = w ? (c = w.params) == null ? void 0 : c.value : 0, z = v ? Ze(C, o, a, d, i) : 0, E = v ? Je(C, o, u, d, i) : 0, S = e - z, W = r - E;
636
- let V = S, T = W;
637
- const H = w ? Math.abs(C) : 0, L = H, y = H;
638
- if (be(o, i) && typeof window < "u") {
639
- const $ = L, A = window.innerWidth - i.clientWidth - L, G = A < $ ? $ : A, j = y, Q = window.innerHeight - i.clientHeight - y, N = Q < j ? j : Q;
640
- V < $ ? V = $ : V > G && (V = G), T < j ? T = j : T > N && (T = N), v ? (n.x = e + (V - S), n.y = r + (T - W)) : (n.x = V, n.y = T);
641
- const te = L, X = window.innerWidth - i.clientWidth - L, re = y, g = window.innerHeight - i.clientHeight - y, R = v ? te + z : te, I = v ? X + z : X, Z = v ? re + E : re, k = v ? g + E : g;
642
- return n.x < R ? n.x = R : n.x > I && (n.x = I), n.y < Z ? n.y = Z : n.y > k && (n.y = k), n;
699
+ placement: c
700
+ }, i = o.middleware || [], v = i.findIndex((x) => x.name === "shift"), p = i.findIndex((x) => x.name === "offset"), f = p !== -1 && (v === -1 || p > v), w = i.find((x) => x.name === "offset"), C = w ? (d = w.params) == null ? void 0 : d.value : 0, S = f ? Je(C, o, a, c, s) : 0, H = f ? Qe(C, o, u, c, s) : 0, V = e - S, W = r - H;
701
+ let T = V, L = W;
702
+ const A = w ? Math.abs(C) : 0, R = A, _ = A;
703
+ if (ge(o, s) && typeof window < "u") {
704
+ const x = R, K = window.innerWidth - s.clientWidth - R, G = K < x ? x : K, j = _, ee = window.innerHeight - s.clientHeight - _, Y = ee < j ? j : ee;
705
+ T < x ? T = x : T > G && (T = G), L < j ? L = j : L > Y && (L = Y), f ? (n.x = e + (T - V), n.y = r + (L - W)) : (n.x = T, n.y = L);
706
+ const ae = R, X = window.innerWidth - s.clientWidth - R, le = _, h = window.innerHeight - s.clientHeight - _, D = f ? ae + S : ae, O = f ? X + S : X, J = f ? le + H : le, k = f ? h + H : h;
707
+ return n.x < D ? n.x = D : n.x > O && (n.x = O), n.y < J ? n.y = J : n.y > k && (n.y = k), n;
643
708
  }
644
- const b = ue(i);
645
- if (b !== null) {
646
- const $ = ne(l, i, o), A = $.left, G = $.left + $.width, j = $.top, Q = $.top + $.height, N = b.scrollLeft + L, te = Fe(b) - i.clientWidth - L, X = te < N ? N : te, re = b.scrollTop + y, g = Se(b) - i.clientHeight - y, R = g < re ? re : g, I = b.scrollLeft, Z = Fe(b), k = b.scrollTop, x = Se(b);
647
- G <= I ? V = N : A >= Z && (V = X), Q <= k ? T = re : j >= x && (T = R), T < re ? T = re : T > R && (T = R), V < N ? V = N : V > X && (V = X);
709
+ const m = ue(s);
710
+ if (m !== null) {
711
+ const x = se(l, s, o), K = x.left, G = x.left + x.width, j = x.top, ee = x.top + x.height, Y = m.scrollLeft + R, ae = Fe(m) - s.clientWidth - R, X = ae < Y ? Y : ae, le = m.scrollTop + _, h = Se(m) - s.clientHeight - _, D = h < le ? le : h, O = m.scrollLeft, J = Fe(m), k = m.scrollTop, z = Se(m);
712
+ G <= O ? T = Y : K >= J && (T = X), ee <= k ? L = le : j >= z && (L = D), L < le ? L = le : L > D && (L = D), T < Y ? T = Y : T > X && (T = X);
648
713
  }
649
- if (v ? (n.x = e + (V - S), n.y = r + (T - W)) : (n.x = V, n.y = T), b !== null) {
650
- const $ = b.scrollLeft + L, A = Fe(b) - i.clientWidth - L, G = b.scrollTop + y, j = Se(b) - i.clientHeight - y, Q = v ? $ + z : $, N = v ? A + z : A, te = v ? G + E : G, X = v ? j + E : j;
651
- n.x < Q ? n.x = Q : n.x > N && (n.x = N), n.y < te ? n.y = te : n.y > X && (n.y = X);
714
+ if (f ? (n.x = e + (T - V), n.y = r + (L - W)) : (n.x = T, n.y = L), m !== null) {
715
+ const x = m.scrollLeft + R, K = Fe(m) - s.clientWidth - R, G = m.scrollTop + _, j = Se(m) - s.clientHeight - _, ee = f ? x + S : x, Y = f ? K + S : K, ae = f ? G + H : G, X = f ? j + H : j;
716
+ n.x < ee ? n.x = ee : n.x > Y && (n.x = Y), n.y < ae ? n.y = ae : n.y > X && (n.y = X);
652
717
  }
653
718
  return n;
654
719
  }
655
- }), Tt = (t) => t.getBoundingClientRect().width !== t.clientWidth ? (t.getBoundingClientRect().width - t.clientWidth) / 2 : 0, Lt = (t) => t.getBoundingClientRect().height !== t.clientHeight ? (t.getBoundingClientRect().height - t.clientHeight) / 2 : 0, Pe = (t, e) => {
720
+ }), Pt = (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, Ie = (t, e) => {
656
721
  const r = ue(t), o = [];
657
722
  if (r !== null) {
658
723
  const a = () => e();
@@ -667,85 +732,85 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
667
732
  a.observe(t), o.push(() => a.disconnect());
668
733
  }
669
734
  return () => o.forEach((a) => a());
670
- }, Rt = (t, e, r = {}) => {
671
- const o = ne(t, e, r);
735
+ }, Ot = (t, e, r = {}) => {
736
+ const o = se(t, e, r);
672
737
  return {
673
738
  x: o.left - e.getBoundingClientRect().width / 2 + o.width / 2,
674
739
  y: o.top - e.getBoundingClientRect().height,
675
740
  placement: "top"
676
741
  };
677
- }, Dt = (t, e, r = {}) => {
678
- const o = ne(t, e, r);
742
+ }, Mt = (t, e, r = {}) => {
743
+ const o = se(t, e, r);
679
744
  return {
680
745
  x: o.left,
681
746
  y: o.top - e.getBoundingClientRect().height,
682
747
  placement: "top-start"
683
748
  };
684
- }, Pt = (t, e, r = {}) => {
685
- const o = ne(t, e, r);
749
+ }, Et = (t, e, r = {}) => {
750
+ const o = se(t, e, r);
686
751
  return {
687
752
  x: o.left - e.getBoundingClientRect().width + o.width,
688
753
  y: o.top - e.getBoundingClientRect().height,
689
754
  placement: "top-end"
690
755
  };
691
- }, Wt = (t, e, r = {}) => {
692
- const o = ne(t, e, r);
756
+ }, Ht = (t, e, r = {}) => {
757
+ const o = se(t, e, r);
693
758
  return {
694
759
  x: o.left + o.width,
695
760
  y: o.top - e.getBoundingClientRect().height / 2 + o.height / 2,
696
761
  placement: "right"
697
762
  };
698
- }, It = (t, e, r = {}) => {
699
- const o = ne(t, e, r);
763
+ }, At = (t, e, r = {}) => {
764
+ const o = se(t, e, r);
700
765
  return {
701
766
  x: o.left + o.width,
702
767
  y: o.top,
703
768
  placement: "right-start"
704
769
  };
705
- }, Ot = (t, e, r = {}) => {
706
- const o = ne(t, e, r);
770
+ }, Kt = (t, e, r = {}) => {
771
+ const o = se(t, e, r);
707
772
  return {
708
773
  x: o.left + o.width,
709
774
  y: o.top + o.height - e.getBoundingClientRect().height,
710
775
  placement: "right-end"
711
776
  };
712
- }, Mt = (t, e, r = {}) => {
713
- const o = ne(t, e, r);
777
+ }, Nt = (t, e, r = {}) => {
778
+ const o = se(t, e, r);
714
779
  return {
715
780
  x: o.left + o.width / 2 - e.getBoundingClientRect().width / 2,
716
781
  y: o.top + o.height,
717
782
  placement: "bottom"
718
783
  };
719
- }, Et = (t, e, r = {}) => {
720
- const o = ne(t, e, r);
784
+ }, Yt = (t, e, r = {}) => {
785
+ const o = se(t, e, r);
721
786
  return {
722
787
  x: o.left,
723
788
  y: o.top + o.height,
724
789
  placement: "bottom-start"
725
790
  };
726
- }, Ht = (t, e, r = {}) => {
727
- const o = ne(t, e, r);
791
+ }, Gt = (t, e, r = {}) => {
792
+ const o = se(t, e, r);
728
793
  return {
729
794
  x: o.left - e.getBoundingClientRect().width + o.width,
730
795
  y: o.top + o.height,
731
796
  placement: "bottom-end"
732
797
  };
733
- }, At = (t, e, r = {}) => {
734
- const o = ne(t, e, r);
798
+ }, jt = (t, e, r = {}) => {
799
+ const o = se(t, e, r);
735
800
  return {
736
801
  x: o.left - e.getBoundingClientRect().width,
737
802
  y: o.top + o.height / 2 - e.getBoundingClientRect().height / 2,
738
803
  placement: "left"
739
804
  };
740
- }, Kt = (t, e, r = {}) => {
741
- const o = ne(t, e, r);
805
+ }, Xt = (t, e, r = {}) => {
806
+ const o = se(t, e, r);
742
807
  return {
743
808
  x: o.left - e.getBoundingClientRect().width,
744
809
  y: o.top,
745
810
  placement: "left-start"
746
811
  };
747
- }, Nt = (t, e, r = {}) => {
748
- const o = ne(t, e, r);
812
+ }, qt = (t, e, r = {}) => {
813
+ const o = se(t, e, r);
749
814
  return {
750
815
  x: o.left - e.getBoundingClientRect().width,
751
816
  y: o.top + o.height - e.getBoundingClientRect().height,
@@ -754,29 +819,29 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
754
819
  }, Ve = (t, e, r, o = {}) => {
755
820
  switch (r) {
756
821
  case "top":
757
- return Rt(t, e, o);
822
+ return Ot(t, e, o);
758
823
  case "top-start":
759
- return Dt(t, e, o);
824
+ return Mt(t, e, o);
760
825
  case "top-end":
761
- return Pt(t, e, o);
826
+ return Et(t, e, o);
762
827
  case "right":
763
- return Wt(t, e, o);
828
+ return Ht(t, e, o);
764
829
  case "right-start":
765
- return It(t, e, o);
830
+ return At(t, e, o);
766
831
  case "right-end":
767
- return Ot(t, e, o);
832
+ return Kt(t, e, o);
768
833
  case "bottom":
769
- return Mt(t, e, o);
834
+ return Nt(t, e, o);
770
835
  case "bottom-start":
771
- return Et(t, e, o);
836
+ return Yt(t, e, o);
772
837
  case "bottom-end":
773
- return Ht(t, e, o);
838
+ return Gt(t, e, o);
774
839
  case "left":
775
- return At(t, e, o);
840
+ return jt(t, e, o);
776
841
  case "left-start":
777
- return Kt(t, e, o);
842
+ return Xt(t, e, o);
778
843
  case "left-end":
779
- return Nt(t, e, o);
844
+ return qt(t, e, o);
780
845
  default:
781
846
  return {
782
847
  x: 0,
@@ -784,25 +849,25 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
784
849
  placement: ""
785
850
  };
786
851
  }
787
- }, Yt = (t, e, r, o = {}) => {
788
- if (be(o, e)) {
852
+ }, Ut = (t, e, r, o = {}) => {
853
+ if (ge(o, e)) {
789
854
  if (typeof window > "u")
790
855
  return !0;
791
- const s = t.x, p = t.y, f = s + e.clientWidth, v = p + e.clientHeight;
792
- return s >= 0 && p >= 0 && f <= window.innerWidth && v <= window.innerHeight;
856
+ const i = t.x, v = t.y, p = i + e.clientWidth, f = v + e.clientHeight;
857
+ return i >= 0 && v >= 0 && p <= window.innerWidth && f <= window.innerHeight;
793
858
  }
794
859
  if (ue(r) !== null)
795
860
  return ie(t.y, e, null, o) > 0 && de(t.x, e, null, o) > 0 && ve(t.y, e, null, o) > 0 && ce(t.x, e, null, o) > 0;
796
861
  if (typeof window > "u")
797
862
  return !0;
798
- const a = window.innerWidth, u = window.innerHeight, i = (r instanceof HTMLElement ? r.offsetParent : null) || e.offsetParent;
799
- if (i) {
800
- const s = i.getBoundingClientRect(), p = s.left + t.x, f = s.top + t.y, v = p + e.clientWidth, w = f + e.clientHeight;
801
- return p >= 0 && f >= 0 && v <= a && w <= u;
863
+ const a = window.innerWidth, u = window.innerHeight, s = (r instanceof HTMLElement ? r.offsetParent : null) || e.offsetParent;
864
+ if (s) {
865
+ const i = s.getBoundingClientRect(), v = i.left + t.x, p = i.top + t.y, f = v + e.clientWidth, w = p + e.clientHeight;
866
+ return v >= 0 && p >= 0 && f <= a && w <= u;
802
867
  }
803
- const d = t.x, l = t.y, c = d + e.clientWidth, n = l + e.clientHeight;
804
- return d >= 0 && l >= 0 && c <= a && n <= u;
805
- }, xe = (t) => t.startsWith("right") ? "right" : t.startsWith("left") ? "left" : t.startsWith("top") ? "top" : "bottom", Gt = (t, e, r) => xe(e) === t && r.includes(e) ? e : r.find((o) => xe(o) === t) ?? r[0], jt = (t, e, r = {}) => {
868
+ const c = t.x, l = t.y, d = c + e.clientWidth, n = l + e.clientHeight;
869
+ return c >= 0 && l >= 0 && d <= a && n <= u;
870
+ }, xe = (t) => t.startsWith("right") ? "right" : t.startsWith("left") ? "left" : t.startsWith("top") ? "top" : "bottom", Zt = (t, e, r) => xe(e) === t && r.includes(e) ? e : r.find((o) => xe(o) === t) ?? r[0], Jt = (t, e, r = {}) => {
806
871
  if (typeof window > "u")
807
872
  return {
808
873
  top: 0,
@@ -810,7 +875,7 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
810
875
  bottom: 0,
811
876
  left: 0
812
877
  };
813
- const o = be(r, e) ? null : ue(t), a = t.getBoundingClientRect(), u = o ? o.getBoundingClientRect() : {
878
+ const o = ge(r, e) ? null : ue(t), a = t.getBoundingClientRect(), u = o ? o.getBoundingClientRect() : {
814
879
  top: 0,
815
880
  left: 0,
816
881
  right: window.innerWidth,
@@ -822,39 +887,39 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
822
887
  bottom: u.bottom - a.bottom,
823
888
  left: a.left - u.left
824
889
  };
825
- }, We = (t, e, r = {}) => new Promise((o) => {
890
+ }, Pe = (t, e, r = {}) => new Promise((o) => {
826
891
  var a, u;
827
- const i = r.placement ? r.placement : "bottom", d = {
892
+ const s = r.placement ? r.placement : "bottom", c = {
828
893
  x: 0,
829
894
  y: 0,
830
- placement: i,
895
+ placement: s,
831
896
  middlewareData: {}
832
- }, l = Ve(t, e, i, r);
833
- d.x = l.x, d.y = l.y, d.placement = l.placement;
834
- const c = d.x, n = d.y, s = St(t);
897
+ }, l = Ve(t, e, s, r);
898
+ c.x = l.x, c.y = l.y, c.placement = l.placement;
899
+ const d = c.x, n = c.y, i = Dt(t);
835
900
  (a = r.middleware) == null || a.forEach((w) => {
836
901
  const C = w.fn({
837
- x: d.x,
838
- y: d.y,
902
+ x: c.x,
903
+ y: c.y,
839
904
  options: r,
840
- primaryX: c,
905
+ primaryX: d,
841
906
  primaryY: n,
842
907
  floating: e,
843
- placement: d.placement,
908
+ placement: c.placement,
844
909
  reference: t,
845
- scrollDirection: s
910
+ scrollDirection: i
846
911
  });
847
- d.x = C.x, d.y = C.y, d.placement = C.placement, w.name === "arrow" && (C.baseX = C.x, C.baseY = C.y, C.x = C.arrowX ?? C.x, C.y = C.arrowY ?? C.y), d.middlewareData[w.name] = C;
912
+ c.x = C.x, c.y = C.y, c.placement = C.placement, w.name === "arrow" && (C.baseX = C.x, C.baseY = C.y, C.x = C.arrowX ?? C.x, C.y = C.arrowY ?? C.y), c.middlewareData[w.name] = C;
848
913
  });
849
- const p = Ve(t, e, d.placement, r), f = ge(r, "offset"), v = f ? (u = f.params) == null ? void 0 : u.value : 0;
850
- if (Number.isFinite(d.x) || (d.x = p.x), !Number.isFinite(d.y))
851
- if (be(r, e)) {
914
+ const v = Ve(t, e, c.placement, r), p = ye(r, "offset"), f = p ? (u = p.params) == null ? void 0 : u.value : 0;
915
+ if (Number.isFinite(c.x) || (c.x = v.x), !Number.isFinite(c.y))
916
+ if (ge(r, e)) {
852
917
  const w = t.getBoundingClientRect(), C = e.getBoundingClientRect().height;
853
- d.placement.startsWith("top") ? d.y = w.top - C - v : d.placement.startsWith("bottom") ? d.y = w.bottom + v : d.y = p.y;
918
+ c.placement.startsWith("top") ? c.y = w.top - C - f : c.placement.startsWith("bottom") ? c.y = w.bottom + f : c.y = v.y;
854
919
  } else
855
- d.y = p.y;
856
- o(d);
857
- }), Xt = ["disabled", "aria-expanded", "onKeydown"], Ut = ["data-placement"], qt = ["disabled", "aria-selected", "onClick"], ya = /* @__PURE__ */ Y({
920
+ c.y = v.y;
921
+ o(c);
922
+ }), Qt = ["disabled", "aria-expanded", "onKeydown"], eo = ["data-placement"], to = ["disabled", "aria-selected", "onClick"], Ra = /* @__PURE__ */ N({
858
923
  __name: "select",
859
924
  props: {
860
925
  modelValue: { default: void 0 },
@@ -869,139 +934,139 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
869
934
  emits: ["update:modelValue", "change", "focus", "blur"],
870
935
  setup(t, { emit: e }) {
871
936
  let r = 0;
872
- const o = e, a = t, u = M(null), i = M(null), d = M(null), l = M(!1), c = M("bottom"), n = M("bottom"), s = `vf-select-panel-${++r}`;
873
- let p = null;
874
- const f = h(() => a.options.map((b) => ({
875
- label: b[a.optionLabel],
876
- value: b[a.optionValue],
877
- disabled: b.disabled
878
- }))), v = h(() => f.value.find((b) => b.value === a.modelValue)), w = h(() => {
879
- var b;
880
- return ((b = v.value) == null ? void 0 : b.label) ?? "";
881
- }), C = h(() => {
882
- const b = ["vf-select", `vf-select_${a.variant}`, l.value ? "vf-select_open" : ""];
883
- return a.size !== "normal" && b.push(`vf-select_${a.size}`), a.disabled && b.push("vf-select_disabled"), b.filter(Boolean);
884
- }), z = (b) => b.value === a.modelValue, E = (b) => {
885
- b.disabled || (o("update:modelValue", b.value), o("change", b.value), V());
886
- }, S = (b) => o("focus", b), W = (b) => o("blur", b), V = () => {
887
- l.value = !1, c.value = "bottom", n.value = "bottom";
888
- }, T = () => {
889
- a.disabled || (l.value = !l.value, l.value && (c.value = "bottom", n.value = "bottom"));
890
- }, H = async () => {
891
- var b, $;
892
- l.value || (l.value = !0, await ze()), ($ = (b = d.value) == null ? void 0 : b.querySelector(".vf-select__option:not(.is-disabled)")) == null || $.focus();
893
- }, L = (b) => {
894
- var A;
937
+ const o = e, a = t, u = M(null), s = M(null), c = M(null), l = M(!1), d = M("bottom"), n = M("bottom"), i = `vf-select-panel-${++r}`;
938
+ let v = null;
939
+ const p = g(() => a.options.map((m) => ({
940
+ label: m[a.optionLabel],
941
+ value: m[a.optionValue],
942
+ disabled: m.disabled
943
+ }))), f = g(() => p.value.find((m) => m.value === a.modelValue)), w = g(() => {
944
+ var m;
945
+ return ((m = f.value) == null ? void 0 : m.label) ?? "";
946
+ }), C = g(() => {
947
+ const m = ["vf-select", `vf-select_${a.variant}`, l.value ? "vf-select_open" : ""];
948
+ return a.size !== "normal" && m.push(`vf-select_${a.size}`), a.disabled && m.push("vf-select_disabled"), m.filter(Boolean);
949
+ }), S = (m) => m.value === a.modelValue, H = (m) => {
950
+ m.disabled || (o("update:modelValue", m.value), o("change", m.value), T());
951
+ }, V = (m) => o("focus", m), W = (m) => o("blur", m), T = () => {
952
+ l.value = !1, d.value = "bottom", n.value = "bottom";
953
+ }, L = () => {
954
+ a.disabled || (l.value = !l.value, l.value && (d.value = "bottom", n.value = "bottom"));
955
+ }, A = async () => {
956
+ var m, x;
957
+ l.value || (l.value = !0, await ze()), (x = (m = c.value) == null ? void 0 : m.querySelector(".vf-select__option:not(.is-disabled)")) == null || x.focus();
958
+ }, R = (m) => {
959
+ var K;
895
960
  if (!l.value || !u.value)
896
961
  return;
897
- const $ = b.target;
898
- u.value.contains($) || (A = d.value) != null && A.contains($) || V();
899
- }, y = () => {
900
- if (!i.value || !d.value)
962
+ const x = m.target;
963
+ u.value.contains(x) || (K = c.value) != null && K.contains(x) || T();
964
+ }, _ = () => {
965
+ if (!s.value || !c.value)
901
966
  return;
902
- const b = i.value, $ = d.value, A = async () => {
967
+ const m = s.value, x = c.value, K = async () => {
903
968
  const {
904
- x: N,
905
- y: te,
969
+ x: Y,
970
+ y: ae,
906
971
  placement: X
907
- } = await We(b, $, {
908
- placement: c.value,
972
+ } = await Pe(m, x, {
973
+ placement: d.value,
909
974
  strategy: "fixed",
910
975
  middleware: [De(2), Re({ placements: ["bottom", "top"] })]
911
976
  });
912
- n.value = X ?? c.value, $.style.minWidth = `${b.getBoundingClientRect().width}px`, $.style.left = `${N}px`, $.style.top = `${te}px`;
977
+ n.value = X ?? d.value, x.style.minWidth = `${m.getBoundingClientRect().width}px`, x.style.left = `${Y}px`, x.style.top = `${ae}px`;
913
978
  }, G = async () => {
914
- await A();
915
- }, j = Pe(b, () => {
979
+ await K();
980
+ }, j = Ie(m, () => {
916
981
  G();
917
- }), Q = () => {
982
+ }), ee = () => {
918
983
  G();
919
984
  };
920
- document.addEventListener("scroll", Q, !0), window.addEventListener("resize", Q, !1), p = {
985
+ document.addEventListener("scroll", ee, !0), window.addEventListener("resize", ee, !1), v = {
921
986
  update: G,
922
987
  destroy: () => {
923
- j(), document.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q, !1);
988
+ j(), document.removeEventListener("scroll", ee, !0), window.removeEventListener("resize", ee, !1);
924
989
  }
925
- }, p.update();
990
+ }, v.update();
926
991
  };
927
- return oe(l, async (b) => {
928
- if (!b) {
929
- p && (p.destroy(), p = null);
992
+ return oe(l, async (m) => {
993
+ if (!m) {
994
+ v && (v.destroy(), v = null);
930
995
  return;
931
996
  }
932
- await ze(), p || y(), p == null || p.update();
997
+ await ze(), v || _(), v == null || v.update();
933
998
  }), oe(
934
999
  () => a.options,
935
1000
  () => {
936
- p == null || p.update();
1001
+ v == null || v.update();
937
1002
  },
938
1003
  { deep: !0 }
939
1004
  ), Le(() => {
940
- document.addEventListener("click", L);
1005
+ document.addEventListener("click", R);
941
1006
  }), we(() => {
942
- document.removeEventListener("click", L), p == null || p.destroy(), p = null;
943
- }), (b, $) => (m(), _("div", {
1007
+ document.removeEventListener("click", R), v == null || v.destroy(), v = null;
1008
+ }), (m, x) => (b(), y("div", {
944
1009
  ref_key: "root",
945
1010
  ref: u,
946
- class: P(C.value)
1011
+ class: I(C.value)
947
1012
  }, [
948
1013
  B("button", {
949
1014
  ref_key: "trigger",
950
- ref: i,
1015
+ ref: s,
951
1016
  class: "vf-select__control",
952
1017
  type: "button",
953
- disabled: b.disabled,
1018
+ disabled: m.disabled,
954
1019
  "aria-expanded": l.value,
955
- "aria-controls": s,
1020
+ "aria-controls": i,
956
1021
  "aria-haspopup": "listbox",
957
- onClick: T,
1022
+ onClick: L,
958
1023
  onKeydown: [
959
- ee(J(H, ["prevent"]), ["down"]),
960
- ee(J(T, ["prevent"]), ["enter"]),
961
- ee(J(V, ["prevent"]), ["esc"])
1024
+ te(Q(A, ["prevent"]), ["down"]),
1025
+ te(Q(L, ["prevent"]), ["enter"]),
1026
+ te(Q(T, ["prevent"]), ["esc"])
962
1027
  ],
963
- onFocus: S,
1028
+ onFocus: V,
964
1029
  onBlur: W
965
1030
  }, [
966
1031
  B("span", {
967
- class: P(["vf-select__label", { "vf-select__label_placeholder": !w.value }])
968
- }, K(w.value || b.placeholder), 3),
969
- $[0] || ($[0] = B("span", {
1032
+ class: I(["vf-select__label", { "vf-select__label_placeholder": !w.value }])
1033
+ }, E(w.value || m.placeholder), 3),
1034
+ x[0] || (x[0] = B("span", {
970
1035
  class: "vf-select__chevron",
971
1036
  "aria-hidden": "true"
972
1037
  }, "▾", -1))
973
- ], 40, Xt),
974
- (m(), ae($e, { to: "body" }, [
975
- he(B("div", {
976
- id: s,
1038
+ ], 40, Qt),
1039
+ (b(), re($e, { to: "body" }, [
1040
+ be(B("div", {
1041
+ id: i,
977
1042
  ref_key: "panel",
978
- ref: d,
1043
+ ref: c,
979
1044
  class: "vf-select__panel",
980
1045
  role: "listbox",
981
1046
  "data-placement": n.value
982
1047
  }, [
983
- (m(!0), _(pe, null, Be(f.value, (A) => (m(), _("button", {
984
- key: A.value,
985
- class: P(["vf-select__option", { "is-active": z(A), "is-disabled": A.disabled }]),
1048
+ (b(!0), y(pe, null, Be(p.value, (K) => (b(), y("button", {
1049
+ key: K.value,
1050
+ class: I(["vf-select__option", { "is-active": S(K), "is-disabled": K.disabled }]),
986
1051
  type: "button",
987
1052
  role: "option",
988
- disabled: A.disabled,
989
- "aria-selected": z(A),
990
- onClick: (G) => E(A)
991
- }, K(A.label), 11, qt))), 128))
992
- ], 8, Ut), [
993
- [ye, l.value]
1053
+ disabled: K.disabled,
1054
+ "aria-selected": S(K),
1055
+ onClick: (G) => H(K)
1056
+ }, E(K.label), 11, to))), 128))
1057
+ ], 8, eo), [
1058
+ [me, l.value]
994
1059
  ])
995
1060
  ]))
996
1061
  ], 2));
997
1062
  }
998
- }), Zt = ["value", "placeholder", "disabled", "readonly", "aria-expanded", "aria-activedescendant", "onKeydown"], Jt = ["disabled"], Qt = ["data-placement"], eo = {
1063
+ }), oo = ["value", "placeholder", "disabled", "readonly", "aria-expanded", "aria-activedescendant", "onKeydown"], ao = ["disabled"], ro = ["data-placement"], lo = {
999
1064
  key: 0,
1000
1065
  class: "vf-autocomplete__loading"
1001
- }, to = ["id", "disabled", "aria-selected", "onClick"], oo = {
1066
+ }, no = ["id", "disabled", "aria-selected", "onClick"], so = {
1002
1067
  key: 2,
1003
1068
  class: "vf-autocomplete__empty"
1004
- }, ka = /* @__PURE__ */ Y({
1069
+ }, Da = /* @__PURE__ */ N({
1005
1070
  __name: "autocomplete",
1006
1071
  props: {
1007
1072
  modelValue: { default: void 0 },
@@ -1021,214 +1086,214 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1021
1086
  emits: ["update:modelValue", "change", "focus", "blur", "search"],
1022
1087
  setup(t, { emit: e }) {
1023
1088
  let r = 0;
1024
- const o = e, a = t, u = M(null), i = M(null), d = M(null), l = M(!1), c = M(""), n = M(-1), s = M("bottom"), p = M("bottom"), f = `vf-autocomplete-panel-${++r}`;
1025
- let v = null;
1026
- const w = h(() => a.options.map((g) => ({
1027
- label: g[a.optionLabel],
1028
- value: g[a.optionValue],
1029
- disabled: g.disabled
1030
- }))), C = h(() => w.value.find((g) => g.value === a.modelValue)), z = h(() => {
1089
+ const o = e, a = t, u = M(null), s = M(null), c = M(null), l = M(!1), d = M(""), n = M(-1), i = M("bottom"), v = M("bottom"), p = `vf-autocomplete-panel-${++r}`;
1090
+ let f = null;
1091
+ const w = g(() => a.options.map((h) => ({
1092
+ label: h[a.optionLabel],
1093
+ value: h[a.optionValue],
1094
+ disabled: h.disabled
1095
+ }))), C = g(() => w.value.find((h) => h.value === a.modelValue)), S = g(() => {
1031
1096
  if (!a.filter)
1032
1097
  return w.value;
1033
- const g = c.value.trim().toLowerCase();
1034
- return g ? w.value.filter((R) => R.label.toLowerCase().includes(g)) : w.value;
1035
- }), E = h(() => {
1098
+ const h = d.value.trim().toLowerCase();
1099
+ return h ? w.value.filter((D) => D.label.toLowerCase().includes(h)) : w.value;
1100
+ }), H = g(() => {
1036
1101
  if (!(!l.value || n.value < 0))
1037
1102
  return W(n.value);
1038
- }), S = h(() => {
1039
- const g = ["vf-autocomplete", `vf-autocomplete_${a.variant}`, l.value ? "vf-autocomplete_open" : ""];
1040
- return a.size !== "normal" && g.push(`vf-autocomplete_${a.size}`), a.disabled && g.push("vf-autocomplete_disabled"), g.filter(Boolean);
1041
- }), W = (g) => `${f}-option-${g}`, V = (g) => g.value === a.modelValue, T = () => z.value.findIndex((g) => !g.disabled), H = (g) => {
1042
- const R = z.value;
1043
- if (!R.length) {
1103
+ }), V = g(() => {
1104
+ const h = ["vf-autocomplete", `vf-autocomplete_${a.variant}`, l.value ? "vf-autocomplete_open" : ""];
1105
+ return a.size !== "normal" && h.push(`vf-autocomplete_${a.size}`), a.disabled && h.push("vf-autocomplete_disabled"), h.filter(Boolean);
1106
+ }), W = (h) => `${p}-option-${h}`, T = (h) => h.value === a.modelValue, L = () => S.value.findIndex((h) => !h.disabled), A = (h) => {
1107
+ const D = S.value;
1108
+ if (!D.length) {
1044
1109
  n.value = -1;
1045
1110
  return;
1046
1111
  }
1047
- let I = n.value;
1048
- (I < 0 || I >= R.length) && (I = g > 0 ? -1 : R.length);
1049
- for (let Z = 0; Z < R.length; Z += 1)
1050
- if (I = (I + g + R.length) % R.length, !R[I].disabled) {
1051
- n.value = I;
1112
+ let O = n.value;
1113
+ (O < 0 || O >= D.length) && (O = h > 0 ? -1 : D.length);
1114
+ for (let J = 0; J < D.length; J += 1)
1115
+ if (O = (O + h + D.length) % D.length, !D[O].disabled) {
1116
+ n.value = O;
1052
1117
  return;
1053
1118
  }
1054
1119
  n.value = -1;
1055
- }, L = () => {
1056
- a.disabled || (l.value = !0, s.value = "bottom", p.value = "bottom", n.value < 0 && (n.value = T()));
1057
- }, y = () => {
1058
- l.value = !1, n.value = -1, s.value = "bottom", p.value = "bottom";
1059
- }, b = () => {
1120
+ }, R = () => {
1121
+ a.disabled || (l.value = !0, i.value = "bottom", v.value = "bottom", n.value < 0 && (n.value = L()));
1122
+ }, _ = () => {
1123
+ l.value = !1, n.value = -1, i.value = "bottom", v.value = "bottom";
1124
+ }, m = () => {
1060
1125
  if (l.value) {
1061
- y();
1126
+ _();
1062
1127
  return;
1063
1128
  }
1064
- L();
1065
- }, $ = (g) => {
1066
- g.disabled || (c.value = g.label, o("update:modelValue", g.value), o("change", g.value), y());
1067
- }, A = (g) => {
1068
- const R = g.target;
1069
- c.value = R.value, o("search", R.value), L(), n.value = T();
1070
- }, G = (g) => {
1071
- o("focus", g), L();
1072
- }, j = (g) => {
1073
- o("blur", g);
1074
- }, Q = () => {
1129
+ R();
1130
+ }, x = (h) => {
1131
+ h.disabled || (d.value = h.label, o("update:modelValue", h.value), o("change", h.value), _());
1132
+ }, K = (h) => {
1133
+ const D = h.target;
1134
+ d.value = D.value, o("search", D.value), R(), n.value = L();
1135
+ }, G = (h) => {
1136
+ o("focus", h), R();
1137
+ }, j = (h) => {
1138
+ o("blur", h);
1139
+ }, ee = () => {
1075
1140
  if (!l.value) {
1076
- L();
1141
+ R();
1077
1142
  return;
1078
1143
  }
1079
- H(1);
1080
- }, N = () => {
1144
+ A(1);
1145
+ }, Y = () => {
1081
1146
  if (!l.value) {
1082
- L();
1147
+ R();
1083
1148
  return;
1084
1149
  }
1085
- H(-1);
1086
- }, te = () => {
1150
+ A(-1);
1151
+ }, ae = () => {
1087
1152
  if (!l.value) {
1088
- L();
1153
+ R();
1089
1154
  return;
1090
1155
  }
1091
- const g = z.value[n.value];
1092
- g && !g.disabled && $(g);
1093
- }, X = (g) => {
1094
- var I;
1156
+ const h = S.value[n.value];
1157
+ h && !h.disabled && x(h);
1158
+ }, X = (h) => {
1159
+ var O;
1095
1160
  if (!l.value || !u.value)
1096
1161
  return;
1097
- const R = g.target;
1098
- u.value.contains(R) || (I = d.value) != null && I.contains(R) || y();
1099
- }, re = () => {
1100
- if (!i.value || !d.value)
1162
+ const D = h.target;
1163
+ u.value.contains(D) || (O = c.value) != null && O.contains(D) || _();
1164
+ }, le = () => {
1165
+ if (!s.value || !c.value)
1101
1166
  return;
1102
- const g = i.value, R = d.value, I = async () => {
1167
+ const h = s.value, D = c.value, O = async () => {
1103
1168
  const {
1104
- x: D,
1105
- y: U,
1106
- placement: le
1107
- } = await We(g, R, {
1108
- placement: s.value,
1169
+ x: P,
1170
+ y: q,
1171
+ placement: ne
1172
+ } = await Pe(h, D, {
1173
+ placement: i.value,
1109
1174
  strategy: "fixed",
1110
1175
  middleware: [De(2), Re({ placements: ["bottom", "top"] })]
1111
1176
  });
1112
- p.value = le ?? s.value, R.style.minWidth = `${g.getBoundingClientRect().width}px`, R.style.left = `${D}px`, R.style.top = `${U}px`;
1113
- }, Z = async () => {
1114
- await I();
1115
- }, k = Pe(g, () => {
1116
- Z();
1117
- }), x = () => {
1118
- Z();
1177
+ v.value = ne ?? i.value, D.style.minWidth = `${h.getBoundingClientRect().width}px`, D.style.left = `${P}px`, D.style.top = `${q}px`;
1178
+ }, J = async () => {
1179
+ await O();
1180
+ }, k = Ie(h, () => {
1181
+ J();
1182
+ }), z = () => {
1183
+ J();
1119
1184
  };
1120
- document.addEventListener("scroll", x, !0), window.addEventListener("resize", x, !1), v = {
1121
- update: Z,
1185
+ document.addEventListener("scroll", z, !0), window.addEventListener("resize", z, !1), f = {
1186
+ update: J,
1122
1187
  destroy: () => {
1123
- k(), document.removeEventListener("scroll", x, !0), window.removeEventListener("resize", x, !1);
1188
+ k(), document.removeEventListener("scroll", z, !0), window.removeEventListener("resize", z, !1);
1124
1189
  }
1125
- }, v.update();
1190
+ }, f.update();
1126
1191
  };
1127
1192
  return oe(
1128
1193
  () => a.modelValue,
1129
1194
  () => {
1130
- var g;
1131
- c.value = ((g = C.value) == null ? void 0 : g.label) ?? "";
1195
+ var h;
1196
+ d.value = ((h = C.value) == null ? void 0 : h.label) ?? "";
1132
1197
  },
1133
1198
  { immediate: !0 }
1134
1199
  ), oe(
1135
1200
  () => a.options,
1136
1201
  () => {
1137
- var g;
1138
- l.value || (c.value = ((g = C.value) == null ? void 0 : g.label) ?? ""), v == null || v.update();
1202
+ var h;
1203
+ l.value || (d.value = ((h = C.value) == null ? void 0 : h.label) ?? ""), f == null || f.update();
1139
1204
  },
1140
1205
  { deep: !0 }
1141
- ), oe(z, () => {
1142
- n.value >= z.value.length && (n.value = T());
1143
- }), oe(l, async (g) => {
1144
- if (!g) {
1145
- v && (v.destroy(), v = null);
1206
+ ), oe(S, () => {
1207
+ n.value >= S.value.length && (n.value = L());
1208
+ }), oe(l, async (h) => {
1209
+ if (!h) {
1210
+ f && (f.destroy(), f = null);
1146
1211
  return;
1147
1212
  }
1148
- await ze(), v || re(), v == null || v.update();
1213
+ await ze(), f || le(), f == null || f.update();
1149
1214
  }), Le(() => {
1150
1215
  document.addEventListener("click", X);
1151
1216
  }), we(() => {
1152
- document.removeEventListener("click", X), v == null || v.destroy(), v = null;
1153
- }), (g, R) => (m(), _("div", {
1217
+ document.removeEventListener("click", X), f == null || f.destroy(), f = null;
1218
+ }), (h, D) => (b(), y("div", {
1154
1219
  ref_key: "root",
1155
1220
  ref: u,
1156
- class: P(S.value)
1221
+ class: I(V.value)
1157
1222
  }, [
1158
1223
  B("input", {
1159
1224
  ref_key: "control",
1160
- ref: i,
1225
+ ref: s,
1161
1226
  class: "vf-autocomplete__control",
1162
1227
  type: "text",
1163
1228
  role: "combobox",
1164
- value: c.value,
1165
- placeholder: g.placeholder,
1166
- disabled: g.disabled,
1167
- readonly: g.readonly,
1229
+ value: d.value,
1230
+ placeholder: h.placeholder,
1231
+ disabled: h.disabled,
1232
+ readonly: h.readonly,
1168
1233
  "aria-expanded": l.value,
1169
1234
  "aria-autocomplete": "list",
1170
- "aria-controls": f,
1171
- "aria-activedescendant": E.value,
1172
- onInput: A,
1235
+ "aria-controls": p,
1236
+ "aria-activedescendant": H.value,
1237
+ onInput: K,
1173
1238
  onFocus: G,
1174
1239
  onBlur: j,
1175
- onClick: L,
1240
+ onClick: R,
1176
1241
  onKeydown: [
1177
- ee(J(Q, ["prevent"]), ["down"]),
1178
- ee(J(N, ["prevent"]), ["up"]),
1179
- ee(J(te, ["prevent"]), ["enter"]),
1180
- ee(J(y, ["prevent"]), ["esc"]),
1181
- ee(y, ["tab"])
1242
+ te(Q(ee, ["prevent"]), ["down"]),
1243
+ te(Q(Y, ["prevent"]), ["up"]),
1244
+ te(Q(ae, ["prevent"]), ["enter"]),
1245
+ te(Q(_, ["prevent"]), ["esc"]),
1246
+ te(_, ["tab"])
1182
1247
  ]
1183
- }, null, 40, Zt),
1248
+ }, null, 40, oo),
1184
1249
  B("button", {
1185
1250
  class: "vf-autocomplete__chevron",
1186
1251
  type: "button",
1187
- disabled: g.disabled,
1252
+ disabled: h.disabled,
1188
1253
  "aria-hidden": "true",
1189
1254
  tabindex: "-1",
1190
- onMousedown: R[0] || (R[0] = J(() => {
1255
+ onMousedown: D[0] || (D[0] = Q(() => {
1191
1256
  }, ["prevent"])),
1192
- onClick: b
1193
- }, " ▾ ", 40, Jt),
1194
- (m(), ae($e, { to: "body" }, [
1195
- he(B("div", {
1196
- id: f,
1257
+ onClick: m
1258
+ }, " ▾ ", 40, ao),
1259
+ (b(), re($e, { to: "body" }, [
1260
+ be(B("div", {
1261
+ id: p,
1197
1262
  ref_key: "panel",
1198
- ref: d,
1263
+ ref: c,
1199
1264
  class: "vf-autocomplete__panel",
1200
1265
  role: "listbox",
1201
- "data-placement": p.value
1266
+ "data-placement": v.value
1202
1267
  }, [
1203
- g.loading ? (m(), _("div", eo, K(g.loadingText), 1)) : z.value.length > 0 ? (m(!0), _(pe, { key: 1 }, Be(z.value, (I, Z) => (m(), _("button", {
1204
- id: W(Z),
1205
- key: I.value,
1206
- class: P(["vf-autocomplete__option", {
1207
- "is-active": V(I),
1208
- "is-disabled": I.disabled,
1209
- "is-highlighted": Z === n.value
1268
+ h.loading ? (b(), y("div", lo, E(h.loadingText), 1)) : S.value.length > 0 ? (b(!0), y(pe, { key: 1 }, Be(S.value, (O, J) => (b(), y("button", {
1269
+ id: W(J),
1270
+ key: O.value,
1271
+ class: I(["vf-autocomplete__option", {
1272
+ "is-active": T(O),
1273
+ "is-disabled": O.disabled,
1274
+ "is-highlighted": J === n.value
1210
1275
  }]),
1211
1276
  type: "button",
1212
1277
  role: "option",
1213
- disabled: I.disabled,
1214
- "aria-selected": V(I),
1215
- onMousedown: R[1] || (R[1] = J(() => {
1278
+ disabled: O.disabled,
1279
+ "aria-selected": T(O),
1280
+ onMousedown: D[1] || (D[1] = Q(() => {
1216
1281
  }, ["prevent"])),
1217
- onClick: (k) => $(I)
1218
- }, K(I.label), 43, to))), 128)) : (m(), _("div", oo, K(g.emptyText), 1))
1219
- ], 8, Qt), [
1220
- [ye, l.value]
1282
+ onClick: (k) => x(O)
1283
+ }, E(O.label), 43, no))), 128)) : (b(), y("div", so, E(h.emptyText), 1))
1284
+ ], 8, ro), [
1285
+ [me, l.value]
1221
1286
  ])
1222
1287
  ]))
1223
1288
  ], 2));
1224
1289
  }
1225
- }), ao = ["disabled", "aria-expanded", "onKeydown"], ro = ["data-placement", "onKeydown"], lo = { class: "vf-datepicker__header" }, no = { class: "vf-datepicker__month-label" }, so = {
1290
+ }), io = ["disabled", "aria-expanded", "onKeydown"], co = ["data-placement", "onKeydown"], uo = { class: "vf-datepicker__header" }, vo = { class: "vf-datepicker__month-label" }, fo = {
1226
1291
  class: "vf-datepicker__weekdays",
1227
1292
  role: "row"
1228
- }, io = {
1293
+ }, po = {
1229
1294
  class: "vf-datepicker__days",
1230
1295
  role: "grid"
1231
- }, co = ["disabled", "data-date", "onClick"], _a = /* @__PURE__ */ Y({
1296
+ }, bo = ["disabled", "data-date", "onClick"], Ia = /* @__PURE__ */ N({
1232
1297
  __name: "datepicker",
1233
1298
  props: {
1234
1299
  modelValue: { default: void 0 },
@@ -1245,234 +1310,234 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1245
1310
  emits: ["update:modelValue", "change", "focus", "blur"],
1246
1311
  setup(t, { emit: e }) {
1247
1312
  let r = 0;
1248
- const o = e, a = t, u = M(null), i = M(null), d = M(null), l = M(!1), c = M("bottom"), n = M("bottom"), s = `vf-datepicker-panel-${++r}`, p = M(X(N(a.modelValue) ?? /* @__PURE__ */ new Date()));
1249
- let f = null;
1250
- const v = h(() => N(a.modelValue)), w = h(() => N(a.min)), C = h(() => N(a.max)), z = h(() => v.value ? v.value.toLocaleDateString(a.locale, {
1313
+ const o = e, a = t, u = M(null), s = M(null), c = M(null), l = M(!1), d = M("bottom"), n = M("bottom"), i = `vf-datepicker-panel-${++r}`, v = M(X(Y(a.modelValue) ?? /* @__PURE__ */ new Date()));
1314
+ let p = null;
1315
+ const f = g(() => Y(a.modelValue)), w = g(() => Y(a.min)), C = g(() => Y(a.max)), S = g(() => f.value ? f.value.toLocaleDateString(a.locale, {
1251
1316
  year: "numeric",
1252
1317
  month: "short",
1253
1318
  day: "numeric"
1254
- }) : ""), E = h(() => p.value.toLocaleDateString(a.locale, {
1319
+ }) : ""), H = g(() => v.value.toLocaleDateString(a.locale, {
1255
1320
  year: "numeric",
1256
1321
  month: "long"
1257
- })), S = h(() => {
1258
- const k = new Intl.DateTimeFormat(a.locale, { weekday: "short" }), x = new Date(2026, 0, 4);
1259
- return Array.from({ length: 7 }, (D, U) => {
1260
- const le = (U + a.firstDayOfWeek) % 7, q = new Date(x);
1261
- return q.setDate(x.getDate() + le), k.format(q);
1322
+ })), V = g(() => {
1323
+ const k = new Intl.DateTimeFormat(a.locale, { weekday: "short" }), z = new Date(2026, 0, 4);
1324
+ return Array.from({ length: 7 }, (P, q) => {
1325
+ const ne = (q + a.firstDayOfWeek) % 7, U = new Date(z);
1326
+ return U.setDate(z.getDate() + ne), k.format(U);
1262
1327
  });
1263
- }), W = h(() => {
1264
- const k = R(p.value, a.firstDayOfWeek), x = v.value ? I(v.value) : null, D = I(/* @__PURE__ */ new Date());
1265
- return Array.from({ length: 42 }, (U, le) => {
1266
- const q = g(k, le), ke = I(q);
1328
+ }), W = g(() => {
1329
+ const k = D(v.value, a.firstDayOfWeek), z = f.value ? O(f.value) : null, P = O(/* @__PURE__ */ new Date());
1330
+ return Array.from({ length: 42 }, (q, ne) => {
1331
+ const U = h(k, ne), _e = O(U);
1267
1332
  return {
1268
- key: `${ke}-${le}`,
1269
- iso: ke,
1270
- date: q,
1271
- day: q.getDate(),
1272
- inCurrentMonth: q.getMonth() === p.value.getMonth(),
1273
- isDisabled: Z(q, w.value, C.value),
1274
- isSelected: x === ke,
1275
- isToday: ke === D
1333
+ key: `${_e}-${ne}`,
1334
+ iso: _e,
1335
+ date: U,
1336
+ day: U.getDate(),
1337
+ inCurrentMonth: U.getMonth() === v.value.getMonth(),
1338
+ isDisabled: J(U, w.value, C.value),
1339
+ isSelected: z === _e,
1340
+ isToday: _e === P
1276
1341
  };
1277
1342
  });
1278
- }), V = h(() => {
1343
+ }), T = g(() => {
1279
1344
  const k = ["vf-datepicker", `vf-datepicker_${a.variant}`, l.value ? "vf-datepicker_open" : ""];
1280
1345
  return a.size !== "normal" && k.push(`vf-datepicker_${a.size}`), a.disabled && k.push("vf-datepicker_disabled"), k.filter(Boolean);
1281
- }), T = (k) => o("focus", k), H = (k) => o("blur", k), L = () => {
1282
- a.disabled || a.readonly || (l.value = !0, c.value = "bottom", n.value = "bottom");
1283
- }, y = () => {
1284
- l.value = !1, c.value = "bottom", n.value = "bottom";
1285
- }, b = () => {
1346
+ }), L = (k) => o("focus", k), A = (k) => o("blur", k), R = () => {
1347
+ a.disabled || a.readonly || (l.value = !0, d.value = "bottom", n.value = "bottom");
1348
+ }, _ = () => {
1349
+ l.value = !1, d.value = "bottom", n.value = "bottom";
1350
+ }, m = () => {
1286
1351
  if (l.value) {
1287
- y();
1352
+ _();
1288
1353
  return;
1289
1354
  }
1290
- L();
1291
- }, $ = () => {
1292
- p.value = re(p.value, -1);
1293
- }, A = () => {
1294
- p.value = re(p.value, 1);
1355
+ R();
1356
+ }, x = () => {
1357
+ v.value = le(v.value, -1);
1358
+ }, K = () => {
1359
+ v.value = le(v.value, 1);
1295
1360
  }, G = (k) => {
1296
- if (a.readonly || Z(k, w.value, C.value))
1361
+ if (a.readonly || J(k, w.value, C.value))
1297
1362
  return;
1298
- const x = I(k);
1299
- o("update:modelValue", x), o("change", x), y();
1363
+ const z = O(k);
1364
+ o("update:modelValue", z), o("change", z), _();
1300
1365
  }, j = (k) => {
1301
- var D;
1366
+ var P;
1302
1367
  if (!l.value || !u.value)
1303
1368
  return;
1304
- const x = k.target;
1305
- u.value.contains(x) || (D = d.value) != null && D.contains(x) || y();
1306
- }, Q = () => {
1307
- if (!i.value || !d.value)
1369
+ const z = k.target;
1370
+ u.value.contains(z) || (P = c.value) != null && P.contains(z) || _();
1371
+ }, ee = () => {
1372
+ if (!s.value || !c.value)
1308
1373
  return;
1309
- const k = i.value, x = d.value, D = async () => {
1374
+ const k = s.value, z = c.value, P = async () => {
1310
1375
  const {
1311
- x: ke,
1312
- y: ot,
1313
- placement: at
1314
- } = await We(k, x, {
1315
- placement: c.value,
1376
+ x: _e,
1377
+ y: at,
1378
+ placement: rt
1379
+ } = await Pe(k, z, {
1380
+ placement: d.value,
1316
1381
  strategy: "fixed",
1317
1382
  middleware: [De(2), Re({ placements: ["bottom", "top"] })]
1318
1383
  });
1319
- n.value = at ?? c.value, x.style.left = `${ke}px`, x.style.top = `${ot}px`;
1320
- }, U = async () => {
1321
- await D();
1322
- }, le = Pe(k, () => {
1323
- U();
1324
- }), q = () => {
1325
- U();
1384
+ n.value = rt ?? d.value, z.style.left = `${_e}px`, z.style.top = `${at}px`;
1385
+ }, q = async () => {
1386
+ await P();
1387
+ }, ne = Ie(k, () => {
1388
+ q();
1389
+ }), U = () => {
1390
+ q();
1326
1391
  };
1327
- document.addEventListener("scroll", q, !0), window.addEventListener("resize", q, !1), f = {
1328
- update: U,
1392
+ document.addEventListener("scroll", U, !0), window.addEventListener("resize", U, !1), p = {
1393
+ update: q,
1329
1394
  destroy: () => {
1330
- le(), document.removeEventListener("scroll", q, !0), window.removeEventListener("resize", q, !1);
1395
+ ne(), document.removeEventListener("scroll", U, !0), window.removeEventListener("resize", U, !1);
1331
1396
  }
1332
- }, f.update();
1397
+ }, p.update();
1333
1398
  };
1334
1399
  oe(
1335
1400
  () => a.modelValue,
1336
1401
  (k) => {
1337
- const x = N(k);
1338
- x && (p.value = X(x));
1402
+ const z = Y(k);
1403
+ z && (v.value = X(z));
1339
1404
  },
1340
1405
  { immediate: !0 }
1341
1406
  ), oe(
1342
1407
  () => [a.min, a.max],
1343
1408
  () => {
1344
- f == null || f.update();
1409
+ p == null || p.update();
1345
1410
  }
1346
1411
  ), oe(l, async (k) => {
1347
1412
  if (!k) {
1348
- f && (f.destroy(), f = null);
1413
+ p && (p.destroy(), p = null);
1349
1414
  return;
1350
1415
  }
1351
- await ze(), f || Q(), f == null || f.update();
1416
+ await ze(), p || ee(), p == null || p.update();
1352
1417
  }), Le(() => {
1353
1418
  document.addEventListener("click", j);
1354
1419
  }), we(() => {
1355
- document.removeEventListener("click", j), f == null || f.destroy(), f = null;
1420
+ document.removeEventListener("click", j), p == null || p.destroy(), p = null;
1356
1421
  });
1357
- function N(k) {
1422
+ function Y(k) {
1358
1423
  if (!k)
1359
1424
  return null;
1360
- const x = k.match(/^(\d{4})-(\d{2})-(\d{2})$/);
1361
- if (!x)
1425
+ const z = k.match(/^(\d{4})-(\d{2})-(\d{2})$/);
1426
+ if (!z)
1362
1427
  return null;
1363
- const D = Number(x[1]), U = Number(x[2]) - 1, le = Number(x[3]), q = new Date(D, U, le);
1364
- return q.getFullYear() !== D || q.getMonth() !== U || q.getDate() !== le ? null : te(q);
1428
+ const P = Number(z[1]), q = Number(z[2]) - 1, ne = Number(z[3]), U = new Date(P, q, ne);
1429
+ return U.getFullYear() !== P || U.getMonth() !== q || U.getDate() !== ne ? null : ae(U);
1365
1430
  }
1366
- function te(k) {
1431
+ function ae(k) {
1367
1432
  return new Date(k.getFullYear(), k.getMonth(), k.getDate());
1368
1433
  }
1369
1434
  function X(k) {
1370
1435
  return new Date(k.getFullYear(), k.getMonth(), 1);
1371
1436
  }
1372
- function re(k, x) {
1373
- return new Date(k.getFullYear(), k.getMonth() + x, 1);
1437
+ function le(k, z) {
1438
+ return new Date(k.getFullYear(), k.getMonth() + z, 1);
1374
1439
  }
1375
- function g(k, x) {
1376
- return new Date(k.getFullYear(), k.getMonth(), k.getDate() + x);
1440
+ function h(k, z) {
1441
+ return new Date(k.getFullYear(), k.getMonth(), k.getDate() + z);
1377
1442
  }
1378
- function R(k, x) {
1379
- const D = X(k), le = (D.getDay() - x + 7) % 7;
1380
- return g(D, -le);
1443
+ function D(k, z) {
1444
+ const P = X(k), ne = (P.getDay() - z + 7) % 7;
1445
+ return h(P, -ne);
1381
1446
  }
1382
- function I(k) {
1383
- const x = k.getFullYear(), D = `${k.getMonth() + 1}`.padStart(2, "0"), U = `${k.getDate()}`.padStart(2, "0");
1384
- return `${x}-${D}-${U}`;
1447
+ function O(k) {
1448
+ const z = k.getFullYear(), P = `${k.getMonth() + 1}`.padStart(2, "0"), q = `${k.getDate()}`.padStart(2, "0");
1449
+ return `${z}-${P}-${q}`;
1385
1450
  }
1386
- function Z(k, x, D) {
1387
- const U = te(k).getTime();
1388
- return !!(x && U < x.getTime() || D && U > D.getTime());
1451
+ function J(k, z, P) {
1452
+ const q = ae(k).getTime();
1453
+ return !!(z && q < z.getTime() || P && q > P.getTime());
1389
1454
  }
1390
- return (k, x) => (m(), _("div", {
1455
+ return (k, z) => (b(), y("div", {
1391
1456
  ref_key: "root",
1392
1457
  ref: u,
1393
- class: P(V.value)
1458
+ class: I(T.value)
1394
1459
  }, [
1395
1460
  B("button", {
1396
1461
  ref_key: "control",
1397
- ref: i,
1462
+ ref: s,
1398
1463
  class: "vf-datepicker__control",
1399
1464
  type: "button",
1400
1465
  disabled: k.disabled,
1401
1466
  "aria-expanded": l.value,
1402
- "aria-controls": s,
1467
+ "aria-controls": i,
1403
1468
  "aria-haspopup": "dialog",
1404
- onClick: b,
1469
+ onClick: m,
1405
1470
  onKeydown: [
1406
- ee(J(L, ["prevent"]), ["down"]),
1407
- ee(J(b, ["prevent"]), ["enter"]),
1408
- ee(J(y, ["prevent"]), ["esc"])
1471
+ te(Q(R, ["prevent"]), ["down"]),
1472
+ te(Q(m, ["prevent"]), ["enter"]),
1473
+ te(Q(_, ["prevent"]), ["esc"])
1409
1474
  ],
1410
- onFocus: T,
1411
- onBlur: H
1475
+ onFocus: L,
1476
+ onBlur: A
1412
1477
  }, [
1413
1478
  B("span", {
1414
- class: P(["vf-datepicker__label", { "vf-datepicker__label_placeholder": !v.value }])
1415
- }, K(z.value || k.placeholder), 3),
1416
- x[0] || (x[0] = B("span", {
1479
+ class: I(["vf-datepicker__label", { "vf-datepicker__label_placeholder": !f.value }])
1480
+ }, E(S.value || k.placeholder), 3),
1481
+ z[0] || (z[0] = B("span", {
1417
1482
  class: "vf-datepicker__chevron",
1418
1483
  "aria-hidden": "true"
1419
1484
  }, "▾", -1))
1420
- ], 40, ao),
1421
- (m(), ae($e, { to: "body" }, [
1422
- he(B("div", {
1423
- id: s,
1485
+ ], 40, io),
1486
+ (b(), re($e, { to: "body" }, [
1487
+ be(B("div", {
1488
+ id: i,
1424
1489
  ref_key: "panel",
1425
- ref: d,
1490
+ ref: c,
1426
1491
  class: "vf-datepicker__panel",
1427
1492
  role: "dialog",
1428
1493
  "data-placement": n.value,
1429
- onKeydown: ee(J(y, ["prevent"]), ["esc"])
1494
+ onKeydown: te(Q(_, ["prevent"]), ["esc"])
1430
1495
  }, [
1431
- B("div", lo, [
1496
+ B("div", uo, [
1432
1497
  B("button", {
1433
1498
  class: "vf-datepicker__nav",
1434
1499
  type: "button",
1435
1500
  "aria-label": "Previous month",
1436
- onClick: $
1501
+ onClick: x
1437
1502
  }, " ‹ "),
1438
- B("span", no, K(E.value), 1),
1503
+ B("span", vo, E(H.value), 1),
1439
1504
  B("button", {
1440
1505
  class: "vf-datepicker__nav",
1441
1506
  type: "button",
1442
1507
  "aria-label": "Next month",
1443
- onClick: A
1508
+ onClick: K
1444
1509
  }, " › ")
1445
1510
  ]),
1446
- B("div", so, [
1447
- (m(!0), _(pe, null, Be(S.value, (D) => (m(), _("span", {
1448
- key: D,
1511
+ B("div", fo, [
1512
+ (b(!0), y(pe, null, Be(V.value, (P) => (b(), y("span", {
1513
+ key: P,
1449
1514
  class: "vf-datepicker__weekday"
1450
- }, K(D), 1))), 128))
1515
+ }, E(P), 1))), 128))
1451
1516
  ]),
1452
- B("div", io, [
1453
- (m(!0), _(pe, null, Be(W.value, (D) => (m(), _("button", {
1454
- key: D.key,
1455
- class: P(["vf-datepicker__day", {
1456
- "is-outside": !D.inCurrentMonth,
1457
- "is-selected": D.isSelected,
1458
- "is-today": D.isToday
1517
+ B("div", po, [
1518
+ (b(!0), y(pe, null, Be(W.value, (P) => (b(), y("button", {
1519
+ key: P.key,
1520
+ class: I(["vf-datepicker__day", {
1521
+ "is-outside": !P.inCurrentMonth,
1522
+ "is-selected": P.isSelected,
1523
+ "is-today": P.isToday
1459
1524
  }]),
1460
1525
  type: "button",
1461
- disabled: D.isDisabled,
1462
- "data-date": D.iso,
1463
- onClick: (U) => G(D.date)
1464
- }, K(D.day), 11, co))), 128))
1526
+ disabled: P.isDisabled,
1527
+ "data-date": P.iso,
1528
+ onClick: (q) => G(P.date)
1529
+ }, E(P.day), 11, bo))), 128))
1465
1530
  ])
1466
- ], 40, ro), [
1467
- [ye, l.value]
1531
+ ], 40, co), [
1532
+ [me, l.value]
1468
1533
  ])
1469
1534
  ]))
1470
1535
  ], 2));
1471
1536
  }
1472
- }), uo = ["checked", "disabled"], vo = {
1537
+ }), mo = ["checked", "disabled"], go = {
1473
1538
  key: 0,
1474
1539
  class: "vf-checkbox__label"
1475
- }, Ca = /* @__PURE__ */ Y({
1540
+ }, Pa = /* @__PURE__ */ N({
1476
1541
  __name: "checkbox",
1477
1542
  props: {
1478
1543
  modelValue: { type: Boolean, default: !1 },
@@ -1482,32 +1547,32 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1482
1547
  },
1483
1548
  emits: ["update:modelValue", "change"],
1484
1549
  setup(t, { emit: e }) {
1485
- const r = e, o = t, a = h(() => {
1486
- const i = ["vf-checkbox", `vf-checkbox_${o.variant}`];
1487
- return o.disabled && i.push("vf-checkbox_disabled"), i;
1488
- }), u = (i) => {
1489
- const d = i.target;
1490
- r("update:modelValue", d.checked), r("change", i);
1550
+ const r = e, o = t, a = g(() => {
1551
+ const s = ["vf-checkbox", `vf-checkbox_${o.variant}`];
1552
+ return o.disabled && s.push("vf-checkbox_disabled"), s;
1553
+ }), u = (s) => {
1554
+ const c = s.target;
1555
+ r("update:modelValue", c.checked), r("change", s);
1491
1556
  };
1492
- return (i, d) => (m(), _("label", {
1493
- class: P(a.value)
1557
+ return (s, c) => (b(), y("label", {
1558
+ class: I(a.value)
1494
1559
  }, [
1495
1560
  B("input", {
1496
1561
  class: "vf-checkbox__control",
1497
1562
  type: "checkbox",
1498
- checked: i.modelValue,
1499
- disabled: i.disabled,
1563
+ checked: s.modelValue,
1564
+ disabled: s.disabled,
1500
1565
  onChange: u
1501
- }, null, 40, uo),
1502
- d[0] || (d[0] = B("span", { class: "vf-checkbox__box" }, null, -1)),
1503
- i.label || i.$slots.default ? (m(), _("span", vo, [
1504
- F(i.$slots, "default", {}, () => [
1505
- se(K(i.label), 1)
1566
+ }, null, 40, mo),
1567
+ c[0] || (c[0] = B("span", { class: "vf-checkbox__box" }, null, -1)),
1568
+ s.label || s.$slots.default ? (b(), y("span", go, [
1569
+ $(s.$slots, "default", {}, () => [
1570
+ Z(E(s.label), 1)
1506
1571
  ])
1507
- ])) : O("", !0)
1572
+ ])) : F("", !0)
1508
1573
  ], 2));
1509
1574
  }
1510
- }), Qe = Symbol("VueForgeRadioGroup"), fo = ["aria-disabled", "aria-label", "aria-labelledby"], wa = /* @__PURE__ */ Y({
1575
+ }), et = Symbol("VueForgeRadioGroup"), ho = ["aria-disabled", "aria-label", "aria-labelledby"], Wa = /* @__PURE__ */ N({
1511
1576
  __name: "radio-group",
1512
1577
  props: {
1513
1578
  modelValue: { type: [String, Number, Boolean, null], default: void 0 },
@@ -1520,32 +1585,32 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1520
1585
  },
1521
1586
  emits: ["update:modelValue", "change"],
1522
1587
  setup(t, { emit: e }) {
1523
- const r = e, o = t, a = h(() => {
1524
- const d = ["vf-radio-group"];
1525
- return o.direction === "horizontal" && d.push("vf-radio-group_horizontal"), d;
1526
- }), u = (d, l) => {
1527
- r("update:modelValue", d), r("change", d, l);
1528
- }, i = {
1529
- name: h(() => o.name),
1530
- modelValue: h(() => o.modelValue),
1531
- disabled: h(() => o.disabled),
1532
- variant: h(() => o.variant),
1588
+ const r = e, o = t, a = g(() => {
1589
+ const c = ["vf-radio-group"];
1590
+ return o.direction === "horizontal" && c.push("vf-radio-group_horizontal"), c;
1591
+ }), u = (c, l) => {
1592
+ r("update:modelValue", c), r("change", c, l);
1593
+ }, s = {
1594
+ name: g(() => o.name),
1595
+ modelValue: g(() => o.modelValue),
1596
+ disabled: g(() => o.disabled),
1597
+ variant: g(() => o.variant),
1533
1598
  onChange: u
1534
1599
  };
1535
- return Xe(Qe, i), (d, l) => (m(), _("div", {
1536
- class: P(a.value),
1600
+ return qe(et, s), (c, l) => (b(), y("div", {
1601
+ class: I(a.value),
1537
1602
  role: "radiogroup",
1538
- "aria-disabled": d.disabled || void 0,
1539
- "aria-label": d.ariaLabel || void 0,
1540
- "aria-labelledby": d.ariaLabelledby || void 0
1603
+ "aria-disabled": c.disabled || void 0,
1604
+ "aria-label": c.ariaLabel || void 0,
1605
+ "aria-labelledby": c.ariaLabelledby || void 0
1541
1606
  }, [
1542
- F(d.$slots, "default")
1543
- ], 10, fo));
1607
+ $(c.$slots, "default")
1608
+ ], 10, ho));
1544
1609
  }
1545
- }), po = ["name", "value", "checked", "disabled"], bo = {
1610
+ }), yo = ["name", "value", "checked", "disabled"], _o = {
1546
1611
  key: 0,
1547
1612
  class: "vf-radio__label"
1548
- }, $a = /* @__PURE__ */ Y({
1613
+ }, Oa = /* @__PURE__ */ N({
1549
1614
  __name: "radio-button",
1550
1615
  props: {
1551
1616
  modelValue: { type: [String, Number, Boolean, null], default: void 0 },
@@ -1557,33 +1622,33 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1557
1622
  },
1558
1623
  emits: ["update:modelValue", "change"],
1559
1624
  setup(t, { emit: e }) {
1560
- const r = e, o = t, a = Oe(Qe, null), u = h(() => a ? a.modelValue.value : o.modelValue), i = h(() => a ? a.name.value : o.name), d = h(() => a ? a.variant.value : o.variant), l = h(() => (a ? a.disabled.value : !1) || o.disabled), c = h(() => u.value === o.value), n = h(() => {
1561
- const p = ["vf-radio", `vf-radio_${d.value}`];
1562
- return l.value && p.push("vf-radio_disabled"), p;
1563
- }), s = (p) => {
1564
- l.value || (a ? a.onChange(o.value, p) : r("update:modelValue", o.value), r("change", o.value, p));
1625
+ const r = e, o = t, a = Oe(et, null), u = g(() => a ? a.modelValue.value : o.modelValue), s = g(() => a ? a.name.value : o.name), c = g(() => a ? a.variant.value : o.variant), l = g(() => (a ? a.disabled.value : !1) || o.disabled), d = g(() => u.value === o.value), n = g(() => {
1626
+ const v = ["vf-radio", `vf-radio_${c.value}`];
1627
+ return l.value && v.push("vf-radio_disabled"), v;
1628
+ }), i = (v) => {
1629
+ l.value || (a ? a.onChange(o.value, v) : r("update:modelValue", o.value), r("change", o.value, v));
1565
1630
  };
1566
- return (p, f) => (m(), _("label", {
1567
- class: P(n.value)
1631
+ return (v, p) => (b(), y("label", {
1632
+ class: I(n.value)
1568
1633
  }, [
1569
1634
  B("input", {
1570
1635
  class: "vf-radio__control",
1571
1636
  type: "radio",
1572
- name: i.value,
1573
- value: p.value,
1574
- checked: c.value,
1637
+ name: s.value,
1638
+ value: v.value,
1639
+ checked: d.value,
1575
1640
  disabled: l.value,
1576
- onChange: s
1577
- }, null, 40, po),
1578
- f[0] || (f[0] = B("span", { class: "vf-radio__circle" }, null, -1)),
1579
- p.label || p.$slots.default ? (m(), _("span", bo, [
1580
- F(p.$slots, "default", {}, () => [
1581
- se(K(p.label), 1)
1641
+ onChange: i
1642
+ }, null, 40, yo),
1643
+ p[0] || (p[0] = B("span", { class: "vf-radio__circle" }, null, -1)),
1644
+ v.label || v.$slots.default ? (b(), y("span", _o, [
1645
+ $(v.$slots, "default", {}, () => [
1646
+ Z(E(v.label), 1)
1582
1647
  ])
1583
- ])) : O("", !0)
1648
+ ])) : F("", !0)
1584
1649
  ], 2));
1585
1650
  }
1586
- }), Me = Symbol("VueForgeTabs"), mo = ["aria-orientation", "aria-label", "aria-labelledby"], go = { class: "vf-tabs__panels" }, xa = /* @__PURE__ */ Y({
1651
+ }), Me = Symbol("VueForgeTabs"), ko = ["aria-orientation", "aria-label", "aria-labelledby"], Co = { class: "vf-tabs__panels" }, Ma = /* @__PURE__ */ N({
1587
1652
  __name: "tabs",
1588
1653
  props: {
1589
1654
  modelValue: { default: void 0 },
@@ -1595,54 +1660,54 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1595
1660
  emits: ["update:modelValue", "change"],
1596
1661
  setup(t, { emit: e }) {
1597
1662
  let r = 0;
1598
- const o = e, a = t, u = ++r, i = (v) => String(v).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), d = h(() => {
1599
- const v = ["vf-tabs"];
1600
- return a.orientation === "vertical" && v.push("vf-tabs_vertical"), a.disabled && v.push("vf-tabs_disabled"), v;
1601
- }), l = M(null), c = () => l.value ? Array.from(l.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], n = (v) => {
1602
- v && (v.focus(), v.click());
1603
- }, s = (v) => {
1663
+ const o = e, a = t, u = ++r, s = (f) => String(f).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), c = g(() => {
1664
+ const f = ["vf-tabs"];
1665
+ return a.orientation === "vertical" && f.push("vf-tabs_vertical"), a.disabled && f.push("vf-tabs_disabled"), f;
1666
+ }), l = M(null), d = () => l.value ? Array.from(l.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], n = (f) => {
1667
+ f && (f.focus(), f.click());
1668
+ }, i = (f) => {
1604
1669
  if (a.disabled)
1605
1670
  return;
1606
- const w = a.orientation === "horizontal", C = v.key, z = w ? ["ArrowRight"] : ["ArrowDown"], E = w ? ["ArrowLeft"] : ["ArrowUp"];
1607
- if (![...z, ...E, "Home", "End"].includes(C))
1671
+ const w = a.orientation === "horizontal", C = f.key, S = w ? ["ArrowRight"] : ["ArrowDown"], H = w ? ["ArrowLeft"] : ["ArrowUp"];
1672
+ if (![...S, ...H, "Home", "End"].includes(C))
1608
1673
  return;
1609
- const S = c();
1610
- if (!S.length)
1674
+ const V = d();
1675
+ if (!V.length)
1611
1676
  return;
1612
- const W = S.findIndex((L) => L.getAttribute("aria-selected") === "true"), V = S.findIndex((L) => L === document.activeElement), T = V >= 0 ? V : Math.max(W, 0);
1613
- let H = T;
1614
- z.includes(C) ? H = (T + 1) % S.length : E.includes(C) ? H = (T - 1 + S.length) % S.length : C === "Home" ? H = 0 : C === "End" && (H = S.length - 1), v.preventDefault(), n(S[H]);
1615
- }, p = (v, w) => {
1616
- o("update:modelValue", v), o("change", v, w);
1617
- }, f = {
1618
- activeValue: h(() => a.modelValue),
1619
- disabled: h(() => a.disabled),
1620
- orientation: h(() => a.orientation),
1621
- onChange: p,
1622
- getTabId: (v) => `vf-tab-${u}-${i(v)}`,
1623
- getPanelId: (v) => `vf-tabpanel-${u}-${i(v)}`
1677
+ const W = V.findIndex((R) => R.getAttribute("aria-selected") === "true"), T = V.findIndex((R) => R === document.activeElement), L = T >= 0 ? T : Math.max(W, 0);
1678
+ let A = L;
1679
+ S.includes(C) ? A = (L + 1) % V.length : H.includes(C) ? A = (L - 1 + V.length) % V.length : C === "Home" ? A = 0 : C === "End" && (A = V.length - 1), f.preventDefault(), n(V[A]);
1680
+ }, v = (f, w) => {
1681
+ o("update:modelValue", f), o("change", f, w);
1682
+ }, p = {
1683
+ activeValue: g(() => a.modelValue),
1684
+ disabled: g(() => a.disabled),
1685
+ orientation: g(() => a.orientation),
1686
+ onChange: v,
1687
+ getTabId: (f) => `vf-tab-${u}-${s(f)}`,
1688
+ getPanelId: (f) => `vf-tabpanel-${u}-${s(f)}`
1624
1689
  };
1625
- return Xe(Me, f), (v, w) => (m(), _("div", {
1626
- class: P(d.value)
1690
+ return qe(Me, p), (f, w) => (b(), y("div", {
1691
+ class: I(c.value)
1627
1692
  }, [
1628
1693
  B("div", {
1629
1694
  ref_key: "list",
1630
1695
  ref: l,
1631
1696
  class: "vf-tabs__list",
1632
1697
  role: "tablist",
1633
- "aria-orientation": v.orientation,
1634
- "aria-label": v.ariaLabel || void 0,
1635
- "aria-labelledby": v.ariaLabelledby || void 0,
1636
- onKeydown: s
1698
+ "aria-orientation": f.orientation,
1699
+ "aria-label": f.ariaLabel || void 0,
1700
+ "aria-labelledby": f.ariaLabelledby || void 0,
1701
+ onKeydown: i
1637
1702
  }, [
1638
- F(v.$slots, "tabs")
1639
- ], 40, mo),
1640
- B("div", go, [
1641
- F(v.$slots, "panels")
1703
+ $(f.$slots, "tabs")
1704
+ ], 40, ko),
1705
+ B("div", Co, [
1706
+ $(f.$slots, "panels")
1642
1707
  ])
1643
1708
  ], 2));
1644
1709
  }
1645
- }), ho = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"], Ba = /* @__PURE__ */ Y({
1710
+ }), wo = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"], Ea = /* @__PURE__ */ N({
1646
1711
  __name: "tab",
1647
1712
  props: {
1648
1713
  value: {},
@@ -1651,51 +1716,51 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1651
1716
  },
1652
1717
  emits: ["change"],
1653
1718
  setup(t, { emit: e }) {
1654
- const r = e, o = t, a = Oe(Me, null), u = h(() => (a == null ? void 0 : a.activeValue.value) === o.value), i = h(() => ((a == null ? void 0 : a.disabled.value) ?? !1) || o.disabled), d = h(() => a ? a.getTabId(o.value) : void 0), l = h(() => a ? a.getPanelId(o.value) : void 0), c = h(() => i.value ? -1 : u.value ? 0 : -1), n = (s) => {
1655
- !a || i.value || (a.onChange(o.value, s), r("change", o.value, s));
1719
+ const r = e, o = t, a = Oe(Me, null), u = g(() => (a == null ? void 0 : a.activeValue.value) === o.value), s = g(() => ((a == null ? void 0 : a.disabled.value) ?? !1) || o.disabled), c = g(() => a ? a.getTabId(o.value) : void 0), l = g(() => a ? a.getPanelId(o.value) : void 0), d = g(() => s.value ? -1 : u.value ? 0 : -1), n = (i) => {
1720
+ !a || s.value || (a.onChange(o.value, i), r("change", o.value, i));
1656
1721
  };
1657
- return (s, p) => (m(), _("button", {
1658
- id: d.value,
1659
- class: P(["vf-tab", { "vf-tab_active": u.value, "vf-tab_disabled": i.value }]),
1722
+ return (i, v) => (b(), y("button", {
1723
+ id: c.value,
1724
+ class: I(["vf-tab", { "vf-tab_active": u.value, "vf-tab_disabled": s.value }]),
1660
1725
  type: "button",
1661
1726
  role: "tab",
1662
1727
  "aria-selected": u.value,
1663
1728
  "aria-controls": l.value,
1664
- disabled: i.value,
1665
- tabindex: c.value,
1729
+ disabled: s.value,
1730
+ tabindex: d.value,
1666
1731
  onClick: n
1667
1732
  }, [
1668
- F(s.$slots, "default", {}, () => [
1669
- se(K(s.label), 1)
1733
+ $(i.$slots, "default", {}, () => [
1734
+ Z(E(i.label), 1)
1670
1735
  ])
1671
- ], 10, ho));
1736
+ ], 10, wo));
1672
1737
  }
1673
- }), yo = ["id", "aria-labelledby"], za = /* @__PURE__ */ Y({
1738
+ }), $o = ["id", "aria-labelledby"], Ha = /* @__PURE__ */ N({
1674
1739
  __name: "tab-panel",
1675
1740
  props: {
1676
1741
  value: {}
1677
1742
  },
1678
1743
  setup(t) {
1679
- const e = t, r = Oe(Me, null), o = h(() => (r == null ? void 0 : r.activeValue.value) === e.value), a = h(() => r ? r.getTabId(e.value) : void 0), u = h(() => r ? r.getPanelId(e.value) : void 0);
1680
- return (i, d) => he((m(), _("div", {
1744
+ const e = t, r = Oe(Me, null), o = g(() => (r == null ? void 0 : r.activeValue.value) === e.value), a = g(() => r ? r.getTabId(e.value) : void 0), u = g(() => r ? r.getPanelId(e.value) : void 0);
1745
+ return (s, c) => be((b(), y("div", {
1681
1746
  id: u.value,
1682
1747
  class: "vf-tab-panel",
1683
1748
  role: "tabpanel",
1684
1749
  tabindex: "0",
1685
1750
  "aria-labelledby": a.value
1686
1751
  }, [
1687
- F(i.$slots, "default")
1688
- ], 8, yo)), [
1689
- [ye, o.value]
1752
+ $(s.$slots, "default")
1753
+ ], 8, $o)), [
1754
+ [me, o.value]
1690
1755
  ]);
1691
1756
  }
1692
- }), ko = ["data-severity"], _o = { class: "vf-toast__body" }, Co = {
1757
+ }), xo = ["data-severity"], Bo = { class: "vf-toast__body" }, zo = {
1693
1758
  key: 0,
1694
1759
  class: "vf-toast__title"
1695
- }, wo = {
1760
+ }, Fo = {
1696
1761
  key: 1,
1697
1762
  class: "vf-toast__message"
1698
- }, Fa = /* @__PURE__ */ Y({
1763
+ }, Aa = /* @__PURE__ */ N({
1699
1764
  __name: "toast",
1700
1765
  props: {
1701
1766
  modelValue: { type: Boolean, default: !1 },
@@ -1711,70 +1776,146 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1711
1776
  let a = null;
1712
1777
  const u = () => {
1713
1778
  a !== null && (clearTimeout(a), a = null);
1714
- }, i = () => {
1779
+ }, s = () => {
1715
1780
  u(), !(!o.modelValue || o.duration <= 0) && (a = window.setTimeout(() => {
1716
1781
  r("update:modelValue", !1), r("close");
1717
1782
  }, o.duration));
1718
- }, d = () => {
1783
+ }, c = () => {
1719
1784
  u(), r("update:modelValue", !1), r("close");
1720
1785
  };
1721
1786
  return oe(
1722
1787
  () => o.modelValue,
1723
1788
  (l) => {
1724
- l && r("open"), i();
1789
+ l && r("open"), s();
1725
1790
  },
1726
1791
  { immediate: !0 }
1727
1792
  ), we(() => {
1728
1793
  u();
1729
- }), (l, c) => he((m(), _("div", {
1794
+ }), (l, d) => be((b(), y("div", {
1730
1795
  class: "vf-toast",
1731
1796
  role: "status",
1732
1797
  "aria-live": "polite",
1733
1798
  "data-severity": l.severity
1734
1799
  }, [
1735
- B("div", _o, [
1736
- l.title ? (m(), _("div", Co, K(l.title), 1)) : O("", !0),
1737
- l.message || l.$slots.default ? (m(), _("div", wo, [
1738
- F(l.$slots, "default", {}, () => [
1739
- se(K(l.message), 1)
1800
+ B("div", Bo, [
1801
+ l.title ? (b(), y("div", zo, E(l.title), 1)) : F("", !0),
1802
+ l.message || l.$slots.default ? (b(), y("div", Fo, [
1803
+ $(l.$slots, "default", {}, () => [
1804
+ Z(E(l.message), 1)
1740
1805
  ])
1741
- ])) : O("", !0)
1806
+ ])) : F("", !0)
1742
1807
  ]),
1743
- l.closable ? (m(), _("button", {
1808
+ l.closable ? (b(), y("button", {
1744
1809
  key: 0,
1745
1810
  class: "vf-toast__close",
1746
1811
  type: "button",
1747
- onClick: d
1812
+ onClick: c
1748
1813
  }, [
1749
- F(l.$slots, "close", {}, () => [
1750
- c[0] || (c[0] = se("×"))
1814
+ $(l.$slots, "close", {}, () => [
1815
+ d[0] || (d[0] = Z("×"))
1751
1816
  ])
1752
- ])) : O("", !0)
1753
- ], 8, ko)), [
1754
- [ye, l.modelValue]
1817
+ ])) : F("", !0)
1818
+ ], 8, xo)), [
1819
+ [me, l.modelValue]
1755
1820
  ]);
1756
1821
  }
1757
- }), Sa = /* @__PURE__ */ Y({
1822
+ }), Ka = /* @__PURE__ */ N({
1758
1823
  __name: "toast-container",
1759
1824
  props: {
1760
1825
  position: { default: "top-right" }
1761
1826
  },
1762
1827
  setup(t) {
1763
- const e = t, r = h(() => `vf-toast-container_${e.position}`);
1764
- return (o, a) => (m(), ae($e, { to: "body" }, [
1828
+ const e = t, r = g(() => `vf-toast-container_${e.position}`);
1829
+ return (o, a) => (b(), re($e, { to: "body" }, [
1765
1830
  B("div", {
1766
- class: P(["vf-toast-container", r.value]),
1831
+ class: I(["vf-toast-container", r.value]),
1767
1832
  role: "region",
1768
1833
  "aria-live": "polite"
1769
1834
  }, [
1770
- F(o.$slots, "default")
1835
+ $(o.$slots, "default")
1771
1836
  ], 2)
1772
1837
  ]));
1773
1838
  }
1774
- }), $o = ["checked", "disabled"], xo = {
1839
+ }), So = ["data-severity"], Vo = {
1840
+ key: 0,
1841
+ class: "vf-alert__icon",
1842
+ "aria-hidden": "true"
1843
+ }, To = { class: "vf-alert__body" }, Lo = {
1844
+ key: 0,
1845
+ class: "vf-alert__title"
1846
+ }, Ro = {
1847
+ key: 1,
1848
+ class: "vf-alert__message"
1849
+ }, Do = {
1850
+ key: 1,
1851
+ class: "vf-alert__actions"
1852
+ }, Na = /* @__PURE__ */ N({
1853
+ __name: "alert",
1854
+ props: {
1855
+ modelValue: { type: Boolean },
1856
+ title: { default: "" },
1857
+ message: { default: "" },
1858
+ severity: { default: "neutral" },
1859
+ closable: { type: Boolean, default: !1 },
1860
+ icon: { default: "" }
1861
+ },
1862
+ emits: ["update:modelValue", "close"],
1863
+ setup(t, { emit: e }) {
1864
+ const r = e, o = t, a = M(!0), u = g(() => typeof o.modelValue == "boolean"), s = g(() => u.value ? o.modelValue : a.value);
1865
+ oe(
1866
+ () => o.modelValue,
1867
+ (l) => {
1868
+ typeof l == "boolean" && (a.value = l);
1869
+ },
1870
+ { immediate: !0 }
1871
+ );
1872
+ const c = () => {
1873
+ u.value ? r("update:modelValue", !1) : a.value = !1, r("close");
1874
+ };
1875
+ return (l, d) => be((b(), y("div", {
1876
+ class: "vf-alert",
1877
+ role: "alert",
1878
+ "data-severity": l.severity
1879
+ }, [
1880
+ l.$slots.icon || l.icon ? (b(), y("div", Vo, [
1881
+ $(l.$slots, "icon", {}, () => [
1882
+ Z(E(l.icon), 1)
1883
+ ])
1884
+ ])) : F("", !0),
1885
+ B("div", To, [
1886
+ l.title || l.$slots.title ? (b(), y("div", Lo, [
1887
+ $(l.$slots, "title", {}, () => [
1888
+ Z(E(l.title), 1)
1889
+ ])
1890
+ ])) : F("", !0),
1891
+ l.message || l.$slots.default ? (b(), y("div", Ro, [
1892
+ $(l.$slots, "default", {}, () => [
1893
+ Z(E(l.message), 1)
1894
+ ])
1895
+ ])) : F("", !0)
1896
+ ]),
1897
+ l.$slots.actions ? (b(), y("div", Do, [
1898
+ $(l.$slots, "actions")
1899
+ ])) : F("", !0),
1900
+ l.closable ? (b(), y("button", {
1901
+ key: 2,
1902
+ class: "vf-alert__close",
1903
+ type: "button",
1904
+ "aria-label": "Close",
1905
+ onClick: c
1906
+ }, [
1907
+ $(l.$slots, "close", {}, () => [
1908
+ d[0] || (d[0] = Z("×"))
1909
+ ])
1910
+ ])) : F("", !0)
1911
+ ], 8, So)), [
1912
+ [me, s.value]
1913
+ ]);
1914
+ }
1915
+ }), Io = ["checked", "disabled"], Po = {
1775
1916
  key: 0,
1776
1917
  class: "vf-switch__label"
1777
- }, Va = /* @__PURE__ */ Y({
1918
+ }, Ya = /* @__PURE__ */ N({
1778
1919
  __name: "switch",
1779
1920
  props: {
1780
1921
  modelValue: { type: Boolean, default: !1 },
@@ -1783,113 +1924,113 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1783
1924
  },
1784
1925
  emits: ["update:modelValue", "change"],
1785
1926
  setup(t, { emit: e }) {
1786
- const r = e, o = t, a = h(() => {
1787
- const i = ["vf-switch"];
1788
- return o.disabled && i.push("vf-switch_disabled"), i;
1789
- }), u = (i) => {
1790
- const d = i.target;
1791
- r("update:modelValue", d.checked), r("change", i);
1927
+ const r = e, o = t, a = g(() => {
1928
+ const s = ["vf-switch"];
1929
+ return o.disabled && s.push("vf-switch_disabled"), s;
1930
+ }), u = (s) => {
1931
+ const c = s.target;
1932
+ r("update:modelValue", c.checked), r("change", s);
1792
1933
  };
1793
- return (i, d) => (m(), _("label", {
1794
- class: P(a.value)
1934
+ return (s, c) => (b(), y("label", {
1935
+ class: I(a.value)
1795
1936
  }, [
1796
1937
  B("input", {
1797
1938
  class: "vf-switch__control",
1798
1939
  type: "checkbox",
1799
- checked: i.modelValue,
1800
- disabled: i.disabled,
1940
+ checked: s.modelValue,
1941
+ disabled: s.disabled,
1801
1942
  onChange: u
1802
- }, null, 40, $o),
1803
- d[0] || (d[0] = B("span", { class: "vf-switch__track" }, [
1943
+ }, null, 40, Io),
1944
+ c[0] || (c[0] = B("span", { class: "vf-switch__track" }, [
1804
1945
  B("span", { class: "vf-switch__thumb" })
1805
1946
  ], -1)),
1806
- i.label || i.$slots.default ? (m(), _("span", xo, [
1807
- F(i.$slots, "default", {}, () => [
1808
- se(K(i.label), 1)
1947
+ s.label || s.$slots.default ? (b(), y("span", Po, [
1948
+ $(s.$slots, "default", {}, () => [
1949
+ Z(E(s.label), 1)
1809
1950
  ])
1810
- ])) : O("", !0)
1951
+ ])) : F("", !0)
1811
1952
  ], 2));
1812
1953
  }
1813
- }), Bo = { class: "vf-popover" }, zo = ["aria-expanded", "onKeydown"], Ta = /* @__PURE__ */ Y({
1954
+ }), Wo = { class: "vf-popover" }, Oo = ["aria-expanded", "onKeydown"], Ga = /* @__PURE__ */ N({
1814
1955
  __name: "popover",
1815
1956
  emits: ["click", "onClick"],
1816
1957
  setup(t, { expose: e, emit: r }) {
1817
- const o = r, a = rt({ visible: !1 });
1958
+ const o = r, a = lt({ visible: !1 });
1818
1959
  let u = 0;
1819
- const i = `vf-popover-panel-${++u}`, d = () => a.visible = !0, l = () => a.visible = !1, c = () => a.visible = !a.visible, n = () => {
1820
- c(), o("click"), o("onClick");
1960
+ const s = `vf-popover-panel-${++u}`, c = () => a.visible = !0, l = () => a.visible = !1, d = () => a.visible = !a.visible, n = () => {
1961
+ d(), o("click"), o("onClick");
1821
1962
  };
1822
- return e({ show: d, hide: l, toggle: c }), (s, p) => (m(), _("div", Bo, [
1963
+ return e({ show: c, hide: l, toggle: d }), (i, v) => (b(), y("div", Wo, [
1823
1964
  B("div", {
1824
1965
  class: "vf-popover__button",
1825
1966
  role: "button",
1826
1967
  tabindex: "0",
1827
1968
  "aria-haspopup": "dialog",
1828
1969
  "aria-expanded": a.visible,
1829
- "aria-controls": i,
1970
+ "aria-controls": s,
1830
1971
  onClick: n,
1831
1972
  onKeydown: [
1832
- ee(J(n, ["prevent"]), ["enter"]),
1833
- ee(J(n, ["prevent"]), ["space"])
1973
+ te(Q(n, ["prevent"]), ["enter"]),
1974
+ te(Q(n, ["prevent"]), ["space"])
1834
1975
  ]
1835
1976
  }, [
1836
- F(s.$slots, "button")
1837
- ], 40, zo),
1838
- he(je(ht, {
1839
- id: i,
1977
+ $(i.$slots, "button")
1978
+ ], 40, Oo),
1979
+ be(je(ht, {
1980
+ id: s,
1840
1981
  class: "vf-popover__wrapper"
1841
- }, lt({
1842
- default: me(() => [
1843
- p[0] || (p[0] = B("div", { class: "vf-popover__arrow" }, null, -1))
1982
+ }, nt({
1983
+ default: he(() => [
1984
+ v[0] || (v[0] = B("div", { class: "vf-popover__arrow" }, null, -1))
1844
1985
  ]),
1845
1986
  _: 2
1846
1987
  }, [
1847
- s.$slots.default ? {
1988
+ i.$slots.default ? {
1848
1989
  name: "default",
1849
- fn: me(() => [
1850
- F(s.$slots, "default")
1990
+ fn: he(() => [
1991
+ $(i.$slots, "default")
1851
1992
  ]),
1852
1993
  key: "0"
1853
1994
  } : void 0,
1854
- s.$slots.header || s.$slots.popoverHeader ? {
1995
+ i.$slots.header || i.$slots.popoverHeader ? {
1855
1996
  name: "header",
1856
- fn: me(() => [
1857
- F(s.$slots, "header"),
1858
- s.$slots.header ? O("", !0) : F(s.$slots, "popoverHeader", { key: 0 })
1997
+ fn: he(() => [
1998
+ $(i.$slots, "header"),
1999
+ i.$slots.header ? F("", !0) : $(i.$slots, "popoverHeader", { key: 0 })
1859
2000
  ]),
1860
2001
  key: "1"
1861
2002
  } : void 0,
1862
- s.$slots.body || s.$slots.popoverBody ? {
2003
+ i.$slots.body || i.$slots.popoverBody ? {
1863
2004
  name: "body",
1864
- fn: me(() => [
1865
- F(s.$slots, "body"),
1866
- s.$slots.body ? O("", !0) : F(s.$slots, "popoverBody", { key: 0 })
2005
+ fn: he(() => [
2006
+ $(i.$slots, "body"),
2007
+ i.$slots.body ? F("", !0) : $(i.$slots, "popoverBody", { key: 0 })
1867
2008
  ]),
1868
2009
  key: "2"
1869
2010
  } : void 0,
1870
- s.$slots.footer || s.$slots.popoverFooter ? {
2011
+ i.$slots.footer || i.$slots.popoverFooter ? {
1871
2012
  name: "footer",
1872
- fn: me(() => [
1873
- F(s.$slots, "footer"),
1874
- s.$slots.footer ? O("", !0) : F(s.$slots, "popoverFooter", { key: 0 })
2013
+ fn: he(() => [
2014
+ $(i.$slots, "footer"),
2015
+ i.$slots.footer ? F("", !0) : $(i.$slots, "popoverFooter", { key: 0 })
1875
2016
  ]),
1876
2017
  key: "3"
1877
2018
  } : void 0
1878
2019
  ]), 1536), [
1879
- [ye, a.visible]
2020
+ [me, a.visible]
1880
2021
  ])
1881
2022
  ]));
1882
2023
  }
1883
- }), Fo = ["aria-labelledby", "aria-describedby"], So = {
2024
+ }), Mo = ["aria-labelledby", "aria-describedby"], Eo = {
1884
2025
  key: 0,
1885
2026
  class: "vf-modal__header"
1886
- }, Vo = {
2027
+ }, Ho = {
1887
2028
  key: 0,
1888
2029
  class: "vf-modal__title"
1889
- }, To = {
2030
+ }, Ao = {
1890
2031
  key: 3,
1891
2032
  class: "vf-modal__footer"
1892
- }, La = /* @__PURE__ */ Y({
2033
+ }, ja = /* @__PURE__ */ N({
1893
2034
  __name: "modal",
1894
2035
  props: {
1895
2036
  modelValue: { type: Boolean, default: !1 },
@@ -1903,111 +2044,111 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
1903
2044
  emits: ["update:modelValue", "open", "close"],
1904
2045
  setup(t, { expose: e, emit: r }) {
1905
2046
  const o = r, a = t;
1906
- let u = 0, i = 0, d = "", l = null;
1907
- const c = M(null), n = nt(), s = `vf-modal-title-${++u}`, p = `vf-modal-body-${u}`, f = h(() => !!a.title || !!n.header), v = h(() => !!n.body || !!n.default), w = h(() => {
1908
- const y = ["vf-modal"];
1909
- return a.size !== "md" && y.push(`vf-modal_${a.size}`), y;
1910
- }), C = () => o("update:modelValue", !0), z = () => {
2047
+ let u = 0, s = 0, c = "", l = null;
2048
+ const d = M(null), n = Xe(), i = `vf-modal-title-${++u}`, v = `vf-modal-body-${u}`, p = g(() => !!a.title || !!n.header), f = g(() => !!n.body || !!n.default), w = g(() => {
2049
+ const _ = ["vf-modal"];
2050
+ return a.size !== "md" && _.push(`vf-modal_${a.size}`), _;
2051
+ }), C = () => o("update:modelValue", !0), S = () => {
1911
2052
  o("update:modelValue", !1), o("close");
1912
- }, E = () => {
1913
- a.closeOnOverlay && z();
1914
- }, S = (y) => {
1915
- !a.modelValue || !a.closeOnEsc || y.key === "Escape" && (y.preventDefault(), z());
1916
- }, W = () => c.value ? Array.from(c.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((b) => !b.hasAttribute("disabled") && !b.getAttribute("aria-hidden")) : [], V = () => {
1917
- var b;
1918
- const y = W();
1919
- y.length ? y[0].focus() : (b = c.value) == null || b.focus();
1920
- }, T = (y) => {
2053
+ }, H = () => {
2054
+ a.closeOnOverlay && S();
2055
+ }, V = (_) => {
2056
+ !a.modelValue || !a.closeOnEsc || _.key === "Escape" && (_.preventDefault(), S());
2057
+ }, W = () => d.value ? Array.from(d.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((m) => !m.hasAttribute("disabled") && !m.getAttribute("aria-hidden")) : [], T = () => {
2058
+ var m;
2059
+ const _ = W();
2060
+ _.length ? _[0].focus() : (m = d.value) == null || m.focus();
2061
+ }, L = (_) => {
1921
2062
  var j;
1922
- if (y.key !== "Tab")
2063
+ if (_.key !== "Tab")
1923
2064
  return;
1924
- const b = W();
1925
- if (!b.length) {
1926
- y.preventDefault(), (j = c.value) == null || j.focus();
2065
+ const m = W();
2066
+ if (!m.length) {
2067
+ _.preventDefault(), (j = d.value) == null || j.focus();
1927
2068
  return;
1928
2069
  }
1929
- const $ = b[0], A = b[b.length - 1], G = document.activeElement;
1930
- if (y.shiftKey && G === $) {
1931
- y.preventDefault(), A.focus();
2070
+ const x = m[0], K = m[m.length - 1], G = document.activeElement;
2071
+ if (_.shiftKey && G === x) {
2072
+ _.preventDefault(), K.focus();
1932
2073
  return;
1933
2074
  }
1934
- !y.shiftKey && G === A && (y.preventDefault(), $.focus());
1935
- }, H = () => {
1936
- !a.lockScroll || typeof document > "u" || (i === 0 && (d = document.body.style.overflow, document.body.style.overflow = "hidden"), i += 1);
1937
- }, L = () => {
1938
- !a.lockScroll || typeof document > "u" || (i = Math.max(0, i - 1), i === 0 && (document.body.style.overflow = d));
2075
+ !_.shiftKey && G === K && (_.preventDefault(), x.focus());
2076
+ }, A = () => {
2077
+ !a.lockScroll || typeof document > "u" || (s === 0 && (c = document.body.style.overflow, document.body.style.overflow = "hidden"), s += 1);
2078
+ }, R = () => {
2079
+ !a.lockScroll || typeof document > "u" || (s = Math.max(0, s - 1), s === 0 && (document.body.style.overflow = c));
1939
2080
  };
1940
2081
  return oe(
1941
2082
  () => a.modelValue,
1942
- async (y) => {
1943
- y ? (typeof document < "u" && (l = document.activeElement), H(), o("open"), await ze(), V(), typeof document < "u" && document.addEventListener("keydown", S)) : (L(), typeof document < "u" && (document.removeEventListener("keydown", S), l == null || l.focus()));
2083
+ async (_) => {
2084
+ _ ? (typeof document < "u" && (l = document.activeElement), A(), o("open"), await ze(), T(), typeof document < "u" && document.addEventListener("keydown", V)) : (R(), typeof document < "u" && (document.removeEventListener("keydown", V), l == null || l.focus()));
1944
2085
  },
1945
2086
  { immediate: !0 }
1946
2087
  ), we(() => {
1947
- L(), typeof document < "u" && document.removeEventListener("keydown", S);
1948
- }), e({ open: C, close: z }), (y, b) => (m(), ae($e, { to: "body" }, [
1949
- he(B("div", {
1950
- class: P(w.value),
2088
+ R(), typeof document < "u" && document.removeEventListener("keydown", V);
2089
+ }), e({ open: C, close: S }), (_, m) => (b(), re($e, { to: "body" }, [
2090
+ be(B("div", {
2091
+ class: I(w.value),
1951
2092
  role: "presentation"
1952
2093
  }, [
1953
2094
  B("div", {
1954
2095
  class: "vf-modal__overlay",
1955
- onClick: E
2096
+ onClick: H
1956
2097
  }),
1957
2098
  B("div", {
1958
2099
  ref_key: "panel",
1959
- ref: c,
2100
+ ref: d,
1960
2101
  class: "vf-modal__panel",
1961
2102
  role: "dialog",
1962
2103
  "aria-modal": "true",
1963
- "aria-labelledby": f.value ? s : void 0,
1964
- "aria-describedby": v.value ? p : void 0,
2104
+ "aria-labelledby": p.value ? i : void 0,
2105
+ "aria-describedby": f.value ? v : void 0,
1965
2106
  tabindex: "-1",
1966
- onKeydown: T
2107
+ onKeydown: L
1967
2108
  }, [
1968
- f.value ? (m(), _("div", So, [
2109
+ p.value ? (b(), y("div", Eo, [
1969
2110
  B("div", {
1970
- id: s,
2111
+ id: i,
1971
2112
  class: "vf-modal__header-content"
1972
2113
  }, [
1973
- F(y.$slots, "header", {}, () => [
1974
- y.title ? (m(), _("h3", Vo, K(y.title), 1)) : O("", !0)
2114
+ $(_.$slots, "header", {}, () => [
2115
+ _.title ? (b(), y("h3", Ho, E(_.title), 1)) : F("", !0)
1975
2116
  ])
1976
2117
  ])
1977
- ])) : O("", !0),
1978
- y.showClose ? F(y.$slots, "close", {
2118
+ ])) : F("", !0),
2119
+ _.showClose ? $(_.$slots, "close", {
1979
2120
  key: 1,
1980
- close: z
2121
+ close: S
1981
2122
  }, () => [
1982
2123
  B("button", {
1983
2124
  type: "button",
1984
2125
  class: "vf-modal__close",
1985
2126
  "aria-label": "Close",
1986
- onClick: z
2127
+ onClick: S
1987
2128
  }, "×")
1988
- ]) : O("", !0),
1989
- y.$slots.body || y.$slots.default ? (m(), _("div", {
2129
+ ]) : F("", !0),
2130
+ _.$slots.body || _.$slots.default ? (b(), y("div", {
1990
2131
  key: 2,
1991
- id: p,
2132
+ id: v,
1992
2133
  class: "vf-modal__body"
1993
2134
  }, [
1994
- F(y.$slots, "body"),
1995
- y.$slots.body ? O("", !0) : F(y.$slots, "default", { key: 0 })
1996
- ])) : O("", !0),
1997
- y.$slots.footer ? (m(), _("div", To, [
1998
- F(y.$slots, "footer")
1999
- ])) : O("", !0)
2000
- ], 40, Fo)
2135
+ $(_.$slots, "body"),
2136
+ _.$slots.body ? F("", !0) : $(_.$slots, "default", { key: 0 })
2137
+ ])) : F("", !0),
2138
+ _.$slots.footer ? (b(), y("div", Ao, [
2139
+ $(_.$slots, "footer")
2140
+ ])) : F("", !0)
2141
+ ], 40, Mo)
2001
2142
  ], 2), [
2002
- [ye, y.modelValue]
2143
+ [me, _.modelValue]
2003
2144
  ])
2004
2145
  ]));
2005
2146
  }
2006
- }), Lo = ["data-placement"], Ro = { class: "vf-tooltip__content" }, Do = {
2147
+ }), Ko = ["data-placement"], No = { class: "vf-tooltip__content" }, Yo = {
2007
2148
  key: 0,
2008
2149
  class: "vf-tooltip__arrow",
2009
2150
  "aria-hidden": "true"
2010
- }, Ra = /* @__PURE__ */ Y({
2151
+ }, Xa = /* @__PURE__ */ N({
2011
2152
  __name: "tooltip",
2012
2153
  props: {
2013
2154
  text: { default: "" },
@@ -2018,139 +2159,139 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
2018
2159
  setup(t) {
2019
2160
  const e = t;
2020
2161
  let r = 0;
2021
- const o = M(null), a = M(null), u = M(!1), i = M("top"), d = `vf-tooltip-${++r}`;
2162
+ const o = M(null), a = M(null), u = M(!1), s = M("top"), c = `vf-tooltip-${++r}`;
2022
2163
  let l = null;
2023
- const c = () => {
2164
+ const d = () => {
2024
2165
  e.disabled || (u.value = !0);
2025
2166
  }, n = () => {
2026
2167
  u.value = !1;
2027
- }, s = () => {
2168
+ }, i = () => {
2028
2169
  if (!o.value || !a.value)
2029
2170
  return;
2030
- const f = o.value, v = a.value, w = async () => {
2171
+ const p = o.value, f = a.value, w = async () => {
2031
2172
  const {
2032
- x: S,
2173
+ x: V,
2033
2174
  y: W,
2034
- placement: V
2035
- } = await We(f, v, {
2175
+ placement: T
2176
+ } = await Pe(p, f, {
2036
2177
  placement: e.placement,
2037
2178
  strategy: "fixed",
2038
- middleware: [De(8), Re(), Vt()]
2179
+ middleware: [De(8), Re(), It()]
2039
2180
  });
2040
- i.value = V ?? e.placement, v.style.left = `${S}px`, v.style.top = `${W}px`;
2181
+ s.value = T ?? e.placement, f.style.left = `${V}px`, f.style.top = `${W}px`;
2041
2182
  }, C = async () => {
2042
2183
  await w();
2043
- }, z = Pe(f, () => {
2184
+ }, S = Ie(p, () => {
2044
2185
  C();
2045
- }), E = () => {
2186
+ }), H = () => {
2046
2187
  C();
2047
2188
  };
2048
- document.addEventListener("scroll", E, !0), window.addEventListener("resize", E, !1), l = {
2189
+ document.addEventListener("scroll", H, !0), window.addEventListener("resize", H, !1), l = {
2049
2190
  update: C,
2050
2191
  destroy: () => {
2051
- z(), document.removeEventListener("scroll", E, !0), window.removeEventListener("resize", E, !1);
2192
+ S(), document.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H, !1);
2052
2193
  }
2053
2194
  }, l.update();
2054
2195
  };
2055
- oe(u, async (f) => {
2056
- if (!f) {
2196
+ oe(u, async (p) => {
2197
+ if (!p) {
2057
2198
  l && (l.destroy(), l = null);
2058
2199
  return;
2059
2200
  }
2060
- l || s(), l == null || l.update();
2201
+ l || i(), l == null || l.update();
2061
2202
  }), Le(() => {
2062
- u.value && s();
2203
+ u.value && i();
2063
2204
  }), we(() => {
2064
2205
  l == null || l.destroy(), l = null;
2065
2206
  });
2066
- const p = h(() => !!e.text || !!(a.value && a.value.textContent));
2067
- return oe(p, (f) => {
2068
- f || (u.value = !1);
2069
- }), (f, v) => (m(), _(pe, null, [
2207
+ const v = g(() => !!e.text || !!(a.value && a.value.textContent));
2208
+ return oe(v, (p) => {
2209
+ p || (u.value = !1);
2210
+ }), (p, f) => (b(), y(pe, null, [
2070
2211
  B("span", {
2071
2212
  ref_key: "trigger",
2072
2213
  ref: o,
2073
2214
  class: "vf-tooltip__trigger",
2074
- "aria-describedby": d,
2075
- onMouseenter: c,
2215
+ "aria-describedby": c,
2216
+ onMouseenter: d,
2076
2217
  onMouseleave: n,
2077
- onFocus: c,
2218
+ onFocus: d,
2078
2219
  onBlur: n
2079
2220
  }, [
2080
- F(f.$slots, "default")
2221
+ $(p.$slots, "default")
2081
2222
  ], 544),
2082
- (m(), ae($e, { to: "body" }, [
2083
- he(B("div", {
2084
- id: d,
2223
+ (b(), re($e, { to: "body" }, [
2224
+ be(B("div", {
2225
+ id: c,
2085
2226
  ref_key: "panel",
2086
2227
  ref: a,
2087
2228
  class: "vf-tooltip",
2088
2229
  role: "tooltip",
2089
- "data-placement": i.value
2230
+ "data-placement": s.value
2090
2231
  }, [
2091
- B("span", Ro, [
2092
- F(f.$slots, "content", {}, () => [
2093
- se(K(f.text), 1)
2232
+ B("span", No, [
2233
+ $(p.$slots, "content", {}, () => [
2234
+ Z(E(p.text), 1)
2094
2235
  ])
2095
2236
  ]),
2096
- f.arrow ? (m(), _("span", Do)) : O("", !0)
2097
- ], 8, Lo), [
2098
- [ye, u.value]
2237
+ p.arrow ? (b(), y("span", Yo)) : F("", !0)
2238
+ ], 8, Ko), [
2239
+ [me, u.value]
2099
2240
  ])
2100
2241
  ]))
2101
2242
  ], 64));
2102
2243
  }
2103
- }), Po = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], Wo = (t) => {
2244
+ }), Go = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], jo = (t) => {
2104
2245
  const e = t.replace(/([A-Z])/g, "-$1");
2105
2246
  return e.charAt(0).toUpperCase() + e.slice(1);
2106
- }, Io = (t) => t.filter((e) => !Po.includes(e)).map((e) => Wo(e)).join("-").toLowerCase(), Ie = (t) => t.join("."), Oo = (t) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t), Ee = (t) => {
2107
- if (!Oo(t))
2247
+ }, Xo = (t) => t.filter((e) => !Go.includes(e)).map((e) => jo(e)).join("-").toLowerCase(), We = (t) => t.join("."), qo = (t) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t), Ee = (t) => {
2248
+ if (!qo(t))
2108
2249
  return null;
2109
2250
  if (t.length === 4) {
2110
2251
  const e = t[1], r = t[2], o = t[3];
2111
2252
  return `#${e}${e}${r}${r}${o}${o}`;
2112
2253
  }
2113
2254
  return t.toLowerCase();
2114
- }, et = (t) => {
2255
+ }, tt = (t) => {
2115
2256
  const e = Ee(t);
2116
2257
  if (!e)
2117
2258
  return [0, 0, 0];
2118
2259
  const r = parseInt(e.slice(1), 16), o = r >> 16 & 255, a = r >> 8 & 255, u = r & 255;
2119
2260
  return [o, a, u];
2120
2261
  }, Ne = (t) => {
2121
- const [e, r, o] = et(t);
2262
+ const [e, r, o] = tt(t);
2122
2263
  return `${e}, ${r}, ${o}`;
2123
- }, Mo = (t, e, r) => {
2124
- const o = t / 255, a = e / 255, u = r / 255, i = Math.max(o, a, u), d = Math.min(o, a, u), l = i - d;
2125
- let c = 0, n = 0;
2126
- const s = (i + d) / 2;
2264
+ }, Uo = (t, e, r) => {
2265
+ const o = t / 255, a = e / 255, u = r / 255, s = Math.max(o, a, u), c = Math.min(o, a, u), l = s - c;
2266
+ let d = 0, n = 0;
2267
+ const i = (s + c) / 2;
2127
2268
  if (l !== 0) {
2128
- switch (n = l / (1 - Math.abs(2 * s - 1)), i) {
2269
+ switch (n = l / (1 - Math.abs(2 * i - 1)), s) {
2129
2270
  case o:
2130
- c = (a - u) / l % 6;
2271
+ d = (a - u) / l % 6;
2131
2272
  break;
2132
2273
  case a:
2133
- c = (u - o) / l + 2;
2274
+ d = (u - o) / l + 2;
2134
2275
  break;
2135
2276
  case u:
2136
- c = (o - a) / l + 4;
2277
+ d = (o - a) / l + 4;
2137
2278
  break;
2138
2279
  }
2139
- c *= 60, c < 0 && (c += 360);
2280
+ d *= 60, d < 0 && (d += 360);
2140
2281
  }
2141
- return [c, n * 100, s * 100];
2142
- }, Eo = (t, e, r) => {
2143
- const o = e / 100, a = r / 100, u = (1 - Math.abs(2 * a - 1)) * o, i = u * (1 - Math.abs(t / 60 % 2 - 1)), d = a - u / 2;
2144
- let l = 0, c = 0, n = 0;
2145
- t >= 0 && t < 60 ? (l = u, c = i, n = 0) : t >= 60 && t < 120 ? (l = i, c = u, n = 0) : t >= 120 && t < 180 ? (l = 0, c = u, n = i) : t >= 180 && t < 240 ? (l = 0, c = i, n = u) : t >= 240 && t < 300 ? (l = i, c = 0, n = u) : (l = u, c = 0, n = i);
2146
- const s = Math.round((l + d) * 255), p = Math.round((c + d) * 255), f = Math.round((n + d) * 255);
2147
- return [s, p, f];
2148
- }, Ho = (t, e, r) => `#${[t, e, r].map((o) => o.toString(16).padStart(2, "0")).join("")}`, Ao = (t, e, r) => Math.min(r, Math.max(e, t)), Ko = (t, e) => {
2282
+ return [d, n * 100, i * 100];
2283
+ }, Zo = (t, e, r) => {
2284
+ const o = e / 100, a = r / 100, u = (1 - Math.abs(2 * a - 1)) * o, s = u * (1 - Math.abs(t / 60 % 2 - 1)), c = a - u / 2;
2285
+ let l = 0, d = 0, n = 0;
2286
+ t >= 0 && t < 60 ? (l = u, d = s, n = 0) : t >= 60 && t < 120 ? (l = s, d = u, n = 0) : t >= 120 && t < 180 ? (l = 0, d = u, n = s) : t >= 180 && t < 240 ? (l = 0, d = s, n = u) : t >= 240 && t < 300 ? (l = s, d = 0, n = u) : (l = u, d = 0, n = s);
2287
+ const i = Math.round((l + c) * 255), v = Math.round((d + c) * 255), p = Math.round((n + c) * 255);
2288
+ return [i, v, p];
2289
+ }, Jo = (t, e, r) => `#${[t, e, r].map((o) => o.toString(16).padStart(2, "0")).join("")}`, Qo = (t, e, r) => Math.min(r, Math.max(e, t)), ea = (t, e) => {
2149
2290
  const r = Ee(t);
2150
2291
  if (!r)
2151
2292
  return t;
2152
- const [o, a, u] = et(r), [i, d, l] = Mo(o, a, u), n = (e - 5) * 7, s = Ao(l + n, 0, 100), [p, f, v] = Eo(i, d, s);
2153
- return Ho(p, f, v);
2293
+ const [o, a, u] = tt(r), [s, c, l] = Uo(o, a, u), n = (e - 5) * 7, i = Qo(l + n, 0, 100), [v, p, f] = Zo(s, c, i);
2294
+ return Jo(v, p, f);
2154
2295
  }, Te = (t) => !!t && typeof t == "object" && !Array.isArray(t), He = (t, e) => {
2155
2296
  if (!e)
2156
2297
  return { ...t };
@@ -2160,7 +2301,7 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
2160
2301
  Te(u) && Te(a) ? r[o] = He(u, a) : r[o] = a;
2161
2302
  }
2162
2303
  return r;
2163
- }, No = (t) => {
2304
+ }, ta = (t) => {
2164
2305
  if (!t)
2165
2306
  return null;
2166
2307
  if (Te(t) && "preset" in t) {
@@ -2174,42 +2315,42 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
2174
2315
  };
2175
2316
  }
2176
2317
  return { preset: t };
2177
- }, Yo = (t) => {
2178
- const e = [], r = [], o = [], a = [], u = (l) => o.push(l), i = (l) => a.push(l), d = (l, c) => {
2318
+ }, oa = (t) => {
2319
+ const e = [], r = [], o = [], a = [], u = (l) => o.push(l), s = (l) => a.push(l), c = (l, d) => {
2179
2320
  if (!(!l || typeof l != "object"))
2180
2321
  for (const n in l) {
2181
- const s = l[n], p = c.concat([n]);
2182
- if (Te(s)) {
2183
- d(s, p);
2322
+ const i = l[n], v = d.concat([n]);
2323
+ if (Te(i)) {
2324
+ c(i, v);
2184
2325
  continue;
2185
2326
  }
2186
- if (s && typeof s == "object") {
2187
- i(`Theme value "${Ie(p)}" is not a plain object or string and will be ignored.`);
2327
+ if (i && typeof i == "object") {
2328
+ s(`Theme value "${We(v)}" is not a plain object or string and will be ignored.`);
2188
2329
  continue;
2189
2330
  }
2190
- if (typeof s != "string") {
2191
- i(`Theme value "${Ie(p)}" is not a string and will be ignored.`);
2331
+ if (typeof i != "string") {
2332
+ s(`Theme value "${We(v)}" is not a string and will be ignored.`);
2192
2333
  continue;
2193
2334
  }
2194
- const v = p.includes("colorScheme") && p.includes("dark") ? r : e, w = Io(p);
2195
- if (v.push(`--vf-${w}: ${s}`), p.includes("colors")) {
2196
- const C = Ee(s);
2335
+ const f = v.includes("colorScheme") && v.includes("dark") ? r : e, w = Xo(v);
2336
+ if (f.push(`--vf-${w}: ${i}`), v.includes("colors")) {
2337
+ const C = Ee(i);
2197
2338
  if (!C) {
2198
2339
  u(
2199
- `Theme color "${Ie(p)}" is not hex. Shade variables will not be generated for it.`
2340
+ `Theme color "${We(v)}" is not hex. Shade variables will not be generated for it.`
2200
2341
  );
2201
2342
  continue;
2202
2343
  }
2203
- if (v.push(`--vf-${w}-rgb: ${Ne(C)}`), n !== "white")
2204
- for (let z = 1; z < 10; ++z) {
2205
- const E = Ko(C, z);
2206
- v.push(`--vf-${w}-${z}00: ${E}`), v.push(`--vf-${w}-${z}00-rgb: ${Ne(E)}`);
2344
+ if (f.push(`--vf-${w}-rgb: ${Ne(C)}`), n !== "white")
2345
+ for (let S = 1; S < 10; ++S) {
2346
+ const H = ea(C, S);
2347
+ f.push(`--vf-${w}-${S}00: ${H}`), f.push(`--vf-${w}-${S}00-rgb: ${Ne(H)}`);
2207
2348
  }
2208
2349
  }
2209
2350
  }
2210
2351
  };
2211
- return d(t, []), { baseVars: e, darkVars: r, warnings: o, errors: a };
2212
- }, Go = (t) => {
2352
+ return c(t, []), { baseVars: e, darkVars: r, warnings: o, errors: a };
2353
+ }, aa = (t) => {
2213
2354
  if (typeof document > "u")
2214
2355
  return null;
2215
2356
  const e = document.getElementById(t);
@@ -2217,34 +2358,34 @@ const Ft = (t, e) => t.strategy ? t.strategy : zt(e) ? "fixed" : "absolute", be
2217
2358
  return e;
2218
2359
  const r = document.createElement("style");
2219
2360
  return r.id = t, document.head.appendChild(r), r;
2220
- }, jo = (t) => ({
2361
+ }, ra = (t) => ({
2221
2362
  selector: t.selector ?? ":root",
2222
2363
  darkSelector: t.darkSelector ?? ":root[data-theme=dark]"
2223
- }), Xo = (t, e, r, o) => {
2224
- const { baseVars: a, darkVars: u, warnings: i, errors: d } = Yo(t), l = Go("vueforge-theme");
2364
+ }), la = (t, e, r, o) => {
2365
+ const { baseVars: a, darkVars: u, warnings: s, errors: c } = oa(t), l = aa("vueforge-theme");
2225
2366
  if (!l)
2226
2367
  return;
2227
- if (d.length) {
2368
+ if (c.length) {
2228
2369
  if (o)
2229
- throw new Error(`[VueForge] ${d.join(" ")}`);
2230
- for (const n of d)
2370
+ throw new Error(`[VueForge] ${c.join(" ")}`);
2371
+ for (const n of c)
2231
2372
  console.warn(`[VueForge] ${n}`);
2232
2373
  }
2233
- if (i.length)
2234
- for (const n of i)
2374
+ if (s.length)
2375
+ for (const n of s)
2235
2376
  console.warn(`[VueForge] ${n}`);
2236
- const c = [];
2237
- a.length && c.push(`${e} { ${a.join(";")} }`), u.length && c.push(`${r} { ${u.join(";")} }`), l.textContent = c.join(`
2377
+ const d = [];
2378
+ a.length && d.push(`${e} { ${a.join(";")} }`), u.length && d.push(`${r} { ${u.join(";")} }`), l.textContent = d.join(`
2238
2379
  `);
2239
2380
  };
2240
2381
  let fe = null;
2241
- const tt = (t) => {
2242
- const e = No(t);
2382
+ const ot = (t) => {
2383
+ const e = ta(t);
2243
2384
  if (!e)
2244
2385
  return;
2245
- const r = He(e.preset, e.overrides), { selector: o, darkSelector: a } = jo(e);
2246
- fe = { ...e }, Xo(r, o, a, e.strict);
2247
- }, Da = (t) => {
2386
+ const r = He(e.preset, e.overrides), { selector: o, darkSelector: a } = ra(e);
2387
+ fe = { ...e }, la(r, o, a, e.strict);
2388
+ }, qa = (t) => {
2248
2389
  if (!fe)
2249
2390
  return;
2250
2391
  const e = t.overrides === void 0 ? fe.overrides : He(fe.overrides ?? {}, t.overrides ?? {}), r = {
@@ -2253,10 +2394,10 @@ const tt = (t) => {
2253
2394
  selector: t.selector ?? fe.selector,
2254
2395
  darkSelector: t.darkSelector ?? fe.darkSelector
2255
2396
  };
2256
- tt(r);
2257
- }, Pa = () => fe ? { ...fe } : null, Wa = {
2397
+ ot(r);
2398
+ }, Ua = () => fe ? { ...fe } : null, Za = {
2258
2399
  install(t, e = {}) {
2259
- e.theme && tt(e.theme);
2400
+ e.theme && ot(e.theme);
2260
2401
  }
2261
2402
  }, Ye = {
2262
2403
  colors: {
@@ -2321,7 +2462,7 @@ const tt = (t) => {
2321
2462
  dividerColor: "#2e2e32"
2322
2463
  }
2323
2464
  }
2324
- }, Uo = {
2465
+ }, na = {
2325
2466
  fontSize: "var(--vf-typography-font-size)",
2326
2467
  padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
2327
2468
  borderRadius: "var(--vf-radii-md)",
@@ -2463,11 +2604,11 @@ const tt = (t) => {
2463
2604
  }
2464
2605
  }
2465
2606
  }
2466
- }, qo = {
2607
+ }, sa = {
2467
2608
  padding: "12px",
2468
2609
  borderColor: "var(--vf-border-color)",
2469
2610
  borderRadius: "var(--vf-radii-md)"
2470
- }, Zo = {
2611
+ }, ia = {
2471
2612
  gap: "0.5rem",
2472
2613
  fontSize: "var(--vf-typography-font-size)",
2473
2614
  padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
@@ -2488,7 +2629,27 @@ const tt = (t) => {
2488
2629
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
2489
2630
  fontSize: "var(--vf-sizes-lg-font-size)"
2490
2631
  }
2491
- }, Jo = {
2632
+ }, da = {
2633
+ gap: "0.375rem",
2634
+ textColor: "var(--vf-text-color)",
2635
+ labelFontSize: "0.875rem",
2636
+ labelColor: "var(--vf-text-color)",
2637
+ requiredColor: "var(--vf-red-600)",
2638
+ hintFontSize: "0.8125rem",
2639
+ hintColor: "var(--vf-secondary-text-color)",
2640
+ errorColor: "var(--vf-red-700)",
2641
+ disabledOpacity: "var(--vf-states-disabled-opacity)",
2642
+ small: {
2643
+ gap: "0.25rem",
2644
+ labelFontSize: "0.8125rem",
2645
+ hintFontSize: "0.75rem"
2646
+ },
2647
+ large: {
2648
+ gap: "0.5rem",
2649
+ labelFontSize: "0.9375rem",
2650
+ hintFontSize: "0.875rem"
2651
+ }
2652
+ }, ca = {
2492
2653
  gap: "0.5rem",
2493
2654
  fontSize: "var(--vf-typography-font-size)",
2494
2655
  padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
@@ -2511,10 +2672,10 @@ const tt = (t) => {
2511
2672
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
2512
2673
  fontSize: "var(--vf-sizes-lg-font-size)"
2513
2674
  }
2514
- }, Qo = {
2675
+ }, ua = {
2515
2676
  hoverColor: "var(--vf-blue)",
2516
2677
  activeColor: "var(--vf-blue)"
2517
- }, ea = {
2678
+ }, va = {
2518
2679
  iconGap: "6px",
2519
2680
  submenuOffset: "12px",
2520
2681
  separatorThickness: "1px",
@@ -2534,7 +2695,7 @@ const tt = (t) => {
2534
2695
  marginBottom: "0.5rem",
2535
2696
  marginLeft: "0.5rem"
2536
2697
  }
2537
- }, ta = {
2698
+ }, fa = {
2538
2699
  width: "90vw",
2539
2700
  maxWidth: "520px",
2540
2701
  maxHeight: "80vh",
@@ -2561,9 +2722,9 @@ const tt = (t) => {
2561
2722
  closeColor: "var(--vf-text-color)",
2562
2723
  closeFontSize: "1.25rem",
2563
2724
  closeHoverBackgroundColor: "rgba(0, 0, 0, 0.06)"
2564
- }, oa = {
2725
+ }, pa = {
2565
2726
  backgroundColor: "var(--vf-bg-color)"
2566
- }, aa = {
2727
+ }, ba = {
2567
2728
  minWidth: "12rem",
2568
2729
  fontSize: "var(--vf-typography-font-size)",
2569
2730
  controlGap: "0.75rem",
@@ -2596,7 +2757,7 @@ const tt = (t) => {
2596
2757
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
2597
2758
  fontSize: "var(--vf-sizes-lg-font-size)"
2598
2759
  }
2599
- }, ra = {
2760
+ }, ma = {
2600
2761
  minWidth: "12rem",
2601
2762
  fontSize: "var(--vf-typography-font-size)",
2602
2763
  controlGap: "0.5rem",
@@ -2635,7 +2796,7 @@ const tt = (t) => {
2635
2796
  padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
2636
2797
  fontSize: "var(--vf-sizes-lg-font-size)"
2637
2798
  }
2638
- }, la = {
2799
+ }, ga = {
2639
2800
  minWidth: "12rem",
2640
2801
  fontSize: "var(--vf-typography-font-size)",
2641
2802
  controlGap: "0.75rem",
@@ -2685,7 +2846,7 @@ const tt = (t) => {
2685
2846
  fontSize: "var(--vf-sizes-lg-font-size)",
2686
2847
  daySize: "2.2rem"
2687
2848
  }
2688
- }, na = {
2849
+ }, ha = {
2689
2850
  size: "1rem",
2690
2851
  gap: "0.5rem",
2691
2852
  borderRadius: "var(--vf-radii-sm)",
@@ -2697,7 +2858,7 @@ const tt = (t) => {
2697
2858
  checkColor: "#ffffff",
2698
2859
  textColor: "var(--vf-text-color)",
2699
2860
  disabledOpacity: "var(--vf-states-disabled-opacity)"
2700
- }, sa = {
2861
+ }, ya = {
2701
2862
  size: "1rem",
2702
2863
  dotSize: "0.45rem",
2703
2864
  gap: "0.5rem",
@@ -2711,7 +2872,7 @@ const tt = (t) => {
2711
2872
  dotColor: "#ffffff",
2712
2873
  textColor: "var(--vf-text-color)",
2713
2874
  disabledOpacity: "var(--vf-states-disabled-opacity)"
2714
- }, ia = {
2875
+ }, _a = {
2715
2876
  width: "2.25rem",
2716
2877
  height: "1.25rem",
2717
2878
  thumbSize: "1rem",
@@ -2723,7 +2884,7 @@ const tt = (t) => {
2723
2884
  thumbColor: "#ffffff",
2724
2885
  textColor: "var(--vf-text-color)",
2725
2886
  disabledOpacity: "var(--vf-states-disabled-opacity)"
2726
- }, da = {
2887
+ }, ka = {
2727
2888
  gap: "0.75rem",
2728
2889
  listGap: "0.5rem",
2729
2890
  listBorderWidth: "1px",
@@ -2744,7 +2905,7 @@ const tt = (t) => {
2744
2905
  panelBackgroundColor: "transparent",
2745
2906
  panelTextColor: "var(--vf-text-color)",
2746
2907
  disabledOpacity: "var(--vf-states-disabled-opacity)"
2747
- }, ca = {
2908
+ }, Ca = {
2748
2909
  padding: "0.35rem 0.6rem",
2749
2910
  borderRadius: "8px",
2750
2911
  backgroundColor: "rgba(0, 0, 0, 0.8)",
@@ -2755,7 +2916,7 @@ const tt = (t) => {
2755
2916
  zIndex: "120",
2756
2917
  maxWidth: "240px",
2757
2918
  arrowSize: "8px"
2758
- }, ua = {
2919
+ }, wa = {
2759
2920
  gap: "0.75rem",
2760
2921
  padding: "0.75rem 0.9rem",
2761
2922
  borderRadius: "var(--vf-radii-md)",
@@ -2794,54 +2955,96 @@ const tt = (t) => {
2794
2955
  borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
2795
2956
  textColor: "var(--vf-text-color)"
2796
2957
  }
2797
- }, Ia = {
2958
+ }, $a = {
2959
+ gap: "0.75rem",
2960
+ padding: "0.75rem 0.9rem",
2961
+ borderRadius: "var(--vf-radii-md)",
2962
+ borderColor: "var(--vf-border-color)",
2963
+ backgroundColor: "var(--vf-bg-color)",
2964
+ textColor: "var(--vf-text-color)",
2965
+ iconColor: "currentColor",
2966
+ fontSize: "0.95rem",
2967
+ lineHeight: "1.4",
2968
+ bodyGap: "0.2rem",
2969
+ titleFontSize: "0.95rem",
2970
+ titleFontWeight: "600",
2971
+ actionsGap: "0.5rem",
2972
+ closeSize: "1.5rem",
2973
+ closeRadius: "var(--vf-radii-sm)",
2974
+ closeFontSize: "1rem",
2975
+ closeHoverBackgroundColor: "rgba(var(--vf-gray-600-rgb), 0.12)",
2976
+ info: {
2977
+ backgroundColor: "rgba(var(--vf-blue-600-rgb), 0.1)",
2978
+ borderColor: "rgba(var(--vf-blue-600-rgb), 0.4)",
2979
+ textColor: "var(--vf-text-color)"
2980
+ },
2981
+ success: {
2982
+ backgroundColor: "rgba(var(--vf-green-600-rgb), 0.12)",
2983
+ borderColor: "rgba(var(--vf-green-600-rgb), 0.45)",
2984
+ textColor: "var(--vf-text-color)"
2985
+ },
2986
+ warn: {
2987
+ backgroundColor: "rgba(var(--vf-yellow-600-rgb), 0.16)",
2988
+ borderColor: "rgba(var(--vf-yellow-600-rgb), 0.5)",
2989
+ textColor: "var(--vf-text-color)"
2990
+ },
2991
+ danger: {
2992
+ backgroundColor: "rgba(var(--vf-red-600-rgb), 0.12)",
2993
+ borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
2994
+ textColor: "var(--vf-text-color)"
2995
+ }
2996
+ }, Ja = {
2798
2997
  ...Ye,
2799
2998
  components: {
2800
2999
  base: Ye,
2801
- button: Uo,
2802
- card: qo,
2803
- input: Zo,
2804
- textarea: Jo,
2805
- link: Qo,
2806
- menu: ea,
2807
- modal: ta,
2808
- popover: oa,
2809
- select: aa,
2810
- autocomplete: ra,
2811
- datepicker: la,
2812
- checkbox: na,
2813
- radio: sa,
2814
- switch: ia,
2815
- tabs: da,
2816
- tooltip: ca,
2817
- toast: ua
3000
+ button: na,
3001
+ card: sa,
3002
+ input: ia,
3003
+ formField: da,
3004
+ textarea: ca,
3005
+ link: ua,
3006
+ menu: va,
3007
+ modal: fa,
3008
+ popover: pa,
3009
+ select: ba,
3010
+ autocomplete: ma,
3011
+ datepicker: ga,
3012
+ checkbox: ha,
3013
+ radio: ya,
3014
+ switch: _a,
3015
+ tabs: ka,
3016
+ tooltip: Ca,
3017
+ toast: wa,
3018
+ alert: $a
2818
3019
  }
2819
3020
  };
2820
3021
  export {
2821
- ka as Autocomplete,
2822
- ma as Button,
3022
+ Na as Alert,
3023
+ Da as Autocomplete,
3024
+ Sa as Button,
2823
3025
  ht as Card,
2824
- Ca as Checkbox,
2825
- _a as DatePicker,
2826
- Ia as DefaultTheme,
2827
- ga as Input,
3026
+ Pa as Checkbox,
3027
+ Ia as DatePicker,
3028
+ Ja as DefaultTheme,
3029
+ Ta as FormField,
3030
+ Va as Input,
2828
3031
  Ue as Link,
2829
- ba as Menu,
2830
- La as Modal,
2831
- Ta as Popover,
2832
- $a as RadioButton,
2833
- wa as RadioGroup,
2834
- ya as Select,
2835
- Va as Switch,
2836
- Ba as Tab,
2837
- za as TabPanel,
2838
- xa as Tabs,
2839
- ha as Textarea,
2840
- Fa as Toast,
2841
- Sa as ToastContainer,
2842
- Ra as Tooltip,
2843
- Wa as VueForge,
2844
- Pa as getTheme,
2845
- tt as setTheme,
2846
- Da as updateTheme
3032
+ Fa as Menu,
3033
+ ja as Modal,
3034
+ Ga as Popover,
3035
+ Oa as RadioButton,
3036
+ Wa as RadioGroup,
3037
+ Ra as Select,
3038
+ Ya as Switch,
3039
+ Ea as Tab,
3040
+ Ha as TabPanel,
3041
+ Ma as Tabs,
3042
+ La as Textarea,
3043
+ Aa as Toast,
3044
+ Ka as ToastContainer,
3045
+ Xa as Tooltip,
3046
+ Za as VueForge,
3047
+ Ua as getTheme,
3048
+ ot as setTheme,
3049
+ qa as updateTheme
2847
3050
  };