@wwtdev/bsds-components-vue3 2.0.10 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { computed as p, ref as k, onMounted as N, onUnmounted as ne, shallowRef as Re, watch as E, defineAsyncComponent as Ne, openBlock as u, createElementBlock as f, unref as v, createElementVNode as m, renderSlot as I, createBlock as A, resolveDynamicComponent as U, createCommentVNode as $, toDisplayString as T, createVNode as V, normalizeClass as X, useAttrs as R, mergeProps as D, withCtx as C, Fragment as O, renderList as Y, createTextVNode as j, withDirectives as je, Transition as me, vShow as We, inject as te, provide as ae, onDeactivated as Ge, isRef as Fe, nextTick as Ue, useSlots as He } from "vue";
2
- import { v4 as Ke } from "uuid";
3
- import { BsIconCaretDown as Ye, BsIconWarning as ve, BsIconClose as oe, BsIconSearch as Xe, BsIconCaretLeftDouble as Ze, BsIconCaretLeft as Je, BsIconCaretRight as Qe, BsIconCaretRightDouble as _e, BsIconActionEllipsis as et, BsIconCircleExclamation as tt, BsIconThumbsUpStroke as at } from "@wwtdev/bsds-icons-vue3";
1
+ import { computed as p, ref as I, onMounted as j, onUnmounted as ne, shallowRef as Re, watch as E, defineAsyncComponent as je, openBlock as d, createElementBlock as f, unref as v, createElementVNode as m, renderSlot as k, createBlock as L, resolveDynamicComponent as U, createCommentVNode as S, toDisplayString as T, createVNode as P, normalizeClass as X, useAttrs as N, mergeProps as D, withCtx as V, Fragment as O, renderList as Y, createTextVNode as R, withDirectives as We, Transition as me, vShow as Fe, inject as te, provide as ae, onDeactivated as Ge, isRef as Ue, nextTick as He, useSlots as Ke } from "vue";
2
+ import { v4 as Ye } from "uuid";
3
+ import { BsIconCaretDown as we, BsIconWarning as ve, BsIconClose as oe, BsIconSearch as Xe, BsIconCaretLeftDouble as Ze, BsIconCaretLeft as Je, BsIconCaretRight as Qe, BsIconCaretRightDouble as _e, BsIconActionEllipsis as et, BsIconCircleExclamation as tt, BsIconThumbsUpStroke as at } from "@wwtdev/bsds-icons-vue3";
4
4
  import { Chart as fe, BarController as nt, BarElement as lt, CategoryScale as ot, LinearScale as it, Legend as rt, Tooltip as st } from "chart.js";
5
5
  const ye = {
6
6
  href: "a",
@@ -8,16 +8,16 @@ const ye = {
8
8
  onClick: "button",
9
9
  type: "button"
10
10
  };
11
- function he(e, a, t = "button") {
11
+ function pe(e, a, t = "button") {
12
12
  const l = dt(e, a, t), n = p(() => {
13
- const o = l.value === "button", d = {};
14
- return o ? (d.type = a.type || "button", d.autocomplete = "off", e.disabled && (d.disabled = !0)) : e.disabled && (d["aria-disabled"] = "true", d.tabindex = "-1"), d;
13
+ const o = l.value === "button", u = {};
14
+ return o ? (u.type = a.type || "button", u.autocomplete = "off", e.disabled && (u.disabled = !0)) : e.disabled && (u["aria-disabled"] = "true", u.tabindex = "-1"), u;
15
15
  });
16
16
  return { rootTag: l, attrsToBind: n };
17
17
  }
18
18
  function dt(e, a, t) {
19
19
  const l = Object.keys(ye).find((n) => ut(e, a, n));
20
- return k(ye[l] || t);
20
+ return I(ye[l] || t);
21
21
  }
22
22
  function ut(e, a, t) {
23
23
  return e[t] || a[t];
@@ -29,7 +29,7 @@ const ct = (e, a) => {
29
29
  return (o = n.value) == null ? void 0 : o.contains(l.target);
30
30
  }) || a(l);
31
31
  };
32
- N(() => {
32
+ j(() => {
33
33
  document.addEventListener("click", t);
34
34
  }), ne(() => {
35
35
  document.removeEventListener("click", t);
@@ -44,12 +44,12 @@ function ie(e) {
44
44
  return a.value && ((n = e.router) == null ? void 0 : n.navigateTo) || ((o = e.router) == null ? void 0 : o.push) || null;
45
45
  });
46
46
  function l(n) {
47
- var o, d, i, s, r;
47
+ var o, u, i, s, r;
48
48
  if (e.disabled) {
49
49
  n.preventDefault(), n.stopImmediatePropagation();
50
50
  return;
51
51
  }
52
- !e.href || !t.value || ((d = (o = n.target.href) == null ? void 0 : o.endsWith) != null && d.call(o, e.href) || (r = (s = (i = n.target.closest("a")) == null ? void 0 : i.href) == null ? void 0 : s.endsWith) != null && r.call(s, e.href)) && (n.preventDefault(), t.value(e.href));
52
+ !e.href || !t.value || ((u = (o = n.target.href) == null ? void 0 : o.endsWith) != null && u.call(o, e.href) || (r = (s = (i = n.target.closest("a")) == null ? void 0 : i.href) == null ? void 0 : s.endsWith) != null && r.call(s, e.href)) && (n.preventDefault(), t.value(e.href));
53
53
  }
54
54
  return { onLinkClick: l };
55
55
  }
@@ -61,9 +61,9 @@ const le = (e, a) => {
61
61
  if (!n)
62
62
  return null;
63
63
  const o = n.startsWith("bs-") ? Be(n) : `BsIcon${Be(n)}`;
64
- return Ne(async () => {
65
- const { [o]: d } = await import("@wwtdev/bsds-icons-vue3");
66
- return d;
64
+ return je(async () => {
65
+ const { [o]: u } = await import("@wwtdev/bsds-icons-vue3");
66
+ return u;
67
67
  });
68
68
  }
69
69
  const l = Re();
@@ -72,23 +72,23 @@ const le = (e, a) => {
72
72
  function H(e = 1) {
73
73
  const a = [];
74
74
  for (let t = 0; t < e; t++)
75
- a.push(k(""));
76
- return N(() => {
77
- a.forEach((t) => t.value = Ke());
75
+ a.push(I(""));
76
+ return j(() => {
77
+ a.forEach((t) => t.value = Ye());
78
78
  }), a;
79
79
  }
80
80
  const re = (e, a, t = void 0) => {
81
81
  const l = (n) => {
82
82
  e.includes(n.key) && a(n);
83
83
  };
84
- N(() => {
84
+ j(() => {
85
85
  ((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", l);
86
86
  }), ne(() => {
87
87
  ((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
88
88
  });
89
89
  }, ft = (e, a, t) => {
90
90
  let l = null;
91
- N(() => {
91
+ j(() => {
92
92
  l = new MutationObserver(a), l.observe(e.value, t);
93
93
  }), ne(() => {
94
94
  l.disconnect();
@@ -98,17 +98,17 @@ function Z(e, a, t = []) {
98
98
  var i, s;
99
99
  const l = ((s = (i = e.passAttrs) == null ? void 0 : i.split) == null ? void 0 : s.call(i, ",")) || [], n = /* @__PURE__ */ new Set([...l, ...t]);
100
100
  n.delete("");
101
- const o = k({}), d = k({});
101
+ const o = I({}), u = I({});
102
102
  for (let r in a)
103
- n.has(r) ? d.value[r] = a[r] : o.value[r] = a[r];
103
+ n.has(r) ? u.value[r] = a[r] : o.value[r] = a[r];
104
104
  return {
105
105
  toRoot: o,
106
- toChild: d
106
+ toChild: u
107
107
  };
108
108
  }
109
109
  const se = (e) => {
110
- const a = k(!1);
111
- return N(() => {
110
+ const a = I(!1);
111
+ return j(() => {
112
112
  a.value = e.enterControlled || e.preloaded ? e.enterTrigger : e.shown;
113
113
  }), E(() => e.shown, (t) => {
114
114
  a.value = t;
@@ -117,11 +117,11 @@ const se = (e) => {
117
117
  }), E(() => e.leaveTrigger, (t) => {
118
118
  t && (a.value = !1);
119
119
  }), { transition: a };
120
- }, vt = ["id", "data-stacked"], ht = ["data-open"], pt = ["aria-controls", "aria-expanded"], gt = {
120
+ }, vt = ["id", "data-stacked"], pt = ["data-open"], ht = ["aria-controls", "aria-expanded"], gt = {
121
121
  key: 0,
122
122
  "data-position": "start",
123
123
  style: { display: "inline-flex" }
124
- }, bt = ["id", "aria-level"], mt = ["aria-labelledby", "data-open", "id"], An = {
124
+ }, bt = ["id", "aria-level"], mt = ["aria-labelledby", "data-open", "id"], Vn = {
125
125
  __name: "BsAccordion",
126
126
  props: {
127
127
  controlled: { type: Boolean, default: !1 },
@@ -137,11 +137,11 @@ const se = (e) => {
137
137
  },
138
138
  emits: ["toggled"],
139
139
  setup(e, { emit: a }) {
140
- const t = e, l = a, n = k(null), o = k(!1), { icon: d } = le(t, "icon"), [i] = H(), s = p(() => i.value + "-content"), r = p(() => i.value + "-title"), c = p(() => t.openItemId && t.openItemId === i.value || t.openItem === !0), b = p(() => t.controlled ? c.value : o.value);
140
+ const t = e, l = a, n = I(null), o = I(!1), { icon: u } = le(t, "icon"), [i] = H(), s = p(() => i.value + "-content"), r = p(() => i.value + "-title"), c = p(() => t.openItemId && t.openItemId === i.value || t.openItem === !0), b = p(() => t.controlled ? c.value : o.value);
141
141
  function g() {
142
142
  l("toggled", i.value), t.controlled || (o.value = !o.value);
143
143
  }
144
- return (y, L) => (u(), f("div", {
144
+ return (B, x) => (d(), f("div", {
145
145
  id: v(i),
146
146
  ref_key: "containerRef",
147
147
  ref: n,
@@ -159,22 +159,22 @@ const se = (e) => {
159
159
  type: "button",
160
160
  onClick: g
161
161
  }, [
162
- e.icon || y.$slots.icon ? (u(), f("span", gt, [
163
- I(y.$slots, "icon", {}, () => [
164
- e.icon ? (u(), A(U(v(d) ? v(d) : "span"), { key: 0 })) : $("", !0)
162
+ e.icon || B.$slots.icon ? (d(), f("span", gt, [
163
+ k(B.$slots, "icon", {}, () => [
164
+ e.icon ? (d(), L(U(v(u) ? v(u) : "span"), { key: 0 })) : S("", !0)
165
165
  ])
166
- ])) : $("", !0),
166
+ ])) : S("", !0),
167
167
  m("span", {
168
168
  id: r.value,
169
169
  "aria-level": e.headingLevel,
170
170
  role: "heading"
171
171
  }, T(e.headerText), 9, bt),
172
- V(v(Ye), {
172
+ P(v(we), {
173
173
  size: "md",
174
174
  "data-position": "end"
175
175
  })
176
- ], 8, pt)
177
- ], 8, ht),
176
+ ], 8, ht)
177
+ ], 8, pt),
178
178
  m("div", {
179
179
  "aria-labelledby": r.value,
180
180
  class: "bs-accordion-content",
@@ -184,12 +184,12 @@ const se = (e) => {
184
184
  role: "region"
185
185
  }, [
186
186
  m("div", null, [
187
- I(y.$slots, "default")
187
+ k(B.$slots, "default")
188
188
  ])
189
189
  ], 8, mt)
190
190
  ], 8, vt));
191
191
  }
192
- }, yt = ["data-badge-color", "data-count", "data-position", "data-show-zero", "aria-label"], Ln = {
192
+ }, yt = ["data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant", "aria-label"], Bt = {
193
193
  __name: "BsBadge",
194
194
  props: {
195
195
  /** Pass value to set `data-badge-color`. */
@@ -229,18 +229,22 @@ const se = (e) => {
229
229
  showZero: {
230
230
  type: Boolean,
231
231
  default: !1
232
+ },
233
+ variant: {
234
+ type: String,
235
+ validator: (e) => e === "notext"
232
236
  }
233
237
  },
234
238
  setup(e) {
235
- const a = e, t = k(null), l = p(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), n = p(() => {
239
+ const a = e, t = I(null), l = p(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), n = p(() => {
236
240
  var s, r;
237
- const o = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", d = l.value ? l.value + " " : "";
238
- if (!d && !a.dot)
241
+ const o = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", u = l.value ? l.value + " " : "";
242
+ if (!u && !a.dot)
239
243
  return o;
240
244
  const i = a.count !== 1 ? "s" : "";
241
- return `${o}, ${d}${a.label}${i}`;
245
+ return `${o ? `${o}, ` : ""}${u}${a.label}${i}`;
242
246
  });
243
- return (o, d) => (u(), f("span", {
247
+ return (o, u) => (d(), f("span", {
244
248
  ref_key: "hostRef",
245
249
  ref: t,
246
250
  class: X({ "bs-badge": e.dot || l.value }),
@@ -249,42 +253,43 @@ const se = (e) => {
249
253
  "data-count": l.value,
250
254
  "data-position": e.position,
251
255
  "data-show-zero": e.showZero,
256
+ "data-variant": e.variant,
252
257
  "aria-label": n.value
253
258
  }, [
254
- I(o.$slots, "default")
259
+ e.variant !== "notext" ? k(o.$slots, "default", { key: 0 }) : S("", !0)
255
260
  ], 10, yt));
256
261
  }
257
- }, Bt = {
262
+ }, $t = {
258
263
  key: 0,
259
264
  role: "alert",
260
265
  class: "bs-banner"
261
- }, $t = { class: "bs-banner-content" }, St = { class: "bs-banner-warning-icon" }, Pn = {
266
+ }, St = { class: "bs-banner-content" }, wt = { class: "bs-banner-warning-icon" }, Pn = {
262
267
  __name: "BsBanner",
263
268
  emits: ["dismiss"],
264
269
  setup(e, { emit: a }) {
265
- const t = a, l = k(!1);
270
+ const t = a, l = I(!1);
266
271
  function n() {
267
272
  l.value = !0, t("dismiss");
268
273
  }
269
- return (o, d) => l.value ? $("", !0) : (u(), f("div", Bt, [
270
- m("div", $t, [
271
- m("div", St, [
272
- V(v(ve), { size: "lg" })
274
+ return (o, u) => l.value ? S("", !0) : (d(), f("div", $t, [
275
+ m("div", St, [
276
+ m("div", wt, [
277
+ P(v(ve), { size: "lg" })
273
278
  ]),
274
279
  m("p", null, [
275
- I(o.$slots, "default")
280
+ k(o.$slots, "default")
276
281
  ]),
277
282
  m("button", {
278
283
  type: "button",
279
284
  title: "Close Banner",
280
285
  onClick: n
281
286
  }, [
282
- V(v(oe))
287
+ P(v(oe))
283
288
  ])
284
289
  ])
285
290
  ]));
286
291
  }
287
- }, wt = {
292
+ }, kt = {
288
293
  __name: "BsButton",
289
294
  props: {
290
295
  variant: { type: String },
@@ -296,8 +301,8 @@ const se = (e) => {
296
301
  size: { type: String, validator: (e) => !e || e === "sm" }
297
302
  },
298
303
  setup(e) {
299
- const a = e, t = R(), { rootTag: l, attrsToBind: n } = he(a, t), { onLinkClick: o } = ie(a);
300
- return (d, i) => (u(), A(U(v(l)), D({
304
+ const a = e, t = N(), { rootTag: l, attrsToBind: n } = pe(a, t), { onLinkClick: o } = ie(a);
305
+ return (u, i) => (d(), L(U(v(l)), D({
301
306
  class: "bs-button",
302
307
  "data-component": "bs-button",
303
308
  "data-ghost": e.ghostBtn,
@@ -306,13 +311,13 @@ const se = (e) => {
306
311
  "data-variant": e.variant,
307
312
  href: e.href
308
313
  }, v(n), { onClick: v(o) }), {
309
- default: C(() => [
310
- I(d.$slots, "default")
314
+ default: V(() => [
315
+ k(u.$slots, "default")
311
316
  ]),
312
317
  _: 3
313
318
  }, 16, ["data-ghost", "data-size", "data-text", "data-variant", "href", "onClick"]));
314
319
  }
315
- }, kt = { "data-component": "bs-chart-table" }, It = ["summary"], Tt = ["colspan"], xt = /* @__PURE__ */ m("th", { scope: "col" }, " Dataset ", -1), Ct = { scope: "row" }, At = {
320
+ }, It = { "data-component": "bs-chart-table" }, Tt = ["summary"], xt = ["colspan"], Ct = /* @__PURE__ */ m("th", { scope: "col" }, " Dataset ", -1), At = { scope: "row" }, Lt = {
316
321
  __name: "BsChartTable",
317
322
  props: {
318
323
  data: {
@@ -331,37 +336,37 @@ const se = (e) => {
331
336
  setup(e) {
332
337
  return (a, t) => {
333
338
  var l;
334
- return u(), f("div", kt, [
339
+ return d(), f("div", It, [
335
340
  m("table", { summary: e.tableTitle }, [
336
341
  m("thead", null, [
337
342
  m("tr", null, [
338
343
  m("th", {
339
344
  colspan: ((l = e.dataIdxLabels) == null ? void 0 : l.length) + 1
340
- }, T(e.tableTitle), 9, Tt)
345
+ }, T(e.tableTitle), 9, xt)
341
346
  ]),
342
347
  m("tr", null, [
343
- xt,
344
- (u(!0), f(O, null, Y(e.dataIdxLabels, (n) => (u(), f("th", {
348
+ Ct,
349
+ (d(!0), f(O, null, Y(e.dataIdxLabels, (n) => (d(), f("th", {
345
350
  key: n,
346
351
  scope: "col"
347
352
  }, T(n), 1))), 128))
348
353
  ])
349
354
  ]),
350
355
  m("tbody", null, [
351
- (u(!0), f(O, null, Y(e.data, (n) => (u(), f("tr", {
356
+ (d(!0), f(O, null, Y(e.data, (n) => (d(), f("tr", {
352
357
  key: n.label
353
358
  }, [
354
- m("th", Ct, T(n.label), 1),
355
- (u(!0), f(O, null, Y(n.data, (o, d) => (u(), f("td", {
356
- key: `${o}${d}`
359
+ m("th", At, T(n.label), 1),
360
+ (d(!0), f(O, null, Y(n.data, (o, u) => (d(), f("td", {
361
+ key: `${o}${u}`
357
362
  }, T(o), 1))), 128))
358
363
  ]))), 128))
359
364
  ])
360
- ], 8, It)
365
+ ], 8, Tt)
361
366
  ]);
362
367
  };
363
368
  }
364
- }, Lt = (e) => ({
369
+ }, Vt = (e) => ({
365
370
  id: "htmlLegend",
366
371
  afterUpdate(a) {
367
372
  e.innerHTML = "", e.style.setProperty("--legend-padding", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((l) => {
@@ -372,8 +377,8 @@ const se = (e) => {
372
377
  };
373
378
  const o = document.createElement("span");
374
379
  o.style.setProperty("--item-box-fill", l.fillStyle), o.style.setProperty("--item-box-stroke", l.strokeStyle);
375
- const d = document.createTextNode(l.text), i = document.createElement("p");
376
- i.style.setProperty("--item-text-color", l.fontColor), i.style.setProperty("--item-text-decoration", l.hidden ? "line-through" : "none"), i.appendChild(d), n.appendChild(o), n.appendChild(i), e.appendChild(n);
380
+ const u = document.createTextNode(l.text), i = document.createElement("p");
381
+ i.style.setProperty("--item-text-color", l.fontColor), i.style.setProperty("--item-text-decoration", l.hidden ? "line-through" : "none"), i.appendChild(u), n.appendChild(o), n.appendChild(i), e.appendChild(n);
377
382
  });
378
383
  }
379
384
  }), Pt = ({ type: e, datasets: a, labels: t, tooltips: l }) => ({
@@ -417,10 +422,10 @@ function $e(e, a, t) {
417
422
  }, a);
418
423
  };
419
424
  }
420
- const Vt = {
425
+ const Et = {
421
426
  class: "bs-chart-bar",
422
427
  "data-component": "bs-chart-bar"
423
- }, Et = ["aria-label"], qt = ["data-hidden"], Dn = {
428
+ }, qt = ["aria-label"], zt = ["data-hidden"], Dn = {
424
429
  __name: "BsChartBar",
425
430
  props: {
426
431
  chartTitle: {
@@ -474,16 +479,16 @@ const Vt = {
474
479
  }
475
480
  },
476
481
  setup(e) {
477
- const a = e, t = k(null), l = k(null);
482
+ const a = e, t = I(null), l = I(null);
478
483
  let n;
479
484
  const o = p(() => {
480
485
  const c = {
481
- datasets: d.value,
486
+ datasets: u.value,
482
487
  labels: a.dataIdxLabels,
483
488
  type: "bar",
484
489
  tooltips: a.showTooltips
485
490
  }, b = Pt(c);
486
- return b.plugins = [Lt(l.value)], b.options.scales = {
491
+ return b.plugins = [Vt(l.value)], b.options.scales = {
487
492
  x: {
488
493
  grid: {
489
494
  display: a.showXGrid
@@ -505,7 +510,7 @@ const Vt = {
505
510
  }
506
511
  }
507
512
  }, b;
508
- }), d = p(() => a.data.map((c, b) => ({
513
+ }), u = p(() => a.data.map((c, b) => ({
509
514
  ...c,
510
515
  backgroundColor: Dt(b),
511
516
  categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
@@ -514,9 +519,9 @@ const Vt = {
514
519
  }, 100), r = $e(function() {
515
520
  n && (n.data = o.value.data, n.update());
516
521
  }, 100);
517
- return N(() => {
522
+ return j(() => {
518
523
  fe.register(nt, lt, ot, it, rt, st), fe.defaults.font.family = "'Roobert', sans-serif", n = new fe(t.value, o.value);
519
- }), E(() => a.showLegend, s), E(() => a.showTooltips, s), E(() => a.showXGrid, s), E(() => a.showYGrid, s), E(() => a.stacked, s), E(() => a.xLabel, s), E(() => a.yLabel, s), E(() => a.data, r), E(() => a.dataIdxLabels, r), (c, b) => (u(), f("div", Vt, [
524
+ }), E(() => a.showLegend, s), E(() => a.showTooltips, s), E(() => a.showXGrid, s), E(() => a.showYGrid, s), E(() => a.stacked, s), E(() => a.xLabel, s), E(() => a.yLabel, s), E(() => a.data, r), E(() => a.dataIdxLabels, r), (c, b) => (d(), f("div", Et, [
520
525
  m("figure", null, [
521
526
  m("div", null, [
522
527
  m("canvas", {
@@ -524,10 +529,10 @@ const Vt = {
524
529
  ref_key: "canvas",
525
530
  ref: t,
526
531
  role: "img"
527
- }, null, 8, Et)
532
+ }, null, 8, qt)
528
533
  ]),
529
534
  m("div", null, [
530
- V(At, {
535
+ P(Lt, {
531
536
  data: e.data,
532
537
  "data-idx-labels": e.dataIdxLabels,
533
538
  "table-title": i.value
@@ -539,15 +544,15 @@ const Vt = {
539
544
  ref_key: "legendList",
540
545
  ref: l
541
546
  }, null, 512)
542
- ], 8, qt)
547
+ ], 8, zt)
543
548
  ])
544
549
  ])
545
550
  ]));
546
551
  }
547
- }, zt = ["data-disabled", "for"], Mt = /* @__PURE__ */ m("span", {
552
+ }, Mt = ["data-disabled", "for"], Ot = /* @__PURE__ */ m("span", {
548
553
  "data-required": "true",
549
554
  "aria-hidden": "true"
550
- }, " *", -1), Ot = /* @__PURE__ */ m("span", { class: "visually-hidden" }, "required", -1), _ = {
555
+ }, " *", -1), Nt = /* @__PURE__ */ m("span", { class: "visually-hidden" }, "required", -1), _ = {
551
556
  __name: "BsLabel",
552
557
  props: {
553
558
  disabled: { type: Boolean, default: !1 },
@@ -556,22 +561,22 @@ const Vt = {
556
561
  required: { type: Boolean, default: !1 }
557
562
  },
558
563
  setup(e) {
559
- return (a, t) => (u(), f("label", {
564
+ return (a, t) => (d(), f("label", {
560
565
  class: X(["bs-label", e.hide ? "visually-hidden" : ""]),
561
566
  "data-component": "bs-label",
562
567
  "data-disabled": e.disabled,
563
568
  for: e.for
564
569
  }, [
565
570
  m("span", null, [
566
- I(a.$slots, "default")
571
+ k(a.$slots, "default")
567
572
  ]),
568
- e.required ? (u(), f(O, { key: 0 }, [
569
- Mt,
570
- Ot
571
- ], 64)) : $("", !0)
572
- ], 10, zt));
573
+ e.required ? (d(), f(O, { key: 0 }, [
574
+ Ot,
575
+ Nt
576
+ ], 64)) : S("", !0)
577
+ ], 10, Mt));
573
578
  }
574
- }, Rt = ["data-size"], Nt = ["checked", "disabled", "id", "required", "data-error"], Vn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
579
+ }, Rt = ["data-size"], jt = ["checked", "data-error", "disabled", "id", "required", "value"], En = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
575
580
  __name: "BsCheckbox",
576
581
  props: {
577
582
  /** Sets the label. */
@@ -619,49 +624,64 @@ const Vt = {
619
624
  type: String,
620
625
  validator: (e) => e === "sm"
621
626
  },
627
+ value: {
628
+ type: [String, Number, Object]
629
+ },
622
630
  /** Sets the `checked` state - `v-model` directive will use this; do not set explicitly. */
623
631
  modelValue: {
624
- type: Boolean
632
+ type: [Boolean, Array]
625
633
  }
626
634
  },
627
635
  emits: ["update:modelValue"],
628
636
  setup(e, { emit: a }) {
629
- const t = e, l = R(), [n] = H(), { toChild: o, toRoot: d } = Z(t, l, ["name", "value"]), i = k(null), s = p(() => t.inputId || n.value), r = p(() => t.checked || t.modelValue);
630
- function c() {
631
- i.value && (i.value.indeterminate = t.checkedPartially && !r.value);
637
+ const t = e, l = a, n = N(), [o] = H(), { toChild: u, toRoot: i } = Z(t, n, ["aria-label", "name", "value"]), s = I(null), r = p(() => t.inputId || o.value), c = p(() => t.checked || g.value), b = p(() => Array.isArray(t.modelValue) && t.value), g = p(() => b.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
638
+ function B() {
639
+ s.value && (s.value.indeterminate = t.checkedPartially && !c.value);
640
+ }
641
+ function x($) {
642
+ l("update:modelValue", $);
632
643
  }
633
- return E(r, c), E(() => t.checkedPartially, c), (b, g) => (u(), f("div", D({
644
+ function z($) {
645
+ const y = [...t.modelValue];
646
+ $ ? y.push(t.value) : y.splice(y.indexOf(t.value), 1), l("update:modelValue", y);
647
+ }
648
+ function C($) {
649
+ const { checked: y } = $.target;
650
+ b.value ? z(y) : x(y);
651
+ }
652
+ return E(c, B), E(() => t.checkedPartially, B), ($, y) => (d(), f("div", D({
634
653
  class: "bs-boolean",
635
654
  "data-component": "bs-checkbox",
636
655
  "data-size": e.size
637
- }, v(d)), [
656
+ }, v(i)), [
638
657
  m("input", D({
639
658
  ref_key: "inputEl",
640
- ref: i,
641
- checked: r.value,
659
+ ref: s,
660
+ checked: c.value,
661
+ "data-error": e.error,
642
662
  disabled: e.disabled,
643
- id: s.value,
663
+ id: r.value,
644
664
  required: e.required,
665
+ value: e.value || "on",
645
666
  type: "checkbox",
646
- "data-error": e.error,
647
- onChange: g[0] || (g[0] = (y) => b.$emit("update:modelValue", y.target.checked))
648
- }, v(o)), null, 16, Nt),
649
- e.label || b.$slots.label ? (u(), A(_, {
667
+ onChange: C
668
+ }, v(u)), null, 16, jt),
669
+ e.label || $.$slots.label ? (d(), L(_, {
650
670
  key: 0,
651
- for: s.value,
671
+ for: r.value,
652
672
  disabled: e.disabled,
653
673
  required: e.required
654
674
  }, {
655
- default: C(() => [
656
- I(b.$slots, "label", {}, () => [
657
- j(T(e.label), 1)
675
+ default: V(() => [
676
+ k($.$slots, "label", {}, () => [
677
+ R(T(e.label), 1)
658
678
  ])
659
679
  ]),
660
680
  _: 3
661
- }, 8, ["for", "disabled", "required"])) : $("", !0)
681
+ }, 8, ["for", "disabled", "required"])) : S("", !0)
662
682
  ], 16, Rt));
663
683
  }
664
- }), jt = { key: 0 }, Wt = { class: "bs-circle-button-icon" }, Gt = { key: 1 }, En = {
684
+ }), Wt = { key: 0 }, Ft = { class: "bs-circle-button-icon" }, Gt = { key: 1 }, qn = {
665
685
  __name: "BsCircleButton",
666
686
  props: {
667
687
  disabled: {
@@ -704,11 +724,11 @@ const Vt = {
704
724
  }
705
725
  },
706
726
  setup(e) {
707
- const a = e, t = R(), { rootTag: l, attrsToBind: n } = he(a, t), { icon: o } = le(a, "icon"), { onLinkClick: d } = ie(a), i = p(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), s = p(() => {
727
+ const a = e, t = N(), { rootTag: l, attrsToBind: n } = pe(a, t), { icon: o } = le(a, "icon"), { onLinkClick: u } = ie(a), i = p(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), s = p(() => {
708
728
  if (a.hoverEffect)
709
729
  return a.iconPosition;
710
730
  }), r = p(() => a.textBtn && a.iconPosition !== "left"), c = p(() => a.textBtn && a.iconPosition === "left");
711
- return (b, g) => (u(), A(U(v(l)), D({
731
+ return (b, g) => (d(), L(U(v(l)), D({
712
732
  class: "bs-circle-button",
713
733
  "data-disabled": e.disabled,
714
734
  "data-direction": s.value,
@@ -716,15 +736,15 @@ const Vt = {
716
736
  "data-size": e.size,
717
737
  "data-text": e.textBtn,
718
738
  href: e.href
719
- }, { ...v(n), ...i.value }, { onClick: v(d) }), {
720
- default: C(() => [
721
- r.value ? (u(), f("span", jt, T(e.label), 1)) : $("", !0),
722
- m("span", Wt, [
723
- I(b.$slots, "icon", {}, () => [
724
- (u(), A(U(v(o)), { size: e.size }, null, 8, ["size"]))
739
+ }, { ...v(n), ...i.value }, { onClick: v(u) }), {
740
+ default: V(() => [
741
+ r.value ? (d(), f("span", Wt, T(e.label), 1)) : S("", !0),
742
+ m("span", Ft, [
743
+ k(b.$slots, "icon", {}, () => [
744
+ (d(), L(U(v(o)), { size: e.size }, null, 8, ["size"]))
725
745
  ])
726
746
  ]),
727
- c.value ? (u(), f("span", Gt, T(e.label), 1)) : $("", !0)
747
+ c.value ? (d(), f("span", Gt, T(e.label), 1)) : S("", !0)
728
748
  ]),
729
749
  _: 3
730
750
  }, 16, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "href", "onClick"]));
@@ -781,15 +801,15 @@ const Vt = {
781
801
  }, c)), l("enter", s);
782
802
  }));
783
803
  }
784
- function d(s, r) {
804
+ function u(s, r) {
785
805
  const {
786
806
  duration: c,
787
807
  enterClass: b,
788
808
  enterAttribute: g,
789
- leaveClass: y,
790
- leaveAttribute: L
809
+ leaveClass: B,
810
+ leaveAttribute: x
791
811
  } = t;
792
- s.classList.remove(b), s.removeAttribute(g), y && s.classList.add(y), L && s.setAttribute(L, ""), n.push(setTimeout(() => {
812
+ s.classList.remove(b), s.removeAttribute(g), B && s.classList.add(B), x && s.setAttribute(x, ""), n.push(setTimeout(() => {
793
813
  r();
794
814
  }, c)), l("leave", s);
795
815
  }
@@ -801,7 +821,7 @@ const Vt = {
801
821
  n.forEach((s) => {
802
822
  clearTimeout(s);
803
823
  });
804
- }), (s, r) => e.preloaded ? je((u(), A(me, {
824
+ }), (s, r) => e.preloaded ? We((d(), L(me, {
805
825
  key: 0,
806
826
  css: !1,
807
827
  onBeforeEnter: r[0] || (r[0] = (c) => l("before-enter", c)),
@@ -809,17 +829,17 @@ const Vt = {
809
829
  onAfterEnter: r[1] || (r[1] = (c) => l("after-enter", c)),
810
830
  onEnterCancelled: r[2] || (r[2] = (c) => l("enter-cancelled", c)),
811
831
  onBeforeLeave: r[3] || (r[3] = (c) => l("before-leave", c)),
812
- onLeave: d,
832
+ onLeave: u,
813
833
  onAfterLeave: i,
814
834
  onLeaveCancelled: r[4] || (r[4] = (c) => l("leave-cancelled", c))
815
835
  }, {
816
- default: C(() => [
817
- I(s.$slots, "default")
836
+ default: V(() => [
837
+ k(s.$slots, "default")
818
838
  ]),
819
839
  _: 3
820
840
  }, 512)), [
821
- [We, e.shown]
822
- ]) : (u(), A(me, {
841
+ [Fe, e.shown]
842
+ ]) : (d(), L(me, {
823
843
  key: 1,
824
844
  css: !1,
825
845
  onBeforeEnter: r[5] || (r[5] = (c) => l("before-enter", c)),
@@ -827,17 +847,17 @@ const Vt = {
827
847
  onAfterEnter: r[6] || (r[6] = (c) => l("after-enter", c)),
828
848
  onEnterCancelled: r[7] || (r[7] = (c) => l("enter-cancelled", c)),
829
849
  onBeforeLeave: r[8] || (r[8] = (c) => l("before-leave", c)),
830
- onLeave: d,
850
+ onLeave: u,
831
851
  onAfterLeave: i,
832
852
  onLeaveCancelled: r[9] || (r[9] = (c) => l("leave-cancelled", c))
833
853
  }, {
834
- default: C(() => [
835
- e.shown ? I(s.$slots, "default", { key: 0 }) : $("", !0)
854
+ default: V(() => [
855
+ e.shown ? k(s.$slots, "default", { key: 0 }) : S("", !0)
836
856
  ]),
837
857
  _: 3
838
858
  }));
839
859
  }
840
- }, Ft = ["data-width"], Ut = { key: 0 }, Ht = { key: 0 }, Se = {
860
+ }, Ut = ["data-width"], Ht = { key: 0 }, Kt = { key: 0 }, Se = {
841
861
  __name: "BsDropdownInternal",
842
862
  props: {
843
863
  shown: {
@@ -885,31 +905,31 @@ const Vt = {
885
905
  "after-leave"
886
906
  ],
887
907
  setup(e, { emit: a }) {
888
- const t = e, l = a, n = k(null);
908
+ const t = e, l = a, n = I(null);
889
909
  let o = !1;
890
910
  ct([n], () => {
891
911
  o && l("close");
892
912
  }), re(["Escape"], () => {
893
913
  o && l("close");
894
914
  });
895
- function d() {
896
- const y = (t.containerRef || document.getElementById(t.containerId)).getBoundingClientRect(), L = document.getElementById(t.anchorId).getBoundingClientRect(), M = n.value.getBoundingClientRect();
915
+ function u() {
916
+ const B = (t.containerRef || document.getElementById(t.containerId)).getBoundingClientRect(), x = document.getElementById(t.anchorId).getBoundingClientRect(), z = n.value.getBoundingClientRect();
897
917
  if (t.position === "top") {
898
- const w = y.bottom - L.bottom;
899
- n.value.style.setProperty("--dropdown-wscreen-top", "auto"), n.value.style.setProperty("--dropdown-wscreen-bottom", `${w + L.height + 8}px`);
918
+ const $ = B.bottom - x.bottom;
919
+ n.value.style.setProperty("--dropdown-wscreen-top", "auto"), n.value.style.setProperty("--dropdown-wscreen-bottom", `${$ + x.height + 8}px`);
900
920
  } else {
901
- const w = L.top - y.top;
902
- n.value.style.setProperty("--dropdown-wscreen-top", `${w + L.height + 8}px`), n.value.style.setProperty("--dropdown-wscreen-bottom", "auto");
921
+ const $ = x.top - B.top;
922
+ n.value.style.setProperty("--dropdown-wscreen-top", `${$ + x.height + 8}px`), n.value.style.setProperty("--dropdown-wscreen-bottom", "auto");
903
923
  }
904
- const P = L.left - y.left;
924
+ const C = x.left - B.left;
905
925
  if (t.position === "center") {
906
- const w = (L.width - M.width) / 2;
907
- n.value.style.setProperty("--dropdown-wscreen-left", `${P + w}px`);
926
+ const $ = (x.width - z.width) / 2;
927
+ n.value.style.setProperty("--dropdown-wscreen-left", `${C + $}px`);
908
928
  } else if (t.position === "right") {
909
- const w = y.right - L.right;
910
- n.value.style.setProperty("--dropdown-wscreen-left", "auto"), n.value.style.setProperty("--dropdown-wscreen-right", `${w}px`);
929
+ const $ = B.right - x.right;
930
+ n.value.style.setProperty("--dropdown-wscreen-left", "auto"), n.value.style.setProperty("--dropdown-wscreen-right", `${$}px`);
911
931
  } else
912
- n.value.style.setProperty("--dropdown-wscreen-left", `${P}px`);
932
+ n.value.style.setProperty("--dropdown-wscreen-left", `${C}px`);
913
933
  }
914
934
  function i() {
915
935
  if (t.width === "toggle") {
@@ -919,7 +939,7 @@ const Vt = {
919
939
  n.value.style.setProperty("--dropdown-wscreen-width", "");
920
940
  }
921
941
  function s() {
922
- d(), i(), l("enter");
942
+ u(), i(), l("enter");
923
943
  }
924
944
  function r() {
925
945
  o = !0, l("after-enter");
@@ -930,45 +950,45 @@ const Vt = {
930
950
  function b() {
931
951
  return t.width === "toggle" ? void 0 : t.width;
932
952
  }
933
- return (g, y) => (u(), A(v(de), {
953
+ return (g, B) => (d(), L(v(de), {
934
954
  shown: e.shown,
935
955
  preloaded: e.preloaded,
936
956
  duration: 75,
937
957
  "enter-attribute": "data-shown",
938
- onAfterEnter: y[1] || (y[1] = (L) => r()),
939
- onEnter: y[2] || (y[2] = (L) => s()),
940
- onAfterLeave: y[3] || (y[3] = (L) => c())
958
+ onAfterEnter: B[1] || (B[1] = (x) => r()),
959
+ onEnter: B[2] || (B[2] = (x) => s()),
960
+ onAfterLeave: B[3] || (B[3] = (x) => c())
941
961
  }, {
942
- default: C(() => [
962
+ default: V(() => [
943
963
  m("div", D({
944
964
  ref_key: "dropdownRef",
945
965
  ref: n,
946
966
  class: "bs-dropdown",
947
967
  "data-width": b()
948
968
  }, g.$attrs), [
949
- e.helperText ? (u(), f("header", Ut, [
969
+ e.helperText ? (d(), f("header", Ht, [
950
970
  m("div", null, [
951
971
  m("h3", null, T(e.helperText), 1),
952
- e.helperDescription ? (u(), f("p", Ht, T(e.helperDescription), 1)) : $("", !0)
972
+ e.helperDescription ? (d(), f("p", Kt, T(e.helperDescription), 1)) : S("", !0)
953
973
  ]),
954
974
  m("button", {
955
975
  type: "button",
956
976
  title: "close",
957
- onClick: y[0] || (y[0] = () => l("close"))
977
+ onClick: B[0] || (B[0] = () => l("close"))
958
978
  }, [
959
- V(v(oe))
979
+ P(v(oe))
960
980
  ])
961
- ])) : $("", !0),
962
- I(g.$slots, "default")
963
- ], 16, Ft)
981
+ ])) : S("", !0),
982
+ k(g.$slots, "default")
983
+ ], 16, Ut)
964
984
  ]),
965
985
  _: 3
966
986
  }, 8, ["shown", "preloaded"]));
967
987
  }
968
- }, Kt = {
988
+ }, Yt = {
969
989
  key: 0,
970
990
  class: "bs-dropdown-backdrop"
971
- }, Yt = {
991
+ }, Xt = {
972
992
  __name: "BsDropdown",
973
993
  props: {
974
994
  shown: {
@@ -1048,14 +1068,14 @@ const Vt = {
1048
1068
  "after-leave"
1049
1069
  ],
1050
1070
  setup(e, { emit: a }) {
1051
- const t = e, l = a, n = k(null), { transition: o } = se(t), d = p(() => t.toggleId ? t.toggleId : t.anchorId), i = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position);
1052
- return (s, r) => (u(), f(O, null, [
1053
- v(o) ? (u(), f("div", Kt)) : $("", !0),
1054
- e.containerId ? (u(), A(v(Se), D({
1071
+ const t = e, l = a, n = I(null), { transition: o } = se(t), u = p(() => t.toggleId ? t.toggleId : t.anchorId), i = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position);
1072
+ return (s, r) => (d(), f(O, null, [
1073
+ v(o) ? (d(), f("div", Yt)) : S("", !0),
1074
+ e.containerId ? (d(), L(v(Se), D({
1055
1075
  key: 1,
1056
1076
  shown: v(o),
1057
1077
  preloaded: e.preloaded,
1058
- "anchor-id": d.value,
1078
+ "anchor-id": u.value,
1059
1079
  "container-id": e.containerId,
1060
1080
  "helper-description": e.helperDescription,
1061
1081
  "helper-text": e.helperText,
@@ -1067,20 +1087,20 @@ const Vt = {
1067
1087
  onEnter: r[2] || (r[2] = (c) => l("enter")),
1068
1088
  onAfterLeave: r[3] || (r[3] = (c) => l("after-leave"))
1069
1089
  }), {
1070
- default: C(() => [
1071
- I(s.$slots, "default")
1090
+ default: V(() => [
1091
+ k(s.$slots, "default")
1072
1092
  ]),
1073
1093
  _: 3
1074
- }, 16, ["shown", "preloaded", "anchor-id", "container-id", "helper-description", "helper-text", "position", "width"])) : (u(), f("div", {
1094
+ }, 16, ["shown", "preloaded", "anchor-id", "container-id", "helper-description", "helper-text", "position", "width"])) : (d(), f("div", {
1075
1095
  key: 2,
1076
1096
  ref_key: "containerRef",
1077
1097
  ref: n,
1078
1098
  style: { position: "relative" }
1079
1099
  }, [
1080
- V(v(Se), D({
1100
+ P(v(Se), D({
1081
1101
  shown: v(o),
1082
1102
  preloaded: e.preloaded,
1083
- "anchor-id": d.value,
1103
+ "anchor-id": u.value,
1084
1104
  "container-ref": n.value,
1085
1105
  "helper-description": e.helperDescription,
1086
1106
  "helper-text": e.helperText,
@@ -1092,15 +1112,15 @@ const Vt = {
1092
1112
  onEnter: r[6] || (r[6] = (c) => l("enter")),
1093
1113
  onAfterLeave: r[7] || (r[7] = (c) => l("after-leave"))
1094
1114
  }), {
1095
- default: C(() => [
1096
- I(s.$slots, "default")
1115
+ default: V(() => [
1116
+ k(s.$slots, "default")
1097
1117
  ]),
1098
1118
  _: 3
1099
1119
  }, 16, ["shown", "preloaded", "anchor-id", "container-ref", "helper-description", "helper-text", "position", "width"])
1100
1120
  ], 512))
1101
1121
  ], 64));
1102
1122
  }
1103
- }, Xt = ["data-value", "data-variant", "id"], Zt = {
1123
+ }, Zt = ["data-value", "data-variant", "id"], Jt = {
1104
1124
  __name: "BsDropdownOption",
1105
1125
  props: {
1106
1126
  value: {
@@ -1113,16 +1133,16 @@ const Vt = {
1113
1133
  }
1114
1134
  },
1115
1135
  setup(e) {
1116
- const a = e, t = k(null), l = te("optionsId"), n = te("handleSelect"), o = p(() => `${l}-option-${a.value}`);
1136
+ const a = e, t = I(null), l = te("optionsId"), n = te("handleSelect"), o = p(() => `${l}-option-${a.value}`);
1117
1137
  re([" ", "Enter", "NumpadEnter"], (i) => {
1118
1138
  var s;
1119
- d(), (s = t.value.querySelector("a")) == null || s.click(), i.preventDefault();
1139
+ u(), (s = t.value.querySelector("a")) == null || s.click(), i.preventDefault();
1120
1140
  }, t);
1121
- function d() {
1141
+ function u() {
1122
1142
  var i;
1123
1143
  n(o.value, a.value), (i = t.value.querySelector("a")) == null || i.click();
1124
1144
  }
1125
- return (i, s) => (u(), f("li", {
1145
+ return (i, s) => (d(), f("li", {
1126
1146
  "data-component": "bs-dropdown-option",
1127
1147
  "data-value": a.value,
1128
1148
  ref_key: "optionRef",
@@ -1131,12 +1151,12 @@ const Vt = {
1131
1151
  "data-variant": e.variant || void 0,
1132
1152
  id: o.value,
1133
1153
  tabIndex: -1,
1134
- onClick: d
1154
+ onClick: u
1135
1155
  }, [
1136
- I(i.$slots, "default")
1137
- ], 8, Xt));
1156
+ k(i.$slots, "default")
1157
+ ], 8, Zt));
1138
1158
  }
1139
- }, Jt = ["aria-activedescendant", "aria-label", "id"], Qt = {
1159
+ }, Qt = ["aria-activedescendant", "aria-label", "id"], _t = {
1140
1160
  __name: "BsDropdownOptionList",
1141
1161
  props: {
1142
1162
  optionsId: {
@@ -1174,16 +1194,16 @@ const Vt = {
1174
1194
  },
1175
1195
  emits: ["optselected", "update:modelValue", "close"],
1176
1196
  setup(e, { emit: a }) {
1177
- const t = e, l = a, n = k(null), o = k(null);
1178
- let d = null, i = -1, s = -1;
1179
- ae("optionsId", t.optionsId), ae("handleSelect", P);
1197
+ const t = e, l = a, n = I(null), o = I(null);
1198
+ let u = null, i = -1, s = -1;
1199
+ ae("optionsId", t.optionsId), ae("handleSelect", C);
1180
1200
  function r() {
1181
- return d || (d = Array.from(n.value.querySelectorAll('[data-component="bs-dropdown-option"]'))), d;
1201
+ return u || (u = Array.from(n.value.querySelectorAll('[data-component="bs-dropdown-option"]'))), u;
1182
1202
  }
1183
- N(() => {
1184
- g(), document.addEventListener("keydown", L);
1203
+ j(() => {
1204
+ g(), document.addEventListener("keydown", x);
1185
1205
  }), Ge(() => {
1186
- document.removeEventListener("keydown", L);
1206
+ document.removeEventListener("keydown", x);
1187
1207
  }), E(() => t.visible, () => {
1188
1208
  g();
1189
1209
  }), E(() => t.shown, () => {
@@ -1191,10 +1211,10 @@ const Vt = {
1191
1211
  });
1192
1212
  const c = p(() => t.visible || t.shown), b = p(() => t.modelValue || t.selectedValue);
1193
1213
  function g() {
1194
- var w, S, q, W, ee;
1214
+ var $, y, q, W, ee;
1195
1215
  c.value ? (s = r().findIndex(
1196
1216
  (J) => J.getAttribute("data-value") === String(b.value)
1197
- ), s > -1 && ((w = r()[s]) == null || w.setAttribute("data-selected", ""), (S = r()[s]) == null || S.setAttribute("aria-selected", "true"), i = s, t.focusDelay > 0 ? setTimeout(() => {
1217
+ ), s > -1 && (($ = r()[s]) == null || $.setAttribute("data-selected", ""), (y = r()[s]) == null || y.setAttribute("aria-selected", "true"), i = s, t.focusDelay > 0 ? setTimeout(() => {
1198
1218
  var J;
1199
1219
  (J = r()[s]) == null || J.focus();
1200
1220
  }, t.focusDelay) : (q = r()[s]) == null || q.focus())) : ((W = r()[s]) == null || W.removeAttribute("data-selected"), (ee = r()[s]) == null || ee.removeAttribute("aria-selected"));
@@ -1202,56 +1222,56 @@ const Vt = {
1202
1222
  ft(
1203
1223
  n,
1204
1224
  () => {
1205
- d = null;
1225
+ u = null;
1206
1226
  },
1207
1227
  { childList: !0 }
1208
1228
  );
1209
- function y() {
1210
- var w;
1211
- i > -1 && ((w = r()[i]) == null || w.blur());
1229
+ function B() {
1230
+ var $;
1231
+ i > -1 && (($ = r()[i]) == null || $.blur());
1212
1232
  }
1213
- function L(w) {
1233
+ function x($) {
1214
1234
  if (c.value)
1215
- switch (w.key) {
1235
+ switch ($.key) {
1216
1236
  case "ArrowDown":
1217
- M("down"), w.preventDefault();
1237
+ z("down"), $.preventDefault();
1218
1238
  break;
1219
1239
  case "ArrowUp":
1220
- M("up"), w.preventDefault();
1240
+ z("up"), $.preventDefault();
1221
1241
  break;
1222
1242
  case "Home":
1223
- M("home"), w.preventDefault();
1243
+ z("home"), $.preventDefault();
1224
1244
  break;
1225
1245
  case "End":
1226
- M("end"), w.preventDefault();
1246
+ z("end"), $.preventDefault();
1227
1247
  break;
1228
1248
  case "Tab":
1229
- w.preventDefault();
1249
+ $.preventDefault();
1230
1250
  break;
1231
1251
  }
1232
1252
  }
1233
- function M(w) {
1234
- let S;
1235
- switch (w) {
1253
+ function z($) {
1254
+ let y;
1255
+ switch ($) {
1236
1256
  case "up":
1237
- S = i - 1 < 0 ? r().length - 1 : i - 1;
1257
+ y = i - 1 < 0 ? r().length - 1 : i - 1;
1238
1258
  break;
1239
1259
  case "down":
1240
- S = (i + 1) % r().length;
1260
+ y = (i + 1) % r().length;
1241
1261
  break;
1242
1262
  case "home":
1243
- S = 0;
1263
+ y = 0;
1244
1264
  break;
1245
1265
  case "end":
1246
- S = r().length - 1;
1266
+ y = r().length - 1;
1247
1267
  break;
1248
1268
  }
1249
- y(), r()[S].focus(), i = S;
1269
+ B(), r()[y].focus(), i = y;
1250
1270
  }
1251
- function P(w, S) {
1252
- o.value = w, y(), l("optselected", S), l("update:modelValue", S), l("close");
1271
+ function C($, y) {
1272
+ o.value = $, B(), l("optselected", y), l("update:modelValue", y), l("close");
1253
1273
  }
1254
- return (w, S) => (u(), f("ul", {
1274
+ return ($, y) => (d(), f("ul", {
1255
1275
  ref_key: "optionsRef",
1256
1276
  ref: n,
1257
1277
  "aria-activedescendant": o.value || void 0,
@@ -1260,10 +1280,10 @@ const Vt = {
1260
1280
  id: t.optionsId,
1261
1281
  role: "listbox"
1262
1282
  }, [
1263
- I(w.$slots, "default")
1264
- ], 8, Jt));
1283
+ k($.$slots, "default")
1284
+ ], 8, Qt));
1265
1285
  }
1266
- }, _t = {
1286
+ }, ea = {
1267
1287
  __name: "BsDropdownWithOptions",
1268
1288
  props: {
1269
1289
  // OPTION LIST PROPS
@@ -1363,17 +1383,17 @@ const Vt = {
1363
1383
  "after-leave"
1364
1384
  ],
1365
1385
  setup(e, { emit: a }) {
1366
- const t = a, l = k(!1);
1386
+ const t = a, l = I(!1);
1367
1387
  function n() {
1368
1388
  l.value = !0;
1369
1389
  }
1370
1390
  function o(i) {
1371
1391
  l.value = !1, t("optselected", i), t("update:modelValue", i), t("close");
1372
1392
  }
1373
- function d() {
1393
+ function u() {
1374
1394
  l.value && (l.value = !1, t("close"));
1375
1395
  }
1376
- return (i, s) => (u(), A(v(Yt), {
1396
+ return (i, s) => (d(), L(v(Xt), {
1377
1397
  shown: e.shown,
1378
1398
  preloaded: e.preloaded,
1379
1399
  "anchor-id": e.anchorId,
@@ -1389,23 +1409,23 @@ const Vt = {
1389
1409
  "toggle-id": e.toggleId,
1390
1410
  top: e.top,
1391
1411
  width: e.width,
1392
- onClose: d,
1412
+ onClose: u,
1393
1413
  onAfterEnter: s[0] || (s[0] = (r) => t("after-enter")),
1394
1414
  onEnter: n,
1395
1415
  onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
1396
1416
  }, {
1397
- default: C(() => [
1398
- V(v(Qt), {
1417
+ default: V(() => [
1418
+ P(v(_t), {
1399
1419
  label: e.label,
1400
1420
  "model-value": e.modelValue,
1401
1421
  "options-id": e.optionsId,
1402
1422
  "selected-value": e.selectedValue,
1403
1423
  shown: l.value,
1404
1424
  "onUpdate:modelValue": o,
1405
- onClose: d
1425
+ onClose: u
1406
1426
  }, {
1407
- default: C(() => [
1408
- I(i.$slots, "default")
1427
+ default: V(() => [
1428
+ k(i.$slots, "default")
1409
1429
  ]),
1410
1430
  _: 3
1411
1431
  }, 8, ["label", "model-value", "options-id", "selected-value", "shown"])
@@ -1413,10 +1433,10 @@ const Vt = {
1413
1433
  _: 3
1414
1434
  }, 8, ["shown", "preloaded", "anchor-id", "center", "container-id", "enter-controlled", "enter-trigger", "helper-description", "helper-text", "leave-trigger", "position", "right", "toggle-id", "top", "width"]));
1415
1435
  }
1416
- }, ea = {
1436
+ }, ta = {
1417
1437
  class: "bs-field-details",
1418
1438
  "data-component": "bs-field-details"
1419
- }, ta = ["id", "data-error"], aa = ["data-error"], pe = {
1439
+ }, aa = ["id", "data-error"], na = ["data-error"], he = {
1420
1440
  __name: "BsFieldDetails",
1421
1441
  props: {
1422
1442
  /** The number of characters that have been entered by the user. */
@@ -1437,41 +1457,95 @@ const Vt = {
1437
1457
  },
1438
1458
  setup(e) {
1439
1459
  const a = e, t = p(() => a.error && a.errorMsg || a.hint);
1440
- return (l, n) => (u(), f("div", ea, [
1441
- t.value ? (u(), f("span", {
1460
+ return (l, n) => (d(), f("div", ta, [
1461
+ t.value ? (d(), f("span", {
1442
1462
  key: 0,
1443
1463
  id: e.hintId,
1444
1464
  class: "bs-hint",
1445
1465
  "data-error": e.error
1446
- }, T(t.value), 9, ta)) : $("", !0),
1447
- e.charMax ? (u(), f("span", {
1466
+ }, T(t.value), 9, aa)) : S("", !0),
1467
+ e.charMax ? (d(), f("span", {
1448
1468
  key: 1,
1449
1469
  "aria-description": "character count over character limit for the preceding text field",
1450
1470
  class: "bs-character-count",
1451
1471
  "data-error": a.charCount > a.charMax
1452
- }, T(a.charCount || "0") + " / " + T(a.charMax), 9, aa)) : $("", !0)
1472
+ }, T(a.charCount || "0") + " / " + T(a.charMax), 9, na)) : S("", !0)
1453
1473
  ]));
1454
1474
  }
1455
- }, na = ["view-box"], la = ["id"], oa = ["offset", "stop-color"], qn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1475
+ }, la = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], zn = {
1476
+ __name: "BsFilterButton",
1477
+ props: {
1478
+ badgeCount: {
1479
+ type: Number,
1480
+ default: 0
1481
+ },
1482
+ disabled: {
1483
+ type: Boolean,
1484
+ default: !1
1485
+ },
1486
+ label: {
1487
+ type: String,
1488
+ default: "Filter"
1489
+ },
1490
+ open: {
1491
+ type: Boolean,
1492
+ default: !1
1493
+ },
1494
+ optionsId: {
1495
+ type: String,
1496
+ required: !0
1497
+ },
1498
+ size: {
1499
+ type: String,
1500
+ validator: (e) => ["sm", "xs"].includes(e)
1501
+ }
1502
+ },
1503
+ setup(e) {
1504
+ const a = e, t = p(() => a.badgeCount > 0);
1505
+ return (l, n) => (d(), f("button", {
1506
+ class: "bs-filter-button",
1507
+ "aria-controls": e.optionsId,
1508
+ "aria-expanded": e.open,
1509
+ "aria-haspopup": "listbox",
1510
+ "data-open": e.open,
1511
+ "data-size": e.size,
1512
+ disabled: e.disabled,
1513
+ type: "button"
1514
+ }, [
1515
+ t.value ? (d(), L(Bt, {
1516
+ key: 0,
1517
+ color: "blue",
1518
+ count: e.badgeCount,
1519
+ label: "active filter",
1520
+ position: "left",
1521
+ variant: "notext"
1522
+ }, null, 8, ["count"])) : S("", !0),
1523
+ k(l.$slots, "label", {}, () => [
1524
+ R(T(e.label), 1)
1525
+ ]),
1526
+ P(v(we))
1527
+ ], 8, la));
1528
+ }
1529
+ }, oa = ["view-box"], ia = ["id"], ra = ["offset", "stop-color"], Mn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1456
1530
  __name: "BsIconGradientWrapper",
1457
1531
  setup(e) {
1458
- const a = k(null), t = k(null), l = [
1532
+ const a = I(null), t = I(null), l = [
1459
1533
  { offset: 0.1326, color: "#EE282A" },
1460
1534
  { offset: 0.5466, color: "#1C0087" },
1461
1535
  { offset: 0.9715, color: "#0086EA" }
1462
1536
  ], [n] = H();
1463
- return N(() => {
1537
+ return j(() => {
1464
1538
  t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
1465
- }), (o, d) => (u(), f(O, null, [
1539
+ }), (o, u) => (d(), f(O, null, [
1466
1540
  m("span", D({
1467
1541
  ref_key: "svgWrapperRef",
1468
1542
  ref: a,
1469
1543
  class: "bs-icon-gradient-wrapper",
1470
1544
  style: `fill: url(#${v(n)});`
1471
1545
  }, o.$attrs), [
1472
- I(o.$slots, "default")
1546
+ k(o.$slots, "default")
1473
1547
  ], 16),
1474
- (u(), f("svg", {
1548
+ (d(), f("svg", {
1475
1549
  xmlns: "http://www.w3.org/2000/svg",
1476
1550
  "view-box": t.value,
1477
1551
  width: "0",
@@ -1485,16 +1559,16 @@ const Vt = {
1485
1559
  y2: "100%",
1486
1560
  "gradient-units": "userSpaceOnUse"
1487
1561
  }, [
1488
- (u(), f(O, null, Y(l, (i) => m("stop", {
1562
+ (d(), f(O, null, Y(l, (i) => m("stop", {
1489
1563
  key: i.offset,
1490
1564
  offset: i.offset,
1491
1565
  "stop-color": i.color
1492
- }, null, 8, oa)), 64))
1493
- ], 8, la)
1494
- ], 8, na))
1566
+ }, null, 8, ra)), 64))
1567
+ ], 8, ia)
1568
+ ], 8, oa))
1495
1569
  ], 64));
1496
1570
  }
1497
- }), ia = ["data-error", "id", "value"], we = {
1571
+ }), sa = ["data-error", "id", "value"], ke = {
1498
1572
  __name: "BsInput",
1499
1573
  props: {
1500
1574
  error: {
@@ -1509,21 +1583,21 @@ const Vt = {
1509
1583
  },
1510
1584
  emits: ["update:modelValue"],
1511
1585
  setup(e, { emit: a }) {
1512
- const t = e, l = a, n = R(), o = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
1513
- function d(i) {
1586
+ const t = e, l = a, n = N(), o = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
1587
+ function u(i) {
1514
1588
  const s = n.type === "number" ? parseInt(i.target.value) : i.target.value;
1515
1589
  l("update:modelValue", s);
1516
1590
  }
1517
- return (i, s) => (u(), f("input", D({
1591
+ return (i, s) => (d(), f("input", D({
1518
1592
  class: "bs-input",
1519
1593
  "data-component": "bs-input",
1520
1594
  "data-error": e.error,
1521
1595
  id: i.$attrs.id || e.inputId,
1522
1596
  value: e.value || e.modelValue,
1523
- onInput: d
1524
- }, o.value), null, 16, ia));
1597
+ onInput: u
1598
+ }, o.value), null, 16, sa));
1525
1599
  }
1526
- }, ra = ["data-disabled", "data-error", "data-variant", "data-multifocus"], sa = {
1600
+ }, da = ["data-disabled", "data-error", "data-variant", "data-multifocus"], ua = {
1527
1601
  __name: "BsInputAddon",
1528
1602
  props: {
1529
1603
  disabled: { type: Boolean, default: !1 },
@@ -1532,7 +1606,7 @@ const Vt = {
1532
1606
  variant: { type: String, validator: (e) => e === "inner-bordered" }
1533
1607
  },
1534
1608
  setup(e) {
1535
- return (a, t) => (u(), f("div", {
1609
+ return (a, t) => (d(), f("div", {
1536
1610
  class: "bs-input-addon",
1537
1611
  "data-component": "bs-input-addon",
1538
1612
  "data-disabled": e.disabled,
@@ -1540,10 +1614,10 @@ const Vt = {
1540
1614
  "data-variant": e.variant,
1541
1615
  "data-multifocus": e.multifocus
1542
1616
  }, [
1543
- I(a.$slots, "default")
1544
- ], 8, ra));
1617
+ k(a.$slots, "default")
1618
+ ], 8, da));
1545
1619
  }
1546
- }, zn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1620
+ }, On = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1547
1621
  __name: "BsInputField",
1548
1622
  props: {
1549
1623
  /** Sets the disabled state on input, disabled styles on label. */
@@ -1590,7 +1664,8 @@ const Vt = {
1590
1664
  },
1591
1665
  emits: ["update:modelValue"],
1592
1666
  setup(e, { emit: a }) {
1593
- const t = e, l = R(), [n, o] = H(2), { toChild: d, toRoot: i } = Z(t, l, [
1667
+ const t = e, l = N(), [n, o] = H(2), { toChild: u, toRoot: i } = Z(t, l, [
1668
+ "aria-label",
1594
1669
  "autocomplete",
1595
1670
  "max",
1596
1671
  "maxlength",
@@ -1602,21 +1677,21 @@ const Vt = {
1602
1677
  return ((g = (b = t.hints) == null ? void 0 : b.join) == null ? void 0 : g.call(b, `
1603
1678
  `)) || t.hints;
1604
1679
  }), r = p(() => t.error && t.errorMsg || t.hint || s.value || void 0), c = p(() => t.inputId || n.value);
1605
- return (b, g) => (u(), f("div", D({ "data-component": "bs-input-field" }, v(i)), [
1606
- e.label || b.$slots.label ? (u(), A(_, {
1680
+ return (b, g) => (d(), f("div", D({ "data-component": "bs-input-field" }, v(i)), [
1681
+ e.label || b.$slots.label ? (d(), L(_, {
1607
1682
  key: 0,
1608
1683
  for: c.value,
1609
1684
  disabled: e.disabled,
1610
1685
  required: e.required
1611
1686
  }, {
1612
- default: C(() => [
1613
- I(b.$slots, "label", {}, () => [
1614
- j(T(e.label), 1)
1687
+ default: V(() => [
1688
+ k(b.$slots, "label", {}, () => [
1689
+ R(T(e.label), 1)
1615
1690
  ])
1616
1691
  ]),
1617
1692
  _: 3
1618
- }, 8, ["for", "disabled", "required"])) : $("", !0),
1619
- V(we, D({
1693
+ }, 8, ["for", "disabled", "required"])) : S("", !0),
1694
+ P(ke, D({
1620
1695
  disabled: e.disabled,
1621
1696
  error: e.error,
1622
1697
  "hint-id": v(o),
@@ -1625,18 +1700,18 @@ const Vt = {
1625
1700
  required: e.required,
1626
1701
  type: e.type,
1627
1702
  value: e.value || e.modelValue,
1628
- "onUpdate:modelValue": g[0] || (g[0] = (y) => b.$emit("update:modelValue", y))
1629
- }, v(d)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
1630
- r.value ? (u(), A(pe, {
1703
+ "onUpdate:modelValue": g[0] || (g[0] = (B) => b.$emit("update:modelValue", B))
1704
+ }, v(u)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
1705
+ r.value ? (d(), L(he, {
1631
1706
  key: 1,
1632
1707
  error: e.error,
1633
1708
  "error-msg": e.errorMsg,
1634
1709
  hint: e.hint || s.value,
1635
1710
  "hint-id": v(o)
1636
- }, null, 8, ["error", "error-msg", "hint", "hint-id"])) : $("", !0)
1711
+ }, null, 8, ["error", "error-msg", "hint", "hint-id"])) : S("", !0)
1637
1712
  ], 16));
1638
1713
  }
1639
- }), Mn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1714
+ }), Nn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1640
1715
  __name: "BsInputSearch",
1641
1716
  props: {
1642
1717
  /** Sets the disabled state on input, disabled styles on label. */
@@ -1665,50 +1740,57 @@ const Vt = {
1665
1740
  value: {
1666
1741
  type: String,
1667
1742
  default: ""
1743
+ },
1744
+ variant: {
1745
+ type: String,
1746
+ // we may be getting at least one more variant so we'll validate against arr
1747
+ validator: (e) => ["filter"].includes(e)
1668
1748
  }
1669
1749
  },
1670
1750
  emits: ["clear", "update:modelValue"],
1671
1751
  setup(e, { emit: a }) {
1672
- const t = e, l = R(), { toChild: n, toRoot: o } = Z(t, l, [
1752
+ const t = e, l = N(), { toChild: n, toRoot: o } = Z(t, l, [
1753
+ "aria-label",
1673
1754
  "autocomplete",
1674
1755
  "maxlength",
1675
1756
  "minlength",
1676
1757
  "name"
1677
- ]);
1678
- return (d, i) => (u(), A(sa, D({
1758
+ ]), u = p(() => !t.disabled && !t.hideClear && t.variant !== "filter");
1759
+ return (i, s) => (d(), L(ua, D({
1679
1760
  class: "bs-input-search",
1680
1761
  "data-component": "bs-input-search",
1762
+ "data-variant": e.variant,
1681
1763
  disabled: e.disabled
1682
1764
  }, v(o)), {
1683
- default: C(() => [
1684
- V(v(Xe)),
1685
- V(we, D({
1765
+ default: V(() => [
1766
+ P(v(Xe)),
1767
+ P(ke, D({
1686
1768
  "data-autowidth": "",
1687
1769
  disabled: e.disabled,
1688
1770
  "input-id": e.inputId,
1689
1771
  placeholder: e.placeholder,
1690
1772
  value: e.value || e.modelValue,
1691
- "onUpdate:modelValue": i[0] || (i[0] = (s) => d.$emit("update:modelValue", s))
1773
+ "onUpdate:modelValue": s[0] || (s[0] = (r) => i.$emit("update:modelValue", r))
1692
1774
  }, v(n)), null, 16, ["disabled", "input-id", "placeholder", "value"]),
1693
- e.disabled || e.hideClear ? $("", !0) : (u(), f("button", {
1775
+ u.value ? (d(), f("button", {
1694
1776
  key: 0,
1695
1777
  title: "Clear",
1696
1778
  type: "button",
1697
- onClick: i[1] || (i[1] = (s) => d.$emit("clear"))
1779
+ onClick: s[1] || (s[1] = (r) => i.$emit("clear"))
1698
1780
  }, [
1699
- V(v(oe), { size: "sm" })
1700
- ]))
1781
+ P(v(oe), { size: "sm" })
1782
+ ])) : S("", !0)
1701
1783
  ]),
1702
1784
  _: 1
1703
- }, 16, ["disabled"]));
1785
+ }, 16, ["data-variant", "disabled"]));
1704
1786
  }
1705
- }), da = ["data-size", "data-variant"], ua = /* @__PURE__ */ m("span", null, null, -1), ca = /* @__PURE__ */ m("span", null, null, -1), fa = /* @__PURE__ */ m("span", null, null, -1), va = /* @__PURE__ */ m("span", null, null, -1), ha = /* @__PURE__ */ m("span", { class: "visually-hidden" }, "Loading", -1), pa = [
1706
- ua,
1707
- ca,
1787
+ }), ca = ["data-size", "data-variant"], fa = /* @__PURE__ */ m("span", null, null, -1), va = /* @__PURE__ */ m("span", null, null, -1), pa = /* @__PURE__ */ m("span", null, null, -1), ha = /* @__PURE__ */ m("span", null, null, -1), ga = /* @__PURE__ */ m("span", { class: "visually-hidden" }, "Loading", -1), ba = [
1708
1788
  fa,
1709
1789
  va,
1710
- ha
1711
- ], On = {
1790
+ pa,
1791
+ ha,
1792
+ ga
1793
+ ], Rn = {
1712
1794
  __name: "BsLoader",
1713
1795
  props: {
1714
1796
  size: {
@@ -1722,14 +1804,14 @@ const Vt = {
1722
1804
  }
1723
1805
  },
1724
1806
  setup(e) {
1725
- return (a, t) => (u(), f("span", {
1807
+ return (a, t) => (d(), f("span", {
1726
1808
  class: "bs-loader",
1727
1809
  "data-size": e.size,
1728
1810
  "data-variant": e.variant,
1729
1811
  role: "status"
1730
- }, pa, 8, da));
1812
+ }, ba, 8, ca));
1731
1813
  }
1732
- }, ga = /* @__PURE__ */ m("div", { class: "bs-overlay" }, null, -1), ba = {
1814
+ }, ma = /* @__PURE__ */ m("div", { class: "bs-overlay" }, null, -1), ya = {
1733
1815
  __name: "BsOverlay",
1734
1816
  props: {
1735
1817
  shown: {
@@ -1759,24 +1841,24 @@ const Vt = {
1759
1841
  emits: ["after-enter", "after-leave"],
1760
1842
  setup(e, { emit: a }) {
1761
1843
  const t = e, l = a, { transition: n } = se(t);
1762
- return (o, d) => (u(), A(v(de), {
1844
+ return (o, u) => (d(), L(v(de), {
1763
1845
  shown: v(n),
1764
1846
  preloaded: e.preloaded,
1765
1847
  duration: 75,
1766
1848
  "enter-attribute": "data-shown",
1767
- onAfterEnter: d[0] || (d[0] = (i) => l("after-enter")),
1768
- onAfterLeave: d[1] || (d[1] = (i) => l("after-leave"))
1849
+ onAfterEnter: u[0] || (u[0] = (i) => l("after-enter")),
1850
+ onAfterLeave: u[1] || (u[1] = (i) => l("after-leave"))
1769
1851
  }, {
1770
- default: C(() => [
1771
- ga
1852
+ default: V(() => [
1853
+ ma
1772
1854
  ]),
1773
1855
  _: 1
1774
1856
  }, 8, ["shown", "preloaded"]));
1775
1857
  }
1776
- }, ma = ["id", "role"], ya = {
1858
+ }, Ba = ["id", "role"], $a = {
1777
1859
  key: 0,
1778
1860
  class: "close-button-container"
1779
- }, Rn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1861
+ }, jn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1780
1862
  __name: "BsModal",
1781
1863
  props: {
1782
1864
  modalId: {
@@ -1825,57 +1907,57 @@ const Vt = {
1825
1907
  let o = !1;
1826
1908
  return re(["Escape"], () => {
1827
1909
  o && l("close", t.modalId);
1828
- }), (d, i) => (u(), f(O, null, [
1829
- V(ba, {
1910
+ }), (u, i) => (d(), f(O, null, [
1911
+ P(ya, {
1830
1912
  shown: v(n),
1831
1913
  preloaded: e.preloaded,
1832
1914
  "enter-controlled": e.enterControlled,
1833
1915
  "enter-trigger": e.enterTrigger,
1834
1916
  "leave-trigger": e.leaveTrigger
1835
1917
  }, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
1836
- V(de, {
1918
+ P(de, {
1837
1919
  shown: v(n),
1838
1920
  preloaded: e.preloaded,
1839
1921
  duration: 75,
1840
1922
  "enter-attribute": "data-shown",
1841
- onEnter: i[1] || (i[1] = (s) => Fe(o) ? o.value = !0 : o = !0),
1923
+ onEnter: i[1] || (i[1] = (s) => Ue(o) ? o.value = !0 : o = !0),
1842
1924
  onAfterEnter: i[2] || (i[2] = (s) => l("after-enter")),
1843
1925
  onAfterLeave: i[3] || (i[3] = (s) => l("after-leave"))
1844
1926
  }, {
1845
- default: C(() => [
1927
+ default: V(() => [
1846
1928
  m("div", D({
1847
1929
  id: t.modalId,
1848
1930
  class: "bs-modal",
1849
1931
  role: e.alert ? "alertdialog" : "dialog",
1850
1932
  "aria-modal": "true"
1851
- }, d.$attrs), [
1852
- e.closeButton ? (u(), f("div", ya, [
1933
+ }, u.$attrs), [
1934
+ e.closeButton ? (d(), f("div", $a, [
1853
1935
  m("button", {
1854
1936
  type: "button",
1855
1937
  title: "Close Modal",
1856
1938
  "aria-label": "Close Modal",
1857
1939
  onClick: i[0] || (i[0] = (s) => l("close", e.modalId))
1858
1940
  }, [
1859
- V(v(oe), { class: "close-button" })
1941
+ P(v(oe), { class: "close-button" })
1860
1942
  ])
1861
- ])) : $("", !0),
1862
- I(d.$slots, "default")
1863
- ], 16, ma)
1943
+ ])) : S("", !0),
1944
+ k(u.$slots, "default")
1945
+ ], 16, Ba)
1864
1946
  ]),
1865
1947
  _: 3
1866
1948
  }, 8, ["shown", "preloaded"])
1867
1949
  ], 64));
1868
1950
  }
1869
- }), Ba = ["data-variant", "data-fixed"], $a = {
1951
+ }), Sa = ["data-variant", "data-fixed"], wa = {
1870
1952
  key: 0,
1871
1953
  class: "bs-pagination-carets"
1872
- }, Sa = ["title", "disabled"], wa = { key: 0 }, ka = ["title", "disabled"], Ia = { key: 0 }, Ta = {
1954
+ }, ka = ["title", "disabled"], Ia = { key: 0 }, Ta = ["title", "disabled"], xa = { key: 0 }, Ca = {
1873
1955
  key: 1,
1874
1956
  class: "bs-pagination-page-numbers"
1875
- }, xa = ["title", "data-selected", "onClick"], Ca = { key: 2 }, Aa = { key: 3 }, La = /* @__PURE__ */ m("span", null, "Results Per Page:", -1), Pa = { class: "bs-pagination-results-numbers" }, Da = ["data-selected", "disabled", "onClick"], Va = {
1957
+ }, Aa = ["title", "data-selected", "onClick"], La = { key: 2 }, Va = { key: 3 }, Pa = /* @__PURE__ */ m("span", null, "Results Per Page:", -1), Da = { class: "bs-pagination-results-numbers" }, Ea = ["data-selected", "disabled", "onClick"], qa = {
1876
1958
  key: 5,
1877
1959
  class: "bs-pagination-carets"
1878
- }, Ea = ["title", "disabled"], qa = { key: 0 }, za = ["title", "disabled"], Ma = { key: 0 }, Nn = {
1960
+ }, za = ["title", "disabled"], Ma = { key: 0 }, Oa = ["title", "disabled"], Na = { key: 0 }, Wn = {
1879
1961
  __name: "BsPagination",
1880
1962
  props: {
1881
1963
  // Used for all
@@ -1961,19 +2043,19 @@ const Vt = {
1961
2043
  },
1962
2044
  emits: ["selchange", "update:modelValue"],
1963
2045
  setup(e, { emit: a }) {
1964
- const t = e, l = a, n = k(null);
1965
- N(() => {
1966
- o.value ? n.value = o.value : t.variant === "results" ? n.value = M.value[0] : n.value = 1;
2046
+ const t = e, l = a, n = I(null);
2047
+ j(() => {
2048
+ o.value ? n.value = o.value : t.variant === "results" ? n.value = z.value[0] : n.value = 1;
1967
2049
  });
1968
2050
  const o = p(() => t.modelValue || t.selection);
1969
- E(() => t.selection, (P) => {
1970
- n.value = P;
1971
- }), E(() => t.modelValue, (P) => {
1972
- n.value = P;
1973
- }), E(n, (P, w) => {
1974
- w !== null && (l("selchange", P), l("update:modelValue", P));
2051
+ E(() => t.selection, (C) => {
2052
+ n.value = C;
2053
+ }), E(() => t.modelValue, (C) => {
2054
+ n.value = C;
2055
+ }), E(n, (C, $) => {
2056
+ $ !== null && (l("selchange", C), l("update:modelValue", C));
1975
2057
  });
1976
- const d = p(() => {
2058
+ const u = p(() => {
1977
2059
  if (t.variant === "group")
1978
2060
  return Math.ceil(t.itemsCount / t.itemsPerGroup);
1979
2061
  if (t.variant === "base")
@@ -1988,32 +2070,32 @@ const Vt = {
1988
2070
  function c() {
1989
2071
  n.value = Math.min(
1990
2072
  n.value + 1,
1991
- d.value
2073
+ u.value
1992
2074
  );
1993
2075
  }
1994
2076
  function b() {
1995
- n.value = d.value;
2077
+ n.value = u.value;
1996
2078
  }
1997
2079
  const g = p(() => {
1998
2080
  if (t.pageCount <= t.pageRange)
1999
2081
  return [...Array(t.pageCount + 1).keys()].slice(1);
2000
- const P = [1], w = (t.pageRange - 1) / 2;
2001
- let S = n.value - w, q = n.value + w;
2002
- S < 1 && (q += 1 - S, S = 1), q > t.pageCount && (S -= q - t.pageCount, q = t.pageCount), S = Math.max(S, 2), q = Math.min(q, t.pageCount - 1), S > 2 && P.push(t.breakText);
2003
- for (let W = S; W <= q; W++)
2004
- P.push(W);
2005
- return q < t.pageCount - 1 && P.push(t.breakText), P.push(t.pageCount), P;
2006
- }), y = p(() => `${t.centerLabel ?? "Page"} ${n.value} of ${d.value}`), L = p(() => {
2007
- const P = (n.value - 1) * t.itemsPerGroup + 1, w = Math.min(P - 1 + t.itemsPerGroup, t.itemsCount);
2008
- return `${t.centerLabel ?? "Results"} ${P} - ${w} of ${t.itemsCount}`;
2009
- }), M = p(() => t.resultsIncrements.split(",").map((P) => parseInt(P)));
2010
- return (P, w) => (u(), f("div", {
2082
+ const C = [1], $ = (t.pageRange - 1) / 2;
2083
+ let y = n.value - $, q = n.value + $;
2084
+ y < 1 && (q += 1 - y, y = 1), q > t.pageCount && (y -= q - t.pageCount, q = t.pageCount), y = Math.max(y, 2), q = Math.min(q, t.pageCount - 1), y > 2 && C.push(t.breakText);
2085
+ for (let W = y; W <= q; W++)
2086
+ C.push(W);
2087
+ return q < t.pageCount - 1 && C.push(t.breakText), C.push(t.pageCount), C;
2088
+ }), B = p(() => `${t.centerLabel ?? "Page"} ${n.value} of ${u.value}`), x = p(() => {
2089
+ const C = (n.value - 1) * t.itemsPerGroup + 1, $ = Math.min(C - 1 + t.itemsPerGroup, t.itemsCount);
2090
+ return `${t.centerLabel ?? "Results"} ${C} - ${$} of ${t.itemsCount}`;
2091
+ }), z = p(() => t.resultsIncrements.split(",").map((C) => parseInt(C)));
2092
+ return (C, $) => (d(), f("div", {
2011
2093
  class: "bs-pagination",
2012
2094
  "data-variant": i.value,
2013
2095
  "data-fixed": t.fixed
2014
2096
  }, [
2015
- e.variant === "base" || e.variant === "group" ? (u(), f("div", $a, [
2016
- e.showFirstLastButtons ? (u(), f("button", {
2097
+ e.variant === "base" || e.variant === "group" ? (d(), f("div", wa, [
2098
+ e.showFirstLastButtons ? (d(), f("button", {
2017
2099
  key: 0,
2018
2100
  type: "button",
2019
2101
  class: X(e.firstPageText ? "bs-pagination-word-caret" : void 0),
@@ -2021,9 +2103,9 @@ const Vt = {
2021
2103
  disabled: n.value === 1,
2022
2104
  onClick: s
2023
2105
  }, [
2024
- V(v(Ze)),
2025
- e.firstPageText ? (u(), f("span", wa, T(e.firstPageText), 1)) : $("", !0)
2026
- ], 10, Sa)) : $("", !0),
2106
+ P(v(Ze)),
2107
+ e.firstPageText ? (d(), f("span", Ia, T(e.firstPageText), 1)) : S("", !0)
2108
+ ], 10, ka)) : S("", !0),
2027
2109
  m("button", {
2028
2110
  type: "button",
2029
2111
  class: X(e.prevPageText ? "bs-pagination-word-caret" : void 0),
@@ -2031,59 +2113,59 @@ const Vt = {
2031
2113
  disabled: n.value === 1,
2032
2114
  onClick: r
2033
2115
  }, [
2034
- V(v(Je)),
2035
- e.prevPageText ? (u(), f("span", Ia, T(e.prevPageText), 1)) : $("", !0)
2036
- ], 10, ka)
2037
- ])) : $("", !0),
2038
- e.variant === "base" && e.centerDisplay === "numbers" ? (u(), f("div", Ta, [
2039
- (u(!0), f(O, null, Y(g.value, (S) => (u(), f("button", {
2040
- key: `page-${S}-button`,
2116
+ P(v(Je)),
2117
+ e.prevPageText ? (d(), f("span", xa, T(e.prevPageText), 1)) : S("", !0)
2118
+ ], 10, Ta)
2119
+ ])) : S("", !0),
2120
+ e.variant === "base" && e.centerDisplay === "numbers" ? (d(), f("div", Ca, [
2121
+ (d(!0), f(O, null, Y(g.value, (y) => (d(), f("button", {
2122
+ key: `page-${y}-button`,
2041
2123
  type: "button",
2042
- title: `Page ${S}`,
2043
- "data-selected": S === n.value,
2044
- onClick: (q) => n.value = S
2045
- }, T(S), 9, xa))), 128))
2046
- ])) : $("", !0),
2047
- t.variant === "base" && t.centerDisplay === "text" ? (u(), f("span", Ca, T(y.value), 1)) : $("", !0),
2048
- t.variant === "group" ? (u(), f("span", Aa, T(L.value), 1)) : $("", !0),
2049
- t.variant === "results" ? (u(), f(O, { key: 4 }, [
2050
- La,
2051
- m("div", Pa, [
2052
- (u(!0), f(O, null, Y(M.value, (S) => (u(), f("button", {
2124
+ title: `Page ${y}`,
2125
+ "data-selected": y === n.value,
2126
+ onClick: (q) => n.value = y
2127
+ }, T(y), 9, Aa))), 128))
2128
+ ])) : S("", !0),
2129
+ t.variant === "base" && t.centerDisplay === "text" ? (d(), f("span", La, T(B.value), 1)) : S("", !0),
2130
+ t.variant === "group" ? (d(), f("span", Va, T(x.value), 1)) : S("", !0),
2131
+ t.variant === "results" ? (d(), f(O, { key: 4 }, [
2132
+ Pa,
2133
+ m("div", Da, [
2134
+ (d(!0), f(O, null, Y(z.value, (y) => (d(), f("button", {
2053
2135
  type: "button",
2054
- key: `results-${S}`,
2055
- "data-selected": S === n.value,
2056
- disabled: n.value === S,
2057
- onClick: (q) => n.value = S
2058
- }, T(S), 9, Da))), 128))
2136
+ key: `results-${y}`,
2137
+ "data-selected": y === n.value,
2138
+ disabled: n.value === y,
2139
+ onClick: (q) => n.value = y
2140
+ }, T(y), 9, Ea))), 128))
2059
2141
  ])
2060
- ], 64)) : $("", !0),
2061
- e.variant === "base" || e.variant === "group" ? (u(), f("div", Va, [
2142
+ ], 64)) : S("", !0),
2143
+ e.variant === "base" || e.variant === "group" ? (d(), f("div", qa, [
2062
2144
  m("button", {
2063
2145
  type: "button",
2064
2146
  class: X(e.nextPageText ? "bs-pagination-word-caret" : void 0),
2065
2147
  title: e.nextPageText,
2066
- disabled: n.value === d.value,
2148
+ disabled: n.value === u.value,
2067
2149
  onClick: c
2068
2150
  }, [
2069
- e.nextPageText ? (u(), f("span", qa, T(e.nextPageText), 1)) : $("", !0),
2070
- V(v(Qe))
2071
- ], 10, Ea),
2072
- e.showFirstLastButtons ? (u(), f("button", {
2151
+ e.nextPageText ? (d(), f("span", Ma, T(e.nextPageText), 1)) : S("", !0),
2152
+ P(v(Qe))
2153
+ ], 10, za),
2154
+ e.showFirstLastButtons ? (d(), f("button", {
2073
2155
  key: 0,
2074
2156
  type: "button",
2075
2157
  class: X(e.lastPageText ? "bs-pagination-word-caret" : void 0),
2076
2158
  title: e.lastPageText,
2077
- disabled: n.value === d.value,
2159
+ disabled: n.value === u.value,
2078
2160
  onClick: b
2079
2161
  }, [
2080
- e.lastPageText ? (u(), f("span", Ma, T(e.lastPageText), 1)) : $("", !0),
2081
- V(v(_e))
2082
- ], 10, za)) : $("", !0)
2083
- ])) : $("", !0)
2084
- ], 8, Ba));
2162
+ e.lastPageText ? (d(), f("span", Na, T(e.lastPageText), 1)) : S("", !0),
2163
+ P(v(_e))
2164
+ ], 10, Oa)) : S("", !0)
2165
+ ])) : S("", !0)
2166
+ ], 8, Sa));
2085
2167
  }
2086
- }, Oa = ["data-truncate"], jn = {
2168
+ }, Ra = ["data-truncate"], Fn = {
2087
2169
  __name: "BsPill",
2088
2170
  props: {
2089
2171
  active: { type: Boolean, default: !1 },
@@ -2105,8 +2187,8 @@ const Vt = {
2105
2187
  }
2106
2188
  },
2107
2189
  setup(e) {
2108
- const a = e, { onLinkClick: t } = ie(a), l = R(), { rootTag: n, attrsToBind: o } = he(a, l, "span");
2109
- return (d, i) => (u(), A(U(v(n)), D({
2190
+ const a = e, { onLinkClick: t } = ie(a), l = N(), { rootTag: n, attrsToBind: o } = pe(a, l, "span");
2191
+ return (u, i) => (d(), L(U(v(n)), D({
2110
2192
  class: "bs-pill",
2111
2193
  "data-active": e.active,
2112
2194
  "data-component": "bs-pill",
@@ -2115,25 +2197,25 @@ const Vt = {
2115
2197
  disabled: e.disabled,
2116
2198
  href: e.href
2117
2199
  }, v(o), { onClick: v(t) }), {
2118
- default: C(() => [
2200
+ default: V(() => [
2119
2201
  m("span", { "data-truncate": e.truncate }, [
2120
- I(d.$slots, "default")
2121
- ], 8, Oa)
2202
+ k(u.$slots, "default")
2203
+ ], 8, Ra)
2122
2204
  ]),
2123
2205
  _: 3
2124
2206
  }, 16, ["data-active", "data-status", "data-variant", "disabled", "href", "onClick"]));
2125
2207
  }
2126
- }, Ra = { class: "bs-profile-details" }, Na = {
2208
+ }, ja = { class: "bs-profile-details" }, Wa = {
2127
2209
  class: "bs-profile-name",
2128
2210
  "data-size": "sm",
2129
2211
  "data-weight": "bold"
2130
- }, ja = {
2212
+ }, Fa = {
2131
2213
  key: 1,
2132
2214
  "data-weight": "bold"
2133
- }, Wa = { key: 2 }, Ga = { key: 3 }, Fa = {
2215
+ }, Ga = { key: 2 }, Ua = { key: 3 }, Ha = {
2134
2216
  key: 4,
2135
2217
  "data-icon": "true"
2136
- }, Ua = {
2218
+ }, Ka = {
2137
2219
  __name: "BsProfileDetails",
2138
2220
  props: {
2139
2221
  profileName: {
@@ -2151,39 +2233,39 @@ const Vt = {
2151
2233
  emits: ["action-toggled"],
2152
2234
  setup(e, { emit: a }) {
2153
2235
  const t = e, l = a, { icon: n } = le(t, "actionIcon"), { icon: o } = le(t, "miscMetaIcon");
2154
- function d(i) {
2236
+ function u(i) {
2155
2237
  i.target.tagName === "BUTTON" && (i.preventDefault(), i.stopImmediatePropagation(), l("action-toggled"));
2156
2238
  }
2157
- return (i, s) => (u(), f("div", Ra, [
2158
- e.action || i.$slots.action ? (u(), f("button", {
2239
+ return (i, s) => (d(), f("div", ja, [
2240
+ e.action || i.$slots.action ? (d(), f("button", {
2159
2241
  key: 0,
2160
2242
  "data-icon": "true",
2161
- onClick: d
2243
+ onClick: u
2162
2244
  }, [
2163
- I(i.$slots, "action", {}, () => [
2164
- e.actionIcon ? (u(), A(U(v(n) ? v(n) : "span"), {
2245
+ k(i.$slots, "action", {}, () => [
2246
+ e.actionIcon ? (d(), L(U(v(n) ? v(n) : "span"), {
2165
2247
  key: 0,
2166
2248
  class: "bs-icon"
2167
- })) : $("", !0),
2168
- j(" " + T(e.action), 1)
2249
+ })) : S("", !0),
2250
+ R(" " + T(e.action), 1)
2169
2251
  ])
2170
- ])) : $("", !0),
2171
- m("span", Na, T(e.profileName), 1),
2172
- e.company ? (u(), f("span", ja, T(e.company), 1)) : $("", !0),
2173
- e.jobTitle ? (u(), f("span", Wa, T(e.jobTitle), 1)) : $("", !0),
2174
- e.email ? (u(), f("span", Ga, T(e.email), 1)) : $("", !0),
2175
- e.miscMeta || i.$slots.misc ? (u(), f("span", Fa, [
2176
- I(i.$slots, "misc", {}, () => [
2177
- e.miscMetaIcon ? (u(), A(U(v(o) ? v(o) : "span"), {
2252
+ ])) : S("", !0),
2253
+ m("span", Wa, T(e.profileName), 1),
2254
+ e.company ? (d(), f("span", Fa, T(e.company), 1)) : S("", !0),
2255
+ e.jobTitle ? (d(), f("span", Ga, T(e.jobTitle), 1)) : S("", !0),
2256
+ e.email ? (d(), f("span", Ua, T(e.email), 1)) : S("", !0),
2257
+ e.miscMeta || i.$slots.misc ? (d(), f("span", Ha, [
2258
+ k(i.$slots, "misc", {}, () => [
2259
+ e.miscMetaIcon ? (d(), L(U(v(o) ? v(o) : "span"), {
2178
2260
  key: 0,
2179
2261
  class: "bs-icon"
2180
- })) : $("", !0),
2181
- j(" " + T(e.miscMeta), 1)
2262
+ })) : S("", !0),
2263
+ R(" " + T(e.miscMeta), 1)
2182
2264
  ])
2183
- ])) : $("", !0)
2265
+ ])) : S("", !0)
2184
2266
  ]));
2185
2267
  }
2186
- }, Ha = ["data-img-size", "data-initials", "data-no-img"], Ka = ["src", "alt"], Ya = {
2268
+ }, Ya = ["data-img-size", "data-initials", "data-no-img"], Xa = ["src", "alt"], Za = {
2187
2269
  __name: "BsProfileImg",
2188
2270
  props: {
2189
2271
  src: String,
@@ -2198,22 +2280,22 @@ const Vt = {
2198
2280
  }
2199
2281
  },
2200
2282
  setup(e) {
2201
- const a = e, t = k(!1), l = k(!!a.src);
2202
- return N(() => t.value = !0), (n, o) => (u(), f("div", {
2283
+ const a = e, t = I(!1), l = I(!!a.src);
2284
+ return j(() => t.value = !0), (n, o) => (d(), f("div", {
2203
2285
  class: "bs-profile-img",
2204
2286
  "data-img-size": e.size,
2205
2287
  "data-initials": e.initials,
2206
2288
  "data-no-img": !l.value
2207
2289
  }, [
2208
- l.value && t.value ? (u(), f("img", {
2290
+ l.value && t.value ? (d(), f("img", {
2209
2291
  key: 0,
2210
2292
  src: e.src,
2211
2293
  alt: e.profileName,
2212
- onError: o[0] || (o[0] = (d) => l.value = !1)
2213
- }, null, 40, Ka)) : $("", !0)
2214
- ], 8, Ha));
2294
+ onError: o[0] || (o[0] = (u) => l.value = !1)
2295
+ }, null, 40, Xa)) : S("", !0)
2296
+ ], 8, Ya));
2215
2297
  }
2216
- }, Wn = {
2298
+ }, Gn = {
2217
2299
  __name: "BsProfile",
2218
2300
  props: {
2219
2301
  layout: {
@@ -2242,20 +2324,20 @@ const Vt = {
2242
2324
  emits: ["action-toggled"],
2243
2325
  setup(e, { emit: a }) {
2244
2326
  const t = e, l = a, { onLinkClick: n } = ie(t), o = p(() => t.href ? "a" : "div");
2245
- return (d, i) => (u(), A(U(o.value), {
2327
+ return (u, i) => (d(), L(U(o.value), {
2246
2328
  class: "bs-profile",
2247
2329
  href: e.href,
2248
2330
  "data-layout": e.layout,
2249
2331
  onClick: v(n)
2250
2332
  }, {
2251
- default: C(() => [
2252
- V(Ya, {
2333
+ default: V(() => [
2334
+ P(Za, {
2253
2335
  src: e.imageSrc,
2254
2336
  size: e.imageSize,
2255
2337
  initials: e.initials,
2256
2338
  "profile-name": e.profileName
2257
2339
  }, null, 8, ["src", "size", "initials", "profile-name"]),
2258
- V(Ua, {
2340
+ P(Ka, {
2259
2341
  "profile-name": e.profileName,
2260
2342
  company: e.company,
2261
2343
  "job-title": e.jobTitle,
@@ -2266,11 +2348,11 @@ const Vt = {
2266
2348
  "misc-meta-icon": e.miscMetaIcon,
2267
2349
  onActionToggled: i[0] || (i[0] = (s) => l("action-toggled"))
2268
2350
  }, {
2269
- action: C(() => [
2270
- I(d.$slots, "action")
2351
+ action: V(() => [
2352
+ k(u.$slots, "action")
2271
2353
  ]),
2272
- misc: C(() => [
2273
- I(d.$slots, "misc")
2354
+ misc: V(() => [
2355
+ k(u.$slots, "misc")
2274
2356
  ]),
2275
2357
  _: 3
2276
2358
  }, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
@@ -2278,7 +2360,7 @@ const Vt = {
2278
2360
  _: 3
2279
2361
  }, 8, ["href", "data-layout", "onClick"]));
2280
2362
  }
2281
- }, Xa = ["data-size"], Za = ["checked", "disabled", "id", "required", "value", "data-error"], Gn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2363
+ }, Ja = ["data-size"], Qa = ["checked", "disabled", "id", "required", "value", "data-error"], Un = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2282
2364
  __name: "BsRadio",
2283
2365
  props: {
2284
2366
  label: {
@@ -2322,12 +2404,12 @@ const Vt = {
2322
2404
  },
2323
2405
  emits: ["update:modelValue"],
2324
2406
  setup(e, { emit: a }) {
2325
- const t = e, l = R(), [n] = H(), { toChild: o, toRoot: d } = Z(t, l, ["name"]), i = p(() => t.inputId || n.value), s = p(() => t.checked || t.modelValue && t.modelValue === t.value);
2326
- return (r, c) => (u(), f("div", D({
2407
+ const t = e, l = N(), [n] = H(), { toChild: o, toRoot: u } = Z(t, l, ["aria-label", "name"]), i = p(() => t.inputId || n.value), s = p(() => t.checked || t.modelValue && t.modelValue === t.value);
2408
+ return (r, c) => (d(), f("div", D({
2327
2409
  class: "bs-boolean",
2328
2410
  "data-component": "bs-radio",
2329
2411
  "data-size": e.size
2330
- }, v(d)), [
2412
+ }, v(u)), [
2331
2413
  m("input", D({
2332
2414
  checked: s.value,
2333
2415
  disabled: e.disabled,
@@ -2338,23 +2420,23 @@ const Vt = {
2338
2420
  "data-error": e.error
2339
2421
  }, v(o), {
2340
2422
  onChange: c[0] || (c[0] = (b) => r.$emit("update:modelValue", b.target.value))
2341
- }), null, 16, Za),
2342
- e.label || r.$slots.label ? (u(), A(_, {
2423
+ }), null, 16, Qa),
2424
+ e.label || r.$slots.label ? (d(), L(_, {
2343
2425
  key: 0,
2344
2426
  for: i.value,
2345
2427
  disabled: e.disabled,
2346
2428
  required: e.required
2347
2429
  }, {
2348
- default: C(() => [
2349
- I(r.$slots, "label", {}, () => [
2350
- j(T(e.label), 1)
2430
+ default: V(() => [
2431
+ k(r.$slots, "label", {}, () => [
2432
+ R(T(e.label), 1)
2351
2433
  ])
2352
2434
  ]),
2353
2435
  _: 3
2354
- }, 8, ["for", "disabled", "required"])) : $("", !0)
2355
- ], 16, Xa));
2436
+ }, 8, ["for", "disabled", "required"])) : S("", !0)
2437
+ ], 16, Ja));
2356
2438
  }
2357
- }), Ja = ["id", "disabled", "required", "data-error", "value"], Qa = {
2439
+ }), _a = ["id", "disabled", "required", "data-error", "value"], en = {
2358
2440
  __name: "BsSelect",
2359
2441
  props: {
2360
2442
  disabled: { type: Boolean, default: !1 },
@@ -2368,7 +2450,7 @@ const Vt = {
2368
2450
  emits: ["update:modelValue"],
2369
2451
  setup(e, { emit: a }) {
2370
2452
  const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
2371
- return (n, o) => (u(), f("select", D({
2453
+ return (n, o) => (d(), f("select", D({
2372
2454
  id: n.$attrs.id || e.inputId,
2373
2455
  class: "bs-select",
2374
2456
  "data-component": "bs-select",
@@ -2377,12 +2459,12 @@ const Vt = {
2377
2459
  "data-error": e.error,
2378
2460
  value: e.value || e.modelValue
2379
2461
  }, l.value, {
2380
- onChange: o[0] || (o[0] = (d) => n.$emit("update:modelValue", d.target.value))
2462
+ onChange: o[0] || (o[0] = (u) => n.$emit("update:modelValue", u.target.value))
2381
2463
  }), [
2382
- I(n.$slots, "default")
2383
- ], 16, Ja));
2464
+ k(n.$slots, "default")
2465
+ ], 16, _a));
2384
2466
  }
2385
- }, _a = ["selected", "disabled"], en = ["disabled", "selected", "value"], Fn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2467
+ }, tn = ["selected", "disabled"], an = ["disabled", "selected", "value"], Hn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2386
2468
  __name: "BsSelectField",
2387
2469
  props: {
2388
2470
  data: {
@@ -2426,7 +2508,8 @@ const Vt = {
2426
2508
  modelValue: [String, Number]
2427
2509
  },
2428
2510
  setup(e) {
2429
- const a = e, t = R(), [l, n] = H(2), { toChild: o, toRoot: d } = Z(a, t, [
2511
+ const a = e, t = N(), [l, n] = H(2), { toChild: o, toRoot: u } = Z(a, t, [
2512
+ "aria-label",
2430
2513
  "autofocus",
2431
2514
  "name"
2432
2515
  ]), i = p(() => {
@@ -2434,55 +2517,55 @@ const Vt = {
2434
2517
  return ((g = (b = a.hints) == null ? void 0 : b.join) == null ? void 0 : g.call(b, `
2435
2518
  `)) || a.hints;
2436
2519
  }), s = p(() => a.error && a.errorMsg || a.hint || i.value || void 0), r = p(() => a.inputId || l.value), c = p(() => a.value || a.modelValue);
2437
- return (b, g) => (u(), f("div", D({ "data-component": "bs-select-field" }, v(d)), [
2438
- e.label || b.$slots.label ? (u(), A(_, {
2520
+ return (b, g) => (d(), f("div", D({ "data-component": "bs-select-field" }, v(u)), [
2521
+ e.label || b.$slots.label ? (d(), L(_, {
2439
2522
  key: 0,
2440
2523
  for: r.value,
2441
2524
  disabled: e.disabled,
2442
2525
  required: e.required
2443
2526
  }, {
2444
- default: C(() => [
2445
- I(b.$slots, "label", {}, () => [
2446
- j(T(e.label), 1)
2527
+ default: V(() => [
2528
+ k(b.$slots, "label", {}, () => [
2529
+ R(T(e.label), 1)
2447
2530
  ])
2448
2531
  ]),
2449
2532
  _: 3
2450
- }, 8, ["for", "disabled", "required"])) : $("", !0),
2451
- V(Qa, D({
2533
+ }, 8, ["for", "disabled", "required"])) : S("", !0),
2534
+ P(en, D({
2452
2535
  disabled: e.disabled,
2453
2536
  error: e.error,
2454
2537
  "hint-id": v(n),
2455
2538
  "input-id": r.value,
2456
2539
  required: e.required,
2457
2540
  value: c.value,
2458
- "onUpdate:modelValue": g[0] || (g[0] = (y) => b.$emit("update:modelValue", y))
2541
+ "onUpdate:modelValue": g[0] || (g[0] = (B) => b.$emit("update:modelValue", B))
2459
2542
  }, v(o)), {
2460
- default: C(() => [
2543
+ default: V(() => [
2461
2544
  m("option", {
2462
2545
  selected: !c.value,
2463
2546
  value: "",
2464
2547
  disabled: !!c.value
2465
- }, T(e.placeholder), 9, _a),
2466
- (u(!0), f(O, null, Y(e.data, (y) => (u(), f("option", {
2467
- key: y.value,
2468
- disabled: y.disabled,
2469
- selected: c.value === y.value,
2470
- value: y.value
2471
- }, T(y.label), 9, en))), 128))
2548
+ }, T(e.placeholder), 9, tn),
2549
+ (d(!0), f(O, null, Y(e.data, (B) => (d(), f("option", {
2550
+ key: B.value,
2551
+ disabled: B.disabled,
2552
+ selected: c.value === B.value,
2553
+ value: B.value
2554
+ }, T(B.label), 9, an))), 128))
2472
2555
  ]),
2473
2556
  _: 1
2474
2557
  }, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
2475
- s.value ? (u(), A(pe, {
2558
+ s.value ? (d(), L(he, {
2476
2559
  key: 1,
2477
2560
  "data-disabled": e.disabled,
2478
2561
  error: e.error,
2479
2562
  "error-msg": e.errorMsg,
2480
2563
  hint: e.hint || i.value,
2481
2564
  "hint-id": v(n)
2482
- }, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
2565
+ }, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : S("", !0)
2483
2566
  ], 16));
2484
2567
  }
2485
- }), tn = ["data-size"], an = ["data-disabled", "data-pending", "data-size"], nn = ["checked", "disabled", "id"], ln = ["data-inner-on-label", "data-inner-off-label"], Un = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2568
+ }), nn = ["data-size"], ln = ["data-disabled", "data-pending", "data-size"], on = ["checked", "disabled", "id"], rn = ["data-inner-on-label", "data-inner-off-label"], Kn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2486
2569
  __name: "BsSwitch",
2487
2570
  props: {
2488
2571
  checked: {
@@ -2528,25 +2611,25 @@ const Vt = {
2528
2611
  },
2529
2612
  emits: ["update:modelValue"],
2530
2613
  setup(e, { emit: a }) {
2531
- const t = e, l = a, n = R(), [o] = H(), { toChild: d, toRoot: i } = Z(t, n, ["name", "value"]), s = p(() => t.inputId || o.value), r = p(() => t.checked || t.modelValue);
2532
- return (c, b) => (u(), f("div", D({
2614
+ const t = e, l = a, n = N(), [o] = H(), { toChild: u, toRoot: i } = Z(t, n, ["aria-label", "name", "value"]), s = p(() => t.inputId || o.value), r = p(() => t.checked || t.modelValue);
2615
+ return (c, b) => (d(), f("div", D({
2533
2616
  class: "bs-boolean",
2534
2617
  "data-component": "bs-switch",
2535
2618
  "data-size": e.size
2536
2619
  }, v(i)), [
2537
- e.label || c.$slots.label ? (u(), A(_, {
2620
+ e.label || c.$slots.label ? (d(), L(_, {
2538
2621
  key: 0,
2539
2622
  for: s.value,
2540
2623
  disabled: e.disabled,
2541
2624
  hide: e.hideLabel
2542
2625
  }, {
2543
- default: C(() => [
2544
- I(c.$slots, "label", {}, () => [
2545
- j(T(e.label), 1)
2626
+ default: V(() => [
2627
+ k(c.$slots, "label", {}, () => [
2628
+ R(T(e.label), 1)
2546
2629
  ])
2547
2630
  ]),
2548
2631
  _: 3
2549
- }, 8, ["for", "disabled", "hide"])) : $("", !0),
2632
+ }, 8, ["for", "disabled", "hide"])) : S("", !0),
2550
2633
  m("div", {
2551
2634
  class: "bs-switch",
2552
2635
  "data-disabled": e.disabled,
@@ -2558,18 +2641,18 @@ const Vt = {
2558
2641
  disabled: e.disabled,
2559
2642
  id: s.value,
2560
2643
  type: "checkbox"
2561
- }, v(d), {
2644
+ }, v(u), {
2562
2645
  onChange: b[0] || (b[0] = (g) => l("update:modelValue", g.target.checked))
2563
- }), null, 16, nn),
2646
+ }), null, 16, on),
2564
2647
  m("span", {
2565
2648
  "aria-hidden": "true",
2566
2649
  "data-inner-on-label": e.innerOnLabel,
2567
2650
  "data-inner-off-label": e.innerOffLabel
2568
- }, null, 8, ln)
2569
- ], 8, an)
2570
- ], 16, tn));
2651
+ }, null, 8, rn)
2652
+ ], 8, ln)
2653
+ ], 16, nn));
2571
2654
  }
2572
- }), on = ["aria-controls", "aria-selected", "data-hidden"], Hn = {
2655
+ }), sn = ["aria-controls", "aria-selected", "data-hidden"], Yn = {
2573
2656
  __name: "BsTab",
2574
2657
  props: {
2575
2658
  activeTabId: {
@@ -2586,7 +2669,7 @@ const Vt = {
2586
2669
  },
2587
2670
  emits: ["tabClick"],
2588
2671
  setup(e, { emit: a }) {
2589
- const t = e, l = R(), n = k(), o = p(() => t.activeTabId === l.id), d = p(() => t.panelId || `${l.id}-panel`);
2672
+ const t = e, l = N(), n = I(), o = p(() => t.activeTabId === l.id), u = p(() => t.panelId || `${l.id}-panel`);
2590
2673
  function i(r) {
2591
2674
  (r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
2592
2675
  }
@@ -2596,8 +2679,8 @@ const Vt = {
2596
2679
  n.value.dispatchEvent(r);
2597
2680
  }
2598
2681
  }
2599
- return (r, c) => (u(), f("div", {
2600
- "aria-controls": d.value,
2682
+ return (r, c) => (d(), f("div", {
2683
+ "aria-controls": u.value,
2601
2684
  "aria-selected": o.value ? "true" : "false",
2602
2685
  "data-hidden": e.hidden || void 0,
2603
2686
  "data-component": "bs-tab",
@@ -2608,10 +2691,10 @@ const Vt = {
2608
2691
  onClick: s,
2609
2692
  onKeydown: i
2610
2693
  }, [
2611
- I(r.$slots, "default")
2612
- ], 40, on));
2694
+ k(r.$slots, "default")
2695
+ ], 40, sn));
2613
2696
  }
2614
- }, rn = ["id", "data-resizing"], sn = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], dn = 73, un = 20, cn = 16, Kn = {
2697
+ }, dn = ["id", "data-resizing"], un = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], cn = 73, fn = 20, vn = 16, Xn = {
2615
2698
  __name: "BsTabList",
2616
2699
  props: {
2617
2700
  activeTabId: { type: String, required: !0 },
@@ -2622,182 +2705,182 @@ const Vt = {
2622
2705
  },
2623
2706
  emits: ["tabChange", "update:modelValue"],
2624
2707
  setup(e, { emit: a }) {
2625
- const t = e, l = a, n = k(!1), o = k(!1), d = k([]), i = k(!1), s = k(!1), r = k(), c = k([]), b = k(!1), g = k([]), y = k(), L = k(), M = k(), [P, w] = H(2), S = p(() => t.activeTabId ? g.value.findIndex((h) => h.id === t.activeTabId) : 0), q = p(() => d.value.some((h) => h.id === t.activeTabId)), W = p(() => `${w.value}-options`), ee = p(() => `${w.value}-toggle`), J = p(() => {
2708
+ const t = e, l = a, n = I(!1), o = I(!1), u = I([]), i = I(!1), s = I(!1), r = I(), c = I([]), b = I(!1), g = I([]), B = I(), x = I(), z = I(), [C, $] = H(2), y = p(() => t.activeTabId ? g.value.findIndex((h) => h.id === t.activeTabId) : 0), q = p(() => u.value.some((h) => h.id === t.activeTabId)), W = p(() => `${$.value}-options`), ee = p(() => `${$.value}-toggle`), J = p(() => {
2626
2709
  var h;
2627
- return q.value ? (h = g.value[S.value]) == null ? void 0 : h.textContent : "More";
2628
- }), ke = p(() => q.value ? c.value[S.value] - c.value[S.value - 1] + un : dn), Q = p(() => {
2629
- var B, x;
2710
+ return q.value ? (h = g.value[y.value]) == null ? void 0 : h.textContent : "More";
2711
+ }), Ie = p(() => q.value ? c.value[y.value] - c.value[y.value - 1] + fn : cn), Q = p(() => {
2712
+ var w, A;
2630
2713
  let h = [];
2631
2714
  if (typeof window > "u")
2632
2715
  return h;
2633
- for (let z of g.value) {
2634
- if (((B = z.dataset) == null ? void 0 : B.hidden) === "true" || ((x = z.dataset) == null ? void 0 : x.hidden) === "" || z.getAttribute("tabindex") === "-1")
2716
+ for (let M of g.value) {
2717
+ if (((w = M.dataset) == null ? void 0 : w.hidden) === "true" || ((A = M.dataset) == null ? void 0 : A.hidden) === "" || M.getAttribute("tabindex") === "-1")
2635
2718
  break;
2636
- h.push(z);
2719
+ h.push(M);
2637
2720
  }
2638
2721
  return s.value && h.push(r.value.querySelector(".bs-tab-list-toggle")), h;
2639
2722
  });
2640
2723
  function ue() {
2641
2724
  var K;
2642
- let h = !1, B, x = 0, z = !1, G = [];
2725
+ let h = !1, w, A = 0, M = !1, F = [];
2643
2726
  if ((K = g.value) != null && K.length) {
2644
- for (let F = 0; F < g.value.length; F++) {
2645
- if (B = g.value[F], B.setAttribute("tabindex", "-1"), z && F !== S.value) {
2646
- B.dataset.hidden = "true", G.push(B);
2727
+ for (let G = 0; G < g.value.length; G++) {
2728
+ if (w = g.value[G], w.setAttribute("tabindex", "-1"), M && G !== y.value) {
2729
+ w.dataset.hidden = "true", F.push(w);
2647
2730
  continue;
2648
2731
  }
2649
- if (x = F < g.value.length - 1 ? M.value - ke.value : M.value, c.value[F] > x) {
2650
- B.dataset.hidden = "true", G.push(B), h = !0, z = !0;
2732
+ if (A = G < g.value.length - 1 ? z.value - Ie.value : z.value, c.value[G] > A) {
2733
+ w.dataset.hidden = "true", F.push(w), h = !0, M = !0;
2651
2734
  continue;
2652
2735
  }
2653
- B.dataset.hidden = "false", B.setAttribute("tabindex", "0");
2736
+ w.dataset.hidden = "false", w.setAttribute("tabindex", "0");
2654
2737
  }
2655
- s.value = h, d.value = G, n.value || Ue(() => n.value = !0), setTimeout(() => {
2656
- Ee(), b.value = !0;
2738
+ s.value = h, u.value = F, n.value || He(() => n.value = !0), setTimeout(() => {
2739
+ qe(), b.value = !0;
2657
2740
  }, b.value ? 0 : 1e3);
2658
2741
  }
2659
2742
  }
2660
2743
  function ce(h) {
2661
2744
  l("tabChange", h), l("update:modelValue", h);
2662
2745
  }
2663
- function Ie(h) {
2664
- var z, G, K;
2665
- const B = (K = (G = (z = g.value[h]) == null ? void 0 : z.getBoundingClientRect) == null ? void 0 : G.call(z)) == null ? void 0 : K.width;
2666
- return B || (h === 0 ? c.value[0] : c.value[h] - c.value[h - 1]) || 0;
2667
- }
2668
- function Te() {
2669
- var h;
2670
- (h = g.value[S.value]) == null || h.setAttribute("aria-selected", "true"), ue();
2746
+ function Te(h) {
2747
+ var M, F, K;
2748
+ const w = (K = (F = (M = g.value[h]) == null ? void 0 : M.getBoundingClientRect) == null ? void 0 : F.call(M)) == null ? void 0 : K.width;
2749
+ return w || (h === 0 ? c.value[0] : c.value[h] - c.value[h - 1]) || 0;
2671
2750
  }
2672
2751
  function xe() {
2673
2752
  var h;
2674
- (h = y.value) == null || h.focus(), i.value = !1;
2753
+ (h = g.value[y.value]) == null || h.setAttribute("aria-selected", "true"), ue();
2675
2754
  }
2676
2755
  function Ce() {
2677
- i.value = !i.value, o.value || (o.value = !0);
2756
+ var h;
2757
+ (h = B.value) == null || h.focus(), i.value = !1;
2678
2758
  }
2679
- function Ae(h) {
2680
- var B;
2681
- i.value = !1, (B = y.value) == null || B.focus(), ce(h);
2759
+ function Ae() {
2760
+ i.value = !i.value, o.value || (o.value = !0);
2682
2761
  }
2683
2762
  function Le(h) {
2763
+ var w;
2764
+ i.value = !1, (w = B.value) == null || w.focus(), ce(h);
2765
+ }
2766
+ function Ve(h) {
2684
2767
  if (t.withBsTabs)
2685
2768
  return;
2686
- const B = h.target.closest('[role="tab"]');
2687
- if (!B || B.getAttribute("aria-selected") === "true")
2769
+ const w = h.target.closest('[role="tab"]');
2770
+ if (!w || w.getAttribute("aria-selected") === "true")
2688
2771
  return;
2689
- const x = B.getAttribute("id");
2690
- ce(x);
2772
+ const A = w.getAttribute("id");
2773
+ ce(A);
2691
2774
  }
2692
2775
  function Pe(h) {
2693
2776
  if (h.key === "ArrowLeft" || h.key === "ArrowRight") {
2694
- const B = Q.value.findIndex((x) => x.id === h.target.id);
2695
- if (B === -1)
2777
+ const w = Q.value.findIndex((A) => A.id === h.target.id);
2778
+ if (w === -1)
2696
2779
  return;
2697
- h.preventDefault(), h.stopPropagation(), h.key === "ArrowLeft" ? Ve(B) : De(B);
2780
+ h.preventDefault(), h.stopPropagation(), h.key === "ArrowLeft" ? Ee(w) : De(w);
2698
2781
  }
2699
2782
  }
2700
2783
  function De(h) {
2701
- var x;
2702
- const B = (h + 1) % Q.value.length;
2703
- (x = Q.value[B]) == null || x.focus();
2704
- }
2705
- function Ve(h) {
2706
- var x;
2707
- const B = h === 0 ? Q.value.length - 1 : h - 1;
2708
- (x = Q.value[B]) == null || x.focus();
2784
+ var A;
2785
+ const w = (h + 1) % Q.value.length;
2786
+ (A = Q.value[w]) == null || A.focus();
2709
2787
  }
2710
- function Ee() {
2711
- var K, F, ge, be;
2712
- const h = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, B = M.value;
2713
- let x = 300, z = ((F = (K = Q.value) == null ? void 0 : K[S.value]) == null ? void 0 : F.offsetLeft) || 0, G = Ie(S.value);
2714
- s.value && q.value && (z = (ge = y.value) == null ? void 0 : ge.offsetLeft, G = (be = y.value) == null ? void 0 : be.offsetWidth), x = Math.max(Math.abs((z - h) / B * 300), 100), r.value.style.setProperty("--active-line-max-width", `${B}px`), r.value.style.setProperty("--active-line-scale", `${G / B}`), r.value.style.setProperty("--active-line-offset", `${z}px`), r.value.style.setProperty("--active-line-transition-duration", `${x}ms`);
2788
+ function Ee(h) {
2789
+ var A;
2790
+ const w = h === 0 ? Q.value.length - 1 : h - 1;
2791
+ (A = Q.value[w]) == null || A.focus();
2715
2792
  }
2716
2793
  function qe() {
2717
- var h, B;
2718
- (B = (h = L.value) == null ? void 0 : h.disconnect) == null || B.call(h), L.value = null;
2794
+ var K, G, ge, be;
2795
+ const h = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, w = z.value;
2796
+ let A = 300, M = ((G = (K = Q.value) == null ? void 0 : K[y.value]) == null ? void 0 : G.offsetLeft) || 0, F = Te(y.value);
2797
+ s.value && q.value && (M = (ge = B.value) == null ? void 0 : ge.offsetLeft, F = (be = B.value) == null ? void 0 : be.offsetWidth), A = Math.max(Math.abs((M - h) / w * 300), 100), r.value.style.setProperty("--active-line-max-width", `${w}px`), r.value.style.setProperty("--active-line-scale", `${F / w}`), r.value.style.setProperty("--active-line-offset", `${M}px`), r.value.style.setProperty("--active-line-transition-duration", `${A}ms`);
2719
2798
  }
2720
2799
  function ze() {
2721
- L.value = new ResizeObserver((h) => {
2722
- for (let B of h)
2723
- M.value = B.contentBoxSize[0].inlineSize;
2724
- ue();
2725
- }), L.value.observe(r.value);
2800
+ var h, w;
2801
+ (w = (h = x.value) == null ? void 0 : h.disconnect) == null || w.call(h), x.value = null;
2726
2802
  }
2727
2803
  function Me() {
2728
- g.value = Array.from(r.value.children).filter((h) => h.role === "tab");
2804
+ x.value = new ResizeObserver((h) => {
2805
+ for (let w of h)
2806
+ z.value = w.contentBoxSize[0].inlineSize;
2807
+ ue();
2808
+ }), x.value.observe(r.value);
2729
2809
  }
2730
2810
  function Oe() {
2811
+ g.value = Array.from(r.value.children).filter((h) => h.role === "tab");
2812
+ }
2813
+ function Ne() {
2731
2814
  let h;
2732
- g.value.forEach((B, x) => {
2733
- h = B.getBoundingClientRect().width + cn, c.value.push(x ? h + c.value[x - 1] : h);
2815
+ g.value.forEach((w, A) => {
2816
+ h = w.getBoundingClientRect().width + vn, c.value.push(A ? h + c.value[A - 1] : h);
2734
2817
  });
2735
2818
  }
2736
- return E(() => t.activeTabId, Te), N(() => {
2819
+ return E(() => t.activeTabId, xe), j(() => {
2737
2820
  var h;
2738
2821
  try {
2739
- Me(), Oe(), ze(), M.value = r.value.getBoundingClientRect().width, ue(), t.withBsTabs || (h = g.value[S.value]) == null || h.setAttribute("aria-selected", "true");
2740
- } catch (B) {
2741
- console.log("tab error", B);
2822
+ Oe(), Ne(), Me(), z.value = r.value.getBoundingClientRect().width, ue(), t.withBsTabs || (h = g.value[y.value]) == null || h.setAttribute("aria-selected", "true");
2823
+ } catch (w) {
2824
+ console.log("tab error", w);
2742
2825
  }
2743
- }), ne(qe), (h, B) => (u(), f("div", {
2826
+ }), ne(ze), (h, w) => (d(), f("div", {
2744
2827
  class: "bs-tab-list",
2745
2828
  "data-component": "bs-tab-list",
2746
- id: h.$attrs.id || v(P),
2829
+ id: h.$attrs.id || v(C),
2747
2830
  ref_key: "hostEl",
2748
2831
  ref: r,
2749
2832
  role: "tablist",
2750
2833
  "data-resizing": !n.value || void 0,
2751
- onClick: Le,
2752
- "on:tabClick": B[0] || (B[0] = (x) => ce(x.detail)),
2834
+ onClick: Ve,
2835
+ "on:tabClick": w[0] || (w[0] = (A) => ce(A.detail)),
2753
2836
  onKeydown: Pe
2754
2837
  }, [
2755
- I(h.$slots, "default"),
2838
+ k(h.$slots, "default"),
2756
2839
  m("button", {
2757
- "aria-controls": v(w),
2840
+ "aria-controls": v($),
2758
2841
  "aria-expanded": i.value,
2759
2842
  class: "bs-tab-list-toggle",
2760
2843
  "data-active": q.value || void 0,
2761
2844
  "data-hidden": !s.value,
2762
2845
  id: ee.value,
2763
2846
  ref_key: "dropdownToggle",
2764
- ref: y,
2765
- onClick: Ce
2847
+ ref: B,
2848
+ onClick: Ae
2766
2849
  }, [
2767
- V(v(et), { size: "sm" }),
2768
- j(" " + T(J.value), 1)
2769
- ], 8, sn),
2770
- V(_t, {
2850
+ P(v(et), { size: "sm" }),
2851
+ R(" " + T(J.value), 1)
2852
+ ], 8, un),
2853
+ P(ea, {
2771
2854
  "anchor-id": ee.value,
2772
- "container-id": h.$attrs.id || v(P),
2855
+ "container-id": h.$attrs.id || v(C),
2773
2856
  "helper-description": e.helperDescription || void 0,
2774
2857
  "helper-text": e.helperText,
2775
- id: v(w),
2858
+ id: v($),
2776
2859
  "options-id": W.value,
2777
2860
  position: "right",
2778
2861
  preloaded: "",
2779
2862
  shown: i.value,
2780
2863
  width: "content",
2781
- onClose: xe,
2782
- "onUpdate:modelValue": Ae
2864
+ onClose: Ce,
2865
+ "onUpdate:modelValue": Le
2783
2866
  }, {
2784
- default: C(() => [
2785
- (u(!0), f(O, null, Y(d.value, (x) => (u(), A(Zt, {
2786
- key: x.id,
2787
- value: x.id,
2867
+ default: V(() => [
2868
+ (d(!0), f(O, null, Y(u.value, (A) => (d(), L(Jt, {
2869
+ key: A.id,
2870
+ value: A.id,
2788
2871
  "options-id": W.value
2789
2872
  }, {
2790
- default: C(() => [
2791
- j(T(x.textContent), 1)
2873
+ default: V(() => [
2874
+ R(T(A.textContent), 1)
2792
2875
  ]),
2793
2876
  _: 2
2794
2877
  }, 1032, ["value", "options-id"]))), 128))
2795
2878
  ]),
2796
2879
  _: 1
2797
2880
  }, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
2798
- ], 40, rn));
2881
+ ], 40, dn));
2799
2882
  }
2800
- }, fn = ["aria-labelledby", "data-active", "id"], Yn = {
2883
+ }, pn = ["aria-labelledby", "data-active", "id"], Zn = {
2801
2884
  __name: "BsTabPanel",
2802
2885
  props: {
2803
2886
  activeTabId: {
@@ -2810,18 +2893,18 @@ const Vt = {
2810
2893
  }
2811
2894
  },
2812
2895
  setup(e) {
2813
- const a = e, t = R(), l = p(() => a.activeTabId && a.activeTabId === a.tabId), n = p(() => t.id || `${a.tabId}-panel`);
2814
- return (o, d) => (u(), f("section", {
2896
+ const a = e, t = N(), l = p(() => a.activeTabId && a.activeTabId === a.tabId), n = p(() => t.id || `${a.tabId}-panel`);
2897
+ return (o, u) => (d(), f("section", {
2815
2898
  "aria-labelledby": e.tabId,
2816
2899
  "data-active": l.value,
2817
2900
  "data-component": "bs-tab-panel",
2818
2901
  id: n.value,
2819
2902
  role: "tabpanel"
2820
2903
  }, [
2821
- I(o.$slots, "default")
2822
- ], 8, fn));
2904
+ k(o.$slots, "default")
2905
+ ], 8, pn));
2823
2906
  }
2824
- }, vn = ["data-error", "id", "rows", "value"], hn = {
2907
+ }, hn = ["data-error", "id", "rows", "value"], gn = {
2825
2908
  __name: "BsTextarea",
2826
2909
  props: {
2827
2910
  error: {
@@ -2837,17 +2920,17 @@ const Vt = {
2837
2920
  emits: ["update:modelValue"],
2838
2921
  setup(e, { emit: a }) {
2839
2922
  const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
2840
- return (n, o) => (u(), f("textarea", D({
2923
+ return (n, o) => (d(), f("textarea", D({
2841
2924
  class: "bs-textarea",
2842
2925
  "data-component": "bs-textarea",
2843
2926
  "data-error": e.error,
2844
2927
  id: n.$attrs.id || e.inputId,
2845
2928
  rows: n.$attrs.rows || 6,
2846
2929
  value: e.value || e.modelValue,
2847
- onInput: o[0] || (o[0] = (d) => n.$emit("update:modelValue", d.target.value))
2848
- }, l.value), null, 16, vn));
2930
+ onInput: o[0] || (o[0] = (u) => n.$emit("update:modelValue", u.target.value))
2931
+ }, l.value), null, 16, hn));
2849
2932
  }
2850
- }, Xn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2933
+ }, Jn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2851
2934
  __name: "BsTextareaField",
2852
2935
  props: {
2853
2936
  /** 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. */
@@ -2896,7 +2979,8 @@ const Vt = {
2896
2979
  },
2897
2980
  emits: ["update:modelValue"],
2898
2981
  setup(e, { emit: a }) {
2899
- const t = e, l = R(), [n, o] = H(2), { toChild: d, toRoot: i } = Z(t, l, [
2982
+ const t = e, l = N(), [n, o] = H(2), { toChild: u, toRoot: i } = Z(t, l, [
2983
+ "aria-label",
2900
2984
  "autocomplete",
2901
2985
  "cols",
2902
2986
  "maxlength",
@@ -2906,25 +2990,25 @@ const Vt = {
2906
2990
  var g;
2907
2991
  return ((g = t.value || t.modelValue) == null ? void 0 : g.length) || 0;
2908
2992
  }), r = p(() => {
2909
- var g, y;
2910
- return ((y = (g = t.hints) == null ? void 0 : g.join) == null ? void 0 : y.call(g, `
2993
+ var g, B;
2994
+ return ((B = (g = t.hints) == null ? void 0 : g.join) == null ? void 0 : B.call(g, `
2911
2995
  `)) || t.hints;
2912
2996
  }), c = p(() => t.error && t.errorMsg || t.hint || r.value || void 0), b = p(() => t.inputId || n.value);
2913
- return (g, y) => (u(), f("div", D({ "data-component": "bs-textarea-field" }, v(i)), [
2914
- e.label || g.$slots.label ? (u(), A(_, {
2997
+ return (g, B) => (d(), f("div", D({ "data-component": "bs-textarea-field" }, v(i)), [
2998
+ e.label || g.$slots.label ? (d(), L(_, {
2915
2999
  key: 0,
2916
3000
  for: b.value,
2917
3001
  disabled: e.disabled,
2918
3002
  required: e.required
2919
3003
  }, {
2920
- default: C(() => [
2921
- I(g.$slots, "label", {}, () => [
2922
- j(T(e.label), 1)
3004
+ default: V(() => [
3005
+ k(g.$slots, "label", {}, () => [
3006
+ R(T(e.label), 1)
2923
3007
  ])
2924
3008
  ]),
2925
3009
  _: 3
2926
- }, 8, ["for", "disabled", "required"])) : $("", !0),
2927
- V(hn, D({
3010
+ }, 8, ["for", "disabled", "required"])) : S("", !0),
3011
+ P(gn, D({
2928
3012
  disabled: e.disabled,
2929
3013
  error: e.error,
2930
3014
  "hint-id": v(o),
@@ -2933,9 +3017,9 @@ const Vt = {
2933
3017
  required: e.required,
2934
3018
  rows: e.rows,
2935
3019
  value: e.value || e.modelValue,
2936
- "onUpdate:modelValue": y[0] || (y[0] = (L) => g.$emit("update:modelValue", L))
2937
- }, v(d)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
2938
- c.value || e.charMax ? (u(), A(pe, {
3020
+ "onUpdate:modelValue": B[0] || (B[0] = (x) => g.$emit("update:modelValue", x))
3021
+ }, v(u)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
3022
+ c.value || e.charMax ? (d(), L(he, {
2939
3023
  key: 1,
2940
3024
  "char-count": s.value,
2941
3025
  "char-max": e.charMax,
@@ -2944,10 +3028,10 @@ const Vt = {
2944
3028
  "error-msg": e.errorMsg,
2945
3029
  hint: e.hint || r.value,
2946
3030
  "hint-id": v(o)
2947
- }, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
3031
+ }, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : S("", !0)
2948
3032
  ], 16));
2949
3033
  }
2950
- }), pn = ["data-variant", "data-stacked"], Zn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3034
+ }), bn = ["data-variant", "data-stacked"], Qn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2951
3035
  __name: "BsToast",
2952
3036
  props: {
2953
3037
  shown: {
@@ -2996,7 +3080,7 @@ const Vt = {
2996
3080
  const t = e, l = a, { transition: n } = se(t);
2997
3081
  let o = null;
2998
3082
  ae("variant", t.variant), ae("handleDismiss", i);
2999
- const d = te("stacked", t.stacked);
3083
+ const u = te("stacked", t.stacked);
3000
3084
  function i() {
3001
3085
  o && (clearTimeout(o), o = null), l("dismiss", t.toastId);
3002
3086
  }
@@ -3005,7 +3089,7 @@ const Vt = {
3005
3089
  i();
3006
3090
  }, t.duration)), l("after-enter");
3007
3091
  }
3008
- return (r, c) => (u(), A(v(de), {
3092
+ return (r, c) => (d(), L(v(de), {
3009
3093
  shown: v(n),
3010
3094
  preloaded: e.preloaded,
3011
3095
  duration: 200,
@@ -3013,59 +3097,59 @@ const Vt = {
3013
3097
  onAfterEnter: s,
3014
3098
  onAfterLeave: c[0] || (c[0] = (b) => l("after-leave"))
3015
3099
  }, {
3016
- default: C(() => [
3100
+ default: V(() => [
3017
3101
  m("div", D({
3018
3102
  class: "bs-toast",
3019
3103
  "data-variant": e.variant,
3020
- "data-stacked": v(d) || void 0,
3104
+ "data-stacked": v(u) || void 0,
3021
3105
  "aria-role": "alert"
3022
3106
  }, r.$attrs), [
3023
- I(r.$slots, "default")
3024
- ], 16, pn)
3107
+ k(r.$slots, "default")
3108
+ ], 16, bn)
3025
3109
  ]),
3026
3110
  _: 3
3027
3111
  }, 8, ["shown", "preloaded"]));
3028
3112
  }
3029
- }), gn = ["data-stacked"], Jn = {
3113
+ }), mn = ["data-stacked"], _n = {
3030
3114
  __name: "BsToastActions",
3031
3115
  setup(e) {
3032
- const a = k(!1);
3033
- N(() => {
3116
+ const a = I(!1);
3117
+ j(() => {
3034
3118
  var n;
3035
- const l = He();
3119
+ const l = Ke();
3036
3120
  ((n = l.default) == null ? void 0 : n.call(l).length) > 2 && (a.value = !0);
3037
3121
  });
3038
3122
  const t = te("handleDismiss");
3039
- return (l, n) => (u(), f("div", {
3123
+ return (l, n) => (d(), f("div", {
3040
3124
  class: "bs-toast-actions",
3041
3125
  "data-stacked": a.value || void 0
3042
3126
  }, [
3043
- I(l.$slots, "default", {}, () => [
3044
- V(wt, {
3127
+ k(l.$slots, "default", {}, () => [
3128
+ P(kt, {
3045
3129
  size: "sm",
3046
3130
  "text-btn": "",
3047
3131
  onClick: v(t)
3048
3132
  }, {
3049
- default: C(() => [
3050
- j(" Dismiss ")
3133
+ default: V(() => [
3134
+ R(" Dismiss ")
3051
3135
  ]),
3052
3136
  _: 1
3053
3137
  }, 8, ["onClick"])
3054
3138
  ])
3055
- ], 8, gn));
3139
+ ], 8, mn));
3056
3140
  }
3057
- }, bn = (e, a) => {
3141
+ }, yn = (e, a) => {
3058
3142
  const t = e.__vccOpts || e;
3059
3143
  for (const [l, n] of a)
3060
3144
  t[l] = n;
3061
3145
  return t;
3062
- }, mn = {}, yn = { class: "bs-toast-body" };
3063
- function Bn(e, a) {
3064
- return u(), f("div", yn, [
3065
- I(e.$slots, "default")
3146
+ }, Bn = {}, $n = { class: "bs-toast-body" };
3147
+ function Sn(e, a) {
3148
+ return d(), f("div", $n, [
3149
+ k(e.$slots, "default")
3066
3150
  ]);
3067
3151
  }
3068
- const Qn = /* @__PURE__ */ bn(mn, [["render", Bn]]), $n = ["data-variant"], _n = {
3152
+ const el = /* @__PURE__ */ yn(Bn, [["render", Sn]]), wn = ["data-variant"], tl = {
3069
3153
  __name: "BsToastHeader",
3070
3154
  setup(e) {
3071
3155
  const a = te("variant"), t = p(() => {
@@ -3080,24 +3164,24 @@ const Qn = /* @__PURE__ */ bn(mn, [["render", Bn]]), $n = ["data-variant"], _n =
3080
3164
  return tt;
3081
3165
  }
3082
3166
  });
3083
- return (l, n) => (u(), f("div", {
3167
+ return (l, n) => (d(), f("div", {
3084
3168
  class: "bs-toast-header",
3085
3169
  "data-variant": v(a)
3086
3170
  }, [
3087
- (u(), A(U(t.value), { class: "bs-toast-header-icon" })),
3171
+ (d(), L(U(t.value), { class: "bs-toast-header-icon" })),
3088
3172
  m("h5", null, [
3089
- I(l.$slots, "default")
3173
+ k(l.$slots, "default")
3090
3174
  ])
3091
- ], 8, $n));
3175
+ ], 8, wn));
3092
3176
  }
3093
- }, Sn = { class: "bs-toaster" }, el = {
3177
+ }, kn = { class: "bs-toaster" }, al = {
3094
3178
  __name: "BsToaster",
3095
3179
  setup(e) {
3096
- return ae("stacked", !0), (a, t) => (u(), f("div", Sn, [
3097
- I(a.$slots, "default")
3180
+ return ae("stacked", !0), (a, t) => (d(), f("div", kn, [
3181
+ k(a.$slots, "default")
3098
3182
  ]));
3099
3183
  }
3100
- }, wn = ["data-position"], kn = ["id"], tl = {
3184
+ }, In = ["data-position"], Tn = ["id"], nl = {
3101
3185
  __name: "BsTooltip",
3102
3186
  props: {
3103
3187
  tooltipId: {
@@ -3124,7 +3208,7 @@ const Qn = /* @__PURE__ */ bn(mn, [["render", Bn]]), $n = ["data-variant"], _n =
3124
3208
  }
3125
3209
  },
3126
3210
  setup(e) {
3127
- const a = e, t = k(!1), l = k(!1), n = p(() => {
3211
+ const a = e, t = I(!1), l = I(!1), n = p(() => {
3128
3212
  let i = "bs-tooltip-text";
3129
3213
  return l.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;
3130
3214
  });
@@ -3134,69 +3218,70 @@ const Qn = /* @__PURE__ */ bn(mn, [["render", Bn]]), $n = ["data-variant"], _n =
3134
3218
  function o() {
3135
3219
  t.value = !0;
3136
3220
  }
3137
- function d() {
3221
+ function u() {
3138
3222
  t.value = !1, l.value = !1;
3139
3223
  }
3140
- return (i, s) => (u(), f("div", {
3224
+ return (i, s) => (d(), f("div", {
3141
3225
  class: "bs-tooltip",
3142
3226
  "data-position": e.position || void 0,
3143
3227
  "data-component": "bs-tooltip",
3144
3228
  onMouseenter: o,
3145
3229
  onFocusin: o,
3146
- onMouseleave: d,
3147
- onFocusout: d
3230
+ onMouseleave: u,
3231
+ onFocusout: u
3148
3232
  }, [
3149
- I(i.$slots, "default"),
3150
- e.content ? (u(), f("div", {
3233
+ k(i.$slots, "default"),
3234
+ e.content ? (d(), f("div", {
3151
3235
  key: 0,
3152
3236
  class: X(n.value),
3153
3237
  id: e.tooltipId,
3154
3238
  role: "tooltip"
3155
- }, T(e.content), 11, kn)) : $("", !0)
3156
- ], 40, wn));
3239
+ }, T(e.content), 11, Tn)) : S("", !0)
3240
+ ], 40, In));
3157
3241
  }
3158
3242
  };
3159
3243
  export {
3160
- An as BsAccordion,
3161
- Ln as BsBadge,
3244
+ Vn as BsAccordion,
3245
+ Bt as BsBadge,
3162
3246
  Pn as BsBanner,
3163
- wt as BsButton,
3247
+ kt as BsButton,
3164
3248
  Dn as BsChartBar,
3165
- Vn as BsCheckbox,
3166
- En as BsCircleButton,
3167
- Yt as BsDropdown,
3168
- Zt as BsDropdownOption,
3169
- Qt as BsDropdownOptionList,
3170
- _t as BsDropdownWithOptions,
3171
- pe as BsFieldDetails,
3172
- qn as BsIconGradientWrapper,
3173
- we as BsInput,
3174
- sa as BsInputAddon,
3175
- zn as BsInputField,
3176
- Mn as BsInputSearch,
3249
+ En as BsCheckbox,
3250
+ qn as BsCircleButton,
3251
+ Xt as BsDropdown,
3252
+ Jt as BsDropdownOption,
3253
+ _t as BsDropdownOptionList,
3254
+ ea as BsDropdownWithOptions,
3255
+ he as BsFieldDetails,
3256
+ zn as BsFilterButton,
3257
+ Mn as BsIconGradientWrapper,
3258
+ ke as BsInput,
3259
+ ua as BsInputAddon,
3260
+ On as BsInputField,
3261
+ Nn as BsInputSearch,
3177
3262
  _ as BsLabel,
3178
- On as BsLoader,
3179
- Rn as BsModal,
3180
- ba as BsOverlay,
3181
- Nn as BsPagination,
3182
- jn as BsPill,
3183
- Wn as BsProfile,
3184
- Ua as BsProfileDetails,
3185
- Ya as BsProfileImg,
3186
- Gn as BsRadio,
3187
- Qa as BsSelect,
3188
- Fn as BsSelectField,
3189
- Un as BsSwitch,
3190
- Hn as BsTab,
3191
- Kn as BsTabList,
3192
- Yn as BsTabPanel,
3193
- hn as BsTextarea,
3194
- Xn as BsTextareaField,
3195
- Zn as BsToast,
3196
- Jn as BsToastActions,
3197
- Qn as BsToastBody,
3198
- _n as BsToastHeader,
3199
- el as BsToaster,
3200
- tl as BsTooltip,
3263
+ Rn as BsLoader,
3264
+ jn as BsModal,
3265
+ ya as BsOverlay,
3266
+ Wn as BsPagination,
3267
+ Fn as BsPill,
3268
+ Gn as BsProfile,
3269
+ Ka as BsProfileDetails,
3270
+ Za as BsProfileImg,
3271
+ Un as BsRadio,
3272
+ en as BsSelect,
3273
+ Hn as BsSelectField,
3274
+ Kn as BsSwitch,
3275
+ Yn as BsTab,
3276
+ Xn as BsTabList,
3277
+ Zn as BsTabPanel,
3278
+ gn as BsTextarea,
3279
+ Jn as BsTextareaField,
3280
+ Qn as BsToast,
3281
+ _n as BsToastActions,
3282
+ el as BsToastBody,
3283
+ tl as BsToastHeader,
3284
+ al as BsToaster,
3285
+ nl as BsTooltip,
3201
3286
  de as BsTransition
3202
3287
  };