@velkymx/vibeui 1.1.0 → 1.1.1

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/vibeui.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, getCurrentInstance as l, inject as u, mergeModels as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onActivated as g, onBeforeUnmount as _, onDeactivated as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, readonly as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as O, shallowRef as k, toDisplayString as A, unref as j, useModel as M, vModelSelect as N, vModelText as P, vShow as F, watch as I, watchEffect as L, withCtx as R, withDirectives as z, withKeys as B, withMemo as V, withModifiers as H } from "vue";
2
2
  //#endregion
3
3
  //#region src/components/VibeAlert.vue
4
- var ee = /* @__PURE__ */ c({
4
+ var U = /* @__PURE__ */ c({
5
5
  __name: "VibeAlert",
6
6
  props: {
7
7
  variant: {
@@ -97,7 +97,7 @@ var ee = /* @__PURE__ */ c({
97
97
  })) : i("", !0)
98
98
  ], 2)) : i("", !0);
99
99
  }
100
- }), te = /* @__PURE__ */ c({
100
+ }), ee = /* @__PURE__ */ c({
101
101
  __name: "VibeBadge",
102
102
  props: {
103
103
  variant: {
@@ -127,7 +127,7 @@ var ee = /* @__PURE__ */ c({
127
127
  _: 3
128
128
  }, 8, ["class"]));
129
129
  }
130
- }), U = /*@__PURE__*/ c({
130
+ }), W = /*@__PURE__*/ c({
131
131
  __name: "VibeButton",
132
132
  props: {
133
133
  variant: {
@@ -203,11 +203,11 @@ var ee = /* @__PURE__ */ c({
203
203
  "aria-disabled"
204
204
  ]));
205
205
  }
206
- }), W = (e, t) => {
206
+ }), G = (e, t) => {
207
207
  let n = e.__vccOpts || e;
208
208
  for (let [e, r] of t) n[e] = r;
209
209
  return n;
210
- }, ne = /*#__PURE__*/ W(U, [["__scopeId", "data-v-17d9412e"]]), re = ["role", "aria-label"], ie = /* @__PURE__ */ c({
210
+ }, te = /*#__PURE__*/ G(W, [["__scopeId", "data-v-17d9412e"]]), ne = ["role", "aria-label"], re = /* @__PURE__ */ c({
211
211
  __name: "VibeButtonGroup",
212
212
  props: {
213
213
  size: {
@@ -236,9 +236,9 @@ var ee = /* @__PURE__ */ c({
236
236
  class: m(r.value),
237
237
  role: e.role,
238
238
  "aria-label": e.ariaLabel
239
- }, [D(t.$slots, "default")], 10, re));
239
+ }, [D(t.$slots, "default")], 10, ne));
240
240
  }
241
- }), ae = ["disabled", "aria-label"], oe = /* @__PURE__ */ c({
241
+ }), ie = ["disabled", "aria-label"], ae = /* @__PURE__ */ c({
242
242
  __name: "VibeCloseButton",
243
243
  props: {
244
244
  disabled: {
@@ -265,9 +265,9 @@ var ee = /* @__PURE__ */ c({
265
265
  disabled: e.disabled,
266
266
  "aria-label": e.ariaLabel,
267
267
  onClick: i
268
- }, null, 10, ae));
268
+ }, null, 10, ie));
269
269
  }
270
- }), se = { class: "visually-hidden" }, ce = /* @__PURE__ */ c({
270
+ }), oe = { class: "visually-hidden" }, se = /* @__PURE__ */ c({
271
271
  __name: "VibeSpinner",
272
272
  props: {
273
273
  variant: {
@@ -300,11 +300,11 @@ var ee = /* @__PURE__ */ c({
300
300
  class: m(i.value),
301
301
  role: "status"
302
302
  }, {
303
- default: R(() => [o("span", se, A(e.label), 1)]),
303
+ default: R(() => [o("span", oe, A(e.label), 1)]),
304
304
  _: 1
305
305
  }, 8, ["class"]));
306
306
  }
307
- }), le = /* @__PURE__ */ c({
307
+ }), ce = /* @__PURE__ */ c({
308
308
  __name: "VibePlaceholder",
309
309
  props: {
310
310
  variant: {
@@ -345,7 +345,7 @@ var ee = /* @__PURE__ */ c({
345
345
  _: 3
346
346
  }, 8, ["class"]));
347
347
  }
348
- }), ue = /*#__PURE__*/ W(/* @__PURE__ */ c({
348
+ }), le = /*#__PURE__*/ G(/* @__PURE__ */ c({
349
349
  inheritAttrs: !1,
350
350
  __name: "VibeSkeleton",
351
351
  props: {
@@ -456,7 +456,7 @@ var ee = /* @__PURE__ */ c({
456
456
  }, null, 2)
457
457
  ], 16)) : i("", !0);
458
458
  }
459
- }), [["__scopeId", "data-v-c0c2699d"]]), de = /* @__PURE__ */ c({
459
+ }), [["__scopeId", "data-v-c0c2699d"]]), ue = /* @__PURE__ */ c({
460
460
  __name: "VibeContainer",
461
461
  props: {
462
462
  fluid: {
@@ -475,7 +475,7 @@ var ee = /* @__PURE__ */ c({
475
475
  _: 3
476
476
  }, 8, ["class"]));
477
477
  }
478
- }), fe = /* @__PURE__ */ c({
478
+ }), de = /* @__PURE__ */ c({
479
479
  __name: "VibeRow",
480
480
  props: {
481
481
  tag: {
@@ -615,7 +615,7 @@ var ee = /* @__PURE__ */ c({
615
615
  _: 3
616
616
  }, 8, ["class"]));
617
617
  }
618
- }), pe = /* @__PURE__ */ c({
618
+ }), fe = /* @__PURE__ */ c({
619
619
  __name: "VibeCol",
620
620
  props: {
621
621
  tag: {
@@ -756,13 +756,13 @@ var ee = /* @__PURE__ */ c({
756
756
  _: 3
757
757
  }, 8, ["class"]));
758
758
  }
759
- }), me = ["src", "alt"], he = {
759
+ }), pe = ["src", "alt"], me = {
760
760
  key: 0,
761
761
  class: "card-title"
762
- }, ge = {
762
+ }, he = {
763
763
  key: 1,
764
764
  class: "card-text"
765
- }, _e = ["src", "alt"], ve = /* @__PURE__ */ c({
765
+ }, ge = ["src", "alt"], _e = /* @__PURE__ */ c({
766
766
  __name: "VibeCard",
767
767
  props: {
768
768
  variant: {
@@ -850,7 +850,7 @@ var ee = /* @__PURE__ */ c({
850
850
  src: e.imgSrc,
851
851
  alt: e.imgAlt,
852
852
  class: "card-img-top"
853
- }, null, 8, me)) : i("", !0),
853
+ }, null, 8, pe)) : i("", !0),
854
854
  D(t.$slots, "image"),
855
855
  e.header || t.$slots.header ? (x(), a("div", {
856
856
  key: 1,
@@ -860,8 +860,8 @@ var ee = /* @__PURE__ */ c({
860
860
  key: 2,
861
861
  class: m(["card-body", e.bodyClass])
862
862
  }, [
863
- e.title || t.$slots.title ? (x(), a("h5", he, [D(t.$slots, "title", {}, () => [s(A(e.title), 1)])])) : i("", !0),
864
- e.body || t.$slots.body ? (x(), a("p", ge, [D(t.$slots, "body", {}, () => [s(A(e.body), 1)])])) : i("", !0),
863
+ e.title || t.$slots.title ? (x(), a("h5", me, [D(t.$slots, "title", {}, () => [s(A(e.title), 1)])])) : i("", !0),
864
+ e.body || t.$slots.body ? (x(), a("p", he, [D(t.$slots, "body", {}, () => [s(A(e.body), 1)])])) : i("", !0),
865
865
  D(t.$slots, "default")
866
866
  ], 2)) : i("", !0),
867
867
  e.footer || t.$slots.footer ? (x(), a("div", {
@@ -873,18 +873,18 @@ var ee = /* @__PURE__ */ c({
873
873
  src: e.imgSrc,
874
874
  alt: e.imgAlt,
875
875
  class: "card-img-bottom"
876
- }, null, 8, _e)) : i("", !0)
876
+ }, null, 8, ge)) : i("", !0)
877
877
  ]),
878
878
  _: 3
879
879
  }, 8, ["class"]));
880
880
  }
881
- }), ye = /^(https?:\/\/|\/(?!\/)|\.\.?\/|#)/i;
882
- function G(e) {
883
- if (!(e === void 0 || e === "")) return ye.test(e) ? e : void 0;
881
+ }), ve = /^(https?:\/\/|\/(?!\/)|\.\.?\/|#)/i;
882
+ function K(e) {
883
+ if (!(e === void 0 || e === "")) return ve.test(e) ? e : void 0;
884
884
  }
885
885
  //#endregion
886
886
  //#region src/utils/safeCss.ts
887
- var be = /^(auto|0|[\d.]+(%|px|rem|em|vh|vw|dvh|dvw|svh|svw|ch|ex|vmin|vmax))$/, xe = /^(#[0-9a-fA-F]{3,8}|rgba?\(\s*[\d.,\s]+\)|hsla?\(\s*[\d.,\s%]+\)|var\(--[\w-]+(?:\s*,\s*[^)]+)?\)|[a-zA-Z]+)$/, Se = /* @__PURE__ */ new Set([
887
+ var ye = /^(auto|0|[\d.]+(%|px|rem|em|vh|vw|dvh|dvw|svh|svw|ch|ex|vmin|vmax))$/, be = /^(#[0-9a-fA-F]{3,8}|rgba?\(\s*[\d.,\s]+\)|hsla?\(\s*[\d.,\s%]+\)|var\(--[\w-]+(?:\s*,\s*[^)]+)?\)|[a-zA-Z]+)$/, xe = /* @__PURE__ */ new Set([
888
888
  "width",
889
889
  "minWidth",
890
890
  "maxWidth",
@@ -909,18 +909,18 @@ var be = /^(auto|0|[\d.]+(%|px|rem|em|vh|vw|dvh|dvw|svh|svw|ch|ex|vmin|vmax))$/,
909
909
  "borderTop",
910
910
  "borderBottom"
911
911
  ]);
912
+ function Se(e) {
913
+ if (e !== void 0) return ye.test(e.trim()) ? e : void 0;
914
+ }
912
915
  function Ce(e) {
913
916
  if (e !== void 0) return be.test(e.trim()) ? e : void 0;
914
917
  }
915
918
  function we(e) {
916
- if (e !== void 0) return xe.test(e.trim()) ? e : void 0;
917
- }
918
- function Te(e) {
919
- return e ? Object.fromEntries(Object.entries(e).filter(([e]) => Se.has(e))) : {};
919
+ return e ? Object.fromEntries(Object.entries(e).filter(([e]) => xe.has(e))) : {};
920
920
  }
921
921
  //#endregion
922
922
  //#region src/components/VibeHero.vue
923
- var Ee = /* @__PURE__ */ c({
923
+ var Te = /* @__PURE__ */ c({
924
924
  __name: "VibeHero",
925
925
  props: {
926
926
  variant: {
@@ -975,16 +975,16 @@ var Ee = /* @__PURE__ */ c({
975
975
  if (!/url\(|expression\(|javascript:/i.test(t)) return i.test(t) ? t : void 0;
976
976
  }, s = n(() => {
977
977
  let e = ["py-5", `text-${t.align}`];
978
- return t.variant && e.push(`bg-${t.variant}`), t.textVariant && e.push(`text-${t.textVariant}`), t.border && e.push("border", `border-${t.border}`, "rounded-3"), Ce(t.minHeight) && e.push("d-flex", "align-items-center"), e;
978
+ return t.variant && e.push(`bg-${t.variant}`), t.textVariant && e.push(`text-${t.textVariant}`), t.border && e.push("border", `border-${t.border}`, "rounded-3"), Se(t.minHeight) && e.push("d-flex", "align-items-center"), e;
979
979
  }), c = n(() => t.fluid === !0 ? "container-fluid" : typeof t.fluid == "string" ? `container-${t.fluid}` : "container"), l = n(() => {
980
- let e = {}, n = G(t.bgImage), r = a(t.gradient), i = [];
980
+ let e = {}, n = K(t.bgImage), r = a(t.gradient), i = [];
981
981
  if (r) i.push(r);
982
982
  else if (n && t.overlay) {
983
- let e = Math.min(1, Math.max(0, t.overlayOpacity)), n = typeof t.overlay == "string" ? we(t.overlay) ?? `rgba(0, 0, 0, ${e})` : `rgba(0, 0, 0, ${e})`;
983
+ let e = Math.min(1, Math.max(0, t.overlayOpacity)), n = typeof t.overlay == "string" ? Ce(t.overlay) ?? `rgba(0, 0, 0, ${e})` : `rgba(0, 0, 0, ${e})`;
984
984
  i.push(`linear-gradient(${n}, ${n})`);
985
985
  }
986
986
  n && i.push(`url("${n}")`), i.length && (e.backgroundImage = i.join(", "), n && (e.backgroundSize = "cover", e.backgroundPosition = "center"));
987
- let o = Ce(t.minHeight);
987
+ let o = Se(t.minHeight);
988
988
  return o && (e.minHeight = o), e;
989
989
  }), u = n(() => Object.keys(l.value).length > 0);
990
990
  return (t, n) => (x(), r(O(e.tag), {
@@ -995,7 +995,7 @@ var Ee = /* @__PURE__ */ c({
995
995
  _: 3
996
996
  }, 8, ["class", "style"]));
997
997
  }
998
- }), De = ["aria-label"], Oe = { class: "breadcrumb" }, ke = ["aria-current"], Ae = /* @__PURE__ */ c({
998
+ }), Ee = ["aria-label"], De = { class: "breadcrumb" }, Oe = ["aria-current"], ke = /* @__PURE__ */ c({
999
999
  __name: "VibeBreadcrumb",
1000
1000
  props: {
1001
1001
  ariaLabel: {
@@ -1016,12 +1016,12 @@ var Ee = /* @__PURE__ */ c({
1016
1016
  event: n
1017
1017
  });
1018
1018
  };
1019
- return (n, i) => (x(), a("nav", { "aria-label": t.ariaLabel }, [o("ol", Oe, [(x(!0), a(e, null, E(t.items, (e, t) => (x(), a("li", {
1019
+ return (n, i) => (x(), a("nav", { "aria-label": t.ariaLabel }, [o("ol", De, [(x(!0), a(e, null, E(t.items, (e, t) => (x(), a("li", {
1020
1020
  key: e.href || e.text || String(t),
1021
1021
  class: m(["breadcrumb-item", { active: e.active }]),
1022
1022
  "aria-current": e.active ? "page" : void 0
1023
- }, [(x(), r(O(e.active ? "span" : j(G)(e.href) ? "a" : e.to ? "router-link" : "button"), {
1024
- href: e.active ? void 0 : j(G)(e.href),
1023
+ }, [(x(), r(O(e.active ? "span" : j(K)(e.href) ? "a" : e.to ? "router-link" : "button"), {
1024
+ href: e.active ? void 0 : j(K)(e.href),
1025
1025
  to: e.active ? void 0 : e.to,
1026
1026
  type: !e.active && !e.href && !e.to ? "button" : void 0,
1027
1027
  onClick: (n) => c(e, t, n)
@@ -1036,23 +1036,23 @@ var Ee = /* @__PURE__ */ c({
1036
1036
  "to",
1037
1037
  "type",
1038
1038
  "onClick"
1039
- ]))], 10, ke))), 128))])], 8, De));
1039
+ ]))], 10, Oe))), 128))])], 8, Ee));
1040
1040
  }
1041
1041
  });
1042
1042
  //#endregion
1043
1043
  //#region src/utils/routeKey.ts
1044
- function je(e) {
1044
+ function Ae(e) {
1045
1045
  return e == null ? "" : typeof e == "string" ? e : JSON.stringify(e);
1046
1046
  }
1047
1047
  //#endregion
1048
1048
  //#region src/components/VibeNav.vue?vue&type=script&setup=true&lang.ts
1049
- var Me = { class: "dropdown-menu" }, Ne = {
1049
+ var je = { class: "dropdown-menu" }, Me = {
1050
1050
  key: 0,
1051
1051
  class: "dropdown-divider"
1052
- }, Pe = {
1052
+ }, Ne = {
1053
1053
  key: 1,
1054
1054
  class: "dropdown-header"
1055
- }, Fe = /* @__PURE__ */ c({
1055
+ }, Pe = /* @__PURE__ */ c({
1056
1056
  __name: "VibeNav",
1057
1057
  props: {
1058
1058
  items: {
@@ -1167,7 +1167,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1167
1167
  class: m(b.value)
1168
1168
  }, {
1169
1169
  default: R(() => [(x(!0), a(e, null, E(t.items, (i, c) => (x(), a("li", {
1170
- key: i.href || j(je)(i.to) || i.text || String(c),
1170
+ key: i.href || j(Ae)(i.to) || i.text || String(c),
1171
1171
  class: m(["nav-item", { dropdown: i.children && i.children.length > 0 }])
1172
1172
  }, [i.children && i.children.length > 0 ? (x(), a(e, { key: 0 }, [o("button", {
1173
1173
  type: "button",
@@ -1177,13 +1177,13 @@ var Me = { class: "dropdown-menu" }, Ne = {
1177
1177
  }]),
1178
1178
  "data-bs-toggle": "dropdown",
1179
1179
  "aria-expanded": "false"
1180
- }, A(i.text), 3), o("ul", Me, [(x(!0), a(e, null, E(i.children, (e, t) => (x(), a("li", { key: e.href || e.text || String(t) }, [e.divider ? (x(), a("hr", Ne)) : e.header ? (x(), a("h6", Pe, A(e.text), 1)) : (x(), r(O(j(G)(e.href) ? "a" : e.to ? "router-link" : "button"), {
1180
+ }, A(i.text), 3), o("ul", je, [(x(!0), a(e, null, E(i.children, (e, t) => (x(), a("li", { key: e.href || e.text || String(t) }, [e.divider ? (x(), a("hr", Me)) : e.header ? (x(), a("h6", Ne, A(e.text), 1)) : (x(), r(O(j(K)(e.href) ? "a" : e.to ? "router-link" : "button"), {
1181
1181
  key: 2,
1182
1182
  class: m(["dropdown-item", {
1183
1183
  active: e.active,
1184
1184
  disabled: e.disabled
1185
1185
  }]),
1186
- href: j(G)(e.href),
1186
+ href: j(K)(e.href),
1187
1187
  to: e.to,
1188
1188
  type: !e.href && !e.to ? "button" : void 0
1189
1189
  }, {
@@ -1194,13 +1194,13 @@ var Me = { class: "dropdown-menu" }, Ne = {
1194
1194
  "href",
1195
1195
  "to",
1196
1196
  "type"
1197
- ]))]))), 128))])], 64)) : (x(), r(O(j(G)(i.href) ? "a" : i.to ? "router-link" : "button"), {
1197
+ ]))]))), 128))])], 64)) : (x(), r(O(j(K)(i.href) ? "a" : i.to ? "router-link" : "button"), {
1198
1198
  key: 1,
1199
1199
  class: m(["nav-link", {
1200
1200
  active: i.active,
1201
1201
  disabled: i.disabled
1202
1202
  }]),
1203
- href: j(G)(i.href),
1203
+ href: j(K)(i.href),
1204
1204
  to: i.to,
1205
1205
  type: !i.href && !i.to ? "button" : void 0,
1206
1206
  disabled: !i.href && !i.to && i.disabled || void 0,
@@ -1228,7 +1228,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1228
1228
  _: 3
1229
1229
  }, 8, ["class"]));
1230
1230
  }
1231
- }), K = Symbol("vibeFormGroup"), Ie = Symbol("vibeNavbarCollapse"), Le = Symbol("vibeTabsContext"), Re = /*#__PURE__*/ W(/* @__PURE__ */ c({
1231
+ }), q = Symbol("vibeFormGroup"), Fe = Symbol("vibeNavbarCollapse"), Ie = Symbol("vibeTabsContext"), Le = /*#__PURE__*/ G(/* @__PURE__ */ c({
1232
1232
  __name: "VibeNavbar",
1233
1233
  props: {
1234
1234
  variant: {
@@ -1258,7 +1258,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1258
1258
  },
1259
1259
  setup(e) {
1260
1260
  let t = e, i = C({});
1261
- S(Ie, {
1261
+ S(Fe, {
1262
1262
  collapseStates: i,
1263
1263
  toggleCollapse: (e) => {
1264
1264
  i[e] = !i[e];
@@ -1285,7 +1285,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1285
1285
  _: 3
1286
1286
  }, 8, ["class", "data-bs-theme"]));
1287
1287
  }
1288
- }), [["__scopeId", "data-v-c3e6fe24"]]), ze = /* @__PURE__ */ c({
1288
+ }), [["__scopeId", "data-v-c3e6fe24"]]), Re = /* @__PURE__ */ c({
1289
1289
  __name: "VibeNavbarBrand",
1290
1290
  props: {
1291
1291
  href: {
@@ -1298,21 +1298,21 @@ var Me = { class: "dropdown-menu" }, Ne = {
1298
1298
  }
1299
1299
  },
1300
1300
  setup(e) {
1301
- let t = e, n = G(t.href) ? "a" : t.to ? "router-link" : "span";
1301
+ let t = e, n = K(t.href) ? "a" : t.to ? "router-link" : "span";
1302
1302
  return (t, i) => (x(), r(O(j(n)), {
1303
1303
  class: "navbar-brand",
1304
- href: j(G)(e.href),
1304
+ href: j(K)(e.href),
1305
1305
  to: e.to
1306
1306
  }, {
1307
1307
  default: R(() => [D(t.$slots, "default")]),
1308
1308
  _: 3
1309
1309
  }, 8, ["href", "to"]));
1310
1310
  }
1311
- }), Be = [
1311
+ }), ze = [
1312
1312
  "aria-controls",
1313
1313
  "aria-expanded",
1314
1314
  "aria-label"
1315
- ], Ve = /* @__PURE__ */ c({
1315
+ ], Be = /* @__PURE__ */ c({
1316
1316
  __name: "VibeNavbarToggle",
1317
1317
  props: {
1318
1318
  target: {
@@ -1326,7 +1326,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1326
1326
  },
1327
1327
  emits: ["component-error"],
1328
1328
  setup(e, { emit: t }) {
1329
- let r = e, i = t, s = u(Ie, null), c = n(() => s?.collapseStates[r.target] ?? !1), l = async () => {
1329
+ let r = e, i = t, s = u(Fe, null), c = n(() => s?.collapseStates[r.target] ?? !1), l = async () => {
1330
1330
  if (s) {
1331
1331
  s.toggleCollapse(r.target);
1332
1332
  return;
@@ -1349,9 +1349,9 @@ var Me = { class: "dropdown-menu" }, Ne = {
1349
1349
  "aria-expanded": c.value,
1350
1350
  "aria-label": e.ariaLabel,
1351
1351
  onClick: l
1352
- }, [...n[0] ||= [o("span", { class: "navbar-toggler-icon" }, null, -1)]], 8, Be));
1352
+ }, [...n[0] ||= [o("span", { class: "navbar-toggler-icon" }, null, -1)]], 8, ze));
1353
1353
  }
1354
- }), He = { class: "dropdown-menu" }, Ue = { key: 0 }, We = { key: 1 }, Ge = { class: "dropdown-header" }, Ke = { key: 2 }, qe = /* @__PURE__ */ c({
1354
+ }), Ve = { class: "dropdown-menu" }, He = { key: 0 }, Ue = { key: 1 }, We = { class: "dropdown-header" }, Ge = { key: 2 }, Ke = /* @__PURE__ */ c({
1355
1355
  __name: "VibeNavbarNav",
1356
1356
  props: {
1357
1357
  tag: {
@@ -1428,7 +1428,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1428
1428
  }, [D(n.$slots, "item", {
1429
1429
  item: t,
1430
1430
  index: c
1431
- }, () => [s(A(t.text), 1)])], 2), o("ul", He, [(x(!0), a(e, null, E(t.children, (l, u) => (x(), a(e, { key: l.href || l.text || String(u) }, [l.divider ? (x(), a("li", Ue, [...i[0] ||= [o("hr", { class: "dropdown-divider" }, null, -1)]])) : l.header ? (x(), a("li", We, [o("h6", Ge, A(l.text), 1)])) : (x(), a("li", Ke, [(x(), r(O(l.href ? "a" : l.to ? "router-link" : "button"), {
1431
+ }, () => [s(A(t.text), 1)])], 2), o("ul", Ve, [(x(!0), a(e, null, E(t.children, (l, u) => (x(), a(e, { key: l.href || l.text || String(u) }, [l.divider ? (x(), a("li", He, [...i[0] ||= [o("hr", { class: "dropdown-divider" }, null, -1)]])) : l.header ? (x(), a("li", Ue, [o("h6", We, A(l.text), 1)])) : (x(), a("li", Ge, [(x(), r(O(l.href ? "a" : l.to ? "router-link" : "button"), {
1432
1432
  class: m(v(l)),
1433
1433
  href: l.href,
1434
1434
  to: l.to,
@@ -1475,11 +1475,11 @@ var Me = { class: "dropdown-menu" }, Ne = {
1475
1475
  _: 3
1476
1476
  }, 512));
1477
1477
  }
1478
- }), Je = ["aria-label"], Ye = ["disabled"], Xe = {
1478
+ }), qe = ["aria-label"], Je = ["disabled"], Ye = {
1479
1479
  key: 0,
1480
1480
  class: "page-item disabled",
1481
1481
  "aria-hidden": "true"
1482
- }, Ze = ["aria-current", "onClick"], Qe = ["disabled"], $e = /* @__PURE__ */ c({
1482
+ }, Xe = ["aria-current", "onClick"], Ze = ["disabled"], Qe = /* @__PURE__ */ c({
1483
1483
  __name: "VibePagination",
1484
1484
  props: {
1485
1485
  size: {
@@ -1548,8 +1548,8 @@ var Me = { class: "dropdown-menu" }, Ne = {
1548
1548
  type: "button",
1549
1549
  disabled: p.value,
1550
1550
  onClick: r[0] ||= (e) => f(t.currentPage - 1)
1551
- }, [D(n.$slots, "prev", { disabled: p.value }, () => [s(A(t.prevText), 1)])], 8, Ye)], 2)) : i("", !0),
1552
- (x(!0), a(e, null, E(d.value, (i, c) => (x(), a(e, { key: i === null ? `e${c}` : `p${i}` }, [i === null ? (x(), a("li", Xe, [...r[2] ||= [o("span", { class: "page-link" }, "…", -1)]])) : (x(), a("li", {
1551
+ }, [D(n.$slots, "prev", { disabled: p.value }, () => [s(A(t.prevText), 1)])], 8, Je)], 2)) : i("", !0),
1552
+ (x(!0), a(e, null, E(d.value, (i, c) => (x(), a(e, { key: i === null ? `e${c}` : `p${i}` }, [i === null ? (x(), a("li", Ye, [...r[2] ||= [o("span", { class: "page-link" }, "…", -1)]])) : (x(), a("li", {
1553
1553
  key: 1,
1554
1554
  class: m(["page-item", { active: i === t.currentPage }])
1555
1555
  }, [o("button", {
@@ -1560,7 +1560,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1560
1560
  }, [D(n.$slots, "page", {
1561
1561
  page: i,
1562
1562
  active: i === t.currentPage
1563
- }, () => [s(A(i), 1)])], 8, Ze)], 2))], 64))), 128)),
1563
+ }, () => [s(A(i), 1)])], 8, Xe)], 2))], 64))), 128)),
1564
1564
  t.showPrevNext ? (x(), a("li", {
1565
1565
  key: 1,
1566
1566
  class: m(["page-item", { disabled: h.value }])
@@ -1569,10 +1569,10 @@ var Me = { class: "dropdown-menu" }, Ne = {
1569
1569
  type: "button",
1570
1570
  disabled: h.value,
1571
1571
  onClick: r[1] ||= (e) => f(t.currentPage + 1)
1572
- }, [D(n.$slots, "next", { disabled: h.value }, () => [s(A(t.nextText), 1)])], 8, Qe)], 2)) : i("", !0)
1573
- ], 2)], 8, Je));
1572
+ }, [D(n.$slots, "next", { disabled: h.value }, () => [s(A(t.nextText), 1)])], 8, Ze)], 2)) : i("", !0)
1573
+ ], 2)], 8, qe));
1574
1574
  }
1575
- }), et = ["id", "aria-labelledby"], tt = /* @__PURE__ */ c({
1575
+ }), $e = ["id", "aria-labelledby"], et = /* @__PURE__ */ c({
1576
1576
  __name: "VibeTabContent",
1577
1577
  props: {
1578
1578
  id: {
@@ -1611,15 +1611,15 @@ var Me = { class: "dropdown-menu" }, Ne = {
1611
1611
  }, [D(n.$slots, "pane", {
1612
1612
  pane: e,
1613
1613
  index: t
1614
- }, () => [s(A(e.content), 1)])], 10, et))), 128))]),
1614
+ }, () => [s(A(e.content), 1)])], 10, $e))), 128))]),
1615
1615
  _: 3
1616
1616
  }, 8, ["id"]));
1617
1617
  }
1618
- }), nt = [
1618
+ }), tt = [
1619
1619
  "disabled",
1620
1620
  "aria-selected",
1621
1621
  "onClick"
1622
- ], rt = /* @__PURE__ */ c({
1622
+ ], nt = /* @__PURE__ */ c({
1623
1623
  __name: "VibeTabs",
1624
1624
  props: {
1625
1625
  modelValue: {
@@ -1659,7 +1659,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1659
1659
  let e = ["nav"];
1660
1660
  return i.variant === "tabs" ? e.push("nav-tabs") : i.variant === "pills" ? e.push("nav-pills") : i.variant === "underline" && e.push("nav-underline"), i.fill && e.push("nav-fill"), i.justified && e.push("nav-justified"), i.vertical && e.push("flex-column"), e.join(" ");
1661
1661
  }), g = n(() => i.vertical ? "d-flex" : "");
1662
- return S(Le, {
1662
+ return S(Ie, {
1663
1663
  register: (e, t, n) => {
1664
1664
  c.find((t) => t.name === e) || (c.push({
1665
1665
  name: e,
@@ -1696,9 +1696,9 @@ var Me = { class: "dropdown-menu" }, Ne = {
1696
1696
  "aria-selected": e.name === d.value,
1697
1697
  role: "tab",
1698
1698
  onClick: (t) => f(e.name)
1699
- }, A(e.label), 11, nt)]))), 128))], 2), o("div", { class: m(["tab-content", { "flex-grow-1 ms-3": t.vertical }]) }, [D(n.$slots, "default")], 2)], 2));
1699
+ }, A(e.label), 11, tt)]))), 128))], 2), o("div", { class: m(["tab-content", { "flex-grow-1 ms-3": t.vertical }]) }, [D(n.$slots, "default")], 2)], 2));
1700
1700
  }
1701
- }), it = /* @__PURE__ */ c({
1701
+ }), rt = /* @__PURE__ */ c({
1702
1702
  __name: "VibeTab",
1703
1703
  props: {
1704
1704
  name: {
@@ -1715,7 +1715,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1715
1715
  }
1716
1716
  },
1717
1717
  setup(e) {
1718
- let t = e, r = u(Le, null);
1718
+ let t = e, r = u(Ie, null);
1719
1719
  r || console.error("[VibeTab] must be a descendant of <VibeTabs>"), y(() => {
1720
1720
  r?.register(t.name, t.label, t.disabled);
1721
1721
  }), _(() => {
@@ -1731,7 +1731,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1731
1731
  role: "tabpanel"
1732
1732
  }, [D(e.$slots, "default")], 2)), [[F, o.value]]) : i("", !0);
1733
1733
  }
1734
- }), at = /* @__PURE__ */ c({
1734
+ }), it = /* @__PURE__ */ c({
1735
1735
  __name: "VibeListGroup",
1736
1736
  props: {
1737
1737
  flush: {
@@ -1762,7 +1762,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1762
1762
  return o.flush && e.push("list-group-flush"), o.numbered && e.push("list-group-numbered"), o.horizontal === !0 ? e.push("list-group-horizontal") : typeof o.horizontal == "string" && e.push(`list-group-horizontal-${o.horizontal}`), e.join(" ");
1763
1763
  }), u = (e) => {
1764
1764
  let t = ["list-group-item"];
1765
- return (G(e.href) || e.to || !e.disabled) && t.push("list-group-item-action"), e.active && t.push("active"), e.disabled && t.push("disabled"), e.variant && t.push(`list-group-item-${e.variant}`), t.join(" ");
1765
+ return (K(e.href) || e.to || !e.disabled) && t.push("list-group-item-action"), e.active && t.push("active"), e.disabled && t.push("disabled"), e.variant && t.push(`list-group-item-${e.variant}`), t.join(" ");
1766
1766
  }, d = (e, t, n) => {
1767
1767
  e.disabled || c("item-click", {
1768
1768
  item: e,
@@ -1778,10 +1778,10 @@ var Me = { class: "dropdown-menu" }, Ne = {
1778
1778
  e.disabled,
1779
1779
  e.variant,
1780
1780
  e.text
1781
- ], () => (x(), r(O(j(G)(e.href) ? "a" : e.to ? "router-link" : "li"), {
1781
+ ], () => (x(), r(O(j(K)(e.href) ? "a" : e.to ? "router-link" : "li"), {
1782
1782
  class: m(u(e)),
1783
- style: h(!j(G)(e.href) && !e.to && !e.disabled ? { cursor: "pointer" } : void 0),
1784
- href: j(G)(e.href),
1783
+ style: h(!j(K)(e.href) && !e.to && !e.disabled ? { cursor: "pointer" } : void 0),
1784
+ href: j(K)(e.href),
1785
1785
  to: e.to,
1786
1786
  "aria-disabled": e.disabled || void 0,
1787
1787
  "aria-current": e.active,
@@ -1804,11 +1804,11 @@ var Me = { class: "dropdown-menu" }, Ne = {
1804
1804
  _: 3
1805
1805
  }, 8, ["class"]));
1806
1806
  }
1807
- }), ot = [
1807
+ }), at = [
1808
1808
  "aria-label",
1809
1809
  "aria-valuenow",
1810
1810
  "aria-valuemax"
1811
- ], st = /* @__PURE__ */ c({
1811
+ ], ot = /* @__PURE__ */ c({
1812
1812
  __name: "VibeProgress",
1813
1813
  props: {
1814
1814
  height: {
@@ -1822,7 +1822,7 @@ var Me = { class: "dropdown-menu" }, Ne = {
1822
1822
  },
1823
1823
  setup(t) {
1824
1824
  let r = t, i = n(() => {
1825
- let e = Ce(r.height);
1825
+ let e = Se(r.height);
1826
1826
  return e ? { height: e } : void 0;
1827
1827
  }), o = (e) => {
1828
1828
  let t = ["progress-bar"];
@@ -1854,23 +1854,23 @@ var Me = { class: "dropdown-menu" }, Ne = {
1854
1854
  }, [D(n.$slots, "label", {
1855
1855
  bar: e,
1856
1856
  index: t
1857
- }, () => [s(A(l(e)), 1)])], 14, ot))), 128))], 4));
1857
+ }, () => [s(A(l(e)), 1)])], 14, at))), 128))], 4));
1858
1858
  }
1859
- }), ct = 0, lt = /* @__PURE__ */ new WeakMap();
1860
- function q(e = "vibe") {
1859
+ }), st = 0, ct = /* @__PURE__ */ new WeakMap();
1860
+ function J(e = "vibe") {
1861
1861
  let t = l();
1862
- if (!t) return `${e}-${++ct}`;
1863
- let n = (lt.get(t) ?? 0) + 1;
1864
- return lt.set(t, n), `${e}-${t.uid}-${n}`;
1862
+ if (!t) return `${e}-${++st}`;
1863
+ let n = (ct.get(t) ?? 0) + 1;
1864
+ return ct.set(t, n), `${e}-${t.uid}-${n}`;
1865
1865
  }
1866
1866
  //#endregion
1867
1867
  //#region src/components/VibeAccordion.vue?vue&type=script&setup=true&lang.ts
1868
- var ut = ["id"], dt = { class: "accordion-header" }, ft = [
1868
+ var lt = ["id"], ut = { class: "accordion-header" }, dt = [
1869
1869
  "data-bs-target",
1870
1870
  "aria-expanded",
1871
1871
  "aria-controls",
1872
1872
  "onClick"
1873
- ], pt = ["id", "data-bs-parent"], mt = { class: "accordion-body" }, ht = /* @__PURE__ */ c({
1873
+ ], ft = ["id", "data-bs-parent"], pt = { class: "accordion-body" }, mt = /* @__PURE__ */ c({
1874
1874
  __name: "VibeAccordion",
1875
1875
  props: {
1876
1876
  id: {
@@ -1899,7 +1899,7 @@ var ut = ["id"], dt = { class: "accordion-header" }, ft = [
1899
1899
  "component-error"
1900
1900
  ],
1901
1901
  setup(t, { expose: r, emit: i }) {
1902
- let c = q("accordion"), l = t, u = n(() => l.id || c), d = i, f = T(null), h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), v = !1, b = !1, S = !1, C = !1, w = /* @__PURE__ */ new Map(), O = (e) => d("show", e), k = (e) => d("shown", e), j = (e) => d("hide", e), M = (e) => d("hidden", e), N = (e) => {
1902
+ let c = J("accordion"), l = t, u = n(() => l.id || c), d = i, f = T(null), h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), v = !1, b = !1, S = !1, C = !1, w = /* @__PURE__ */ new Map(), O = (e) => d("show", e), k = (e) => d("shown", e), j = (e) => d("hide", e), M = (e) => d("hidden", e), N = (e) => {
1903
1903
  let t = g.get(e), n = w.get(e);
1904
1904
  t && n && (t.removeEventListener("show.bs.collapse", n.show), t.removeEventListener("shown.bs.collapse", n.shown), t.removeEventListener("hide.bs.collapse", n.hide), t.removeEventListener("hidden.bs.collapse", n.hidden)), g.delete(e), w.delete(e), h.get(e)?.dispose(), h.delete(e);
1905
1905
  }, P = async () => {
@@ -1984,7 +1984,7 @@ var ut = ["id"], dt = { class: "accordion-header" }, ft = [
1984
1984
  }, [(x(!0), a(e, null, E(t.items, (e, r) => (x(), a("div", {
1985
1985
  key: e.id,
1986
1986
  class: "accordion-item"
1987
- }, [o("h2", dt, [o("button", {
1987
+ }, [o("h2", ut, [o("button", {
1988
1988
  class: m(["accordion-button", { collapsed: !e.show }]),
1989
1989
  type: "button",
1990
1990
  "data-bs-toggle": "collapse",
@@ -1995,16 +1995,16 @@ var ut = ["id"], dt = { class: "accordion-header" }, ft = [
1995
1995
  }, [D(n.$slots, "title", {
1996
1996
  item: e,
1997
1997
  index: r
1998
- }, () => [s(A(e.title), 1)])], 10, ft)]), o("div", {
1998
+ }, () => [s(A(e.title), 1)])], 10, dt)]), o("div", {
1999
1999
  id: e.id,
2000
2000
  class: m(["accordion-collapse", "collapse"]),
2001
2001
  "data-bs-parent": t.alwaysOpen ? void 0 : `#${u.value}`
2002
- }, [o("div", mt, [D(n.$slots, "content", {
2002
+ }, [o("div", pt, [D(n.$slots, "content", {
2003
2003
  item: e,
2004
2004
  index: r
2005
- }, () => [s(A(e.content), 1)])])], 8, pt)]))), 128))], 10, ut));
2005
+ }, () => [s(A(e.content), 1)])])], 8, ft)]))), 128))], 10, lt));
2006
2006
  }
2007
- }), gt = /* @__PURE__ */ c({
2007
+ }), ht = /* @__PURE__ */ c({
2008
2008
  __name: "VibeCollapse",
2009
2009
  props: {
2010
2010
  id: {
@@ -2037,7 +2037,7 @@ var ut = ["id"], dt = { class: "accordion-header" }, ft = [
2037
2037
  "component-error"
2038
2038
  ],
2039
2039
  setup(e, { emit: t }) {
2040
- let i = q("collapse"), a = e, o = t, s = u(Ie, null), c = n(() => a.id || i), l = T(null), d = k(null), f = T(!1), h = T(!1), g = !1, v = null, b = () => {
2040
+ let i = J("collapse"), a = e, o = t, s = u(Fe, null), c = n(() => a.id || i), l = T(null), d = k(null), f = T(!1), h = T(!1), g = !1, v = null, b = () => {
2041
2041
  f.value = !0, o("show");
2042
2042
  }, S = () => {
2043
2043
  o("shown"), o("update:modelValue", !0);
@@ -2088,7 +2088,7 @@ var ut = ["id"], dt = { class: "accordion-header" }, ft = [
2088
2088
  _: 3
2089
2089
  }, 8, ["id", "class"]));
2090
2090
  }
2091
- }), _t = ["id", "data-bs-auto-close"], vt = ["id", "data-bs-auto-close"], yt = ["aria-labelledby"], bt = { key: 0 }, xt = { key: 1 }, St = { class: "dropdown-header" }, Ct = { key: 2 }, wt = /* @__PURE__ */ c({
2091
+ }), gt = ["id", "data-bs-auto-close"], _t = ["id", "data-bs-auto-close"], vt = ["aria-labelledby"], yt = { key: 0 }, bt = { key: 1 }, xt = { class: "dropdown-header" }, St = { key: 2 }, Ct = /* @__PURE__ */ c({
2092
2092
  __name: "VibeDropdown",
2093
2093
  props: {
2094
2094
  id: {
@@ -2137,7 +2137,7 @@ var ut = ["id"], dt = { class: "accordion-header" }, ft = [
2137
2137
  "component-error"
2138
2138
  ],
2139
2139
  setup(t, { expose: i, emit: c }) {
2140
- let l = q("dropdown"), u = t, d = c, f = n(() => u.id || l), p = T(null), h = k(null), g = null, v = !1, b = !1, S = !1, C = n(() => u.direction === "up" ? "dropup" : u.direction === "end" ? "dropend" : u.direction === "start" ? "dropstart" : "dropdown"), w = n(() => {
2140
+ let l = J("dropdown"), u = t, d = c, f = n(() => u.id || l), p = T(null), h = k(null), g = null, v = !1, b = !1, S = !1, C = n(() => u.direction === "up" ? "dropup" : u.direction === "end" ? "dropend" : u.direction === "start" ? "dropstart" : "dropdown"), w = n(() => {
2141
2141
  let e = ["btn", `btn-${u.variant}`];
2142
2142
  return u.size && e.push(`btn-${u.size}`), e.join(" ");
2143
2143
  }), M = n(() => {
@@ -2207,7 +2207,7 @@ var ut = ["id"], dt = { class: "accordion-header" }, ft = [
2207
2207
  "data-bs-toggle": "dropdown",
2208
2208
  "aria-expanded": "false",
2209
2209
  "data-bs-auto-close": t.autoClose
2210
- }, [...i[0] ||= [o("span", { class: "visually-hidden" }, "Toggle Dropdown", -1)]], 10, vt)], 64)) : (x(), a("button", {
2210
+ }, [...i[0] ||= [o("span", { class: "visually-hidden" }, "Toggle Dropdown", -1)]], 10, _t)], 64)) : (x(), a("button", {
2211
2211
  key: 0,
2212
2212
  id: f.value,
2213
2213
  class: m([w.value, "dropdown-toggle"]),
@@ -2215,15 +2215,15 @@ var ut = ["id"], dt = { class: "accordion-header" }, ft = [
2215
2215
  "data-bs-toggle": "dropdown",
2216
2216
  "aria-expanded": "false",
2217
2217
  "data-bs-auto-close": t.autoClose
2218
- }, [D(n.$slots, "button", {}, () => [s(A(t.text), 1)])], 10, _t)), o("ul", {
2218
+ }, [D(n.$slots, "button", {}, () => [s(A(t.text), 1)])], 10, gt)), o("ul", {
2219
2219
  class: m(M.value),
2220
2220
  "aria-labelledby": f.value
2221
- }, [(x(!0), a(e, null, E(t.items, (t, c) => (x(), a(e, { key: t.text || t.href || j(je)(t.to) || c }, [t.divider ? (x(), a("li", bt, [...i[1] ||= [o("hr", { class: "dropdown-divider" }, null, -1)]])) : t.header ? (x(), a("li", xt, [o("h6", St, [D(n.$slots, "header", {
2221
+ }, [(x(!0), a(e, null, E(t.items, (t, c) => (x(), a(e, { key: t.text || t.href || j(Ae)(t.to) || c }, [t.divider ? (x(), a("li", yt, [...i[1] ||= [o("hr", { class: "dropdown-divider" }, null, -1)]])) : t.header ? (x(), a("li", bt, [o("h6", xt, [D(n.$slots, "header", {
2222
2222
  item: t,
2223
2223
  index: c
2224
- }, () => [s(A(t.text), 1)])])])) : (x(), a("li", Ct, [(x(), r(O(j(G)(t.href) ? "a" : t.to ? "router-link" : "button"), {
2224
+ }, () => [s(A(t.text), 1)])])])) : (x(), a("li", St, [(x(), r(O(j(K)(t.href) ? "a" : t.to ? "router-link" : "button"), {
2225
2225
  class: m(N(t)),
2226
- href: j(G)(t.href),
2226
+ href: j(K)(t.href),
2227
2227
  to: t.to,
2228
2228
  type: !t.href && !t.to ? "button" : void 0,
2229
2229
  disabled: t.disabled,
@@ -2241,43 +2241,43 @@ var ut = ["id"], dt = { class: "accordion-header" }, ft = [
2241
2241
  "type",
2242
2242
  "disabled",
2243
2243
  "onClick"
2244
- ]))]))], 64))), 128))], 10, yt)], 2));
2244
+ ]))]))], 64))), 128))], 10, vt)], 2));
2245
2245
  }
2246
- }), Tt = [];
2247
- function Et(e) {
2248
- if (Tt.length > 0) {
2246
+ }), wt = [];
2247
+ function Tt(e) {
2248
+ if (wt.length > 0) {
2249
2249
  e.preventDefault();
2250
- let t = Tt.pop();
2250
+ let t = wt.pop();
2251
2251
  t && t.action();
2252
2252
  }
2253
2253
  }
2254
- function Dt(e) {
2254
+ function Et(e) {
2255
2255
  let t = Symbol();
2256
2256
  y(() => {
2257
- Tt.push({
2257
+ wt.push({
2258
2258
  token: t,
2259
2259
  action: e
2260
- }), Tt.length === 1 && typeof document < "u" && document.addEventListener("backbutton", Et);
2260
+ }), wt.length === 1 && typeof document < "u" && document.addEventListener("backbutton", Tt);
2261
2261
  }), b(() => {
2262
- let e = Tt.findIndex((e) => e.token === t);
2263
- e !== -1 && Tt.splice(e, 1), Tt.length === 0 && typeof document < "u" && document.removeEventListener("backbutton", Et);
2262
+ let e = wt.findIndex((e) => e.token === t);
2263
+ e !== -1 && wt.splice(e, 1), wt.length === 0 && typeof document < "u" && document.removeEventListener("backbutton", Tt);
2264
2264
  });
2265
2265
  }
2266
2266
  //#endregion
2267
2267
  //#region src/components/VibeModal.vue?vue&type=script&setup=true&lang.ts
2268
- var Ot = [
2268
+ var Dt = [
2269
2269
  "id",
2270
2270
  "aria-labelledby",
2271
2271
  "aria-hidden",
2272
2272
  "data-bs-backdrop",
2273
2273
  "data-bs-keyboard"
2274
- ], kt = { class: "modal-content" }, At = {
2274
+ ], Ot = { class: "modal-content" }, kt = {
2275
2275
  key: 0,
2276
2276
  class: "modal-header"
2277
- }, jt = ["id"], Mt = { class: "modal-body" }, Nt = {
2277
+ }, At = ["id"], jt = { class: "modal-body" }, Mt = {
2278
2278
  key: 1,
2279
2279
  class: "modal-footer"
2280
- }, Pt = "a[href], button:not([disabled]), input:not([disabled]),select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", Ft = /*#__PURE__*/ W(/* @__PURE__ */ c({
2280
+ }, Nt = "a[href], button:not([disabled]), input:not([disabled]),select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", Pt = /*#__PURE__*/ G(/* @__PURE__ */ c({
2281
2281
  __name: "VibeModal",
2282
2282
  props: {
2283
2283
  id: {
@@ -2342,9 +2342,9 @@ var Ot = [
2342
2342
  "component-error"
2343
2343
  ],
2344
2344
  setup(e, { expose: c, emit: l }) {
2345
- let u = q("modal"), d = e, f = l, p = n(() => d.id || u), h = T(null), g = k(null), v = T(!1), b = null, S = [];
2345
+ let u = J("modal"), d = e, f = l, p = n(() => d.id || u), h = T(null), g = k(null), v = T(!1), b = null, S = [];
2346
2346
  function C() {
2347
- return h.value ? Array.from(h.value.querySelectorAll(Pt)) : [];
2347
+ return h.value ? Array.from(h.value.querySelectorAll(Nt)) : [];
2348
2348
  }
2349
2349
  function w(e) {
2350
2350
  if (!v.value) return;
@@ -2376,7 +2376,7 @@ var Ot = [
2376
2376
  }), F = () => {
2377
2377
  typeof document < "u" && (b = document.activeElement), f("show");
2378
2378
  }, L = () => {
2379
- v.value = !0, f("shown"), f("update:modelValue", !0), E(), d.autoFocus && h.value && h.value.querySelector("input:not([type=\"hidden\"]), select, textarea")?.focus();
2379
+ v.value = !0, f("shown"), f("update:modelValue", !0), E(), d.autoFocus && h.value && (h.value.querySelector("input:not([type=\"hidden\"]):not([disabled]), select:not([disabled]), textarea:not([disabled])") ?? C()[0])?.focus();
2380
2380
  }, R = () => {
2381
2381
  f("hide");
2382
2382
  }, z = () => {
@@ -2417,12 +2417,12 @@ var Ot = [
2417
2417
  }), I(() => d.modelValue, (e) => {
2418
2418
  g.value && (e && !v.value ? g.value.show() : !e && v.value && g.value.hide());
2419
2419
  }), I(() => d.staticBackdrop, H);
2420
- let ee = () => g.value?.show(), te = () => g.value?.hide();
2421
- return Dt(() => {
2422
- v.value && te();
2420
+ let U = () => g.value?.show(), ee = () => g.value?.hide();
2421
+ return Et(() => {
2422
+ v.value && ee();
2423
2423
  }), c({
2424
- show: ee,
2425
- hide: te,
2424
+ show: U,
2425
+ hide: ee,
2426
2426
  handleUpdate: () => g.value?.handleUpdate(),
2427
2427
  _unsafe_bsInstance: g
2428
2428
  }), (n, c) => (x(), r(t, {
@@ -2438,30 +2438,30 @@ var Ot = [
2438
2438
  "aria-hidden": v.value ? void 0 : "true",
2439
2439
  "data-bs-backdrop": e.staticBackdrop ? "static" : void 0,
2440
2440
  "data-bs-keyboard": !e.staticBackdrop
2441
- }, [o("div", { class: m(P.value) }, [o("div", kt, [
2442
- e.hideHeader ? i("", !0) : (x(), a("div", At, [o("h5", {
2441
+ }, [o("div", { class: m(P.value) }, [o("div", Ot, [
2442
+ e.hideHeader ? i("", !0) : (x(), a("div", kt, [o("h5", {
2443
2443
  id: `${p.value}-label`,
2444
2444
  class: "modal-title"
2445
- }, [D(n.$slots, "header", {}, () => [s(A(e.title), 1)], !0)], 8, jt), o("button", {
2445
+ }, [D(n.$slots, "header", {}, () => [s(A(e.title), 1)], !0)], 8, At), o("button", {
2446
2446
  type: "button",
2447
2447
  class: "btn-close",
2448
2448
  "aria-label": "Close",
2449
- onClick: te
2449
+ onClick: ee
2450
2450
  })])),
2451
- o("div", Mt, [D(n.$slots, "default", {}, void 0, !0)]),
2452
- e.hideFooter ? i("", !0) : (x(), a("div", Nt, [D(n.$slots, "footer", {}, () => [o("button", {
2451
+ o("div", jt, [D(n.$slots, "default", {}, void 0, !0)]),
2452
+ e.hideFooter ? i("", !0) : (x(), a("div", Mt, [D(n.$slots, "footer", {}, () => [o("button", {
2453
2453
  type: "button",
2454
2454
  class: "btn btn-secondary",
2455
- onClick: te
2455
+ onClick: ee
2456
2456
  }, "Close")], !0)]))
2457
- ])], 2)], 8, Ot)], 8, ["to", "disabled"]));
2457
+ ])], 2)], 8, Dt)], 8, ["to", "disabled"]));
2458
2458
  }
2459
- }), [["__scopeId", "data-v-37f40a50"]]), It = [
2459
+ }), [["__scopeId", "data-v-08f7036a"]]), Ft = [
2460
2460
  "id",
2461
2461
  "aria-labelledby",
2462
2462
  "data-bs-backdrop",
2463
2463
  "data-bs-scroll"
2464
- ], Lt = { class: "offcanvas-header" }, Rt = ["id"], zt = { class: "offcanvas-body" }, Bt = /*#__PURE__*/ W(/* @__PURE__ */ c({
2464
+ ], It = { class: "offcanvas-header" }, Lt = ["id"], Rt = { class: "offcanvas-body" }, zt = /*#__PURE__*/ G(/* @__PURE__ */ c({
2465
2465
  __name: "VibeOffcanvas",
2466
2466
  props: {
2467
2467
  id: {
@@ -2502,7 +2502,7 @@ var Ot = [
2502
2502
  "component-error"
2503
2503
  ],
2504
2504
  setup(e, { expose: i, emit: a }) {
2505
- let c = q("offcanvas"), l = e, u = a, d = n(() => l.id || c), f = T(null), p = k(null), h = T(!1), g = !1, v = !1, b = !1, S = null, C = n(() => `offcanvas offcanvas-${l.placement}`), w = () => {
2505
+ let c = J("offcanvas"), l = e, u = a, d = n(() => l.id || c), f = T(null), p = k(null), h = T(!1), g = !1, v = !1, b = !1, S = null, C = n(() => `offcanvas offcanvas-${l.placement}`), w = () => {
2506
2506
  typeof document < "u" && (S = document.activeElement), u("show");
2507
2507
  }, E = () => {
2508
2508
  h.value = !0, u("shown"), u("update:modelValue", !0);
@@ -2551,7 +2551,7 @@ var Ot = [
2551
2551
  () => l.scroll
2552
2552
  ], P);
2553
2553
  let F = () => p.value?.show(), L = () => p.value?.hide();
2554
- return Dt(() => {
2554
+ return Et(() => {
2555
2555
  h.value && L();
2556
2556
  }), i({
2557
2557
  show: F,
@@ -2569,23 +2569,23 @@ var Ot = [
2569
2569
  "aria-labelledby": `${d.value}-label`,
2570
2570
  "data-bs-backdrop": e.backdrop === !1 ? "false" : e.backdrop === "static" ? "static" : "true",
2571
2571
  "data-bs-scroll": e.scroll
2572
- }, [o("div", Lt, [o("h5", {
2572
+ }, [o("div", It, [o("h5", {
2573
2573
  id: `${d.value}-label`,
2574
2574
  class: "offcanvas-title"
2575
- }, [D(n.$slots, "header", {}, () => [s(A(e.title), 1)], !0)], 8, Rt), o("button", {
2575
+ }, [D(n.$slots, "header", {}, () => [s(A(e.title), 1)], !0)], 8, Lt), o("button", {
2576
2576
  type: "button",
2577
2577
  class: "btn-close",
2578
2578
  "aria-label": "Close",
2579
2579
  onClick: L
2580
- })]), o("div", zt, [D(n.$slots, "default", {}, void 0, !0)])], 10, It)], 8, ["to", "disabled"]));
2580
+ })]), o("div", Rt, [D(n.$slots, "default", {}, void 0, !0)])], 10, Ft)], 8, ["to", "disabled"]));
2581
2581
  }
2582
- }), [["__scopeId", "data-v-417d55a1"]]), Vt = {
2582
+ }), [["__scopeId", "data-v-417d55a1"]]), Bt = {
2583
2583
  key: 0,
2584
2584
  class: "toast-header"
2585
- }, Ht = { class: "me-auto" }, Ut = { class: "toast-body" }, Wt = {
2585
+ }, Vt = { class: "me-auto" }, Ht = { class: "toast-body" }, Ut = {
2586
2586
  key: 0,
2587
2587
  class: "toast-header"
2588
- }, Gt = { class: "me-auto" }, Kt = { class: "toast-body" }, qt = /* @__PURE__ */ c({
2588
+ }, Wt = { class: "me-auto" }, Gt = { class: "toast-body" }, Kt = /* @__PURE__ */ c({
2589
2589
  __name: "VibeToast",
2590
2590
  props: {
2591
2591
  id: {
@@ -2634,7 +2634,7 @@ var Ot = [
2634
2634
  "component-error"
2635
2635
  ],
2636
2636
  setup(e, { expose: s, emit: c }) {
2637
- let l = q("toast"), u = e, d = c, p = n(() => u.id ?? l), h = T(null), g = k(null), v = T(!1), b = n(() => {
2637
+ let l = J("toast"), u = e, d = c, p = n(() => u.id ?? l), h = T(null), g = k(null), v = T(!1), b = n(() => {
2638
2638
  let e = ["toast"];
2639
2639
  return u.variant && e.push(`text-bg-${u.variant}`), e.join(" ");
2640
2640
  }), S = n(() => {
@@ -2688,11 +2688,11 @@ var Ot = [
2688
2688
  hide: L,
2689
2689
  _unsafe_bsInstance: g
2690
2690
  });
2691
- let R = n(() => ({
2691
+ let R = n(() => u.variant === "danger" || u.variant === "warning"), z = n(() => ({
2692
2692
  id: p.value,
2693
2693
  class: b.value,
2694
- role: "alert",
2695
- "aria-live": "assertive",
2694
+ role: R.value ? "alert" : "status",
2695
+ "aria-live": R.value ? "assertive" : "polite",
2696
2696
  "aria-atomic": "true",
2697
2697
  "data-bs-autohide": u.autohide,
2698
2698
  "data-bs-delay": u.delay
@@ -2704,27 +2704,27 @@ var Ot = [
2704
2704
  key: 1,
2705
2705
  ref_key: "toastRef",
2706
2706
  ref: h
2707
- }, R.value), [e.title || n.$slots.header ? (x(), a("div", Wt, [D(n.$slots, "header", {}, () => [o("strong", Gt, A(e.title), 1)]), o("button", {
2707
+ }, z.value), [e.title || n.$slots.header ? (x(), a("div", Ut, [D(n.$slots, "header", {}, () => [o("strong", Wt, A(e.title), 1)]), o("button", {
2708
2708
  type: "button",
2709
2709
  class: "btn-close",
2710
2710
  "aria-label": "Close",
2711
2711
  onClick: L
2712
- })])) : i("", !0), o("div", Kt, [D(n.$slots, "default")])], 16)) : (x(), a("div", {
2712
+ })])) : i("", !0), o("div", Gt, [D(n.$slots, "default")])], 16)) : (x(), a("div", {
2713
2713
  key: 0,
2714
2714
  class: m(S.value),
2715
2715
  style: { "z-index": "1090" }
2716
2716
  }, [o("div", f({
2717
2717
  ref_key: "toastRef",
2718
2718
  ref: h
2719
- }, R.value), [e.title || n.$slots.header ? (x(), a("div", Vt, [D(n.$slots, "header", {}, () => [o("strong", Ht, A(e.title), 1)]), o("button", {
2719
+ }, z.value), [e.title || n.$slots.header ? (x(), a("div", Bt, [D(n.$slots, "header", {}, () => [o("strong", Vt, A(e.title), 1)]), o("button", {
2720
2720
  type: "button",
2721
2721
  class: "btn-close",
2722
2722
  "aria-label": "Close",
2723
2723
  onClick: L
2724
- })])) : i("", !0), o("div", Ut, [D(n.$slots, "default")])], 16)], 2))], 8, ["to", "disabled"]));
2724
+ })])) : i("", !0), o("div", Ht, [D(n.$slots, "default")])], 16)], 2))], 8, ["to", "disabled"]));
2725
2725
  }
2726
- }), Jt = C({ toasts: [] }), Yt = /* @__PURE__ */ new Map(), Xt = 0, Zt = () => (Xt += 1, `vibe-toast-${Xt}`), Qt = (e, t) => {
2727
- let n = t.id ?? Zt(), r = Yt.get(n);
2726
+ }), qt = C({ toasts: [] }), Jt = /* @__PURE__ */ new Map(), Yt = 0, Xt = () => (Yt += 1, `vibe-toast-${Yt}`), Zt = (e, t) => {
2727
+ let n = t.id ?? Xt(), r = Jt.get(n);
2728
2728
  if (r) return Object.assign(r, {
2729
2729
  body: e,
2730
2730
  title: t.title,
@@ -2742,53 +2742,53 @@ var Ot = [
2742
2742
  autohide: t.autohide,
2743
2743
  delay: t.delay
2744
2744
  };
2745
- return Yt.set(n, i), Jt.toasts.push(i), i;
2746
- }, $t = (e) => {
2747
- if (!Yt.has(e)) return !1;
2748
- Yt.delete(e);
2749
- let t = Jt.toasts.findIndex((t) => t.id === e);
2750
- return t !== -1 && Jt.toasts.splice(t, 1), !0;
2751
- }, en = () => {
2752
- Yt.clear(), Jt.toasts.splice(0, Jt.toasts.length);
2745
+ return Jt.set(n, i), qt.toasts.push(i), i;
2746
+ }, Qt = (e) => {
2747
+ if (!Jt.has(e)) return !1;
2748
+ Jt.delete(e);
2749
+ let t = qt.toasts.findIndex((t) => t.id === e);
2750
+ return t !== -1 && qt.toasts.splice(t, 1), !0;
2751
+ }, $t = () => {
2752
+ Jt.clear(), qt.toasts.splice(0, qt.toasts.length);
2753
2753
  };
2754
- function tn() {
2754
+ function en() {
2755
2755
  return {
2756
2756
  get toasts() {
2757
- return w(Jt.toasts);
2757
+ return w(qt.toasts);
2758
2758
  },
2759
- show: (e, t = {}) => Qt(e, t),
2760
- success: (e, t = {}) => Qt(e, {
2759
+ show: (e, t = {}) => Zt(e, t),
2760
+ success: (e, t = {}) => Zt(e, {
2761
2761
  ...t,
2762
2762
  variant: "success"
2763
2763
  }),
2764
- error: (e, t = {}) => Qt(e, {
2764
+ error: (e, t = {}) => Zt(e, {
2765
2765
  ...t,
2766
2766
  variant: "danger"
2767
2767
  }),
2768
- warn: (e, t = {}) => Qt(e, {
2768
+ warn: (e, t = {}) => Zt(e, {
2769
2769
  ...t,
2770
2770
  variant: "warning"
2771
2771
  }),
2772
- info: (e, t = {}) => Qt(e, {
2772
+ info: (e, t = {}) => Zt(e, {
2773
2773
  ...t,
2774
2774
  variant: "info"
2775
2775
  }),
2776
- dismiss: $t,
2777
- clear: en
2776
+ dismiss: Qt,
2777
+ clear: $t
2778
2778
  };
2779
2779
  }
2780
- var nn = () => {
2781
- en(), Xt = 0;
2782
- }, rn = Jt, an = /* @__PURE__ */ c({
2780
+ var tn = () => {
2781
+ $t(), Yt = 0;
2782
+ }, nn = qt, rn = /* @__PURE__ */ c({
2783
2783
  __name: "VibeToastHost",
2784
2784
  props: { defaultPlacement: {
2785
2785
  type: String,
2786
2786
  default: "top-end"
2787
2787
  } },
2788
2788
  setup(i) {
2789
- let o = i, { dismiss: c } = tn(), l = n(() => {
2789
+ let o = i, { dismiss: c } = en(), l = n(() => {
2790
2790
  let e = /* @__PURE__ */ new Map();
2791
- for (let t of rn.toasts) {
2791
+ for (let t of nn.toasts) {
2792
2792
  let n = t.placement ?? o.defaultPlacement, r = e.get(n);
2793
2793
  r ? r.push(t) : e.set(n, [t]);
2794
2794
  }
@@ -2808,7 +2808,7 @@ var nn = () => {
2808
2808
  key: t.placement,
2809
2809
  class: m(u(t.placement)),
2810
2810
  style: { "z-index": "1090" }
2811
- }, [(x(!0), a(e, null, E(t.toasts, (e) => (x(), r(qt, {
2811
+ }, [(x(!0), a(e, null, E(t.toasts, (e) => (x(), r(Kt, {
2812
2812
  key: e.id,
2813
2813
  "no-container": "",
2814
2814
  "model-value": !0,
@@ -2830,7 +2830,7 @@ var nn = () => {
2830
2830
  "onHidden"
2831
2831
  ]))), 128))], 2))), 128))]));
2832
2832
  }
2833
- }), on = [
2833
+ }), an = [
2834
2834
  "id",
2835
2835
  "data-bs-ride",
2836
2836
  "data-bs-interval",
@@ -2838,18 +2838,18 @@ var nn = () => {
2838
2838
  "data-bs-pause",
2839
2839
  "data-bs-wrap",
2840
2840
  "data-bs-touch"
2841
- ], sn = {
2841
+ ], on = {
2842
2842
  key: 0,
2843
2843
  class: "carousel-indicators"
2844
- }, cn = [
2844
+ }, sn = [
2845
2845
  "data-bs-target",
2846
2846
  "data-bs-slide-to",
2847
2847
  "aria-current",
2848
2848
  "aria-label"
2849
- ], ln = { class: "carousel-inner" }, un = ["data-bs-interval"], dn = ["src", "alt"], fn = {
2849
+ ], cn = { class: "carousel-inner" }, ln = ["data-bs-interval"], un = ["src", "alt"], dn = {
2850
2850
  key: 1,
2851
2851
  class: "carousel-caption d-none d-md-block"
2852
- }, pn = { key: 0 }, mn = { key: 1 }, hn = ["data-bs-target"], gn = ["data-bs-target"], _n = /* @__PURE__ */ c({
2852
+ }, fn = { key: 0 }, pn = { key: 1 }, mn = ["data-bs-target"], hn = ["data-bs-target"], gn = /* @__PURE__ */ c({
2853
2853
  __name: "VibeCarousel",
2854
2854
  props: {
2855
2855
  id: {
@@ -2912,7 +2912,7 @@ var nn = () => {
2912
2912
  "component-error"
2913
2913
  ],
2914
2914
  setup(t, { expose: r, emit: s }) {
2915
- let c = q("carousel"), l = t, u = s, d = T(null), f = k(null), h = T(l.modelValue), g = n(() => l.id || c), v = !1, b = n(() => {
2915
+ let c = J("carousel"), l = t, u = s, d = T(null), f = k(null), h = T(l.modelValue), g = n(() => l.id || c), v = !1, b = n(() => {
2916
2916
  let e = ["carousel", "slide"];
2917
2917
  return l.dark && e.push("carousel-dark"), l.fade && e.push("carousel-fade"), e.join(" ");
2918
2918
  }), S = (e) => {
@@ -2969,7 +2969,7 @@ var nn = () => {
2969
2969
  "data-bs-wrap": t.wrap,
2970
2970
  "data-bs-touch": t.touch
2971
2971
  }, [
2972
- t.indicators ? (x(), a("div", sn, [(x(!0), a(e, null, E(t.items, (e, t) => (x(), a("button", {
2972
+ t.indicators ? (x(), a("div", on, [(x(!0), a(e, null, E(t.items, (e, t) => (x(), a("button", {
2973
2973
  key: e.src ?? t,
2974
2974
  type: "button",
2975
2975
  "data-bs-target": `#${g.value}`,
@@ -2977,8 +2977,8 @@ var nn = () => {
2977
2977
  class: m({ active: t === h.value }),
2978
2978
  "aria-current": t === h.value,
2979
2979
  "aria-label": `Slide ${t + 1}`
2980
- }, null, 10, cn))), 128))])) : i("", !0),
2981
- o("div", ln, [(x(!0), a(e, null, E(t.items, (e, t) => (x(), a("div", {
2980
+ }, null, 10, sn))), 128))])) : i("", !0),
2981
+ o("div", cn, [(x(!0), a(e, null, E(t.items, (e, t) => (x(), a("div", {
2982
2982
  key: e.src ?? t,
2983
2983
  class: m(["carousel-item", { active: t === h.value }]),
2984
2984
  "data-bs-interval": e.interval
@@ -2987,10 +2987,10 @@ var nn = () => {
2987
2987
  src: e.src,
2988
2988
  alt: M(e, t),
2989
2989
  class: "d-block w-100"
2990
- }, null, 8, dn)) : i("", !0), e.caption || e.captionText || n.$slots.caption ? (x(), a("div", fn, [D(n.$slots, "caption", {
2990
+ }, null, 8, un)) : i("", !0), e.caption || e.captionText || n.$slots.caption ? (x(), a("div", dn, [D(n.$slots, "caption", {
2991
2991
  item: e,
2992
2992
  index: t
2993
- }, () => [e.caption ? (x(), a("h5", pn, A(e.caption), 1)) : i("", !0), e.captionText ? (x(), a("p", mn, A(e.captionText), 1)) : i("", !0)])])) : i("", !0)], 10, un))), 128))]),
2993
+ }, () => [e.caption ? (x(), a("h5", fn, A(e.caption), 1)) : i("", !0), e.captionText ? (x(), a("p", pn, A(e.captionText), 1)) : i("", !0)])])) : i("", !0)], 10, ln))), 128))]),
2994
2994
  t.controls ? (x(), a(e, { key: 1 }, [o("button", {
2995
2995
  class: "carousel-control-prev",
2996
2996
  type: "button",
@@ -2999,7 +2999,7 @@ var nn = () => {
2999
2999
  }, [...r[0] ||= [o("span", {
3000
3000
  class: "carousel-control-prev-icon",
3001
3001
  "aria-hidden": "true"
3002
- }, null, -1), o("span", { class: "visually-hidden" }, "Previous", -1)]], 8, hn), o("button", {
3002
+ }, null, -1), o("span", { class: "visually-hidden" }, "Previous", -1)]], 8, mn), o("button", {
3003
3003
  class: "carousel-control-next",
3004
3004
  type: "button",
3005
3005
  "data-bs-target": `#${g.value}`,
@@ -3007,14 +3007,14 @@ var nn = () => {
3007
3007
  }, [...r[1] ||= [o("span", {
3008
3008
  class: "carousel-control-next-icon",
3009
3009
  "aria-hidden": "true"
3010
- }, null, -1), o("span", { class: "visually-hidden" }, "Next", -1)]], 8, gn)], 64)) : i("", !0)
3011
- ], 10, on));
3010
+ }, null, -1), o("span", { class: "visually-hidden" }, "Next", -1)]], 8, hn)], 64)) : i("", !0)
3011
+ ], 10, an));
3012
3012
  }
3013
- }), vn = [
3013
+ }), _n = [
3014
3014
  "data-bs-placement",
3015
3015
  "data-bs-title",
3016
3016
  "data-bs-trigger"
3017
- ], yn = /* @__PURE__ */ c({
3017
+ ], vn = /* @__PURE__ */ c({
3018
3018
  __name: "VibeTooltip",
3019
3019
  props: {
3020
3020
  content: {
@@ -3076,14 +3076,14 @@ var nn = () => {
3076
3076
  "data-bs-placement": e.placement,
3077
3077
  "data-bs-title": e.text || e.content,
3078
3078
  "data-bs-trigger": d.value
3079
- }, [D(t.$slots, "default")], 8, vn));
3079
+ }, [D(t.$slots, "default")], 8, _n));
3080
3080
  }
3081
- }), bn = [
3081
+ }), yn = [
3082
3082
  "data-bs-placement",
3083
3083
  "data-bs-title",
3084
3084
  "data-bs-content",
3085
3085
  "data-bs-trigger"
3086
- ], xn = /* @__PURE__ */ c({
3086
+ ], bn = /* @__PURE__ */ c({
3087
3087
  __name: "VibePopover",
3088
3088
  props: {
3089
3089
  title: {
@@ -3156,9 +3156,9 @@ var nn = () => {
3156
3156
  "data-bs-title": e.title,
3157
3157
  "data-bs-content": e.text || e.content,
3158
3158
  "data-bs-trigger": d.value
3159
- }, [D(t.$slots, "default")], 8, bn));
3159
+ }, [D(t.$slots, "default")], 8, yn));
3160
3160
  }
3161
- }), Sn = /* @__PURE__ */ c({
3161
+ }), xn = /* @__PURE__ */ c({
3162
3162
  __name: "VibeScrollspy",
3163
3163
  props: {
3164
3164
  target: {
@@ -3229,7 +3229,7 @@ var nn = () => {
3229
3229
  }), _(() => {
3230
3230
  u = !0, s.value && s.value.removeEventListener("activate.bs.scrollspy", d), c.value &&= (c.value.dispose(), null);
3231
3231
  });
3232
- let m = n(() => Ce(a.height) ?? "100%"), v = () => c.value?.refresh();
3232
+ let m = n(() => Se(a.height) ?? "100%"), v = () => c.value?.refresh();
3233
3233
  return g(v), t({ refresh: v }), (t, n) => (x(), r(O(e.tag), {
3234
3234
  ref_key: "scrollspyRef",
3235
3235
  ref: s,
@@ -3255,11 +3255,11 @@ var nn = () => {
3255
3255
  "style"
3256
3256
  ]));
3257
3257
  }
3258
- }), Cn = [
3258
+ }), Sn = [
3259
3259
  "aria-hidden",
3260
3260
  "aria-label",
3261
3261
  "role"
3262
- ], wn = /* @__PURE__ */ c({
3262
+ ], Cn = /* @__PURE__ */ c({
3263
3263
  __name: "VibeIcon",
3264
3264
  props: {
3265
3265
  icon: {
@@ -3314,7 +3314,7 @@ var nn = () => {
3314
3314
  userSelect: "none"
3315
3315
  };
3316
3316
  if (r.fontSize) {
3317
- let t = Ce(r.fontSize);
3317
+ let t = Se(r.fontSize);
3318
3318
  t && (e.fontSize = t);
3319
3319
  } else if (r.size) {
3320
3320
  let t = {
@@ -3329,7 +3329,7 @@ var nn = () => {
3329
3329
  t[r.size] && (e.fontSize = t[r.size]);
3330
3330
  }
3331
3331
  if (r.color) {
3332
- let t = we(r.color);
3332
+ let t = Ce(r.color);
3333
3333
  t && (e.color = t);
3334
3334
  }
3335
3335
  let t = [];
@@ -3344,9 +3344,9 @@ var nn = () => {
3344
3344
  "aria-label": e.ariaLabel,
3345
3345
  role: e.ariaLabel ? "img" : void 0,
3346
3346
  onClick: c
3347
- }, null, 14, Cn));
3347
+ }, null, 14, Sn));
3348
3348
  }
3349
- }), Tn = [
3349
+ }), wn = [
3350
3350
  "--bs-primary",
3351
3351
  "--bs-success",
3352
3352
  "--bs-danger",
@@ -3356,17 +3356,17 @@ var nn = () => {
3356
3356
  "--bs-dark",
3357
3357
  "--bs-light"
3358
3358
  ];
3359
- function En(e, t) {
3359
+ function Tn(e, t) {
3360
3360
  let n = getComputedStyle(t);
3361
- return e.map((e, t) => e.color ?? n.getPropertyValue(Tn[t % Tn.length]).trim());
3361
+ return e.map((e, t) => e.color ?? n.getPropertyValue(wn[t % wn.length]).trim());
3362
3362
  }
3363
- function Dn(e, t) {
3363
+ function En(e, t) {
3364
3364
  let n = getComputedStyle(t);
3365
- return Array.from({ length: e }, (e, t) => n.getPropertyValue(Tn[t % Tn.length]).trim());
3365
+ return Array.from({ length: e }, (e, t) => n.getPropertyValue(wn[t % wn.length]).trim());
3366
3366
  }
3367
3367
  //#endregion
3368
3368
  //#region src/components/chart/chartResize.ts
3369
- function On(e, t, n) {
3369
+ function Dn(e, t, n) {
3370
3370
  let r = null, i = null;
3371
3371
  y(() => {
3372
3372
  if (typeof ResizeObserver > "u") return;
@@ -3384,10 +3384,10 @@ function On(e, t, n) {
3384
3384
  }
3385
3385
  //#endregion
3386
3386
  //#region src/components/chart/chartTooltip.ts
3387
- function kn(e, t) {
3387
+ function On(e, t) {
3388
3388
  return e === null && t === null ? !0 : e === null || t === null ? !1 : e.datasetIndex === t.datasetIndex && e.pointIndex === t.pointIndex;
3389
3389
  }
3390
- function An(e, t, n) {
3390
+ function kn(e, t, n) {
3391
3391
  let r = null, i = document.createElement("canvas");
3392
3392
  i.style.cssText = "position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none", e.appendChild(i);
3393
3393
  let a = () => {
@@ -3406,7 +3406,7 @@ function An(e, t, n) {
3406
3406
  e && e.clearRect(0, 0, i.width, i.height);
3407
3407
  }, c = (e) => {
3408
3408
  let i = t.getBoundingClientRect(), a = e.clientX - i.left, c = e.clientY - i.top, l = n(a, c);
3409
- kn(l, r) || (r = l, l ? o(l, a, c, i) : s());
3409
+ On(l, r) || (r = l, l ? o(l, a, c, i) : s());
3410
3410
  }, l = () => {
3411
3411
  r !== null && (r = null, s());
3412
3412
  };
@@ -3416,8 +3416,8 @@ function An(e, t, n) {
3416
3416
  }
3417
3417
  //#endregion
3418
3418
  //#region src/components/chart/drawLine.ts
3419
- var jn = 5, Mn = 4, Nn = 12;
3420
- function Pn(e) {
3419
+ var An = 5, jn = 4, Mn = 12;
3420
+ function Nn(e) {
3421
3421
  return e ? {
3422
3422
  left: 50,
3423
3423
  right: 10,
@@ -3430,22 +3430,22 @@ function Pn(e) {
3430
3430
  bottom: 10
3431
3431
  };
3432
3432
  }
3433
- function Fn(e, t, n, r, i, a, o, s, c) {
3434
- let l = Pn(a), u = n - l.left - l.right, d = r - l.top - l.bottom, f = t.datasets.flatMap((e) => e.data);
3433
+ function Pn(e, t, n, r, i, a, o, s, c) {
3434
+ let l = Nn(a), u = n - l.left - l.right, d = r - l.top - l.bottom, f = t.datasets.flatMap((e) => e.data);
3435
3435
  if (f.length === 0) return;
3436
3436
  let p = f.reduce((e, t) => Math.min(e, t), f[0]), m = f.reduce((e, t) => Math.max(e, t), f[0]) - p || 1, h = t.labels.length, g = u / Math.max(h - 1, 1), _ = (e) => l.left + e * g, v = (e) => l.top + d - (e - p) / m * d;
3437
3437
  if (e.clearRect(0, 0, n, r), o) {
3438
3438
  e.strokeStyle = "rgba(0,0,0,0.1)", e.lineWidth = 1, e.setLineDash([4, 4]);
3439
- for (let t = 0; t <= jn; t++) {
3440
- let n = l.top + d / jn * t;
3439
+ for (let t = 0; t <= An; t++) {
3440
+ let n = l.top + d / An * t;
3441
3441
  e.beginPath(), e.moveTo(l.left, n), e.lineTo(l.left + u, n), e.stroke();
3442
3442
  }
3443
3443
  e.setLineDash([]);
3444
3444
  }
3445
3445
  if (a) {
3446
3446
  e.save(), e.strokeStyle = "#666", e.lineWidth = 1, e.beginPath(), e.moveTo(l.left, l.top), e.lineTo(l.left, l.top + d), e.stroke(), e.beginPath(), e.moveTo(l.left, l.top + d), e.lineTo(l.left + u, l.top + d), e.stroke(), e.fillStyle = "#666", e.font = "11px sans-serif", e.textAlign = "center", t.labels.forEach((t, n) => e.fillText(String(t), _(n), l.top + d + 18)), e.textAlign = "right";
3447
- for (let t = 0; t <= jn; t++) {
3448
- let n = p + m / jn * (jn - t), r = l.top + d / jn * t;
3447
+ for (let t = 0; t <= An; t++) {
3448
+ let n = p + m / An * (An - t), r = l.top + d / An * t;
3449
3449
  e.fillText(n.toFixed(0), l.left - 5, r + 4);
3450
3450
  }
3451
3451
  e.restore();
@@ -3464,11 +3464,11 @@ function Fn(e, t, n, r, i, a, o, s, c) {
3464
3464
  });
3465
3465
  };
3466
3466
  c && r.data.length > 0 && (e.beginPath(), a(!0), e.lineTo(_(r.data.length - 1), l.top + d), e.lineTo(_(0), l.top + d), e.closePath(), e.fillStyle = `${t}33`, e.fill()), e.strokeStyle = t, e.lineWidth = 2, e.beginPath(), a(!0), e.stroke(), e.fillStyle = t, r.data.forEach((t, n) => {
3467
- e.beginPath(), e.arc(_(n), v(t), Mn, 0, Math.PI * 2), e.fill();
3467
+ e.beginPath(), e.arc(_(n), v(t), jn, 0, Math.PI * 2), e.fill();
3468
3468
  });
3469
3469
  }
3470
3470
  }
3471
- function In(e) {
3471
+ function Fn(e) {
3472
3472
  let t = e.datasets.flatMap((e) => e.data);
3473
3473
  if (t.length === 0) return null;
3474
3474
  let n = t.reduce((e, t) => Math.min(e, t), t[0]), r = t.reduce((e, t) => Math.max(e, t), t[0]);
@@ -3478,11 +3478,11 @@ function In(e) {
3478
3478
  range: r - n || 1
3479
3479
  };
3480
3480
  }
3481
- function Ln(e, t, n, r, i, a, o) {
3482
- let s = Pn(a), c = r - s.left - s.right, l = i - s.top - s.bottom;
3481
+ function In(e, t, n, r, i, a, o) {
3482
+ let s = Nn(a), c = r - s.left - s.right, l = i - s.top - s.bottom;
3483
3483
  if (!o) return null;
3484
3484
  let u = o.min, d = o.range, f = n.labels.length, p = c / Math.max(f - 1, 1), m = (e) => s.left + e * p, h = (e) => s.top + l - (e - u) / d * l;
3485
- for (let [r, i] of n.datasets.entries()) for (let [a, o] of i.data.entries()) if (Math.hypot(e - m(a), t - h(o)) <= Nn) return {
3485
+ for (let [r, i] of n.datasets.entries()) for (let [a, o] of i.data.entries()) if (Math.hypot(e - m(a), t - h(o)) <= Mn) return {
3486
3486
  datasetIndex: r,
3487
3487
  pointIndex: a,
3488
3488
  value: o,
@@ -3492,13 +3492,13 @@ function Ln(e, t, n, r, i, a, o) {
3492
3492
  }
3493
3493
  //#endregion
3494
3494
  //#region src/components/VibeChartLine.vue?vue&type=script&setup=true&lang.ts
3495
- var Rn = { class: "vibe-chart" }, zn = {
3495
+ var Ln = { class: "vibe-chart" }, Rn = {
3496
3496
  key: 0,
3497
3497
  class: "vibe-chart-legend vibe-chart-legend--top"
3498
- }, Bn = {
3498
+ }, zn = {
3499
3499
  key: 1,
3500
3500
  class: "vibe-chart-legend vibe-chart-legend--bottom"
3501
- }, Vn = /*#__PURE__*/ W(/* @__PURE__ */ c({
3501
+ }, Bn = /*#__PURE__*/ G(/* @__PURE__ */ c({
3502
3502
  __name: "VibeChartLine",
3503
3503
  props: {
3504
3504
  data: {
@@ -3539,20 +3539,20 @@ var Rn = { class: "vibe-chart" }, zn = {
3539
3539
  height: typeof r.height == "number" ? `${r.height}px` : r.height
3540
3540
  }), m = T([]);
3541
3541
  function g() {
3542
- m.value = c.value ? En(r.data.datasets, c.value) : [];
3542
+ m.value = c.value ? Tn(r.data.datasets, c.value) : [];
3543
3543
  }
3544
3544
  let _ = null;
3545
3545
  function v() {
3546
- if (g(), _ = In(r.data), !l.value || !d || !f) return;
3546
+ if (g(), _ = Fn(r.data), !l.value || !d || !f) return;
3547
3547
  let e = l.value, t = e.getContext("2d");
3548
3548
  if (!t) return;
3549
3549
  let n = window.devicePixelRatio || 1, i = Math.round(d * n), a = Math.round(f * n);
3550
- (e.width !== i || e.height !== a) && (e.width = i, e.height = a), t.setTransform(n, 0, 0, n, 0, 0), Fn(t, r.data, d, f, m.value, r.showAxes, r.showGrid, r.smooth, r.fill);
3550
+ (e.width !== i || e.height !== a) && (e.width = i, e.height = a), t.setTransform(n, 0, 0, n, 0, 0), Pn(t, r.data, d, f, m.value, r.showAxes, r.showGrid, r.smooth, r.fill);
3551
3551
  }
3552
- return On(c, l, (e, t) => {
3552
+ return Dn(c, l, (e, t) => {
3553
3553
  d = e, f = t, v();
3554
3554
  }), y(() => {
3555
- g(), _ = In(r.data), c.value && l.value && (u = An(c.value, l.value, (e, t) => Ln(e, t, r.data, d, f, r.showAxes, _)));
3555
+ g(), _ = Fn(r.data), c.value && l.value && (u = kn(c.value, l.value, (e, t) => In(e, t, r.data, d, f, r.showAxes, _)));
3556
3556
  }), I(() => r.data, v), I([
3557
3557
  () => r.showAxes,
3558
3558
  () => r.showGrid,
@@ -3560,8 +3560,8 @@ var Rn = { class: "vibe-chart" }, zn = {
3560
3560
  () => r.fill
3561
3561
  ], v), b(() => {
3562
3562
  u?.();
3563
- }), (n, r) => (x(), a("div", Rn, [
3564
- t.legend === "top" ? (x(), a("div", zn, [(x(!0), a(e, null, E(t.data.datasets, (e, t) => (x(), a("span", {
3563
+ }), (n, r) => (x(), a("div", Ln, [
3564
+ t.legend === "top" ? (x(), a("div", Rn, [(x(!0), a(e, null, E(t.data.datasets, (e, t) => (x(), a("span", {
3565
3565
  key: e.label ?? t,
3566
3566
  class: "vibe-chart-legend-item"
3567
3567
  }, [o("span", {
@@ -3584,7 +3584,7 @@ var Rn = { class: "vibe-chart" }, zn = {
3584
3584
  height: "100%"
3585
3585
  }
3586
3586
  }, null, 512)], 4),
3587
- t.legend === "bottom" ? (x(), a("div", Bn, [(x(!0), a(e, null, E(t.data.datasets, (e, t) => (x(), a("span", {
3587
+ t.legend === "bottom" ? (x(), a("div", zn, [(x(!0), a(e, null, E(t.data.datasets, (e, t) => (x(), a("span", {
3588
3588
  key: e.label ?? t,
3589
3589
  class: "vibe-chart-legend-item"
3590
3590
  }, [o("span", {
@@ -3593,8 +3593,8 @@ var Rn = { class: "vibe-chart" }, zn = {
3593
3593
  }, null, 4), s(" " + A(e.label), 1)]))), 128))])) : i("", !0)
3594
3594
  ]));
3595
3595
  }
3596
- }), [["__scopeId", "data-v-d995a6f3"]]), Hn = 5, Un = .2;
3597
- function Wn(e) {
3596
+ }), [["__scopeId", "data-v-d995a6f3"]]), Vn = 5, Hn = .2;
3597
+ function Un(e) {
3598
3598
  return e ? {
3599
3599
  left: 50,
3600
3600
  right: 10,
@@ -3607,15 +3607,15 @@ function Wn(e) {
3607
3607
  bottom: 10
3608
3608
  };
3609
3609
  }
3610
- function Gn(e, t) {
3610
+ function Wn(e, t) {
3611
3611
  return t ? e.labels.map((t, n) => e.datasets.reduce((e, t) => e + (t.data[n] ?? 0), 0)).reduce((e, t) => Math.max(e, t), 0) || 1 : e.datasets.flatMap((e) => e.data).reduce((e, t) => Math.max(e, t), 0) || 1;
3612
3612
  }
3613
- function Kn(e, t, n, r, i, a, o, s) {
3614
- let c = Wn(a), l = n - c.left - c.right, u = r - c.top - c.bottom, d = t.labels.length, f = t.datasets.length, p = Gn(t, s), m = l / d, h = s ? m * (1 - Un) : m * (1 - Un) / f;
3613
+ function Gn(e, t, n, r, i, a, o, s) {
3614
+ let c = Un(a), l = n - c.left - c.right, u = r - c.top - c.bottom, d = t.labels.length, f = t.datasets.length, p = Wn(t, s), m = l / d, h = s ? m * (1 - Hn) : m * (1 - Hn) / f;
3615
3615
  if (e.clearRect(0, 0, n, r), o) {
3616
3616
  e.strokeStyle = "rgba(0,0,0,0.1)", e.lineWidth = 1, e.setLineDash([4, 4]);
3617
- for (let t = 1; t <= Hn; t++) {
3618
- let n = c.top + u / Hn * t;
3617
+ for (let t = 1; t <= Vn; t++) {
3618
+ let n = c.top + u / Vn * t;
3619
3619
  e.beginPath(), e.moveTo(c.left, n), e.lineTo(c.left + l, n), e.stroke();
3620
3620
  }
3621
3621
  e.setLineDash([]);
@@ -3624,14 +3624,14 @@ function Kn(e, t, n, r, i, a, o, s) {
3624
3624
  e.save(), e.strokeStyle = "#666", e.lineWidth = 1, e.beginPath(), e.moveTo(c.left, c.top), e.lineTo(c.left, c.top + u), e.stroke(), e.beginPath(), e.moveTo(c.left, c.top + u), e.lineTo(c.left + l, c.top + u), e.stroke(), e.fillStyle = "#666", e.font = "11px sans-serif", e.textAlign = "center", t.labels.forEach((t, n) => {
3625
3625
  e.fillText(String(t), c.left + n * m + m / 2, c.top + u + 18);
3626
3626
  }), e.textAlign = "right";
3627
- for (let t = 0; t <= Hn; t++) {
3628
- let n = p / Hn * (Hn - t), r = c.top + u / Hn * t;
3627
+ for (let t = 0; t <= Vn; t++) {
3628
+ let n = p / Vn * (Vn - t), r = c.top + u / Vn * t;
3629
3629
  e.fillText(n.toFixed(0), c.left - 5, r + 4);
3630
3630
  }
3631
3631
  e.restore();
3632
3632
  }
3633
3633
  if (s) for (let n = 0; n < d; n++) {
3634
- let r = c.top + u, a = c.left + n * m + m * Un / 2;
3634
+ let r = c.top + u, a = c.left + n * m + m * Hn / 2;
3635
3635
  for (let [o, s] of t.datasets.entries()) {
3636
3636
  let t = Math.max(0, s.data[n] ?? 0) / p * u;
3637
3637
  e.fillStyle = i[o], e.fillRect(a, r - t, h, t), r -= t;
@@ -3640,15 +3640,15 @@ function Kn(e, t, n, r, i, a, o, s) {
3640
3640
  else for (let [n, r] of t.datasets.entries()) {
3641
3641
  e.fillStyle = i[n];
3642
3642
  for (let t = 0; t < d; t++) {
3643
- let i = Math.max(0, r.data[t] ?? 0) / p * u, a = c.left + t * m + m * Un / 2 + n * h;
3643
+ let i = Math.max(0, r.data[t] ?? 0) / p * u, a = c.left + t * m + m * Hn / 2 + n * h;
3644
3644
  e.fillRect(a, c.top + u - i, h, i);
3645
3645
  }
3646
3646
  }
3647
3647
  }
3648
- function qn(e, t, n, r, i, a, o, s) {
3649
- let c = Wn(a), l = r - c.left - c.right, u = i - c.top - c.bottom, d = n.labels.length, f = n.datasets.length, p = l / d, m = o ? p * (1 - Un) : p * (1 - Un) / f, h = Math.floor((e - c.left) / p);
3648
+ function Kn(e, t, n, r, i, a, o, s) {
3649
+ let c = Un(a), l = r - c.left - c.right, u = i - c.top - c.bottom, d = n.labels.length, f = n.datasets.length, p = l / d, m = o ? p * (1 - Hn) : p * (1 - Hn) / f, h = Math.floor((e - c.left) / p);
3650
3650
  if (h < 0 || h >= d) return null;
3651
- let g = c.left + h * p + p * Un / 2;
3651
+ let g = c.left + h * p + p * Hn / 2;
3652
3652
  if (o) {
3653
3653
  if (e < g || e > g + m) return null;
3654
3654
  let r = c.top + u;
@@ -3679,13 +3679,13 @@ function qn(e, t, n, r, i, a, o, s) {
3679
3679
  }
3680
3680
  //#endregion
3681
3681
  //#region src/components/VibeChartBar.vue?vue&type=script&setup=true&lang.ts
3682
- var Jn = { class: "vibe-chart" }, Yn = {
3682
+ var qn = { class: "vibe-chart" }, Jn = {
3683
3683
  key: 0,
3684
3684
  class: "vibe-chart-legend vibe-chart-legend--top"
3685
- }, Xn = {
3685
+ }, Yn = {
3686
3686
  key: 1,
3687
3687
  class: "vibe-chart-legend vibe-chart-legend--bottom"
3688
- }, Zn = /*#__PURE__*/ W(/* @__PURE__ */ c({
3688
+ }, Xn = /*#__PURE__*/ G(/* @__PURE__ */ c({
3689
3689
  __name: "VibeChartBar",
3690
3690
  props: {
3691
3691
  data: {
@@ -3722,28 +3722,28 @@ var Jn = { class: "vibe-chart" }, Yn = {
3722
3722
  height: typeof r.height == "number" ? `${r.height}px` : r.height
3723
3723
  }), m = T([]);
3724
3724
  function g() {
3725
- m.value = c.value ? En(r.data.datasets, c.value) : [];
3725
+ m.value = c.value ? Tn(r.data.datasets, c.value) : [];
3726
3726
  }
3727
3727
  let _ = 1;
3728
3728
  function v() {
3729
- if (g(), _ = Gn(r.data, r.stacked), !l.value || !d || !f) return;
3729
+ if (g(), _ = Wn(r.data, r.stacked), !l.value || !d || !f) return;
3730
3730
  let e = l.value, t = e.getContext("2d");
3731
3731
  if (!t) return;
3732
3732
  let n = window.devicePixelRatio || 1, i = Math.round(d * n), a = Math.round(f * n);
3733
- (e.width !== i || e.height !== a) && (e.width = i, e.height = a), t.setTransform(n, 0, 0, n, 0, 0), Kn(t, r.data, d, f, m.value, r.showAxes, r.showGrid, r.stacked);
3733
+ (e.width !== i || e.height !== a) && (e.width = i, e.height = a), t.setTransform(n, 0, 0, n, 0, 0), Gn(t, r.data, d, f, m.value, r.showAxes, r.showGrid, r.stacked);
3734
3734
  }
3735
- return On(c, l, (e, t) => {
3735
+ return Dn(c, l, (e, t) => {
3736
3736
  d = e, f = t, v();
3737
3737
  }), y(() => {
3738
- g(), _ = Gn(r.data, r.stacked), c.value && l.value && (u = An(c.value, l.value, (e, t) => qn(e, t, r.data, d, f, r.showAxes, r.stacked, _)));
3738
+ g(), _ = Wn(r.data, r.stacked), c.value && l.value && (u = kn(c.value, l.value, (e, t) => Kn(e, t, r.data, d, f, r.showAxes, r.stacked, _)));
3739
3739
  }), I(() => r.data, v), I([
3740
3740
  () => r.showAxes,
3741
3741
  () => r.showGrid,
3742
3742
  () => r.stacked
3743
3743
  ], v), b(() => {
3744
3744
  u?.();
3745
- }), (n, r) => (x(), a("div", Jn, [
3746
- t.legend === "top" ? (x(), a("div", Yn, [(x(!0), a(e, null, E(t.data.datasets, (e, t) => (x(), a("span", {
3745
+ }), (n, r) => (x(), a("div", qn, [
3746
+ t.legend === "top" ? (x(), a("div", Jn, [(x(!0), a(e, null, E(t.data.datasets, (e, t) => (x(), a("span", {
3747
3747
  key: e.label ?? t,
3748
3748
  class: "vibe-chart-legend-item"
3749
3749
  }, [o("span", {
@@ -3766,7 +3766,7 @@ var Jn = { class: "vibe-chart" }, Yn = {
3766
3766
  height: "100%"
3767
3767
  }
3768
3768
  }, null, 512)], 4),
3769
- t.legend === "bottom" ? (x(), a("div", Xn, [(x(!0), a(e, null, E(t.data.datasets, (e, t) => (x(), a("span", {
3769
+ t.legend === "bottom" ? (x(), a("div", Yn, [(x(!0), a(e, null, E(t.data.datasets, (e, t) => (x(), a("span", {
3770
3770
  key: e.label ?? t,
3771
3771
  class: "vibe-chart-legend-item"
3772
3772
  }, [o("span", {
@@ -3778,7 +3778,7 @@ var Jn = { class: "vibe-chart" }, Yn = {
3778
3778
  }), [["__scopeId", "data-v-eb3ff4df"]]);
3779
3779
  //#endregion
3780
3780
  //#region src/components/chart/drawPie.ts
3781
- function Qn(e, t, n, r, i) {
3781
+ function Zn(e, t, n, r, i) {
3782
3782
  e.clearRect(0, 0, n, r);
3783
3783
  let a = (t.datasets[0]?.data ?? []).map((e) => Math.max(0, e)), o = a.reduce((e, t) => e + t, 0);
3784
3784
  if (o === 0) return;
@@ -3790,7 +3790,7 @@ function Qn(e, t, n, r, i) {
3790
3790
  e.beginPath(), e.moveTo(s, c), e.arc(s, c, l, u, u + r), e.closePath(), e.fillStyle = i[t], e.fill(), e.stroke(), u += r;
3791
3791
  }
3792
3792
  }
3793
- function $n(e, t, n, r, i) {
3793
+ function Qn(e, t, n, r, i) {
3794
3794
  let a = r / 2, o = i / 2, s = Math.min(r, i) * .4, c = e - a, l = t - o;
3795
3795
  if (Math.hypot(c, l) > s) return null;
3796
3796
  let u = (n.datasets[0]?.data ?? []).map((e) => Math.max(0, e)), d = u.reduce((e, t) => e + t, 0);
@@ -3810,13 +3810,13 @@ function $n(e, t, n, r, i) {
3810
3810
  }
3811
3811
  //#endregion
3812
3812
  //#region src/components/VibeChartPie.vue?vue&type=script&setup=true&lang.ts
3813
- var er = { class: "vibe-chart" }, tr = {
3813
+ var $n = { class: "vibe-chart" }, er = {
3814
3814
  key: 0,
3815
3815
  class: "vibe-chart-legend vibe-chart-legend--top"
3816
- }, nr = {
3816
+ }, tr = {
3817
3817
  key: 1,
3818
3818
  class: "vibe-chart-legend vibe-chart-legend--bottom"
3819
- }, rr = /*#__PURE__*/ W(/* @__PURE__ */ c({
3819
+ }, nr = /*#__PURE__*/ G(/* @__PURE__ */ c({
3820
3820
  __name: "VibeChartPie",
3821
3821
  props: {
3822
3822
  data: {
@@ -3841,23 +3841,23 @@ var er = { class: "vibe-chart" }, tr = {
3841
3841
  height: typeof r.height == "number" ? `${r.height}px` : r.height
3842
3842
  }), m = T([]);
3843
3843
  function g() {
3844
- m.value = c.value ? Dn(r.data.labels?.length ?? 0, c.value) : [];
3844
+ m.value = c.value ? En(r.data.labels?.length ?? 0, c.value) : [];
3845
3845
  }
3846
3846
  function _() {
3847
3847
  if (g(), !l.value || !d || !f) return;
3848
3848
  let e = l.value, t = e.getContext("2d");
3849
3849
  if (!t) return;
3850
3850
  let n = window.devicePixelRatio || 1, i = Math.round(d * n), a = Math.round(f * n);
3851
- (e.width !== i || e.height !== a) && (e.width = i, e.height = a), t.setTransform(n, 0, 0, n, 0, 0), Qn(t, r.data, d, f, m.value);
3851
+ (e.width !== i || e.height !== a) && (e.width = i, e.height = a), t.setTransform(n, 0, 0, n, 0, 0), Zn(t, r.data, d, f, m.value);
3852
3852
  }
3853
- return On(c, l, (e, t) => {
3853
+ return Dn(c, l, (e, t) => {
3854
3854
  d = e, f = t, _();
3855
3855
  }), y(() => {
3856
- g(), c.value && l.value && (u = An(c.value, l.value, (e, t) => $n(e, t, r.data, d, f)));
3856
+ g(), c.value && l.value && (u = kn(c.value, l.value, (e, t) => Qn(e, t, r.data, d, f)));
3857
3857
  }), I(() => r.data, _), b(() => {
3858
3858
  u?.();
3859
- }), (n, r) => (x(), a("div", er, [
3860
- t.legend === "top" ? (x(), a("div", tr, [(x(!0), a(e, null, E(t.data.labels, (e, t) => (x(), a("span", {
3859
+ }), (n, r) => (x(), a("div", $n, [
3860
+ t.legend === "top" ? (x(), a("div", er, [(x(!0), a(e, null, E(t.data.labels, (e, t) => (x(), a("span", {
3861
3861
  key: e ?? t,
3862
3862
  class: "vibe-chart-legend-item"
3863
3863
  }, [o("span", {
@@ -3880,7 +3880,7 @@ var er = { class: "vibe-chart" }, tr = {
3880
3880
  height: "100%"
3881
3881
  }
3882
3882
  }, null, 512)], 4),
3883
- t.legend === "bottom" ? (x(), a("div", nr, [(x(!0), a(e, null, E(t.data.labels, (e, t) => (x(), a("span", {
3883
+ t.legend === "bottom" ? (x(), a("div", tr, [(x(!0), a(e, null, E(t.data.labels, (e, t) => (x(), a("span", {
3884
3884
  key: e ?? t,
3885
3885
  class: "vibe-chart-legend-item"
3886
3886
  }, [o("span", {
@@ -3889,31 +3889,31 @@ var er = { class: "vibe-chart" }, tr = {
3889
3889
  }, null, 4), s(" " + A(e), 1)]))), 128))])) : i("", !0)
3890
3890
  ]));
3891
3891
  }
3892
- }), [["__scopeId", "data-v-bab16cba"]]), ir = { class: "vibe-datatable" }, ar = { class: "row mb-3" }, or = {
3892
+ }), [["__scopeId", "data-v-bab16cba"]]), rr = { class: "vibe-datatable" }, ir = { class: "row mb-3" }, ar = {
3893
3893
  key: 0,
3894
3894
  class: "col-md-6 mb-2 mb-md-0"
3895
- }, sr = ["placeholder"], cr = {
3895
+ }, or = ["placeholder"], sr = {
3896
3896
  key: 1,
3897
3897
  class: "col-md-6"
3898
- }, lr = { class: "d-flex justify-content-md-end align-items-center" }, ur = ["value"], dr = ["aria-sort", "onClick"], fr = ["onClick"], pr = ["data-label"], mr = { key: 0 }, hr = ["colspan"], gr = { class: "row" }, _r = {
3898
+ }, cr = { class: "d-flex justify-content-md-end align-items-center" }, lr = ["value"], ur = ["aria-sort", "onClick"], dr = ["onClick"], fr = ["data-label"], pr = { key: 0 }, mr = ["colspan"], hr = { class: "row" }, gr = {
3899
3899
  key: 0,
3900
3900
  class: "col-md-6 mb-2 mb-md-0"
3901
- }, vr = { class: "datatable-info" }, yr = {
3901
+ }, _r = { class: "datatable-info" }, vr = {
3902
3902
  key: 1,
3903
3903
  class: "col-md-6"
3904
- }, br = { class: "pagination justify-content-md-end mb-0" }, xr = {
3904
+ }, yr = { class: "pagination justify-content-md-end mb-0" }, br = {
3905
3905
  key: 0,
3906
3906
  class: "page-item"
3907
- }, Sr = {
3907
+ }, xr = {
3908
3908
  key: 1,
3909
3909
  class: "page-item disabled"
3910
- }, Cr = ["onClick"], wr = {
3910
+ }, Sr = ["onClick"], Cr = {
3911
3911
  key: 2,
3912
3912
  class: "page-item disabled"
3913
- }, Tr = {
3913
+ }, wr = {
3914
3914
  key: 3,
3915
3915
  class: "page-item"
3916
- }, Er = /*#__PURE__*/ W(/* @__PURE__ */ c({
3916
+ }, Tr = /*#__PURE__*/ G(/* @__PURE__ */ c({
3917
3917
  __name: "VibeDataTable",
3918
3918
  props: /*@__PURE__*/ d({
3919
3919
  items: {
@@ -4083,61 +4083,61 @@ var er = { class: "vibe-chart" }, tr = {
4083
4083
  let e = l.value - 2, t = l.value + 2, n = [];
4084
4084
  for (let r = Math.max(1, e); r <= Math.min(L.value, t); r++) n.push(r);
4085
4085
  return n;
4086
- }), ee = n(() => {
4086
+ }), U = n(() => {
4087
4087
  let e = ["table"];
4088
4088
  return c.striped && e.push("table-striped"), c.bordered && e.push("table-bordered"), c.borderless && e.push("table-borderless"), c.hover && e.push("table-hover"), c.small && e.push("table-sm"), c.stack && e.push("vibe-table-stack"), c.variant && e.push(`table-${c.variant}`), e.join(" ");
4089
- }), te = (e) => {
4089
+ }), ee = (e) => {
4090
4090
  !c.sortable || e.sortable === !1 || (d.value === e.key ? f.value = !f.value : (d.value = e.key, f.value = !1));
4091
4091
  };
4092
4092
  I(L, (e) => {
4093
4093
  e > 0 && l.value > e && (l.value = e);
4094
4094
  });
4095
- let U = (e) => {
4095
+ let W = (e) => {
4096
4096
  e < 1 || e > L.value || (l.value = e);
4097
- }, W = () => {
4097
+ }, G = () => {
4098
4098
  l.value = 1;
4099
- }, ne = (e, t) => {
4099
+ }, te = (e, t) => {
4100
4100
  p("row-clicked", e, R.value - 1 + t);
4101
- }, re = (e, t) => {
4101
+ }, ne = (e, t) => {
4102
4102
  let n = e[t.key];
4103
4103
  return t.formatter ? t.formatter(n, e) : n;
4104
- }, ie = n(() => {
4104
+ }, re = n(() => {
4105
4105
  let e = /* @__PURE__ */ new Map();
4106
4106
  for (let t of c.columns) !c.sortable || t.sortable === !1 ? e.set(t, "") : d.value === t.key ? e.set(t, f.value ? "sort-desc" : "sort-asc") : e.set(t, "sort-none");
4107
4107
  return e;
4108
- }), ae = n(() => {
4108
+ }), ie = n(() => {
4109
4109
  let e = /* @__PURE__ */ new Map();
4110
4110
  for (let t of c.columns) !c.sortable || t.sortable === !1 ? e.set(t, void 0) : d.value === t.key ? e.set(t, f.value ? "descending" : "ascending") : e.set(t, "none");
4111
4111
  return e;
4112
- }), oe = n(() => {
4112
+ }), ae = n(() => {
4113
4113
  let e = /* @__PURE__ */ new Map();
4114
4114
  for (let t of c.columns) {
4115
- let n = Te(t.thStyle);
4115
+ let n = we(t.thStyle);
4116
4116
  c.sortable && t.sortable !== !1 && (n.cursor = "pointer"), e.set(t, n);
4117
4117
  }
4118
4118
  return e;
4119
- }), se = n(() => {
4119
+ }), oe = n(() => {
4120
4120
  let e = /* @__PURE__ */ new Map();
4121
- for (let t of c.columns) e.set(t, Te(t.tdStyle));
4121
+ for (let t of c.columns) e.set(t, we(t.tdStyle));
4122
4122
  return e;
4123
4123
  });
4124
- return (n, r) => (x(), a("div", ir, [
4125
- o("div", ar, [t.searchable ? (x(), a("div", or, [z(o("input", {
4124
+ return (n, r) => (x(), a("div", rr, [
4125
+ o("div", ir, [t.searchable ? (x(), a("div", ar, [z(o("input", {
4126
4126
  "onUpdate:modelValue": r[0] ||= (e) => g.value = e,
4127
4127
  type: "search",
4128
4128
  class: "form-control",
4129
4129
  placeholder: t.searchPlaceholder
4130
- }, null, 8, sr), [[P, g.value]])])) : i("", !0), t.showPerPage && t.paginated ? (x(), a("div", cr, [o("div", lr, [
4130
+ }, null, 8, or), [[P, g.value]])])) : i("", !0), t.showPerPage && t.paginated ? (x(), a("div", sr, [o("div", cr, [
4131
4131
  r[6] ||= o("label", { class: "me-2 mb-0" }, "Show", -1),
4132
4132
  z(o("select", {
4133
4133
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e,
4134
4134
  class: "form-select form-select-sm",
4135
4135
  style: { width: "auto" },
4136
- onChange: W
4136
+ onChange: G
4137
4137
  }, [(x(!0), a(e, null, E(t.perPageOptions, (e) => (x(), a("option", {
4138
4138
  key: e,
4139
4139
  value: e
4140
- }, A(e), 9, ur))), 128))], 544), [[
4140
+ }, A(e), 9, lr))), 128))], 544), [[
4141
4141
  N,
4142
4142
  u.value,
4143
4143
  void 0,
@@ -4145,86 +4145,86 @@ var er = { class: "vibe-chart" }, tr = {
4145
4145
  ]]),
4146
4146
  r[7] ||= o("span", { class: "ms-2" }, "entries", -1)
4147
4147
  ])])) : i("", !0)]),
4148
- o("div", { class: m({ "table-responsive": t.responsive }) }, [o("table", { class: m(ee.value) }, [o("thead", null, [o("tr", null, [(x(!0), a(e, null, E(t.columns, (e) => (x(), a("th", {
4148
+ o("div", { class: m({ "table-responsive": t.responsive }) }, [o("table", { class: m(U.value) }, [o("thead", null, [o("tr", null, [(x(!0), a(e, null, E(t.columns, (e) => (x(), a("th", {
4149
4149
  key: e.key,
4150
4150
  class: m(e.headerClass),
4151
- style: h(oe.value.get(e)),
4152
- "aria-sort": ae.value.get(e),
4153
- onClick: (t) => te(e)
4151
+ style: h(ae.value.get(e)),
4152
+ "aria-sort": ie.value.get(e),
4153
+ onClick: (t) => ee(e)
4154
4154
  }, [s(A(e.label) + " ", 1), t.sortable && e.sortable !== !1 ? (x(), a("span", {
4155
4155
  key: 0,
4156
4156
  class: m([
4157
4157
  "ms-1",
4158
4158
  "vibe-sort-icon",
4159
- ie.value.get(e)
4159
+ re.value.get(e)
4160
4160
  ]),
4161
4161
  "aria-hidden": "true"
4162
- }, null, 2)) : i("", !0)], 14, dr))), 128))])]), o("tbody", null, [(x(!0), a(e, null, E(k.value, (r, i) => (x(), a("tr", {
4162
+ }, null, 2)) : i("", !0)], 14, ur))), 128))])]), o("tbody", null, [(x(!0), a(e, null, E(k.value, (r, i) => (x(), a("tr", {
4163
4163
  key: b(r, i),
4164
4164
  style: h(t.clickable ? { cursor: "pointer" } : void 0),
4165
- onClick: (e) => ne(r, i)
4165
+ onClick: (e) => te(r, i)
4166
4166
  }, [(x(!0), a(e, null, E(t.columns, (e) => (x(), a("td", {
4167
4167
  key: e.key,
4168
4168
  class: m(e.class),
4169
- style: h(se.value.get(e)),
4169
+ style: h(oe.value.get(e)),
4170
4170
  "data-label": e.label
4171
4171
  }, [D(n.$slots, `cell(${e.key})`, {
4172
4172
  item: r,
4173
4173
  value: r[e.key],
4174
4174
  index: i
4175
- }, () => [s(A(re(r, e)), 1)], !0)], 14, pr))), 128))], 12, fr))), 128)), k.value.length === 0 && t.showEmpty ? (x(), a("tr", mr, [o("td", {
4175
+ }, () => [s(A(ne(r, e)), 1)], !0)], 14, fr))), 128))], 12, dr))), 128)), k.value.length === 0 && t.showEmpty ? (x(), a("tr", pr, [o("td", {
4176
4176
  colspan: t.columns?.length || 1,
4177
4177
  class: "text-center"
4178
- }, A(t.emptyText), 9, hr)])) : i("", !0)])], 2)], 2),
4179
- o("div", gr, [t.showInfo ? (x(), a("div", _r, [o("div", vr, A(V.value), 1)])) : i("", !0), t.paginated && L.value > 1 ? (x(), a("div", yr, [o("nav", null, [o("ul", br, [
4178
+ }, A(t.emptyText), 9, mr)])) : i("", !0)])], 2)], 2),
4179
+ o("div", hr, [t.showInfo ? (x(), a("div", gr, [o("div", _r, A(V.value), 1)])) : i("", !0), t.paginated && L.value > 1 ? (x(), a("div", vr, [o("nav", null, [o("ul", yr, [
4180
4180
  o("li", { class: m(["page-item", { disabled: l.value === 1 }]) }, [o("button", {
4181
4181
  type: "button",
4182
4182
  class: "page-link",
4183
- onClick: r[2] ||= (e) => U(l.value - 1)
4183
+ onClick: r[2] ||= (e) => W(l.value - 1)
4184
4184
  }, " Previous ")], 2),
4185
- l.value > 3 ? (x(), a("li", xr, [o("button", {
4185
+ l.value > 3 ? (x(), a("li", br, [o("button", {
4186
4186
  type: "button",
4187
4187
  class: "page-link",
4188
- onClick: r[3] ||= (e) => U(1)
4188
+ onClick: r[3] ||= (e) => W(1)
4189
4189
  }, "1")])) : i("", !0),
4190
- l.value > 4 ? (x(), a("li", Sr, [...r[8] ||= [o("span", { class: "page-link" }, "...", -1)]])) : i("", !0),
4190
+ l.value > 4 ? (x(), a("li", xr, [...r[8] ||= [o("span", { class: "page-link" }, "...", -1)]])) : i("", !0),
4191
4191
  (x(!0), a(e, null, E(H.value, (e) => (x(), a("li", {
4192
4192
  key: e,
4193
4193
  class: m(["page-item", { active: e === l.value }])
4194
4194
  }, [o("button", {
4195
4195
  type: "button",
4196
4196
  class: "page-link",
4197
- onClick: (t) => U(e)
4198
- }, A(e), 9, Cr)], 2))), 128)),
4199
- l.value < L.value - 3 ? (x(), a("li", wr, [...r[9] ||= [o("span", { class: "page-link" }, "...", -1)]])) : i("", !0),
4200
- l.value < L.value - 2 ? (x(), a("li", Tr, [o("button", {
4197
+ onClick: (t) => W(e)
4198
+ }, A(e), 9, Sr)], 2))), 128)),
4199
+ l.value < L.value - 3 ? (x(), a("li", Cr, [...r[9] ||= [o("span", { class: "page-link" }, "...", -1)]])) : i("", !0),
4200
+ l.value < L.value - 2 ? (x(), a("li", wr, [o("button", {
4201
4201
  type: "button",
4202
4202
  class: "page-link",
4203
- onClick: r[4] ||= (e) => U(L.value)
4203
+ onClick: r[4] ||= (e) => W(L.value)
4204
4204
  }, A(L.value), 1)])) : i("", !0),
4205
4205
  o("li", { class: m(["page-item", { disabled: l.value === L.value }]) }, [o("button", {
4206
4206
  type: "button",
4207
4207
  class: "page-link",
4208
- onClick: r[5] ||= (e) => U(l.value + 1)
4208
+ onClick: r[5] ||= (e) => W(l.value + 1)
4209
4209
  }, " Next ")], 2)
4210
4210
  ])])])) : i("", !0)])
4211
4211
  ]));
4212
4212
  }
4213
- }), [["__scopeId", "data-v-fd417a3a"]]), Dr = ["for"], Or = {
4213
+ }), [["__scopeId", "data-v-fd417a3a"]]), Er = ["for"], Dr = {
4214
4214
  key: 0,
4215
4215
  class: "text-danger ms-1",
4216
4216
  "aria-hidden": "true"
4217
- }, kr = {
4217
+ }, Or = {
4218
4218
  key: 1,
4219
4219
  class: "text-muted ms-1 small",
4220
4220
  "aria-hidden": "true"
4221
- }, Ar = {
4221
+ }, kr = {
4222
4222
  key: 2,
4223
4223
  class: "visually-hidden"
4224
- }, jr = {
4224
+ }, Ar = {
4225
4225
  key: 1,
4226
4226
  class: "input-group"
4227
- }, Mr = [
4227
+ }, jr = [
4228
4228
  "id",
4229
4229
  "type",
4230
4230
  "value",
@@ -4236,7 +4236,7 @@ var er = { class: "vibe-chart" }, tr = {
4236
4236
  "inputmode",
4237
4237
  "aria-invalid",
4238
4238
  "aria-describedby"
4239
- ], Nr = ["aria-label", "aria-pressed"], Pr = [
4239
+ ], Mr = ["aria-label", "aria-pressed"], Nr = [
4240
4240
  "id",
4241
4241
  "type",
4242
4242
  "value",
@@ -4248,14 +4248,14 @@ var er = { class: "vibe-chart" }, tr = {
4248
4248
  "inputmode",
4249
4249
  "aria-invalid",
4250
4250
  "aria-describedby"
4251
- ], Fr = {
4251
+ ], Pr = {
4252
4252
  key: 3,
4253
4253
  "aria-live": "polite",
4254
4254
  class: "mt-1"
4255
- }, Ir = {
4255
+ }, Fr = {
4256
4256
  class: "d-flex gap-1 mb-1",
4257
4257
  "aria-hidden": "true"
4258
- }, Lr = { class: "text-muted" }, Rr = ["id"], zr = ["id"], Br = ["id"], Vr = [
4258
+ }, Ir = { class: "text-muted" }, Lr = ["id"], Rr = ["id"], zr = ["id"], Br = [
4259
4259
  "id",
4260
4260
  "type",
4261
4261
  "value",
@@ -4267,7 +4267,8 @@ var er = { class: "vibe-chart" }, tr = {
4267
4267
  "inputmode",
4268
4268
  "aria-invalid",
4269
4269
  "aria-describedby"
4270
- ], Hr = /*#__PURE__*/ W(/* @__PURE__ */ c({
4270
+ ], Vr = /*#__PURE__*/ G(/* @__PURE__ */ c({
4271
+ inheritAttrs: !1,
4271
4272
  __name: "VibeFormInput",
4272
4273
  props: /*@__PURE__*/ d({
4273
4274
  type: {
@@ -4362,8 +4363,8 @@ var er = { class: "vibe-chart" }, tr = {
4362
4363
  "change"
4363
4364
  ], ["update:modelValue"]),
4364
4365
  setup(t, { emit: r }) {
4365
- let c = M(t, "modelValue"), l = t, d = r, f = u(K, null), p = T(!1), g = n(() => l.type === "password" && l.showToggle && p.value ? "text" : l.type);
4366
- function _(e) {
4366
+ let c = M(t, "modelValue"), l = t, d = r, p = u(q, null), g = T(!1), _ = n(() => l.type === "password" && l.showToggle && g.value ? "text" : l.type);
4367
+ function v(e) {
4367
4368
  let t = 0;
4368
4369
  return e.length >= 8 && t++, e.length >= 12 && t++, /[a-z]/.test(e) && t++, /[A-Z]/.test(e) && t++, /\d/.test(e) && t++, /[^a-zA-Z0-9]/.test(e) && t++, t <= 1 ? {
4369
4370
  level: 1,
@@ -4379,137 +4380,136 @@ var er = { class: "vibe-chart" }, tr = {
4379
4380
  label: "Strong"
4380
4381
  };
4381
4382
  }
4382
- let v = n(() => _(String(c.value ?? ""))), y = [
4383
+ let y = n(() => v(String(c.value ?? ""))), b = [
4383
4384
  "",
4384
4385
  "#dc3545",
4385
4386
  "#fd7e14",
4386
4387
  "#0d6efd",
4387
4388
  "#198754"
4388
- ], b = {
4389
+ ], S = {
4389
4390
  number: "decimal",
4390
4391
  email: "email",
4391
4392
  tel: "tel",
4392
4393
  url: "url",
4393
4394
  search: "search"
4394
- }, S = n(() => l.inputmode ?? b[l.type]), C = { email: "email" }, w = n(() => l.autocomplete ?? C[l.type]), D = f?.consumeId(), O = q("input"), k = n(() => l.id || D || O), j = n(() => `${k.value}-help`), N = n(() => `${k.value}-feedback`), P = n(() => {
4395
+ }, C = n(() => l.inputmode ?? S[l.type]), w = { email: "email" }, D = n(() => l.autocomplete ?? w[l.type]), O = p?.consumeId(), k = J("input"), j = n(() => l.id || O || k), N = n(() => `${j.value}-help`), P = n(() => `${j.value}-feedback`), F = n(() => {
4395
4396
  let e = [];
4396
- return l.helpText && e.push(j.value), l.validationMessage && e.push(N.value), f?.helpId.value && e.push(f.helpId.value), f?.feedbackId.value && e.push(f.feedbackId.value), e.length ? [...new Set(e)].join(" ") : void 0;
4397
- }), F = n(() => !!l.label && !f?.hasLabel.value), I = n(() => !!l.validationState && !f?.hasValidation.value), L = n(() => !!l.helpText && !f?.hasHelp.value), R = n(() => {
4397
+ return l.helpText && e.push(N.value), l.validationMessage && e.push(P.value), p?.helpId.value && e.push(p.helpId.value), p?.feedbackId.value && e.push(p.feedbackId.value), e.length ? [...new Set(e)].join(" ") : void 0;
4398
+ }), I = n(() => !!l.label && !p?.hasLabel.value), L = n(() => !!l.validationState && !p?.hasValidation.value), R = n(() => !!l.helpText && !p?.hasHelp.value), z = n(() => {
4398
4399
  let e = [];
4399
4400
  return l.plaintext ? e.push("form-control-plaintext") : (e.push("form-control"), l.size && e.push(`form-control-${l.size}`)), l.validationState === "valid" && e.push("is-valid"), l.validationState === "invalid" && e.push("is-invalid"), l.focusRing && e.push("focus-ring"), e.join(" ");
4400
- }), z = (e) => {
4401
+ }), B = (e) => {
4401
4402
  let t = e.target;
4402
4403
  c.value = l.type === "number" ? t.value === "" ? "" : Number(t.value) : t.value, d("input", e), l.validateOn === "input" && d("validate");
4403
- }, B = (e) => {
4404
- d("change", e), l.validateOn === "change" && d("validate");
4405
4404
  }, V = (e) => {
4406
- d("blur", e), l.validateOn === "blur" && d("validate");
4405
+ d("change", e), l.validateOn === "change" && d("validate");
4407
4406
  }, H = (e) => {
4407
+ d("blur", e), l.validateOn === "blur" && d("validate");
4408
+ }, U = (e) => {
4408
4409
  d("focus", e);
4409
4410
  };
4410
- return (n, r) => t.noWrapper ? (x(), a("input", {
4411
- key: 1,
4412
- id: k.value,
4411
+ return (n, r) => t.noWrapper ? (x(), a("input", f({ key: 1 }, n.$attrs, {
4412
+ id: j.value,
4413
4413
  type: t.type,
4414
- class: m(R.value),
4414
+ class: z.value,
4415
4415
  value: c.value,
4416
4416
  placeholder: t.placeholder,
4417
4417
  disabled: t.disabled,
4418
4418
  readonly: t.readonly || t.plaintext,
4419
4419
  required: t.required,
4420
- autocomplete: w.value,
4421
- inputmode: S.value,
4420
+ autocomplete: D.value,
4421
+ inputmode: C.value,
4422
4422
  "aria-invalid": t.validationState === "invalid",
4423
- "aria-describedby": P.value,
4424
- onInput: z,
4425
- onChange: B,
4426
- onBlur: V,
4427
- onFocus: H
4428
- }, null, 42, Vr)) : (x(), a("div", {
4423
+ "aria-describedby": F.value,
4424
+ onInput: B,
4425
+ onChange: V,
4426
+ onBlur: H,
4427
+ onFocus: U
4428
+ }), null, 16, Br)) : (x(), a("div", {
4429
4429
  key: 0,
4430
- class: m({ "mb-3": F.value || L.value || I.value })
4430
+ class: m({ "mb-3": I.value || R.value || L.value })
4431
4431
  }, [
4432
- F.value ? (x(), a("label", {
4432
+ I.value ? (x(), a("label", {
4433
4433
  key: 0,
4434
- for: k.value,
4434
+ for: j.value,
4435
4435
  class: "form-label"
4436
4436
  }, [
4437
4437
  s(A(t.label) + " ", 1),
4438
- t.required ? (x(), a("span", Or, "*")) : (x(), a("span", kr, "(optional)")),
4439
- t.required ? (x(), a("span", Ar, "required")) : i("", !0)
4440
- ], 8, Dr)) : i("", !0),
4441
- t.showToggle && t.type === "password" ? (x(), a("div", jr, [o("input", {
4442
- id: k.value,
4443
- type: g.value,
4444
- class: m(R.value),
4438
+ t.required ? (x(), a("span", Dr, "*")) : (x(), a("span", Or, "(optional)")),
4439
+ t.required ? (x(), a("span", kr, "required")) : i("", !0)
4440
+ ], 8, Er)) : i("", !0),
4441
+ t.showToggle && t.type === "password" ? (x(), a("div", Ar, [o("input", f(n.$attrs, {
4442
+ id: j.value,
4443
+ type: _.value,
4444
+ class: z.value,
4445
4445
  value: c.value,
4446
4446
  placeholder: t.placeholder,
4447
4447
  disabled: t.disabled,
4448
4448
  readonly: t.readonly || t.plaintext,
4449
4449
  required: t.required,
4450
- autocomplete: w.value,
4451
- inputmode: S.value,
4450
+ autocomplete: D.value,
4451
+ inputmode: C.value,
4452
4452
  "aria-invalid": t.validationState === "invalid",
4453
- "aria-describedby": P.value,
4454
- onInput: z,
4455
- onChange: B,
4456
- onBlur: V,
4457
- onFocus: H
4458
- }, null, 42, Mr), o("button", {
4453
+ "aria-describedby": F.value,
4454
+ onInput: B,
4455
+ onChange: V,
4456
+ onBlur: H,
4457
+ onFocus: U
4458
+ }), null, 16, jr), o("button", {
4459
4459
  type: "button",
4460
4460
  class: "btn btn-outline-secondary",
4461
- "aria-label": p.value ? "Hide password" : "Show password",
4462
- "aria-pressed": p.value,
4463
- onClick: r[0] ||= (e) => p.value = !p.value
4461
+ "aria-label": g.value ? "Hide password" : "Show password",
4462
+ "aria-pressed": g.value,
4463
+ onClick: r[0] ||= (e) => g.value = !g.value
4464
4464
  }, [o("i", {
4465
- class: m(p.value ? "bi bi-eye-slash" : "bi bi-eye"),
4465
+ class: m(g.value ? "bi bi-eye-slash" : "bi bi-eye"),
4466
4466
  "aria-hidden": "true"
4467
- }, null, 2)], 8, Nr)])) : (x(), a("input", {
4468
- key: 2,
4469
- id: k.value,
4467
+ }, null, 2)], 8, Mr)])) : (x(), a("input", f({ key: 2 }, n.$attrs, {
4468
+ id: j.value,
4470
4469
  type: t.type,
4471
- class: m(R.value),
4470
+ class: z.value,
4472
4471
  value: c.value,
4473
4472
  placeholder: t.placeholder,
4474
4473
  disabled: t.disabled,
4475
4474
  readonly: t.readonly || t.plaintext,
4476
4475
  required: t.required,
4477
- autocomplete: w.value,
4478
- inputmode: S.value,
4476
+ autocomplete: D.value,
4477
+ inputmode: C.value,
4479
4478
  "aria-invalid": t.validationState === "invalid",
4480
- "aria-describedby": P.value,
4481
- onInput: z,
4482
- onChange: B,
4483
- onBlur: V,
4484
- onFocus: H
4485
- }, null, 42, Pr)),
4486
- t.showPasswordStrength && t.type === "password" ? (x(), a("div", Fr, [o("div", Ir, [(x(), a(e, null, E(4, (e) => o("div", {
4479
+ "aria-describedby": F.value,
4480
+ onInput: B,
4481
+ onChange: V,
4482
+ onBlur: H,
4483
+ onFocus: U
4484
+ }), null, 16, Nr)),
4485
+ t.showPasswordStrength && t.type === "password" ? (x(), a("div", Pr, [o("div", Fr, [(x(), a(e, null, E(4, (e) => o("div", {
4487
4486
  key: e,
4488
4487
  class: "flex-fill rounded",
4489
- style: h([{ height: "4px" }, { backgroundColor: e <= v.value.level ? y[v.value.level] : "var(--bs-border-color)" }])
4490
- }, null, 4)), 64))]), o("small", Lr, "Password strength: " + A(v.value.label), 1)])) : i("", !0),
4491
- L.value ? (x(), a("div", {
4488
+ style: h([{ height: "4px" }, { backgroundColor: e <= y.value.level ? b[y.value.level] : "var(--bs-border-color)" }])
4489
+ }, null, 4)), 64))]), o("small", Ir, "Password strength: " + A(y.value.label), 1)])) : i("", !0),
4490
+ R.value ? (x(), a("div", {
4492
4491
  key: 4,
4493
- id: j.value,
4492
+ id: N.value,
4494
4493
  class: "form-text"
4495
- }, A(t.helpText), 9, Rr)) : i("", !0),
4496
- I.value ? (x(), a(e, { key: 5 }, [t.validationState === "valid" ? (x(), a("div", {
4494
+ }, A(t.helpText), 9, Lr)) : i("", !0),
4495
+ L.value ? (x(), a(e, { key: 5 }, [t.validationState === "valid" ? (x(), a("div", {
4497
4496
  key: 0,
4498
- id: N.value,
4497
+ id: P.value,
4499
4498
  class: "valid-feedback",
4500
4499
  style: { display: "block" }
4501
- }, A(t.validationMessage || "Looks good!"), 9, zr)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
4500
+ }, A(t.validationMessage || "Looks good!"), 9, Rr)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
4502
4501
  key: 1,
4503
- id: N.value,
4502
+ id: P.value,
4504
4503
  class: "invalid-feedback",
4504
+ role: "alert",
4505
4505
  style: { display: "block" }
4506
- }, A(t.validationMessage || "Please provide a valid value."), 9, Br)) : i("", !0)], 64)) : i("", !0)
4506
+ }, A(t.validationMessage || "Please provide a valid value."), 9, zr)) : i("", !0)], 64)) : i("", !0)
4507
4507
  ], 2));
4508
4508
  }
4509
- }), [["__scopeId", "data-v-d9ebcf8c"]]), Ur = ["for"], Wr = {
4509
+ }), [["__scopeId", "data-v-418a46b0"]]), Hr = ["for"], Ur = {
4510
4510
  key: 0,
4511
4511
  class: "text-danger"
4512
- }, Gr = [
4512
+ }, Wr = [
4513
4513
  "id",
4514
4514
  "value",
4515
4515
  "multiple",
@@ -4518,12 +4518,13 @@ var er = { class: "vibe-chart" }, tr = {
4518
4518
  "required",
4519
4519
  "aria-invalid",
4520
4520
  "aria-describedby"
4521
- ], Kr = {
4521
+ ], Gr = {
4522
4522
  key: 0,
4523
4523
  value: "",
4524
4524
  disabled: "",
4525
4525
  selected: ""
4526
- }, qr = ["value", "disabled"], Jr = ["id"], Yr = ["id"], Xr = ["id"], Zr = "", Qr = "vi:", $r = /* @__PURE__ */ c({
4526
+ }, Kr = ["value", "disabled"], qr = ["id"], Jr = ["id"], Yr = ["id"], Xr = "", Zr = "vi:", Qr = /* @__PURE__ */ c({
4527
+ inheritAttrs: !1,
4527
4528
  __name: "VibeFormSelect",
4528
4529
  props: /*@__PURE__*/ d({
4529
4530
  id: {
@@ -4606,83 +4607,84 @@ var er = { class: "vibe-chart" }, tr = {
4606
4607
  "change"
4607
4608
  ], ["update:modelValue"]),
4608
4609
  setup(t, { emit: r }) {
4609
- let c = (e) => `${Qr}${e}`, l = (e) => {
4610
- if (!e.startsWith(Qr)) return -1;
4610
+ let c = (e) => `${Zr}${e}`, l = (e) => {
4611
+ if (!e.startsWith(Zr)) return -1;
4611
4612
  let t = Number(e.slice(3));
4612
4613
  return Number.isInteger(t) && t >= 0 ? t : -1;
4613
4614
  }, d = (e, t) => {
4614
4615
  for (let n = 0; n < e.length; n++) if (Object.is(e[n].value, t)) return n;
4615
4616
  return -1;
4616
- }, f = M(t, "modelValue"), p = t, h = r, g = u(K, null), _ = g?.consumeId(), v = q("select"), y = n(() => p.id || _ || v), b = n(() => `${y.value}-help`), S = n(() => `${y.value}-feedback`), C = n(() => !!p.label && !g?.hasLabel.value), w = n(() => !!p.validationState && !g?.hasValidation.value), T = n(() => !!p.helpText && !g?.hasHelp.value), O = n(() => {
4617
+ }, p = M(t, "modelValue"), h = t, g = r, _ = u(q, null), v = _?.consumeId(), y = J("select"), b = n(() => h.id || v || y), S = n(() => `${b.value}-help`), C = n(() => `${b.value}-feedback`), w = n(() => !!h.label && !_?.hasLabel.value), T = n(() => !!h.validationState && !_?.hasValidation.value), O = n(() => !!h.helpText && !_?.hasHelp.value), k = n(() => {
4617
4618
  let e = ["form-select"];
4618
- return p.size && e.push(`form-select-${p.size}`), p.validationState === "valid" && e.push("is-valid"), p.validationState === "invalid" && e.push("is-invalid"), e.join(" ");
4619
- }), k = (e) => {
4619
+ return h.size && e.push(`form-select-${h.size}`), h.validationState === "valid" && e.push("is-valid"), h.validationState === "invalid" && e.push("is-invalid"), e.join(" ");
4620
+ }), j = (e) => {
4620
4621
  let t = l(e);
4621
- return t >= 0 && t < p.options.length ? p.options[t].value : "";
4622
- }, j = (e) => {
4622
+ return t >= 0 && t < h.options.length ? h.options[t].value : "";
4623
+ }, N = (e) => {
4623
4624
  let t = e.target, n;
4624
- n = p.multiple ? Array.from(t.selectedOptions).map((e) => k(e.value)) : k(t.value), f.value = n;
4625
- }, N = n(() => {
4626
- if (Array.isArray(f.value)) return f.value.map((e) => {
4627
- let t = d(p.options, e);
4628
- return t >= 0 ? c(t) : Zr;
4629
- }).filter((e) => e !== Zr);
4630
- let e = d(p.options, f.value);
4631
- return e >= 0 ? c(e) : Zr;
4632
- }), P = (e) => {
4633
- h("change", e), p.validateOn === "change" && h("validate");
4634
- }, F = (e) => {
4635
- h("blur", e), p.validateOn === "blur" && h("validate");
4625
+ n = h.multiple ? Array.from(t.selectedOptions).map((e) => j(e.value)) : j(t.value), p.value = n;
4626
+ }, P = n(() => {
4627
+ if (Array.isArray(p.value)) return p.value.map((e) => {
4628
+ let t = d(h.options, e);
4629
+ return t >= 0 ? c(t) : Xr;
4630
+ }).filter((e) => e !== Xr);
4631
+ let e = d(h.options, p.value);
4632
+ return e >= 0 ? c(e) : Xr;
4633
+ }), F = (e) => {
4634
+ g("change", e), h.validateOn === "change" && g("validate");
4636
4635
  }, I = (e) => {
4637
- h("focus", e);
4636
+ g("blur", e), h.validateOn === "blur" && g("validate");
4637
+ }, L = (e) => {
4638
+ g("focus", e);
4638
4639
  };
4639
- return (n, r) => (x(), a("div", { class: m({ "mb-3": C.value || T.value || w.value }) }, [
4640
- C.value ? (x(), a("label", {
4640
+ return (n, r) => (x(), a("div", { class: m({ "mb-3": w.value || O.value || T.value }) }, [
4641
+ w.value ? (x(), a("label", {
4641
4642
  key: 0,
4642
- for: y.value,
4643
+ for: b.value,
4643
4644
  class: "form-label"
4644
- }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", Wr, "*")) : i("", !0)], 8, Ur)) : i("", !0),
4645
- o("select", {
4646
- id: y.value,
4647
- class: m(O.value),
4648
- value: N.value,
4645
+ }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", Ur, "*")) : i("", !0)], 8, Hr)) : i("", !0),
4646
+ o("select", f(n.$attrs, {
4647
+ id: b.value,
4648
+ class: k.value,
4649
+ value: P.value,
4649
4650
  multiple: t.multiple,
4650
4651
  size: t.htmlSize || t.selectSize,
4651
4652
  disabled: t.disabled,
4652
4653
  required: t.required,
4653
4654
  "aria-invalid": t.validationState === "invalid",
4654
- "aria-describedby": t.helpText && t.validationMessage ? `${b.value} ${S.value}` : t.helpText ? b.value : t.validationMessage ? S.value : void 0,
4655
- onInput: j,
4656
- onChange: P,
4657
- onBlur: F,
4658
- onFocus: I
4659
- }, [t.placeholder && !t.multiple ? (x(), a("option", Kr, A(t.placeholder), 1)) : i("", !0), D(n.$slots, "default", {}, () => [(x(!0), a(e, null, E(t.options, (e, t) => (x(), a("option", {
4655
+ "aria-describedby": t.helpText && t.validationMessage ? `${S.value} ${C.value}` : t.helpText ? S.value : t.validationMessage ? C.value : void 0,
4656
+ onInput: N,
4657
+ onChange: F,
4658
+ onBlur: I,
4659
+ onFocus: L
4660
+ }), [t.placeholder && !t.multiple ? (x(), a("option", Gr, A(t.placeholder), 1)) : i("", !0), D(n.$slots, "default", {}, () => [(x(!0), a(e, null, E(t.options, (e, t) => (x(), a("option", {
4660
4661
  key: e.value === void 0 ? e.text : String(e.value),
4661
4662
  value: c(t),
4662
4663
  disabled: e.disabled
4663
- }, A(e.text), 9, qr))), 128))])], 42, Gr),
4664
- T.value ? (x(), a("div", {
4664
+ }, A(e.text), 9, Kr))), 128))])], 16, Wr),
4665
+ O.value ? (x(), a("div", {
4665
4666
  key: 1,
4666
- id: `${y.value}-help`,
4667
+ id: `${b.value}-help`,
4667
4668
  class: "form-text"
4668
- }, A(t.helpText), 9, Jr)) : i("", !0),
4669
- w.value ? (x(), a(e, { key: 2 }, [t.validationState === "valid" ? (x(), a("div", {
4669
+ }, A(t.helpText), 9, qr)) : i("", !0),
4670
+ T.value ? (x(), a(e, { key: 2 }, [t.validationState === "valid" ? (x(), a("div", {
4670
4671
  key: 0,
4671
- id: `${y.value}-feedback`,
4672
+ id: `${b.value}-feedback`,
4672
4673
  class: "valid-feedback",
4673
4674
  style: { display: "block" }
4674
- }, A(t.validationMessage || "Looks good!"), 9, Yr)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
4675
+ }, A(t.validationMessage || "Looks good!"), 9, Jr)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
4675
4676
  key: 1,
4676
- id: `${y.value}-feedback`,
4677
+ id: `${b.value}-feedback`,
4677
4678
  class: "invalid-feedback",
4679
+ role: "alert",
4678
4680
  style: { display: "block" }
4679
- }, A(t.validationMessage || "Please select an option."), 9, Xr)) : i("", !0)], 64)) : i("", !0)
4681
+ }, A(t.validationMessage || "Please select an option."), 9, Yr)) : i("", !0)], 64)) : i("", !0)
4680
4682
  ], 2));
4681
4683
  }
4682
- }), ei = ["for"], ti = {
4684
+ }), $r = ["for"], ei = {
4683
4685
  key: 0,
4684
4686
  class: "text-danger"
4685
- }, ni = [
4687
+ }, ti = [
4686
4688
  "id",
4687
4689
  "value",
4688
4690
  "placeholder",
@@ -4693,10 +4695,11 @@ var er = { class: "vibe-chart" }, tr = {
4693
4695
  "required",
4694
4696
  "aria-invalid",
4695
4697
  "aria-describedby"
4696
- ], ri = ["id"], ii = {
4698
+ ], ni = ["id"], ri = {
4697
4699
  key: 0,
4698
4700
  class: "ms-auto"
4699
- }, ai = ["id"], oi = ["id"], si = /* @__PURE__ */ c({
4701
+ }, ii = ["id"], ai = ["id"], oi = /* @__PURE__ */ c({
4702
+ inheritAttrs: !1,
4700
4703
  __name: "VibeFormTextarea",
4701
4704
  props: /*@__PURE__*/ d({
4702
4705
  id: {
@@ -4775,7 +4778,7 @@ var er = { class: "vibe-chart" }, tr = {
4775
4778
  "change"
4776
4779
  ], ["update:modelValue"]),
4777
4780
  setup(t, { emit: r }) {
4778
- let c = M(t, "modelValue"), l = t, d = r, f = u(K, null), p = f?.consumeId(), g = q("textarea"), _ = n(() => l.id || p || g), v = n(() => `${_.value}-help`), y = n(() => `${_.value}-feedback`), b = n(() => !!l.label && !f?.hasLabel.value), S = n(() => !!l.validationState && !f?.hasValidation.value), C = n(() => (!!l.helpText || l.showCharCount) && !f?.hasHelp.value), w = n(() => {
4781
+ let c = M(t, "modelValue"), l = t, d = r, p = u(q, null), h = p?.consumeId(), g = J("textarea"), _ = n(() => l.id || h || g), v = n(() => `${_.value}-help`), y = n(() => `${_.value}-feedback`), b = n(() => !!l.label && !p?.hasLabel.value), S = n(() => !!l.validationState && !p?.hasValidation.value), C = n(() => (!!l.helpText || l.showCharCount) && !p?.hasHelp.value), w = n(() => {
4779
4782
  let e = ["form-control"];
4780
4783
  return l.size && e.push(`form-control-${l.size}`), l.validationState === "valid" && e.push("is-valid"), l.validationState === "invalid" && e.push("is-invalid"), e.join(" ");
4781
4784
  }), T = n(() => {
@@ -4794,11 +4797,11 @@ var er = { class: "vibe-chart" }, tr = {
4794
4797
  key: 0,
4795
4798
  for: _.value,
4796
4799
  class: "form-label"
4797
- }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", ti, "*")) : i("", !0)], 8, ei)) : i("", !0),
4798
- o("textarea", {
4800
+ }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", ei, "*")) : i("", !0)], 8, $r)) : i("", !0),
4801
+ o("textarea", f(n.$attrs, {
4799
4802
  id: _.value,
4800
- class: m(w.value),
4801
- style: h(T.value),
4803
+ class: w.value,
4804
+ style: T.value,
4802
4805
  value: c.value,
4803
4806
  placeholder: t.placeholder,
4804
4807
  rows: t.rows,
@@ -4812,29 +4815,30 @@ var er = { class: "vibe-chart" }, tr = {
4812
4815
  onChange: O,
4813
4816
  onBlur: k,
4814
4817
  onFocus: j
4815
- }, null, 46, ni),
4818
+ }), null, 16, ti),
4816
4819
  C.value ? (x(), a("div", {
4817
4820
  key: 1,
4818
4821
  id: v.value,
4819
4822
  class: "form-text d-flex justify-content-between"
4820
- }, [o("span", null, A(t.helpText), 1), t.showCharCount ? (x(), a("span", ii, [t.maxlength ? (x(), a(e, { key: 0 }, [s(A(E.value) + " / " + A(t.maxlength), 1)], 64)) : (x(), a(e, { key: 1 }, [s(A(E.value), 1)], 64))])) : i("", !0)], 8, ri)) : i("", !0),
4823
+ }, [o("span", null, A(t.helpText), 1), t.showCharCount ? (x(), a("span", ri, [t.maxlength ? (x(), a(e, { key: 0 }, [s(A(E.value) + " / " + A(t.maxlength), 1)], 64)) : (x(), a(e, { key: 1 }, [s(A(E.value), 1)], 64))])) : i("", !0)], 8, ni)) : i("", !0),
4821
4824
  S.value ? (x(), a(e, { key: 2 }, [t.validationState === "valid" ? (x(), a("div", {
4822
4825
  key: 0,
4823
4826
  id: y.value,
4824
4827
  class: "valid-feedback",
4825
4828
  style: { display: "block" }
4826
- }, A(t.validationMessage || "Looks good!"), 9, ai)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
4829
+ }, A(t.validationMessage || "Looks good!"), 9, ii)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
4827
4830
  key: 1,
4828
4831
  id: y.value,
4829
4832
  class: "invalid-feedback",
4833
+ role: "alert",
4830
4834
  style: { display: "block" }
4831
- }, A(t.validationMessage || "Please provide a valid value."), 9, oi)) : i("", !0)], 64)) : i("", !0)
4835
+ }, A(t.validationMessage || "Please provide a valid value."), 9, ai)) : i("", !0)], 64)) : i("", !0)
4832
4836
  ], 2));
4833
4837
  }
4834
- }), ci = ["for"], li = {
4838
+ }), si = ["for"], ci = {
4835
4839
  key: 0,
4836
4840
  class: "text-danger"
4837
- }, ui = ["disabled"], di = [
4841
+ }, li = ["disabled"], ui = [
4838
4842
  "id",
4839
4843
  "value",
4840
4844
  "disabled",
@@ -4845,7 +4849,7 @@ var er = { class: "vibe-chart" }, tr = {
4845
4849
  "step",
4846
4850
  "aria-invalid",
4847
4851
  "aria-describedby"
4848
- ], fi = ["disabled"], pi = ["id"], mi = ["id"], hi = ["id"], gi = /*#__PURE__*/ W(/* @__PURE__ */ c({
4852
+ ], di = ["disabled"], fi = ["id"], pi = ["id"], mi = ["id"], hi = /*#__PURE__*/ G(/* @__PURE__ */ c({
4849
4853
  __name: "VibeFormSpinbutton",
4850
4854
  props: /*@__PURE__*/ d({
4851
4855
  id: {
@@ -4929,7 +4933,7 @@ var er = { class: "vibe-chart" }, tr = {
4929
4933
  "decrement"
4930
4934
  ], ["update:modelValue"]),
4931
4935
  setup(t, { emit: r }) {
4932
- let c = M(t, "modelValue"), l = t, d = r, f = u(K, null), p = f?.consumeId(), h = q("spinbutton"), g = n(() => l.id || p || h), _ = n(() => !!l.label && !f?.hasLabel.value), v = n(() => !!l.validationState && !f?.hasValidation.value), y = n(() => !!l.helpText && !f?.hasHelp.value), b = n(() => {
4936
+ let c = M(t, "modelValue"), l = t, d = r, f = u(q, null), p = f?.consumeId(), h = J("spinbutton"), g = n(() => l.id || p || h), _ = n(() => !!l.label && !f?.hasLabel.value), v = n(() => !!l.validationState && !f?.hasValidation.value), y = n(() => !!l.helpText && !f?.hasHelp.value), b = n(() => {
4933
4937
  let e = ["form-control"];
4934
4938
  return l.size && e.push(`form-control-${l.size}`), l.validationState === "valid" && e.push("is-valid"), l.validationState === "invalid" && e.push("is-invalid"), e.join(" ");
4935
4939
  }), S = n(() => {
@@ -4970,7 +4974,7 @@ var er = { class: "vibe-chart" }, tr = {
4970
4974
  key: 0,
4971
4975
  for: g.value,
4972
4976
  class: "form-label"
4973
- }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", li, "*")) : i("", !0)], 8, ci)) : i("", !0),
4977
+ }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", ci, "*")) : i("", !0)], 8, si)) : i("", !0),
4974
4978
  o("div", { class: m(S.value) }, [
4975
4979
  o("button", {
4976
4980
  class: "btn btn-outline-secondary",
@@ -4978,7 +4982,7 @@ var er = { class: "vibe-chart" }, tr = {
4978
4982
  disabled: !w.value,
4979
4983
  onClick: z,
4980
4984
  "aria-label": "Decrement"
4981
- }, [...r[0] ||= [o("span", { "aria-hidden": "true" }, "−", -1)]], 8, ui),
4985
+ }, [...r[0] ||= [o("span", { "aria-hidden": "true" }, "−", -1)]], 8, li),
4982
4986
  o("input", {
4983
4987
  id: g.value,
4984
4988
  type: "number",
@@ -4996,37 +5000,38 @@ var er = { class: "vibe-chart" }, tr = {
4996
5000
  onChange: k,
4997
5001
  onBlur: j,
4998
5002
  onFocus: N
4999
- }, null, 42, di),
5003
+ }, null, 42, ui),
5000
5004
  o("button", {
5001
5005
  class: "btn btn-outline-secondary",
5002
5006
  type: "button",
5003
5007
  disabled: !E.value,
5004
5008
  onClick: R,
5005
5009
  "aria-label": "Increment"
5006
- }, [...r[1] ||= [o("span", { "aria-hidden": "true" }, "+", -1)]], 8, fi)
5010
+ }, [...r[1] ||= [o("span", { "aria-hidden": "true" }, "+", -1)]], 8, di)
5007
5011
  ], 2),
5008
5012
  y.value ? (x(), a("div", {
5009
5013
  key: 1,
5010
5014
  id: `${g.value}-help`,
5011
5015
  class: "form-text"
5012
- }, A(t.helpText), 9, pi)) : i("", !0),
5016
+ }, A(t.helpText), 9, fi)) : i("", !0),
5013
5017
  v.value ? (x(), a(e, { key: 2 }, [t.validationState === "valid" ? (x(), a("div", {
5014
5018
  key: 0,
5015
5019
  id: `${g.value}-feedback`,
5016
5020
  class: "valid-feedback",
5017
5021
  style: { display: "block" }
5018
- }, A(t.validationMessage || "Looks good!"), 9, mi)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
5022
+ }, A(t.validationMessage || "Looks good!"), 9, pi)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
5019
5023
  key: 1,
5020
5024
  id: `${g.value}-feedback`,
5021
5025
  class: "invalid-feedback",
5026
+ role: "alert",
5022
5027
  style: { display: "block" }
5023
- }, A(t.validationMessage || "Please provide a valid value."), 9, hi)) : i("", !0)], 64)) : i("", !0)
5028
+ }, A(t.validationMessage || "Please provide a valid value."), 9, mi)) : i("", !0)], 64)) : i("", !0)
5024
5029
  ], 2));
5025
5030
  }
5026
- }), [["__scopeId", "data-v-9dd7f0b5"]]), _i = ["for"], vi = {
5031
+ }), [["__scopeId", "data-v-248b16a9"]]), gi = ["for"], _i = {
5027
5032
  key: 0,
5028
5033
  class: "text-danger"
5029
- }, yi = [
5034
+ }, vi = [
5030
5035
  "id",
5031
5036
  "type",
5032
5037
  "value",
@@ -5037,7 +5042,7 @@ var er = { class: "vibe-chart" }, tr = {
5037
5042
  "max",
5038
5043
  "aria-invalid",
5039
5044
  "aria-describedby"
5040
- ], bi = ["id"], xi = ["id"], Si = ["id"], Ci = /* @__PURE__ */ c({
5045
+ ], yi = ["id"], bi = ["id"], xi = ["id"], Si = /* @__PURE__ */ c({
5041
5046
  __name: "VibeFormDatepicker",
5042
5047
  props: /*@__PURE__*/ d({
5043
5048
  id: {
@@ -5111,7 +5116,7 @@ var er = { class: "vibe-chart" }, tr = {
5111
5116
  "change"
5112
5117
  ], ["update:modelValue"]),
5113
5118
  setup(t, { emit: r }) {
5114
- let c = M(t, "modelValue"), l = t, d = r, f = u(K, null), p = f?.consumeId(), h = q("datepicker"), g = n(() => l.id || p || h), _ = n(() => `${g.value}-help`), v = n(() => `${g.value}-feedback`), y = n(() => !!l.label && !f?.hasLabel.value), b = n(() => !!l.validationState && !f?.hasValidation.value), S = n(() => !!l.helpText && !f?.hasHelp.value), C = n(() => {
5119
+ let c = M(t, "modelValue"), l = t, d = r, f = u(q, null), p = f?.consumeId(), h = J("datepicker"), g = n(() => l.id || p || h), _ = n(() => `${g.value}-help`), v = n(() => `${g.value}-feedback`), y = n(() => !!l.label && !f?.hasLabel.value), b = n(() => !!l.validationState && !f?.hasValidation.value), S = n(() => !!l.helpText && !f?.hasHelp.value), C = n(() => {
5115
5120
  let e = ["form-control"];
5116
5121
  return l.size && e.push(`form-control-${l.size}`), l.validationState === "valid" && e.push("is-valid"), l.validationState === "invalid" && e.push("is-invalid"), e.join(" ");
5117
5122
  }), w = (e) => {
@@ -5128,7 +5133,7 @@ var er = { class: "vibe-chart" }, tr = {
5128
5133
  key: 0,
5129
5134
  for: g.value,
5130
5135
  class: "form-label"
5131
- }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", vi, "*")) : i("", !0)], 8, _i)) : i("", !0),
5136
+ }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", _i, "*")) : i("", !0)], 8, gi)) : i("", !0),
5132
5137
  o("input", {
5133
5138
  id: g.value,
5134
5139
  type: t.type,
@@ -5145,34 +5150,35 @@ var er = { class: "vibe-chart" }, tr = {
5145
5150
  onChange: T,
5146
5151
  onBlur: E,
5147
5152
  onFocus: D
5148
- }, null, 42, yi),
5153
+ }, null, 42, vi),
5149
5154
  S.value ? (x(), a("div", {
5150
5155
  key: 1,
5151
5156
  id: _.value,
5152
5157
  class: "form-text"
5153
- }, A(t.helpText), 9, bi)) : i("", !0),
5158
+ }, A(t.helpText), 9, yi)) : i("", !0),
5154
5159
  b.value ? (x(), a(e, { key: 2 }, [t.validationState === "valid" ? (x(), a("div", {
5155
5160
  key: 0,
5156
5161
  id: v.value,
5157
5162
  class: "valid-feedback",
5158
5163
  style: { display: "block" }
5159
- }, A(t.validationMessage || "Looks good!"), 9, xi)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
5164
+ }, A(t.validationMessage || "Looks good!"), 9, bi)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
5160
5165
  key: 1,
5161
5166
  id: v.value,
5162
5167
  class: "invalid-feedback",
5168
+ role: "alert",
5163
5169
  style: { display: "block" }
5164
- }, A(t.validationMessage || "Please provide a valid date."), 9, Si)) : i("", !0)], 64)) : i("", !0)
5170
+ }, A(t.validationMessage || "Please provide a valid date."), 9, xi)) : i("", !0)], 64)) : i("", !0)
5165
5171
  ], 2));
5166
5172
  }
5167
- }), wi = { class: "vibe-file-input" }, Ti = ["for"], Ei = { class: "mb-0" }, Di = [
5173
+ }), Ci = { class: "vibe-file-input" }, wi = ["for"], Ti = { class: "mb-0" }, Ei = [
5168
5174
  "id",
5169
5175
  "multiple",
5170
5176
  "accept",
5171
- "disabled"
5172
- ], Oi = {
5173
- key: 2,
5174
- class: "form-text"
5175
- }, ki = /*#__PURE__*/ W(/* @__PURE__ */ c({
5177
+ "disabled",
5178
+ "aria-invalid",
5179
+ "aria-describedby"
5180
+ ], Di = ["id"], Oi = ["id"], ki = ["id"], Ai = /*#__PURE__*/ G(/* @__PURE__ */ c({
5181
+ inheritAttrs: !1,
5176
5182
  __name: "VibeFileInput",
5177
5183
  props: {
5178
5184
  modelValue: {
@@ -5211,6 +5217,14 @@ var er = { class: "vibe-chart" }, tr = {
5211
5217
  type: String,
5212
5218
  default: void 0
5213
5219
  },
5220
+ validationState: {
5221
+ type: String,
5222
+ default: null
5223
+ },
5224
+ validationMessage: {
5225
+ type: String,
5226
+ default: void 0
5227
+ },
5214
5228
  helpText: {
5215
5229
  type: String,
5216
5230
  default: void 0
@@ -5225,11 +5239,14 @@ var er = { class: "vibe-chart" }, tr = {
5225
5239
  "change",
5226
5240
  "invalid"
5227
5241
  ],
5228
- setup(e, { expose: t, emit: r }) {
5229
- let s = e, c = r, l = q("file-input"), u = n(() => s.id || l), d = T(!1), f = T(null), p = n(() => {
5242
+ setup(t, { expose: r, emit: s }) {
5243
+ let c = t, l = s, d = u(q, null), p = d?.consumeId(), h = J("file-input"), g = n(() => c.id || p || h), v = n(() => `${g.value}-help`), b = n(() => `${g.value}-feedback`), S = n(() => !!c.label && !d?.hasLabel.value), C = n(() => !!c.validationState && !d?.hasValidation.value), w = n(() => !!c.helpText && !d?.hasHelp.value), E = T(!1), O = T(null), k = n(() => {
5244
+ let e = [];
5245
+ return c.helpText && e.push(v.value), c.validationMessage && e.push(b.value), d?.helpId.value && e.push(d.helpId.value), d?.feedbackId.value && e.push(d.feedbackId.value), e.length ? [...new Set(e)].join(" ") : void 0;
5246
+ }), j = n(() => {
5230
5247
  let e = ["form-control"];
5231
- return s.size && e.push(`form-control-${s.size}`), e.join(" ");
5232
- }), g = (e, t) => {
5248
+ return c.size && e.push(`form-control-${c.size}`), c.validationState === "valid" && e.push("is-valid"), c.validationState === "invalid" && e.push("is-invalid"), e.join(" ");
5249
+ }), M = (e, t) => {
5233
5250
  let n = t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
5234
5251
  if (n.length === 0) return !0;
5235
5252
  let r = e.type.toLowerCase(), i = e.name.toLowerCase();
@@ -5246,14 +5263,14 @@ var er = { class: "vibe-chart" }, tr = {
5246
5263
  if (r === e) return !0;
5247
5264
  }
5248
5265
  return !1;
5249
- }, v = (e) => {
5266
+ }, N = (e) => {
5250
5267
  let t = [], n = [];
5251
5268
  for (let r of e) {
5252
- if (s.maxSize !== void 0 && r.size > s.maxSize) {
5269
+ if (c.maxSize !== void 0 && r.size > c.maxSize) {
5253
5270
  n.push(r);
5254
5271
  continue;
5255
5272
  }
5256
- if (s.accept && !g(r, s.accept)) {
5273
+ if (c.accept && !M(r, c.accept)) {
5257
5274
  n.push(r);
5258
5275
  continue;
5259
5276
  }
@@ -5263,78 +5280,96 @@ var er = { class: "vibe-chart" }, tr = {
5263
5280
  accepted: t,
5264
5281
  rejected: n
5265
5282
  };
5266
- }, b = (e) => {
5267
- let { accepted: t, rejected: n } = v(e);
5268
- c("update:modelValue", t), c("change", t), n.length > 0 && c("invalid", n);
5269
- }, S = (e) => {
5283
+ }, P = (e) => {
5284
+ let { accepted: t, rejected: n } = N(e);
5285
+ l("update:modelValue", t), l("change", t), n.length > 0 && l("invalid", n);
5286
+ }, F = (e) => {
5270
5287
  let t = e.target;
5271
- b(t.files ? Array.from(t.files) : []), t.value = "";
5272
- }, C = (e) => {
5273
- e.preventDefault(), w = 0, d.value = !1, !s.disabled && b(e.dataTransfer?.files ? Array.from(e.dataTransfer.files) : []);
5274
- }, w = 0, E = (e) => {
5275
- e.preventDefault(), s.disabled || (w++, d.value = !0);
5276
- }, O = (e) => {
5288
+ P(t.files ? Array.from(t.files) : []), t.value = "";
5289
+ }, I = (e) => {
5290
+ e.preventDefault(), L = 0, E.value = !1, !c.disabled && P(e.dataTransfer?.files ? Array.from(e.dataTransfer.files) : []);
5291
+ }, L = 0, R = (e) => {
5292
+ e.preventDefault(), c.disabled || (L++, E.value = !0);
5293
+ }, z = (e) => {
5277
5294
  e.preventDefault();
5278
- }, k = (e) => {
5279
- e.preventDefault(), w = Math.max(0, w - 1), w === 0 && (d.value = !1);
5280
- }, j = () => {
5281
- s.disabled || f.value?.click();
5295
+ }, B = (e) => {
5296
+ e.preventDefault(), L = Math.max(0, L - 1), L === 0 && (E.value = !1);
5297
+ }, V = () => {
5298
+ c.disabled || O.value?.click();
5282
5299
  };
5283
- t({ clearFiles: () => {
5284
- f.value && (f.value.value = ""), c("update:modelValue", []), c("change", []);
5300
+ r({ clearFiles: () => {
5301
+ O.value && (O.value.value = ""), l("update:modelValue", []), l("change", []);
5285
5302
  } });
5286
- let M = n(() => {
5303
+ let H = n(() => {
5287
5304
  let e = ["vibe-file-input-dropzone"];
5288
- return d.value && e.push("vibe-file-input-dropzone-active"), s.disabled && e.push("vibe-file-input-dropzone-disabled"), e.join(" ");
5289
- }), N = () => {
5290
- w = 0, d.value = !1;
5305
+ return E.value && e.push("vibe-file-input-dropzone-active"), c.disabled && e.push("vibe-file-input-dropzone-disabled"), c.validationState === "invalid" && e.push("vibe-file-input-dropzone-invalid"), e.join(" ");
5306
+ }), U = () => {
5307
+ L = 0, E.value = !1;
5291
5308
  };
5292
5309
  return y(() => {
5293
- typeof document > "u" || (document.addEventListener("dragend", N), document.addEventListener("drop", N));
5310
+ typeof document > "u" || (document.addEventListener("dragend", U), document.addEventListener("drop", U));
5294
5311
  }), _(() => {
5295
- typeof document > "u" || (document.removeEventListener("dragend", N), document.removeEventListener("drop", N));
5296
- }), (t, n) => (x(), a("div", wi, [
5297
- e.label ? (x(), a("label", {
5312
+ typeof document > "u" || (document.removeEventListener("dragend", U), document.removeEventListener("drop", U));
5313
+ }), (n, r) => (x(), a("div", Ci, [
5314
+ S.value ? (x(), a("label", {
5298
5315
  key: 0,
5299
- for: u.value,
5316
+ for: g.value,
5300
5317
  class: "form-label"
5301
- }, A(e.label), 9, Ti)) : i("", !0),
5302
- e.dragDrop ? (x(), a("div", {
5318
+ }, A(t.label), 9, wi)) : i("", !0),
5319
+ t.dragDrop ? (x(), a("div", {
5303
5320
  key: 1,
5304
- class: m(M.value),
5305
- onDrop: C,
5306
- onDragenter: E,
5307
- onDragover: O,
5308
- onDragleave: k,
5309
- onClick: j
5310
- }, [D(t.$slots, "dropzone", {}, () => [o("p", Ei, A(e.dropzoneText), 1)], !0)], 34)) : i("", !0),
5311
- o("input", {
5312
- id: u.value,
5321
+ class: m(H.value),
5322
+ onDrop: I,
5323
+ onDragenter: R,
5324
+ onDragover: z,
5325
+ onDragleave: B,
5326
+ onClick: V
5327
+ }, [D(n.$slots, "dropzone", {}, () => [o("p", Ti, A(t.dropzoneText), 1)], !0)], 34)) : i("", !0),
5328
+ o("input", f(n.$attrs, {
5329
+ id: g.value,
5313
5330
  ref_key: "inputRef",
5314
- ref: f,
5331
+ ref: O,
5315
5332
  type: "file",
5316
- class: m(e.dragDrop ? "" : p.value),
5317
- multiple: e.multiple,
5318
- accept: e.accept,
5319
- disabled: e.disabled,
5320
- style: h(e.dragDrop ? "display: none" : void 0),
5321
- onChange: S
5322
- }, null, 46, Di),
5323
- e.helpText ? (x(), a("div", Oi, A(e.helpText), 1)) : i("", !0)
5333
+ class: t.dragDrop ? "" : j.value,
5334
+ multiple: t.multiple,
5335
+ accept: t.accept,
5336
+ disabled: t.disabled,
5337
+ style: t.dragDrop ? "display: none" : void 0,
5338
+ "aria-invalid": t.validationState === "invalid",
5339
+ "aria-describedby": k.value,
5340
+ onChange: F
5341
+ }), null, 16, Ei),
5342
+ w.value ? (x(), a("div", {
5343
+ key: 2,
5344
+ id: v.value,
5345
+ class: "form-text"
5346
+ }, A(t.helpText), 9, Di)) : i("", !0),
5347
+ C.value ? (x(), a(e, { key: 3 }, [t.validationState === "valid" ? (x(), a("div", {
5348
+ key: 0,
5349
+ id: b.value,
5350
+ class: "valid-feedback",
5351
+ style: { display: "block" }
5352
+ }, A(t.validationMessage || "Looks good!"), 9, Oi)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
5353
+ key: 1,
5354
+ id: b.value,
5355
+ class: "invalid-feedback",
5356
+ role: "alert",
5357
+ style: { display: "block" }
5358
+ }, A(t.validationMessage || "Please provide a valid file."), 9, ki)) : i("", !0)], 64)) : i("", !0)
5324
5359
  ]));
5325
5360
  }
5326
- }), [["__scopeId", "data-v-d6447a0f"]]), Ai = [
5361
+ }), [["__scopeId", "data-v-38c97d93"]]), ji = [
5327
5362
  "aria-label",
5328
5363
  "aria-valuemin",
5329
5364
  "aria-valuemax",
5330
5365
  "aria-valuenow",
5331
5366
  "aria-disabled"
5332
- ], ji = [
5367
+ ], Mi = [
5333
5368
  "aria-valuemin",
5334
5369
  "aria-valuemax",
5335
5370
  "aria-valuenow",
5336
5371
  "aria-disabled"
5337
- ], Mi = /*#__PURE__*/ W(/* @__PURE__ */ c({
5372
+ ], Ni = /*#__PURE__*/ G(/* @__PURE__ */ c({
5338
5373
  __name: "VibeSlider",
5339
5374
  props: {
5340
5375
  modelValue: {
@@ -5469,7 +5504,7 @@ var er = { class: "vibe-chart" }, tr = {
5469
5504
  style: h(k.value),
5470
5505
  onKeydown: L,
5471
5506
  onPointerdown: z
5472
- }, null, 44, Ai),
5507
+ }, null, 44, ji),
5473
5508
  e.range ? (x(), a("div", {
5474
5509
  key: 0,
5475
5510
  class: "vibe-slider-handle",
@@ -5483,18 +5518,18 @@ var er = { class: "vibe-chart" }, tr = {
5483
5518
  style: h(A.value),
5484
5519
  onKeydown: R,
5485
5520
  onPointerdown: B
5486
- }, null, 44, ji)) : i("", !0)
5521
+ }, null, 44, Mi)) : i("", !0)
5487
5522
  ], 544)], 2));
5488
5523
  }
5489
- }), [["__scopeId", "data-v-58d4508c"]]), Ni = { class: "vibe-stepper-header" }, Pi = [
5524
+ }), [["__scopeId", "data-v-58d4508c"]]), Pi = { class: "vibe-stepper-header" }, Fi = [
5490
5525
  "tabindex",
5491
5526
  "aria-disabled",
5492
5527
  "onClick",
5493
5528
  "onKeydown"
5494
- ], Fi = { class: "vibe-stepper-marker" }, Ii = { class: "vibe-stepper-label" }, Li = {
5529
+ ], Ii = { class: "vibe-stepper-marker" }, Li = { class: "vibe-stepper-label" }, Ri = {
5495
5530
  key: 0,
5496
5531
  class: "vibe-stepper-description"
5497
- }, Ri = { class: "vibe-stepper-body" }, zi = { class: "vibe-stepper-actions" }, Bi = ["disabled"], Vi = /*#__PURE__*/ W(/* @__PURE__ */ c({
5532
+ }, zi = { class: "vibe-stepper-body" }, Bi = { class: "vibe-stepper-actions" }, Vi = ["disabled"], Hi = /*#__PURE__*/ G(/* @__PURE__ */ c({
5498
5533
  __name: "VibeStepper",
5499
5534
  props: {
5500
5535
  modelValue: {
@@ -5599,26 +5634,26 @@ var er = { class: "vibe-chart" }, tr = {
5599
5634
  return c.steps[e];
5600
5635
  });
5601
5636
  return (n, r) => (x(), a("div", { class: m(u.value) }, [
5602
- o("ol", Ni, [(x(!0), a(e, null, E(t.steps, (e, r) => (x(), a("li", {
5637
+ o("ol", Pi, [(x(!0), a(e, null, E(t.steps, (e, r) => (x(), a("li", {
5603
5638
  key: e.label ?? r,
5604
5639
  class: m(g(r)),
5605
5640
  tabindex: y(r) || r === t.modelValue ? 0 : -1,
5606
5641
  "aria-disabled": y(r) || r === t.modelValue ? void 0 : "true",
5607
5642
  onClick: (e) => w(r),
5608
5643
  onKeydown: [B(H((e) => w(r), ["prevent"]), ["enter"]), B(H((e) => w(r), ["prevent"]), ["space"])]
5609
- }, [o("span", Fi, [D(n.$slots, "marker", {
5644
+ }, [o("span", Ii, [D(n.$slots, "marker", {
5610
5645
  index: r,
5611
5646
  step: e,
5612
5647
  active: r === t.modelValue
5613
- }, () => [s(A(r + 1), 1)], !0)]), o("span", Ii, [D(n.$slots, "label", {
5648
+ }, () => [s(A(r + 1), 1)], !0)]), o("span", Li, [D(n.$slots, "label", {
5614
5649
  index: r,
5615
5650
  step: e
5616
- }, () => [s(A(e.label), 1)], !0), e.description ? (x(), a("small", Li, A(e.description), 1)) : i("", !0)])], 42, Pi))), 128))]),
5617
- o("div", Ri, [D(n.$slots, "step", {
5651
+ }, () => [s(A(e.label), 1)], !0), e.description ? (x(), a("small", Ri, A(e.description), 1)) : i("", !0)])], 42, Fi))), 128))]),
5652
+ o("div", zi, [D(n.$slots, "step", {
5618
5653
  index: t.modelValue,
5619
5654
  step: O.value
5620
5655
  }, void 0, !0)]),
5621
- o("div", zi, [D(n.$slots, "actions", {
5656
+ o("div", Bi, [D(n.$slots, "actions", {
5622
5657
  next: S,
5623
5658
  prev: C,
5624
5659
  isFirst: h.value,
@@ -5629,7 +5664,7 @@ var er = { class: "vibe-chart" }, tr = {
5629
5664
  disabled: h.value,
5630
5665
  "data-stepper-prev": "",
5631
5666
  onClick: C
5632
- }, A(t.prevText), 9, Bi), o("button", {
5667
+ }, A(t.prevText), 9, Vi), o("button", {
5633
5668
  type: "button",
5634
5669
  class: "btn btn-primary",
5635
5670
  "data-stepper-next": "",
@@ -5637,7 +5672,7 @@ var er = { class: "vibe-chart" }, tr = {
5637
5672
  }, A(p.value ? t.finishText : t.nextText), 1)], !0)])
5638
5673
  ], 2));
5639
5674
  }
5640
- }), [["__scopeId", "data-v-d9646674"]]), Hi = ["for"], Ui = [
5675
+ }), [["__scopeId", "data-v-d9646674"]]), Ui = ["for"], Wi = [
5641
5676
  "id",
5642
5677
  "value",
5643
5678
  "placeholder",
@@ -5645,15 +5680,15 @@ var er = { class: "vibe-chart" }, tr = {
5645
5680
  "aria-expanded",
5646
5681
  "aria-controls",
5647
5682
  "aria-activedescendant"
5648
- ], Wi = ["id"], Gi = [
5683
+ ], Gi = ["id"], Ki = [
5649
5684
  "id",
5650
5685
  "aria-selected",
5651
5686
  "onMouseenter",
5652
5687
  "onClick"
5653
- ], Ki = {
5688
+ ], qi = {
5654
5689
  key: 2,
5655
5690
  class: "vibe-autocomplete-empty"
5656
- }, qi = /*#__PURE__*/ W(/* @__PURE__ */ c({
5691
+ }, Ji = /*#__PURE__*/ G(/* @__PURE__ */ c({
5657
5692
  __name: "VibeAutocomplete",
5658
5693
  props: {
5659
5694
  modelValue: {
@@ -5699,7 +5734,7 @@ var er = { class: "vibe-chart" }, tr = {
5699
5734
  },
5700
5735
  emits: ["update:modelValue", "select"],
5701
5736
  setup(t, { emit: r }) {
5702
- let c = t, l = r, u = q("autocomplete"), d = n(() => c.id || u), f = n(() => `${d.value}-listbox`), p = T(c.modelValue), h = T([]), g = T(-1), v = T(!1), y = T(null), b = T(null), S = 0;
5737
+ let c = t, l = r, u = J("autocomplete"), d = n(() => c.id || u), f = n(() => `${d.value}-listbox`), p = T(c.modelValue), h = T([]), g = T(-1), v = T(!1), y = T(null), b = T(null), S = 0;
5703
5738
  I(() => c.modelValue, (e) => {
5704
5739
  e !== p.value && (p.value = e);
5705
5740
  });
@@ -5776,7 +5811,7 @@ var er = { class: "vibe-chart" }, tr = {
5776
5811
  }), _(() => {
5777
5812
  M = !0, P(), y.value !== null && clearTimeout(y.value), typeof document < "u" && document.removeEventListener("mousedown", H);
5778
5813
  });
5779
- let ee = n(() => v.value && p.value.length >= c.minChars && h.value.length === 0);
5814
+ let U = n(() => v.value && p.value.length >= c.minChars && h.value.length === 0);
5780
5815
  return (n, r) => (x(), a("div", {
5781
5816
  class: "vibe-autocomplete",
5782
5817
  ref_key: "rootRef",
@@ -5786,7 +5821,7 @@ var er = { class: "vibe-chart" }, tr = {
5786
5821
  key: 0,
5787
5822
  for: d.value,
5788
5823
  class: "form-label"
5789
- }, A(t.label), 9, Hi)) : i("", !0),
5824
+ }, A(t.label), 9, Ui)) : i("", !0),
5790
5825
  o("input", {
5791
5826
  id: d.value,
5792
5827
  class: "form-control",
@@ -5803,7 +5838,7 @@ var er = { class: "vibe-chart" }, tr = {
5803
5838
  onInput: L,
5804
5839
  onFocus: R,
5805
5840
  onKeydown: V
5806
- }, null, 40, Ui),
5841
+ }, null, 40, Wi),
5807
5842
  v.value && h.value.length > 0 ? (x(), a("ul", {
5808
5843
  key: 1,
5809
5844
  id: f.value,
@@ -5821,10 +5856,10 @@ var er = { class: "vibe-chart" }, tr = {
5821
5856
  item: e,
5822
5857
  index: t,
5823
5858
  label: w(e)
5824
- }, () => [s(A(w(e)), 1)], !0)], 42, Gi))), 128))], 8, Wi)) : ee.value ? (x(), a("div", Ki, [D(n.$slots, "empty", {}, () => [r[0] ||= s("No results", -1)], !0)])) : i("", !0)
5859
+ }, () => [s(A(w(e)), 1)], !0)], 42, Ki))), 128))], 8, Gi)) : U.value ? (x(), a("div", qi, [D(n.$slots, "empty", {}, () => [r[0] ||= s("No results", -1)], !0)])) : i("", !0)
5825
5860
  ], 512));
5826
5861
  }
5827
- }), [["__scopeId", "data-v-34f733e3"]]), Ji = /*#__PURE__*/ W(/* @__PURE__ */ c({
5862
+ }), [["__scopeId", "data-v-34f733e3"]]), Yi = /*#__PURE__*/ G(/* @__PURE__ */ c({
5828
5863
  __name: "VibeSortable",
5829
5864
  props: {
5830
5865
  modelValue: {
@@ -5903,24 +5938,24 @@ var er = { class: "vibe-chart" }, tr = {
5903
5938
  _: 3
5904
5939
  }));
5905
5940
  }
5906
- }), [["__scopeId", "data-v-0d48df5a"]]), J = {
5941
+ }), [["__scopeId", "data-v-0d48df5a"]]), Y = {
5907
5942
  payload: void 0,
5908
5943
  group: "",
5909
5944
  active: !1
5910
- }, Yi = !1, Xi = () => {
5911
- J.payload = void 0, J.group = "", J.active = !1, Qi();
5912
- }, Zi = () => {
5913
- Yi || typeof document > "u" || (Yi = !0, document.addEventListener("dragend", Xi), document.addEventListener("drop", Xi));
5945
+ }, Xi = !1, Zi = () => {
5946
+ Y.payload = void 0, Y.group = "", Y.active = !1, $i();
5914
5947
  }, Qi = () => {
5915
- !Yi || typeof document > "u" || (Yi = !1, document.removeEventListener("dragend", Xi), document.removeEventListener("drop", Xi));
5916
- }, $i = (e, t) => {
5917
- typeof window > "u" || (J.payload = e, J.group = t, J.active = !0, Zi());
5918
- }, ea = () => {
5919
- typeof window > "u" || (J.payload = void 0, J.group = "", J.active = !1, Qi());
5920
- }, ta = () => J.active ? {
5921
- payload: J.payload,
5922
- group: J.group
5923
- } : null, na = /*#__PURE__*/ W(/* @__PURE__ */ c({
5948
+ Xi || typeof document > "u" || (Xi = !0, document.addEventListener("dragend", Zi), document.addEventListener("drop", Zi));
5949
+ }, $i = () => {
5950
+ !Xi || typeof document > "u" || (Xi = !1, document.removeEventListener("dragend", Zi), document.removeEventListener("drop", Zi));
5951
+ }, ea = (e, t) => {
5952
+ typeof window > "u" || (Y.payload = e, Y.group = t, Y.active = !0, Qi());
5953
+ }, ta = () => {
5954
+ typeof window > "u" || (Y.payload = void 0, Y.group = "", Y.active = !1, $i());
5955
+ }, na = () => Y.active ? {
5956
+ payload: Y.payload,
5957
+ group: Y.group
5958
+ } : null, ra = /*#__PURE__*/ G(/* @__PURE__ */ c({
5924
5959
  __name: "VibeDraggable",
5925
5960
  props: {
5926
5961
  payload: {
@@ -5947,13 +5982,13 @@ var er = { class: "vibe-chart" }, tr = {
5947
5982
  e.preventDefault();
5948
5983
  return;
5949
5984
  }
5950
- a.value = !0, $i(n.payload, n.group), e.dataTransfer && (e.dataTransfer.effectAllowed = "move"), i("dragstart", {
5985
+ a.value = !0, ea(n.payload, n.group), e.dataTransfer && (e.dataTransfer.effectAllowed = "move"), i("dragstart", {
5951
5986
  payload: n.payload,
5952
5987
  group: n.group,
5953
5988
  event: e
5954
5989
  });
5955
5990
  }, s = (e) => {
5956
- a.value = !1, ea(), i("dragend", {
5991
+ a.value = !1, ta(), i("dragend", {
5957
5992
  payload: n.payload,
5958
5993
  group: n.group,
5959
5994
  event: e
@@ -5978,7 +6013,7 @@ var er = { class: "vibe-chart" }, tr = {
5978
6013
  "data-vibe-group"
5979
6014
  ]));
5980
6015
  }
5981
- }), [["__scopeId", "data-v-39b73254"]]), ra = /*#__PURE__*/ W(/* @__PURE__ */ c({
6016
+ }), [["__scopeId", "data-v-39b73254"]]), ia = /*#__PURE__*/ G(/* @__PURE__ */ c({
5982
6017
  __name: "VibeDroppable",
5983
6018
  props: {
5984
6019
  group: {
@@ -6008,7 +6043,7 @@ var er = { class: "vibe-chart" }, tr = {
6008
6043
  I(() => n.disabled, (e) => {
6009
6044
  e && (o = 0, a.value = !1);
6010
6045
  });
6011
- let s = (e) => n.acceptGroups && n.acceptGroups.length > 0 ? n.acceptGroups.includes(e) : e === n.group, c = () => ta(), l = (e) => {
6046
+ let s = (e) => n.acceptGroups && n.acceptGroups.length > 0 ? n.acceptGroups.includes(e) : e === n.group, c = () => na(), l = (e) => {
6012
6047
  if (n.disabled) return;
6013
6048
  let t = c();
6014
6049
  t && s(t.group) && (o += 1, a.value = !0, i("dragenter", e));
@@ -6046,7 +6081,7 @@ var er = { class: "vibe-chart" }, tr = {
6046
6081
  _: 3
6047
6082
  }, 40, ["class", "data-vibe-group"]));
6048
6083
  }
6049
- }), [["__scopeId", "data-v-cb4f90ac"]]), ia = ["data-handle", "onPointerdown"], aa = /*#__PURE__*/ W(/* @__PURE__ */ c({
6084
+ }), [["__scopeId", "data-v-cb4f90ac"]]), aa = ["data-handle", "onPointerdown"], oa = /*#__PURE__*/ G(/* @__PURE__ */ c({
6050
6085
  __name: "VibeResizable",
6051
6086
  props: {
6052
6087
  handles: {
@@ -6160,19 +6195,19 @@ var er = { class: "vibe-chart" }, tr = {
6160
6195
  onPointerdown: j(O)[e],
6161
6196
  onPointermove: k,
6162
6197
  onPointerup: A
6163
- }, null, 42, ia))), 128))], 6));
6198
+ }, null, 42, aa))), 128))], 6));
6164
6199
  }
6165
- }), [["__scopeId", "data-v-6582c06b"]]), oa = ["for"], sa = [
6200
+ }), [["__scopeId", "data-v-6582c06b"]]), sa = ["for"], ca = [
6166
6201
  "id",
6167
6202
  "value",
6168
6203
  "placeholder",
6169
6204
  "disabled",
6170
6205
  "aria-expanded"
6171
- ], ca = ["aria-label"], la = { class: "vibe-datepicker-header" }, ua = { class: "vibe-datepicker-title" }, da = { class: "vibe-datepicker-weekdays" }, fa = { class: "vibe-datepicker-grid" }, pa = [
6206
+ ], la = ["aria-label"], ua = { class: "vibe-datepicker-header" }, da = { class: "vibe-datepicker-title" }, fa = { class: "vibe-datepicker-weekdays" }, pa = { class: "vibe-datepicker-grid" }, ma = [
6172
6207
  "data-iso",
6173
6208
  "disabled",
6174
6209
  "onClick"
6175
- ], ma = /*#__PURE__*/ W(/* @__PURE__ */ c({
6210
+ ], ha = /*#__PURE__*/ G(/* @__PURE__ */ c({
6176
6211
  __name: "VibeDatePicker",
6177
6212
  props: {
6178
6213
  modelValue: {
@@ -6230,7 +6265,7 @@ var er = { class: "vibe-chart" }, tr = {
6230
6265
  "close"
6231
6266
  ],
6232
6267
  setup(t, { expose: r, emit: s }) {
6233
- let c = t, l = s, u = q("datepicker"), d = n(() => c.id || u), f = (e) => String(e).padStart(2, "0"), h = (e) => `${e.getFullYear()}-${f(e.getMonth() + 1)}-${f(e.getDate())}`, g = /^\d{4}-\d{2}-\d{2}$/, v = (e) => {
6268
+ let c = t, l = s, u = J("datepicker"), d = n(() => c.id || u), f = (e) => String(e).padStart(2, "0"), h = (e) => `${e.getFullYear()}-${f(e.getMonth() + 1)}-${f(e.getDate())}`, g = /^\d{4}-\d{2}-\d{2}$/, v = (e) => {
6234
6269
  if (!g.test(e)) return /* @__PURE__ */ new Date();
6235
6270
  let [t, n, r] = e.split("-").map(Number);
6236
6271
  return new Date(t, n - 1, r);
@@ -6288,7 +6323,7 @@ var er = { class: "vibe-chart" }, tr = {
6288
6323
  C.value === 0 ? (C.value = 11, --S.value) : --C.value;
6289
6324
  }, H = () => {
6290
6325
  C.value === 11 ? (C.value = 0, S.value += 1) : C.value += 1;
6291
- }, ee = (e) => {
6326
+ }, U = (e) => {
6292
6327
  if (e.disabled) return;
6293
6328
  if (!c.range) {
6294
6329
  l("update:modelValue", e.iso), B();
@@ -6300,49 +6335,49 @@ var er = { class: "vibe-chart" }, tr = {
6300
6335
  return;
6301
6336
  }
6302
6337
  e.iso < t ? l("update:modelValue", [e.iso, t]) : (l("update:modelValue", [t, e.iso]), B());
6303
- }, te = (e) => {
6338
+ }, ee = (e) => {
6304
6339
  let t = ["vibe-datepicker-day"];
6305
6340
  return e.inMonth || t.push("vibe-datepicker-day-outside"), e.disabled && t.push("vibe-datepicker-day-disabled"), e.isToday && t.push("vibe-datepicker-day-today"), e.isSelected && t.push("vibe-datepicker-day-selected"), e.isFocused && t.push("vibe-datepicker-day-focused"), e.isInRange && t.push("vibe-datepicker-day-in-range"), e.isRangeStart && t.push("vibe-datepicker-day-range-start"), e.isRangeEnd && t.push("vibe-datepicker-day-range-end"), t.join(" ");
6306
- }, U = async (e) => {
6341
+ }, W = async (e) => {
6307
6342
  w.value = e;
6308
6343
  let t = v(e);
6309
6344
  (t.getFullYear() !== S.value || t.getMonth() !== C.value) && (S.value = t.getFullYear(), C.value = t.getMonth()), await p(), (O.value?.querySelector(`[data-iso="${e}"]`))?.focus();
6310
- }, W = async (e) => {
6345
+ }, G = async (e) => {
6311
6346
  let t = v(w.value || k.value || h(b()));
6312
- t.setDate(t.getDate() + e), await U(h(t));
6313
- }, ne = async (e) => {
6347
+ t.setDate(t.getDate() + e), await W(h(t));
6348
+ }, te = async (e) => {
6314
6349
  let t = v(w.value || k.value || h(b())), n = t.getMonth() + e, r = t.getFullYear() + Math.floor(n / 12), i = (n % 12 + 12) % 12, a = new Date(r, i + 1, 0).getDate();
6315
- t.setFullYear(r, i, Math.min(t.getDate(), a)), await U(h(t));
6316
- }, re = async (e) => {
6350
+ t.setFullYear(r, i, Math.min(t.getDate(), a)), await W(h(t));
6351
+ }, ne = async (e) => {
6317
6352
  switch (e.key) {
6318
6353
  case "ArrowRight":
6319
- e.preventDefault(), await W(1);
6354
+ e.preventDefault(), await G(1);
6320
6355
  break;
6321
6356
  case "ArrowLeft":
6322
- e.preventDefault(), await W(-1);
6357
+ e.preventDefault(), await G(-1);
6323
6358
  break;
6324
6359
  case "ArrowDown":
6325
- e.preventDefault(), await W(7);
6360
+ e.preventDefault(), await G(7);
6326
6361
  break;
6327
6362
  case "ArrowUp":
6328
- e.preventDefault(), await W(-7);
6363
+ e.preventDefault(), await G(-7);
6329
6364
  break;
6330
6365
  case "PageDown":
6331
- e.preventDefault(), await ne(1);
6366
+ e.preventDefault(), await te(1);
6332
6367
  break;
6333
6368
  case "PageUp":
6334
- e.preventDefault(), await ne(-1);
6369
+ e.preventDefault(), await te(-1);
6335
6370
  break;
6336
6371
  case "Home": {
6337
6372
  e.preventDefault();
6338
6373
  let t = v(w.value || k.value || h(b())), n = (t.getDay() - c.weekStart + 7) % 7;
6339
- t.setDate(t.getDate() - n), await U(h(t));
6374
+ t.setDate(t.getDate() - n), await W(h(t));
6340
6375
  break;
6341
6376
  }
6342
6377
  case "End": {
6343
6378
  e.preventDefault();
6344
6379
  let t = v(w.value || k.value || h(b())), n = (t.getDay() - c.weekStart + 7) % 7;
6345
- t.setDate(t.getDate() + (6 - n)), await U(h(t));
6380
+ t.setDate(t.getDate() + (6 - n)), await W(h(t));
6346
6381
  break;
6347
6382
  }
6348
6383
  case "Enter":
@@ -6351,22 +6386,22 @@ var er = { class: "vibe-chart" }, tr = {
6351
6386
  let t = w.value;
6352
6387
  if (!t) break;
6353
6388
  let n = P.value.find((e) => e.iso === t);
6354
- n && ee(n);
6389
+ n && U(n);
6355
6390
  break;
6356
6391
  }
6357
6392
  case "Escape":
6358
6393
  e.preventDefault(), B();
6359
6394
  break;
6360
6395
  }
6361
- }, ie = (e) => {
6396
+ }, re = (e) => {
6362
6397
  if (!y.value) return;
6363
6398
  let t = D.value;
6364
6399
  t && e.target instanceof Node && t.contains(e.target) || B();
6365
6400
  };
6366
6401
  return I(y, (e) => {
6367
- typeof document > "u" || (e ? (w.value = k.value || h(b()), document.addEventListener("mousedown", ie)) : (w.value = null, document.removeEventListener("mousedown", ie)));
6402
+ typeof document > "u" || (e ? (w.value = k.value || h(b()), document.addEventListener("mousedown", re)) : (w.value = null, document.removeEventListener("mousedown", re)));
6368
6403
  }), _(() => {
6369
- typeof document < "u" && document.removeEventListener("mousedown", ie);
6404
+ typeof document < "u" && document.removeEventListener("mousedown", re);
6370
6405
  }), r({
6371
6406
  open: () => {
6372
6407
  y.value || z();
@@ -6381,7 +6416,7 @@ var er = { class: "vibe-chart" }, tr = {
6381
6416
  key: 0,
6382
6417
  for: d.value,
6383
6418
  class: "form-label"
6384
- }, A(t.label), 9, oa)) : i("", !0),
6419
+ }, A(t.label), 9, sa)) : i("", !0),
6385
6420
  o("input", {
6386
6421
  id: d.value,
6387
6422
  type: "text",
@@ -6393,7 +6428,7 @@ var er = { class: "vibe-chart" }, tr = {
6393
6428
  "aria-haspopup": "dialog",
6394
6429
  "aria-expanded": y.value,
6395
6430
  onClick: z
6396
- }, null, 8, sa),
6431
+ }, null, 8, ca),
6397
6432
  y.value ? (x(), a("div", {
6398
6433
  key: 1,
6399
6434
  ref_key: "popoverRef",
@@ -6401,9 +6436,9 @@ var er = { class: "vibe-chart" }, tr = {
6401
6436
  class: "vibe-datepicker-popover",
6402
6437
  role: "dialog",
6403
6438
  "aria-label": t.label || "Date picker",
6404
- onKeydown: re
6439
+ onKeydown: ne
6405
6440
  }, [
6406
- o("div", la, [
6441
+ o("div", ua, [
6407
6442
  o("button", {
6408
6443
  type: "button",
6409
6444
  class: "vibe-datepicker-nav",
@@ -6411,7 +6446,7 @@ var er = { class: "vibe-chart" }, tr = {
6411
6446
  "data-prev-month": "",
6412
6447
  onClick: V
6413
6448
  }, "‹"),
6414
- o("span", ua, A(F.value), 1),
6449
+ o("span", da, A(F.value), 1),
6415
6450
  o("button", {
6416
6451
  type: "button",
6417
6452
  class: "vibe-datepicker-nav",
@@ -6420,32 +6455,32 @@ var er = { class: "vibe-chart" }, tr = {
6420
6455
  onClick: H
6421
6456
  }, "›")
6422
6457
  ]),
6423
- o("div", da, [(x(!0), a(e, null, E(L.value, (e) => (x(), a("span", {
6458
+ o("div", fa, [(x(!0), a(e, null, E(L.value, (e) => (x(), a("span", {
6424
6459
  key: e,
6425
6460
  class: "vibe-datepicker-weekday"
6426
6461
  }, A(e), 1))), 128))]),
6427
- o("div", fa, [(x(!0), a(e, null, E(P.value, (e) => (x(), a("button", {
6462
+ o("div", pa, [(x(!0), a(e, null, E(P.value, (e) => (x(), a("button", {
6428
6463
  key: e.iso,
6429
6464
  type: "button",
6430
- class: m(te(e)),
6465
+ class: m(ee(e)),
6431
6466
  "data-iso": e.iso,
6432
6467
  disabled: e.disabled,
6433
- onClick: (t) => ee(e)
6434
- }, A(e.day), 11, pa))), 128))])
6435
- ], 40, ca)) : i("", !0)
6468
+ onClick: (t) => U(e)
6469
+ }, A(e.day), 11, ma))), 128))])
6470
+ ], 40, la)) : i("", !0)
6436
6471
  ], 512));
6437
6472
  }
6438
- }), [["__scopeId", "data-v-0a5b8fa4"]]), ha = [
6473
+ }), [["__scopeId", "data-v-0a5b8fa4"]]), ga = [
6439
6474
  "id",
6440
6475
  "checked",
6441
6476
  "disabled",
6442
6477
  "required",
6443
6478
  "aria-invalid",
6444
6479
  "aria-describedby"
6445
- ], ga = ["for"], _a = {
6480
+ ], _a = ["for"], va = {
6446
6481
  key: 0,
6447
6482
  class: "text-danger"
6448
- }, va = ["id"], ya = ["id"], ba = ["id"], xa = /* @__PURE__ */ c({
6483
+ }, ya = ["id"], ba = ["id"], xa = ["id"], Sa = /* @__PURE__ */ c({
6449
6484
  __name: "VibeFormCheckbox",
6450
6485
  props: /*@__PURE__*/ d({
6451
6486
  value: {
@@ -6531,7 +6566,7 @@ var er = { class: "vibe-chart" }, tr = {
6531
6566
  "change"
6532
6567
  ], ["update:modelValue"]),
6533
6568
  setup(t, { emit: r }) {
6534
- let c = M(t, "modelValue"), l = t, d = r, f = u(K, null), p = f?.consumeId(), h = q("checkbox"), g = n(() => l.id || p || h), _ = n(() => `${g.value}-help`), v = n(() => `${g.value}-feedback`), b = n(() => !!l.label && !f?.hasLabel.value), S = n(() => !!l.validationState && !f?.hasValidation.value), C = n(() => !!l.helpText && !f?.hasHelp.value), w = n(() => {
6569
+ let c = M(t, "modelValue"), l = t, d = r, f = u(q, null), p = f?.consumeId(), h = J("checkbox"), g = n(() => l.id || p || h), _ = n(() => `${g.value}-help`), v = n(() => `${g.value}-feedback`), b = n(() => !!l.label && !f?.hasLabel.value), S = n(() => !!l.validationState && !f?.hasValidation.value), C = n(() => !!l.helpText && !f?.hasHelp.value), w = n(() => {
6535
6570
  let e = ["form-check"];
6536
6571
  return l.inline && e.push("form-check-inline"), l.reverse && e.push("form-check-reverse"), e.join(" ");
6537
6572
  }), E = n(() => {
@@ -6564,31 +6599,32 @@ var er = { class: "vibe-chart" }, tr = {
6564
6599
  onChange: O,
6565
6600
  onBlur: k,
6566
6601
  onFocus: j
6567
- }, null, 42, ha),
6602
+ }, null, 42, ga),
6568
6603
  b.value ? (x(), a("label", {
6569
6604
  key: 0,
6570
6605
  for: g.value,
6571
6606
  class: "form-check-label"
6572
- }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", _a, "*")) : i("", !0)], 8, ga)) : i("", !0),
6607
+ }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", va, "*")) : i("", !0)], 8, _a)) : i("", !0),
6573
6608
  C.value ? (x(), a("div", {
6574
6609
  key: 1,
6575
6610
  id: `${g.value}-help`,
6576
6611
  class: "form-text"
6577
- }, A(t.helpText), 9, va)) : i("", !0),
6612
+ }, A(t.helpText), 9, ya)) : i("", !0),
6578
6613
  S.value ? (x(), a(e, { key: 2 }, [t.validationState === "valid" ? (x(), a("div", {
6579
6614
  key: 0,
6580
6615
  id: `${g.value}-feedback`,
6581
6616
  class: "valid-feedback",
6582
6617
  style: { display: "block" }
6583
- }, A(t.validationMessage || "Looks good!"), 9, ya)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
6618
+ }, A(t.validationMessage || "Looks good!"), 9, ba)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
6584
6619
  key: 1,
6585
6620
  id: `${g.value}-feedback`,
6586
6621
  class: "invalid-feedback",
6622
+ role: "alert",
6587
6623
  style: { display: "block" }
6588
- }, A(t.validationMessage || "Please check this box."), 9, ba)) : i("", !0)], 64)) : i("", !0)
6624
+ }, A(t.validationMessage || "Please check this box."), 9, xa)) : i("", !0)], 64)) : i("", !0)
6589
6625
  ], 2));
6590
6626
  }
6591
- }), Sa = [
6627
+ }), Ca = [
6592
6628
  "id",
6593
6629
  "name",
6594
6630
  "value",
@@ -6597,10 +6633,10 @@ var er = { class: "vibe-chart" }, tr = {
6597
6633
  "required",
6598
6634
  "aria-invalid",
6599
6635
  "aria-describedby"
6600
- ], Ca = ["for"], wa = {
6636
+ ], wa = ["for"], Ta = {
6601
6637
  key: 0,
6602
6638
  class: "text-danger"
6603
- }, Ta = ["id"], Ea = ["id"], Da = ["id"], Oa = /* @__PURE__ */ c({
6639
+ }, Ea = ["id"], Da = ["id"], Oa = ["id"], ka = /* @__PURE__ */ c({
6604
6640
  __name: "VibeFormRadio",
6605
6641
  props: /*@__PURE__*/ d({
6606
6642
  value: {
@@ -6677,7 +6713,7 @@ var er = { class: "vibe-chart" }, tr = {
6677
6713
  "change"
6678
6714
  ], ["update:modelValue"]),
6679
6715
  setup(t, { emit: r }) {
6680
- let c = M(t, "modelValue"), l = t, d = r, f = u(K, null), p = f?.consumeId(), h = q("radio"), g = n(() => l.id || p || h);
6716
+ let c = M(t, "modelValue"), l = t, d = r, f = u(q, null), p = f?.consumeId(), h = J("radio"), g = n(() => l.id || p || h);
6681
6717
  n(() => `${g.value}-help`), n(() => `${g.value}-feedback`);
6682
6718
  let _ = n(() => !!l.label && !f?.hasLabel.value), v = n(() => !!l.validationState && !f?.hasValidation.value), y = n(() => !!l.helpText && !f?.hasHelp.value), b = n(() => {
6683
6719
  let e = ["form-check"];
@@ -6707,41 +6743,42 @@ var er = { class: "vibe-chart" }, tr = {
6707
6743
  onChange: w,
6708
6744
  onBlur: T,
6709
6745
  onFocus: E
6710
- }, null, 42, Sa),
6746
+ }, null, 42, Ca),
6711
6747
  _.value ? (x(), a("label", {
6712
6748
  key: 0,
6713
6749
  for: g.value,
6714
6750
  class: "form-check-label"
6715
- }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", wa, "*")) : i("", !0)], 8, Ca)) : i("", !0),
6751
+ }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", Ta, "*")) : i("", !0)], 8, wa)) : i("", !0),
6716
6752
  y.value ? (x(), a("div", {
6717
6753
  key: 1,
6718
6754
  id: `${g.value}-help`,
6719
6755
  class: "form-text"
6720
- }, A(t.helpText), 9, Ta)) : i("", !0),
6756
+ }, A(t.helpText), 9, Ea)) : i("", !0),
6721
6757
  v.value ? (x(), a(e, { key: 2 }, [t.validationState === "valid" ? (x(), a("div", {
6722
6758
  key: 0,
6723
6759
  id: `${g.value}-feedback`,
6724
6760
  class: "valid-feedback",
6725
6761
  style: { display: "block" }
6726
- }, A(t.validationMessage || "Looks good!"), 9, Ea)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
6762
+ }, A(t.validationMessage || "Looks good!"), 9, Da)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
6727
6763
  key: 1,
6728
6764
  id: `${g.value}-feedback`,
6729
6765
  class: "invalid-feedback",
6766
+ role: "alert",
6730
6767
  style: { display: "block" }
6731
- }, A(t.validationMessage || "Please select an option."), 9, Da)) : i("", !0)], 64)) : i("", !0)
6768
+ }, A(t.validationMessage || "Please select an option."), 9, Oa)) : i("", !0)], 64)) : i("", !0)
6732
6769
  ], 2));
6733
6770
  }
6734
- }), ka = [
6771
+ }), Aa = [
6735
6772
  "id",
6736
6773
  "checked",
6737
6774
  "disabled",
6738
6775
  "required",
6739
6776
  "aria-invalid",
6740
6777
  "aria-describedby"
6741
- ], Aa = ["for"], ja = {
6778
+ ], ja = ["for"], Ma = {
6742
6779
  key: 0,
6743
6780
  class: "text-danger"
6744
- }, Ma = ["id"], Na = ["id"], Pa = ["id"], Fa = /* @__PURE__ */ c({
6781
+ }, Na = ["id"], Pa = ["id"], Fa = ["id"], Ia = /* @__PURE__ */ c({
6745
6782
  __name: "VibeFormSwitch",
6746
6783
  props: /*@__PURE__*/ d({
6747
6784
  id: {
@@ -6798,7 +6835,7 @@ var er = { class: "vibe-chart" }, tr = {
6798
6835
  "change"
6799
6836
  ], ["update:modelValue"]),
6800
6837
  setup(t, { emit: r }) {
6801
- let c = M(t, "modelValue"), l = t, d = r, f = u(K, null), p = f?.consumeId(), h = q("switch"), g = n(() => l.id || p || h), _ = n(() => !!l.label && !f?.hasLabel.value), v = n(() => !!l.validationState && !f?.hasValidation.value), y = n(() => !!l.helpText && !f?.hasHelp.value), b = n(() => {
6838
+ let c = M(t, "modelValue"), l = t, d = r, f = u(q, null), p = f?.consumeId(), h = J("switch"), g = n(() => l.id || p || h), _ = n(() => !!l.label && !f?.hasLabel.value), v = n(() => !!l.validationState && !f?.hasValidation.value), y = n(() => !!l.helpText && !f?.hasHelp.value), b = n(() => {
6802
6839
  let e = ["form-check", "form-switch"];
6803
6840
  return l.inline && e.push("form-check-inline"), e.join(" ");
6804
6841
  }), S = n(() => {
@@ -6825,53 +6862,54 @@ var er = { class: "vibe-chart" }, tr = {
6825
6862
  onChange: C,
6826
6863
  onBlur: w,
6827
6864
  onFocus: T
6828
- }, null, 42, ka),
6865
+ }, null, 42, Aa),
6829
6866
  _.value ? (x(), a("label", {
6830
6867
  key: 0,
6831
6868
  for: g.value,
6832
6869
  class: "form-check-label"
6833
- }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", ja, "*")) : i("", !0)], 8, Aa)) : i("", !0),
6870
+ }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", Ma, "*")) : i("", !0)], 8, ja)) : i("", !0),
6834
6871
  y.value ? (x(), a("div", {
6835
6872
  key: 1,
6836
6873
  id: `${g.value}-help`,
6837
6874
  class: "form-text"
6838
- }, A(t.helpText), 9, Ma)) : i("", !0),
6875
+ }, A(t.helpText), 9, Na)) : i("", !0),
6839
6876
  v.value ? (x(), a(e, { key: 2 }, [t.validationState === "valid" ? (x(), a("div", {
6840
6877
  key: 0,
6841
6878
  id: `${g.value}-feedback`,
6842
6879
  class: "valid-feedback",
6843
6880
  style: { display: "block" }
6844
- }, A(t.validationMessage || "Looks good!"), 9, Na)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
6881
+ }, A(t.validationMessage || "Looks good!"), 9, Pa)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
6845
6882
  key: 1,
6846
6883
  id: `${g.value}-feedback`,
6847
6884
  class: "invalid-feedback",
6885
+ role: "alert",
6848
6886
  style: { display: "block" }
6849
- }, A(t.validationMessage || "Please toggle this switch."), 9, Pa)) : i("", !0)], 64)) : i("", !0)
6887
+ }, A(t.validationMessage || "Please toggle this switch."), 9, Fa)) : i("", !0)], 64)) : i("", !0)
6850
6888
  ], 2));
6851
6889
  }
6852
- }), Ia = ["for"], La = {
6890
+ }), La = ["for"], Ra = {
6853
6891
  key: 0,
6854
6892
  class: "text-danger ms-1",
6855
6893
  "aria-hidden": "true"
6856
- }, Ra = {
6894
+ }, za = {
6857
6895
  key: 1,
6858
6896
  class: "text-muted ms-1 small",
6859
6897
  "aria-hidden": "true"
6860
- }, za = {
6898
+ }, Ba = {
6861
6899
  key: 2,
6862
6900
  class: "visually-hidden"
6863
- }, Ba = ["id"], Va = ["id"], Ha = ["id"], Ua = ["for"], Wa = {
6901
+ }, Va = ["id"], Ha = ["id"], Ua = ["id"], Wa = ["for"], Ga = {
6864
6902
  key: 0,
6865
6903
  class: "text-danger ms-1",
6866
6904
  "aria-hidden": "true"
6867
- }, Ga = {
6905
+ }, Ka = {
6868
6906
  key: 1,
6869
6907
  class: "text-muted ms-1 small",
6870
6908
  "aria-hidden": "true"
6871
- }, Ka = {
6909
+ }, qa = {
6872
6910
  key: 2,
6873
6911
  class: "visually-hidden"
6874
- }, qa = ["id"], Ja = ["id"], Ya = ["id"], Xa = /* @__PURE__ */ c({
6912
+ }, Ja = ["id"], Ya = ["id"], Xa = ["id"], Za = /* @__PURE__ */ c({
6875
6913
  __name: "VibeFormGroup",
6876
6914
  props: {
6877
6915
  label: {
@@ -6916,8 +6954,8 @@ var er = { class: "vibe-chart" }, tr = {
6916
6954
  }
6917
6955
  },
6918
6956
  setup(t) {
6919
- let r = t, o = q("form-group"), c = n(() => r.labelFor || o), l = T(!1);
6920
- S(K, {
6957
+ let r = t, o = J("form-group"), c = n(() => r.labelFor || o), l = T(!1);
6958
+ S(q, {
6921
6959
  id: c,
6922
6960
  consumeId: () => l.value ? null : (l.value = !0, c.value),
6923
6961
  hasLabel: n(() => !!r.label),
@@ -6939,9 +6977,9 @@ var er = { class: "vibe-chart" }, tr = {
6939
6977
  class: m(d.value)
6940
6978
  }, [
6941
6979
  s(A(t.label) + " ", 1),
6942
- t.required ? (x(), a("span", La, "*")) : (x(), a("span", Ra, "(optional)")),
6943
- t.required ? (x(), a("span", za, "required")) : i("", !0)
6944
- ], 10, Ia)) : i("", !0), t.row && t.labelCols ? (x(), a("div", {
6980
+ t.required ? (x(), a("span", Ra, "*")) : (x(), a("span", za, "(optional)")),
6981
+ t.required ? (x(), a("span", Ba, "required")) : i("", !0)
6982
+ ], 10, La)) : i("", !0), t.row && t.labelCols ? (x(), a("div", {
6945
6983
  key: 1,
6946
6984
  class: m(f.value)
6947
6985
  }, [
@@ -6950,20 +6988,20 @@ var er = { class: "vibe-chart" }, tr = {
6950
6988
  key: 0,
6951
6989
  id: h.value,
6952
6990
  class: "form-text"
6953
- }, A(t.helpText), 9, Ba)) : i("", !0),
6991
+ }, A(t.helpText), 9, Va)) : i("", !0),
6954
6992
  t.validationState === "valid" ? (x(), a("div", {
6955
6993
  key: 1,
6956
6994
  id: p.value,
6957
6995
  class: "valid-feedback",
6958
6996
  style: { display: "block" }
6959
- }, A(t.validationMessage || "Looks good!"), 9, Va)) : i("", !0),
6997
+ }, A(t.validationMessage || "Looks good!"), 9, Ha)) : i("", !0),
6960
6998
  t.validationState === "invalid" ? (x(), a("div", {
6961
6999
  key: 2,
6962
7000
  id: p.value,
6963
7001
  class: "invalid-feedback",
6964
7002
  role: "alert",
6965
7003
  style: { display: "block" }
6966
- }, A(t.validationMessage || "Please provide a valid value."), 9, Ha)) : i("", !0)
7004
+ }, A(t.validationMessage || "Please provide a valid value."), 9, Ua)) : i("", !0)
6967
7005
  ], 2)) : (x(), a(e, { key: 2 }, [
6968
7006
  D(n.$slots, "default"),
6969
7007
  t.label && t.floating ? (x(), a("label", {
@@ -6972,35 +7010,35 @@ var er = { class: "vibe-chart" }, tr = {
6972
7010
  class: m(d.value)
6973
7011
  }, [
6974
7012
  s(A(t.label) + " ", 1),
6975
- t.required ? (x(), a("span", Wa, "*")) : (x(), a("span", Ga, "(optional)")),
6976
- t.required ? (x(), a("span", Ka, "required")) : i("", !0)
6977
- ], 10, Ua)) : i("", !0),
7013
+ t.required ? (x(), a("span", Ga, "*")) : (x(), a("span", Ka, "(optional)")),
7014
+ t.required ? (x(), a("span", qa, "required")) : i("", !0)
7015
+ ], 10, Wa)) : i("", !0),
6978
7016
  t.helpText ? (x(), a("div", {
6979
7017
  key: 1,
6980
7018
  id: h.value,
6981
7019
  class: "form-text"
6982
- }, A(t.helpText), 9, qa)) : i("", !0),
7020
+ }, A(t.helpText), 9, Ja)) : i("", !0),
6983
7021
  t.validationState === "valid" ? (x(), a("div", {
6984
7022
  key: 2,
6985
7023
  id: p.value,
6986
7024
  class: "valid-feedback",
6987
7025
  style: { display: "block" }
6988
- }, A(t.validationMessage || "Looks good!"), 9, Ja)) : i("", !0),
7026
+ }, A(t.validationMessage || "Looks good!"), 9, Ya)) : i("", !0),
6989
7027
  t.validationState === "invalid" ? (x(), a("div", {
6990
7028
  key: 3,
6991
7029
  id: p.value,
6992
7030
  class: "invalid-feedback",
6993
7031
  role: "alert",
6994
7032
  style: { display: "block" }
6995
- }, A(t.validationMessage || "Please provide a valid value."), 9, Ya)) : i("", !0)
7033
+ }, A(t.validationMessage || "Please provide a valid value."), 9, Xa)) : i("", !0)
6996
7034
  ], 64))], 2));
6997
7035
  }
6998
- }), Za = {
7036
+ }), Qa = {
6999
7037
  key: 0,
7000
7038
  role: "alert",
7001
7039
  "aria-live": "polite",
7002
7040
  class: "alert alert-danger"
7003
- }, Qa = { class: "mb-0" }, $a = ["href", "onClick"], eo = /* @__PURE__ */ c({
7041
+ }, $a = { class: "mb-0" }, eo = ["href", "onClick"], to = /* @__PURE__ */ c({
7004
7042
  __name: "VibeFormErrorSummary",
7005
7043
  props: { errors: {
7006
7044
  type: Object,
@@ -7009,26 +7047,26 @@ var er = { class: "vibe-chart" }, tr = {
7009
7047
  emits: ["focus"],
7010
7048
  setup(t, { emit: r }) {
7011
7049
  let s = t, c = r, l = n(() => Object.entries(s.errors).filter(([, e]) => e));
7012
- return (t, n) => l.value.length ? (x(), a("div", Za, [n[0] ||= o("strong", null, "Please fix the following:", -1), o("ul", Qa, [(x(!0), a(e, null, E(l.value, ([e, t]) => (x(), a("li", { key: e }, [o("a", {
7050
+ return (t, n) => l.value.length ? (x(), a("div", Qa, [n[0] ||= o("strong", null, "Please fix the following:", -1), o("ul", $a, [(x(!0), a(e, null, E(l.value, ([e, t]) => (x(), a("li", { key: e }, [o("a", {
7013
7051
  href: `#field-${e}`,
7014
7052
  onClick: H((t) => c("focus", e), ["prevent"])
7015
- }, A(t), 9, $a)]))), 128))])])) : i("", !0);
7053
+ }, A(t), 9, eo)]))), 128))])])) : i("", !0);
7016
7054
  }
7017
- }), to = {
7055
+ }), no = {
7018
7056
  sm: 576,
7019
7057
  md: 768,
7020
7058
  lg: 992,
7021
7059
  xl: 1200,
7022
7060
  xxl: 1400
7023
7061
  };
7024
- function no() {
7062
+ function ro() {
7025
7063
  let e = T(!1), t = T(!1), r = T(!1), i = T(!1), a = T(!1), o = [], s = null;
7026
7064
  typeof window < "u" && (s = {
7027
- sm: window.matchMedia(`(min-width: ${to.sm}px)`),
7028
- md: window.matchMedia(`(min-width: ${to.md}px)`),
7029
- lg: window.matchMedia(`(min-width: ${to.lg}px)`),
7030
- xl: window.matchMedia(`(min-width: ${to.xl}px)`),
7031
- xxl: window.matchMedia(`(min-width: ${to.xxl}px)`)
7065
+ sm: window.matchMedia(`(min-width: ${no.sm}px)`),
7066
+ md: window.matchMedia(`(min-width: ${no.md}px)`),
7067
+ lg: window.matchMedia(`(min-width: ${no.lg}px)`),
7068
+ xl: window.matchMedia(`(min-width: ${no.xl}px)`),
7069
+ xxl: window.matchMedia(`(min-width: ${no.xxl}px)`)
7032
7070
  });
7033
7071
  let c = () => {
7034
7072
  s && (e.value = s.sm.matches, t.value = s.md.matches, r.value = s.lg.matches, i.value = s.xl.matches, a.value = s.xxl.matches);
@@ -7055,7 +7093,7 @@ function no() {
7055
7093
  }
7056
7094
  //#endregion
7057
7095
  //#region src/utils/sanitizeHtml.ts
7058
- var ro = {
7096
+ var io = {
7059
7097
  ALLOWED_TAGS: [
7060
7098
  "p",
7061
7099
  "br",
@@ -7079,29 +7117,29 @@ var ro = {
7079
7117
  "target",
7080
7118
  "rel"
7081
7119
  ]
7082
- }, io = null, ao = !1;
7083
- async function oo() {
7084
- if (!ao) {
7085
- ao = !0;
7120
+ }, ao = null, oo = !1;
7121
+ async function so() {
7122
+ if (!oo) {
7123
+ oo = !0;
7086
7124
  try {
7087
7125
  let e = await import("./purify.es-eYghtX9j.mjs"), t = e.default ?? e;
7088
- io = (e) => t.sanitize(e, ro);
7126
+ ao = (e) => t.sanitize(e, io);
7089
7127
  } catch {}
7090
7128
  }
7091
7129
  }
7092
- function so(e) {
7093
- return io ? io(e) : e;
7130
+ function co(e) {
7131
+ return ao ? ao(e) : e;
7094
7132
  }
7095
7133
  //#endregion
7096
7134
  //#region src/components/VibeFormWysiwyg.vue?vue&type=script&setup=true&lang.ts
7097
- var co = ["for"], lo = {
7135
+ var lo = ["for"], uo = {
7098
7136
  key: 0,
7099
7137
  class: "text-danger"
7100
- }, uo = {
7138
+ }, fo = {
7101
7139
  key: 1,
7102
7140
  class: "alert alert-warning",
7103
7141
  role: "alert"
7104
- }, fo = ["id"], po = ["id"], mo = ["id"], ho = /*#__PURE__*/ W(/* @__PURE__ */ c({
7142
+ }, po = ["id"], mo = ["id"], ho = ["id"], go = /*#__PURE__*/ G(/* @__PURE__ */ c({
7105
7143
  __name: "VibeFormWysiwyg",
7106
7144
  props: {
7107
7145
  modelValue: {
@@ -7187,7 +7225,7 @@ var co = ["for"], lo = {
7187
7225
  "component-error"
7188
7226
  ],
7189
7227
  setup(t, { emit: r }) {
7190
- let c = q("wysiwyg"), l = t, d = r, f = u(K, null), g = f?.consumeId(), v = n(() => l.id || g || c), b = n(() => Ce(l.height) ?? "200px"), { isMobile: S } = no(), C = n(() => !!l.label && !f?.hasLabel.value), w = n(() => !!l.validationState && !f?.hasValidation.value), E = n(() => !!l.helpText && !f?.hasHelp.value), D = T(null), O = k(null), j = T(!1), M = T(null), N = T(!1), P = !1, F = !1, L = null, R = null, z = null, B = null, V = n(() => {
7228
+ let c = J("wysiwyg"), l = t, d = r, f = u(q, null), g = f?.consumeId(), v = n(() => l.id || g || c), b = n(() => Se(l.height) ?? "200px"), { isMobile: S } = ro(), C = n(() => !!l.label && !f?.hasLabel.value), w = n(() => !!l.validationState && !f?.hasValidation.value), E = n(() => !!l.helpText && !f?.hasHelp.value), D = T(null), O = k(null), j = T(!1), M = T(null), N = T(!1), P = !1, F = !1, L = null, R = null, z = null, B = null, V = n(() => {
7191
7229
  let e = ["vibe-wysiwyg-container"];
7192
7230
  return l.validationState === "valid" && e.push("is-valid"), l.validationState === "invalid" && e.push("is-invalid"), l.disabled && e.push("disabled"), e.join(" ");
7193
7231
  }), H = [
@@ -7207,7 +7245,7 @@ var co = ["for"], lo = {
7207
7245
  [{ color: [] }, { background: [] }],
7208
7246
  ["link", "image"],
7209
7247
  ["clean"]
7210
- ], ee = [
7248
+ ], U = [
7211
7249
  [
7212
7250
  "bold",
7213
7251
  "italic",
@@ -7215,7 +7253,7 @@ var co = ["for"], lo = {
7215
7253
  ],
7216
7254
  [{ list: "ordered" }, { list: "bullet" }],
7217
7255
  ["link", "clean"]
7218
- ], te = {
7256
+ ], ee = {
7219
7257
  minimal: [[
7220
7258
  "bold",
7221
7259
  "italic",
@@ -7268,21 +7306,21 @@ var co = ["for"], lo = {
7268
7306
  ],
7269
7307
  ["clean"]
7270
7308
  ]
7271
- }, U = (e, t) => e === !1 ? !1 : e === !0 || e === void 0 ? t : typeof e == "string" ? te[e] ?? t : e, W = () => l.toolbar === !1 ? !1 : S.value ? l.mobileToolbar === !1 ? !1 : l.mobileToolbar === void 0 ? ee : U(l.mobileToolbar, ee) : U(l.toolbar, H), ne = (e) => {
7309
+ }, W = (e, t) => e === !1 ? !1 : e === !0 || e === void 0 ? t : typeof e == "string" ? ee[e] ?? t : e, G = () => l.toolbar === !1 ? !1 : S.value ? l.mobileToolbar === !1 ? !1 : l.mobileToolbar === void 0 ? U : W(l.mobileToolbar, U) : W(l.toolbar, H), te = (e) => {
7272
7310
  if (!O.value) return;
7273
7311
  N.value = !0;
7274
- let t = so(e || ""), n = O.value.clipboard.convert({ html: t });
7312
+ let t = co(e || ""), n = O.value.clipboard.convert({ html: t });
7275
7313
  O.value.setContents(n, "silent"), N.value = !1;
7276
- }, re = () => !O.value || O.value.getText().trim().length === 0 ? "" : so(O.value.getSemanticHTML()), ie = () => {
7314
+ }, ne = () => !O.value || O.value.getText().trim().length === 0 ? "" : co(O.value.getSemanticHTML()), re = () => {
7277
7315
  let e = O.value?.root;
7278
7316
  if (!e) return;
7279
7317
  e.setAttribute("aria-invalid", String(l.validationState === "invalid"));
7280
7318
  let t = [l.helpText ? `${v.value}-help` : null, l.validationMessage ? `${v.value}-feedback` : null].filter(Boolean).join(" ");
7281
7319
  t ? e.setAttribute("aria-describedby", t) : e.removeAttribute("aria-describedby");
7282
- }, ae = async () => {
7320
+ }, ie = async () => {
7283
7321
  if (P) return;
7284
7322
  P = !0, M.value = null;
7285
- let e = oo();
7323
+ let e = so();
7286
7324
  try {
7287
7325
  let t = await import("quill"), n = t.default || t;
7288
7326
  if (await Promise.all([import("quill/dist/quill.snow.css"), e]), !D.value || F) return;
@@ -7291,12 +7329,12 @@ var co = ["for"], lo = {
7291
7329
  theme: l.theme,
7292
7330
  placeholder: l.placeholder,
7293
7331
  readOnly: l.readonly || l.disabled,
7294
- modules: { toolbar: W() }
7332
+ modules: { toolbar: G() }
7295
7333
  };
7296
7334
  O.value = new n(D.value, e);
7297
7335
  let t = O.value.root;
7298
- t.id = v.value || "", D.value.removeAttribute("id"), t.setAttribute("role", "textbox"), t.setAttribute("aria-multiline", "true"), ie(), l.modelValue && ne(l.modelValue), B = () => {
7299
- N.value || (d("update:modelValue", re()), d("change"), l.validateOn === "change" && d("validate"));
7336
+ t.id = v.value || "", D.value.removeAttribute("id"), t.setAttribute("role", "textbox"), t.setAttribute("aria-multiline", "true"), re(), l.modelValue && te(l.modelValue), B = () => {
7337
+ N.value || (d("update:modelValue", ne()), d("change"), l.validateOn === "change" && d("validate"));
7300
7338
  }, O.value.on("text-change", B), R = () => {
7301
7339
  d("blur"), l.validateOn === "blur" && d("validate");
7302
7340
  }, O.value.root.addEventListener("blur", R), z = () => {
@@ -7313,7 +7351,7 @@ var co = ["for"], lo = {
7313
7351
  P = !1;
7314
7352
  }
7315
7353
  };
7316
- return y(ae), _(() => {
7354
+ return y(ie), _(() => {
7317
7355
  if (F = !0, L !== null && (clearTimeout(L), L = null), O.value) {
7318
7356
  if (O.value.scroll?.observer?.disconnect(), O.value.enable(!1), B &&= (O.value.off("text-change", B), null), R &&= (O.value.root.removeEventListener("blur", R), null), z &&= (O.value.root.removeEventListener("focus", z), null), O.value.selection = null, typeof O.value.destroy == "function" && O.value.destroy(), D.value) {
7319
7357
  let e = D.value.parentElement?.querySelector(".ql-toolbar");
@@ -7322,7 +7360,7 @@ var co = ["for"], lo = {
7322
7360
  O.value = null;
7323
7361
  }
7324
7362
  }), I(() => l.modelValue, (e) => {
7325
- O.value && re() !== (e || "") && ne(e || "");
7363
+ O.value && ne() !== (e || "") && te(e || "");
7326
7364
  }), I(() => l.disabled, (e) => {
7327
7365
  O.value && O.value.enable(!e);
7328
7366
  }), I(() => l.readonly, (e) => {
@@ -7331,13 +7369,13 @@ var co = ["for"], lo = {
7331
7369
  () => l.validationState,
7332
7370
  () => l.helpText,
7333
7371
  () => l.validationMessage
7334
- ], ie), I(S, () => {
7372
+ ], re), I(S, () => {
7335
7373
  O.value && (L !== null && clearTimeout(L), L = setTimeout(async () => {
7336
7374
  if (L = null, !(F || !O.value)) try {
7337
- let e = re();
7375
+ let e = ne();
7338
7376
  O.value.scroll?.observer?.disconnect(), O.value.enable(!1), B &&= (O.value.off("text-change", B), null), R &&= (O.value.root.removeEventListener("blur", R), null), z &&= (O.value.root.removeEventListener("focus", z), null), O.value.selection = null, O.value && typeof O.value.destroy == "function" && O.value.destroy(), O.value = null, j.value = !1;
7339
7377
  let t = D.value?.parentElement?.querySelector(".ql-toolbar");
7340
- t && t.remove(), D.value && (D.value.innerHTML = ""), await p(), await ae(), e && ne(e);
7378
+ t && t.remove(), D.value && (D.value.innerHTML = ""), await p(), await ie(), e && te(e);
7341
7379
  } catch (e) {
7342
7380
  O.value = null, j.value = !1, d("component-error", {
7343
7381
  message: "Editor failed to reinitialise on mobile breakpoint change.",
@@ -7351,8 +7389,8 @@ var co = ["for"], lo = {
7351
7389
  key: 0,
7352
7390
  for: v.value,
7353
7391
  class: "form-label"
7354
- }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", lo, "*")) : i("", !0)], 8, co)) : i("", !0),
7355
- M.value ? (x(), a("div", uo, A(M.value), 1)) : (x(), a("div", {
7392
+ }, [s(A(t.label) + " ", 1), t.required ? (x(), a("span", uo, "*")) : i("", !0)], 8, lo)) : i("", !0),
7393
+ M.value ? (x(), a("div", fo, A(M.value), 1)) : (x(), a("div", {
7356
7394
  key: 2,
7357
7395
  class: m(V.value),
7358
7396
  style: h({ minHeight: b.value })
@@ -7364,27 +7402,28 @@ var co = ["for"], lo = {
7364
7402
  key: 3,
7365
7403
  id: `${v.value}-help`,
7366
7404
  class: "form-text"
7367
- }, A(t.helpText), 9, fo)) : i("", !0),
7405
+ }, A(t.helpText), 9, po)) : i("", !0),
7368
7406
  w.value ? (x(), a(e, { key: 4 }, [t.validationState === "valid" ? (x(), a("div", {
7369
7407
  key: 0,
7370
7408
  id: `${v.value}-feedback`,
7371
7409
  class: "valid-feedback",
7372
7410
  style: { display: "block" }
7373
- }, A(t.validationMessage || "Looks good!"), 9, po)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
7411
+ }, A(t.validationMessage || "Looks good!"), 9, mo)) : i("", !0), t.validationState === "invalid" ? (x(), a("div", {
7374
7412
  key: 1,
7375
7413
  id: `${v.value}-feedback`,
7376
7414
  class: "invalid-feedback",
7415
+ role: "alert",
7377
7416
  style: { display: "block" }
7378
- }, A(t.validationMessage || "Please provide valid content."), 9, mo)) : i("", !0)], 64)) : i("", !0)
7417
+ }, A(t.validationMessage || "Please provide valid content."), 9, ho)) : i("", !0)], 64)) : i("", !0)
7379
7418
  ], 2));
7380
7419
  }
7381
- }), [["__scopeId", "data-v-82e0c636"]]), go = {
7420
+ }), [["__scopeId", "data-v-f0a5eec1"]]), _o = {
7382
7421
  key: 0,
7383
7422
  class: "input-group-text"
7384
- }, _o = {
7423
+ }, vo = {
7385
7424
  key: 0,
7386
7425
  class: "input-group-text"
7387
- }, vo = /* @__PURE__ */ c({
7426
+ }, yo = /* @__PURE__ */ c({
7388
7427
  __name: "VibeInputGroup",
7389
7428
  props: {
7390
7429
  size: {
@@ -7411,14 +7450,14 @@ var co = ["for"], lo = {
7411
7450
  });
7412
7451
  return (t, n) => (x(), r(O(e.tag), { class: m(o.value) }, {
7413
7452
  default: R(() => [
7414
- D(t.$slots, "prepend", {}, () => [e.prepend ? (x(), a("span", go, A(e.prepend), 1)) : i("", !0)]),
7453
+ D(t.$slots, "prepend", {}, () => [e.prepend ? (x(), a("span", _o, A(e.prepend), 1)) : i("", !0)]),
7415
7454
  D(t.$slots, "default"),
7416
- D(t.$slots, "append", {}, () => [e.append ? (x(), a("span", _o, A(e.append), 1)) : i("", !0)])
7455
+ D(t.$slots, "append", {}, () => [e.append ? (x(), a("span", vo, A(e.append), 1)) : i("", !0)])
7417
7456
  ]),
7418
7457
  _: 3
7419
7458
  }, 8, ["class"]));
7420
7459
  }
7421
- }), yo = /* @__PURE__ */ c({
7460
+ }), bo = /* @__PURE__ */ c({
7422
7461
  __name: "VibeLink",
7423
7462
  props: {
7424
7463
  tag: {
@@ -7470,7 +7509,7 @@ var co = ["for"], lo = {
7470
7509
  return (t, n) => (x(), r(O(a.value), {
7471
7510
  class: m(o.value),
7472
7511
  to: i.value ? e.to : void 0,
7473
- href: i.value ? void 0 : j(G)(e.href)
7512
+ href: i.value ? void 0 : j(K)(e.href)
7474
7513
  }, {
7475
7514
  default: R(() => [D(t.$slots, "default")]),
7476
7515
  _: 3
@@ -7480,57 +7519,57 @@ var co = ["for"], lo = {
7480
7519
  "href"
7481
7520
  ]));
7482
7521
  }
7483
- }), bo = Symbol("vibeTooltipInstance"), xo = Symbol("vibeTooltipPending"), So = Symbol("vibeTooltipOpts"), Co = () => typeof window < "u" && ("ontouchstart" in window || typeof navigator < "u" && navigator.maxTouchPoints > 0), wo = (e) => typeof e == "string" ? { title: e } : e ? {
7522
+ }), xo = Symbol("vibeTooltipInstance"), So = Symbol("vibeTooltipPending"), Co = Symbol("vibeTooltipOpts"), wo = () => typeof window < "u" && ("ontouchstart" in window || typeof navigator < "u" && navigator.maxTouchPoints > 0), To = (e) => typeof e == "string" ? { title: e } : e ? {
7484
7523
  ...e,
7485
7524
  title: e.title ?? e.text ?? e.content
7486
- } : {}, To = (e) => {
7525
+ } : {}, Eo = (e) => {
7487
7526
  let t = e || "hover focus";
7488
- return Co() && t === "hover focus" ? "click" : t;
7489
- }, Eo = (e, t) => (e.placement || "top") !== (t.placement || "top") || To(e.trigger) !== To(t.trigger), Do = async (e, t) => {
7490
- if (e[xo] || e[bo]) return;
7491
- e[xo] = !0;
7527
+ return wo() && t === "hover focus" ? "click" : t;
7528
+ }, Do = (e, t) => (e.placement || "top") !== (t.placement || "top") || Eo(e.trigger) !== Eo(t.trigger), Oo = async (e, t) => {
7529
+ if (e[So] || e[xo]) return;
7530
+ e[So] = !0;
7492
7531
  let n = t;
7493
- e[So] = t;
7532
+ e[Co] = t;
7494
7533
  try {
7495
- e[bo] = new (await (import("bootstrap"))).Tooltip(e, {
7534
+ e[xo] = new (await (import("bootstrap"))).Tooltip(e, {
7496
7535
  title: t.title || "",
7497
7536
  placement: t.placement || "top",
7498
- trigger: To(t.trigger),
7537
+ trigger: Eo(t.trigger),
7499
7538
  html: !1
7500
- }), e[So] !== n && e[bo] && e[bo].setContent({ ".tooltip-inner": e[So]?.title ?? "" });
7539
+ }), e[Co] !== n && e[xo] && e[xo].setContent({ ".tooltip-inner": e[Co]?.title ?? "" });
7501
7540
  } catch {}
7502
- e[xo] = !1;
7503
- }, Oo = (e) => {
7504
- let t = e[bo];
7505
- t && (t.dispose(), e[bo] = null);
7506
- }, ko = (e, t) => {
7507
- e.setAttribute("data-bs-toggle", "tooltip"), t.title ? e.setAttribute("data-bs-title", t.title) : e.removeAttribute("data-bs-title"), e.setAttribute("data-bs-placement", t.placement || "top"), e.setAttribute("data-bs-trigger", To(t.trigger)), e.removeAttribute("data-bs-html");
7508
- }, Ao = {
7541
+ e[So] = !1;
7542
+ }, ko = (e) => {
7543
+ let t = e[xo];
7544
+ t && (t.dispose(), e[xo] = null);
7545
+ }, Ao = (e, t) => {
7546
+ e.setAttribute("data-bs-toggle", "tooltip"), t.title ? e.setAttribute("data-bs-title", t.title) : e.removeAttribute("data-bs-title"), e.setAttribute("data-bs-placement", t.placement || "top"), e.setAttribute("data-bs-trigger", Eo(t.trigger)), e.removeAttribute("data-bs-html");
7547
+ }, jo = {
7509
7548
  mounted(e, t) {
7510
- let n = wo(t.value);
7511
- ko(e, n), Do(e, n);
7549
+ let n = To(t.value);
7550
+ Ao(e, n), Oo(e, n);
7512
7551
  },
7513
7552
  updated(e, t) {
7514
- let n = wo(t.value);
7515
- ko(e, n);
7516
- let r = e[So] || {}, i = e[bo];
7517
- if (e[So] = n, !e[xo]) {
7518
- if (i && Eo(r, n)) {
7519
- Oo(e), Do(e, n);
7553
+ let n = To(t.value);
7554
+ Ao(e, n);
7555
+ let r = e[Co] || {}, i = e[xo];
7556
+ if (e[Co] = n, !e[So]) {
7557
+ if (i && Do(r, n)) {
7558
+ ko(e), Oo(e, n);
7520
7559
  return;
7521
7560
  }
7522
7561
  i && i.setContent({ ".tooltip-inner": n.title || "" });
7523
7562
  }
7524
7563
  },
7525
7564
  beforeUnmount(e) {
7526
- Oo(e);
7565
+ ko(e);
7527
7566
  }
7528
- }, jo = { install(e) {
7529
- e.component("VibeAlert", ee), e.component("VibeBadge", te), e.component("VibeButton", ne), e.component("VibeButtonGroup", ie), e.component("VibeCloseButton", oe), e.component("VibeSpinner", ce), e.component("VibePlaceholder", le), e.component("VibeSkeleton", ue), e.component("VibeContainer", de), e.component("VibeRow", fe), e.component("VibeCol", pe), e.component("VibeCard", ve), e.component("VibeHero", Ee), e.component("VibeBreadcrumb", Ae), e.component("VibeNav", Fe), e.component("VibeNavbar", Re), e.component("VibeNavbarBrand", ze), e.component("VibeNavbarToggle", Ve), e.component("VibeNavbarNav", qe), e.component("VibePagination", $e), e.component("VibeTabContent", tt), e.component("VibeTabs", rt), e.component("VibeTab", it), e.component("VibeListGroup", at), e.component("VibeProgress", st), e.component("VibeAccordion", ht), e.component("VibeCollapse", gt), e.component("VibeDropdown", wt), e.component("VibeModal", Ft), e.component("VibeOffcanvas", Bt), e.component("VibeToast", qt), e.component("VibeToastHost", an), e.component("VibeCarousel", _n), e.component("VibeTooltip", yn), e.component("VibePopover", xn), e.component("VibeScrollspy", Sn), e.component("VibeIcon", wn), e.component("VibeChartLine", Vn), e.component("VibeChartBar", Zn), e.component("VibeChartPie", rr), e.component("VibeDataTable", Er), e.component("VibeFormInput", Hr), e.component("VibeFormSelect", $r), e.component("VibeFormTextarea", si), e.component("VibeFormSpinbutton", gi), e.component("VibeFormDatepicker", Ci), e.component("VibeFileInput", ki), e.component("VibeSlider", Mi), e.component("VibeStepper", Vi), e.component("VibeAutocomplete", qi), e.component("VibeSortable", Ji), e.component("VibeDraggable", na), e.component("VibeDroppable", ra), e.component("VibeResizable", aa), e.component("VibeDatePicker", ma), e.component("VibeFormCheckbox", xa), e.component("VibeFormRadio", Oa), e.component("VibeFormSwitch", Fa), e.component("VibeFormGroup", Xa), e.component("VibeFormErrorSummary", eo), e.component("VibeFormWysiwyg", ho), e.component("VibeInputGroup", vo), e.component("VibeLink", yo), e.directive("vibe-tooltip", Ao);
7567
+ }, Mo = { install(e) {
7568
+ e.component("VibeAlert", U), e.component("VibeBadge", ee), e.component("VibeButton", te), e.component("VibeButtonGroup", re), e.component("VibeCloseButton", ae), e.component("VibeSpinner", se), e.component("VibePlaceholder", ce), e.component("VibeSkeleton", le), e.component("VibeContainer", ue), e.component("VibeRow", de), e.component("VibeCol", fe), e.component("VibeCard", _e), e.component("VibeHero", Te), e.component("VibeBreadcrumb", ke), e.component("VibeNav", Pe), e.component("VibeNavbar", Le), e.component("VibeNavbarBrand", Re), e.component("VibeNavbarToggle", Be), e.component("VibeNavbarNav", Ke), e.component("VibePagination", Qe), e.component("VibeTabContent", et), e.component("VibeTabs", nt), e.component("VibeTab", rt), e.component("VibeListGroup", it), e.component("VibeProgress", ot), e.component("VibeAccordion", mt), e.component("VibeCollapse", ht), e.component("VibeDropdown", Ct), e.component("VibeModal", Pt), e.component("VibeOffcanvas", zt), e.component("VibeToast", Kt), e.component("VibeToastHost", rn), e.component("VibeCarousel", gn), e.component("VibeTooltip", vn), e.component("VibePopover", bn), e.component("VibeScrollspy", xn), e.component("VibeIcon", Cn), e.component("VibeChartLine", Bn), e.component("VibeChartBar", Xn), e.component("VibeChartPie", nr), e.component("VibeDataTable", Tr), e.component("VibeFormInput", Vr), e.component("VibeFormSelect", Qr), e.component("VibeFormTextarea", oi), e.component("VibeFormSpinbutton", hi), e.component("VibeFormDatepicker", Si), e.component("VibeFileInput", Ai), e.component("VibeSlider", Ni), e.component("VibeStepper", Hi), e.component("VibeAutocomplete", Ji), e.component("VibeSortable", Yi), e.component("VibeDraggable", ra), e.component("VibeDroppable", ia), e.component("VibeResizable", oa), e.component("VibeDatePicker", ha), e.component("VibeFormCheckbox", Sa), e.component("VibeFormRadio", ka), e.component("VibeFormSwitch", Ia), e.component("VibeFormGroup", Za), e.component("VibeFormErrorSummary", to), e.component("VibeFormWysiwyg", go), e.component("VibeInputGroup", yo), e.component("VibeLink", bo), e.directive("vibe-tooltip", jo);
7530
7569
  } };
7531
7570
  //#endregion
7532
7571
  //#region src/composables/useFormValidation.ts
7533
- function Mo(e = "") {
7572
+ function No(e = "") {
7534
7573
  let t = T(e), r = T(null), i = T(""), a = T(!1), o = T(!1), s = T(!1), c = 0;
7535
7574
  return I(t, () => {
7536
7575
  r.value === "invalid" && (r.value = null, i.value = "");
@@ -7576,7 +7615,7 @@ function Mo(e = "") {
7576
7615
  }
7577
7616
  };
7578
7617
  }
7579
- var No = {
7618
+ var Po = {
7580
7619
  required: (e = "This field is required") => ({
7581
7620
  validator: (t) => Array.isArray(t) ? t.length > 0 || e : typeof t == "string" ? t.trim().length > 0 || e : t != null && t !== "" || e,
7582
7621
  message: e
@@ -7631,7 +7670,7 @@ var No = {
7631
7670
  message: e
7632
7671
  }),
7633
7672
  async: (e) => ({ validator: e })
7634
- }, Po = (e) => JSON.parse(JSON.stringify(e)), Fo = async (e, t) => {
7673
+ }, Fo = (e) => JSON.parse(JSON.stringify(e)), Io = async (e, t) => {
7635
7674
  let n = Array.isArray(t) ? t : [{ validator: t }];
7636
7675
  for (let t of n) {
7637
7676
  let n = await t.validator(e);
@@ -7640,8 +7679,8 @@ var No = {
7640
7679
  }
7641
7680
  return "";
7642
7681
  };
7643
- function Io(e) {
7644
- let t = Po(e), r = C(Po(e)), i = {}, a = {};
7682
+ function Lo(e) {
7683
+ let t = Fo(e), r = C(Fo(e)), i = {}, a = {};
7645
7684
  for (let t of Object.keys(e)) i[t] = "", a[t] = !1;
7646
7685
  let o = C(i), s = C(a), c = T(!1), l = T(!1), u = n(() => c.value), d = Object.keys(t), f = {};
7647
7686
  for (let e of d) f[e] = JSON.stringify(t[e]);
@@ -7666,7 +7705,7 @@ function Io(e) {
7666
7705
  for (let i of Object.keys(e)) {
7667
7706
  let a = e[i];
7668
7707
  if (!a) continue;
7669
- let s = await Fo(r[i], a);
7708
+ let s = await Io(r[i], a);
7670
7709
  o[i] = s, s && (t[i] = s, n = !1);
7671
7710
  }
7672
7711
  return l.value = !0, {
@@ -7675,11 +7714,11 @@ function Io(e) {
7675
7714
  };
7676
7715
  },
7677
7716
  validateField: async (e, t) => {
7678
- let n = await Fo(r[e], t);
7717
+ let n = await Io(r[e], t);
7679
7718
  return o[e] = n, l.value = !0, n;
7680
7719
  },
7681
7720
  reset: () => {
7682
- for (let e of Object.keys(t)) r[e] = Po(t[e]), o[e] = "", s[e] = !1;
7721
+ for (let e of Object.keys(t)) r[e] = Fo(t[e]), o[e] = "", s[e] = !1;
7683
7722
  c.value = !1, l.value = !1;
7684
7723
  },
7685
7724
  markTouched: (e) => {
@@ -7695,75 +7734,75 @@ function Io(e) {
7695
7734
  }
7696
7735
  //#endregion
7697
7736
  //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
7698
- var Lo = Math.min, Ro = Math.max, zo = Math.round, Bo = Math.floor, Y = (e) => ({
7737
+ var Ro = Math.min, zo = Math.max, Bo = Math.round, Vo = Math.floor, X = (e) => ({
7699
7738
  x: e,
7700
7739
  y: e
7701
- }), Vo = {
7740
+ }), Ho = {
7702
7741
  left: "right",
7703
7742
  right: "left",
7704
7743
  bottom: "top",
7705
7744
  top: "bottom"
7706
7745
  };
7707
- function Ho(e, t, n) {
7708
- return Ro(e, Lo(t, n));
7746
+ function Uo(e, t, n) {
7747
+ return zo(e, Ro(t, n));
7709
7748
  }
7710
- function Uo(e, t) {
7749
+ function Wo(e, t) {
7711
7750
  return typeof e == "function" ? e(t) : e;
7712
7751
  }
7713
- function Wo(e) {
7752
+ function Go(e) {
7714
7753
  return e.split("-")[0];
7715
7754
  }
7716
- function Go(e) {
7755
+ function Ko(e) {
7717
7756
  return e.split("-")[1];
7718
7757
  }
7719
- function Ko(e) {
7758
+ function qo(e) {
7720
7759
  return e === "x" ? "y" : "x";
7721
7760
  }
7722
- function qo(e) {
7761
+ function Jo(e) {
7723
7762
  return e === "y" ? "height" : "width";
7724
7763
  }
7725
- function Jo(e) {
7764
+ function Yo(e) {
7726
7765
  let t = e[0];
7727
7766
  return t === "t" || t === "b" ? "y" : "x";
7728
7767
  }
7729
- function Yo(e) {
7730
- return Ko(Jo(e));
7768
+ function Xo(e) {
7769
+ return qo(Yo(e));
7731
7770
  }
7732
- function Xo(e, t, n) {
7771
+ function Zo(e, t, n) {
7733
7772
  n === void 0 && (n = !1);
7734
- let r = Go(e), i = Yo(e), a = qo(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
7735
- return t.reference[a] > t.floating[a] && (o = as(o)), [o, as(o)];
7773
+ let r = Ko(e), i = Xo(e), a = Jo(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
7774
+ return t.reference[a] > t.floating[a] && (o = os(o)), [o, os(o)];
7736
7775
  }
7737
- function Zo(e) {
7738
- let t = as(e);
7776
+ function Qo(e) {
7777
+ let t = os(e);
7739
7778
  return [
7740
- Qo(e),
7779
+ $o(e),
7741
7780
  t,
7742
- Qo(t)
7781
+ $o(t)
7743
7782
  ];
7744
7783
  }
7745
- function Qo(e) {
7784
+ function $o(e) {
7746
7785
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
7747
7786
  }
7748
- var $o = ["left", "right"], es = ["right", "left"], ts = ["top", "bottom"], ns = ["bottom", "top"];
7749
- function rs(e, t, n) {
7787
+ var es = ["left", "right"], ts = ["right", "left"], ns = ["top", "bottom"], rs = ["bottom", "top"];
7788
+ function is(e, t, n) {
7750
7789
  switch (e) {
7751
7790
  case "top":
7752
- case "bottom": return n ? t ? es : $o : t ? $o : es;
7791
+ case "bottom": return n ? t ? ts : es : t ? es : ts;
7753
7792
  case "left":
7754
- case "right": return t ? ts : ns;
7793
+ case "right": return t ? ns : rs;
7755
7794
  default: return [];
7756
7795
  }
7757
7796
  }
7758
- function is(e, t, n, r) {
7759
- let i = Go(e), a = rs(Wo(e), n === "start", r);
7760
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Qo)))), a;
7761
- }
7762
- function as(e) {
7763
- let t = Wo(e);
7764
- return Vo[t] + e.slice(t.length);
7797
+ function as(e, t, n, r) {
7798
+ let i = Ko(e), a = is(Go(e), n === "start", r);
7799
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map($o)))), a;
7765
7800
  }
7766
7801
  function os(e) {
7802
+ let t = Go(e);
7803
+ return Ho[t] + e.slice(t.length);
7804
+ }
7805
+ function ss(e) {
7767
7806
  return {
7768
7807
  top: 0,
7769
7808
  right: 0,
@@ -7772,15 +7811,15 @@ function os(e) {
7772
7811
  ...e
7773
7812
  };
7774
7813
  }
7775
- function ss(e) {
7814
+ function cs(e) {
7776
7815
  return typeof e == "number" ? {
7777
7816
  top: e,
7778
7817
  right: e,
7779
7818
  bottom: e,
7780
7819
  left: e
7781
- } : os(e);
7820
+ } : ss(e);
7782
7821
  }
7783
- function cs(e) {
7822
+ function ls(e) {
7784
7823
  let { x: t, y: n, width: r, height: i } = e;
7785
7824
  return {
7786
7825
  width: r,
@@ -7795,8 +7834,8 @@ function cs(e) {
7795
7834
  }
7796
7835
  //#endregion
7797
7836
  //#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
7798
- function ls(e, t, n) {
7799
- let { reference: r, floating: i } = e, a = Jo(t), o = Yo(t), s = qo(o), c = Wo(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
7837
+ function us(e, t, n) {
7838
+ let { reference: r, floating: i } = e, a = Yo(t), o = Xo(t), s = Jo(o), c = Go(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
7800
7839
  switch (c) {
7801
7840
  case "top":
7802
7841
  p = {
@@ -7827,7 +7866,7 @@ function ls(e, t, n) {
7827
7866
  y: r.y
7828
7867
  };
7829
7868
  }
7830
- switch (Go(t)) {
7869
+ switch (Ko(t)) {
7831
7870
  case "start":
7832
7871
  p[o] -= f * (n && l ? -1 : 1);
7833
7872
  break;
@@ -7837,9 +7876,9 @@ function ls(e, t, n) {
7837
7876
  }
7838
7877
  return p;
7839
7878
  }
7840
- async function us(e, t) {
7879
+ async function ds(e, t) {
7841
7880
  t === void 0 && (t = {});
7842
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Uo(t, e), p = ss(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = cs(await i.getClippingRect({
7881
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Wo(t, e), p = cs(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = ls(await i.getClippingRect({
7843
7882
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
7844
7883
  boundary: c,
7845
7884
  rootBoundary: l,
@@ -7852,7 +7891,7 @@ async function us(e, t) {
7852
7891
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
7853
7892
  x: 1,
7854
7893
  y: 1
7855
- }, y = cs(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
7894
+ }, y = ls(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
7856
7895
  elements: o,
7857
7896
  rect: g,
7858
7897
  offsetParent: _,
@@ -7865,15 +7904,15 @@ async function us(e, t) {
7865
7904
  right: (y.right - h.right + p.right) / v.x
7866
7905
  };
7867
7906
  }
7868
- var ds = 50, fs = async (e, t, n) => {
7907
+ var fs = 50, ps = async (e, t, n) => {
7869
7908
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
7870
7909
  ...o,
7871
- detectOverflow: us
7910
+ detectOverflow: ds
7872
7911
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
7873
7912
  reference: e,
7874
7913
  floating: t,
7875
7914
  strategy: i
7876
- }), { x: u, y: d } = ls(l, r, c), f = r, p = 0, m = {};
7915
+ }), { x: u, y: d } = us(l, r, c), f = r, p = 0, m = {};
7877
7916
  for (let n = 0; n < a.length; n++) {
7878
7917
  let h = a[n];
7879
7918
  if (!h) continue;
@@ -7894,11 +7933,11 @@ var ds = 50, fs = async (e, t, n) => {
7894
7933
  u = v ?? u, d = y ?? d, m[g] = {
7895
7934
  ...m[g],
7896
7935
  ...b
7897
- }, x && p < ds && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
7936
+ }, x && p < fs && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
7898
7937
  reference: e,
7899
7938
  floating: t,
7900
7939
  strategy: i
7901
- }) : x.rects), {x: u, y: d} = ls(l, f, c)), n = -1);
7940
+ }) : x.rects), {x: u, y: d} = us(l, f, c)), n = -1);
7902
7941
  }
7903
7942
  return {
7904
7943
  x: u,
@@ -7907,19 +7946,19 @@ var ds = 50, fs = async (e, t, n) => {
7907
7946
  strategy: i,
7908
7947
  middlewareData: m
7909
7948
  };
7910
- }, ps = function(e) {
7949
+ }, ms = function(e) {
7911
7950
  return e === void 0 && (e = {}), {
7912
7951
  name: "flip",
7913
7952
  options: e,
7914
7953
  async fn(t) {
7915
7954
  var n;
7916
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Uo(e, t);
7955
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Wo(e, t);
7917
7956
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
7918
- let g = Wo(r), _ = Jo(o), v = Wo(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [as(o)] : Zo(o)), x = p !== "none";
7919
- !d && x && b.push(...is(o, m, p, y));
7957
+ let g = Go(r), _ = Yo(o), v = Go(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [os(o)] : Qo(o)), x = p !== "none";
7958
+ !d && x && b.push(...as(o, m, p, y));
7920
7959
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
7921
7960
  if (l && w.push(C[g]), u) {
7922
- let e = Xo(r, a, y);
7961
+ let e = Zo(r, a, y);
7923
7962
  w.push(C[e[0]], C[e[1]]);
7924
7963
  }
7925
7964
  if (T = [...T, {
@@ -7927,7 +7966,7 @@ var ds = 50, fs = async (e, t, n) => {
7927
7966
  overflows: w
7928
7967
  }], !w.every((e) => e <= 0)) {
7929
7968
  let e = (i.flip?.index || 0) + 1, t = S[e];
7930
- if (t && (!(u === "alignment" && _ !== Jo(t)) || T.every((e) => Jo(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
7969
+ if (t && (!(u === "alignment" && _ !== Yo(t)) || T.every((e) => Yo(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
7931
7970
  data: {
7932
7971
  index: e,
7933
7972
  overflows: T
@@ -7939,7 +7978,7 @@ var ds = 50, fs = async (e, t, n) => {
7939
7978
  case "bestFit": {
7940
7979
  let e = T.filter((e) => {
7941
7980
  if (x) {
7942
- let t = Jo(e.placement);
7981
+ let t = Yo(e.placement);
7943
7982
  return t === _ || t === "y";
7944
7983
  }
7945
7984
  return !0;
@@ -7956,9 +7995,9 @@ var ds = 50, fs = async (e, t, n) => {
7956
7995
  return {};
7957
7996
  }
7958
7997
  };
7959
- }, ms = /*#__PURE__*/ new Set(["left", "top"]);
7960
- async function hs(e, t) {
7961
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Wo(n), s = Go(n), c = Jo(n) === "y", l = ms.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Uo(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
7998
+ }, hs = /*#__PURE__*/ new Set(["left", "top"]);
7999
+ async function gs(e, t) {
8000
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Go(n), s = Ko(n), c = Yo(n) === "y", l = hs.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Wo(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
7962
8001
  mainAxis: d,
7963
8002
  crossAxis: 0,
7964
8003
  alignmentAxis: null
@@ -7975,13 +8014,13 @@ async function hs(e, t) {
7975
8014
  y: p * u
7976
8015
  };
7977
8016
  }
7978
- var gs = function(e) {
8017
+ var _s = function(e) {
7979
8018
  return e === void 0 && (e = 0), {
7980
8019
  name: "offset",
7981
8020
  options: e,
7982
8021
  async fn(t) {
7983
8022
  var n;
7984
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await hs(t, e);
8023
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await gs(t, e);
7985
8024
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
7986
8025
  x: r + s.x,
7987
8026
  y: i + s.y,
@@ -7992,7 +8031,7 @@ var gs = function(e) {
7992
8031
  };
7993
8032
  }
7994
8033
  };
7995
- }, _s = function(e) {
8034
+ }, vs = function(e) {
7996
8035
  return e === void 0 && (e = {}), {
7997
8036
  name: "shift",
7998
8037
  options: e,
@@ -8003,17 +8042,17 @@ var gs = function(e) {
8003
8042
  x: t,
8004
8043
  y: n
8005
8044
  };
8006
- } }, ...l } = Uo(e, t), u = {
8045
+ } }, ...l } = Wo(e, t), u = {
8007
8046
  x: n,
8008
8047
  y: r
8009
- }, d = await a.detectOverflow(t, l), f = Jo(Wo(i)), p = Ko(f), m = u[p], h = u[f];
8048
+ }, d = await a.detectOverflow(t, l), f = Yo(Go(i)), p = qo(f), m = u[p], h = u[f];
8010
8049
  if (o) {
8011
8050
  let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
8012
- m = Ho(n, m, r);
8051
+ m = Uo(n, m, r);
8013
8052
  }
8014
8053
  if (s) {
8015
8054
  let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
8016
- h = Ho(n, h, r);
8055
+ h = Uo(n, h, r);
8017
8056
  }
8018
8057
  let g = c.fn({
8019
8058
  ...t,
@@ -8036,39 +8075,39 @@ var gs = function(e) {
8036
8075
  };
8037
8076
  //#endregion
8038
8077
  //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
8039
- function vs() {
8078
+ function ys() {
8040
8079
  return typeof window < "u";
8041
8080
  }
8042
- function ys(e) {
8043
- return bs(e) ? (e.nodeName || "").toLowerCase() : "#document";
8081
+ function bs(e) {
8082
+ return Ss(e) ? (e.nodeName || "").toLowerCase() : "#document";
8044
8083
  }
8045
- function X(e) {
8084
+ function Z(e) {
8046
8085
  var t;
8047
8086
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
8048
8087
  }
8049
- function Z(e) {
8050
- return ((bs(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
8088
+ function xs(e) {
8089
+ return ((Ss(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
8051
8090
  }
8052
- function bs(e) {
8053
- return vs() ? e instanceof Node || e instanceof X(e).Node : !1;
8091
+ function Ss(e) {
8092
+ return ys() ? e instanceof Node || e instanceof Z(e).Node : !1;
8054
8093
  }
8055
8094
  function Q(e) {
8056
- return vs() ? e instanceof Element || e instanceof X(e).Element : !1;
8095
+ return ys() ? e instanceof Element || e instanceof Z(e).Element : !1;
8057
8096
  }
8058
- function xs(e) {
8059
- return vs() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
8097
+ function Cs(e) {
8098
+ return ys() ? e instanceof HTMLElement || e instanceof Z(e).HTMLElement : !1;
8060
8099
  }
8061
- function Ss(e) {
8062
- return !vs() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
8100
+ function ws(e) {
8101
+ return !ys() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Z(e).ShadowRoot;
8063
8102
  }
8064
- function Cs(e) {
8103
+ function Ts(e) {
8065
8104
  let { overflow: t, overflowX: n, overflowY: r, display: i } = $(e);
8066
8105
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
8067
8106
  }
8068
- function ws(e) {
8069
- return /^(table|td|th)$/.test(ys(e));
8107
+ function Es(e) {
8108
+ return /^(table|td|th)$/.test(bs(e));
8070
8109
  }
8071
- function Ts(e) {
8110
+ function Ds(e) {
8072
8111
  try {
8073
8112
  if (e.matches(":popover-open")) return !0;
8074
8113
  } catch {}
@@ -8078,30 +8117,30 @@ function Ts(e) {
8078
8117
  return !1;
8079
8118
  }
8080
8119
  }
8081
- var Es = /transform|translate|scale|rotate|perspective|filter/, Ds = /paint|layout|strict|content/, Os = (e) => !!e && e !== "none", ks;
8082
- function As(e) {
8120
+ var Os = /transform|translate|scale|rotate|perspective|filter/, ks = /paint|layout|strict|content/, As = (e) => !!e && e !== "none", js;
8121
+ function Ms(e) {
8083
8122
  let t = Q(e) ? $(e) : e;
8084
- return Os(t.transform) || Os(t.translate) || Os(t.scale) || Os(t.rotate) || Os(t.perspective) || !Ms() && (Os(t.backdropFilter) || Os(t.filter)) || Es.test(t.willChange || "") || Ds.test(t.contain || "");
8123
+ return As(t.transform) || As(t.translate) || As(t.scale) || As(t.rotate) || As(t.perspective) || !Ps() && (As(t.backdropFilter) || As(t.filter)) || Os.test(t.willChange || "") || ks.test(t.contain || "");
8085
8124
  }
8086
- function js(e) {
8087
- let t = Fs(e);
8088
- for (; xs(t) && !Ns(t);) {
8089
- if (As(t)) return t;
8090
- if (Ts(t)) return null;
8091
- t = Fs(t);
8125
+ function Ns(e) {
8126
+ let t = Ls(e);
8127
+ for (; Cs(t) && !Fs(t);) {
8128
+ if (Ms(t)) return t;
8129
+ if (Ds(t)) return null;
8130
+ t = Ls(t);
8092
8131
  }
8093
8132
  return null;
8094
8133
  }
8095
- function Ms() {
8096
- return ks ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ks;
8134
+ function Ps() {
8135
+ return js ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), js;
8097
8136
  }
8098
- function Ns(e) {
8099
- return /^(html|body|#document)$/.test(ys(e));
8137
+ function Fs(e) {
8138
+ return /^(html|body|#document)$/.test(bs(e));
8100
8139
  }
8101
8140
  function $(e) {
8102
- return X(e).getComputedStyle(e);
8141
+ return Z(e).getComputedStyle(e);
8103
8142
  }
8104
- function Ps(e) {
8143
+ function Is(e) {
8105
8144
  return Q(e) ? {
8106
8145
  scrollLeft: e.scrollLeft,
8107
8146
  scrollTop: e.scrollTop
@@ -8110,101 +8149,101 @@ function Ps(e) {
8110
8149
  scrollTop: e.scrollY
8111
8150
  };
8112
8151
  }
8113
- function Fs(e) {
8114
- if (ys(e) === "html") return e;
8115
- let t = e.assignedSlot || e.parentNode || Ss(e) && e.host || Z(e);
8116
- return Ss(t) ? t.host : t;
8152
+ function Ls(e) {
8153
+ if (bs(e) === "html") return e;
8154
+ let t = e.assignedSlot || e.parentNode || ws(e) && e.host || xs(e);
8155
+ return ws(t) ? t.host : t;
8117
8156
  }
8118
- function Is(e) {
8119
- let t = Fs(e);
8120
- return Ns(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : xs(t) && Cs(t) ? t : Is(t);
8157
+ function Rs(e) {
8158
+ let t = Ls(e);
8159
+ return Fs(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Cs(t) && Ts(t) ? t : Rs(t);
8121
8160
  }
8122
- function Ls(e, t, n) {
8161
+ function zs(e, t, n) {
8123
8162
  t === void 0 && (t = []), n === void 0 && (n = !0);
8124
- let r = Is(e), i = r === e.ownerDocument?.body, a = X(r);
8163
+ let r = Rs(e), i = r === e.ownerDocument?.body, a = Z(r);
8125
8164
  if (i) {
8126
- let e = Rs(a);
8127
- return t.concat(a, a.visualViewport || [], Cs(r) ? r : [], e && n ? Ls(e) : []);
8128
- } else return t.concat(r, Ls(r, [], n));
8165
+ let e = Bs(a);
8166
+ return t.concat(a, a.visualViewport || [], Ts(r) ? r : [], e && n ? zs(e) : []);
8167
+ } else return t.concat(r, zs(r, [], n));
8129
8168
  }
8130
- function Rs(e) {
8169
+ function Bs(e) {
8131
8170
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
8132
8171
  }
8133
8172
  //#endregion
8134
8173
  //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
8135
- function zs(e) {
8136
- let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = xs(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = zo(n) !== a || zo(r) !== o;
8174
+ function Vs(e) {
8175
+ let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Cs(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Bo(n) !== a || Bo(r) !== o;
8137
8176
  return s && (n = a, r = o), {
8138
8177
  width: n,
8139
8178
  height: r,
8140
8179
  $: s
8141
8180
  };
8142
8181
  }
8143
- function Bs(e) {
8182
+ function Hs(e) {
8144
8183
  return Q(e) ? e : e.contextElement;
8145
8184
  }
8146
- function Vs(e) {
8147
- let t = Bs(e);
8148
- if (!xs(t)) return Y(1);
8149
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = zs(t), o = (a ? zo(n.width) : n.width) / r, s = (a ? zo(n.height) : n.height) / i;
8185
+ function Us(e) {
8186
+ let t = Hs(e);
8187
+ if (!Cs(t)) return X(1);
8188
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Vs(t), o = (a ? Bo(n.width) : n.width) / r, s = (a ? Bo(n.height) : n.height) / i;
8150
8189
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
8151
8190
  x: o,
8152
8191
  y: s
8153
8192
  };
8154
8193
  }
8155
- var Hs = /*#__PURE__*/ Y(0);
8156
- function Us(e) {
8157
- let t = X(e);
8158
- return !Ms() || !t.visualViewport ? Hs : {
8194
+ var Ws = /*#__PURE__*/ X(0);
8195
+ function Gs(e) {
8196
+ let t = Z(e);
8197
+ return !Ps() || !t.visualViewport ? Ws : {
8159
8198
  x: t.visualViewport.offsetLeft,
8160
8199
  y: t.visualViewport.offsetTop
8161
8200
  };
8162
8201
  }
8163
- function Ws(e, t, n) {
8164
- return t === void 0 && (t = !1), !n || t && n !== X(e) ? !1 : t;
8202
+ function Ks(e, t, n) {
8203
+ return t === void 0 && (t = !1), !n || t && n !== Z(e) ? !1 : t;
8165
8204
  }
8166
- function Gs(e, t, n, r) {
8205
+ function qs(e, t, n, r) {
8167
8206
  t === void 0 && (t = !1), n === void 0 && (n = !1);
8168
- let i = e.getBoundingClientRect(), a = Bs(e), o = Y(1);
8169
- t && (r ? Q(r) && (o = Vs(r)) : o = Vs(e));
8170
- let s = Ws(a, n, r) ? Us(a) : Y(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
8207
+ let i = e.getBoundingClientRect(), a = Hs(e), o = X(1);
8208
+ t && (r ? Q(r) && (o = Us(r)) : o = Us(e));
8209
+ let s = Ks(a, n, r) ? Gs(a) : X(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
8171
8210
  if (a) {
8172
- let e = X(a), t = r && Q(r) ? X(r) : r, n = e, i = Rs(n);
8211
+ let e = Z(a), t = r && Q(r) ? Z(r) : r, n = e, i = Bs(n);
8173
8212
  for (; i && r && t !== n;) {
8174
- let e = Vs(i), t = i.getBoundingClientRect(), r = $(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
8175
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i = Rs(n);
8213
+ let e = Us(i), t = i.getBoundingClientRect(), r = $(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
8214
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Z(i), i = Bs(n);
8176
8215
  }
8177
8216
  }
8178
- return cs({
8217
+ return ls({
8179
8218
  width: u,
8180
8219
  height: d,
8181
8220
  x: c,
8182
8221
  y: l
8183
8222
  });
8184
8223
  }
8185
- function Ks(e, t) {
8186
- let n = Ps(e).scrollLeft;
8187
- return t ? t.left + n : Gs(Z(e)).left + n;
8224
+ function Js(e, t) {
8225
+ let n = Is(e).scrollLeft;
8226
+ return t ? t.left + n : qs(xs(e)).left + n;
8188
8227
  }
8189
- function qs(e, t) {
8228
+ function Ys(e, t) {
8190
8229
  let n = e.getBoundingClientRect();
8191
8230
  return {
8192
- x: n.left + t.scrollLeft - Ks(e, n),
8231
+ x: n.left + t.scrollLeft - Js(e, n),
8193
8232
  y: n.top + t.scrollTop
8194
8233
  };
8195
8234
  }
8196
- function Js(e) {
8197
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Z(r), s = t ? Ts(t.floating) : !1;
8235
+ function Xs(e) {
8236
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = xs(r), s = t ? Ds(t.floating) : !1;
8198
8237
  if (r === o || s && a) return n;
8199
8238
  let c = {
8200
8239
  scrollLeft: 0,
8201
8240
  scrollTop: 0
8202
- }, l = Y(1), u = Y(0), d = xs(r);
8203
- if ((d || !d && !a) && ((ys(r) !== "body" || Cs(o)) && (c = Ps(r)), d)) {
8204
- let e = Gs(r);
8205
- l = Vs(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
8241
+ }, l = X(1), u = X(0), d = Cs(r);
8242
+ if ((d || !d && !a) && ((bs(r) !== "body" || Ts(o)) && (c = Is(r)), d)) {
8243
+ let e = qs(r);
8244
+ l = Us(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
8206
8245
  }
8207
- let f = o && !d && !a ? qs(o, c) : Y(0);
8246
+ let f = o && !d && !a ? Ys(o, c) : X(0);
8208
8247
  return {
8209
8248
  width: n.width * l.x,
8210
8249
  height: n.height * l.y,
@@ -8212,31 +8251,31 @@ function Js(e) {
8212
8251
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
8213
8252
  };
8214
8253
  }
8215
- function Ys(e) {
8254
+ function Zs(e) {
8216
8255
  return Array.from(e.getClientRects());
8217
8256
  }
8218
- function Xs(e) {
8219
- let t = Z(e), n = Ps(e), r = e.ownerDocument.body, i = Ro(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Ro(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Ks(e), s = -n.scrollTop;
8220
- return $(r).direction === "rtl" && (o += Ro(t.clientWidth, r.clientWidth) - i), {
8257
+ function Qs(e) {
8258
+ let t = xs(e), n = Is(e), r = e.ownerDocument.body, i = zo(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = zo(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Js(e), s = -n.scrollTop;
8259
+ return $(r).direction === "rtl" && (o += zo(t.clientWidth, r.clientWidth) - i), {
8221
8260
  width: i,
8222
8261
  height: a,
8223
8262
  x: o,
8224
8263
  y: s
8225
8264
  };
8226
8265
  }
8227
- var Zs = 25;
8228
- function Qs(e, t) {
8229
- let n = X(e), r = Z(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
8266
+ var $s = 25;
8267
+ function ec(e, t) {
8268
+ let n = Z(e), r = xs(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
8230
8269
  if (i) {
8231
8270
  a = i.width, o = i.height;
8232
- let e = Ms();
8271
+ let e = Ps();
8233
8272
  (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
8234
8273
  }
8235
- let l = Ks(r);
8274
+ let l = Js(r);
8236
8275
  if (l <= 0) {
8237
8276
  let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
8238
- o <= Zs && (a -= o);
8239
- } else l <= Zs && (a += l);
8277
+ o <= $s && (a -= o);
8278
+ } else l <= $s && (a += l);
8240
8279
  return {
8241
8280
  width: a,
8242
8281
  height: o,
@@ -8244,8 +8283,8 @@ function Qs(e, t) {
8244
8283
  y: c
8245
8284
  };
8246
8285
  }
8247
- function $s(e, t) {
8248
- let n = Gs(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = xs(e) ? Vs(e) : Y(1);
8286
+ function tc(e, t) {
8287
+ let n = qs(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Cs(e) ? Us(e) : X(1);
8249
8288
  return {
8250
8289
  width: e.clientWidth * a.x,
8251
8290
  height: e.clientHeight * a.y,
@@ -8253,13 +8292,13 @@ function $s(e, t) {
8253
8292
  y: r * a.y
8254
8293
  };
8255
8294
  }
8256
- function ec(e, t, n) {
8295
+ function nc(e, t, n) {
8257
8296
  let r;
8258
- if (t === "viewport") r = Qs(e, n);
8259
- else if (t === "document") r = Xs(Z(e));
8260
- else if (Q(t)) r = $s(t, n);
8297
+ if (t === "viewport") r = ec(e, n);
8298
+ else if (t === "document") r = Qs(xs(e));
8299
+ else if (Q(t)) r = tc(t, n);
8261
8300
  else {
8262
- let n = Us(e);
8301
+ let n = Gs(e);
8263
8302
  r = {
8264
8303
  x: t.x - n.x,
8265
8304
  y: t.y - n.y,
@@ -8267,27 +8306,27 @@ function ec(e, t, n) {
8267
8306
  height: t.height
8268
8307
  };
8269
8308
  }
8270
- return cs(r);
8309
+ return ls(r);
8271
8310
  }
8272
- function tc(e, t) {
8273
- let n = Fs(e);
8274
- return n === t || !Q(n) || Ns(n) ? !1 : $(n).position === "fixed" || tc(n, t);
8311
+ function rc(e, t) {
8312
+ let n = Ls(e);
8313
+ return n === t || !Q(n) || Fs(n) ? !1 : $(n).position === "fixed" || rc(n, t);
8275
8314
  }
8276
- function nc(e, t) {
8315
+ function ic(e, t) {
8277
8316
  let n = t.get(e);
8278
8317
  if (n) return n;
8279
- let r = Ls(e, [], !1).filter((e) => Q(e) && ys(e) !== "body"), i = null, a = $(e).position === "fixed", o = a ? Fs(e) : e;
8280
- for (; Q(o) && !Ns(o);) {
8281
- let t = $(o), n = As(o);
8282
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Cs(o) && !n && tc(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Fs(o);
8318
+ let r = zs(e, [], !1).filter((e) => Q(e) && bs(e) !== "body"), i = null, a = $(e).position === "fixed", o = a ? Ls(e) : e;
8319
+ for (; Q(o) && !Fs(o);) {
8320
+ let t = $(o), n = Ms(o);
8321
+ !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Ts(o) && !n && rc(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Ls(o);
8283
8322
  }
8284
8323
  return t.set(e, r), r;
8285
8324
  }
8286
- function rc(e) {
8287
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Ts(t) ? [] : nc(t, this._c) : [].concat(n), r], o = ec(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
8325
+ function ac(e) {
8326
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Ds(t) ? [] : ic(t, this._c) : [].concat(n), r], o = nc(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
8288
8327
  for (let e = 1; e < a.length; e++) {
8289
- let n = ec(t, a[e], i);
8290
- s = Ro(n.top, s), c = Lo(n.right, c), l = Lo(n.bottom, l), u = Ro(n.left, u);
8328
+ let n = nc(t, a[e], i);
8329
+ s = zo(n.top, s), c = Ro(n.right, c), l = Ro(n.bottom, l), u = zo(n.left, u);
8291
8330
  }
8292
8331
  return {
8293
8332
  width: c - u,
@@ -8296,27 +8335,27 @@ function rc(e) {
8296
8335
  y: s
8297
8336
  };
8298
8337
  }
8299
- function ic(e) {
8300
- let { width: t, height: n } = zs(e);
8338
+ function oc(e) {
8339
+ let { width: t, height: n } = Vs(e);
8301
8340
  return {
8302
8341
  width: t,
8303
8342
  height: n
8304
8343
  };
8305
8344
  }
8306
- function ac(e, t, n) {
8307
- let r = xs(t), i = Z(t), a = n === "fixed", o = Gs(e, !0, a, t), s = {
8345
+ function sc(e, t, n) {
8346
+ let r = Cs(t), i = xs(t), a = n === "fixed", o = qs(e, !0, a, t), s = {
8308
8347
  scrollLeft: 0,
8309
8348
  scrollTop: 0
8310
- }, c = Y(0);
8349
+ }, c = X(0);
8311
8350
  function l() {
8312
- c.x = Ks(i);
8351
+ c.x = Js(i);
8313
8352
  }
8314
- if (r || !r && !a) if ((ys(t) !== "body" || Cs(i)) && (s = Ps(t)), r) {
8315
- let e = Gs(t, !0, a, t);
8353
+ if (r || !r && !a) if ((bs(t) !== "body" || Ts(i)) && (s = Is(t)), r) {
8354
+ let e = qs(t, !0, a, t);
8316
8355
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
8317
8356
  } else i && l();
8318
8357
  a && !r && i && l();
8319
- let u = i && !r && !a ? qs(i, s) : Y(0);
8358
+ let u = i && !r && !a ? Ys(i, s) : X(0);
8320
8359
  return {
8321
8360
  x: o.left + s.scrollLeft - c.x - u.x,
8322
8361
  y: o.top + s.scrollTop - c.y - u.y,
@@ -8324,34 +8363,34 @@ function ac(e, t, n) {
8324
8363
  height: o.height
8325
8364
  };
8326
8365
  }
8327
- function oc(e) {
8366
+ function cc(e) {
8328
8367
  return $(e).position === "static";
8329
8368
  }
8330
- function sc(e, t) {
8331
- if (!xs(e) || $(e).position === "fixed") return null;
8369
+ function lc(e, t) {
8370
+ if (!Cs(e) || $(e).position === "fixed") return null;
8332
8371
  if (t) return t(e);
8333
8372
  let n = e.offsetParent;
8334
- return Z(e) === n && (n = n.ownerDocument.body), n;
8373
+ return xs(e) === n && (n = n.ownerDocument.body), n;
8335
8374
  }
8336
- function cc(e, t) {
8337
- let n = X(e);
8338
- if (Ts(e)) return n;
8339
- if (!xs(e)) {
8340
- let t = Fs(e);
8341
- for (; t && !Ns(t);) {
8342
- if (Q(t) && !oc(t)) return t;
8343
- t = Fs(t);
8375
+ function uc(e, t) {
8376
+ let n = Z(e);
8377
+ if (Ds(e)) return n;
8378
+ if (!Cs(e)) {
8379
+ let t = Ls(e);
8380
+ for (; t && !Fs(t);) {
8381
+ if (Q(t) && !cc(t)) return t;
8382
+ t = Ls(t);
8344
8383
  }
8345
8384
  return n;
8346
8385
  }
8347
- let r = sc(e, t);
8348
- for (; r && ws(r) && oc(r);) r = sc(r, t);
8349
- return r && Ns(r) && oc(r) && !As(r) ? n : r || js(e) || n;
8386
+ let r = lc(e, t);
8387
+ for (; r && Es(r) && cc(r);) r = lc(r, t);
8388
+ return r && Fs(r) && cc(r) && !Ms(r) ? n : r || Ns(e) || n;
8350
8389
  }
8351
- var lc = async function(e) {
8352
- let t = this.getOffsetParent || cc, n = this.getDimensions, r = await n(e.floating);
8390
+ var dc = async function(e) {
8391
+ let t = this.getOffsetParent || uc, n = this.getDimensions, r = await n(e.floating);
8353
8392
  return {
8354
- reference: ac(e.reference, await t(e.floating), e.strategy),
8393
+ reference: sc(e.reference, await t(e.floating), e.strategy),
8355
8394
  floating: {
8356
8395
  x: 0,
8357
8396
  y: 0,
@@ -8360,26 +8399,26 @@ var lc = async function(e) {
8360
8399
  }
8361
8400
  };
8362
8401
  };
8363
- function uc(e) {
8402
+ function fc(e) {
8364
8403
  return $(e).direction === "rtl";
8365
8404
  }
8366
- var dc = {
8367
- convertOffsetParentRelativeRectToViewportRelativeRect: Js,
8368
- getDocumentElement: Z,
8369
- getClippingRect: rc,
8370
- getOffsetParent: cc,
8371
- getElementRects: lc,
8372
- getClientRects: Ys,
8373
- getDimensions: ic,
8374
- getScale: Vs,
8405
+ var pc = {
8406
+ convertOffsetParentRelativeRectToViewportRelativeRect: Xs,
8407
+ getDocumentElement: xs,
8408
+ getClippingRect: ac,
8409
+ getOffsetParent: uc,
8410
+ getElementRects: dc,
8411
+ getClientRects: Zs,
8412
+ getDimensions: oc,
8413
+ getScale: Us,
8375
8414
  isElement: Q,
8376
- isRTL: uc
8415
+ isRTL: fc
8377
8416
  };
8378
- function fc(e, t) {
8417
+ function mc(e, t) {
8379
8418
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
8380
8419
  }
8381
- function pc(e, t) {
8382
- let n = null, r, i = Z(e);
8420
+ function hc(e, t) {
8421
+ let n = null, r, i = xs(e);
8383
8422
  function a() {
8384
8423
  var e;
8385
8424
  clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
@@ -8388,9 +8427,9 @@ function pc(e, t) {
8388
8427
  s === void 0 && (s = !1), c === void 0 && (c = 1), a();
8389
8428
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
8390
8429
  if (s || t(), !f || !p) return;
8391
- let m = Bo(d), h = Bo(i.clientWidth - (u + f)), g = Bo(i.clientHeight - (d + p)), _ = Bo(u), v = {
8430
+ let m = Vo(d), h = Vo(i.clientWidth - (u + f)), g = Vo(i.clientHeight - (d + p)), _ = Vo(u), v = {
8392
8431
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
8393
- threshold: Ro(0, Lo(1, c)) || 1
8432
+ threshold: zo(0, Ro(1, c)) || 1
8394
8433
  }, y = !0;
8395
8434
  function b(t) {
8396
8435
  let n = t[0].intersectionRatio;
@@ -8400,7 +8439,7 @@ function pc(e, t) {
8400
8439
  o(!1, 1e-7);
8401
8440
  }, 1e3);
8402
8441
  }
8403
- n === 1 && !fc(l, e.getBoundingClientRect()) && o(), y = !1;
8442
+ n === 1 && !mc(l, e.getBoundingClientRect()) && o(), y = !1;
8404
8443
  }
8405
8444
  try {
8406
8445
  n = new IntersectionObserver(b, {
@@ -8414,13 +8453,13 @@ function pc(e, t) {
8414
8453
  }
8415
8454
  return o(!0), a;
8416
8455
  }
8417
- function mc(e, t, n, r) {
8456
+ function gc(e, t, n, r) {
8418
8457
  r === void 0 && (r = {});
8419
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Bs(e), u = i || a ? [...l ? Ls(l) : [], ...t ? Ls(t) : []] : [];
8458
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Hs(e), u = i || a ? [...l ? zs(l) : [], ...t ? zs(t) : []] : [];
8420
8459
  u.forEach((e) => {
8421
8460
  i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
8422
8461
  });
8423
- let d = l && s ? pc(l, n) : null, f = -1, p = null;
8462
+ let d = l && s ? hc(l, n) : null, f = -1, p = null;
8424
8463
  o && (p = new ResizeObserver((e) => {
8425
8464
  let [r] = e;
8426
8465
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -8428,11 +8467,11 @@ function mc(e, t, n, r) {
8428
8467
  (e = p) == null || e.observe(t);
8429
8468
  })), n();
8430
8469
  }), l && !c && p.observe(l), t && p.observe(t));
8431
- let m, h = c ? Gs(e) : null;
8470
+ let m, h = c ? qs(e) : null;
8432
8471
  c && g();
8433
8472
  function g() {
8434
- let t = Gs(e);
8435
- h && !fc(h, t) && n(), h = t, m = requestAnimationFrame(g);
8473
+ let t = qs(e);
8474
+ h && !mc(h, t) && n(), h = t, m = requestAnimationFrame(g);
8436
8475
  }
8437
8476
  return n(), () => {
8438
8477
  var e;
@@ -8441,19 +8480,19 @@ function mc(e, t, n, r) {
8441
8480
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
8442
8481
  };
8443
8482
  }
8444
- var hc = gs, gc = _s, _c = ps, vc = (e, t, n) => {
8483
+ var _c = _s, vc = vs, yc = ms, bc = (e, t, n) => {
8445
8484
  let r = /* @__PURE__ */ new Map(), i = {
8446
- platform: dc,
8485
+ platform: pc,
8447
8486
  ...n
8448
8487
  }, a = {
8449
8488
  ...i.platform,
8450
8489
  _c: r
8451
8490
  };
8452
- return fs(e, t, {
8491
+ return ps(e, t, {
8453
8492
  ...i,
8454
8493
  platform: a
8455
8494
  });
8456
- }, yc = {
8495
+ }, xc = {
8457
8496
  "top start at bottom start": "bottom-start",
8458
8497
  "top center at bottom center": "bottom",
8459
8498
  "top end at bottom end": "bottom-end",
@@ -8466,24 +8505,24 @@ var hc = gs, gc = _s, _c = ps, vc = (e, t, n) => {
8466
8505
  "bottom start at bottom end": "right-end",
8467
8506
  "top end at top start": "left-start",
8468
8507
  "bottom end at bottom start": "left-end"
8469
- }, bc = (e, t) => {
8508
+ }, Sc = (e, t) => {
8470
8509
  let n = `${e} at ${t}`;
8471
- if (yc[n]) return yc[n];
8510
+ if (xc[n]) return xc[n];
8472
8511
  let [r, i] = t.split(" ");
8473
8512
  return r === "bottom" ? i === "start" ? "bottom-start" : i === "end" ? "bottom-end" : "bottom" : r === "top" ? i === "start" ? "top-start" : i === "end" ? "top-end" : "top" : i === "start" ? r === "top" ? "left-start" : r === "bottom" ? "left-end" : "left" : i === "end" ? r === "top" ? "right-start" : r === "bottom" ? "right-end" : "right" : "bottom";
8474
8513
  };
8475
- function xc(e, t, n = {}) {
8476
- let r = () => typeof n == "function" ? n() : n, i = r(), a = T(bc(i.my ?? "top center", i.at ?? "bottom center")), o = T(0), s = T(0), c = null, l = null, u = null, d = (e) => {
8514
+ function Cc(e, t, n = {}) {
8515
+ let r = () => typeof n == "function" ? n() : n, i = r(), a = T(Sc(i.my ?? "top center", i.at ?? "bottom center")), o = T(0), s = T(0), c = null, l = null, u = null, d = (e) => {
8477
8516
  let t = [];
8478
8517
  if (e.offset) {
8479
8518
  let [n, r] = e.offset;
8480
- t.push(hc({
8519
+ t.push(_c({
8481
8520
  mainAxis: r,
8482
8521
  crossAxis: n
8483
8522
  }));
8484
8523
  }
8485
8524
  let n = e.collision ?? "flip+shift";
8486
- return (n === "flip" || n === "flip+shift") && t.push(_c()), (n === "shift" || n === "flip+shift") && t.push(gc()), t;
8525
+ return (n === "flip" || n === "flip+shift") && t.push(yc()), (n === "shift" || n === "flip+shift") && t.push(vc()), t;
8487
8526
  }, f = (e) => {
8488
8527
  u !== e && (u = e, l = {
8489
8528
  position: e.style.position,
@@ -8498,8 +8537,8 @@ function xc(e, t, n = {}) {
8498
8537
  if (!n || !i) return;
8499
8538
  let c = r(), l = c.my ?? "top center", u = c.at ?? "bottom center";
8500
8539
  f(n);
8501
- let p = await vc(i, n, {
8502
- placement: bc(l, u),
8540
+ let p = await bc(i, n, {
8541
+ placement: Sc(l, u),
8503
8542
  strategy: c.strategy ?? "absolute",
8504
8543
  middleware: d(c)
8505
8544
  });
@@ -8516,7 +8555,7 @@ function xc(e, t, n = {}) {
8516
8555
  if (!i || !a) return;
8517
8556
  u !== null && u !== i && p(u);
8518
8557
  let s = null;
8519
- o.autoUpdate === !1 ? m() : s = mc(a, i, () => {
8558
+ o.autoUpdate === !1 ? m() : s = gc(a, i, () => {
8520
8559
  m();
8521
8560
  }), n(() => {
8522
8561
  s?.(), s = null, c = null;
@@ -8533,74 +8572,74 @@ function xc(e, t, n = {}) {
8533
8572
  }
8534
8573
  //#endregion
8535
8574
  //#region src/composables/useColorMode.ts
8536
- var Sc = "vibe-color-mode", Cc = {
8575
+ var wc = "vibe-color-mode", Tc = {
8537
8576
  light: "dark",
8538
8577
  dark: "auto",
8539
8578
  auto: "light"
8540
- }, wc = T("auto"), Tc = !1, Ec = [];
8541
- function Dc() {
8579
+ }, Ec = T("auto"), Dc = !1, Oc = [];
8580
+ function kc() {
8542
8581
  return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
8543
8582
  }
8544
- function Oc(e) {
8583
+ function Ac(e) {
8545
8584
  if (typeof document > "u") return;
8546
- let t = e === "auto" ? Dc() : e;
8585
+ let t = e === "auto" ? kc() : e;
8547
8586
  document.documentElement.setAttribute("data-bs-theme", t);
8548
8587
  }
8549
- function kc(e) {
8550
- wc.value = e, Oc(e), Ec.forEach((t) => t(e));
8588
+ function jc(e) {
8589
+ Ec.value = e, Ac(e), Oc.forEach((t) => t(e));
8551
8590
  }
8552
- var Ac = "auto";
8591
+ var Mc = "auto";
8553
8592
  try {
8554
- let e = typeof localStorage < "u" ? localStorage.getItem(Sc) : null;
8555
- e !== null && e in Cc && (Ac = e);
8593
+ let e = typeof localStorage < "u" ? localStorage.getItem(wc) : null;
8594
+ e !== null && e in Tc && (Mc = e);
8556
8595
  } catch {}
8557
- var jc = () => {
8558
- wc.value === "auto" && (Oc("auto"), Ec.forEach((e) => e("auto")));
8559
- }, Mc = null;
8560
- function Nc() {
8561
- typeof window > "u" || (Mc = window.matchMedia("(prefers-color-scheme: dark)"), Mc.addEventListener("change", jc));
8596
+ var Nc = () => {
8597
+ Ec.value === "auto" && (Ac("auto"), Oc.forEach((e) => e("auto")));
8598
+ }, Pc = null;
8599
+ function Fc() {
8600
+ typeof window > "u" || (Pc = window.matchMedia("(prefers-color-scheme: dark)"), Pc.addEventListener("change", Nc));
8562
8601
  }
8563
- function Pc() {
8564
- Mc?.removeEventListener("change", jc), Mc = null;
8602
+ function Ic() {
8603
+ Pc?.removeEventListener("change", Nc), Pc = null;
8565
8604
  }
8566
- typeof window < "u" && (kc(Ac), Nc(), Tc = !0);
8567
- function Fc() {
8605
+ typeof window < "u" && (jc(Mc), Fc(), Dc = !0);
8606
+ function Lc() {
8568
8607
  function e(e) {
8569
- if (e in Cc) {
8608
+ if (e in Tc) {
8570
8609
  try {
8571
- localStorage.setItem(Sc, e);
8610
+ localStorage.setItem(wc, e);
8572
8611
  } catch {}
8573
- kc(e);
8612
+ jc(e);
8574
8613
  }
8575
8614
  }
8576
8615
  function t() {
8577
- if (Tc) return;
8578
- Pc();
8616
+ if (Dc) return;
8617
+ Ic();
8579
8618
  let e = "auto";
8580
8619
  try {
8581
- let t = typeof localStorage < "u" ? localStorage.getItem(Sc) : null;
8582
- t !== null && t in Cc && (e = t);
8620
+ let t = typeof localStorage < "u" ? localStorage.getItem(wc) : null;
8621
+ t !== null && t in Tc && (e = t);
8583
8622
  } catch {}
8584
- kc(e), Nc(), Tc = !0;
8623
+ jc(e), Fc(), Dc = !0;
8585
8624
  }
8586
8625
  function n() {
8587
- Pc();
8626
+ Ic();
8588
8627
  try {
8589
- localStorage.removeItem(Sc);
8628
+ localStorage.removeItem(wc);
8590
8629
  } catch {}
8591
- kc("auto"), Nc(), Tc = !1;
8630
+ jc("auto"), Fc(), Dc = !1;
8592
8631
  }
8593
8632
  function r() {
8594
- e(Cc[wc.value] ?? "auto");
8633
+ e(Tc[Ec.value] ?? "auto");
8595
8634
  }
8596
8635
  function i(e) {
8597
- return Ec.push(e), () => {
8598
- let t = Ec.indexOf(e);
8599
- t !== -1 && Ec.splice(t, 1);
8636
+ return Oc.push(e), () => {
8637
+ let t = Oc.indexOf(e);
8638
+ t !== -1 && Oc.splice(t, 1);
8600
8639
  };
8601
8640
  }
8602
8641
  return {
8603
- colorMode: wc,
8642
+ colorMode: Ec,
8604
8643
  setColorMode: e,
8605
8644
  toggleColorMode: r,
8606
8645
  initColorMode: t,
@@ -8610,6 +8649,6 @@ function Fc() {
8610
8649
  }
8611
8650
  //#endregion
8612
8651
  //#region src/index.ts
8613
- var Ic = jo;
8652
+ var Rc = Mo;
8614
8653
  //#endregion
8615
- export { ht as VibeAccordion, ee as VibeAlert, qi as VibeAutocomplete, te as VibeBadge, Ae as VibeBreadcrumb, ne as VibeButton, ie as VibeButtonGroup, ve as VibeCard, _n as VibeCarousel, Zn as VibeChartBar, Vn as VibeChartLine, rr as VibeChartPie, oe as VibeCloseButton, pe as VibeCol, gt as VibeCollapse, de as VibeContainer, Er as VibeDataTable, ma as VibeDatePicker, na as VibeDraggable, wt as VibeDropdown, ra as VibeDroppable, ki as VibeFileInput, xa as VibeFormCheckbox, Ci as VibeFormDatepicker, eo as VibeFormErrorSummary, Xa as VibeFormGroup, Hr as VibeFormInput, Oa as VibeFormRadio, $r as VibeFormSelect, gi as VibeFormSpinbutton, Fa as VibeFormSwitch, si as VibeFormTextarea, ho as VibeFormWysiwyg, Ee as VibeHero, wn as VibeIcon, vo as VibeInputGroup, yo as VibeLink, at as VibeListGroup, Ft as VibeModal, Fe as VibeNav, Re as VibeNavbar, ze as VibeNavbarBrand, qe as VibeNavbarNav, Ve as VibeNavbarToggle, Bt as VibeOffcanvas, $e as VibePagination, le as VibePlaceholder, xn as VibePopover, st as VibeProgress, aa as VibeResizable, fe as VibeRow, Sn as VibeScrollspy, ue as VibeSkeleton, Mi as VibeSlider, Ji as VibeSortable, ce as VibeSpinner, Vi as VibeStepper, it as VibeTab, tt as VibeTabContent, rt as VibeTabs, qt as VibeToast, an as VibeToastHost, yn as VibeTooltip, Ic as default, nn as resetToastStoreForSSR, Dt as useBackButton, no as useBreakpoints, Fc as useColorMode, Io as useForm, Mo as useFormValidation, q as useId, xc as usePosition, tn as useToast, Ao as vTooltip, No as validators };
8654
+ export { mt as VibeAccordion, U as VibeAlert, Ji as VibeAutocomplete, ee as VibeBadge, ke as VibeBreadcrumb, te as VibeButton, re as VibeButtonGroup, _e as VibeCard, gn as VibeCarousel, Xn as VibeChartBar, Bn as VibeChartLine, nr as VibeChartPie, ae as VibeCloseButton, fe as VibeCol, ht as VibeCollapse, ue as VibeContainer, Tr as VibeDataTable, ha as VibeDatePicker, ra as VibeDraggable, Ct as VibeDropdown, ia as VibeDroppable, Ai as VibeFileInput, Sa as VibeFormCheckbox, Si as VibeFormDatepicker, to as VibeFormErrorSummary, Za as VibeFormGroup, Vr as VibeFormInput, ka as VibeFormRadio, Qr as VibeFormSelect, hi as VibeFormSpinbutton, Ia as VibeFormSwitch, oi as VibeFormTextarea, go as VibeFormWysiwyg, Te as VibeHero, Cn as VibeIcon, yo as VibeInputGroup, bo as VibeLink, it as VibeListGroup, Pt as VibeModal, Pe as VibeNav, Le as VibeNavbar, Re as VibeNavbarBrand, Ke as VibeNavbarNav, Be as VibeNavbarToggle, zt as VibeOffcanvas, Qe as VibePagination, ce as VibePlaceholder, bn as VibePopover, ot as VibeProgress, oa as VibeResizable, de as VibeRow, xn as VibeScrollspy, le as VibeSkeleton, Ni as VibeSlider, Yi as VibeSortable, se as VibeSpinner, Hi as VibeStepper, rt as VibeTab, et as VibeTabContent, nt as VibeTabs, Kt as VibeToast, rn as VibeToastHost, vn as VibeTooltip, Rc as default, tn as resetToastStoreForSSR, Et as useBackButton, ro as useBreakpoints, Lc as useColorMode, Lo as useForm, No as useFormValidation, J as useId, Cc as usePosition, en as useToast, jo as vTooltip, Po as validators };