@wwtdev/bsds-components-vue3 2.3.3 → 2.3.5

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.
@@ -1,9 +1,9 @@
1
- import { computed as p, ref as m, onMounted as W, onUnmounted as oe, shallowRef as ut, watch as N, defineAsyncComponent as Re, openBlock as u, createElementBlock as v, unref as f, createElementVNode as g, renderSlot as E, createBlock as V, resolveDynamicComponent as J, createCommentVNode as w, toDisplayString as T, createVNode as D, normalizeClass as ae, Fragment as j, useAttrs as ie, mergeProps as z, withCtx as O, toHandlers as Pe, onBeforeUnmount as at, onBeforeMount as nt, createTextVNode as F, renderList as Z, withDirectives as Be, Transition as Ke, vShow as $e, provide as re, Teleport as ct, normalizeStyle as ft, inject as se, withModifiers as Ye, nextTick as me, isRef as pt, useSlots as vt } from "vue";
2
- import { v4 as lt } from "uuid";
3
- import { BsIconCaretDown as ot, BsIconWarning as ze, BsIconClose as Se, BsIconCalendar as it, BsIconCaretSort as ht, BsIconSearch as bt, BsIconCaretLeftDouble as mt, BsIconCaretLeft as gt, BsIconCaretRight as yt, BsIconCaretRightDouble as Bt, BsIconActionEllipsis as $t, BsIconCircleExclamation as St, BsIconThumbsUpStroke as wt } from "@wwtdev/bsds-icons-vue3";
4
- import { DatePicker as kt } from "v-calendar";
5
- import { Chart as qe, BarController as It, BarElement as Ct, CategoryScale as Tt, LinearScale as xt, Legend as At, Tooltip as Lt } from "chart.js";
6
- import { getSupportedCallingCodes as Vt, getRegionCodeForCountryCode as Et, parsePhoneNumber as Qe } from "awesome-phonenumber";
1
+ import { computed as v, ref as m, onMounted as Y, onUnmounted as de, shallowRef as ft, watch as z, defineAsyncComponent as je, openBlock as d, createElementBlock as b, unref as p, createElementVNode as $, renderSlot as D, createBlock as L, resolveDynamicComponent as _, createCommentVNode as k, toDisplayString as x, createVNode as V, normalizeClass as ne, Fragment as G, useAttrs as le, mergeProps as M, withCtx as E, toHandlers as ze, onBeforeUnmount as at, onBeforeMount as nt, nextTick as pe, createTextVNode as H, renderList as J, withDirectives as Se, Transition as Ye, vShow as we, useSlots as lt, provide as ue, Teleport as pt, h as se, inject as ce, createSlots as vt, isRef as ht } from "vue";
2
+ import { v4 as ot } from "uuid";
3
+ import { BsIconCaretDown as it, BsIconWarning as Ne, BsIconClose as ke, BsIconCalendar as rt, BsIconCaretSort as bt, BsIconSearch as mt, BsIconCaretLeftDouble as gt, BsIconCaretLeft as yt, BsIconCaretRight as Bt, BsIconCaretRightDouble as $t, BsIconActionEllipsis as St, BsIconCircleExclamation as wt, BsIconThumbsUpStroke as kt } from "@wwtdev/bsds-icons-vue3";
4
+ import { DatePicker as It } from "v-calendar";
5
+ import { Chart as Pe, BarController as Ct, BarElement as Tt, CategoryScale as xt, LinearScale as At, Legend as Lt, Tooltip as Vt } from "chart.js";
6
+ import { getSupportedCallingCodes as Et, getRegionCodeForCountryCode as Dt, parsePhoneNumber as Qe } from "awesome-phonenumber";
7
7
  const Xe = {
8
8
  href: "a",
9
9
  linkTo: "a",
@@ -11,116 +11,117 @@ const Xe = {
11
11
  onClick: "button",
12
12
  type: "button"
13
13
  };
14
- function we(e, a, t = "button") {
15
- const n = Dt(e, a, t), l = p(() => {
16
- const i = n.value === "button", o = {};
17
- return i ? (o.type = a.type || "button", o.autocomplete = "off", e.disabled && (o.disabled = !0)) : e.disabled && (o["aria-disabled"] = "true", o.tabindex = "-1"), o;
18
- }), r = p(() => {
19
- const i = { ...a, ...l.value };
20
- return delete i.href, i;
21
- }), d = p(() => e.linkTo || e.href);
22
- return { rootTag: n, attrsToBind: r, hrefUrl: d };
14
+ function Ie(e, a, t = "button") {
15
+ const n = Ot(e, a, t), l = v(() => {
16
+ const o = n.value === "button", s = {};
17
+ return o ? (s.type = a.type || "button", s.autocomplete = "off", e.disabled && (s.disabled = !0)) : e.disabled && (s["aria-disabled"] = "true", s.tabindex = "-1"), s;
18
+ }), i = v(() => {
19
+ const o = { ...a, ...l.value };
20
+ return delete o.href, o;
21
+ }), u = v(() => e.linkTo || e.href);
22
+ return { rootTag: n, attrsToBind: i, hrefUrl: u };
23
23
  }
24
- function Dt(e, a, t) {
25
- const n = Object.keys(Xe).find((l) => Ot(e, a, l));
24
+ function Ot(e, a, t) {
25
+ const n = Object.keys(Xe).find((l) => qt(e, a, l));
26
26
  return m(Xe[n] || t);
27
27
  }
28
- function Ot(e, a, t) {
28
+ function qt(e, a, t) {
29
29
  return e[t] || a[t];
30
30
  }
31
- const qt = (e, a) => {
31
+ const Pt = (e, a) => {
32
32
  const t = (n) => {
33
33
  e.some((l) => {
34
- var r;
35
- return (r = l.value) == null ? void 0 : r.contains(n.target);
34
+ var i;
35
+ return (i = l.value) == null ? void 0 : i.contains(n.target);
36
36
  }) || a(n);
37
37
  };
38
- W(() => {
38
+ Y(() => {
39
39
  document.addEventListener("click", t);
40
- }), oe(() => {
40
+ }), de(() => {
41
41
  document.removeEventListener("click", t);
42
42
  });
43
43
  };
44
- function ke(e) {
45
- const a = p(() => e.linkTo || e.href || ""), t = p(() => {
46
- var r, d;
47
- return ((d = (r = a.value) == null ? void 0 : r.startsWith) == null ? void 0 : d.call(r, "/")) || !1;
48
- }), n = p(() => {
49
- var r, d;
50
- return t.value && ((r = e.router) == null ? void 0 : r.navigateTo) || ((d = e.router) == null ? void 0 : d.push) || null;
44
+ function Ce(e) {
45
+ const a = v(() => e.linkTo || e.href || ""), t = v(() => {
46
+ var i, u;
47
+ return ((u = (i = a.value) == null ? void 0 : i.startsWith) == null ? void 0 : u.call(i, "/")) || !1;
48
+ }), n = v(() => {
49
+ var i, u;
50
+ return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((u = e.router) == null ? void 0 : u.push) || null;
51
51
  });
52
- function l(r) {
52
+ function l(i) {
53
53
  if (e.disabled) {
54
- r.preventDefault(), r.stopImmediatePropagation();
54
+ i.preventDefault(), i.stopImmediatePropagation();
55
55
  return;
56
56
  }
57
57
  if (!a.value || !n.value)
58
58
  return;
59
- r.target.closest("a").href === `${window.location.origin}${a.value}` && (r.preventDefault(), n.value(a.value));
59
+ i.target.closest("a").href === `${window.location.origin}${a.value}` && (i.preventDefault(), n.value(a.value));
60
60
  }
61
61
  return { onLinkClick: l };
62
62
  }
63
63
  function Ze(e) {
64
64
  return e.split("-").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("");
65
65
  }
66
- const ge = (e, a) => {
66
+ const ye = (e, a) => {
67
67
  function t(l) {
68
68
  if (!l)
69
69
  return null;
70
- const r = l.startsWith("bs-") ? Ze(l) : `BsIcon${Ze(l)}`;
71
- return Re(async () => {
72
- const { [r]: d } = await import("@wwtdev/bsds-icons-vue3");
73
- return d;
70
+ const i = l.startsWith("bs-") ? Ze(l) : `BsIcon${Ze(l)}`;
71
+ return je(async () => {
72
+ const { [i]: u } = await import("@wwtdev/bsds-icons-vue3");
73
+ return u;
74
74
  });
75
75
  }
76
- const n = ut();
77
- return n.value = t(e[a]), N(() => e[a], async (l) => n.value = t(l)), { icon: n };
76
+ const n = ft();
77
+ return n.value = t(e[a]), z(() => e[a], async (l) => n.value = t(l)), { icon: n };
78
78
  };
79
- function X(e = 1) {
79
+ function Z(e = 1) {
80
80
  const a = [];
81
81
  for (let t = 0; t < e; t++)
82
82
  a.push(m(""));
83
- return W(() => {
84
- a.forEach((t) => t.value = `id-${lt()}`);
83
+ return Y(() => {
84
+ a.forEach((t) => t.value = `id-${ot()}`);
85
85
  }), a;
86
86
  }
87
- const Ie = (e, a, t = void 0) => {
87
+ const Te = (e, a, t = void 0) => {
88
88
  const n = (l) => {
89
89
  e.includes(l.key) && a(l);
90
90
  };
91
- W(() => {
91
+ Y(() => {
92
92
  ((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", n);
93
- }), oe(() => {
93
+ }), de(() => {
94
94
  ((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", n);
95
95
  });
96
96
  }, Mt = (e, a, t) => {
97
97
  let n = null;
98
- W(() => {
98
+ Y(() => {
99
99
  n = new MutationObserver(a), n.observe(e.value, t);
100
- }), oe(() => {
100
+ }), de(() => {
101
101
  n.disconnect();
102
102
  });
103
- }, fe = (e) => {
103
+ }, ve = (e) => {
104
104
  const a = m(!1);
105
- return W(() => {
105
+ return Y(() => {
106
106
  e.enterControlled ? a.value = e.enterTrigger : a.value = e.shown;
107
- }), N(() => e.shown, (t) => {
107
+ }), z(() => e.shown, (t) => {
108
108
  a.value = t;
109
- }), N(() => e.enterTrigger, (t) => {
109
+ }), z(() => e.enterTrigger, (t) => {
110
110
  a.value = t;
111
- }), N(() => e.leaveTrigger, (t) => {
111
+ }), z(() => e.leaveTrigger, (t) => {
112
112
  t && (a.value = !1);
113
113
  }), { transition: a };
114
- }, Pt = ["id", "data-stacked"], zt = ["data-open"], Nt = ["aria-controls", "aria-expanded"], Rt = {
114
+ }, zt = ["id", "data-stacked"], Nt = ["data-open"], Rt = ["aria-controls", "aria-expanded"], jt = {
115
115
  key: 0,
116
116
  "data-position": "start",
117
117
  style: { display: "inline-flex" }
118
- }, jt = ["id", "aria-level"], Ft = ["aria-labelledby", "data-open", "id"], Ll = {
118
+ }, Ft = ["id"], Ut = ["aria-labelledby", "data-open", "id"], Al = {
119
119
  __name: "BsAccordion",
120
120
  props: {
121
121
  controlled: { type: Boolean, default: !1 },
122
122
  icon: { type: String },
123
123
  headerText: { type: String, required: !0 },
124
+ /** @Deprecated */
124
125
  headingLevel: {
125
126
  type: Number,
126
127
  validator: (e) => [2, 3, 4, 5].includes(e)
@@ -131,59 +132,55 @@ const Ie = (e, a, t = void 0) => {
131
132
  },
132
133
  emits: ["toggled"],
133
134
  setup(e, { emit: a }) {
134
- const t = e, n = a, l = m(null), r = m(!1), { icon: d } = ge(t, "icon"), [i] = X(), o = p(() => i.value + "-content"), s = p(() => i.value + "-title"), c = p(() => t.openItemId && t.openItemId === i.value || t.openItem === !0), h = p(() => t.controlled ? c.value : r.value);
135
- function I() {
136
- n("toggled", i.value), t.controlled || (r.value = !r.value);
135
+ const t = e, n = a, l = m(null), i = m(!1), { icon: u } = ye(t, "icon"), [o] = Z(), s = v(() => o.value + "-content"), r = v(() => o.value + "-title"), c = v(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), f = v(() => t.controlled ? c.value : i.value);
136
+ function T() {
137
+ n("toggled", o.value), t.controlled || (i.value = !i.value);
137
138
  }
138
- return ($, x) => (u(), v("div", {
139
- id: f(i),
139
+ return (y, S) => (d(), b("div", {
140
+ id: p(o),
140
141
  ref_key: "containerRef",
141
142
  ref: l,
142
143
  class: "bs-accordion",
143
144
  "data-component": "bs-accordion",
144
145
  "data-stacked": e.stacked
145
146
  }, [
146
- g("header", {
147
+ $("header", {
147
148
  part: "header",
148
- "data-open": h.value
149
+ "data-open": f.value
149
150
  }, [
150
- g("button", {
151
- "aria-controls": o.value,
152
- "aria-expanded": h.value,
151
+ $("button", {
152
+ "aria-controls": s.value,
153
+ "aria-expanded": f.value,
153
154
  type: "button",
154
- onClick: I
155
+ onClick: T
155
156
  }, [
156
- e.icon || $.$slots.icon ? (u(), v("span", Rt, [
157
- E($.$slots, "icon", {}, () => [
158
- e.icon ? (u(), V(J(f(d) ? f(d) : "span"), { key: 0 })) : w("", !0)
157
+ e.icon || y.$slots.icon ? (d(), b("span", jt, [
158
+ D(y.$slots, "icon", {}, () => [
159
+ e.icon ? (d(), L(_(p(u) ? p(u) : "span"), { key: 0 })) : k("", !0)
159
160
  ])
160
- ])) : w("", !0),
161
- g("span", {
162
- id: s.value,
163
- "aria-level": e.headingLevel,
164
- role: "heading"
165
- }, T(e.headerText), 9, jt),
166
- D(f(ot), {
161
+ ])) : k("", !0),
162
+ $("span", { id: r.value }, x(e.headerText), 9, Ft),
163
+ V(p(it), {
167
164
  size: "md",
168
165
  "data-position": "end"
169
166
  })
170
- ], 8, Nt)
171
- ], 8, zt),
172
- g("div", {
173
- "aria-labelledby": s.value,
167
+ ], 8, Rt)
168
+ ], 8, Nt),
169
+ $("div", {
170
+ "aria-labelledby": r.value,
174
171
  class: "bs-accordion-content",
175
- "data-open": h.value,
176
- id: o.value,
172
+ "data-open": f.value,
173
+ id: s.value,
177
174
  part: "content",
178
175
  role: "region"
179
176
  }, [
180
- g("div", null, [
181
- E($.$slots, "default")
177
+ $("div", null, [
178
+ D(y.$slots, "default")
182
179
  ])
183
- ], 8, Ft)
184
- ], 8, Pt));
180
+ ], 8, Ut)
181
+ ], 8, zt));
185
182
  }
186
- }, Ut = ["data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant", "aria-label"], Wt = {
183
+ }, Wt = ["aria-label", "data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant"], Gt = {
187
184
  __name: "BsBadge",
188
185
  props: {
189
186
  /** Pass value to set `data-badge-color`. */
@@ -230,34 +227,35 @@ const Ie = (e, a, t = void 0) => {
230
227
  }
231
228
  },
232
229
  setup(e) {
233
- const a = e, t = m(null), n = p(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), l = p(() => {
234
- var o, s;
235
- const r = ((s = (o = t.value) == null ? void 0 : o.textContent) == null ? void 0 : s.trim()) || "", d = n.value ? n.value + " " : "";
236
- if (!d && !a.dot)
237
- return r;
238
- const i = a.count !== 1 ? "s" : "";
239
- return `${r ? `${r}, ` : ""}${d}${a.label}${i}`;
230
+ const a = e, t = m(null), n = v(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), l = v(() => {
231
+ var s, r;
232
+ const i = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", u = n.value ? n.value + " " : "";
233
+ if (!u && !a.dot)
234
+ return i;
235
+ const o = a.count !== 1 ? "s" : "";
236
+ return `${i ? `${i}, ` : ""}${u}${a.label}${o}`;
240
237
  });
241
- return (r, d) => (u(), v("span", {
238
+ return (i, u) => (d(), b("span", {
242
239
  ref_key: "hostRef",
243
240
  ref: t,
244
- class: ae({ "bs-badge": e.dot || n.value }),
241
+ "aria-label": l.value,
242
+ class: ne({ "bs-badge": e.dot || n.value }),
245
243
  "data-badge-color": e.color,
246
244
  "data-component": "bs-badge",
247
245
  "data-count": n.value,
248
246
  "data-position": e.position,
249
247
  "data-show-zero": e.showZero,
250
248
  "data-variant": e.variant,
251
- "aria-label": l.value
249
+ role: "status"
252
250
  }, [
253
- e.variant !== "notext" ? E(r.$slots, "default", { key: 0 }) : w("", !0)
254
- ], 10, Ut));
251
+ e.variant !== "notext" ? D(i.$slots, "default", { key: 0 }) : k("", !0)
252
+ ], 10, Wt));
255
253
  }
256
- }, Gt = {
254
+ }, Ht = {
257
255
  key: 0,
258
256
  role: "alert",
259
257
  class: "bs-banner"
260
- }, Ht = { class: "bs-banner-content" }, Kt = { class: "bs-banner-warning-icon" }, Vl = {
258
+ }, Kt = { class: "bs-banner-content" }, Yt = { class: "bs-banner-warning-icon" }, Ll = {
261
259
  __name: "BsBanner",
262
260
  emits: ["dismiss"],
263
261
  setup(e, { emit: a }) {
@@ -265,28 +263,28 @@ const Ie = (e, a, t = void 0) => {
265
263
  function l() {
266
264
  n.value = !0, t("dismiss");
267
265
  }
268
- return (r, d) => n.value ? w("", !0) : (u(), v("div", Gt, [
269
- g("div", Ht, [
270
- g("div", Kt, [
271
- D(f(ze), { size: "lg" })
266
+ return (i, u) => n.value ? k("", !0) : (d(), b("div", Ht, [
267
+ $("div", Kt, [
268
+ $("div", Yt, [
269
+ V(p(Ne), { size: "lg" })
272
270
  ]),
273
- g("p", null, [
274
- E(r.$slots, "default")
271
+ $("p", null, [
272
+ D(i.$slots, "default")
275
273
  ]),
276
- g("button", {
274
+ $("button", {
277
275
  type: "button",
278
276
  title: "Close Banner",
279
277
  onClick: l
280
278
  }, [
281
- D(f(Se))
279
+ V(p(ke))
282
280
  ])
283
281
  ])
284
282
  ]));
285
283
  }
286
- }, Yt = {
284
+ }, Qt = {
287
285
  class: "bs-field-details",
288
286
  "data-component": "bs-field-details"
289
- }, Qt = ["id", "data-error"], Xt = ["data-error"], pe = {
287
+ }, Xt = ["id", "data-error"], Zt = ["data-error"], he = {
290
288
  __name: "BsFieldDetails",
291
289
  props: {
292
290
  /** The number of characters that have been entered by the user. */
@@ -306,26 +304,26 @@ const Ie = (e, a, t = void 0) => {
306
304
  hintId: String
307
305
  },
308
306
  setup(e) {
309
- const a = e, t = p(() => a.error && a.errorMsg || a.hint);
310
- return (n, l) => (u(), v("div", Yt, [
311
- t.value ? (u(), v("span", {
307
+ const a = e, t = v(() => a.error && a.errorMsg || a.hint);
308
+ return (n, l) => (d(), b("div", Qt, [
309
+ t.value ? (d(), b("span", {
312
310
  key: 0,
313
311
  id: e.hintId,
314
312
  class: "bs-hint",
315
313
  "data-error": e.error
316
- }, T(t.value), 9, Qt)) : w("", !0),
317
- e.charMax ? (u(), v("span", {
314
+ }, x(t.value), 9, Xt)) : k("", !0),
315
+ e.charMax ? (d(), b("span", {
318
316
  key: 1,
319
317
  "aria-description": "character count over character limit for the preceding text field",
320
318
  class: "bs-character-count",
321
319
  "data-error": a.charCount > a.charMax
322
- }, T(a.charCount || "0") + " / " + T(a.charMax), 9, Xt)) : w("", !0)
320
+ }, x(a.charCount || "0") + " / " + x(a.charMax), 9, Zt)) : k("", !0)
323
321
  ]));
324
322
  }
325
- }, Zt = ["data-disabled", "for"], Jt = /* @__PURE__ */ g("span", {
323
+ }, Jt = ["data-disabled", "for"], _t = /* @__PURE__ */ $("span", {
326
324
  "data-required": "true",
327
325
  "aria-hidden": "true"
328
- }, " *", -1), _t = /* @__PURE__ */ g("span", { class: "visually-hidden" }, "required", -1), ne = {
326
+ }, " *", -1), ea = /* @__PURE__ */ $("span", { class: "visually-hidden" }, "required", -1), oe = {
329
327
  __name: "BsLabel",
330
328
  props: {
331
329
  disabled: { type: Boolean, default: !1 },
@@ -334,22 +332,22 @@ const Ie = (e, a, t = void 0) => {
334
332
  required: { type: Boolean, default: !1 }
335
333
  },
336
334
  setup(e) {
337
- return (a, t) => (u(), v("label", {
338
- class: ae(["bs-label", e.hide ? "visually-hidden" : ""]),
335
+ return (a, t) => (d(), b("label", {
336
+ class: ne(["bs-label", e.hide ? "visually-hidden" : ""]),
339
337
  "data-component": "bs-label",
340
338
  "data-disabled": e.disabled,
341
339
  for: e.for
342
340
  }, [
343
- g("span", null, [
344
- E(a.$slots, "default")
341
+ $("span", null, [
342
+ D(a.$slots, "default")
345
343
  ]),
346
- e.required ? (u(), v(j, { key: 0 }, [
347
- Jt,
348
- _t
349
- ], 64)) : w("", !0)
350
- ], 10, Zt));
344
+ e.required ? (d(), b(G, { key: 0 }, [
345
+ _t,
346
+ ea
347
+ ], 64)) : k("", !0)
348
+ ], 10, Jt));
351
349
  }
352
- }, ea = ["data-error", "id", "value"], ve = {
350
+ }, ta = ["data-error", "id", "value"], be = {
353
351
  __name: "BsInput",
354
352
  props: {
355
353
  error: {
@@ -364,21 +362,21 @@ const Ie = (e, a, t = void 0) => {
364
362
  },
365
363
  emits: ["update:modelValue"],
366
364
  setup(e, { emit: a }) {
367
- const t = e, n = a, l = ie(), r = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
368
- function d(i) {
369
- const o = l.type === "number" ? parseInt(i.target.value) : i.target.value;
370
- n("update:modelValue", o);
365
+ const t = e, n = a, l = le(), i = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
366
+ function u(o) {
367
+ const s = l.type === "number" ? parseInt(o.target.value) : o.target.value;
368
+ n("update:modelValue", s);
371
369
  }
372
- return (i, o) => (u(), v("input", z({
370
+ return (o, s) => (d(), b("input", M({
373
371
  class: "bs-input",
374
372
  "data-component": "bs-input",
375
373
  "data-error": e.error,
376
- id: i.$attrs.id || e.inputId,
374
+ id: o.$attrs.id || e.inputId,
377
375
  value: e.value || e.modelValue,
378
- onInput: d
379
- }, r.value), null, 16, ea));
376
+ onInput: u
377
+ }, i.value), null, 16, ta));
380
378
  }
381
- }, ta = ["data-disabled", "data-error", "data-variant", "data-multifocus"], Ce = {
379
+ }, aa = ["data-disabled", "data-error", "data-variant", "data-multifocus"], xe = {
382
380
  __name: "BsInputAddon",
383
381
  props: {
384
382
  disabled: { type: Boolean, default: !1 },
@@ -387,7 +385,7 @@ const Ie = (e, a, t = void 0) => {
387
385
  variant: { type: String, validator: (e) => e === "inner-bordered" }
388
386
  },
389
387
  setup(e) {
390
- return (a, t) => (u(), v("div", {
388
+ return (a, t) => (d(), b("div", {
391
389
  class: "bs-input-addon",
392
390
  "data-component": "bs-input-addon",
393
391
  "data-disabled": e.disabled,
@@ -395,10 +393,10 @@ const Ie = (e, a, t = void 0) => {
395
393
  "data-variant": e.variant,
396
394
  "data-multifocus": e.multifocus
397
395
  }, [
398
- E(a.$slots, "default")
399
- ], 8, ta));
396
+ D(a.$slots, "default")
397
+ ], 8, aa));
400
398
  }
401
- }, aa = {
399
+ }, na = {
402
400
  __name: "BsInputDateSingle",
403
401
  props: {
404
402
  disabled: {
@@ -431,35 +429,35 @@ const Ie = (e, a, t = void 0) => {
431
429
  }
432
430
  },
433
431
  setup(e) {
434
- return (a, t) => (u(), V(Ce, {
432
+ return (a, t) => (d(), L(xe, {
435
433
  disabled: e.disabled,
436
434
  error: e.error
437
435
  }, {
438
- default: O(() => [
439
- D(f(it)),
440
- D(ve, z({
436
+ default: E(() => [
437
+ V(p(rt)),
438
+ V(be, M({
441
439
  "data-autowidth": "",
442
440
  disabled: e.disabled,
443
441
  id: e.inputId,
444
442
  "model-value": e.modelValue,
445
443
  placeholder: e.placeholder,
446
444
  required: e.required
447
- }, Pe(e.listeners)), null, 16, ["disabled", "id", "model-value", "placeholder", "required"])
445
+ }, ze(e.listeners)), null, 16, ["disabled", "id", "model-value", "placeholder", "required"])
448
446
  ]),
449
447
  _: 1
450
448
  }, 8, ["disabled", "error"]));
451
449
  }
452
450
  };
453
- function Ne(e, a, t) {
451
+ function Re(e, a, t) {
454
452
  let n;
455
453
  return function() {
456
- let l = this, r = arguments;
457
- clearTimeout(n), t && !n && e.apply(l, r), n = setTimeout(function() {
458
- n = null, t || e.apply(l, r);
454
+ let l = this, i = arguments;
455
+ clearTimeout(n), t && !n && e.apply(l, i), n = setTimeout(function() {
456
+ n = null, t || e.apply(l, i);
459
457
  }, a);
460
458
  };
461
459
  }
462
- const na = ["disabled", "id", "model-value"], la = ["disabled", "id", "model-value"], oa = {
460
+ const la = ["disabled", "id", "model-value"], oa = ["disabled", "id", "model-value"], ia = {
463
461
  __name: "BsInputDateRange",
464
462
  props: {
465
463
  disabled: {
@@ -497,69 +495,69 @@ const na = ["disabled", "id", "model-value"], la = ["disabled", "id", "model-val
497
495
  emits: ["ui-focusin", "ui-input"],
498
496
  setup(e, { emit: a }) {
499
497
  const t = a, n = m(null), l = m(null);
500
- function r(s) {
498
+ function i(r) {
501
499
  const c = new Event("change", { bubbles: !0, cancelable: !0 });
502
- s.dispatchEvent(c);
500
+ r.dispatchEvent(c);
503
501
  }
504
- function d(s) {
505
- const { value: c } = s.target, [h, I] = c.split(/ to | - /);
506
- n.value.value = h || "", l.value.value = I || "", r(n.value), r(l.value);
502
+ function u(r) {
503
+ const { value: c } = r.target, [f, T] = c.split(/ to | - /);
504
+ n.value.value = f || "", l.value.value = T || "", i(n.value), i(l.value);
507
505
  }
508
- const i = Ne(d, 1e3);
509
- function o(s) {
510
- t("ui-input"), i(s);
506
+ const o = Re(u, 1e3);
507
+ function s(r) {
508
+ t("ui-input"), o(r);
511
509
  }
512
- return (s, c) => (u(), V(Ce, {
510
+ return (r, c) => (d(), L(xe, {
513
511
  disabled: e.disabled,
514
512
  error: e.error
515
513
  }, {
516
- default: O(() => [
517
- D(f(it)),
518
- D(ve, {
514
+ default: E(() => [
515
+ V(p(rt)),
516
+ V(be, {
519
517
  "data-autowidth": "",
520
518
  disabled: e.disabled,
521
519
  id: e.inputId,
522
520
  "model-value": e.inputValueFmt,
523
521
  placeholder: e.placeholder,
524
522
  required: e.required,
525
- onFocusin: c[0] || (c[0] = (h) => s.$emit("ui-focusin")),
526
- onInput: o,
527
- onChange: d
523
+ onFocusin: c[0] || (c[0] = (f) => r.$emit("ui-focusin")),
524
+ onInput: s,
525
+ onChange: u
528
526
  }, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
529
- g("input", z({
527
+ $("input", M({
530
528
  ref_key: "hiddenStart",
531
529
  ref: n,
532
530
  type: "hidden",
533
531
  disabled: e.disabled,
534
532
  id: `${e.inputId}-start`,
535
533
  "model-value": e.inputValue.start
536
- }, Pe(e.listeners.start, !0)), null, 16, na),
537
- g("input", z({
534
+ }, ze(e.listeners.start, !0)), null, 16, la),
535
+ $("input", M({
538
536
  ref_key: "hiddenEnd",
539
537
  ref: l,
540
538
  type: "hidden",
541
539
  disabled: e.disabled,
542
540
  id: `${e.inputId}-end`,
543
541
  "model-value": e.inputValue.end
544
- }, Pe(e.listeners.end, !0)), null, 16, la)
542
+ }, ze(e.listeners.end, !0)), null, 16, oa)
545
543
  ]),
546
544
  _: 1
547
545
  }, 8, ["disabled", "error"]));
548
546
  }
549
547
  };
550
- function ia(e) {
548
+ function ra(e) {
551
549
  var a, t;
552
550
  return ((t = (a = e == null ? void 0 : e.classList) == null ? void 0 : a.contains) == null ? void 0 : t.call(a, "vc-arrow")) && (e.classList.contains("vc-prev") || e.classList.contains("vc-next"));
553
551
  }
554
- function ra(e) {
552
+ function sa(e) {
555
553
  return e === " " || e === "Spacebar" || e === "Enter";
556
554
  }
557
555
  function Je(e) {
558
- ia(e == null ? void 0 : e.target) && ra(e == null ? void 0 : e.key) && e.preventDefault();
556
+ ra(e == null ? void 0 : e.target) && sa(e == null ? void 0 : e.key) && e.preventDefault();
559
557
  }
560
- function sa(e) {
558
+ function da(e) {
561
559
  let a;
562
- W(() => {
560
+ Y(() => {
563
561
  var t, n, l;
564
562
  a = (t = e == null ? void 0 : e.value) == null ? void 0 : t.popoverRef, (l = (n = a == null ? void 0 : a.$el) == null ? void 0 : n.addEventListener) == null || l.call(n, "keydown", Je);
565
563
  }), at(() => {
@@ -573,15 +571,15 @@ function _e(e, a, t = []) {
573
571
  n = window.matchMedia(e), n.addEventListener("change", a), a(n);
574
572
  }), at(() => {
575
573
  n.removeEventListener("change", a), n = null;
576
- }), t.length && N(t, () => a(n));
574
+ }), t.length && z(t, () => a(n));
577
575
  }
578
- const je = [
576
+ const Fe = [
579
577
  "aria-describedby",
580
578
  "aria-label",
581
579
  "form",
582
580
  "id",
583
581
  "name"
584
- ], da = [
582
+ ], ua = [
585
583
  "aria-describedby",
586
584
  "aria-label",
587
585
  "autocomplete",
@@ -591,7 +589,7 @@ const je = [
591
589
  "multiple",
592
590
  "name",
593
591
  "size"
594
- ], ua = [
592
+ ], ca = [
595
593
  "aria-describedby",
596
594
  "aria-label",
597
595
  "autocapitalize",
@@ -609,7 +607,7 @@ const je = [
609
607
  "rows",
610
608
  "spellcheck",
611
609
  "wrap"
612
- ], ce = [
610
+ ], Be = [
613
611
  "aria-describedby",
614
612
  "aria-label",
615
613
  "autocapitalize",
@@ -630,13 +628,13 @@ const je = [
630
628
  "size",
631
629
  "step"
632
630
  ];
633
- function U(e, a = []) {
631
+ function K(e, a = []) {
634
632
  const t = {}, n = {};
635
633
  return Object.keys(e).forEach((l) => {
636
634
  a.includes(l) ? t[l] = e[l] : n[l] = e[l];
637
635
  }), { filtered: t, remaining: n };
638
636
  }
639
- const ca = ["data-range"], et = "(min-width: 752px)", El = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
637
+ const fa = ["data-range"], et = "(min-width: 752px)", Vl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
640
638
  __name: "BsCalendar",
641
639
  props: {
642
640
  disabled: {
@@ -699,7 +697,7 @@ const ca = ["data-range"], et = "(min-width: 752px)", El = /* @__PURE__ */ Objec
699
697
  },
700
698
  emits: ["update:modelValue"],
701
699
  setup(e, { emit: a }) {
702
- const t = e, n = m(null), l = m(1), r = m(null), [d, i] = X(2), o = m(1), { filtered: s, remaining: c } = U(ie(), [
700
+ const t = e, n = m(null), l = m(1), i = m(null), [u, o] = Z(2), s = m(1), { filtered: r, remaining: c } = K(le(), [
703
701
  "attributes",
704
702
  "expanded",
705
703
  "first-day-of-week",
@@ -707,43 +705,52 @@ const ca = ["data-range"], et = "(min-width: 752px)", El = /* @__PURE__ */ Objec
707
705
  "masks",
708
706
  "rows",
709
707
  "trim-weeks"
710
- ]), h = p(() => t.inputId || d.value), I = p(() => ({ range: t.isRange })), $ = p(() => !!(t.error && t.errorMsg || t.hint)), x = p(() => t.step), S = p(() => t.variant);
711
- sa(n), _e(
708
+ ]), f = v(() => t.inputId || u.value), T = v(() => ({ range: t.isRange })), y = v(() => !!(t.error && t.errorMsg || t.hint)), S = v(() => t.step), w = v(() => t.variant);
709
+ da(n), _e(
712
710
  et,
713
- (b) => l.value = b != null && b.matches && S.value == "2-col" ? 2 : 1,
714
- [S]
711
+ (h) => l.value = h != null && h.matches && w.value == "2-col" ? 2 : 1,
712
+ [w]
715
713
  ), _e(
716
714
  et,
717
- (b) => o.value = b != null && b.matches && S.value == "2-col" ? x.value : 1,
718
- [x, S]
719
- );
720
- function k(b) {
721
- return t.isRange && b.start && b.end ? `${b.start} to ${b.end}` : !t.isRange && b ? b : "";
715
+ (h) => s.value = h != null && h.matches && w.value == "2-col" ? S.value : 1,
716
+ [S, w]
717
+ ), z(() => {
718
+ var h, C;
719
+ return (C = (h = n.value) == null ? void 0 : h.popoverRef) == null ? void 0 : C.isVisible;
720
+ }, (h) => {
721
+ h && pe(B);
722
+ });
723
+ function I(h) {
724
+ return t.isRange && h.start && h.end ? `${h.start} to ${h.end}` : !t.isRange && h ? h : "";
722
725
  }
723
- function q(b) {
724
- !t.isRange || r.value.contains(b.relatedTarget) || n.value.hidePopover();
726
+ function q(h) {
727
+ !t.isRange || i.value.contains(h.relatedTarget) || n.value.hidePopover();
728
+ }
729
+ function B() {
730
+ const h = i.value.querySelector("button.vc-prev"), C = i.value.querySelector("button.vc-next");
731
+ h && h.setAttribute("aria-label", "Previous month"), C && C.setAttribute("aria-label", "Next month");
725
732
  }
726
- return (b, B) => (u(), v("div", z({
733
+ return (h, C) => (d(), b("div", M({
727
734
  ref_key: "container",
728
- ref: r,
735
+ ref: i,
729
736
  class: "bs-calendar",
730
737
  "data-range": e.isRange,
731
738
  onFocusout: q
732
- }, f(c)), [
733
- e.label || b.$slots.label ? (u(), V(ne, {
739
+ }, p(c)), [
740
+ e.label || h.$slots.label ? (d(), L(oe, {
734
741
  key: 0,
735
- for: h.value,
742
+ for: f.value,
736
743
  disabled: e.disabled,
737
744
  required: e.required
738
745
  }, {
739
- default: O(() => [
740
- E(b.$slots, "label", {}, () => [
741
- F(T(e.label), 1)
746
+ default: E(() => [
747
+ D(h.$slots, "label", {}, () => [
748
+ H(x(e.label), 1)
742
749
  ])
743
750
  ]),
744
751
  _: 3
745
- }, 8, ["for", "disabled", "required"])) : w("", !0),
746
- D(f(kt), z({
752
+ }, 8, ["for", "disabled", "required"])) : k("", !0),
753
+ V(p(It), M({
747
754
  ref_key: "calendar",
748
755
  ref: n,
749
756
  columns: l.value,
@@ -752,50 +759,50 @@ const ca = ["data-range"], et = "(min-width: 752px)", El = /* @__PURE__ */ Objec
752
759
  "min-date": e.minDate,
753
760
  mode: "date",
754
761
  "model-value": e.modelValue,
755
- "model-modifiers": I.value,
762
+ "model-modifiers": T.value,
756
763
  popover: { visibility: "focus" },
757
764
  rows: 1,
758
- step: o.value,
759
- "onUpdate:modelValue": B[0] || (B[0] = (A) => b.$emit("update:modelValue", A))
760
- }, f(s)), {
761
- default: O(({ inputValue: A, inputEvents: C, showPopover: M }) => [
762
- e.isRange ? (u(), V(oa, {
765
+ step: s.value,
766
+ "onUpdate:modelValue": C[0] || (C[0] = (O) => h.$emit("update:modelValue", O))
767
+ }, p(r)), {
768
+ default: E(({ inputValue: O, inputEvents: j, showPopover: R }) => [
769
+ e.isRange ? (d(), L(ia, {
763
770
  key: 1,
764
771
  disabled: e.disabled,
765
772
  error: e.error,
766
- "hidden-end-ref": b.inputEnd,
767
- "hidden-start-ref": b.inputStart,
768
- "input-id": h.value,
769
- "input-value": A,
770
- "input-value-fmt": k(A),
771
- listeners: C,
773
+ "hidden-end-ref": h.inputEnd,
774
+ "hidden-start-ref": h.inputStart,
775
+ "input-id": f.value,
776
+ "input-value": O,
777
+ "input-value-fmt": I(O),
778
+ listeners: j,
772
779
  placeholder: e.placeholder,
773
780
  required: e.required,
774
- onUiFocusin: M,
775
- onUiInput: M
776
- }, null, 8, ["disabled", "error", "hidden-end-ref", "hidden-start-ref", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (u(), V(aa, {
781
+ onUiFocusin: R,
782
+ onUiInput: R
783
+ }, null, 8, ["disabled", "error", "hidden-end-ref", "hidden-start-ref", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), L(na, {
777
784
  key: 0,
778
785
  disabled: e.disabled,
779
786
  error: e.error,
780
- "input-id": h.value,
781
- listeners: C,
782
- "model-value": k(A),
787
+ "input-id": f.value,
788
+ listeners: j,
789
+ "model-value": I(O),
783
790
  placeholder: e.placeholder,
784
791
  required: e.required
785
792
  }, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
786
793
  ]),
787
794
  _: 1
788
795
  }, 16, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
789
- $.value ? (u(), V(pe, {
796
+ y.value ? (d(), L(he, {
790
797
  key: 1,
791
798
  error: e.error,
792
799
  "error-msg": e.errorMsg,
793
800
  hint: e.hint,
794
- "hint-id": f(i)
795
- }, null, 8, ["error", "error-msg", "hint", "hint-id"])) : w("", !0)
796
- ], 16, ca));
801
+ "hint-id": p(o)
802
+ }, null, 8, ["error", "error-msg", "hint", "hint-id"])) : k("", !0)
803
+ ], 16, fa));
797
804
  }
798
- }), fa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
805
+ }), pa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
799
806
  __name: "BsButton",
800
807
  props: {
801
808
  variant: { type: String },
@@ -809,23 +816,23 @@ const ca = ["data-range"], et = "(min-width: 752px)", El = /* @__PURE__ */ Objec
809
816
  size: { type: String, validator: (e) => ["sm", "xs", "xxs"].includes(e) }
810
817
  },
811
818
  setup(e) {
812
- const a = e, t = ie(), { rootTag: n, attrsToBind: l, hrefUrl: r } = we(a, t), { onLinkClick: d } = ke(a);
813
- return (i, o) => (u(), V(J(f(n)), z({
819
+ const a = e, t = le(), { rootTag: n, attrsToBind: l, hrefUrl: i } = Ie(a, t), { onLinkClick: u } = Ce(a);
820
+ return (o, s) => (d(), L(_(p(n)), M({
814
821
  class: "bs-button",
815
822
  "data-component": "bs-button",
816
823
  "data-ghost": e.ghostBtn,
817
824
  "data-size": e.size,
818
825
  "data-text": e.textBtn,
819
826
  "data-variant": e.variant,
820
- ".href": f(r)
821
- }, f(l), { onClick: f(d) }), {
822
- default: O(() => [
823
- E(i.$slots, "default")
827
+ ".href": p(i)
828
+ }, p(l), { onClick: p(u) }), {
829
+ default: E(() => [
830
+ D(o.$slots, "default")
824
831
  ]),
825
832
  _: 3
826
833
  }, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
827
834
  }
828
- }), pa = { "data-component": "bs-chart-table" }, va = ["summary"], ha = ["colspan"], ba = /* @__PURE__ */ g("th", { scope: "col" }, " Dataset ", -1), ma = { scope: "row" }, ga = {
835
+ }), va = { "data-component": "bs-chart-table" }, ha = ["summary"], ba = ["colspan"], ma = /* @__PURE__ */ $("th", { scope: "col" }, " Dataset ", -1), ga = { scope: "row" }, ya = {
829
836
  __name: "BsChartTable",
830
837
  props: {
831
838
  data: {
@@ -844,52 +851,52 @@ const ca = ["data-range"], et = "(min-width: 752px)", El = /* @__PURE__ */ Objec
844
851
  setup(e) {
845
852
  return (a, t) => {
846
853
  var n;
847
- return u(), v("div", pa, [
848
- g("table", { summary: e.tableTitle }, [
849
- g("thead", null, [
850
- g("tr", null, [
851
- g("th", {
854
+ return d(), b("div", va, [
855
+ $("table", { summary: e.tableTitle }, [
856
+ $("thead", null, [
857
+ $("tr", null, [
858
+ $("th", {
852
859
  colspan: ((n = e.dataIdxLabels) == null ? void 0 : n.length) + 1
853
- }, T(e.tableTitle), 9, ha)
860
+ }, x(e.tableTitle), 9, ba)
854
861
  ]),
855
- g("tr", null, [
856
- ba,
857
- (u(!0), v(j, null, Z(e.dataIdxLabels, (l) => (u(), v("th", {
862
+ $("tr", null, [
863
+ ma,
864
+ (d(!0), b(G, null, J(e.dataIdxLabels, (l) => (d(), b("th", {
858
865
  key: l,
859
866
  scope: "col"
860
- }, T(l), 1))), 128))
867
+ }, x(l), 1))), 128))
861
868
  ])
862
869
  ]),
863
- g("tbody", null, [
864
- (u(!0), v(j, null, Z(e.data, (l) => (u(), v("tr", {
870
+ $("tbody", null, [
871
+ (d(!0), b(G, null, J(e.data, (l) => (d(), b("tr", {
865
872
  key: l.label
866
873
  }, [
867
- g("th", ma, T(l.label), 1),
868
- (u(!0), v(j, null, Z(l.data, (r, d) => (u(), v("td", {
869
- key: `${r}${d}`
870
- }, T(r), 1))), 128))
874
+ $("th", ga, x(l.label), 1),
875
+ (d(!0), b(G, null, J(l.data, (i, u) => (d(), b("td", {
876
+ key: `${i}${u}`
877
+ }, x(i), 1))), 128))
871
878
  ]))), 128))
872
879
  ])
873
- ], 8, va)
880
+ ], 8, ha)
874
881
  ]);
875
882
  };
876
883
  }
877
- }, ya = (e) => ({
884
+ }, Ba = (e) => ({
878
885
  id: "htmlLegend",
879
886
  afterUpdate(a) {
880
887
  e.innerHTML = "", e.style.setProperty("--legend-padding", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((n) => {
881
888
  const l = document.createElement("li");
882
889
  l.onclick = () => {
883
- const { type: o } = a.config._config;
884
- o === "pie" || o === "doughnut" ? a.toggleDataVisibility(n.index) : a.setDatasetVisibility(n.datasetIndex, !a.isDatasetVisible(n.datasetIndex)), a.update();
890
+ const { type: s } = a.config._config;
891
+ s === "pie" || s === "doughnut" ? a.toggleDataVisibility(n.index) : a.setDatasetVisibility(n.datasetIndex, !a.isDatasetVisible(n.datasetIndex)), a.update();
885
892
  };
886
- const r = document.createElement("span");
887
- r.style.setProperty("--item-box-fill", n.fillStyle), r.style.setProperty("--item-box-stroke", n.strokeStyle);
888
- const d = document.createTextNode(n.text), i = document.createElement("p");
889
- i.style.setProperty("--item-text-color", n.fontColor), i.style.setProperty("--item-text-decoration", n.hidden ? "line-through" : "none"), i.appendChild(d), l.appendChild(r), l.appendChild(i), e.appendChild(l);
893
+ const i = document.createElement("span");
894
+ i.style.setProperty("--item-box-fill", n.fillStyle), i.style.setProperty("--item-box-stroke", n.strokeStyle);
895
+ const u = document.createTextNode(n.text), o = document.createElement("p");
896
+ o.style.setProperty("--item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--item-text-decoration", n.hidden ? "line-through" : "none"), o.appendChild(u), l.appendChild(i), l.appendChild(o), e.appendChild(l);
890
897
  });
891
898
  }
892
- }), Ba = ({ type: e, datasets: a, labels: t, tooltips: n }) => ({
899
+ }), $a = ({ type: e, datasets: a, labels: t, tooltips: n }) => ({
893
900
  type: e,
894
901
  data: {
895
902
  datasets: a,
@@ -908,7 +915,7 @@ const ca = ["data-range"], et = "(min-width: 752px)", El = /* @__PURE__ */ Objec
908
915
  responsive: !0
909
916
  }
910
917
  });
911
- function $a(e) {
918
+ function Sa(e) {
912
919
  const a = [
913
920
  "rgba(209, 26, 111, 1)",
914
921
  "rgba(130, 18, 196, 1)",
@@ -921,10 +928,10 @@ function $a(e) {
921
928
  ], t = a[e % a.length];
922
929
  return e >= a.length ? t.replace("1)", "0.5)") : t;
923
930
  }
924
- const Sa = {
931
+ const wa = {
925
932
  class: "bs-chart-bar",
926
933
  "data-component": "bs-chart-bar"
927
- }, wa = ["aria-label"], ka = ["data-hidden"], Dl = {
934
+ }, ka = ["aria-label"], Ia = ["data-hidden"], El = {
928
935
  __name: "BsChartBar",
929
936
  props: {
930
937
  chartTitle: {
@@ -980,14 +987,14 @@ const Sa = {
980
987
  setup(e) {
981
988
  const a = e, t = m(null), n = m(null);
982
989
  let l;
983
- const r = p(() => {
990
+ const i = v(() => {
984
991
  const c = {
985
- datasets: d.value,
992
+ datasets: u.value,
986
993
  labels: a.dataIdxLabels,
987
994
  type: "bar",
988
995
  tooltips: a.showTooltips
989
- }, h = Ba(c);
990
- return h.plugins = [ya(n.value)], h.options.scales = {
996
+ }, f = $a(c);
997
+ return f.plugins = [Ba(n.value)], f.options.scales = {
991
998
  x: {
992
999
  grid: {
993
1000
  display: a.showXGrid
@@ -1008,47 +1015,47 @@ const Sa = {
1008
1015
  text: a.yLabel
1009
1016
  }
1010
1017
  }
1011
- }, h;
1012
- }), d = p(() => a.data.map((c, h) => ({
1018
+ }, f;
1019
+ }), u = v(() => a.data.map((c, f) => ({
1013
1020
  ...c,
1014
- backgroundColor: $a(h),
1021
+ backgroundColor: Sa(f),
1015
1022
  categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
1016
- }))), i = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), o = Ne(function(c, h) {
1017
- !l || c === h || (l.options = r.value.options, l.update());
1018
- }, 100), s = Ne(function() {
1019
- l && (l.data = r.value.data, l.update());
1023
+ }))), o = v(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), s = Re(function(c, f) {
1024
+ !l || c === f || (l.options = i.value.options, l.update());
1025
+ }, 100), r = Re(function() {
1026
+ l && (l.data = i.value.data, l.update());
1020
1027
  }, 100);
1021
- return W(() => {
1022
- qe.register(It, Ct, Tt, xt, At, Lt), qe.defaults.font.family = "'Roobert', sans-serif", l = new qe(t.value, r.value);
1023
- }), N(() => a.showLegend, o), N(() => a.showTooltips, o), N(() => a.showXGrid, o), N(() => a.showYGrid, o), N(() => a.stacked, o), N(() => a.xLabel, o), N(() => a.yLabel, o), N(() => a.data, s), N(() => a.dataIdxLabels, s), (c, h) => (u(), v("div", Sa, [
1024
- g("figure", null, [
1025
- g("div", null, [
1026
- g("canvas", {
1027
- "aria-label": i.value,
1028
+ return Y(() => {
1029
+ Pe.register(Ct, Tt, xt, At, Lt, Vt), Pe.defaults.font.family = "'Roobert', sans-serif", l = new Pe(t.value, i.value);
1030
+ }), z(() => a.showLegend, s), z(() => a.showTooltips, s), z(() => a.showXGrid, s), z(() => a.showYGrid, s), z(() => a.stacked, s), z(() => a.xLabel, s), z(() => a.yLabel, s), z(() => a.data, r), z(() => a.dataIdxLabels, r), (c, f) => (d(), b("div", wa, [
1031
+ $("figure", null, [
1032
+ $("div", null, [
1033
+ $("canvas", {
1034
+ "aria-label": o.value,
1028
1035
  ref_key: "canvas",
1029
1036
  ref: t,
1030
1037
  role: "img"
1031
- }, null, 8, wa)
1038
+ }, null, 8, ka)
1032
1039
  ]),
1033
- g("div", null, [
1034
- D(ga, {
1040
+ $("div", null, [
1041
+ V(ya, {
1035
1042
  data: e.data,
1036
1043
  "data-idx-labels": e.dataIdxLabels,
1037
- "table-title": i.value
1044
+ "table-title": o.value
1038
1045
  }, null, 8, ["data", "data-idx-labels", "table-title"]),
1039
- g("figcaption", {
1046
+ $("figcaption", {
1040
1047
  "data-hidden": !e.showLegend
1041
1048
  }, [
1042
- g("ul", {
1049
+ $("ul", {
1043
1050
  ref_key: "legendList",
1044
1051
  ref: n
1045
1052
  }, null, 512)
1046
- ], 8, ka)
1053
+ ], 8, Ia)
1047
1054
  ])
1048
1055
  ])
1049
1056
  ]));
1050
1057
  }
1051
- }, Ia = ["data-size"], Ca = ["checked", "data-error", "disabled", "id", "required", "value"], Ta = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1058
+ }, Ca = ["data-size"], Ta = ["checked", "data-error", "disabled", "id", "required", "value"], Dl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1052
1059
  __name: "BsCheckbox",
1053
1060
  props: {
1054
1061
  /** Sets the label. */
@@ -1111,52 +1118,52 @@ const Sa = {
1111
1118
  },
1112
1119
  emits: ["update:modelValue"],
1113
1120
  setup(e, { emit: a }) {
1114
- const t = e, n = a, [l] = X(), r = p(() => je.concat(t.passAttrs.split(","))), d = m(null), i = p(() => t.inputId || l.value), o = p(() => t.checked || h.value), s = p(() => t.indeterminate || t.checkedPartially), c = p(() => Array.isArray(t.modelValue) && t.value), h = p(() => c.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
1115
- function I() {
1116
- d.value && (d.value.indeterminate = s.value && !o.value);
1121
+ const t = e, n = a, [l] = Z(), i = v(() => Fe.concat(t.passAttrs.split(","))), u = m(null), o = v(() => t.inputId || l.value), s = v(() => t.checked || f.value), r = v(() => t.indeterminate || t.checkedPartially), c = v(() => Array.isArray(t.modelValue) && t.value), f = v(() => c.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
1122
+ function T() {
1123
+ u.value && (u.value.indeterminate = r.value && !s.value);
1117
1124
  }
1118
- function $(k) {
1119
- n("update:modelValue", k);
1125
+ function y(I) {
1126
+ n("update:modelValue", I);
1120
1127
  }
1121
- function x(k) {
1128
+ function S(I) {
1122
1129
  const q = [...t.modelValue];
1123
- k ? q.push(t.value) : q.splice(q.indexOf(t.value), 1), n("update:modelValue", q);
1130
+ I ? q.push(t.value) : q.splice(q.indexOf(t.value), 1), n("update:modelValue", q);
1124
1131
  }
1125
- function S(k) {
1126
- const { checked: q } = k.target;
1127
- c.value ? x(q) : $(q);
1132
+ function w(I) {
1133
+ const { checked: q } = I.target;
1134
+ c.value ? S(q) : y(q);
1128
1135
  }
1129
- return N(o, I), N(s, I), W(I), (k, q) => (u(), v("div", z({
1136
+ return z(s, T), z(r, T), Y(T), (I, q) => (d(), b("div", M({
1130
1137
  class: "bs-boolean",
1131
1138
  "data-component": "bs-checkbox",
1132
1139
  "data-size": e.size
1133
- }, f(U)(k.$attrs, r.value).remaining), [
1134
- g("input", z({
1140
+ }, p(K)(I.$attrs, i.value).remaining), [
1141
+ $("input", M({
1135
1142
  ref_key: "inputEl",
1136
- ref: d,
1137
- checked: o.value,
1143
+ ref: u,
1144
+ checked: s.value,
1138
1145
  "data-error": e.error,
1139
1146
  disabled: e.disabled,
1140
- id: k.$attrs.id || i.value,
1147
+ id: I.$attrs.id || o.value,
1141
1148
  required: e.required,
1142
1149
  value: e.value || "on",
1143
1150
  type: "checkbox",
1144
- onChange: S
1145
- }, f(U)(k.$attrs, r.value).filtered), null, 16, Ca),
1146
- e.label || k.$slots.label ? (u(), V(ne, {
1151
+ onChange: w
1152
+ }, p(K)(I.$attrs, i.value).filtered), null, 16, Ta),
1153
+ e.label || I.$slots.label ? (d(), L(oe, {
1147
1154
  key: 0,
1148
- for: k.$attrs.id || i.value,
1155
+ for: I.$attrs.id || o.value,
1149
1156
  disabled: e.disabled,
1150
1157
  required: e.required
1151
1158
  }, {
1152
- default: O(() => [
1153
- E(k.$slots, "label", {}, () => [
1154
- F(T(e.label), 1)
1159
+ default: E(() => [
1160
+ D(I.$slots, "label", {}, () => [
1161
+ H(x(e.label), 1)
1155
1162
  ])
1156
1163
  ]),
1157
1164
  _: 3
1158
- }, 8, ["for", "disabled", "required"])) : w("", !0)
1159
- ], 16, Ia));
1165
+ }, 8, ["for", "disabled", "required"])) : k("", !0)
1166
+ ], 16, Ca));
1160
1167
  }
1161
1168
  }), xa = { key: 0 }, Aa = { class: "bs-circle-button-icon" }, La = { key: 1 }, Ol = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1162
1169
  __name: "BsCircleButton",
@@ -1204,32 +1211,32 @@ const Sa = {
1204
1211
  }
1205
1212
  },
1206
1213
  setup(e) {
1207
- const a = e, t = ie(), { rootTag: n, attrsToBind: l, hrefUrl: r } = we(a, t), { icon: d } = ge(a, "icon"), { onLinkClick: i } = ke(a), o = p(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), s = p(() => {
1214
+ const a = e, t = le(), { rootTag: n, attrsToBind: l, hrefUrl: i } = Ie(a, t), { icon: u } = ye(a, "icon"), { onLinkClick: o } = Ce(a), s = v(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = v(() => {
1208
1215
  if (a.hoverEffect)
1209
1216
  return a.iconPosition;
1210
- }), c = p(() => a.textBtn && a.iconPosition !== "left"), h = p(() => a.textBtn && a.iconPosition === "left");
1211
- return (I, $) => (u(), V(J(f(n)), z({
1217
+ }), c = v(() => a.textBtn && a.iconPosition !== "left"), f = v(() => a.textBtn && a.iconPosition === "left");
1218
+ return (T, y) => (d(), L(_(p(n)), M({
1212
1219
  class: "bs-circle-button",
1213
1220
  "data-disabled": e.disabled,
1214
- "data-direction": s.value,
1221
+ "data-direction": r.value,
1215
1222
  "data-ghost": e.ghostBtn,
1216
1223
  "data-size": e.size,
1217
1224
  "data-text": e.textBtn,
1218
- ".href": f(r)
1219
- }, { ...f(l), ...o.value }, { onClick: f(i) }), {
1220
- default: O(() => [
1221
- c.value ? (u(), v("span", xa, T(e.label), 1)) : w("", !0),
1222
- g("span", Aa, [
1223
- E(I.$slots, "icon", {}, () => [
1224
- (u(), V(J(f(d)), { size: e.size }, null, 8, ["size"]))
1225
+ ".href": p(i)
1226
+ }, { ...p(l), ...s.value }, { onClick: p(o) }), {
1227
+ default: E(() => [
1228
+ c.value ? (d(), b("span", xa, x(e.label), 1)) : k("", !0),
1229
+ $("span", Aa, [
1230
+ D(T.$slots, "icon", {}, () => [
1231
+ (d(), L(_(p(u)), { size: e.size }, null, 8, ["size"]))
1225
1232
  ])
1226
1233
  ]),
1227
- h.value ? (u(), v("span", La, T(e.label), 1)) : w("", !0)
1234
+ f.value ? (d(), b("span", La, x(e.label), 1)) : k("", !0)
1228
1235
  ]),
1229
1236
  _: 3
1230
1237
  }, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", ".href", "onClick"]));
1231
1238
  }
1232
- }), Te = {
1239
+ }), Ae = {
1233
1240
  __name: "BsTransition",
1234
1241
  props: {
1235
1242
  shown: {
@@ -1272,85 +1279,86 @@ const Sa = {
1272
1279
  "leave-cancelled"
1273
1280
  ],
1274
1281
  setup(e, { emit: a }) {
1275
- const t = e, n = a, l = [];
1276
- function r(o, s) {
1277
- const { duration: c, enterClass: h, enterAttribute: I } = t;
1282
+ const t = e, n = a, l = [], i = t.preloaded && t.shown;
1283
+ function u(r, c) {
1284
+ const { duration: f, enterClass: T, enterAttribute: y } = t;
1278
1285
  l.push(setTimeout(() => {
1279
- h && o.classList.add(h), I && o.setAttribute(I, ""), l.push(setTimeout(() => {
1280
- s();
1281
- }, c)), n("enter", o);
1286
+ T && r.classList.add(T), y && r.setAttribute(y, ""), l.push(setTimeout(() => {
1287
+ c();
1288
+ }, f)), n("enter", r);
1282
1289
  }));
1283
1290
  }
1284
- function d(o, s) {
1291
+ function o(r, c) {
1285
1292
  const {
1286
- duration: c,
1287
- enterClass: h,
1288
- enterAttribute: I,
1289
- leaveClass: $,
1290
- leaveAttribute: x
1293
+ duration: f,
1294
+ enterClass: T,
1295
+ enterAttribute: y,
1296
+ leaveClass: S,
1297
+ leaveAttribute: w
1291
1298
  } = t;
1292
- o.classList.remove(h), o.removeAttribute(I), $ && o.classList.add($), x && o.setAttribute(x, ""), l.push(setTimeout(() => {
1293
- s();
1294
- }, c)), n("leave", o);
1299
+ r.classList.remove(T), r.removeAttribute(y), S && r.classList.add(S), w && r.setAttribute(w, ""), l.push(setTimeout(() => {
1300
+ c();
1301
+ }, f)), n("leave", r);
1295
1302
  }
1296
- function i(o) {
1297
- const { leaveClass: s, leaveAttribute: c } = t;
1298
- o.classList.remove(s), o.removeAttribute(c), n("after-leave", o);
1303
+ function s(r) {
1304
+ const { leaveClass: c, leaveAttribute: f } = t;
1305
+ r.classList.remove(c), r.removeAttribute(f), n("after-leave", r);
1299
1306
  }
1300
- return oe(() => {
1301
- l.forEach((o) => {
1302
- clearTimeout(o);
1307
+ return de(() => {
1308
+ l.forEach((r) => {
1309
+ clearTimeout(r);
1303
1310
  });
1304
- }), (o, s) => e.preloaded ? Be((u(), V(Ke, {
1311
+ }), (r, c) => e.preloaded ? Se((d(), L(Ye, {
1305
1312
  key: 0,
1313
+ appear: p(i),
1306
1314
  css: !1,
1307
- onBeforeEnter: s[0] || (s[0] = (c) => n("before-enter", c)),
1308
- onEnter: r,
1309
- onAfterEnter: s[1] || (s[1] = (c) => n("after-enter", c)),
1310
- onEnterCancelled: s[2] || (s[2] = (c) => n("enter-cancelled", c)),
1311
- onBeforeLeave: s[3] || (s[3] = (c) => n("before-leave", c)),
1312
- onLeave: d,
1313
- onAfterLeave: i,
1314
- onLeaveCancelled: s[4] || (s[4] = (c) => n("leave-cancelled", c))
1315
+ onBeforeEnter: c[0] || (c[0] = (f) => n("before-enter", f)),
1316
+ onEnter: u,
1317
+ onAfterEnter: c[1] || (c[1] = (f) => n("after-enter", f)),
1318
+ onEnterCancelled: c[2] || (c[2] = (f) => n("enter-cancelled", f)),
1319
+ onBeforeLeave: c[3] || (c[3] = (f) => n("before-leave", f)),
1320
+ onLeave: o,
1321
+ onAfterLeave: s,
1322
+ onLeaveCancelled: c[4] || (c[4] = (f) => n("leave-cancelled", f))
1315
1323
  }, {
1316
- default: O(() => [
1317
- E(o.$slots, "default")
1324
+ default: E(() => [
1325
+ D(r.$slots, "default")
1318
1326
  ]),
1319
1327
  _: 3
1320
- }, 512)), [
1321
- [$e, e.shown]
1322
- ]) : (u(), V(Ke, {
1328
+ }, 8, ["appear"])), [
1329
+ [we, e.shown]
1330
+ ]) : (d(), L(Ye, {
1323
1331
  key: 1,
1324
1332
  appear: !0,
1325
1333
  css: !1,
1326
- onBeforeEnter: s[5] || (s[5] = (c) => n("before-enter", c)),
1327
- onEnter: r,
1328
- onAfterEnter: s[6] || (s[6] = (c) => n("after-enter", c)),
1329
- onEnterCancelled: s[7] || (s[7] = (c) => n("enter-cancelled", c)),
1330
- onBeforeLeave: s[8] || (s[8] = (c) => n("before-leave", c)),
1331
- onLeave: d,
1332
- onAfterLeave: i,
1333
- onLeaveCancelled: s[9] || (s[9] = (c) => n("leave-cancelled", c))
1334
+ onBeforeEnter: c[5] || (c[5] = (f) => n("before-enter", f)),
1335
+ onEnter: u,
1336
+ onAfterEnter: c[6] || (c[6] = (f) => n("after-enter", f)),
1337
+ onEnterCancelled: c[7] || (c[7] = (f) => n("enter-cancelled", f)),
1338
+ onBeforeLeave: c[8] || (c[8] = (f) => n("before-leave", f)),
1339
+ onLeave: o,
1340
+ onAfterLeave: s,
1341
+ onLeaveCancelled: c[9] || (c[9] = (f) => n("leave-cancelled", f))
1334
1342
  }, {
1335
- default: O(() => [
1336
- e.shown ? E(o.$slots, "default", { key: 0 }) : w("", !0)
1343
+ default: E(() => [
1344
+ e.shown ? D(r.$slots, "default", { key: 0 }) : k("", !0)
1337
1345
  ]),
1338
1346
  _: 3
1339
1347
  }));
1340
1348
  }
1341
1349
  }, Va = (e, a = void 0, t = "relative") => {
1342
- const n = m(null), l = m(null), r = m(!1);
1343
- let d = !1;
1344
- return W(() => {
1345
- e && (n.value = a || lt(), document.getElementById(n.value) ? (l.value = document.getElementById(n.value), d = !0) : (l.value = document.createElement("div"), l.value.id = n.value, l.value.style.position = t, document.body.insertAdjacentElement("afterbegin", l.value)), r.value = !0);
1346
- }), oe(() => {
1347
- var i;
1348
- e && !d && ((i = document.getElementById(n.value)) == null || i.remove());
1349
- }), { breakoutId: n, breakoutStub: l, breakoutMounted: r };
1350
+ const n = m(null), l = m(null), i = m(!1);
1351
+ let u = !1;
1352
+ return Y(() => {
1353
+ e && (n.value = a || ot(), document.getElementById(n.value) ? (l.value = document.getElementById(n.value), u = !0) : (l.value = document.createElement("div"), l.value.id = n.value, l.value.style.position = t, document.body.insertAdjacentElement("afterbegin", l.value)), i.value = !0);
1354
+ }), de(() => {
1355
+ var o;
1356
+ e && !u && ((o = document.getElementById(n.value)) == null || o.remove());
1357
+ }), { breakoutId: n, breakoutStub: l, breakoutMounted: i };
1350
1358
  }, Ea = {
1351
1359
  key: 0,
1352
1360
  class: "bs-dropdown-backdrop"
1353
- }, Da = ["data-width", "data-no-mobile"], Oa = { key: 0 }, qa = { key: 0 }, Ma = {
1361
+ }, Da = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1354
1362
  __name: "BsDropdownNew",
1355
1363
  props: {
1356
1364
  anchorId: {
@@ -1403,114 +1411,137 @@ const Sa = {
1403
1411
  "after-leave"
1404
1412
  ],
1405
1413
  setup(e, { emit: a }) {
1406
- const t = e, n = a, l = m(null), r = m(null), d = m(!1), i = p(() => document.getElementById(t.anchorId)), o = p(() => t.breakout ? h.value : t.containerId ? document.getElementById(t.containerId) : l.value), s = p(() => t.breakout ? I.value : !0), c = p(() => t.width === "anchor" ? void 0 : t.width), { breakoutStub: h, breakoutMounted: I } = Va(t.breakout, t.containerId);
1407
- qt([r, i], () => {
1408
- d.value && n("close");
1409
- }), Ie(["Escape"], () => {
1410
- d.value && n("close");
1411
- }), re("dropdownAfterEnter", d), re("dropdownShown", p(() => t.shown));
1412
- const $ = (C, M) => {
1413
- r.value.style.setProperty(C, M);
1414
+ const t = lt(), n = le(), l = e, i = a, u = m(null), o = m(null), s = m(!1), r = v(() => document.getElementById(l.anchorId)), c = v(() => l.breakout ? T.value : l.containerId ? document.getElementById(l.containerId) : u.value), f = v(() => l.width === "anchor" ? void 0 : l.width), { breakoutStub: T, breakoutMounted: y } = Va(l.breakout, l.containerId);
1415
+ Pt([o, r], () => {
1416
+ s.value && i("close");
1417
+ }), Te(["Escape"], () => {
1418
+ s.value && i("close");
1419
+ }), ue("dropdownAfterEnter", s), ue("dropdownShown", v(() => l.shown));
1420
+ const S = (R, F) => {
1421
+ o.value.style.setProperty(R, F);
1414
1422
  };
1415
- function x() {
1416
- const C = o.value.getBoundingClientRect(), M = i.value.getBoundingClientRect(), H = r.value.getBoundingClientRect();
1417
- S(C, M), k(C, M, H);
1423
+ function w() {
1424
+ const R = c.value.getBoundingClientRect(), F = r.value.getBoundingClientRect(), Q = o.value.getBoundingClientRect();
1425
+ I(R, F), q(R, F, Q);
1418
1426
  }
1419
- function S(C, M) {
1420
- if (t.position === "top") {
1421
- const H = C.bottom - M.bottom;
1422
- $("--dropdown-wscreen-top", "auto"), $("--dropdown-wscreen-bottom", `${H + M.height + 8}px`);
1427
+ function I(R, F) {
1428
+ if (l.position === "top") {
1429
+ const Q = R.bottom - F.bottom;
1430
+ S("--dropdown-wscreen-top", "auto"), S("--dropdown-wscreen-bottom", `${Q + F.height + 8}px`);
1423
1431
  } else {
1424
- const H = M.top - C.top;
1425
- $("--dropdown-wscreen-top", `${H + M.height + 8}px`), $("--dropdown-wscreen-bottom", "auto");
1432
+ const Q = F.top - R.top;
1433
+ S("--dropdown-wscreen-top", `${Q + F.height + 8}px`), S("--dropdown-wscreen-bottom", "auto");
1426
1434
  }
1427
1435
  }
1428
- function k(C, M, H) {
1429
- if (t.width !== "anchor") {
1430
- const Q = M.left - C.left;
1431
- if (t.position === "center") {
1432
- const _ = (M.width - H.width) / 2;
1433
- $("--dropdown-wscreen-left", `${Q + _}px`), $("--dropdown-wscreen-right", "auto");
1434
- } else if (t.position === "right") {
1435
- const _ = C.right - M.right;
1436
- $("--dropdown-wscreen-left", "auto"), $("--dropdown-wscreen-right", `${_}px`);
1436
+ function q(R, F, Q) {
1437
+ if (l.width !== "anchor") {
1438
+ const ie = F.left - R.left;
1439
+ if (l.position === "center") {
1440
+ const ee = (F.width - Q.width) / 2;
1441
+ S("--dropdown-wscreen-left", `${ie + ee}px`), S("--dropdown-wscreen-right", "auto");
1442
+ } else if (l.position === "right") {
1443
+ const ee = R.right - F.right;
1444
+ S("--dropdown-wscreen-left", "auto"), S("--dropdown-wscreen-right", `${ee}px`);
1437
1445
  } else
1438
- $("--dropdown-wscreen-left", `${Q}px`), $("--dropdown-wscreen-right", "auto");
1446
+ S("--dropdown-wscreen-left", `${ie}px`), S("--dropdown-wscreen-right", "auto");
1439
1447
  }
1440
1448
  }
1441
- function q() {
1442
- if (t.width === "anchor") {
1443
- const C = i.value.getBoundingClientRect();
1444
- $("--dropdown-wscreen-width", `${C.width}px`);
1449
+ function B() {
1450
+ if (l.width === "anchor") {
1451
+ const R = r.value.getBoundingClientRect();
1452
+ S("--dropdown-wscreen-width", `${R.width}px`);
1445
1453
  } else
1446
- $("--dropdown-wscreen-width", "");
1454
+ S("--dropdown-wscreen-width", "");
1447
1455
  }
1448
- function b() {
1449
- x(), q(), n("enter");
1456
+ function h() {
1457
+ w(), B(), i("enter");
1450
1458
  }
1451
- function B() {
1452
- d.value = !0, n("after-enter");
1459
+ function C() {
1460
+ s.value = !0, i("after-enter");
1453
1461
  }
1454
- function A() {
1455
- d.value = !1, n("after-leave");
1462
+ function O() {
1463
+ s.value = !1, i("after-leave");
1456
1464
  }
1457
- return (C, M) => (u(), v(j, null, [
1458
- e.useMobileStyle && e.shown ? (u(), v("div", Ea)) : w("", !0),
1459
- s.value ? (u(), V(ct, {
1465
+ const j = () => (
1466
+ // <BsTransition>
1467
+ se(
1468
+ Ae,
1469
+ {
1470
+ shown: l.shown,
1471
+ preloaded: l.preloaded,
1472
+ duration: 75,
1473
+ enterAttribute: "data-shown",
1474
+ onAfterEnter: C,
1475
+ onEnter: h,
1476
+ onAfterLeave: O
1477
+ },
1478
+ // <div class="bs-dropdown">
1479
+ () => {
1480
+ var R;
1481
+ return se("div", {
1482
+ ref: o,
1483
+ class: "bs-dropdown",
1484
+ "data-width": f.value,
1485
+ "data-no-mobile": !l.useMobileStyle,
1486
+ ...n
1487
+ }, [
1488
+ // <header>
1489
+ l.helperText && se("header", [
1490
+ // <div>
1491
+ se("div", [
1492
+ // <h3>Helper Text</h3>
1493
+ se("h3", l.helperText),
1494
+ // <p>Helper Description</p>
1495
+ l.helperDescription && se("p", l.helperDescription)
1496
+ ]),
1497
+ // </div>
1498
+ // <button>
1499
+ se(
1500
+ "button",
1501
+ {
1502
+ type: "button",
1503
+ title: "close",
1504
+ onClick: () => i("close")
1505
+ },
1506
+ // <BsIconClose />
1507
+ se(ke)
1508
+ )
1509
+ // </button>
1510
+ ]),
1511
+ // </header>
1512
+ // <slot />
1513
+ (R = t.default) == null ? void 0 : R.call(t)
1514
+ ]);
1515
+ }
1516
+ // </div>
1517
+ )
1518
+ );
1519
+ return (R, F) => (d(), b(G, null, [
1520
+ e.useMobileStyle && e.shown ? (d(), b("div", Ea)) : k("", !0),
1521
+ e.breakout && p(y) ? (d(), L(pt, {
1460
1522
  key: 1,
1461
- disabled: !e.breakout,
1462
- to: e.breakout ? f(h) : void 0
1523
+ to: p(T)
1463
1524
  }, [
1464
- g("div", {
1525
+ V(j)
1526
+ ], 8, ["to"])) : k("", !0),
1527
+ e.breakout ? k("", !0) : (d(), b(G, { key: 2 }, [
1528
+ e.containerId ? (d(), L(j, { key: 0 })) : (d(), b("div", {
1529
+ key: 1,
1465
1530
  ref_key: "containerRef",
1466
- ref: l,
1467
- style: ft(e.breakout || e.containerId ? void 0 : { position: "relative" })
1531
+ ref: u,
1532
+ style: { position: "relative" }
1468
1533
  }, [
1469
- D(Te, {
1470
- shown: e.shown,
1471
- preloaded: e.preloaded,
1472
- duration: 75,
1473
- "enter-attribute": "data-shown",
1474
- onAfterEnter: B,
1475
- onEnter: b,
1476
- onAfterLeave: A
1477
- }, {
1478
- default: O(() => [
1479
- g("div", z({
1480
- ref_key: "dropdownRef",
1481
- ref: r,
1482
- class: "bs-dropdown",
1483
- "data-width": c.value,
1484
- "data-no-mobile": !e.useMobileStyle
1485
- }, C.$attrs), [
1486
- e.helperText ? (u(), v("header", Oa, [
1487
- g("div", null, [
1488
- g("h3", null, T(e.helperText), 1),
1489
- e.helperDescription ? (u(), v("p", qa, T(e.helperDescription), 1)) : w("", !0)
1490
- ]),
1491
- g("button", {
1492
- type: "button",
1493
- title: "close",
1494
- onClick: M[0] || (M[0] = () => n("close"))
1495
- }, [
1496
- D(f(Se))
1497
- ])
1498
- ])) : w("", !0),
1499
- E(C.$slots, "default")
1500
- ], 16, Da)
1501
- ]),
1502
- _: 3
1503
- }, 8, ["shown", "preloaded"])
1504
- ], 4)
1505
- ], 8, ["disabled", "to"])) : w("", !0)
1534
+ V(j)
1535
+ ], 512))
1536
+ ], 64))
1506
1537
  ], 64));
1507
1538
  }
1508
- }, rt = {
1539
+ }), st = {
1509
1540
  __name: "BsDropdown",
1510
1541
  props: {
1511
1542
  anchorId: {
1512
1543
  type: String,
1513
- required: !0
1544
+ default: void 0
1514
1545
  },
1515
1546
  shown: {
1516
1547
  type: Boolean,
@@ -1595,30 +1626,30 @@ const Sa = {
1595
1626
  "after-leave"
1596
1627
  ],
1597
1628
  setup(e, { emit: a }) {
1598
- const t = e, n = a, { transition: l } = fe(t), r = p(() => t.width === "toggle" ? "anchor" : t.width), d = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), i = p(() => t.toggleId ? t.toggleId : t.anchorId);
1599
- return (o, s) => (u(), V(Ma, {
1600
- "anchor-id": i.value,
1629
+ const t = e, n = a, { transition: l } = ve(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), u = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId);
1630
+ return (s, r) => (d(), L(Da, {
1631
+ "anchor-id": o.value,
1601
1632
  breakout: e.breakout,
1602
1633
  "container-id": e.containerId,
1603
1634
  "helper-description": e.helperDescription,
1604
1635
  "helper-text": e.helperText,
1605
- position: d.value,
1636
+ position: u.value,
1606
1637
  preloaded: e.preloaded,
1607
- shown: f(l),
1638
+ shown: p(l),
1608
1639
  "use-mobile-style": e.useMobileStyle,
1609
- width: r.value,
1610
- onClose: s[0] || (s[0] = () => n("close")),
1611
- onEnter: s[1] || (s[1] = () => n("enter")),
1612
- onAfterEnter: s[2] || (s[2] = () => n("after-enter")),
1613
- onAfterLeave: s[3] || (s[3] = () => n("after-leave"))
1640
+ width: i.value,
1641
+ onClose: r[0] || (r[0] = () => n("close")),
1642
+ onEnter: r[1] || (r[1] = () => n("enter")),
1643
+ onAfterEnter: r[2] || (r[2] = () => n("after-enter")),
1644
+ onAfterLeave: r[3] || (r[3] = () => n("after-leave"))
1614
1645
  }, {
1615
- default: O(() => [
1616
- E(o.$slots, "default")
1646
+ default: E(() => [
1647
+ D(s.$slots, "default")
1617
1648
  ]),
1618
1649
  _: 3
1619
1650
  }, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
1620
1651
  }
1621
- }, Pa = ["aria-activedescendant", "aria-label", "id"], Fe = {
1652
+ }, Oa = ["aria-activedescendant", "aria-label", "id"], Ue = {
1622
1653
  __name: "BsDropdownOptionList",
1623
1654
  props: {
1624
1655
  optionsId: {
@@ -1631,7 +1662,7 @@ const Sa = {
1631
1662
  },
1632
1663
  label: {
1633
1664
  type: String,
1634
- default: void 0
1665
+ default: "Select an option"
1635
1666
  },
1636
1667
  modelValue: {
1637
1668
  type: [String, Number],
@@ -1654,110 +1685,110 @@ const Sa = {
1654
1685
  },
1655
1686
  emits: ["optselected", "update:modelValue", "close"],
1656
1687
  setup(e, { expose: a, emit: t }) {
1657
- const n = e, l = t, r = m(null), d = m(null), i = m(-1), o = m(null), s = se("dropdownAfterEnter"), c = se("dropdownShown", !1);
1658
- let h = -1;
1659
- re("handleSelect", b), re("optionsId", p(() => n.optionsId)), W(() => {
1660
- $(), x(), document.addEventListener("keydown", k);
1661
- }), oe(() => {
1662
- document.removeEventListener("keydown", k);
1663
- }), N(s, (B) => {
1664
- var A, C;
1665
- B && h > -1 && (n.focusOnShow ? (A = o.value[h]) == null || A.focus() : (C = o.value[h]) == null || C.scrollIntoView({ block: "nearest" }));
1666
- }), N(c, x);
1667
- const I = p(() => n.modelValue || n.selectedValue);
1668
- function $() {
1669
- o.value = Array.from(
1670
- r.value.querySelectorAll('[data-component="bs-dropdown-option"]')
1688
+ const n = e, l = t, i = m(null), u = m(null), o = m(-1), s = m(null), r = ce("dropdownAfterEnter"), c = ce("dropdownShown", !1);
1689
+ let f = -1;
1690
+ ue("handleSelect", B), ue("optionsId", v(() => n.optionsId)), Y(() => {
1691
+ y(), S(), document.addEventListener("keydown", I);
1692
+ }), de(() => {
1693
+ document.removeEventListener("keydown", I);
1694
+ }), z(r, (h) => {
1695
+ var C, O;
1696
+ h && f > -1 && (n.focusOnShow ? (C = s.value[f]) == null || C.focus() : (O = s.value[f]) == null || O.scrollIntoView({ block: "nearest" }));
1697
+ }), z(c, S);
1698
+ const T = v(() => n.modelValue || n.selectedValue);
1699
+ function y() {
1700
+ s.value = Array.from(
1701
+ i.value.querySelectorAll('[data-component="bs-dropdown-option"]')
1671
1702
  );
1672
1703
  }
1673
- function x() {
1674
- var B, A;
1675
- c.value && !n.multiselect ? (h = o.value.findIndex(
1676
- (C) => C.getAttribute("data-value") === String(I.value)
1677
- ), o.value.forEach((C) => {
1678
- var M;
1679
- return (M = C == null ? void 0 : C.setAttribute) == null ? void 0 : M.call(C, "aria-selected", "false");
1680
- }), h > -1 && ((B = o.value[h]) == null || B.setAttribute("data-selected", ""), (A = o.value[h]) == null || A.setAttribute("aria-selected", "true"), i.value = h)) : (o.value.forEach((C) => {
1681
- var M;
1682
- return (M = C == null ? void 0 : C.removeAttribute) == null ? void 0 : M.call(C, "data-selected");
1683
- }), o.value.forEach((C) => {
1684
- var M;
1685
- return (M = C == null ? void 0 : C.removeAttribute) == null ? void 0 : M.call(C, "aria-selected");
1704
+ function S() {
1705
+ var h, C;
1706
+ c.value && !n.multiselect ? (f = s.value.findIndex(
1707
+ (O) => O.getAttribute("data-value") === String(T.value)
1708
+ ), s.value.forEach((O) => {
1709
+ var j;
1710
+ return (j = O == null ? void 0 : O.setAttribute) == null ? void 0 : j.call(O, "aria-selected", "false");
1711
+ }), f > -1 && ((h = s.value[f]) == null || h.setAttribute("data-selected", ""), (C = s.value[f]) == null || C.setAttribute("aria-selected", "true"), o.value = f)) : (s.value.forEach((O) => {
1712
+ var j;
1713
+ return (j = O == null ? void 0 : O.removeAttribute) == null ? void 0 : j.call(O, "data-selected");
1714
+ }), s.value.forEach((O) => {
1715
+ var j;
1716
+ return (j = O == null ? void 0 : O.removeAttribute) == null ? void 0 : j.call(O, "aria-selected");
1686
1717
  }));
1687
1718
  }
1688
1719
  Mt(
1689
- r,
1720
+ i,
1690
1721
  () => {
1691
- $();
1722
+ y();
1692
1723
  },
1693
1724
  { childList: !0 }
1694
1725
  );
1695
- function S() {
1696
- var B;
1697
- i.value > -1 && ((B = o.value[i.value]) == null || B.blur());
1726
+ function w() {
1727
+ var h;
1728
+ o.value > -1 && ((h = s.value[o.value]) == null || h.blur());
1698
1729
  }
1699
- function k(B) {
1730
+ function I(h) {
1700
1731
  if (c.value)
1701
- switch (B.key) {
1732
+ switch (h.key) {
1702
1733
  case "ArrowDown":
1703
- q("down"), B.preventDefault();
1734
+ q("down"), h.preventDefault();
1704
1735
  break;
1705
1736
  case "ArrowUp":
1706
- q("up"), B.preventDefault();
1737
+ q("up"), h.preventDefault();
1707
1738
  break;
1708
1739
  case "Home":
1709
- q("home"), B.preventDefault();
1740
+ q("home"), h.preventDefault();
1710
1741
  break;
1711
1742
  case "End":
1712
- q("end"), B.preventDefault();
1743
+ q("end"), h.preventDefault();
1713
1744
  break;
1714
1745
  case "Tab":
1715
- i.value = h, n.preventTab && B.preventDefault();
1746
+ o.value = f, n.preventTab && h.preventDefault();
1716
1747
  break;
1717
1748
  }
1718
1749
  }
1719
- function q(B) {
1720
- let A;
1721
- switch (B) {
1750
+ function q(h) {
1751
+ let C;
1752
+ switch (h) {
1722
1753
  case "up":
1723
- A = i.value - 1 < 0 ? o.value.length - 1 : i.value - 1;
1754
+ C = o.value - 1 < 0 ? s.value.length - 1 : o.value - 1;
1724
1755
  break;
1725
1756
  case "down":
1726
- A = (i.value + 1) % o.value.length;
1757
+ C = (o.value + 1) % s.value.length;
1727
1758
  break;
1728
1759
  case "home":
1729
- A = 0;
1760
+ C = 0;
1730
1761
  break;
1731
1762
  case "end":
1732
- A = o.value.length - 1;
1763
+ C = s.value.length - 1;
1733
1764
  break;
1734
1765
  }
1735
- S(), o.value[A].focus(), d.value = o.value[A].id, i.value = A;
1766
+ w(), s.value[C].focus(), u.value = s.value[C].id, o.value = C;
1736
1767
  }
1737
- function b(B, A) {
1738
- d.value = B, S(), l("optselected", A), l("update:modelValue", A), l("close");
1768
+ function B(h, C) {
1769
+ u.value = h, w(), l("optselected", C), l("update:modelValue", C), l("close");
1739
1770
  }
1740
1771
  return a({
1741
- activeDescendantId: d,
1742
- focusedIndex: i,
1743
- optionEls: o,
1744
- refreshOptions: $
1745
- }), (B, A) => (u(), v("ul", {
1772
+ activeDescendantId: u,
1773
+ focusedIndex: o,
1774
+ optionEls: s,
1775
+ refreshOptions: y
1776
+ }), (h, C) => (d(), b("ul", {
1746
1777
  ref_key: "optionsRef",
1747
- ref: r,
1748
- "aria-activedescendant": d.value || void 0,
1749
- "aria-label": n.label || void 0,
1778
+ ref: i,
1779
+ "aria-activedescendant": u.value || void 0,
1780
+ "aria-label": e.label,
1750
1781
  class: "bs-dropdown-options",
1751
- id: n.optionsId,
1782
+ id: e.optionsId,
1752
1783
  role: "listbox"
1753
1784
  }, [
1754
- E(B.$slots, "default")
1755
- ], 8, Pa));
1785
+ D(h.$slots, "default")
1786
+ ], 8, Oa));
1756
1787
  }
1757
- }, za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1788
+ }, qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1758
1789
  __proto__: null,
1759
- default: Fe
1760
- }, Symbol.toStringTag, { value: "Module" })), Na = ["data-value", "data-variant", "id"], Ue = {
1790
+ default: Ue
1791
+ }, Symbol.toStringTag, { value: "Module" })), Pa = ["data-value", "data-variant", "id"], We = {
1761
1792
  __name: "BsDropdownOption",
1762
1793
  props: {
1763
1794
  value: {
@@ -1770,30 +1801,30 @@ const Sa = {
1770
1801
  }
1771
1802
  },
1772
1803
  setup(e) {
1773
- const a = e, t = m(null), n = se("optionsId", ""), l = se("handleSelect", () => {
1774
- }), r = p(() => `${n.value}-option-${a.value}`);
1775
- Ie([" ", "Enter", "NumpadEnter"], (i) => {
1776
- d(), i.preventDefault();
1804
+ const a = e, t = m(null), n = ce("optionsId", ""), l = ce("handleSelect", () => {
1805
+ }), i = v(() => `${n.value}-option-${a.value}`);
1806
+ Te([" ", "Enter", "NumpadEnter"], (o) => {
1807
+ u(), o.preventDefault();
1777
1808
  }, t);
1778
- function d(i) {
1779
- var o, s;
1780
- l(r.value, a.value), (o = t.value.querySelector("a")) == null || o.click(), (s = i == null ? void 0 : i.stopPropagation) == null || s.call(i);
1809
+ function u(o) {
1810
+ var s, r;
1811
+ l(i.value, a.value), (s = t.value.querySelector("a")) == null || s.click(), (r = o == null ? void 0 : o.stopPropagation) == null || r.call(o);
1781
1812
  }
1782
- return (i, o) => (u(), v("li", {
1813
+ return (o, s) => (d(), b("li", {
1783
1814
  ref_key: "optionRef",
1784
1815
  ref: t,
1785
1816
  "data-component": "bs-dropdown-option",
1786
1817
  "data-value": a.value,
1787
1818
  "data-variant": e.variant || void 0,
1788
- id: r.value,
1819
+ id: i.value,
1789
1820
  role: "option",
1790
1821
  tabIndex: -1,
1791
- onClick: d
1822
+ onClick: u
1792
1823
  }, [
1793
- E(i.$slots, "default")
1794
- ], 8, Na));
1824
+ D(o.$slots, "default")
1825
+ ], 8, Pa));
1795
1826
  }
1796
- }, Ra = ["data-img-size", "data-initials", "data-no-img"], ja = ["src", "alt"], st = {
1827
+ }, Ma = ["data-img-size", "data-initials", "data-no-img"], za = ["src", "alt"], dt = {
1797
1828
  __name: "BsProfileImg",
1798
1829
  props: {
1799
1830
  src: String,
@@ -1805,28 +1836,33 @@ const Sa = {
1805
1836
  profileName: {
1806
1837
  type: String,
1807
1838
  required: !0
1839
+ },
1840
+ useAltText: {
1841
+ type: Boolean,
1842
+ default: !0
1808
1843
  }
1809
1844
  },
1810
1845
  setup(e) {
1811
1846
  const a = e, t = m(!1), n = m(!!a.src);
1812
- return W(() => t.value = !0), (l, r) => (u(), v("div", {
1847
+ return Y(() => t.value = !0), (l, i) => (d(), b("div", {
1813
1848
  class: "bs-profile-img",
1814
1849
  "data-img-size": e.size,
1815
1850
  "data-initials": e.initials,
1816
1851
  "data-no-img": !n.value
1817
1852
  }, [
1818
- n.value && t.value ? (u(), v("img", {
1853
+ n.value && t.value ? (d(), b("img", {
1819
1854
  key: 0,
1820
1855
  src: e.src,
1821
- alt: e.profileName,
1822
- onError: r[0] || (r[0] = (d) => n.value = !1)
1823
- }, null, 40, ja)) : w("", !0)
1824
- ], 8, Ra));
1856
+ alt: e.useAltText ? e.profileName : "",
1857
+ onError: i[0] || (i[0] = (u) => n.value = !1)
1858
+ }, null, 40, za)) : k("", !0)
1859
+ ], 8, Ma));
1825
1860
  }
1826
- }, Fa = { key: 1 }, Ua = ["for", "innerHTML"], Wa = ["innerHTML"], Ga = ["for"], Ha = { key: 1 }, Ka = { key: 5 }, Ya = {
1861
+ }, Na = ["id", "data-checked"], Ra = { key: 1 }, ja = ["innerHTML"], Fa = { key: 4 }, Ua = { key: 5 }, Wa = {
1827
1862
  key: 0,
1863
+ role: "option",
1828
1864
  "data-no-hover": ""
1829
- }, ye = {
1865
+ }, $e = {
1830
1866
  __name: "BsDropdownOptionBuilder",
1831
1867
  props: {
1832
1868
  // Array of objects with the following properties (either label or labelHtml
@@ -1861,85 +1897,77 @@ const Sa = {
1861
1897
  const a = e, t = {};
1862
1898
  nt(() => {
1863
1899
  n();
1864
- }), N(() => a.options, () => {
1900
+ }), z(() => a.options, () => {
1865
1901
  n();
1866
1902
  });
1867
1903
  function n() {
1868
- a.options.forEach((d) => {
1869
- const { icon: i } = d;
1870
- i && !t[i] && (t[i] = r(i));
1904
+ a.options.forEach((o) => {
1905
+ const { icon: s } = o;
1906
+ s && !t[s] && (t[s] = i(s));
1871
1907
  });
1872
1908
  }
1873
- function l(d) {
1874
- let i = "", o = 1;
1875
- return o += d.checkbox ? 1 : 0, o += d.icon ? 1 : 0, o += d.profileImg ? 1 : 0, o > 1 && (i += ` ${o}-col`), d.checkbox && (i += " checkbox"), d.description && (i += " description"), d.negative && (i += " negative"), i;
1909
+ function l(o) {
1910
+ let s = "", r = 1;
1911
+ return r += o.checkbox ? 1 : 0, r += o.icon ? 1 : 0, r += o.profileImg ? 1 : 0, r > 1 && (s += ` ${r}-col`), o.checkbox && (s += " checkbox"), o.description && (s += " description"), o.negative && (s += " negative"), s;
1876
1912
  }
1877
- function r(d) {
1878
- return Re(async () => {
1879
- const { [`BsIcon${d}`]: i } = await import("@wwtdev/bsds-icons-vue3");
1880
- return i;
1913
+ function i(o) {
1914
+ return je(async () => {
1915
+ const { [`BsIcon${o}`]: s } = await import("@wwtdev/bsds-icons-vue3");
1916
+ return s;
1881
1917
  });
1882
1918
  }
1883
- return (d, i) => (u(), v(j, null, [
1884
- (u(!0), v(j, null, Z(e.options, (o) => (u(), V(Ue, {
1885
- "aria-checked": o.checkbox ? o.checkbox.checked : void 0,
1886
- key: o.value,
1887
- value: o.value,
1888
- variant: l(o)
1919
+ function u(o, s) {
1920
+ return !!o && o !== s;
1921
+ }
1922
+ return (o, s) => (d(), b(G, null, [
1923
+ (d(!0), b(G, null, J(e.options, (r) => (d(), L(We, {
1924
+ "aria-checked": r.checkbox ? r.checkbox.checked : void 0,
1925
+ key: r.value,
1926
+ value: r.value,
1927
+ variant: l(r)
1889
1928
  }, {
1890
- default: O(() => [
1891
- o.checkbox ? (u(), V(Ta, {
1929
+ default: E(() => [
1930
+ r.checkbox ? (d(), b("span", {
1892
1931
  key: 0,
1893
- "input-id": o.checkbox.inputId,
1894
- "model-value": o.checkbox.checked
1895
- }, null, 8, ["input-id", "model-value"])) : w("", !0),
1896
- o.icon ? (u(), v("span", Fa, [
1897
- (u(), V(J(t[o.icon])))
1898
- ])) : w("", !0),
1899
- o.profileImg ? (u(), V(st, {
1932
+ id: r.checkbox.inputId,
1933
+ "aria-hidden": "true",
1934
+ class: "bs-checkbox",
1935
+ "data-checked": r.checkbox.checked
1936
+ }, null, 8, Na)) : k("", !0),
1937
+ r.icon ? (d(), b("span", Ra, [
1938
+ (d(), L(_(t[r.icon])))
1939
+ ])) : k("", !0),
1940
+ r.profileImg ? (d(), L(dt, {
1900
1941
  key: 2,
1901
- src: o.profileImg.src,
1942
+ src: r.profileImg.src,
1902
1943
  size: "xs",
1903
- initials: o.profileImg.initials,
1904
- "profile-name": o.profileImg.profileName
1905
- }, null, 8, ["src", "initials", "profile-name"])) : w("", !0),
1906
- o.labelHtml ? (u(), v(j, { key: 3 }, [
1907
- o.checkbox ? (u(), v("label", {
1908
- key: 0,
1909
- for: o.checkbox.inputId,
1910
- innerHTML: o.labelHtml,
1911
- onClick: i[0] || (i[0] = Ye(() => {
1912
- }, ["prevent"]))
1913
- }, null, 8, Ua)) : (u(), v("span", {
1914
- key: 1,
1915
- innerHTML: o.labelHtml
1916
- }, null, 8, Wa))
1917
- ], 64)) : (u(), v(j, { key: 4 }, [
1918
- o.checkbox ? (u(), v("label", {
1919
- key: 0,
1920
- for: o.checkbox.inputId,
1921
- onClick: i[1] || (i[1] = Ye(() => {
1922
- }, ["prevent"]))
1923
- }, T(o.label), 9, Ga)) : (u(), v("span", Ha, T(o.label), 1))
1924
- ], 64)),
1925
- o.description ? (u(), v("span", Ka, T(o.description), 1)) : w("", !0)
1944
+ initials: r.profileImg.initials,
1945
+ "profile-name": r.profileImg.profileName,
1946
+ "use-alt-text": u(r.profileImg.profileName, r.label)
1947
+ }, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : k("", !0),
1948
+ r.labelHtml ? (d(), b("span", {
1949
+ key: 3,
1950
+ innerHTML: r.labelHtml
1951
+ }, null, 8, ja)) : (d(), b("span", Fa, x(r.label), 1)),
1952
+ r.description ? (d(), b("span", Ua, x(r.description), 1)) : k("", !0)
1926
1953
  ]),
1927
1954
  _: 2
1928
1955
  }, 1032, ["aria-checked", "value", "variant"]))), 128)),
1929
- e.showNoOptions && e.options.length === 0 ? (u(), v("li", Ya, [
1930
- E(d.$slots, "no-options", {}, () => [
1931
- F("No options")
1956
+ e.showNoOptions && e.options.length === 0 ? (d(), b("li", Wa, [
1957
+ D(o.$slots, "no-options", {}, () => [
1958
+ H("No options")
1932
1959
  ])
1933
- ])) : w("", !0)
1960
+ ])) : k("", !0)
1934
1961
  ], 64));
1935
1962
  }
1936
- }, Qa = { role: "separator" }, Xa = /* @__PURE__ */ g("hr", null, null, -1), Za = [
1937
- Xa
1938
- ], Ja = {
1963
+ }, Ga = { role: "separator" }, Ha = /* @__PURE__ */ $("hr", null, null, -1), Ka = [
1964
+ Ha
1965
+ ], Ya = {
1939
1966
  __name: "BsDropdownMultiselect",
1940
1967
  props: {
1941
1968
  label: {
1942
- type: String
1969
+ type: String,
1970
+ default: "Select an option"
1943
1971
  },
1944
1972
  options: {
1945
1973
  type: Array,
@@ -1960,53 +1988,51 @@ const Sa = {
1960
1988
  },
1961
1989
  emits: ["update:selectedOptions"],
1962
1990
  setup(e, { emit: a }) {
1963
- const t = e, n = a;
1964
- m(null), m(null);
1965
- const l = m(null), r = m([]), d = m([]);
1966
- let i = !1;
1967
- N(
1991
+ const t = e, n = a, l = m(null), i = m([]), u = m([]);
1992
+ let o = !1;
1993
+ z(
1968
1994
  () => t.selectedOptions,
1969
1995
  c,
1970
1996
  { immediate: !0 }
1971
- ), N(() => t.shown, ($) => {
1972
- $ && me(o);
1997
+ ), z(() => t.shown, (y) => {
1998
+ y && pe(s);
1973
1999
  });
1974
- function o() {
1975
- var x, S;
1976
- l.value && (l.value.refreshOptions(), l.value.activeDescendantId = (x = l.value.optionEls[0]) == null ? void 0 : x.id, l.value.focusedIndex = 0);
1977
- const $ = document.querySelector(`#${t.optionsId} [data-component="bs-dropdown-option"]`);
1978
- (S = $ == null ? void 0 : $.focus) == null || S.call($, { preventScroll: !0 });
1979
- }
1980
2000
  function s() {
1981
- var $;
2001
+ var S, w;
2002
+ l.value && (l.value.refreshOptions(), l.value.activeDescendantId = (S = l.value.optionEls[0]) == null ? void 0 : S.id, l.value.focusedIndex = 0);
2003
+ const y = document.querySelector(`#${t.optionsId} [data-component="bs-dropdown-option"]`);
2004
+ (w = y == null ? void 0 : y.focus) == null || w.call(y, { preventScroll: !0 });
2005
+ }
2006
+ function r() {
2007
+ var y;
1982
2008
  if (l.value) {
1983
2009
  l.value.refreshOptions();
1984
- const x = l.value.focusedIndex, S = l.value.optionEls[x];
1985
- ($ = S == null ? void 0 : S.focus) == null || $.call(S), l.value.activeDescendantId = S == null ? void 0 : S.id;
2010
+ const S = l.value.focusedIndex, w = l.value.optionEls[S];
2011
+ (y = w == null ? void 0 : w.focus) == null || y.call(w), l.value.activeDescendantId = w == null ? void 0 : w.id;
1986
2012
  }
1987
2013
  }
1988
- function c($ = []) {
1989
- const x = new Set($), S = [], k = [];
2014
+ function c(y = []) {
2015
+ const S = new Set(y), w = [], I = [];
1990
2016
  t.options.forEach((q) => {
1991
- const b = { ...q }, B = `${t.optionsId}-${q.value}-cb`;
1992
- x.has(q.value) ? (b.checkbox = { inputId: B, checked: !0 }, S.push(b)) : (b.checkbox = { inputId: B, checked: !1 }, k.push(b));
1993
- }), r.value = S, me(() => {
1994
- d.value = k, me(() => {
1995
- i && s(), i = !1;
2017
+ const B = { ...q }, h = `${t.optionsId}-${q.value}-cb`;
2018
+ S.has(q.value) ? (B.checkbox = { inputId: h, checked: !0 }, w.push(B)) : (B.checkbox = { inputId: h, checked: !1 }, I.push(B));
2019
+ }), i.value = w, pe(() => {
2020
+ u.value = I, pe(() => {
2021
+ o && r(), o = !1;
1996
2022
  });
1997
2023
  });
1998
2024
  }
1999
- function h($ = []) {
2000
- const x = new Set($), S = [];
2001
- return t.options.forEach((k) => {
2002
- x.has(k.value) && S.push(k.value);
2003
- }), S;
2025
+ function f(y = []) {
2026
+ const S = new Set(y), w = [];
2027
+ return t.options.forEach((I) => {
2028
+ S.has(I.value) && w.push(I.value);
2029
+ }), w;
2004
2030
  }
2005
- function I($) {
2006
- const x = t.selectedOptions.includes($) ? t.selectedOptions.filter((S) => S !== $) : h([...t.selectedOptions, $]);
2007
- i = !0, n("update:selectedOptions", x);
2031
+ function T(y) {
2032
+ const S = t.selectedOptions.includes(y) ? t.selectedOptions.filter((w) => w !== y) : f([...t.selectedOptions, y]);
2033
+ o = !0, n("update:selectedOptions", S);
2008
2034
  }
2009
- return ($, x) => (u(), V(Fe, {
2035
+ return (y, S) => (d(), L(Ue, {
2010
2036
  ref_key: "optlist",
2011
2037
  ref: l,
2012
2038
  "aria-multiselectable": "true",
@@ -2015,20 +2041,20 @@ const Sa = {
2015
2041
  multiselect: "",
2016
2042
  "options-id": e.optionsId,
2017
2043
  shown: e.shown,
2018
- "onUpdate:modelValue": I
2044
+ "onUpdate:modelValue": T
2019
2045
  }, {
2020
- default: O(() => {
2021
- var S;
2046
+ default: E(() => {
2047
+ var w;
2022
2048
  return [
2023
- D(ye, {
2024
- options: r.value,
2049
+ V($e, {
2050
+ options: i.value,
2025
2051
  "show-no-options": !1
2026
2052
  }, null, 8, ["options"]),
2027
- Be(g("li", Qa, Za, 512), [
2028
- [$e, (S = r.value) == null ? void 0 : S.length]
2053
+ Se($("li", Ga, Ka, 512), [
2054
+ [we, (w = i.value) == null ? void 0 : w.length]
2029
2055
  ]),
2030
- D(ye, {
2031
- options: d.value,
2056
+ V($e, {
2057
+ options: u.value,
2032
2058
  "show-no-options": !1
2033
2059
  }, null, 8, ["options"])
2034
2060
  ];
@@ -2036,10 +2062,10 @@ const Sa = {
2036
2062
  _: 1
2037
2063
  }, 8, ["label", "options-id", "shown"]));
2038
2064
  }
2039
- }, _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2065
+ }, Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2040
2066
  __proto__: null,
2041
- default: Ja
2042
- }, Symbol.toStringTag, { value: "Module" })), en = {
2067
+ default: Ya
2068
+ }, Symbol.toStringTag, { value: "Module" })), Xa = {
2043
2069
  __name: "BsDropdownWithOptionsNew",
2044
2070
  props: {
2045
2071
  // DROPDOWN PROPS
@@ -2092,7 +2118,7 @@ const Sa = {
2092
2118
  },
2093
2119
  label: {
2094
2120
  type: String,
2095
- default: void 0
2121
+ default: "Select an option"
2096
2122
  },
2097
2123
  modelValue: {
2098
2124
  type: [String, Number],
@@ -2118,13 +2144,13 @@ const Sa = {
2118
2144
  function l() {
2119
2145
  n.value = !0;
2120
2146
  }
2121
- function r(i) {
2122
- n.value = !1, t("update:modelValue", i), t("close");
2147
+ function i(o) {
2148
+ n.value = !1, t("update:modelValue", o), t("close");
2123
2149
  }
2124
- function d() {
2150
+ function u() {
2125
2151
  n.value && (n.value = !1, t("close"));
2126
2152
  }
2127
- return (i, o) => (u(), V(f(rt), {
2153
+ return (o, s) => (d(), L(p(st), {
2128
2154
  "anchor-id": e.anchorId,
2129
2155
  breakout: e.breakout,
2130
2156
  "container-id": e.containerId,
@@ -2135,23 +2161,23 @@ const Sa = {
2135
2161
  shown: e.shown,
2136
2162
  "use-mobile-style": e.useMobileStyle,
2137
2163
  width: e.width,
2138
- onClose: d,
2139
- onAfterEnter: o[0] || (o[0] = (s) => t("after-enter")),
2164
+ onClose: u,
2165
+ onAfterEnter: s[0] || (s[0] = (r) => t("after-enter")),
2140
2166
  onEnter: l,
2141
- onAfterLeave: o[1] || (o[1] = (s) => t("after-leave"))
2167
+ onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
2142
2168
  }, {
2143
- default: O(() => [
2144
- D(f(Fe), {
2169
+ default: E(() => [
2170
+ V(p(Ue), {
2145
2171
  "focus-on-show": e.focusOnShow,
2146
2172
  label: e.label,
2147
2173
  "model-value": e.modelValue,
2148
2174
  "options-id": e.optionsId,
2149
2175
  "prevent-tab": e.preventTab,
2150
- "onUpdate:modelValue": r,
2151
- onClose: d
2176
+ "onUpdate:modelValue": i,
2177
+ onClose: u
2152
2178
  }, {
2153
- default: O(() => [
2154
- E(i.$slots, "default")
2179
+ default: E(() => [
2180
+ D(o.$slots, "default")
2155
2181
  ]),
2156
2182
  _: 3
2157
2183
  }, 8, ["focus-on-show", "label", "model-value", "options-id", "prevent-tab"])
@@ -2159,7 +2185,7 @@ const Sa = {
2159
2185
  _: 3
2160
2186
  }, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
2161
2187
  }
2162
- }, We = {
2188
+ }, Ge = {
2163
2189
  __name: "BsDropdownWithOptions",
2164
2190
  props: {
2165
2191
  anchorId: {
@@ -2248,7 +2274,7 @@ const Sa = {
2248
2274
  },
2249
2275
  label: {
2250
2276
  type: String,
2251
- default: void 0
2277
+ default: "Select an option"
2252
2278
  },
2253
2279
  modelValue: {
2254
2280
  type: [String, Number],
@@ -2277,38 +2303,38 @@ const Sa = {
2277
2303
  "after-leave"
2278
2304
  ],
2279
2305
  setup(e, { emit: a }) {
2280
- const t = e, n = a, { transition: l } = fe(t), r = p(() => t.width === "toggle" ? "anchor" : t.width), d = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), i = p(() => t.toggleId ? t.toggleId : t.anchorId), o = p(() => t.selectedValue || t.modelValue);
2281
- function s(c) {
2306
+ const t = e, n = a, { transition: l } = ve(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), u = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId), s = v(() => t.selectedValue || t.modelValue);
2307
+ function r(c) {
2282
2308
  n("optselected", c), n("update:modelValue", c);
2283
2309
  }
2284
- return (c, h) => (u(), V(en, {
2285
- "anchor-id": i.value,
2310
+ return (c, f) => (d(), L(Xa, {
2311
+ "anchor-id": o.value,
2286
2312
  breakout: e.breakout,
2287
2313
  "container-id": e.containerId,
2288
2314
  "focus-on-show": e.focusOnShow,
2289
2315
  "helper-description": e.helperDescription,
2290
2316
  "helper-text": e.helperText,
2291
2317
  label: e.label,
2292
- "model-value": o.value,
2318
+ "model-value": s.value,
2293
2319
  "options-id": e.optionsId,
2294
- position: d.value,
2320
+ position: u.value,
2295
2321
  preloaded: e.preloaded,
2296
2322
  "prevent-tab": e.preventTab,
2297
- shown: f(l),
2323
+ shown: p(l),
2298
2324
  "use-mobile-style": e.useMobileStyle,
2299
- width: r.value,
2300
- onClose: h[0] || (h[0] = (I) => n("close")),
2301
- onAfterEnter: h[1] || (h[1] = (I) => n("after-enter")),
2302
- onAfterLeave: h[2] || (h[2] = (I) => n("after-leave")),
2303
- "onUpdate:modelValue": s
2325
+ width: i.value,
2326
+ onClose: f[0] || (f[0] = (T) => n("close")),
2327
+ onAfterEnter: f[1] || (f[1] = (T) => n("after-enter")),
2328
+ onAfterLeave: f[2] || (f[2] = (T) => n("after-leave")),
2329
+ "onUpdate:modelValue": r
2304
2330
  }, {
2305
- default: O(() => [
2306
- E(c.$slots, "default")
2331
+ default: E(() => [
2332
+ D(c.$slots, "default")
2307
2333
  ]),
2308
2334
  _: 3
2309
2335
  }, 8, ["anchor-id", "breakout", "container-id", "focus-on-show", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
2310
2336
  }
2311
- }, tn = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], an = {
2337
+ }, Za = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], Ja = {
2312
2338
  __name: "BsFilterButton",
2313
2339
  props: {
2314
2340
  badgeCount: {
@@ -2337,8 +2363,8 @@ const Sa = {
2337
2363
  }
2338
2364
  },
2339
2365
  setup(e) {
2340
- const a = e, t = p(() => a.badgeCount > 0);
2341
- return (n, l) => (u(), v("button", {
2366
+ const a = e, t = v(() => a.badgeCount > 0);
2367
+ return (n, l) => (d(), b("button", {
2342
2368
  class: "bs-filter-button",
2343
2369
  "aria-controls": e.optionsId,
2344
2370
  "aria-expanded": e.open,
@@ -2348,21 +2374,21 @@ const Sa = {
2348
2374
  disabled: e.disabled,
2349
2375
  type: "button"
2350
2376
  }, [
2351
- t.value ? (u(), V(Wt, {
2377
+ t.value ? (d(), L(Gt, {
2352
2378
  key: 0,
2353
2379
  color: "blue",
2354
2380
  count: e.badgeCount,
2355
2381
  label: "active filter",
2356
2382
  position: "left",
2357
2383
  variant: "notext"
2358
- }, null, 8, ["count"])) : w("", !0),
2359
- E(n.$slots, "label", {}, () => [
2360
- F(T(e.label), 1)
2384
+ }, null, 8, ["count"])) : k("", !0),
2385
+ D(n.$slots, "label", {}, () => [
2386
+ H(x(e.label), 1)
2361
2387
  ]),
2362
- D(f(ot))
2363
- ], 8, tn));
2388
+ V(p(it))
2389
+ ], 8, Za));
2364
2390
  }
2365
- }, nn = ["id"], ql = {
2391
+ }, _a = ["id"], ql = {
2366
2392
  __name: "BsDropdownWithToggle",
2367
2393
  props: {
2368
2394
  breakout: {
@@ -2374,7 +2400,8 @@ const Sa = {
2374
2400
  default: !1
2375
2401
  },
2376
2402
  dropdownLabel: {
2377
- type: String
2403
+ type: String,
2404
+ default: "Select an option"
2378
2405
  },
2379
2406
  dropdownPosition: {
2380
2407
  type: String,
@@ -2424,51 +2451,51 @@ const Sa = {
2424
2451
  },
2425
2452
  emits: ["update:selectedOptions", "update:selectedOption", "toggled", "close"],
2426
2453
  setup(e, { emit: a }) {
2427
- const t = e, n = a, l = m(!1), r = m(null), d = p(() => Re(async () => await (t.multiselect ? Promise.resolve().then(() => _a) : Promise.resolve().then(() => za)))), [i, o] = X(2);
2428
- N(l, (x) => {
2429
- x && r.value.$el.blur();
2454
+ const t = e, n = a, l = m(!1), i = m(null), u = v(() => je(async () => await (t.multiselect ? Promise.resolve().then(() => Qa) : Promise.resolve().then(() => qa)))), [o, s] = Z(2);
2455
+ z(l, (S) => {
2456
+ S && i.value.$el.blur();
2430
2457
  });
2431
- function s() {
2432
- l.value = !1, n("close"), r.value.$el.focus();
2458
+ function r() {
2459
+ l.value = !1, n("close"), i.value.$el.focus();
2433
2460
  }
2434
2461
  function c() {
2435
- l.value && s();
2462
+ l.value && r();
2436
2463
  }
2437
- function h() {
2464
+ function f() {
2438
2465
  l.value = !0;
2439
2466
  }
2440
- function I(x) {
2441
- n("update:selectedOptions", x);
2467
+ function T(S) {
2468
+ n("update:selectedOptions", S);
2442
2469
  }
2443
- function $(x) {
2444
- t.multiselect || (n("update:selectedOption", x), s());
2470
+ function y(S) {
2471
+ t.multiselect || (n("update:selectedOption", S), r());
2445
2472
  }
2446
- return (x, S) => (u(), v("div", {
2473
+ return (S, w) => (d(), b("div", {
2447
2474
  class: "bs-dropdown-with-toggle",
2448
- id: x.$attrs.id
2475
+ id: S.$attrs.id
2449
2476
  }, [
2450
- D(an, {
2477
+ V(Ja, {
2451
2478
  ref_key: "toggleRef",
2452
- ref: r,
2453
- "aria-controls": f(o),
2479
+ ref: i,
2480
+ "aria-controls": p(s),
2454
2481
  "aria-expanded": e.open,
2455
2482
  disabled: e.disabled,
2456
- id: f(i),
2483
+ id: p(o),
2457
2484
  open: e.open,
2458
- "options-id": f(o),
2485
+ "options-id": p(s),
2459
2486
  size: e.toggleSize,
2460
- onClick: S[0] || (S[0] = (k) => x.$emit("toggled"))
2487
+ onClick: w[0] || (w[0] = (I) => S.$emit("toggled"))
2461
2488
  }, {
2462
- label: O(() => [
2463
- E(x.$slots, "toggle-label", {}, () => [
2464
- F(T(e.toggleLabel), 1)
2489
+ label: E(() => [
2490
+ D(S.$slots, "toggle-label", {}, () => [
2491
+ H(x(e.toggleLabel), 1)
2465
2492
  ])
2466
2493
  ]),
2467
2494
  _: 3
2468
2495
  }, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size"]),
2469
- D(rt, {
2496
+ V(st, {
2470
2497
  shown: e.open,
2471
- "anchor-id": f(i),
2498
+ "anchor-id": p(o),
2472
2499
  breakout: e.breakout,
2473
2500
  "helper-text": e.helperText,
2474
2501
  "helper-description": e.helperDescription,
@@ -2477,22 +2504,22 @@ const Sa = {
2477
2504
  "use-mobile-style": e.useMobileStyle,
2478
2505
  width: e.dropdownWidth,
2479
2506
  onClose: c,
2480
- onEnter: h
2507
+ onEnter: f
2481
2508
  }, {
2482
- default: O(() => [
2483
- D(f(d), {
2509
+ default: E(() => [
2510
+ V(p(u), {
2484
2511
  label: e.dropdownLabel,
2485
2512
  "model-value": e.selectedOption,
2486
2513
  options: e.options,
2487
- "options-id": f(o),
2514
+ "options-id": p(s),
2488
2515
  "selected-options": e.selectedOptions,
2489
2516
  shown: e.open,
2490
- "onUpdate:modelValue": $,
2491
- "onUpdate:selectedOptions": I,
2492
- onClose: S[1] || (S[1] = (k) => e.multiselect ? void 0 : c())
2517
+ "onUpdate:modelValue": y,
2518
+ "onUpdate:selectedOptions": T,
2519
+ onClose: w[1] || (w[1] = (I) => e.multiselect ? void 0 : c())
2493
2520
  }, {
2494
- default: O(() => [
2495
- e.multiselect ? w("", !0) : (u(), V(ye, {
2521
+ default: E(() => [
2522
+ e.multiselect ? k("", !0) : (d(), L($e, {
2496
2523
  key: 0,
2497
2524
  options: e.options
2498
2525
  }, null, 8, ["options"]))
@@ -2502,51 +2529,51 @@ const Sa = {
2502
2529
  ]),
2503
2530
  _: 1
2504
2531
  }, 8, ["shown", "anchor-id", "breakout", "helper-text", "helper-description", "position", "use-mobile-style", "width"])
2505
- ], 8, nn));
2532
+ ], 8, _a));
2506
2533
  }
2507
- }, ln = ["view-box"], on = ["id"], rn = ["offset", "stop-color"], Ml = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2534
+ }, en = ["view-box"], tn = ["id"], an = ["offset", "stop-color"], Pl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2508
2535
  __name: "BsIconGradientWrapper",
2509
2536
  setup(e) {
2510
2537
  const a = m(null), t = m(null), n = [
2511
2538
  { offset: 0.1326, color: "#EE282A" },
2512
2539
  { offset: 0.5466, color: "#1C0087" },
2513
2540
  { offset: 0.9715, color: "#0086EA" }
2514
- ], [l] = X();
2515
- return W(() => {
2541
+ ], [l] = Z();
2542
+ return Y(() => {
2516
2543
  t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
2517
- }), (r, d) => (u(), v(j, null, [
2518
- g("span", z({
2544
+ }), (i, u) => (d(), b(G, null, [
2545
+ $("span", M({
2519
2546
  ref_key: "svgWrapperRef",
2520
2547
  ref: a,
2521
2548
  class: "bs-icon-gradient-wrapper",
2522
- style: `fill: url(#${f(l)});`
2523
- }, r.$attrs), [
2524
- E(r.$slots, "default")
2549
+ style: `fill: url(#${p(l)});`
2550
+ }, i.$attrs), [
2551
+ D(i.$slots, "default")
2525
2552
  ], 16),
2526
- (u(), v("svg", {
2553
+ (d(), b("svg", {
2527
2554
  xmlns: "http://www.w3.org/2000/svg",
2528
2555
  "view-box": t.value,
2529
2556
  width: "0",
2530
2557
  height: "0"
2531
2558
  }, [
2532
- g("linearGradient", {
2533
- id: f(l),
2559
+ $("linearGradient", {
2560
+ id: p(l),
2534
2561
  x1: "0",
2535
2562
  y1: "0",
2536
2563
  x2: "100%",
2537
2564
  y2: "100%",
2538
2565
  "gradient-units": "userSpaceOnUse"
2539
2566
  }, [
2540
- (u(), v(j, null, Z(n, (i) => g("stop", {
2541
- key: i.offset,
2542
- offset: i.offset,
2543
- "stop-color": i.color
2544
- }, null, 8, rn)), 64))
2545
- ], 8, on)
2546
- ], 8, ln))
2567
+ (d(), b(G, null, J(n, (o) => $("stop", {
2568
+ key: o.offset,
2569
+ offset: o.offset,
2570
+ "stop-color": o.color
2571
+ }, null, 8, an)), 64))
2572
+ ], 8, tn)
2573
+ ], 8, en))
2547
2574
  ], 64));
2548
2575
  }
2549
- }), Pl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2576
+ }), Ml = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2550
2577
  __name: "BsInputField",
2551
2578
  props: {
2552
2579
  /** Sets the disabled state on input, disabled styles on label. */
@@ -2593,43 +2620,43 @@ const Sa = {
2593
2620
  },
2594
2621
  emits: ["update:modelValue"],
2595
2622
  setup(e, { emit: a }) {
2596
- const t = e, [n, l] = X(2), r = p(() => ce.concat(t.passAttrs.split(",")).concat("type")), d = p(() => {
2597
- var s, c;
2598
- return ((c = (s = t.hints) == null ? void 0 : s.join) == null ? void 0 : c.call(s, `
2623
+ const t = e, [n, l] = Z(2), i = v(() => Be.concat(t.passAttrs.split(",")).concat("type")), u = v(() => {
2624
+ var r, c;
2625
+ return ((c = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : c.call(r, `
2599
2626
  `)) || t.hints;
2600
- }), i = p(() => t.error && t.errorMsg || t.hint || d.value || void 0), o = p(() => t.inputId || n.value);
2601
- return (s, c) => (u(), v("div", z({ "data-component": "bs-input-field" }, f(U)(s.$attrs, r.value).remaining), [
2602
- e.label || s.$slots.label ? (u(), V(ne, {
2627
+ }), o = v(() => t.error && t.errorMsg || t.hint || u.value || void 0), s = v(() => t.inputId || n.value);
2628
+ return (r, c) => (d(), b("div", M({ "data-component": "bs-input-field" }, p(K)(r.$attrs, i.value).remaining), [
2629
+ e.label || r.$slots.label ? (d(), L(oe, {
2603
2630
  key: 0,
2604
- for: s.$attrs.id || o.value,
2631
+ for: r.$attrs.id || s.value,
2605
2632
  disabled: e.disabled,
2606
2633
  required: e.required
2607
2634
  }, {
2608
- default: O(() => [
2609
- E(s.$slots, "label", {}, () => [
2610
- F(T(e.label), 1)
2635
+ default: E(() => [
2636
+ D(r.$slots, "label", {}, () => [
2637
+ H(x(e.label), 1)
2611
2638
  ])
2612
2639
  ]),
2613
2640
  _: 3
2614
- }, 8, ["for", "disabled", "required"])) : w("", !0),
2615
- D(ve, z({
2641
+ }, 8, ["for", "disabled", "required"])) : k("", !0),
2642
+ V(be, M({
2616
2643
  disabled: e.disabled,
2617
2644
  error: e.error,
2618
- "hint-id": f(l),
2619
- id: s.$attrs.id || o.value,
2645
+ "hint-id": p(l),
2646
+ id: r.$attrs.id || s.value,
2620
2647
  placeholder: e.placeholder,
2621
2648
  required: e.required,
2622
2649
  type: e.type,
2623
2650
  value: e.value || e.modelValue,
2624
- "onUpdate:modelValue": c[0] || (c[0] = (h) => s.$emit("update:modelValue", h))
2625
- }, f(U)(s.$attrs, r.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
2626
- i.value ? (u(), V(pe, {
2651
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => r.$emit("update:modelValue", f))
2652
+ }, p(K)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
2653
+ o.value ? (d(), L(he, {
2627
2654
  key: 1,
2628
2655
  error: e.error,
2629
2656
  "error-msg": e.errorMsg,
2630
- hint: e.hint || d.value,
2631
- "hint-id": f(l)
2632
- }, null, 8, ["error", "error-msg", "hint", "hint-id"])) : w("", !0)
2657
+ hint: e.hint || u.value,
2658
+ "hint-id": p(l)
2659
+ }, null, 8, ["error", "error-msg", "hint", "hint-id"])) : k("", !0)
2633
2660
  ], 16));
2634
2661
  }
2635
2662
  }), tt = {
@@ -2685,8 +2712,8 @@ const Sa = {
2685
2712
  * @returns {Country[]} an array of country objects
2686
2713
  */
2687
2714
  initSourceData() {
2688
- return this.data.allCountries || (this.data.allCountries = Vt().map((e) => {
2689
- const a = Et(e), t = tt[a[0]] + tt[a[1]] || "";
2715
+ return this.data.allCountries || (this.data.allCountries = Et().map((e) => {
2716
+ const a = Dt(e), t = tt[a[0]] + tt[a[1]] || "";
2690
2717
  return {
2691
2718
  label: `+${e}`,
2692
2719
  flag: t,
@@ -2700,10 +2727,10 @@ const Sa = {
2700
2727
  this.data[e][t[a]] = t;
2701
2728
  }));
2702
2729
  }
2703
- }, sn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], dn = {
2730
+ }, nn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], ln = { key: 0 }, on = {
2704
2731
  "aria-hidden": "true",
2705
2732
  style: { width: "1.25rem" }
2706
- }, un = { "aria-hidden": "true" }, zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2733
+ }, rn = { "aria-hidden": "true" }, zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2707
2734
  __name: "BsInputPhone",
2708
2735
  props: {
2709
2736
  deferValidation: {
@@ -2753,7 +2780,7 @@ const Sa = {
2753
2780
  },
2754
2781
  emits: ["update:modelValue", "input-blur"],
2755
2782
  setup(e, { expose: a, emit: t }) {
2756
- const n = e, l = t, r = [
2783
+ const n = e, l = t, i = [
2757
2784
  "ArrowDown",
2758
2785
  "ArrowLeft",
2759
2786
  "ArrowRight",
@@ -2765,153 +2792,155 @@ const Sa = {
2765
2792
  "Escape",
2766
2793
  "Home",
2767
2794
  "Tab"
2768
- ], d = m(null), i = m(1), o = m([]), s = m(null), [
2795
+ ], u = m(null), o = m(1), s = m([]), r = m(null), [
2769
2796
  c,
2770
- h,
2771
- I,
2772
- $
2773
- ] = X(4), x = m(!1), S = m(""), k = m(""), q = m(!1), b = m(!1), B = m(!0);
2797
+ f,
2798
+ T,
2799
+ y
2800
+ ] = Z(4), S = m(!1), w = m(""), I = m(""), q = m(!1), B = m(!1), h = m(!0);
2774
2801
  a({
2775
2802
  validationErr: q,
2776
- validationErrMsg: k
2803
+ validationErrMsg: I
2777
2804
  });
2778
- const A = p(() => S.value ? `+${i.value}${S.value}` : ""), C = p(() => `Country code: ${i.value}. Click to change.`), M = p(() => B.value ? n.errorMsg || k.value : ""), H = p(() => n.error || q.value), Q = p(() => n.hint || H.value && M.value), _ = p(() => B.value && H.value);
2779
- N(A, (P) => {
2780
- l("update:modelValue", P), be(P);
2781
- }), N(() => n.modelValue, de), De(), W(() => x.value = !0);
2782
- function de(P, Y) {
2783
- P === "" && P !== Y && (S.value = "");
2805
+ const C = v(() => w.value ? `+${o.value}${w.value}` : ""), O = v(() => `Country code: ${o.value}. Click to change.`), j = v(() => h.value ? n.errorMsg || I.value : ""), R = v(() => n.error || q.value), F = v(() => n.hint || R.value && j.value), Q = v(() => h.value && R.value);
2806
+ z(C, (P) => {
2807
+ l("update:modelValue", P), ge(P);
2808
+ }), z(() => n.modelValue, ie), Oe(), Y(() => S.value = !0);
2809
+ function ie(P, U) {
2810
+ P === "" && P !== U && (w.value = "");
2784
2811
  }
2785
- function xe() {
2812
+ function ee() {
2786
2813
  var P;
2787
- b.value && (b.value = !1, (P = d.value) == null || P.focus());
2814
+ B.value && (B.value = !1, (P = u.value) == null || P.focus());
2788
2815
  }
2789
- function Ae(P) {
2790
- var Y;
2791
- i.value = P, b.value = !1, (Y = d.value) == null || Y.focus(), he(P);
2816
+ function Le(P) {
2817
+ var U;
2818
+ o.value = P, B.value = !1, (U = u.value) == null || U.focus(), me(P);
2792
2819
  }
2793
- function Le() {
2794
- n.deferValidation && (B.value = !0), l("input-blur");
2795
- }
2796
- function Ve(P) {
2797
- S.value = P.target.value, n.deferValidation && (B.value = !1);
2820
+ function Ve() {
2821
+ n.deferValidation && (h.value = !0), l("input-blur");
2798
2822
  }
2799
2823
  function Ee(P) {
2800
- !P.key.match(/[0-9]/) && !r.includes(P.key) && P.preventDefault();
2824
+ w.value = P.target.value, n.deferValidation && (h.value = !1);
2801
2825
  }
2802
- function De() {
2803
- Me.initSourceData(), Oe(), he(i.value), be(A.value);
2826
+ function De(P) {
2827
+ var U, W;
2828
+ !((W = (U = P.key) == null ? void 0 : U.match) != null && W.call(U, /[0-9]/)) && !i.includes(P.key) && !P.ctrlKey && !P.metaKey && P.preventDefault();
2804
2829
  }
2805
2830
  function Oe() {
2806
- var Y, K;
2831
+ Me.initSourceData(), qe(), me(o.value), ge(C.value);
2832
+ }
2833
+ function qe() {
2834
+ var U, W;
2807
2835
  let P = Qe(n.modelValue);
2808
- P.valid || P.countryCode && ((K = (Y = n.modelValue) == null ? void 0 : Y.startsWith) != null && K.call(Y, "+")) ? (i.value = P.countryCode, S.value = P.number.significant) : S.value = n.modelValue, o.value = Me.data.allCountries.map((ue) => ({
2809
- ...ue,
2810
- isSelected: i.value === ue
2836
+ P.valid || P.countryCode && ((W = (U = n.modelValue) == null ? void 0 : U.startsWith) != null && W.call(U, "+")) ? (o.value = P.countryCode, w.value = P.number.significant) : w.value = n.modelValue, s.value = Me.data.allCountries.map((fe) => ({
2837
+ ...fe,
2838
+ isSelected: o.value === fe
2811
2839
  }));
2812
2840
  }
2813
- function he(P) {
2814
- s.value = Me.getCountryByCountryCode(P);
2841
+ function me(P) {
2842
+ r.value = Me.getCountryByCountryCode(P);
2815
2843
  }
2816
- function be(P) {
2817
- q.value = P ? !Qe(P).valid : !1, k.value = q.value ? "Invalid phone number" : "";
2844
+ function ge(P) {
2845
+ q.value = P ? !Qe(P).valid : !1, I.value = q.value ? "Invalid phone number" : "";
2818
2846
  }
2819
- return (P, Y) => (u(), v("div", z({
2847
+ return (P, U) => (d(), b("div", M({
2820
2848
  class: "bs-input-phone",
2821
2849
  "data-component": "bs-input-phone"
2822
- }, f(U)(P.$attrs, f(ce)).remaining), [
2823
- D(ne, {
2824
- for: P.$attrs.id || e.inputId || f($),
2850
+ }, p(K)(P.$attrs, p(Be)).remaining), [
2851
+ V(oe, {
2852
+ for: P.$attrs.id || e.inputId || p(y),
2825
2853
  required: e.required,
2826
- class: ae({ "visually-hidden": e.hideLabel })
2854
+ class: ne({ "visually-hidden": e.hideLabel })
2827
2855
  }, {
2828
- default: O(() => [
2829
- F(T(e.label), 1)
2856
+ default: E(() => [
2857
+ H(x(e.label), 1)
2830
2858
  ]),
2831
2859
  _: 1
2832
2860
  }, 8, ["for", "required", "class"]),
2833
- D(Ce, {
2861
+ V(xe, {
2834
2862
  disabled: e.disabled,
2835
- error: _.value,
2863
+ error: Q.value,
2836
2864
  multifocus: !0,
2837
2865
  variant: "inner-bordered"
2838
2866
  }, {
2839
- default: O(() => {
2840
- var K;
2867
+ default: E(() => {
2868
+ var W;
2841
2869
  return [
2842
- g("button", {
2843
- id: f(c),
2870
+ $("button", {
2871
+ id: p(c),
2844
2872
  ref_key: "countryCodesToggle",
2845
- ref: d,
2846
- "aria-controls": f(h),
2847
- "aria-expanded": b.value,
2873
+ ref: u,
2874
+ "aria-controls": p(f),
2875
+ "aria-expanded": B.value,
2848
2876
  "aria-haspopup": "listbox",
2849
- "aria-label": C.value,
2877
+ "aria-label": O.value,
2850
2878
  disabled: e.disabled,
2851
2879
  type: "button",
2852
- onClick: Y[0] || (Y[0] = (ue) => b.value = !b.value)
2880
+ onClick: U[0] || (U[0] = (fe) => B.value = !B.value)
2853
2881
  }, [
2854
- g("span", null, T((K = s.value) == null ? void 0 : K.flag), 1),
2855
- g("span", null, "+" + T(i.value), 1),
2856
- D(f(ht), { size: "sm" })
2857
- ], 8, sn),
2858
- D(ve, z({
2859
- "input-id": P.$attrs.id || e.inputId || f($),
2882
+ $("span", null, x((W = r.value) == null ? void 0 : W.flag), 1),
2883
+ $("span", null, "+" + x(o.value), 1),
2884
+ V(p(bt), { size: "sm" })
2885
+ ], 8, nn),
2886
+ V(be, M({
2887
+ "input-id": P.$attrs.id || e.inputId || p(y),
2860
2888
  disabled: e.disabled,
2861
- "hint-id": f(I),
2889
+ "hint-id": p(T),
2862
2890
  placeholder: e.placeholder,
2863
- value: S.value,
2891
+ value: w.value,
2864
2892
  "data-autowidth": "",
2865
2893
  type: "tel"
2866
- }, f(U)(P.$attrs, f(ce)).filtered, {
2867
- onInput: Ve,
2868
- onFocusout: Le,
2869
- onKeydown: Ee
2894
+ }, p(K)(P.$attrs, p(Be)).filtered, {
2895
+ onInput: Ee,
2896
+ onFocusout: Ve,
2897
+ onKeydown: De
2870
2898
  }), null, 16, ["input-id", "disabled", "hint-id", "placeholder", "value"])
2871
2899
  ];
2872
2900
  }),
2873
2901
  _: 1
2874
2902
  }, 8, ["disabled", "error"]),
2875
- Be(D(pe, {
2876
- error: H.value,
2877
- "error-msg": M.value,
2903
+ Se(V(he, {
2904
+ error: R.value,
2905
+ "error-msg": j.value,
2878
2906
  hint: e.hint,
2879
- "hint-id": f(I)
2907
+ "hint-id": p(T)
2880
2908
  }, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
2881
- [$e, Q.value]
2909
+ [we, F.value]
2882
2910
  ]),
2883
- x.value ? (u(), V(We, {
2884
- key: 0,
2885
- "anchor-id": f(c),
2886
- "helper-text": "Country Code",
2887
- label: "Country Code",
2888
- "model-value": i.value,
2889
- "options-id": f(h),
2890
- preloaded: "",
2891
- shown: b.value,
2892
- width: "content",
2893
- onClose: xe,
2894
- "onUpdate:modelValue": Ae
2895
- }, {
2896
- default: O(() => [
2897
- (u(!0), v(j, null, Z(o.value, (K) => (u(), V(Ue, {
2898
- "aria-label": K.value,
2899
- key: K.value,
2900
- value: `${K.value}`,
2901
- variant: "2-col"
2902
- }, {
2903
- default: O(() => [
2904
- g("span", dn, T(K == null ? void 0 : K.flag), 1),
2905
- g("span", un, T(K.label), 1)
2906
- ]),
2907
- _: 2
2908
- }, 1032, ["aria-label", "value"]))), 128))
2909
- ]),
2910
- _: 1
2911
- }, 8, ["anchor-id", "model-value", "options-id", "shown"])) : w("", !0)
2911
+ S.value ? (d(), b("div", ln, [
2912
+ V(Ge, {
2913
+ "anchor-id": p(c),
2914
+ "helper-text": "Country Code",
2915
+ label: "Country Code",
2916
+ "model-value": o.value,
2917
+ "options-id": p(f),
2918
+ preloaded: "",
2919
+ shown: B.value,
2920
+ width: "content",
2921
+ onClose: ee,
2922
+ "onUpdate:modelValue": Le
2923
+ }, {
2924
+ default: E(() => [
2925
+ S.value ? (d(!0), b(G, { key: 0 }, J(s.value, (W) => (d(), L(We, {
2926
+ "aria-label": W.value,
2927
+ key: W.value,
2928
+ value: `${W.value}`,
2929
+ variant: "2-col"
2930
+ }, {
2931
+ default: E(() => [
2932
+ $("span", on, x(W == null ? void 0 : W.flag), 1),
2933
+ $("span", rn, x(W.label), 1)
2934
+ ]),
2935
+ _: 2
2936
+ }, 1032, ["aria-label", "value"]))), 128)) : k("", !0)
2937
+ ]),
2938
+ _: 1
2939
+ }, 8, ["anchor-id", "model-value", "options-id", "shown"])
2940
+ ])) : k("", !0)
2912
2941
  ], 16));
2913
2942
  }
2914
- }), cn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2943
+ }), sn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2915
2944
  __name: "BsInputSearch",
2916
2945
  props: {
2917
2946
  /** Sets the disabled state on input, disabled styles on label. */
@@ -2956,38 +2985,65 @@ const Sa = {
2956
2985
  },
2957
2986
  emits: ["clear", "update:modelValue"],
2958
2987
  setup(e, { emit: a }) {
2959
- const t = e, n = p(() => !t.disabled && !t.hideClear && t.variant !== "filter");
2960
- return (l, r) => (u(), V(Ce, z({
2988
+ const t = e, n = v(() => Be.concat(t.passAttrs.split(","))), l = v(() => !t.disabled && !t.hideClear && t.variant !== "filter");
2989
+ return (i, u) => (d(), L(xe, M({
2961
2990
  class: "bs-input-search",
2962
2991
  "data-component": "bs-input-search",
2963
2992
  "data-variant": e.variant,
2964
2993
  disabled: e.disabled
2965
- }, f(U)(l.$attrs, f(ce)).remaining), {
2966
- default: O(() => [
2967
- e.hideSearchIcon ? w("", !0) : (u(), V(f(bt), { key: 0 })),
2968
- D(ve, z({
2994
+ }, p(K)(i.$attrs, n.value).remaining), {
2995
+ default: E(() => [
2996
+ e.hideSearchIcon ? k("", !0) : (d(), L(p(mt), { key: 0 })),
2997
+ V(be, M({
2969
2998
  "data-autowidth": "",
2970
2999
  disabled: e.disabled,
2971
- "input-id": l.$attrs.id || e.inputId,
3000
+ "input-id": i.$attrs.id || e.inputId,
2972
3001
  placeholder: e.placeholder,
2973
3002
  value: e.value || e.modelValue
2974
- }, f(U)(l.$attrs, f(ce)).filtered, {
2975
- "onUpdate:modelValue": r[0] || (r[0] = (d) => l.$emit("update:modelValue", d))
3003
+ }, p(K)(i.$attrs, n.value).filtered, {
3004
+ "onUpdate:modelValue": u[0] || (u[0] = (o) => i.$emit("update:modelValue", o))
2976
3005
  }), null, 16, ["disabled", "input-id", "placeholder", "value"]),
2977
- Be(g("button", {
3006
+ Se($("button", {
2978
3007
  title: "Clear",
2979
3008
  type: "button",
2980
- onClick: r[1] || (r[1] = (d) => l.$emit("clear"))
3009
+ onClick: u[1] || (u[1] = (o) => i.$emit("clear"))
2981
3010
  }, [
2982
- D(f(Se), { size: "sm" })
3011
+ V(p(ke), { size: "sm" })
2983
3012
  ], 512), [
2984
- [$e, n.value]
3013
+ [we, l.value]
2985
3014
  ])
2986
3015
  ]),
2987
3016
  _: 1
2988
3017
  }, 16, ["data-variant", "disabled"]));
2989
3018
  }
2990
- }), Nl = {
3019
+ }), dn = ["data-size", "data-variant"], un = /* @__PURE__ */ $("span", null, null, -1), cn = /* @__PURE__ */ $("span", null, null, -1), fn = /* @__PURE__ */ $("span", null, null, -1), pn = /* @__PURE__ */ $("span", null, null, -1), vn = /* @__PURE__ */ $("span", { class: "visually-hidden" }, "Loading", -1), hn = [
3020
+ un,
3021
+ cn,
3022
+ fn,
3023
+ pn,
3024
+ vn
3025
+ ], bn = {
3026
+ __name: "BsLoader",
3027
+ props: {
3028
+ size: {
3029
+ type: String,
3030
+ default: "md",
3031
+ validator: (e) => ["xs", "sm", "md", "lg"].includes(e)
3032
+ },
3033
+ variant: {
3034
+ type: String,
3035
+ validator: (e) => ["black", "white", "gray"].includes(e)
3036
+ }
3037
+ },
3038
+ setup(e) {
3039
+ return (a, t) => (d(), b("span", {
3040
+ class: "bs-loader",
3041
+ "data-size": e.size,
3042
+ "data-variant": e.variant,
3043
+ role: "status"
3044
+ }, hn, 8, dn));
3045
+ }
3046
+ }, mn = ["id"], Nl = {
2991
3047
  __name: "BsInputTypeahead",
2992
3048
  props: {
2993
3049
  characterThreshold: {
@@ -3019,6 +3075,10 @@ const Sa = {
3019
3075
  type: String,
3020
3076
  default: ""
3021
3077
  },
3078
+ loading: {
3079
+ type: Boolean,
3080
+ default: !1
3081
+ },
3022
3082
  maxOptions: {
3023
3083
  type: Number,
3024
3084
  default: void 0
@@ -3047,127 +3107,112 @@ const Sa = {
3047
3107
  },
3048
3108
  emits: ["update:inputValue", "update:optionsValue"],
3049
3109
  setup(e, { emit: a }) {
3050
- const t = e, n = a, l = m(!1), r = m(!1), [d] = X();
3051
- let i = [];
3052
- N(() => t.inputValue, () => {
3053
- r.value ? r.value = !1 : S();
3110
+ const t = e, n = a, l = m(!1), i = m(!1), [u] = Z();
3111
+ let o = [];
3112
+ z(() => t.inputValue, () => {
3113
+ i.value ? i.value = !1 : w();
3054
3114
  });
3055
- const o = p(() => t.typeaheadId || d.value), s = p(() => `${o.value}-input-addon`), c = p(() => `${o.value}-input`), h = p(() => `${o.value}-options`), I = p(() => {
3115
+ const s = v(() => t.typeaheadId || u.value), r = v(() => `${s.value}-input-container`), c = v(() => `${s.value}-input`), f = v(() => `${s.value}-options`), T = v(() => {
3056
3116
  if (l.value) {
3057
- let b = t.options;
3058
- const B = t.inputValue.toLowerCase(), A = t.filterType === "includes" ? "includes" : "startsWith";
3059
- return b = $(b, B, A), b = b.slice(0, t.maxOptions), b = x(b, B, A), i = b, b;
3117
+ let B = t.options;
3118
+ const h = t.inputValue.toLowerCase(), C = t.filterType === "includes" ? "includes" : "startsWith";
3119
+ return B = y(B, h, C), B = B.slice(0, t.maxOptions), B = S(B, h, C), o = B, B;
3060
3120
  } else
3061
- return i;
3121
+ return o;
3062
3122
  });
3063
- function $(b, B, A) {
3064
- return t.internalFiltering ? b.filter((C) => C.label.toLowerCase()[A](B)) : b;
3123
+ function y(B, h, C) {
3124
+ return t.internalFiltering ? B.filter((O) => O.label.toLowerCase()[C](h)) : B;
3065
3125
  }
3066
- function x(b, B, A) {
3067
- return b.map((C) => {
3068
- let M = C.label;
3069
- if (B !== "") {
3070
- const H = A === "includes" ? "gi" : "i", Q = new RegExp(`(${B})`, H);
3071
- M = C.label.replace(Q, '<span style="color: var(--bs-blue-base)">$1</span>');
3126
+ function S(B, h, C) {
3127
+ return B.map((O) => {
3128
+ let j = O.label;
3129
+ if (h !== "") {
3130
+ const R = C === "includes" ? "gi" : "i", F = new RegExp(`(${h})`, R);
3131
+ j = O.label.replace(F, '<span style="color: var(--bs-blue-base)">$1</span>');
3072
3132
  }
3073
- return { ...C, labelHtml: M };
3133
+ return { ...O, labelHtml: j };
3074
3134
  });
3075
3135
  }
3076
- function S() {
3136
+ function w() {
3077
3137
  t.inputValue.length >= t.characterThreshold ? l.value = !0 : l.value = !1;
3078
3138
  }
3079
- function k() {
3139
+ function I() {
3080
3140
  n("update:inputValue", ""), n("update:optionsValue", ""), document.getElementById(c.value).focus();
3081
3141
  }
3082
- function q(b) {
3083
- r.value = !0, l.value = !1;
3084
- const B = I.value.find((A) => A.value === b);
3085
- n("update:inputValue", B.label), n("update:optionsValue", b);
3142
+ function q(B) {
3143
+ i.value = !0, l.value = !1;
3144
+ const h = T.value.find((C) => C.value === B);
3145
+ n("update:inputValue", h.label), n("update:optionsValue", B);
3086
3146
  }
3087
- return (b, B) => (u(), v(j, null, [
3088
- e.label || b.$slots.label ? (u(), V(ne, {
3147
+ return (B, h) => (d(), b(G, null, [
3148
+ e.label || B.$slots.label ? (d(), L(oe, {
3089
3149
  key: 0,
3090
3150
  for: c.value,
3091
3151
  disabled: e.disabled,
3092
3152
  required: e.required
3093
3153
  }, {
3094
- default: O(() => [
3095
- E(b.$slots, "label", {}, () => [
3096
- F(T(e.label), 1)
3154
+ default: E(() => [
3155
+ D(B.$slots, "label", {}, () => [
3156
+ H(x(e.label), 1)
3097
3157
  ])
3098
3158
  ]),
3099
3159
  _: 3
3100
- }, 8, ["for", "disabled", "required"])) : w("", !0),
3101
- D(cn, z({
3102
- "aria-controls": h.value,
3103
- "aria-expanded": l.value,
3104
- "aria-haspopup": "listbox",
3105
- autocomplete: "off",
3106
- disabled: e.disabled,
3107
- "hide-clear": e.inputValue === "",
3108
- "hide-search-icon": e.hideSearchIcon,
3109
- id: s.value,
3110
- "input-id": c.value,
3111
- placeholder: e.placeholder,
3112
- value: e.inputValue
3113
- }, b.$attrs, {
3114
- onClear: k,
3115
- onFocusin: S,
3116
- "onUpdate:modelValue": B[0] || (B[0] = (A) => n("update:inputValue", A))
3117
- }), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "id", "input-id", "placeholder", "value"]),
3118
- D(We, {
3119
- "anchor-id": s.value,
3160
+ }, 8, ["for", "disabled", "required"])) : k("", !0),
3161
+ $("div", { id: r.value }, [
3162
+ V(sn, M({
3163
+ "aria-controls": f.value,
3164
+ "aria-expanded": l.value,
3165
+ "aria-haspopup": "listbox",
3166
+ autocomplete: "off",
3167
+ disabled: e.disabled,
3168
+ "hide-clear": e.inputValue === "",
3169
+ "hide-search-icon": e.hideSearchIcon,
3170
+ "input-id": c.value,
3171
+ "pass-attrs": "aria-controls,aria-expanded,role",
3172
+ placeholder: e.placeholder,
3173
+ role: "combobox",
3174
+ value: e.inputValue
3175
+ }, B.$attrs, {
3176
+ onClear: I,
3177
+ onFocusin: w,
3178
+ "onUpdate:modelValue": h[0] || (h[0] = (C) => n("update:inputValue", C))
3179
+ }), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
3180
+ ], 8, mn),
3181
+ V(Ge, {
3182
+ "anchor-id": r.value,
3120
3183
  "focus-on-show": !1,
3121
3184
  "model-value": e.optionsValue,
3122
- "options-id": h.value,
3185
+ "options-id": f.value,
3123
3186
  preloaded: !0,
3124
3187
  "prevent-tab": !1,
3125
3188
  shown: l.value,
3126
3189
  "use-mobile-style": !1,
3127
3190
  width: "toggle",
3128
- onClose: B[1] || (B[1] = (A) => l.value = !1),
3191
+ onClose: h[1] || (h[1] = (C) => l.value = !1),
3129
3192
  "onUpdate:modelValue": q
3130
3193
  }, {
3131
- default: O(() => [
3132
- D(ye, { options: I.value }, {
3133
- "no-options": O(() => [
3134
- F("No results found")
3135
- ]),
3136
- _: 1
3137
- }, 8, ["options"])
3194
+ default: E(() => [
3195
+ V($e, { options: T.value }, vt({ _: 2 }, [
3196
+ e.loading ? {
3197
+ name: "no-options",
3198
+ fn: E(() => [
3199
+ V(bn, { size: "xs" })
3200
+ ]),
3201
+ key: "0"
3202
+ } : {
3203
+ name: "no-options",
3204
+ fn: E(() => [
3205
+ H("No results found")
3206
+ ]),
3207
+ key: "1"
3208
+ }
3209
+ ]), 1032, ["options"])
3138
3210
  ]),
3139
3211
  _: 1
3140
3212
  }, 8, ["anchor-id", "model-value", "options-id", "shown"])
3141
3213
  ], 64));
3142
3214
  }
3143
- }, fn = ["data-size", "data-variant"], pn = /* @__PURE__ */ g("span", null, null, -1), vn = /* @__PURE__ */ g("span", null, null, -1), hn = /* @__PURE__ */ g("span", null, null, -1), bn = /* @__PURE__ */ g("span", null, null, -1), mn = /* @__PURE__ */ g("span", { class: "visually-hidden" }, "Loading", -1), gn = [
3144
- pn,
3145
- vn,
3146
- hn,
3147
- bn,
3148
- mn
3149
- ], Rl = {
3150
- __name: "BsLoader",
3151
- props: {
3152
- size: {
3153
- type: String,
3154
- default: "md",
3155
- validator: (e) => ["xs", "sm", "md", "lg"].includes(e)
3156
- },
3157
- variant: {
3158
- type: String,
3159
- validator: (e) => ["black", "white", "gray"].includes(e)
3160
- }
3161
- },
3162
- setup(e) {
3163
- return (a, t) => (u(), v("span", {
3164
- class: "bs-loader",
3165
- "data-size": e.size,
3166
- "data-variant": e.variant,
3167
- role: "status"
3168
- }, gn, 8, fn));
3169
- }
3170
- }, yn = /* @__PURE__ */ g("div", { class: "bs-overlay" }, null, -1), Bn = {
3215
+ }, gn = /* @__PURE__ */ $("div", { class: "bs-overlay" }, null, -1), yn = {
3171
3216
  __name: "BsOverlay",
3172
3217
  props: {
3173
3218
  shown: {
@@ -3196,27 +3241,24 @@ const Sa = {
3196
3241
  },
3197
3242
  emits: ["after-enter", "after-leave"],
3198
3243
  setup(e, { emit: a }) {
3199
- const t = e, n = a, { transition: l } = fe(t);
3200
- return N(l, (r) => {
3201
- r ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
3202
- }), (r, d) => (u(), V(f(Te), {
3203
- shown: f(l),
3244
+ const t = e, n = a, { transition: l } = ve(t);
3245
+ return z(l, (i) => {
3246
+ i ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
3247
+ }), (i, u) => (d(), L(p(Ae), {
3248
+ shown: p(l),
3204
3249
  preloaded: e.preloaded,
3205
3250
  duration: 75,
3206
3251
  "enter-attribute": "data-shown",
3207
- onAfterEnter: d[0] || (d[0] = (i) => n("after-enter")),
3208
- onAfterLeave: d[1] || (d[1] = (i) => n("after-leave"))
3252
+ onAfterEnter: u[0] || (u[0] = (o) => n("after-enter")),
3253
+ onAfterLeave: u[1] || (u[1] = (o) => n("after-leave"))
3209
3254
  }, {
3210
- default: O(() => [
3211
- yn
3255
+ default: E(() => [
3256
+ gn
3212
3257
  ]),
3213
3258
  _: 1
3214
3259
  }, 8, ["shown", "preloaded"]));
3215
3260
  }
3216
- }, $n = ["id", "role"], Sn = {
3217
- key: 0,
3218
- class: "modal-title"
3219
- }, jl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3261
+ }, Bn = ["id", "role", "aria-labelledby"], $n = ["id"], Rl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3220
3262
  __name: "BsModal",
3221
3263
  props: {
3222
3264
  modalId: {
@@ -3261,81 +3303,86 @@ const Sa = {
3261
3303
  },
3262
3304
  emits: ["close", "after-enter", "after-leave"],
3263
3305
  setup(e, { emit: a }) {
3264
- const t = e, n = a, { transition: l } = fe(t);
3265
- let r = !1;
3266
- const d = m(null), i = (c) => {
3267
- d.value && c.target.closest(".bs-overlay") && n("close", t.modalId);
3306
+ const t = e, n = a, { transition: l } = ve(t), [i] = Z();
3307
+ let u = !1;
3308
+ const o = m(null), s = (f) => {
3309
+ o.value && f.target.closest(".bs-overlay") && n("close", t.modalId);
3268
3310
  };
3269
- W(() => {
3270
- document.addEventListener("click", i);
3271
- }), oe(() => {
3272
- document.removeEventListener("click", i);
3273
- }), Ie(["Escape"], () => {
3274
- r && n("close", t.modalId);
3311
+ Y(() => {
3312
+ document.addEventListener("click", s);
3313
+ }), de(() => {
3314
+ document.removeEventListener("click", s);
3315
+ }), Te(["Escape"], () => {
3316
+ u && n("close", t.modalId);
3275
3317
  });
3276
- const o = () => !t.title && t.closeButton, s = () => t.title && t.closeButton;
3277
- return (c, h) => (u(), v(j, null, [
3278
- D(Bn, {
3279
- shown: f(l),
3318
+ const r = () => !t.title && t.closeButton, c = () => t.title && t.closeButton;
3319
+ return (f, T) => (d(), b(G, null, [
3320
+ V(yn, {
3321
+ shown: p(l),
3280
3322
  preloaded: e.preloaded,
3281
3323
  "enter-controlled": e.enterControlled,
3282
3324
  "enter-trigger": e.enterTrigger,
3283
3325
  "leave-trigger": e.leaveTrigger
3284
3326
  }, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
3285
- D(Te, {
3286
- shown: f(l),
3327
+ V(Ae, {
3328
+ shown: p(l),
3287
3329
  preloaded: e.preloaded,
3288
3330
  duration: 75,
3289
3331
  "enter-attribute": "data-shown",
3290
- onEnter: h[1] || (h[1] = (I) => pt(r) ? r.value = !0 : r = !0),
3291
- onAfterEnter: h[2] || (h[2] = (I) => n("after-enter")),
3292
- onAfterLeave: h[3] || (h[3] = (I) => n("after-leave"))
3332
+ onEnter: T[1] || (T[1] = (y) => ht(u) ? u.value = !0 : u = !0),
3333
+ onAfterEnter: T[2] || (T[2] = (y) => n("after-enter")),
3334
+ onAfterLeave: T[3] || (T[3] = (y) => n("after-leave"))
3293
3335
  }, {
3294
- default: O(() => [
3295
- g("div", z({
3296
- id: t.modalId,
3336
+ default: E(() => [
3337
+ $("div", M({
3338
+ id: e.modalId,
3297
3339
  class: "bs-modal",
3298
3340
  role: e.alert ? "alertdialog" : "dialog",
3341
+ "aria-labelledby": e.title && !f.$attrs["aria-label"] ? p(i) : void 0,
3299
3342
  "aria-modal": "true"
3300
- }, c.$attrs, {
3343
+ }, f.$attrs, {
3301
3344
  ref_key: "modalRef",
3302
- ref: d
3345
+ ref: o
3303
3346
  }), [
3304
- e.title || e.closeButton ? (u(), v("header", {
3347
+ e.title || e.closeButton ? (d(), b("header", {
3305
3348
  key: 0,
3306
- class: ae({
3307
- "only-close-button-modal-header": o,
3308
- "modal-header": s
3349
+ class: ne({
3350
+ "only-close-button-modal-header": r,
3351
+ "modal-header": c
3309
3352
  })
3310
3353
  }, [
3311
- e.title ? (u(), v("h5", Sn, T(e.title), 1)) : w("", !0),
3312
- e.closeButton ? (u(), v("button", {
3354
+ e.title ? (d(), b("h5", {
3355
+ key: 0,
3356
+ id: p(i),
3357
+ class: "modal-title"
3358
+ }, x(e.title), 9, $n)) : k("", !0),
3359
+ e.closeButton ? (d(), b("button", {
3313
3360
  key: 1,
3314
3361
  type: "button",
3315
3362
  title: "Close Modal",
3316
3363
  "aria-label": "Close Modal",
3317
- onClick: h[0] || (h[0] = (I) => n("close", e.modalId))
3364
+ onClick: T[0] || (T[0] = (y) => n("close", e.modalId))
3318
3365
  }, [
3319
- D(f(Se), { class: "close-button" })
3320
- ])) : w("", !0)
3321
- ], 2)) : w("", !0),
3322
- E(c.$slots, "default")
3323
- ], 16, $n)
3366
+ V(p(ke), { class: "close-button" })
3367
+ ])) : k("", !0)
3368
+ ], 2)) : k("", !0),
3369
+ D(f.$slots, "default")
3370
+ ], 16, Bn)
3324
3371
  ]),
3325
3372
  _: 3
3326
3373
  }, 8, ["shown", "preloaded"])
3327
3374
  ], 64));
3328
3375
  }
3329
- }), wn = ["data-variant", "data-fixed"], kn = {
3376
+ }), Sn = ["data-variant", "data-fixed"], wn = {
3330
3377
  key: 0,
3331
3378
  class: "bs-pagination-carets"
3332
- }, In = ["title", "disabled"], Cn = { key: 0 }, Tn = ["title", "disabled"], xn = { key: 0 }, An = {
3379
+ }, kn = ["aria-label", "title", "disabled"], In = { key: 0 }, Cn = ["aria-label", "title", "disabled"], Tn = { key: 0 }, xn = {
3333
3380
  key: 1,
3334
3381
  class: "bs-pagination-page-numbers"
3335
- }, Ln = ["title", "data-selected", "onClick"], Vn = { key: 2 }, En = { key: 3 }, Dn = /* @__PURE__ */ g("span", null, "Results Per Page:", -1), On = { class: "bs-pagination-results-numbers" }, qn = ["data-selected", "disabled", "onClick"], Mn = {
3382
+ }, An = ["title", "data-selected", "onClick"], Ln = { key: 2 }, Vn = { key: 3 }, En = /* @__PURE__ */ $("span", null, "Results Per Page:", -1), Dn = { class: "bs-pagination-results-numbers" }, On = ["data-selected", "disabled", "onClick"], qn = {
3336
3383
  key: 5,
3337
3384
  class: "bs-pagination-carets"
3338
- }, Pn = ["title", "disabled"], zn = { key: 0 }, Nn = ["title", "disabled"], Rn = { key: 0 }, Fl = {
3385
+ }, Pn = ["aria-label", "title", "disabled"], Mn = { key: 0 }, zn = ["aria-label", "title", "disabled"], Nn = { key: 0 }, jl = {
3339
3386
  __name: "BsPagination",
3340
3387
  props: {
3341
3388
  // Used for all
@@ -3422,128 +3469,132 @@ const Sa = {
3422
3469
  emits: ["selchange", "update:modelValue"],
3423
3470
  setup(e, { emit: a }) {
3424
3471
  const t = e, n = a, l = m(null);
3425
- W(() => {
3426
- r.value ? l.value = r.value : t.variant === "results" ? l.value = S.value[0] : l.value = 1;
3472
+ Y(() => {
3473
+ i.value ? l.value = i.value : t.variant === "results" ? l.value = w.value[0] : l.value = 1;
3427
3474
  });
3428
- const r = p(() => t.modelValue || t.selection);
3429
- N(() => t.selection, (k) => {
3430
- l.value = k;
3431
- }), N(() => t.modelValue, (k) => {
3432
- l.value = k;
3433
- }), N(l, (k, q) => {
3434
- q !== null && (n("selchange", k), n("update:modelValue", k));
3475
+ const i = v(() => t.modelValue || t.selection);
3476
+ z(() => t.selection, (I) => {
3477
+ l.value = I;
3478
+ }), z(() => t.modelValue, (I) => {
3479
+ l.value = I;
3480
+ }), z(l, (I, q) => {
3481
+ q !== null && (n("selchange", I), n("update:modelValue", I));
3435
3482
  });
3436
- const d = p(() => {
3483
+ const u = v(() => {
3437
3484
  if (t.variant === "group")
3438
3485
  return Math.ceil(t.itemsCount / t.itemsPerGroup);
3439
3486
  if (t.variant === "base")
3440
3487
  return t.pageCount;
3441
- }), i = p(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
3442
- function o() {
3488
+ }), o = v(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
3489
+ function s() {
3443
3490
  l.value = 1;
3444
3491
  }
3445
- function s() {
3492
+ function r() {
3446
3493
  l.value = Math.max(l.value - 1, 1);
3447
3494
  }
3448
3495
  function c() {
3449
3496
  l.value = Math.min(
3450
3497
  l.value + 1,
3451
- d.value
3498
+ u.value
3452
3499
  );
3453
3500
  }
3454
- function h() {
3455
- l.value = d.value;
3501
+ function f() {
3502
+ l.value = u.value;
3456
3503
  }
3457
- const I = p(() => {
3504
+ const T = v(() => {
3458
3505
  if (t.pageCount <= t.pageRange)
3459
3506
  return [...Array(t.pageCount + 1).keys()].slice(1);
3460
- const k = [1], q = (t.pageRange - 1) / 2;
3461
- let b = l.value - q, B = l.value + q;
3462
- b < 1 && (B += 1 - b, b = 1), B > t.pageCount && (b -= B - t.pageCount, B = t.pageCount), b = Math.max(b, 2), B = Math.min(B, t.pageCount - 1), b > 2 && k.push(t.breakText);
3463
- for (let A = b; A <= B; A++)
3464
- k.push(A);
3465
- return B < t.pageCount - 1 && k.push(t.breakText), k.push(t.pageCount), k;
3466
- }), $ = p(() => `${t.centerLabel ?? "Page"} ${l.value} of ${d.value}`), x = p(() => {
3467
- const k = (l.value - 1) * t.itemsPerGroup + 1, q = Math.min(k - 1 + t.itemsPerGroup, t.itemsCount);
3468
- return `${t.centerLabel ?? "Results"} ${k} - ${q} of ${t.itemsCount}`;
3469
- }), S = p(() => t.resultsIncrements.split(",").map((k) => parseInt(k)));
3470
- return (k, q) => (u(), v("div", {
3507
+ const I = [1], q = (t.pageRange - 1) / 2;
3508
+ let B = l.value - q, h = l.value + q;
3509
+ B < 1 && (h += 1 - B, B = 1), h > t.pageCount && (B -= h - t.pageCount, h = t.pageCount), B = Math.max(B, 2), h = Math.min(h, t.pageCount - 1), B > 2 && I.push(t.breakText);
3510
+ for (let C = B; C <= h; C++)
3511
+ I.push(C);
3512
+ return h < t.pageCount - 1 && I.push(t.breakText), I.push(t.pageCount), I;
3513
+ }), y = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${u.value}`), S = v(() => {
3514
+ const I = (l.value - 1) * t.itemsPerGroup + 1, q = Math.min(I - 1 + t.itemsPerGroup, t.itemsCount);
3515
+ return `${t.centerLabel ?? "Results"} ${I} - ${q} of ${t.itemsCount}`;
3516
+ }), w = v(() => t.resultsIncrements.split(",").map((I) => parseInt(I)));
3517
+ return (I, q) => (d(), b("div", {
3471
3518
  class: "bs-pagination",
3472
- "data-variant": i.value,
3519
+ "data-variant": o.value,
3473
3520
  "data-fixed": t.fixed
3474
3521
  }, [
3475
- e.variant === "base" || e.variant === "group" ? (u(), v("div", kn, [
3476
- e.showFirstLastButtons ? (u(), v("button", {
3522
+ e.variant === "base" || e.variant === "group" ? (d(), b("div", wn, [
3523
+ e.showFirstLastButtons ? (d(), b("button", {
3477
3524
  key: 0,
3478
3525
  type: "button",
3479
- class: ae(e.firstPageText ? "bs-pagination-word-caret" : void 0),
3526
+ class: ne(e.firstPageText ? "bs-pagination-word-caret" : void 0),
3527
+ "aria-label": e.firstPageText ? void 0 : "First Page",
3480
3528
  title: e.firstPageText,
3481
3529
  disabled: l.value === 1,
3482
- onClick: o
3530
+ onClick: s
3483
3531
  }, [
3484
- D(f(mt)),
3485
- e.firstPageText ? (u(), v("span", Cn, T(e.firstPageText), 1)) : w("", !0)
3486
- ], 10, In)) : w("", !0),
3487
- g("button", {
3532
+ V(p(gt)),
3533
+ e.firstPageText ? (d(), b("span", In, x(e.firstPageText), 1)) : k("", !0)
3534
+ ], 10, kn)) : k("", !0),
3535
+ $("button", {
3488
3536
  type: "button",
3489
- class: ae(e.prevPageText ? "bs-pagination-word-caret" : void 0),
3537
+ class: ne(e.prevPageText ? "bs-pagination-word-caret" : void 0),
3538
+ "aria-label": e.prevPageText ? void 0 : "Previous Page",
3490
3539
  title: e.prevPageText,
3491
3540
  disabled: l.value === 1,
3492
- onClick: s
3541
+ onClick: r
3493
3542
  }, [
3494
- D(f(gt)),
3495
- e.prevPageText ? (u(), v("span", xn, T(e.prevPageText), 1)) : w("", !0)
3496
- ], 10, Tn)
3497
- ])) : w("", !0),
3498
- e.variant === "base" && e.centerDisplay === "numbers" ? (u(), v("div", An, [
3499
- (u(!0), v(j, null, Z(I.value, (b) => (u(), v("button", {
3500
- key: `page-${b}-button`,
3543
+ V(p(yt)),
3544
+ e.prevPageText ? (d(), b("span", Tn, x(e.prevPageText), 1)) : k("", !0)
3545
+ ], 10, Cn)
3546
+ ])) : k("", !0),
3547
+ e.variant === "base" && e.centerDisplay === "numbers" ? (d(), b("div", xn, [
3548
+ (d(!0), b(G, null, J(T.value, (B) => (d(), b("button", {
3549
+ key: `page-${B}-button`,
3501
3550
  type: "button",
3502
- title: `Page ${b}`,
3503
- "data-selected": b === l.value,
3504
- onClick: (B) => l.value = b
3505
- }, T(b), 9, Ln))), 128))
3506
- ])) : w("", !0),
3507
- t.variant === "base" && t.centerDisplay === "text" ? (u(), v("span", Vn, T($.value), 1)) : w("", !0),
3508
- t.variant === "group" ? (u(), v("span", En, T(x.value), 1)) : w("", !0),
3509
- t.variant === "results" ? (u(), v(j, { key: 4 }, [
3510
- Dn,
3511
- g("div", On, [
3512
- (u(!0), v(j, null, Z(S.value, (b) => (u(), v("button", {
3551
+ title: `Page ${B}`,
3552
+ "data-selected": B === l.value,
3553
+ onClick: (h) => l.value = B
3554
+ }, x(B), 9, An))), 128))
3555
+ ])) : k("", !0),
3556
+ t.variant === "base" && t.centerDisplay === "text" ? (d(), b("span", Ln, x(y.value), 1)) : k("", !0),
3557
+ t.variant === "group" ? (d(), b("span", Vn, x(S.value), 1)) : k("", !0),
3558
+ t.variant === "results" ? (d(), b(G, { key: 4 }, [
3559
+ En,
3560
+ $("div", Dn, [
3561
+ (d(!0), b(G, null, J(w.value, (B) => (d(), b("button", {
3513
3562
  type: "button",
3514
- key: `results-${b}`,
3515
- "data-selected": b === l.value,
3516
- disabled: l.value === b,
3517
- onClick: (B) => l.value = b
3518
- }, T(b), 9, qn))), 128))
3563
+ key: `results-${B}`,
3564
+ "data-selected": B === l.value,
3565
+ disabled: l.value === B,
3566
+ onClick: (h) => l.value = B
3567
+ }, x(B), 9, On))), 128))
3519
3568
  ])
3520
- ], 64)) : w("", !0),
3521
- e.variant === "base" || e.variant === "group" ? (u(), v("div", Mn, [
3522
- g("button", {
3569
+ ], 64)) : k("", !0),
3570
+ e.variant === "base" || e.variant === "group" ? (d(), b("div", qn, [
3571
+ $("button", {
3523
3572
  type: "button",
3524
- class: ae(e.nextPageText ? "bs-pagination-word-caret" : void 0),
3573
+ class: ne(e.nextPageText ? "bs-pagination-word-caret" : void 0),
3574
+ "aria-label": e.nextPageText ? void 0 : "Next Page",
3525
3575
  title: e.nextPageText,
3526
- disabled: l.value === d.value,
3576
+ disabled: l.value === u.value,
3527
3577
  onClick: c
3528
3578
  }, [
3529
- e.nextPageText ? (u(), v("span", zn, T(e.nextPageText), 1)) : w("", !0),
3530
- D(f(yt))
3579
+ e.nextPageText ? (d(), b("span", Mn, x(e.nextPageText), 1)) : k("", !0),
3580
+ V(p(Bt))
3531
3581
  ], 10, Pn),
3532
- e.showFirstLastButtons ? (u(), v("button", {
3582
+ e.showFirstLastButtons ? (d(), b("button", {
3533
3583
  key: 0,
3534
3584
  type: "button",
3535
- class: ae(e.lastPageText ? "bs-pagination-word-caret" : void 0),
3585
+ class: ne(e.lastPageText ? "bs-pagination-word-caret" : void 0),
3586
+ "aria-label": e.lastPageText ? void 0 : "Last Page",
3536
3587
  title: e.lastPageText,
3537
- disabled: l.value === d.value,
3538
- onClick: h
3588
+ disabled: l.value === u.value,
3589
+ onClick: f
3539
3590
  }, [
3540
- e.lastPageText ? (u(), v("span", Rn, T(e.lastPageText), 1)) : w("", !0),
3541
- D(f(Bt))
3542
- ], 10, Nn)) : w("", !0)
3543
- ])) : w("", !0)
3544
- ], 8, wn));
3591
+ e.lastPageText ? (d(), b("span", Nn, x(e.lastPageText), 1)) : k("", !0),
3592
+ V(p($t))
3593
+ ], 10, zn)) : k("", !0)
3594
+ ])) : k("", !0)
3595
+ ], 8, Sn));
3545
3596
  }
3546
- }, jn = ["data-truncate"], Ul = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3597
+ }, Rn = ["data-truncate"], Fl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3547
3598
  __name: "BsPill",
3548
3599
  props: {
3549
3600
  active: { type: Boolean, default: !1 },
@@ -3567,35 +3618,35 @@ const Sa = {
3567
3618
  }
3568
3619
  },
3569
3620
  setup(e) {
3570
- const a = e, { onLinkClick: t } = ke(a), n = ie(), { rootTag: l, attrsToBind: r, hrefUrl: d } = we(a, n, "span");
3571
- return (i, o) => (u(), V(J(f(l)), z({
3621
+ const a = e, { onLinkClick: t } = Ce(a), n = le(), { rootTag: l, attrsToBind: i, hrefUrl: u } = Ie(a, n, "span");
3622
+ return (o, s) => (d(), L(_(p(l)), M({
3572
3623
  class: "bs-pill",
3573
3624
  "data-active": e.active,
3574
3625
  "data-component": "bs-pill",
3575
3626
  "data-status": e.status || void 0,
3576
3627
  "data-variant": e.variant || void 0,
3577
3628
  disabled: e.disabled,
3578
- ".href": f(d)
3579
- }, f(r), { onClick: f(t) }), {
3580
- default: O(() => [
3581
- g("span", { "data-truncate": e.truncate }, [
3582
- E(i.$slots, "default")
3583
- ], 8, jn)
3629
+ ".href": p(u)
3630
+ }, p(i), { onClick: p(t) }), {
3631
+ default: E(() => [
3632
+ $("span", { "data-truncate": e.truncate }, [
3633
+ D(o.$slots, "default")
3634
+ ], 8, Rn)
3584
3635
  ]),
3585
3636
  _: 3
3586
3637
  }, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
3587
3638
  }
3588
- }), Fn = { class: "bs-profile-details" }, Un = {
3639
+ }), jn = { class: "bs-profile-details" }, Fn = {
3589
3640
  class: "bs-profile-name",
3590
3641
  "data-size": "sm",
3591
3642
  "data-weight": "bold"
3592
- }, Wn = {
3643
+ }, Un = {
3593
3644
  key: 1,
3594
3645
  "data-weight": "bold"
3595
- }, Gn = { key: 2 }, Hn = { key: 3 }, Kn = {
3646
+ }, Wn = { key: 2 }, Gn = { key: 3 }, Hn = {
3596
3647
  key: 4,
3597
3648
  "data-icon": "true"
3598
- }, Yn = {
3649
+ }, Kn = {
3599
3650
  __name: "BsProfileDetails",
3600
3651
  props: {
3601
3652
  profileName: {
@@ -3612,40 +3663,40 @@ const Sa = {
3612
3663
  },
3613
3664
  emits: ["action-toggled"],
3614
3665
  setup(e, { emit: a }) {
3615
- const t = e, n = a, { icon: l } = ge(t, "actionIcon"), { icon: r } = ge(t, "miscMetaIcon");
3616
- function d(i) {
3617
- i.target.tagName === "BUTTON" && (i.preventDefault(), i.stopImmediatePropagation(), n("action-toggled"));
3666
+ const t = e, n = a, { icon: l } = ye(t, "actionIcon"), { icon: i } = ye(t, "miscMetaIcon");
3667
+ function u(o) {
3668
+ o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), n("action-toggled"));
3618
3669
  }
3619
- return (i, o) => (u(), v("div", Fn, [
3620
- e.action || i.$slots.action ? (u(), v("button", {
3670
+ return (o, s) => (d(), b("div", jn, [
3671
+ e.action || o.$slots.action ? (d(), b("button", {
3621
3672
  key: 0,
3622
3673
  "data-icon": "true",
3623
- onClick: d
3674
+ onClick: u
3624
3675
  }, [
3625
- E(i.$slots, "action", {}, () => [
3626
- e.actionIcon ? (u(), V(J(f(l) ? f(l) : "span"), {
3676
+ D(o.$slots, "action", {}, () => [
3677
+ e.actionIcon ? (d(), L(_(p(l) ? p(l) : "span"), {
3627
3678
  key: 0,
3628
3679
  class: "bs-icon"
3629
- })) : w("", !0),
3630
- F(" " + T(e.action), 1)
3680
+ })) : k("", !0),
3681
+ H(" " + x(e.action), 1)
3631
3682
  ])
3632
- ])) : w("", !0),
3633
- g("span", Un, T(e.profileName), 1),
3634
- e.company ? (u(), v("span", Wn, T(e.company), 1)) : w("", !0),
3635
- e.jobTitle ? (u(), v("span", Gn, T(e.jobTitle), 1)) : w("", !0),
3636
- e.email ? (u(), v("span", Hn, T(e.email), 1)) : w("", !0),
3637
- e.miscMeta || i.$slots.misc ? (u(), v("span", Kn, [
3638
- E(i.$slots, "misc", {}, () => [
3639
- e.miscMetaIcon ? (u(), V(J(f(r) ? f(r) : "span"), {
3683
+ ])) : k("", !0),
3684
+ $("span", Fn, x(e.profileName), 1),
3685
+ e.company ? (d(), b("span", Un, x(e.company), 1)) : k("", !0),
3686
+ e.jobTitle ? (d(), b("span", Wn, x(e.jobTitle), 1)) : k("", !0),
3687
+ e.email ? (d(), b("span", Gn, x(e.email), 1)) : k("", !0),
3688
+ e.miscMeta || o.$slots.misc ? (d(), b("span", Hn, [
3689
+ D(o.$slots, "misc", {}, () => [
3690
+ e.miscMetaIcon ? (d(), L(_(p(i) ? p(i) : "span"), {
3640
3691
  key: 0,
3641
3692
  class: "bs-icon"
3642
- })) : w("", !0),
3643
- F(" " + T(e.miscMeta), 1)
3693
+ })) : k("", !0),
3694
+ H(" " + x(e.miscMeta), 1)
3644
3695
  ])
3645
- ])) : w("", !0)
3696
+ ])) : k("", !0)
3646
3697
  ]));
3647
3698
  }
3648
- }, Wl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3699
+ }, Ul = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3649
3700
  __name: "BsProfile",
3650
3701
  props: {
3651
3702
  layout: {
@@ -3675,20 +3726,21 @@ const Sa = {
3675
3726
  },
3676
3727
  emits: ["action-toggled"],
3677
3728
  setup(e, { emit: a }) {
3678
- const t = e, n = a, l = ie(), { onLinkClick: r } = ke(t), { rootTag: d, attrsToBind: i, hrefUrl: o } = we(t, l, "div");
3679
- return (s, c) => (u(), V(J(f(d)), z({
3729
+ const t = e, n = a, l = le(), { onLinkClick: i } = Ce(t), { rootTag: u, attrsToBind: o, hrefUrl: s } = Ie(t, l, "div");
3730
+ return (r, c) => (d(), L(_(p(u)), M({
3680
3731
  class: "bs-profile",
3681
- ".href": f(o),
3732
+ ".href": p(s),
3682
3733
  "data-layout": e.layout
3683
- }, f(i), { onClick: f(r) }), {
3684
- default: O(() => [
3685
- D(st, {
3734
+ }, p(o), { onClick: p(i) }), {
3735
+ default: E(() => [
3736
+ V(dt, {
3686
3737
  src: e.imageSrc,
3687
3738
  size: e.imageSize,
3688
3739
  initials: e.initials,
3689
- "profile-name": e.profileName
3740
+ "profile-name": e.profileName,
3741
+ "use-alt-text": !1
3690
3742
  }, null, 8, ["src", "size", "initials", "profile-name"]),
3691
- D(Yn, {
3743
+ V(Kn, {
3692
3744
  "profile-name": e.profileName,
3693
3745
  company: e.company,
3694
3746
  "job-title": e.jobTitle,
@@ -3697,13 +3749,13 @@ const Sa = {
3697
3749
  "action-icon": e.actionIcon,
3698
3750
  "misc-meta": e.miscMeta,
3699
3751
  "misc-meta-icon": e.miscMetaIcon,
3700
- onActionToggled: c[0] || (c[0] = (h) => n("action-toggled"))
3752
+ onActionToggled: c[0] || (c[0] = (f) => n("action-toggled"))
3701
3753
  }, {
3702
- action: O(() => [
3703
- E(s.$slots, "action")
3754
+ action: E(() => [
3755
+ D(r.$slots, "action")
3704
3756
  ]),
3705
- misc: O(() => [
3706
- E(s.$slots, "misc")
3757
+ misc: E(() => [
3758
+ D(r.$slots, "misc")
3707
3759
  ]),
3708
3760
  _: 3
3709
3761
  }, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
@@ -3711,7 +3763,7 @@ const Sa = {
3711
3763
  _: 3
3712
3764
  }, 48, [".href", "data-layout", "onClick"]));
3713
3765
  }
3714
- }), Qn = ["data-size"], Xn = ["checked", "disabled", "id", "required", "value", "data-error"], Gl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3766
+ }), Yn = ["data-size"], Qn = ["checked", "disabled", "id", "required", "value", "data-error"], Wl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3715
3767
  __name: "BsRadio",
3716
3768
  props: {
3717
3769
  label: {
@@ -3755,39 +3807,39 @@ const Sa = {
3755
3807
  },
3756
3808
  emits: ["update:modelValue"],
3757
3809
  setup(e, { emit: a }) {
3758
- const t = e, [n] = X(), l = p(() => je.concat(t.passAttrs.split(","))), r = p(() => t.inputId || n.value), d = p(() => t.checked || t.modelValue && t.modelValue === t.value);
3759
- return (i, o) => (u(), v("div", z({
3810
+ const t = e, [n] = Z(), l = v(() => Fe.concat(t.passAttrs.split(","))), i = v(() => t.inputId || n.value), u = v(() => t.checked || t.modelValue && t.modelValue === t.value);
3811
+ return (o, s) => (d(), b("div", M({
3760
3812
  class: "bs-boolean",
3761
3813
  "data-component": "bs-radio",
3762
3814
  "data-size": e.size
3763
- }, f(U)(i.$attrs, l.value).remaining), [
3764
- g("input", z({
3765
- checked: d.value,
3815
+ }, p(K)(o.$attrs, l.value).remaining), [
3816
+ $("input", M({
3817
+ checked: u.value,
3766
3818
  disabled: e.disabled,
3767
- id: i.$attrs.id || r.value,
3819
+ id: o.$attrs.id || i.value,
3768
3820
  required: e.required,
3769
3821
  type: "radio",
3770
3822
  value: e.value,
3771
3823
  "data-error": e.error
3772
- }, f(U)(i.$attrs, l.value).filtered, {
3773
- onChange: o[0] || (o[0] = (s) => i.$emit("update:modelValue", s.target.value))
3774
- }), null, 16, Xn),
3775
- e.label || i.$slots.label ? (u(), V(ne, {
3824
+ }, p(K)(o.$attrs, l.value).filtered, {
3825
+ onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
3826
+ }), null, 16, Qn),
3827
+ e.label || o.$slots.label ? (d(), L(oe, {
3776
3828
  key: 0,
3777
- for: i.$attrs.id || r.value,
3829
+ for: o.$attrs.id || i.value,
3778
3830
  disabled: e.disabled,
3779
3831
  required: e.required
3780
3832
  }, {
3781
- default: O(() => [
3782
- E(i.$slots, "label", {}, () => [
3783
- F(T(e.label), 1)
3833
+ default: E(() => [
3834
+ D(o.$slots, "label", {}, () => [
3835
+ H(x(e.label), 1)
3784
3836
  ])
3785
3837
  ]),
3786
3838
  _: 3
3787
- }, 8, ["for", "disabled", "required"])) : w("", !0)
3788
- ], 16, Qn));
3839
+ }, 8, ["for", "disabled", "required"])) : k("", !0)
3840
+ ], 16, Yn));
3789
3841
  }
3790
- }), Zn = ["id", "disabled", "required", "data-error", "value"], Jn = {
3842
+ }), Xn = ["id", "disabled", "required", "data-error", "value"], Zn = {
3791
3843
  __name: "BsSelect",
3792
3844
  props: {
3793
3845
  disabled: { type: Boolean, default: !1 },
@@ -3800,8 +3852,8 @@ const Sa = {
3800
3852
  },
3801
3853
  emits: ["update:modelValue"],
3802
3854
  setup(e, { emit: a }) {
3803
- const t = e, n = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
3804
- return (l, r) => (u(), v("select", z({
3855
+ const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
3856
+ return (l, i) => (d(), b("select", M({
3805
3857
  id: l.$attrs.id || e.inputId,
3806
3858
  class: "bs-select",
3807
3859
  "data-component": "bs-select",
@@ -3810,12 +3862,12 @@ const Sa = {
3810
3862
  "data-error": e.error,
3811
3863
  value: e.value || e.modelValue
3812
3864
  }, n.value, {
3813
- onChange: r[0] || (r[0] = (d) => l.$emit("update:modelValue", d.target.value))
3865
+ onChange: i[0] || (i[0] = (u) => l.$emit("update:modelValue", u.target.value))
3814
3866
  }), [
3815
- E(l.$slots, "default")
3816
- ], 16, Zn));
3867
+ D(l.$slots, "default")
3868
+ ], 16, Xn));
3817
3869
  }
3818
- }, _n = ["selected", "disabled"], el = ["disabled", "selected", "value"], Hl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3870
+ }, Jn = ["selected", "disabled"], _n = ["disabled", "selected", "value"], Gl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3819
3871
  __name: "BsSelectField",
3820
3872
  props: {
3821
3873
  data: {
@@ -3859,60 +3911,60 @@ const Sa = {
3859
3911
  modelValue: [String, Number]
3860
3912
  },
3861
3913
  setup(e) {
3862
- const a = e, [t, n] = X(2), l = p(() => da.concat(a.passAttrs.split(","))), r = p(() => {
3863
- var s, c;
3864
- return ((c = (s = a.hints) == null ? void 0 : s.join) == null ? void 0 : c.call(s, `
3914
+ const a = e, [t, n] = Z(2), l = v(() => ua.concat(a.passAttrs.split(","))), i = v(() => {
3915
+ var r, c;
3916
+ return ((c = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : c.call(r, `
3865
3917
  `)) || a.hints;
3866
- }), d = p(() => a.error && a.errorMsg || a.hint || r.value || void 0), i = p(() => a.inputId || t.value), o = p(() => a.value || a.modelValue);
3867
- return (s, c) => (u(), v("div", z({ "data-component": "bs-select-field" }, f(U)(s.$attrs, l.value).remaining), [
3868
- e.label || s.$slots.label ? (u(), V(ne, {
3918
+ }), u = v(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = v(() => a.inputId || t.value), s = v(() => a.value || a.modelValue);
3919
+ return (r, c) => (d(), b("div", M({ "data-component": "bs-select-field" }, p(K)(r.$attrs, l.value).remaining), [
3920
+ e.label || r.$slots.label ? (d(), L(oe, {
3869
3921
  key: 0,
3870
- for: s.$attrs.id || i.value,
3922
+ for: r.$attrs.id || o.value,
3871
3923
  disabled: e.disabled,
3872
3924
  required: e.required
3873
3925
  }, {
3874
- default: O(() => [
3875
- E(s.$slots, "label", {}, () => [
3876
- F(T(e.label), 1)
3926
+ default: E(() => [
3927
+ D(r.$slots, "label", {}, () => [
3928
+ H(x(e.label), 1)
3877
3929
  ])
3878
3930
  ]),
3879
3931
  _: 3
3880
- }, 8, ["for", "disabled", "required"])) : w("", !0),
3881
- D(Jn, z({
3932
+ }, 8, ["for", "disabled", "required"])) : k("", !0),
3933
+ V(Zn, M({
3882
3934
  disabled: e.disabled,
3883
3935
  error: e.error,
3884
- "hint-id": f(n),
3885
- "input-id": s.$attrs.id || i.value,
3936
+ "hint-id": p(n),
3937
+ "input-id": r.$attrs.id || o.value,
3886
3938
  required: e.required,
3887
- value: o.value,
3888
- "onUpdate:modelValue": c[0] || (c[0] = (h) => s.$emit("update:modelValue", h))
3889
- }, f(U)(s.$attrs, l.value).filtered), {
3890
- default: O(() => [
3891
- g("option", {
3892
- selected: !o.value,
3939
+ value: s.value,
3940
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => r.$emit("update:modelValue", f))
3941
+ }, p(K)(r.$attrs, l.value).filtered), {
3942
+ default: E(() => [
3943
+ $("option", {
3944
+ selected: !s.value,
3893
3945
  value: "",
3894
- disabled: !!o.value
3895
- }, T(e.disabled ? "" : e.placeholder), 9, _n),
3896
- (u(!0), v(j, null, Z(e.data, (h) => (u(), v("option", {
3897
- key: h.value,
3898
- disabled: h.disabled,
3899
- selected: o.value === h.value,
3900
- value: h.value
3901
- }, T(h.label), 9, el))), 128))
3946
+ disabled: !!s.value
3947
+ }, x(e.disabled ? "" : e.placeholder), 9, Jn),
3948
+ (d(!0), b(G, null, J(e.data, (f) => (d(), b("option", {
3949
+ key: f.value,
3950
+ disabled: f.disabled,
3951
+ selected: s.value === f.value,
3952
+ value: f.value
3953
+ }, x(f.label), 9, _n))), 128))
3902
3954
  ]),
3903
3955
  _: 1
3904
3956
  }, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
3905
- d.value ? (u(), V(pe, {
3957
+ u.value ? (d(), L(he, {
3906
3958
  key: 1,
3907
3959
  "data-disabled": e.disabled,
3908
3960
  error: e.error,
3909
3961
  "error-msg": e.errorMsg,
3910
- hint: e.hint || r.value,
3911
- "hint-id": f(n)
3912
- }, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : w("", !0)
3962
+ hint: e.hint || i.value,
3963
+ "hint-id": p(n)
3964
+ }, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : k("", !0)
3913
3965
  ], 16));
3914
3966
  }
3915
- }), tl = ["data-size"], al = ["data-disabled", "data-pending", "data-size"], nl = ["checked", "disabled", "id"], ll = ["data-inner-on-label", "data-inner-off-label"], Kl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3967
+ }), el = ["data-size"], tl = ["data-disabled", "data-pending", "data-size"], al = ["checked", "disabled", "id"], nl = ["data-inner-on-label", "data-inner-off-label"], Hl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3916
3968
  __name: "BsSwitch",
3917
3969
  props: {
3918
3970
  checked: {
@@ -3958,48 +4010,48 @@ const Sa = {
3958
4010
  },
3959
4011
  emits: ["update:modelValue"],
3960
4012
  setup(e, { emit: a }) {
3961
- const t = e, n = a, [l] = X(), r = p(() => je.concat(t.passAttrs.split(","))), d = p(() => t.inputId || l.value), i = p(() => t.checked || t.modelValue);
3962
- return (o, s) => (u(), v("div", z({
4013
+ const t = e, n = a, [l] = Z(), i = v(() => Fe.concat(t.passAttrs.split(","))), u = v(() => t.inputId || l.value), o = v(() => t.checked || t.modelValue);
4014
+ return (s, r) => (d(), b("div", M({
3963
4015
  class: "bs-boolean",
3964
4016
  "data-component": "bs-switch",
3965
4017
  "data-size": e.size
3966
- }, f(U)(o.$attrs, r.value).remaining), [
3967
- e.label || o.$slots.label ? (u(), V(ne, {
4018
+ }, p(K)(s.$attrs, i.value).remaining), [
4019
+ e.label || s.$slots.label ? (d(), L(oe, {
3968
4020
  key: 0,
3969
- for: o.$attrs.id || d.value,
4021
+ for: s.$attrs.id || u.value,
3970
4022
  disabled: e.disabled,
3971
4023
  hide: e.hideLabel
3972
4024
  }, {
3973
- default: O(() => [
3974
- E(o.$slots, "label", {}, () => [
3975
- F(T(e.label), 1)
4025
+ default: E(() => [
4026
+ D(s.$slots, "label", {}, () => [
4027
+ H(x(e.label), 1)
3976
4028
  ])
3977
4029
  ]),
3978
4030
  _: 3
3979
- }, 8, ["for", "disabled", "hide"])) : w("", !0),
3980
- g("div", {
4031
+ }, 8, ["for", "disabled", "hide"])) : k("", !0),
4032
+ $("div", {
3981
4033
  class: "bs-switch",
3982
4034
  "data-disabled": e.disabled,
3983
4035
  "data-pending": e.pending,
3984
4036
  "data-size": e.size
3985
4037
  }, [
3986
- g("input", z({
3987
- checked: i.value,
4038
+ $("input", M({
4039
+ checked: o.value,
3988
4040
  disabled: e.disabled,
3989
- id: o.$attrs.id || d.value,
4041
+ id: s.$attrs.id || u.value,
3990
4042
  type: "checkbox"
3991
- }, f(U)(o.$attrs, r.value).filtered, {
3992
- onChange: s[0] || (s[0] = (c) => n("update:modelValue", c.target.checked))
3993
- }), null, 16, nl),
3994
- g("span", {
4043
+ }, p(K)(s.$attrs, i.value).filtered, {
4044
+ onChange: r[0] || (r[0] = (c) => n("update:modelValue", c.target.checked))
4045
+ }), null, 16, al),
4046
+ $("span", {
3995
4047
  "aria-hidden": "true",
3996
4048
  "data-inner-on-label": e.innerOnLabel,
3997
4049
  "data-inner-off-label": e.innerOffLabel
3998
- }, null, 8, ll)
3999
- ], 8, al)
4000
- ], 16, tl));
4050
+ }, null, 8, nl)
4051
+ ], 8, tl)
4052
+ ], 16, el));
4001
4053
  }
4002
- }), ol = ["aria-controls", "aria-selected", "data-hidden"], Yl = {
4054
+ }), ll = ["aria-controls", "aria-selected", "data-hidden"], Kl = {
4003
4055
  __name: "BsTab",
4004
4056
  props: {
4005
4057
  activeTabId: {
@@ -4016,32 +4068,32 @@ const Sa = {
4016
4068
  },
4017
4069
  emits: ["tabClick"],
4018
4070
  setup(e, { emit: a }) {
4019
- const t = e, n = ie(), l = m(), r = p(() => t.activeTabId === n.id), d = p(() => t.panelId || `${n.id}-panel`);
4020
- function i(s) {
4021
- (s.key === "Enter" || s.key === " ") && (s.preventDefault(), s.stopPropagation(), o());
4071
+ const t = e, n = le(), l = m(), i = v(() => t.activeTabId === n.id), u = v(() => t.panelId || `${n.id}-panel`);
4072
+ function o(r) {
4073
+ (r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
4022
4074
  }
4023
- function o() {
4075
+ function s() {
4024
4076
  if (t.activeTabId !== n.id) {
4025
- const s = new CustomEvent("tabClick", { detail: n.id, bubbles: !0 });
4026
- l.value.dispatchEvent(s);
4077
+ const r = new CustomEvent("tabClick", { detail: n.id, bubbles: !0 });
4078
+ l.value.dispatchEvent(r);
4027
4079
  }
4028
4080
  }
4029
- return (s, c) => (u(), v("div", {
4030
- "aria-controls": d.value,
4031
- "aria-selected": r.value ? "true" : "false",
4081
+ return (r, c) => (d(), b("div", {
4082
+ "aria-controls": u.value,
4083
+ "aria-selected": i.value ? "true" : "false",
4032
4084
  "data-hidden": e.hidden || void 0,
4033
4085
  "data-component": "bs-tab",
4034
4086
  role: "tab",
4035
4087
  tabindex: "0",
4036
4088
  ref_key: "hostEl",
4037
4089
  ref: l,
4038
- onClick: o,
4039
- onKeydown: i
4090
+ onClick: s,
4091
+ onKeydown: o
4040
4092
  }, [
4041
- E(s.$slots, "default")
4042
- ], 40, ol));
4093
+ D(r.$slots, "default")
4094
+ ], 40, ll));
4043
4095
  }
4044
- }, il = ["id", "data-resizing"], rl = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], sl = 73, dl = 20, ul = 16, Ql = {
4096
+ }, ol = ["id", "data-resizing"], il = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], rl = 73, sl = 20, dl = 16, Yl = {
4045
4097
  __name: "BsTabList",
4046
4098
  props: {
4047
4099
  activeTabId: { type: String, required: !0 },
@@ -4052,182 +4104,183 @@ const Sa = {
4052
4104
  },
4053
4105
  emits: ["tabChange", "update:modelValue"],
4054
4106
  setup(e, { emit: a }) {
4055
- const t = e, n = a, l = m(!1), r = m(!1), d = m([]), i = m(!1), o = m(!1), s = m(), c = m([]), h = m(!1), I = m([]), $ = m(), x = m(), S = m(), [k, q] = X(2), b = p(() => t.activeTabId ? I.value.findIndex((y) => y.id === t.activeTabId) : 0), B = p(() => d.value.some((y) => y.id === t.activeTabId)), A = p(() => `${q.value}-options`), C = p(() => `${q.value}-toggle`), M = p(() => {
4056
- var y;
4057
- return B.value ? (y = I.value[b.value]) == null ? void 0 : y.textContent : "More";
4058
- }), H = p(() => B.value ? c.value[b.value] - c.value[b.value - 1] + dl : sl), Q = p(() => {
4059
- var L, R;
4060
- let y = [];
4107
+ const t = e, n = a, l = m(!1), i = m(!1), u = m([]), o = m(!1), s = m(!1), r = m(), c = m(!1), f = m([]), T = m(!1), y = m([]), S = m(), w = m(), I = m(), [q, B] = Z(2), h = v(() => t.activeTabId ? y.value.findIndex((g) => g.id === t.activeTabId) : 0), C = v(() => u.value.some((g) => g.id === t.activeTabId)), O = v(() => `${B.value}-options`), j = v(() => `${B.value}-toggle`), R = v(() => {
4108
+ var g;
4109
+ return C.value ? (g = y.value[h.value]) == null ? void 0 : g.textContent : "More";
4110
+ }), F = v(() => C.value ? f.value[h.value] - f.value[h.value - 1] + sl : rl), Q = v(() => {
4111
+ var A, N;
4112
+ let g = [];
4061
4113
  if (typeof window > "u")
4062
- return y;
4063
- for (let G of I.value) {
4064
- if (((L = G.dataset) == null ? void 0 : L.hidden) === "true" || ((R = G.dataset) == null ? void 0 : R.hidden) === "" || G.getAttribute("tabindex") === "-1")
4114
+ return g;
4115
+ for (let X of y.value) {
4116
+ if (((A = X.dataset) == null ? void 0 : A.hidden) === "true" || ((N = X.dataset) == null ? void 0 : N.hidden) === "" || X.getAttribute("tabindex") === "-1")
4065
4117
  break;
4066
- y.push(G);
4118
+ g.push(X);
4067
4119
  }
4068
- return o.value && y.push(s.value.querySelector(".bs-tab-list-toggle")), y;
4120
+ return s.value && g.push(r.value.querySelector(".bs-tab-list-toggle")), g;
4069
4121
  });
4070
- function _() {
4071
- var le;
4072
- let y = !1, L, R = 0, G = !1, ee = [];
4073
- if ((le = I.value) != null && le.length) {
4074
- for (let te = 0; te < I.value.length; te++) {
4075
- if (L = I.value[te], L.setAttribute("tabindex", "-1"), G && te !== b.value) {
4076
- L.dataset.hidden = "true", ee.push(L);
4122
+ function ie() {
4123
+ var re;
4124
+ let g = !1, A, N = 0, X = !1, te = [];
4125
+ if ((re = y.value) != null && re.length) {
4126
+ for (let ae = 0; ae < y.value.length; ae++) {
4127
+ if (A = y.value[ae], A.setAttribute("tabindex", "-1"), X && ae !== h.value) {
4128
+ A.dataset.hidden = "true", te.push(A);
4077
4129
  continue;
4078
4130
  }
4079
- if (R = te < I.value.length - 1 ? S.value - H.value : S.value, c.value[te] > R) {
4080
- L.dataset.hidden = "true", ee.push(L), y = !0, G = !0;
4131
+ if (N = ae < y.value.length - 1 ? I.value - F.value : I.value, f.value[ae] > N) {
4132
+ A.dataset.hidden = "true", te.push(A), g = !0, X = !0;
4081
4133
  continue;
4082
4134
  }
4083
- L.dataset.hidden = "false", L.setAttribute("tabindex", "0");
4135
+ A.dataset.hidden = "false", A.setAttribute("tabindex", "0");
4084
4136
  }
4085
- o.value = y, d.value = ee, l.value || me(() => l.value = !0), setTimeout(() => {
4086
- P(), h.value = !0;
4087
- }, h.value ? 0 : 1e3);
4137
+ s.value = g, u.value = te, l.value || pe(() => l.value = !0), setTimeout(() => {
4138
+ U(), T.value = !0;
4139
+ }, T.value ? 0 : 1e3);
4088
4140
  }
4089
4141
  }
4090
- function de(y) {
4091
- n("tabChange", y), n("update:modelValue", y);
4142
+ function ee(g) {
4143
+ n("tabChange", g), n("update:modelValue", g);
4092
4144
  }
4093
- function xe(y) {
4094
- var G, ee, le;
4095
- const L = (le = (ee = (G = I.value[y]) == null ? void 0 : G.getBoundingClientRect) == null ? void 0 : ee.call(G)) == null ? void 0 : le.width;
4096
- return L || (y === 0 ? c.value[0] : c.value[y] - c.value[y - 1]) || 0;
4145
+ function Le(g) {
4146
+ var X, te, re;
4147
+ const A = (re = (te = (X = y.value[g]) == null ? void 0 : X.getBoundingClientRect) == null ? void 0 : te.call(X)) == null ? void 0 : re.width;
4148
+ return A || (g === 0 ? f.value[0] : f.value[g] - f.value[g - 1]) || 0;
4097
4149
  }
4098
- function Ae() {
4099
- var y;
4100
- (y = I.value[b.value]) == null || y.setAttribute("aria-selected", "true"), _();
4150
+ function Ve() {
4151
+ var g;
4152
+ (g = y.value[h.value]) == null || g.setAttribute("aria-selected", "true"), ie();
4101
4153
  }
4102
- function Le() {
4103
- var y;
4104
- (y = $.value) == null || y.focus(), i.value = !1;
4154
+ function Ee() {
4155
+ var g;
4156
+ (g = S.value) == null || g.focus(), o.value = !1;
4105
4157
  }
4106
- function Ve() {
4107
- i.value = !i.value, r.value || (r.value = !0);
4158
+ function De() {
4159
+ o.value = !o.value, i.value || (i.value = !0);
4108
4160
  }
4109
- function Ee(y) {
4110
- var L;
4111
- i.value = !1, (L = $.value) == null || L.focus(), de(y);
4161
+ function Oe(g) {
4162
+ var A;
4163
+ o.value = !1, (A = S.value) == null || A.focus(), ee(g);
4112
4164
  }
4113
- function De(y) {
4165
+ function qe(g) {
4114
4166
  if (t.withBsTabs)
4115
4167
  return;
4116
- const L = y.target.closest('[role="tab"]');
4117
- if (!L || L.getAttribute("aria-selected") === "true")
4168
+ const A = g.target.closest('[role="tab"]');
4169
+ if (!A || A.getAttribute("aria-selected") === "true")
4118
4170
  return;
4119
- const R = L.getAttribute("id");
4120
- de(R);
4171
+ const N = A.getAttribute("id");
4172
+ ee(N);
4121
4173
  }
4122
- function Oe(y) {
4123
- if (y.key === "ArrowLeft" || y.key === "ArrowRight") {
4124
- const L = Q.value.findIndex((R) => R.id === y.target.id);
4125
- if (L === -1)
4174
+ function me(g) {
4175
+ if (g.key === "ArrowLeft" || g.key === "ArrowRight") {
4176
+ const A = Q.value.findIndex((N) => N.id === g.target.id);
4177
+ if (A === -1)
4126
4178
  return;
4127
- y.preventDefault(), y.stopPropagation(), y.key === "ArrowLeft" ? be(L) : he(L);
4179
+ g.preventDefault(), g.stopPropagation(), g.key === "ArrowLeft" ? P(A) : ge(A);
4128
4180
  }
4129
4181
  }
4130
- function he(y) {
4131
- var R;
4132
- const L = (y + 1) % Q.value.length;
4133
- (R = Q.value[L]) == null || R.focus();
4182
+ function ge(g) {
4183
+ var N;
4184
+ const A = (g + 1) % Q.value.length;
4185
+ (N = Q.value[A]) == null || N.focus();
4134
4186
  }
4135
- function be(y) {
4136
- var R;
4137
- const L = y === 0 ? Q.value.length - 1 : y - 1;
4138
- (R = Q.value[L]) == null || R.focus();
4187
+ function P(g) {
4188
+ var N;
4189
+ const A = g === 0 ? Q.value.length - 1 : g - 1;
4190
+ (N = Q.value[A]) == null || N.focus();
4139
4191
  }
4140
- function P() {
4141
- var le, te, Ge, He;
4142
- const y = parseInt(s.value.style.getPropertyValue("--active-line-offset")) || 0, L = S.value;
4143
- let R = 300, G = ((te = (le = Q.value) == null ? void 0 : le[b.value]) == null ? void 0 : te.offsetLeft) || 0, ee = xe(b.value);
4144
- o.value && B.value && (G = (Ge = $.value) == null ? void 0 : Ge.offsetLeft, ee = (He = $.value) == null ? void 0 : He.offsetWidth), R = Math.max(Math.abs((G - y) / L * 300), 100), s.value.style.setProperty("--active-line-max-width", `${L}px`), s.value.style.setProperty("--active-line-scale", `${ee / L}`), s.value.style.setProperty("--active-line-offset", `${G}px`), s.value.style.setProperty("--active-line-transition-duration", `${R}ms`);
4192
+ function U() {
4193
+ var re, ae, He, Ke;
4194
+ const g = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, A = I.value;
4195
+ let N = 300, X = ((ae = (re = Q.value) == null ? void 0 : re[h.value]) == null ? void 0 : ae.offsetLeft) || 0, te = Le(h.value);
4196
+ s.value && C.value && (X = (He = S.value) == null ? void 0 : He.offsetLeft, te = (Ke = S.value) == null ? void 0 : Ke.offsetWidth), N = Math.max(Math.abs((X - g) / A * 300), 100), r.value.style.setProperty("--active-line-max-width", `${A}px`), r.value.style.setProperty("--active-line-scale", `${te / A}`), r.value.style.setProperty("--active-line-offset", `${X}px`), r.value.style.setProperty("--active-line-transition-duration", `${N}ms`);
4145
4197
  }
4146
- function Y() {
4147
- var y, L;
4148
- (L = (y = x.value) == null ? void 0 : y.disconnect) == null || L.call(y), x.value = null;
4198
+ function W() {
4199
+ var g, A;
4200
+ (A = (g = w.value) == null ? void 0 : g.disconnect) == null || A.call(g), w.value = null;
4149
4201
  }
4150
- function K() {
4151
- x.value = new ResizeObserver((y) => {
4152
- for (let L of y)
4153
- S.value = L.contentBoxSize[0].inlineSize;
4154
- _();
4155
- }), x.value.observe(s.value);
4202
+ function fe() {
4203
+ w.value = new ResizeObserver((g) => {
4204
+ for (let A of g)
4205
+ I.value = A.contentBoxSize[0].inlineSize;
4206
+ ie();
4207
+ }), w.value.observe(r.value);
4156
4208
  }
4157
- function ue() {
4158
- I.value = Array.from(s.value.children).filter((y) => y.role === "tab");
4209
+ function ut() {
4210
+ y.value = Array.from(r.value.children).filter((g) => g.role === "tab");
4159
4211
  }
4160
- function dt() {
4161
- let y;
4162
- I.value.forEach((L, R) => {
4163
- y = L.getBoundingClientRect().width + ul, c.value.push(R ? y + c.value[R - 1] : y);
4212
+ function ct() {
4213
+ let g;
4214
+ y.value.forEach((A, N) => {
4215
+ g = A.getBoundingClientRect().width + dl, f.value.push(N ? g + f.value[N - 1] : g);
4164
4216
  });
4165
4217
  }
4166
- return N(() => t.activeTabId, Ae), W(() => {
4167
- var y;
4218
+ return z(() => t.activeTabId, Ve), Y(() => {
4219
+ var g;
4168
4220
  try {
4169
- ue(), dt(), K(), S.value = s.value.getBoundingClientRect().width, _(), t.withBsTabs || (y = I.value[b.value]) == null || y.setAttribute("aria-selected", "true");
4170
- } catch (L) {
4171
- console.log("tab error", L);
4221
+ ut(), ct(), fe(), I.value = r.value.getBoundingClientRect().width, ie(), t.withBsTabs || (g = y.value[h.value]) == null || g.setAttribute("aria-selected", "true"), c.value = !0;
4222
+ } catch (A) {
4223
+ console.log("tab error", A);
4172
4224
  }
4173
- }), oe(Y), (y, L) => (u(), v("div", {
4225
+ }), de(W), (g, A) => (d(), b("div", {
4174
4226
  class: "bs-tab-list",
4175
4227
  "data-component": "bs-tab-list",
4176
- id: y.$attrs.id || f(k),
4228
+ id: g.$attrs.id || p(q),
4177
4229
  ref_key: "hostEl",
4178
- ref: s,
4230
+ ref: r,
4179
4231
  role: "tablist",
4180
4232
  "data-resizing": !l.value || void 0,
4181
- onClick: De,
4182
- "on:tabClick": L[0] || (L[0] = (R) => de(R.detail)),
4183
- onKeydown: Oe
4233
+ onClick: qe,
4234
+ "on:tabClick": A[0] || (A[0] = (N) => ee(N.detail)),
4235
+ onKeydown: me
4184
4236
  }, [
4185
- E(y.$slots, "default"),
4186
- g("button", {
4187
- "aria-controls": f(q),
4188
- "aria-expanded": i.value,
4237
+ D(g.$slots, "default"),
4238
+ $("button", {
4239
+ "aria-controls": p(B),
4240
+ "aria-expanded": o.value,
4189
4241
  class: "bs-tab-list-toggle",
4190
- "data-active": B.value || void 0,
4191
- "data-hidden": !o.value,
4192
- id: C.value,
4242
+ "data-active": C.value || void 0,
4243
+ "data-hidden": !s.value,
4244
+ id: j.value,
4193
4245
  ref_key: "dropdownToggle",
4194
- ref: $,
4195
- onClick: Ve
4246
+ ref: S,
4247
+ onClick: De
4196
4248
  }, [
4197
- D(f($t), { size: "sm" }),
4198
- F(" " + T(M.value), 1)
4199
- ], 8, rl),
4200
- D(We, {
4201
- "anchor-id": C.value,
4202
- "container-id": y.$attrs.id || f(k),
4249
+ V(p(St), { size: "sm" }),
4250
+ H(" " + x(R.value), 1)
4251
+ ], 8, il),
4252
+ c.value ? (d(), L(Ge, {
4253
+ key: 0,
4254
+ "anchor-id": j.value,
4255
+ "container-id": g.$attrs.id || p(q),
4203
4256
  "helper-description": e.helperDescription || void 0,
4204
4257
  "helper-text": e.helperText,
4205
- id: f(q),
4206
- "options-id": A.value,
4258
+ id: p(B),
4259
+ "options-id": O.value,
4207
4260
  position: "right",
4208
4261
  preloaded: "",
4209
- shown: i.value,
4262
+ shown: o.value,
4210
4263
  width: "content",
4211
- onClose: Le,
4212
- "onUpdate:modelValue": Ee
4264
+ onClose: Ee,
4265
+ "onUpdate:modelValue": Oe
4213
4266
  }, {
4214
- default: O(() => [
4215
- (u(!0), v(j, null, Z(d.value, (R) => (u(), V(Ue, {
4216
- key: R.id,
4217
- value: R.id,
4218
- "options-id": A.value
4267
+ default: E(() => [
4268
+ (d(!0), b(G, null, J(u.value, (N) => (d(), L(We, {
4269
+ key: N.id,
4270
+ value: N.id,
4271
+ "options-id": O.value
4219
4272
  }, {
4220
- default: O(() => [
4221
- F(T(R.textContent), 1)
4273
+ default: E(() => [
4274
+ H(x(N.textContent), 1)
4222
4275
  ]),
4223
4276
  _: 2
4224
4277
  }, 1032, ["value", "options-id"]))), 128))
4225
4278
  ]),
4226
4279
  _: 1
4227
- }, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
4228
- ], 40, il));
4280
+ }, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])) : k("", !0)
4281
+ ], 40, ol));
4229
4282
  }
4230
- }, cl = ["aria-labelledby", "data-active", "id"], Xl = {
4283
+ }, ul = ["aria-labelledby", "data-active", "id"], Ql = {
4231
4284
  __name: "BsTabPanel",
4232
4285
  props: {
4233
4286
  activeTabId: {
@@ -4240,18 +4293,18 @@ const Sa = {
4240
4293
  }
4241
4294
  },
4242
4295
  setup(e) {
4243
- const a = e, t = ie(), n = p(() => a.activeTabId && a.activeTabId === a.tabId), l = p(() => t.id || `${a.tabId}-panel`);
4244
- return (r, d) => (u(), v("section", {
4296
+ const a = e, t = le(), n = v(() => a.activeTabId && a.activeTabId === a.tabId), l = v(() => t.id || `${a.tabId}-panel`);
4297
+ return (i, u) => (d(), b("section", {
4245
4298
  "aria-labelledby": e.tabId,
4246
4299
  "data-active": n.value,
4247
4300
  "data-component": "bs-tab-panel",
4248
4301
  id: l.value,
4249
4302
  role: "tabpanel"
4250
4303
  }, [
4251
- E(r.$slots, "default")
4252
- ], 8, cl));
4304
+ D(i.$slots, "default")
4305
+ ], 8, ul));
4253
4306
  }
4254
- }, fl = ["data-error", "id", "rows", "value"], pl = {
4307
+ }, cl = ["data-error", "id", "rows", "value"], fl = {
4255
4308
  __name: "BsTextarea",
4256
4309
  props: {
4257
4310
  error: {
@@ -4266,18 +4319,18 @@ const Sa = {
4266
4319
  },
4267
4320
  emits: ["update:modelValue"],
4268
4321
  setup(e, { emit: a }) {
4269
- const t = e, n = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
4270
- return (l, r) => (u(), v("textarea", z({
4322
+ const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
4323
+ return (l, i) => (d(), b("textarea", M({
4271
4324
  class: "bs-textarea",
4272
4325
  "data-component": "bs-textarea",
4273
4326
  "data-error": e.error,
4274
4327
  id: l.$attrs.id || e.inputId,
4275
4328
  rows: l.$attrs.rows || 6,
4276
4329
  value: e.value || e.modelValue,
4277
- onInput: r[0] || (r[0] = (d) => l.$emit("update:modelValue", d.target.value))
4278
- }, n.value), null, 16, fl));
4330
+ onInput: i[0] || (i[0] = (u) => l.$emit("update:modelValue", u.target.value))
4331
+ }, n.value), null, 16, cl));
4279
4332
  }
4280
- }, Zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
4333
+ }, Xl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
4281
4334
  __name: "BsTextareaField",
4282
4335
  props: {
4283
4336
  /** Sets the maximum value this textarea will allow. Will also display character count if present. This does not set maxlength, so users are able to enter text that is longer and edit it down. Enforcement of length must be by the developer. */
@@ -4326,52 +4379,52 @@ const Sa = {
4326
4379
  },
4327
4380
  emits: ["update:modelValue"],
4328
4381
  setup(e, { emit: a }) {
4329
- const t = e, [n, l] = X(2), r = p(() => ua.concat(t.passAttrs.split(","))), d = p(() => {
4382
+ const t = e, [n, l] = Z(2), i = v(() => ca.concat(t.passAttrs.split(","))), u = v(() => {
4330
4383
  var c;
4331
4384
  return ((c = t.value || t.modelValue) == null ? void 0 : c.length) || 0;
4332
- }), i = p(() => {
4333
- var c, h;
4334
- return ((h = (c = t.hints) == null ? void 0 : c.join) == null ? void 0 : h.call(c, `
4385
+ }), o = v(() => {
4386
+ var c, f;
4387
+ return ((f = (c = t.hints) == null ? void 0 : c.join) == null ? void 0 : f.call(c, `
4335
4388
  `)) || t.hints;
4336
- }), o = p(() => t.error && t.errorMsg || t.hint || i.value || void 0), s = p(() => t.inputId || n.value);
4337
- return (c, h) => (u(), v("div", z({ "data-component": "bs-textarea-field" }, f(U)(c.$attrs, r.value).remaining), [
4338
- e.label || c.$slots.label ? (u(), V(ne, {
4389
+ }), s = v(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = v(() => t.inputId || n.value);
4390
+ return (c, f) => (d(), b("div", M({ "data-component": "bs-textarea-field" }, p(K)(c.$attrs, i.value).remaining), [
4391
+ e.label || c.$slots.label ? (d(), L(oe, {
4339
4392
  key: 0,
4340
- for: c.$attrs.id || s.value,
4393
+ for: c.$attrs.id || r.value,
4341
4394
  disabled: e.disabled,
4342
4395
  required: e.required
4343
4396
  }, {
4344
- default: O(() => [
4345
- E(c.$slots, "label", {}, () => [
4346
- F(T(e.label), 1)
4397
+ default: E(() => [
4398
+ D(c.$slots, "label", {}, () => [
4399
+ H(x(e.label), 1)
4347
4400
  ])
4348
4401
  ]),
4349
4402
  _: 3
4350
- }, 8, ["for", "disabled", "required"])) : w("", !0),
4351
- D(pl, z({
4403
+ }, 8, ["for", "disabled", "required"])) : k("", !0),
4404
+ V(fl, M({
4352
4405
  disabled: e.disabled,
4353
4406
  error: e.error,
4354
- "hint-id": f(l),
4355
- id: c.$attrs.id || s.value,
4407
+ "hint-id": p(l),
4408
+ id: c.$attrs.id || r.value,
4356
4409
  placeholder: e.placeholder,
4357
4410
  required: e.required,
4358
4411
  rows: e.rows,
4359
4412
  value: e.value || e.modelValue,
4360
- "onUpdate:modelValue": h[0] || (h[0] = (I) => c.$emit("update:modelValue", I))
4361
- }, f(U)(c.$attrs, r.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
4362
- o.value || e.charMax ? (u(), V(pe, {
4413
+ "onUpdate:modelValue": f[0] || (f[0] = (T) => c.$emit("update:modelValue", T))
4414
+ }, p(K)(c.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
4415
+ s.value || e.charMax ? (d(), L(he, {
4363
4416
  key: 1,
4364
- "char-count": d.value,
4417
+ "char-count": u.value,
4365
4418
  "char-max": e.charMax,
4366
4419
  "data-disabled": e.disabled,
4367
4420
  error: e.error,
4368
4421
  "error-msg": e.errorMsg,
4369
- hint: e.hint || i.value,
4370
- "hint-id": f(l)
4371
- }, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : w("", !0)
4422
+ hint: e.hint || o.value,
4423
+ "hint-id": p(l)
4424
+ }, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : k("", !0)
4372
4425
  ], 16));
4373
4426
  }
4374
- }), vl = ["data-variant", "data-stacked"], Jl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
4427
+ }), pl = ["data-variant", "data-stacked"], Zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
4375
4428
  __name: "BsToast",
4376
4429
  props: {
4377
4430
  shown: {
@@ -4417,111 +4470,111 @@ const Sa = {
4417
4470
  },
4418
4471
  emits: ["dismiss", "after-enter", "after-leave"],
4419
4472
  setup(e, { emit: a }) {
4420
- const t = e, n = a, { transition: l } = fe(t);
4421
- let r = null;
4422
- re("variant", t.variant), re("handleDismiss", i);
4423
- const d = se("stacked", t.stacked);
4424
- function i() {
4425
- r && (clearTimeout(r), r = null), n("dismiss", t.toastId);
4426
- }
4473
+ const t = e, n = a, { transition: l } = ve(t);
4474
+ let i = null;
4475
+ ue("variant", t.variant), ue("handleDismiss", o);
4476
+ const u = ce("stacked", t.stacked);
4427
4477
  function o() {
4428
- t.duration > 0 && (r = setTimeout(() => {
4429
- i();
4478
+ i && (clearTimeout(i), i = null), n("dismiss", t.toastId);
4479
+ }
4480
+ function s() {
4481
+ t.duration > 0 && (i = setTimeout(() => {
4482
+ o();
4430
4483
  }, t.duration)), n("after-enter");
4431
4484
  }
4432
- return (s, c) => (u(), V(f(Te), {
4433
- shown: f(l),
4485
+ return (r, c) => (d(), L(p(Ae), {
4486
+ shown: p(l),
4434
4487
  preloaded: e.preloaded,
4435
4488
  duration: 200,
4436
4489
  "enter-attribute": "data-shown",
4437
- onAfterEnter: o,
4438
- onAfterLeave: c[0] || (c[0] = (h) => n("after-leave"))
4490
+ onAfterEnter: s,
4491
+ onAfterLeave: c[0] || (c[0] = (f) => n("after-leave"))
4439
4492
  }, {
4440
- default: O(() => [
4441
- g("div", z({
4493
+ default: E(() => [
4494
+ $("div", M({
4442
4495
  class: "bs-toast",
4443
4496
  "data-variant": e.variant,
4444
- "data-stacked": f(d) || void 0,
4445
- "aria-role": "alert"
4446
- }, s.$attrs), [
4447
- E(s.$slots, "default")
4448
- ], 16, vl)
4497
+ "data-stacked": p(u) || void 0,
4498
+ role: "alert"
4499
+ }, r.$attrs), [
4500
+ D(r.$slots, "default")
4501
+ ], 16, pl)
4449
4502
  ]),
4450
4503
  _: 3
4451
4504
  }, 8, ["shown", "preloaded"]));
4452
4505
  }
4453
- }), hl = ["data-stacked"], _l = {
4506
+ }), vl = ["data-stacked"], Jl = {
4454
4507
  __name: "BsToastActions",
4455
4508
  setup(e) {
4456
4509
  const a = m(!1);
4457
- W(() => {
4510
+ Y(() => {
4458
4511
  var l;
4459
- const n = vt();
4512
+ const n = lt();
4460
4513
  ((l = n.default) == null ? void 0 : l.call(n).length) > 2 && (a.value = !0);
4461
4514
  });
4462
- const t = se("handleDismiss");
4463
- return (n, l) => (u(), v("div", {
4515
+ const t = ce("handleDismiss");
4516
+ return (n, l) => (d(), b("div", {
4464
4517
  class: "bs-toast-actions",
4465
4518
  "data-stacked": a.value || void 0
4466
4519
  }, [
4467
- E(n.$slots, "default", {}, () => [
4468
- D(fa, {
4520
+ D(n.$slots, "default", {}, () => [
4521
+ V(pa, {
4469
4522
  size: "sm",
4470
4523
  "text-btn": "",
4471
- onClick: f(t)
4524
+ onClick: p(t)
4472
4525
  }, {
4473
- default: O(() => [
4474
- F(" Dismiss ")
4526
+ default: E(() => [
4527
+ H(" Dismiss ")
4475
4528
  ]),
4476
4529
  _: 1
4477
4530
  }, 8, ["onClick"])
4478
4531
  ])
4479
- ], 8, hl));
4532
+ ], 8, vl));
4480
4533
  }
4481
- }, bl = (e, a) => {
4534
+ }, hl = (e, a) => {
4482
4535
  const t = e.__vccOpts || e;
4483
4536
  for (const [n, l] of a)
4484
4537
  t[n] = l;
4485
4538
  return t;
4486
- }, ml = {}, gl = { class: "bs-toast-body" };
4487
- function yl(e, a) {
4488
- return u(), v("div", gl, [
4489
- E(e.$slots, "default")
4539
+ }, bl = {}, ml = { class: "bs-toast-body" };
4540
+ function gl(e, a) {
4541
+ return d(), b("div", ml, [
4542
+ D(e.$slots, "default")
4490
4543
  ]);
4491
4544
  }
4492
- const eo = /* @__PURE__ */ bl(ml, [["render", yl]]), Bl = ["data-variant"], to = {
4545
+ const _l = /* @__PURE__ */ hl(bl, [["render", gl]]), yl = ["data-variant"], eo = {
4493
4546
  __name: "BsToastHeader",
4494
4547
  setup(e) {
4495
- const a = se("variant"), t = p(() => {
4548
+ const a = ce("variant"), t = v(() => {
4496
4549
  switch (a) {
4497
4550
  case "warning":
4498
- return ze;
4551
+ return Ne;
4499
4552
  case "positive":
4500
- return wt;
4553
+ return kt;
4501
4554
  case "negative":
4502
- return ze;
4555
+ return Ne;
4503
4556
  default:
4504
- return St;
4557
+ return wt;
4505
4558
  }
4506
4559
  });
4507
- return (n, l) => (u(), v("div", {
4560
+ return (n, l) => (d(), b("div", {
4508
4561
  class: "bs-toast-header",
4509
- "data-variant": f(a)
4562
+ "data-variant": p(a)
4510
4563
  }, [
4511
- (u(), V(J(t.value), { class: "bs-toast-header-icon" })),
4512
- g("h5", null, [
4513
- E(n.$slots, "default")
4564
+ (d(), L(_(t.value), { class: "bs-toast-header-icon" })),
4565
+ $("h5", null, [
4566
+ D(n.$slots, "default")
4514
4567
  ])
4515
- ], 8, Bl));
4568
+ ], 8, yl));
4516
4569
  }
4517
- }, $l = { class: "bs-toaster" }, ao = {
4570
+ }, Bl = { class: "bs-toaster" }, to = {
4518
4571
  __name: "BsToaster",
4519
4572
  setup(e) {
4520
- return re("stacked", !0), (a, t) => (u(), v("div", $l, [
4521
- E(a.$slots, "default")
4573
+ return ue("stacked", !0), (a, t) => (d(), b("div", Bl, [
4574
+ D(a.$slots, "default")
4522
4575
  ]));
4523
4576
  }
4524
- }, Sl = ["data-position"], wl = ["id"], no = {
4577
+ }, $l = ["data-position"], Sl = ["id"], ao = {
4525
4578
  __name: "BsTooltip",
4526
4579
  props: {
4527
4580
  tooltipId: {
@@ -4548,86 +4601,86 @@ const eo = /* @__PURE__ */ bl(ml, [["render", yl]]), Bl = ["data-variant"], to =
4548
4601
  }
4549
4602
  },
4550
4603
  setup(e) {
4551
- const a = e, t = m(!1), n = m(!1), l = p(() => {
4552
- let i = "bs-tooltip-text";
4553
- return n.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ? i += " escaped-x" : a.position === "left" || a.position === "right" ? i += " escaped-y" : i += " escaped"), i;
4604
+ const a = e, t = m(!1), n = m(!1), l = v(() => {
4605
+ let o = "bs-tooltip-text";
4606
+ return n.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ? o += " escaped-x" : a.position === "left" || a.position === "right" ? o += " escaped-y" : o += " escaped"), o;
4554
4607
  });
4555
- Ie(["Escape"], () => {
4608
+ Te(["Escape"], () => {
4556
4609
  t.value && (t.value = !1, n.value = !0);
4557
4610
  });
4558
- function r() {
4611
+ function i() {
4559
4612
  t.value = !0;
4560
4613
  }
4561
- function d() {
4614
+ function u() {
4562
4615
  t.value = !1, n.value = !1;
4563
4616
  }
4564
- return (i, o) => (u(), v("div", {
4617
+ return (o, s) => (d(), b("div", {
4565
4618
  class: "bs-tooltip",
4566
4619
  "data-position": e.position || void 0,
4567
4620
  "data-component": "bs-tooltip",
4568
- onMouseenter: r,
4569
- onFocusin: r,
4570
- onMouseleave: d,
4571
- onFocusout: d
4621
+ onMouseenter: i,
4622
+ onFocusin: i,
4623
+ onMouseleave: u,
4624
+ onFocusout: u
4572
4625
  }, [
4573
- E(i.$slots, "default"),
4574
- e.content ? (u(), v("div", {
4626
+ D(o.$slots, "default"),
4627
+ e.content ? (d(), b("div", {
4575
4628
  key: 0,
4576
- class: ae(l.value),
4629
+ class: ne(l.value),
4577
4630
  id: e.tooltipId,
4578
4631
  role: "tooltip"
4579
- }, T(e.content), 11, wl)) : w("", !0)
4580
- ], 40, Sl));
4632
+ }, x(e.content), 11, Sl)) : k("", !0)
4633
+ ], 40, $l));
4581
4634
  }
4582
4635
  };
4583
4636
  export {
4584
- Ll as BsAccordion,
4585
- Wt as BsBadge,
4586
- Vl as BsBanner,
4587
- fa as BsButton,
4588
- El as BsCalendar,
4589
- Dl as BsChartBar,
4590
- Ta as BsCheckbox,
4637
+ Al as BsAccordion,
4638
+ Gt as BsBadge,
4639
+ Ll as BsBanner,
4640
+ pa as BsButton,
4641
+ Vl as BsCalendar,
4642
+ El as BsChartBar,
4643
+ Dl as BsCheckbox,
4591
4644
  Ol as BsCircleButton,
4592
- rt as BsDropdown,
4593
- Ja as BsDropdownMultiselect,
4594
- Ue as BsDropdownOption,
4595
- ye as BsDropdownOptionBuilder,
4596
- Fe as BsDropdownOptionList,
4597
- We as BsDropdownWithOptions,
4645
+ st as BsDropdown,
4646
+ Ya as BsDropdownMultiselect,
4647
+ We as BsDropdownOption,
4648
+ $e as BsDropdownOptionBuilder,
4649
+ Ue as BsDropdownOptionList,
4650
+ Ge as BsDropdownWithOptions,
4598
4651
  ql as BsDropdownWithToggle,
4599
- pe as BsFieldDetails,
4600
- an as BsFilterButton,
4601
- Ml as BsIconGradientWrapper,
4602
- ve as BsInput,
4603
- Ce as BsInputAddon,
4604
- Pl as BsInputField,
4652
+ he as BsFieldDetails,
4653
+ Ja as BsFilterButton,
4654
+ Pl as BsIconGradientWrapper,
4655
+ be as BsInput,
4656
+ xe as BsInputAddon,
4657
+ Ml as BsInputField,
4605
4658
  zl as BsInputPhone,
4606
- cn as BsInputSearch,
4659
+ sn as BsInputSearch,
4607
4660
  Nl as BsInputTypeahead,
4608
- ne as BsLabel,
4609
- Rl as BsLoader,
4610
- jl as BsModal,
4611
- Bn as BsOverlay,
4612
- Fl as BsPagination,
4613
- Ul as BsPill,
4614
- Wl as BsProfile,
4615
- Yn as BsProfileDetails,
4616
- st as BsProfileImg,
4617
- Gl as BsRadio,
4618
- Jn as BsSelect,
4619
- Hl as BsSelectField,
4620
- Kl as BsSwitch,
4621
- Yl as BsTab,
4622
- Ql as BsTabList,
4623
- Xl as BsTabPanel,
4624
- pl as BsTextarea,
4625
- Zl as BsTextareaField,
4626
- Jl as BsToast,
4627
- _l as BsToastActions,
4628
- eo as BsToastBody,
4629
- to as BsToastHeader,
4630
- ao as BsToaster,
4631
- no as BsTooltip,
4632
- Te as BsTransition
4661
+ oe as BsLabel,
4662
+ bn as BsLoader,
4663
+ Rl as BsModal,
4664
+ yn as BsOverlay,
4665
+ jl as BsPagination,
4666
+ Fl as BsPill,
4667
+ Ul as BsProfile,
4668
+ Kn as BsProfileDetails,
4669
+ dt as BsProfileImg,
4670
+ Wl as BsRadio,
4671
+ Zn as BsSelect,
4672
+ Gl as BsSelectField,
4673
+ Hl as BsSwitch,
4674
+ Kl as BsTab,
4675
+ Yl as BsTabList,
4676
+ Ql as BsTabPanel,
4677
+ fl as BsTextarea,
4678
+ Xl as BsTextareaField,
4679
+ Zl as BsToast,
4680
+ Jl as BsToastActions,
4681
+ _l as BsToastBody,
4682
+ eo as BsToastHeader,
4683
+ to as BsToaster,
4684
+ ao as BsTooltip,
4685
+ Ae as BsTransition
4633
4686
  };