@wwtdev/bsds-components-vue3 2.2.0 → 2.3.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,52 +1,53 @@
1
- import { computed as g, ref as $, onMounted as U, onUnmounted as ae, shallowRef as tt, watch as z, defineAsyncComponent as Ee, openBlock as s, createElementBlock as p, unref as f, createElementVNode as B, renderSlot as L, createBlock as V, resolveDynamicComponent as Z, createCommentVNode as I, toDisplayString as T, createVNode as P, normalizeClass as _, useAttrs as G, mergeProps as R, withCtx as E, Fragment as N, renderList as X, createTextVNode as j, withDirectives as he, Transition as Ne, vShow as ve, provide as le, inject as oe, onBeforeMount as at, withModifiers as je, nextTick as de, Teleport as nt, isRef as lt, useSlots as ot } from "vue";
2
- import { v4 as it } from "uuid";
3
- import { BsIconCaretDown as Ye, BsIconWarning as Ve, BsIconClose as be, BsIconCaretSort as rt, BsIconSearch as st, BsIconCaretLeftDouble as dt, BsIconCaretLeft as ut, BsIconCaretRight as ct, BsIconCaretRightDouble as ft, BsIconActionEllipsis as pt, BsIconCircleExclamation as ht, BsIconThumbsUpStroke as vt } from "@wwtdev/bsds-icons-vue3";
4
- import { Chart as Ae, BarController as bt, BarElement as gt, CategoryScale as mt, LinearScale as yt, Legend as Bt, Tooltip as $t } from "chart.js";
5
- import { getSupportedCallingCodes as St, getRegionCodeForCountryCode as wt, parsePhoneNumber as Fe } from "awesome-phonenumber";
6
- const We = {
1
+ import { computed as v, ref as y, onMounted as W, onUnmounted as oe, shallowRef as st, watch as z, defineAsyncComponent as Me, openBlock as d, createElementBlock as h, unref as p, createElementVNode as B, renderSlot as E, createBlock as V, resolveDynamicComponent as J, createCommentVNode as $, toDisplayString as T, createVNode as D, normalizeClass as ae, Fragment as j, useAttrs as G, mergeProps as P, withCtx as O, toHandlers as De, onBeforeUnmount as Je, onBeforeMount as _e, createTextVNode as U, renderList as Z, withDirectives as ge, Transition as Fe, vShow as ye, provide as re, Teleport as dt, normalizeStyle as ut, inject as se, withModifiers as We, nextTick as ve, isRef as ct, useSlots as ft } from "vue";
2
+ import { v4 as et } from "uuid";
3
+ import { BsIconCaretDown as tt, BsIconWarning as Oe, BsIconClose as Be, BsIconCalendar as at, BsIconCaretSort as pt, BsIconSearch as ht, BsIconCaretLeftDouble as vt, BsIconCaretLeft as bt, BsIconCaretRight as mt, BsIconCaretRightDouble as gt, BsIconActionEllipsis as yt, BsIconCircleExclamation as Bt, BsIconThumbsUpStroke as St } from "@wwtdev/bsds-icons-vue3";
4
+ import { DatePicker as wt } from "v-calendar";
5
+ import { Chart as Ve, BarController as $t, BarElement as kt, CategoryScale as It, LinearScale as Ct, Legend as xt, Tooltip as Tt } from "chart.js";
6
+ import { getSupportedCallingCodes as At, getRegionCodeForCountryCode as Lt, parsePhoneNumber as Ge } from "awesome-phonenumber";
7
+ const He = {
7
8
  href: "a",
8
9
  linkTo: "a",
9
10
  onclick: "button",
10
11
  onClick: "button",
11
12
  type: "button"
12
13
  };
13
- function ge(e, a, t = "button") {
14
- const n = kt(e, a, t), l = g(() => {
15
- const i = n.value === "button", o = {};
16
- return i ? (o.type = a.type || "button", o.autocomplete = "off", e.disabled && (o.disabled = !0)) : e.disabled && (o["aria-disabled"] = "true", o.tabindex = "-1"), o;
17
- }), r = g(() => {
18
- const i = { ...a, ...l.value };
19
- return delete i.href, i;
20
- }), d = g(() => e.linkTo || e.href);
21
- return { rootTag: n, attrsToBind: r, hrefUrl: d };
14
+ function Se(e, a, t = "button") {
15
+ const n = Vt(e, a, t), l = v(() => {
16
+ const o = n.value === "button", i = {};
17
+ return o ? (i.type = a.type || "button", i.autocomplete = "off", e.disabled && (i.disabled = !0)) : e.disabled && (i["aria-disabled"] = "true", i.tabindex = "-1"), i;
18
+ }), r = v(() => {
19
+ const o = { ...a, ...l.value };
20
+ return delete o.href, o;
21
+ }), s = v(() => e.linkTo || e.href);
22
+ return { rootTag: n, attrsToBind: r, hrefUrl: s };
22
23
  }
23
- function kt(e, a, t) {
24
- const n = Object.keys(We).find((l) => It(e, a, l));
25
- return $(We[n] || t);
24
+ function Vt(e, a, t) {
25
+ const n = Object.keys(He).find((l) => Et(e, a, l));
26
+ return y(He[n] || t);
26
27
  }
27
- function It(e, a, t) {
28
+ function Et(e, a, t) {
28
29
  return e[t] || a[t];
29
30
  }
30
- const Ct = (e, a) => {
31
+ const Dt = (e, a) => {
31
32
  const t = (n) => {
32
33
  e.some((l) => {
33
34
  var r;
34
35
  return (r = l.value) == null ? void 0 : r.contains(n.target);
35
36
  }) || a(n);
36
37
  };
37
- U(() => {
38
+ W(() => {
38
39
  document.addEventListener("click", t);
39
- }), ae(() => {
40
+ }), oe(() => {
40
41
  document.removeEventListener("click", t);
41
42
  });
42
43
  };
43
- function me(e) {
44
- const a = g(() => e.linkTo || e.href || ""), t = g(() => {
45
- var r, d;
46
- return ((d = (r = a.value) == null ? void 0 : r.startsWith) == null ? void 0 : d.call(r, "/")) || !1;
47
- }), n = g(() => {
48
- var r, d;
49
- return t.value && ((r = e.router) == null ? void 0 : r.navigateTo) || ((d = e.router) == null ? void 0 : d.push) || null;
44
+ function we(e) {
45
+ const a = v(() => e.linkTo || e.href || ""), t = v(() => {
46
+ var r, s;
47
+ return ((s = (r = a.value) == null ? void 0 : r.startsWith) == null ? void 0 : s.call(r, "/")) || !1;
48
+ }), n = v(() => {
49
+ var r, s;
50
+ return t.value && ((r = e.router) == null ? void 0 : r.navigateTo) || ((s = e.router) == null ? void 0 : s.push) || null;
50
51
  });
51
52
  function l(r) {
52
53
  if (e.disabled) {
@@ -59,62 +60,62 @@ function me(e) {
59
60
  }
60
61
  return { onLinkClick: l };
61
62
  }
62
- function Ue(e) {
63
+ function Ke(e) {
63
64
  return e.split("-").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("");
64
65
  }
65
- const fe = (e, a) => {
66
+ const be = (e, a) => {
66
67
  function t(l) {
67
68
  if (!l)
68
69
  return null;
69
- const r = l.startsWith("bs-") ? Ue(l) : `BsIcon${Ue(l)}`;
70
- return Ee(async () => {
71
- const { [r]: d } = await import("@wwtdev/bsds-icons-vue3");
72
- return d;
70
+ const r = l.startsWith("bs-") ? Ke(l) : `BsIcon${Ke(l)}`;
71
+ return Me(async () => {
72
+ const { [r]: s } = await import("@wwtdev/bsds-icons-vue3");
73
+ return s;
73
74
  });
74
75
  }
75
- const n = tt();
76
+ const n = st();
76
77
  return n.value = t(e[a]), z(() => e[a], async (l) => n.value = t(l)), { icon: n };
77
78
  };
78
79
  function Y(e = 1) {
79
80
  const a = [];
80
81
  for (let t = 0; t < e; t++)
81
- a.push($(""));
82
- return U(() => {
83
- a.forEach((t) => t.value = `id-${it()}`);
82
+ a.push(y(""));
83
+ return W(() => {
84
+ a.forEach((t) => t.value = `id-${et()}`);
84
85
  }), a;
85
86
  }
86
- const ye = (e, a, t = void 0) => {
87
+ const $e = (e, a, t = void 0) => {
87
88
  const n = (l) => {
88
89
  e.includes(l.key) && a(l);
89
90
  };
90
- U(() => {
91
+ W(() => {
91
92
  ((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", n);
92
- }), ae(() => {
93
+ }), oe(() => {
93
94
  ((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", n);
94
95
  });
95
- }, Tt = (e, a, t) => {
96
+ }, Ot = (e, a, t) => {
96
97
  let n = null;
97
- U(() => {
98
+ W(() => {
98
99
  n = new MutationObserver(a), n.observe(e.value, t);
99
- }), ae(() => {
100
+ }), oe(() => {
100
101
  n.disconnect();
101
102
  });
102
103
  };
103
104
  function ie(e, a, t = []) {
104
- var i, o;
105
- const n = ((o = (i = e.passAttrs) == null ? void 0 : i.split) == null ? void 0 : o.call(i, ",")) || [], l = /* @__PURE__ */ new Set([...n, ...t]);
105
+ var o, i;
106
+ const n = ((i = (o = e.passAttrs) == null ? void 0 : o.split) == null ? void 0 : i.call(o, ",")) || [], l = /* @__PURE__ */ new Set([...n, ...t]);
106
107
  l.delete("");
107
- const r = $({}), d = $({});
108
+ const r = y({}), s = y({});
108
109
  for (let u in a)
109
- l.has(u) ? d.value[u] = a[u] : r.value[u] = a[u];
110
+ l.has(u) ? s.value[u] = a[u] : r.value[u] = a[u];
110
111
  return {
111
112
  toRoot: r,
112
- toChild: d
113
+ toChild: s
113
114
  };
114
115
  }
115
- const Be = (e) => {
116
- const a = $(!1);
117
- return U(() => {
116
+ const ue = (e) => {
117
+ const a = y(!1);
118
+ return W(() => {
118
119
  a.value = e.enterControlled || e.preloaded ? e.enterTrigger : e.shown;
119
120
  }), z(() => e.shown, (t) => {
120
121
  a.value = t;
@@ -123,11 +124,11 @@ const Be = (e) => {
123
124
  }), z(() => e.leaveTrigger, (t) => {
124
125
  t && (a.value = !1);
125
126
  }), { transition: a };
126
- }, xt = ["id", "data-stacked"], At = ["data-open"], Lt = ["aria-controls", "aria-expanded"], Vt = {
127
+ }, qt = ["id", "data-stacked"], Mt = ["data-open"], Pt = ["aria-controls", "aria-expanded"], zt = {
127
128
  key: 0,
128
129
  "data-position": "start",
129
130
  style: { display: "inline-flex" }
130
- }, Et = ["id", "aria-level"], Pt = ["aria-labelledby", "data-open", "id"], sl = {
131
+ }, Rt = ["id", "aria-level"], Nt = ["aria-labelledby", "data-open", "id"], xl = {
131
132
  __name: "BsAccordion",
132
133
  props: {
133
134
  controlled: { type: Boolean, default: !1 },
@@ -143,12 +144,12 @@ const Be = (e) => {
143
144
  },
144
145
  emits: ["toggled"],
145
146
  setup(e, { emit: a }) {
146
- const t = e, n = a, l = $(null), r = $(!1), { icon: d } = fe(t, "icon"), [i] = Y(), o = g(() => i.value + "-content"), u = g(() => i.value + "-title"), c = g(() => t.openItemId && t.openItemId === i.value || t.openItem === !0), h = g(() => t.controlled ? c.value : r.value);
147
- function m() {
148
- n("toggled", i.value), t.controlled || (r.value = !r.value);
147
+ const t = e, n = a, l = y(null), r = y(!1), { icon: s } = be(t, "icon"), [o] = Y(), i = v(() => o.value + "-content"), u = v(() => o.value + "-title"), c = v(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), f = v(() => t.controlled ? c.value : r.value);
148
+ function g() {
149
+ n("toggled", o.value), t.controlled || (r.value = !r.value);
149
150
  }
150
- return (b, x) => (s(), p("div", {
151
- id: f(i),
151
+ return (m, x) => (d(), h("div", {
152
+ id: p(o),
152
153
  ref_key: "containerRef",
153
154
  ref: l,
154
155
  class: "bs-accordion",
@@ -157,45 +158,45 @@ const Be = (e) => {
157
158
  }, [
158
159
  B("header", {
159
160
  part: "header",
160
- "data-open": h.value
161
+ "data-open": f.value
161
162
  }, [
162
163
  B("button", {
163
- "aria-controls": o.value,
164
- "aria-expanded": h.value,
164
+ "aria-controls": i.value,
165
+ "aria-expanded": f.value,
165
166
  type: "button",
166
- onClick: m
167
+ onClick: g
167
168
  }, [
168
- e.icon || b.$slots.icon ? (s(), p("span", Vt, [
169
- L(b.$slots, "icon", {}, () => [
170
- e.icon ? (s(), V(Z(f(d) ? f(d) : "span"), { key: 0 })) : I("", !0)
169
+ e.icon || m.$slots.icon ? (d(), h("span", zt, [
170
+ E(m.$slots, "icon", {}, () => [
171
+ e.icon ? (d(), V(J(p(s) ? p(s) : "span"), { key: 0 })) : $("", !0)
171
172
  ])
172
- ])) : I("", !0),
173
+ ])) : $("", !0),
173
174
  B("span", {
174
175
  id: u.value,
175
176
  "aria-level": e.headingLevel,
176
177
  role: "heading"
177
- }, T(e.headerText), 9, Et),
178
- P(f(Ye), {
178
+ }, T(e.headerText), 9, Rt),
179
+ D(p(tt), {
179
180
  size: "md",
180
181
  "data-position": "end"
181
182
  })
182
- ], 8, Lt)
183
- ], 8, At),
183
+ ], 8, Pt)
184
+ ], 8, Mt),
184
185
  B("div", {
185
186
  "aria-labelledby": u.value,
186
187
  class: "bs-accordion-content",
187
- "data-open": h.value,
188
- id: o.value,
188
+ "data-open": f.value,
189
+ id: i.value,
189
190
  part: "content",
190
191
  role: "region"
191
192
  }, [
192
193
  B("div", null, [
193
- L(b.$slots, "default")
194
+ E(m.$slots, "default")
194
195
  ])
195
- ], 8, Pt)
196
- ], 8, xt));
196
+ ], 8, Nt)
197
+ ], 8, qt));
197
198
  }
198
- }, Ot = ["data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant", "aria-label"], Dt = {
199
+ }, jt = ["data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant", "aria-label"], Ut = {
199
200
  __name: "BsBadge",
200
201
  props: {
201
202
  /** Pass value to set `data-badge-color`. */
@@ -242,18 +243,18 @@ const Be = (e) => {
242
243
  }
243
244
  },
244
245
  setup(e) {
245
- const a = e, t = $(null), n = g(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), l = g(() => {
246
- var o, u;
247
- const r = ((u = (o = t.value) == null ? void 0 : o.textContent) == null ? void 0 : u.trim()) || "", d = n.value ? n.value + " " : "";
248
- if (!d && !a.dot)
246
+ const a = e, t = y(null), n = v(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), l = v(() => {
247
+ var i, u;
248
+ const r = ((u = (i = t.value) == null ? void 0 : i.textContent) == null ? void 0 : u.trim()) || "", s = n.value ? n.value + " " : "";
249
+ if (!s && !a.dot)
249
250
  return r;
250
- const i = a.count !== 1 ? "s" : "";
251
- return `${r ? `${r}, ` : ""}${d}${a.label}${i}`;
251
+ const o = a.count !== 1 ? "s" : "";
252
+ return `${r ? `${r}, ` : ""}${s}${a.label}${o}`;
252
253
  });
253
- return (r, d) => (s(), p("span", {
254
+ return (r, s) => (d(), h("span", {
254
255
  ref_key: "hostRef",
255
256
  ref: t,
256
- class: _({ "bs-badge": e.dot || n.value }),
257
+ class: ae({ "bs-badge": e.dot || n.value }),
257
258
  "data-badge-color": e.color,
258
259
  "data-component": "bs-badge",
259
260
  "data-count": n.value,
@@ -262,40 +263,491 @@ const Be = (e) => {
262
263
  "data-variant": e.variant,
263
264
  "aria-label": l.value
264
265
  }, [
265
- e.variant !== "notext" ? L(r.$slots, "default", { key: 0 }) : I("", !0)
266
- ], 10, Ot));
266
+ e.variant !== "notext" ? E(r.$slots, "default", { key: 0 }) : $("", !0)
267
+ ], 10, jt));
267
268
  }
268
- }, Mt = {
269
+ }, Ft = {
269
270
  key: 0,
270
271
  role: "alert",
271
272
  class: "bs-banner"
272
- }, qt = { class: "bs-banner-content" }, zt = { class: "bs-banner-warning-icon" }, dl = {
273
+ }, Wt = { class: "bs-banner-content" }, Gt = { class: "bs-banner-warning-icon" }, Tl = {
273
274
  __name: "BsBanner",
274
275
  emits: ["dismiss"],
275
276
  setup(e, { emit: a }) {
276
- const t = a, n = $(!1);
277
+ const t = a, n = y(!1);
277
278
  function l() {
278
279
  n.value = !0, t("dismiss");
279
280
  }
280
- return (r, d) => n.value ? I("", !0) : (s(), p("div", Mt, [
281
- B("div", qt, [
282
- B("div", zt, [
283
- P(f(Ve), { size: "lg" })
281
+ return (r, s) => n.value ? $("", !0) : (d(), h("div", Ft, [
282
+ B("div", Wt, [
283
+ B("div", Gt, [
284
+ D(p(Oe), { size: "lg" })
284
285
  ]),
285
286
  B("p", null, [
286
- L(r.$slots, "default")
287
+ E(r.$slots, "default")
287
288
  ]),
288
289
  B("button", {
289
290
  type: "button",
290
291
  title: "Close Banner",
291
292
  onClick: l
292
293
  }, [
293
- P(f(be))
294
+ D(p(Be))
294
295
  ])
295
296
  ])
296
297
  ]));
297
298
  }
298
- }, Rt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
299
+ }, Ht = {
300
+ class: "bs-field-details",
301
+ "data-component": "bs-field-details"
302
+ }, Kt = ["id", "data-error"], Yt = ["data-error"], ce = {
303
+ __name: "BsFieldDetails",
304
+ props: {
305
+ /** The number of characters that have been entered by the user. */
306
+ charCount: Number,
307
+ /** Pass value to show character count and set the maximum number of characters that are allowed to be submitted by the user. */
308
+ charMax: Number,
309
+ /** Applies error styles to the helper text. */
310
+ error: {
311
+ type: Boolean,
312
+ default: !1
313
+ },
314
+ /** Pass error text. Will be shown if `error` is `true`. */
315
+ errorMsg: String,
316
+ /** Pass single helper text. */
317
+ hint: String,
318
+ /** Adds an id to associate a hint to an input. */
319
+ hintId: String
320
+ },
321
+ setup(e) {
322
+ const a = e, t = v(() => a.error && a.errorMsg || a.hint);
323
+ return (n, l) => (d(), h("div", Ht, [
324
+ t.value ? (d(), h("span", {
325
+ key: 0,
326
+ id: e.hintId,
327
+ class: "bs-hint",
328
+ "data-error": e.error
329
+ }, T(t.value), 9, Kt)) : $("", !0),
330
+ e.charMax ? (d(), h("span", {
331
+ key: 1,
332
+ "aria-description": "character count over character limit for the preceding text field",
333
+ class: "bs-character-count",
334
+ "data-error": a.charCount > a.charMax
335
+ }, T(a.charCount || "0") + " / " + T(a.charMax), 9, Yt)) : $("", !0)
336
+ ]));
337
+ }
338
+ }, Qt = ["data-disabled", "for"], Xt = /* @__PURE__ */ B("span", {
339
+ "data-required": "true",
340
+ "aria-hidden": "true"
341
+ }, " *", -1), Zt = /* @__PURE__ */ B("span", { class: "visually-hidden" }, "required", -1), ne = {
342
+ __name: "BsLabel",
343
+ props: {
344
+ disabled: { type: Boolean, default: !1 },
345
+ for: { type: String, required: !0 },
346
+ hide: { type: Boolean, default: !1 },
347
+ required: { type: Boolean, default: !1 }
348
+ },
349
+ setup(e) {
350
+ return (a, t) => (d(), h("label", {
351
+ class: ae(["bs-label", e.hide ? "visually-hidden" : ""]),
352
+ "data-component": "bs-label",
353
+ "data-disabled": e.disabled,
354
+ for: e.for
355
+ }, [
356
+ B("span", null, [
357
+ E(a.$slots, "default")
358
+ ]),
359
+ e.required ? (d(), h(j, { key: 0 }, [
360
+ Xt,
361
+ Zt
362
+ ], 64)) : $("", !0)
363
+ ], 10, Qt));
364
+ }
365
+ }, Jt = ["data-error", "id", "value"], fe = {
366
+ __name: "BsInput",
367
+ props: {
368
+ error: {
369
+ type: Boolean,
370
+ default: !1
371
+ },
372
+ hintId: String,
373
+ /** @Deprecated - Just set `id` since it will fall-through to the inner input element. */
374
+ inputId: String,
375
+ modelValue: [String, Number],
376
+ value: [String, Number]
377
+ },
378
+ emits: ["update:modelValue"],
379
+ setup(e, { emit: a }) {
380
+ const t = e, n = a, l = G(), r = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
381
+ function s(o) {
382
+ const i = l.type === "number" ? parseInt(o.target.value) : o.target.value;
383
+ n("update:modelValue", i);
384
+ }
385
+ return (o, i) => (d(), h("input", P({
386
+ class: "bs-input",
387
+ "data-component": "bs-input",
388
+ "data-error": e.error,
389
+ id: o.$attrs.id || e.inputId,
390
+ value: e.value || e.modelValue,
391
+ onInput: s
392
+ }, r.value), null, 16, Jt));
393
+ }
394
+ }, _t = ["data-disabled", "data-error", "data-variant", "data-multifocus"], ke = {
395
+ __name: "BsInputAddon",
396
+ props: {
397
+ disabled: { type: Boolean, default: !1 },
398
+ error: { type: Boolean, default: !1 },
399
+ multifocus: { type: Boolean, default: !1 },
400
+ variant: { type: String, validator: (e) => e === "inner-bordered" }
401
+ },
402
+ setup(e) {
403
+ return (a, t) => (d(), h("div", {
404
+ class: "bs-input-addon",
405
+ "data-component": "bs-input-addon",
406
+ "data-disabled": e.disabled,
407
+ "data-error": e.error,
408
+ "data-variant": e.variant,
409
+ "data-multifocus": e.multifocus
410
+ }, [
411
+ E(a.$slots, "default")
412
+ ], 8, _t));
413
+ }
414
+ }, ea = {
415
+ __name: "BsInputDateSingle",
416
+ props: {
417
+ disabled: {
418
+ type: Boolean,
419
+ default: !1
420
+ },
421
+ error: {
422
+ type: Boolean,
423
+ default: !1
424
+ },
425
+ inputId: {
426
+ type: String,
427
+ required: !0
428
+ },
429
+ listeners: {
430
+ type: Object,
431
+ default: () => ({})
432
+ },
433
+ modelValue: {
434
+ type: [Date, Object, String],
435
+ default: null
436
+ },
437
+ placeholder: {
438
+ type: String,
439
+ default: "Choose your date"
440
+ },
441
+ required: {
442
+ type: Boolean,
443
+ default: !1
444
+ }
445
+ },
446
+ setup(e) {
447
+ return (a, t) => (d(), V(ke, {
448
+ disabled: e.disabled,
449
+ error: e.error
450
+ }, {
451
+ default: O(() => [
452
+ D(p(at)),
453
+ D(fe, P({
454
+ "data-autowidth": "",
455
+ disabled: e.disabled,
456
+ id: e.inputId,
457
+ "model-value": e.modelValue,
458
+ placeholder: e.placeholder,
459
+ required: e.required
460
+ }, De(e.listeners)), null, 16, ["disabled", "id", "model-value", "placeholder", "required"])
461
+ ]),
462
+ _: 1
463
+ }, 8, ["disabled", "error"]));
464
+ }
465
+ };
466
+ function qe(e, a, t) {
467
+ let n;
468
+ return function() {
469
+ let l = this, r = arguments;
470
+ clearTimeout(n), t && !n && e.apply(l, r), n = setTimeout(function() {
471
+ n = null, t || e.apply(l, r);
472
+ }, a);
473
+ };
474
+ }
475
+ const ta = ["disabled", "id", "model-value"], aa = ["disabled", "id", "model-value"], na = {
476
+ __name: "BsInputDateRange",
477
+ props: {
478
+ disabled: {
479
+ type: Boolean,
480
+ default: !1
481
+ },
482
+ error: {
483
+ type: Boolean,
484
+ default: !1
485
+ },
486
+ inputId: {
487
+ type: String,
488
+ required: !0
489
+ },
490
+ inputValue: {
491
+ type: Object,
492
+ default: null
493
+ },
494
+ inputValueFmt: {
495
+ type: String
496
+ },
497
+ listeners: {
498
+ type: Object,
499
+ default: () => ({})
500
+ },
501
+ placeholder: {
502
+ type: String,
503
+ default: "Choose your date"
504
+ },
505
+ required: {
506
+ type: Boolean,
507
+ default: !1
508
+ }
509
+ },
510
+ emits: ["ui-focusin", "ui-input"],
511
+ setup(e, { emit: a }) {
512
+ const t = a, n = y(null), l = y(null);
513
+ function r(u) {
514
+ const c = new Event("change", { bubbles: !0, cancelable: !0 });
515
+ u.dispatchEvent(c);
516
+ }
517
+ function s(u) {
518
+ const { value: c } = u.target, [f, g] = c.split(/ to | - /);
519
+ n.value.value = f || "", l.value.value = g || "", r(n.value), r(l.value);
520
+ }
521
+ const o = qe(s, 1e3);
522
+ function i(u) {
523
+ t("ui-input"), o(u);
524
+ }
525
+ return (u, c) => (d(), V(ke, {
526
+ disabled: e.disabled,
527
+ error: e.error
528
+ }, {
529
+ default: O(() => [
530
+ D(p(at)),
531
+ D(fe, {
532
+ "data-autowidth": "",
533
+ disabled: e.disabled,
534
+ id: e.inputId,
535
+ "model-value": e.inputValueFmt,
536
+ placeholder: e.placeholder,
537
+ required: e.required,
538
+ onFocusin: c[0] || (c[0] = (f) => u.$emit("ui-focusin")),
539
+ onInput: i,
540
+ onChange: s
541
+ }, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
542
+ B("input", P({
543
+ ref_key: "hiddenStart",
544
+ ref: n,
545
+ type: "hidden",
546
+ disabled: e.disabled,
547
+ id: `${e.inputId}-start`,
548
+ "model-value": e.inputValue.start
549
+ }, De(e.listeners.start, !0)), null, 16, ta),
550
+ B("input", P({
551
+ ref_key: "hiddenEnd",
552
+ ref: l,
553
+ type: "hidden",
554
+ disabled: e.disabled,
555
+ id: `${e.inputId}-end`,
556
+ "model-value": e.inputValue.end
557
+ }, De(e.listeners.end, !0)), null, 16, aa)
558
+ ]),
559
+ _: 1
560
+ }, 8, ["disabled", "error"]));
561
+ }
562
+ };
563
+ function la(e) {
564
+ var a, t;
565
+ return ((t = (a = e == null ? void 0 : e.classList) == null ? void 0 : a.contains) == null ? void 0 : t.call(a, "vc-arrow")) && (e.classList.contains("vc-prev") || e.classList.contains("vc-next"));
566
+ }
567
+ function oa(e) {
568
+ return e === " " || e === "Spacebar" || e === "Enter";
569
+ }
570
+ function Ye(e) {
571
+ la(e == null ? void 0 : e.target) && oa(e == null ? void 0 : e.key) && e.preventDefault();
572
+ }
573
+ function ia(e) {
574
+ let a;
575
+ W(() => {
576
+ var t, n, l;
577
+ a = (t = e == null ? void 0 : e.value) == null ? void 0 : t.popoverRef, (l = (n = a == null ? void 0 : a.$el) == null ? void 0 : n.addEventListener) == null || l.call(n, "keydown", Ye);
578
+ }), Je(() => {
579
+ var t, n;
580
+ (n = (t = a == null ? void 0 : a.$el) == null ? void 0 : t.removeEventListener) == null || n.call(t, "keydown", Ye), a = null;
581
+ });
582
+ }
583
+ function Qe(e, a, t = []) {
584
+ let n;
585
+ _e(() => {
586
+ n = window.matchMedia(e), n.addEventListener("change", a), a(n);
587
+ }), Je(() => {
588
+ n.removeEventListener("change", a), n = null;
589
+ }), t.length && z(t, () => a(n));
590
+ }
591
+ const ra = ["data-range"], Xe = "(min-width: 752px)", Al = {
592
+ __name: "BsCalendar",
593
+ props: {
594
+ disabled: {
595
+ type: Boolean,
596
+ default: !1
597
+ },
598
+ /** Date[] */
599
+ disabledDates: {
600
+ type: [Array],
601
+ default: null
602
+ },
603
+ error: {
604
+ type: Boolean,
605
+ default: !1
606
+ },
607
+ errorMsg: {
608
+ type: String
609
+ },
610
+ hint: {
611
+ type: String
612
+ },
613
+ inputId: {
614
+ type: String
615
+ },
616
+ isRange: {
617
+ type: Boolean,
618
+ default: !1
619
+ },
620
+ label: {
621
+ type: String
622
+ },
623
+ maxDate: {
624
+ type: Date
625
+ },
626
+ minDate: {
627
+ type: Date
628
+ },
629
+ /** Date | { start: Date, end: Date } */
630
+ modelValue: {
631
+ type: [Date, Object],
632
+ default: null
633
+ },
634
+ placeholder: {
635
+ type: String,
636
+ default: "Choose your date"
637
+ },
638
+ required: {
639
+ type: Boolean,
640
+ default: !1
641
+ },
642
+ step: {
643
+ type: Number,
644
+ default: 1,
645
+ validator: (e) => e === 1 || e === 2
646
+ },
647
+ variant: {
648
+ type: String,
649
+ validator: (e) => ["", "2-col"].includes(e)
650
+ }
651
+ },
652
+ emits: ["update:modelValue"],
653
+ setup(e, { emit: a }) {
654
+ const t = e, n = y(null), l = y(1), r = y(null), [s, o] = Y(2), i = y(1), { toRoot: u, toChild: c } = ie({}, G(), [
655
+ "attributes",
656
+ "expanded",
657
+ "first-day-of-week",
658
+ "locale",
659
+ "masks",
660
+ "rows",
661
+ "trim-weeks"
662
+ ]), f = v(() => t.inputId || s.value), g = v(() => ({ range: t.isRange })), m = v(() => !!(t.error && t.errorMsg || t.hint)), x = v(() => t.step), k = v(() => t.variant);
663
+ ia(n), Qe(
664
+ Xe,
665
+ (b) => l.value = b != null && b.matches && k.value == "2-col" ? 2 : 1,
666
+ [k]
667
+ ), Qe(
668
+ Xe,
669
+ (b) => i.value = b != null && b.matches && k.value == "2-col" ? x.value : 1,
670
+ [x, k]
671
+ );
672
+ function w(b) {
673
+ return t.isRange && b.start && b.end ? `${b.start} to ${b.end}` : !t.isRange && b ? b : "";
674
+ }
675
+ function I(b) {
676
+ !t.isRange || r.value.contains(b.relatedTarget) || n.value.hidePopover();
677
+ }
678
+ return (b, C) => (d(), h("div", P({
679
+ ref_key: "container",
680
+ ref: r,
681
+ class: "bs-calendar",
682
+ "data-range": e.isRange,
683
+ onFocusout: I
684
+ }, p(u)), [
685
+ e.label || b.$slots.label ? (d(), V(ne, {
686
+ key: 0,
687
+ for: f.value,
688
+ disabled: e.disabled,
689
+ required: e.required
690
+ }, {
691
+ default: O(() => [
692
+ E(b.$slots, "label", {}, () => [
693
+ U(T(e.label), 1)
694
+ ])
695
+ ]),
696
+ _: 3
697
+ }, 8, ["for", "disabled", "required"])) : $("", !0),
698
+ D(p(wt), P({
699
+ ref_key: "calendar",
700
+ ref: n,
701
+ columns: l.value,
702
+ "disabled-dates": e.disabledDates,
703
+ "max-date": e.maxDate,
704
+ "min-date": e.minDate,
705
+ mode: "date",
706
+ "model-value": e.modelValue,
707
+ "model-modifiers": g.value,
708
+ popover: { visibility: "focus" },
709
+ rows: 1,
710
+ step: i.value,
711
+ "onUpdate:modelValue": C[0] || (C[0] = (q) => b.$emit("update:modelValue", q))
712
+ }, p(c)), {
713
+ default: O(({ inputValue: q, inputEvents: A, showPopover: M }) => [
714
+ e.isRange ? (d(), V(na, {
715
+ key: 1,
716
+ disabled: e.disabled,
717
+ error: e.error,
718
+ "hidden-end-ref": b.inputEnd,
719
+ "hidden-start-ref": b.inputStart,
720
+ "input-id": f.value,
721
+ "input-value": q,
722
+ "input-value-fmt": w(q),
723
+ listeners: A,
724
+ placeholder: e.placeholder,
725
+ required: e.required,
726
+ onUiFocusin: M,
727
+ onUiInput: M
728
+ }, null, 8, ["disabled", "error", "hidden-end-ref", "hidden-start-ref", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), V(ea, {
729
+ key: 0,
730
+ disabled: e.disabled,
731
+ error: e.error,
732
+ "input-id": f.value,
733
+ listeners: A,
734
+ "model-value": w(q),
735
+ placeholder: e.placeholder,
736
+ required: e.required
737
+ }, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
738
+ ]),
739
+ _: 1
740
+ }, 16, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
741
+ m.value ? (d(), V(ce, {
742
+ key: 1,
743
+ error: e.error,
744
+ "error-msg": e.errorMsg,
745
+ hint: e.hint,
746
+ "hint-id": p(o)
747
+ }, null, 8, ["error", "error-msg", "hint", "hint-id"])) : $("", !0)
748
+ ], 16, ra));
749
+ }
750
+ }, sa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
299
751
  __name: "BsButton",
300
752
  props: {
301
753
  variant: { type: String },
@@ -309,23 +761,23 @@ const Be = (e) => {
309
761
  size: { type: String, validator: (e) => ["sm", "xs", "xxs"].includes(e) }
310
762
  },
311
763
  setup(e) {
312
- const a = e, t = G(), { rootTag: n, attrsToBind: l, hrefUrl: r } = ge(a, t), { onLinkClick: d } = me(a);
313
- return (i, o) => (s(), V(Z(f(n)), R({
764
+ const a = e, t = G(), { rootTag: n, attrsToBind: l, hrefUrl: r } = Se(a, t), { onLinkClick: s } = we(a);
765
+ return (o, i) => (d(), V(J(p(n)), P({
314
766
  class: "bs-button",
315
767
  "data-component": "bs-button",
316
768
  "data-ghost": e.ghostBtn,
317
769
  "data-size": e.size,
318
770
  "data-text": e.textBtn,
319
771
  "data-variant": e.variant,
320
- ".href": f(r)
321
- }, f(l), { onClick: f(d) }), {
322
- default: E(() => [
323
- L(i.$slots, "default")
772
+ ".href": p(r)
773
+ }, p(l), { onClick: p(s) }), {
774
+ default: O(() => [
775
+ E(o.$slots, "default")
324
776
  ]),
325
777
  _: 3
326
778
  }, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
327
779
  }
328
- }), Nt = { "data-component": "bs-chart-table" }, jt = ["summary"], Ft = ["colspan"], Wt = /* @__PURE__ */ B("th", { scope: "col" }, " Dataset ", -1), Ut = { scope: "row" }, Gt = {
780
+ }), da = { "data-component": "bs-chart-table" }, ua = ["summary"], ca = ["colspan"], fa = /* @__PURE__ */ B("th", { scope: "col" }, " Dataset ", -1), pa = { scope: "row" }, ha = {
329
781
  __name: "BsChartTable",
330
782
  props: {
331
783
  data: {
@@ -344,52 +796,52 @@ const Be = (e) => {
344
796
  setup(e) {
345
797
  return (a, t) => {
346
798
  var n;
347
- return s(), p("div", Nt, [
799
+ return d(), h("div", da, [
348
800
  B("table", { summary: e.tableTitle }, [
349
801
  B("thead", null, [
350
802
  B("tr", null, [
351
803
  B("th", {
352
804
  colspan: ((n = e.dataIdxLabels) == null ? void 0 : n.length) + 1
353
- }, T(e.tableTitle), 9, Ft)
805
+ }, T(e.tableTitle), 9, ca)
354
806
  ]),
355
807
  B("tr", null, [
356
- Wt,
357
- (s(!0), p(N, null, X(e.dataIdxLabels, (l) => (s(), p("th", {
808
+ fa,
809
+ (d(!0), h(j, null, Z(e.dataIdxLabels, (l) => (d(), h("th", {
358
810
  key: l,
359
811
  scope: "col"
360
812
  }, T(l), 1))), 128))
361
813
  ])
362
814
  ]),
363
815
  B("tbody", null, [
364
- (s(!0), p(N, null, X(e.data, (l) => (s(), p("tr", {
816
+ (d(!0), h(j, null, Z(e.data, (l) => (d(), h("tr", {
365
817
  key: l.label
366
818
  }, [
367
- B("th", Ut, T(l.label), 1),
368
- (s(!0), p(N, null, X(l.data, (r, d) => (s(), p("td", {
369
- key: `${r}${d}`
819
+ B("th", pa, T(l.label), 1),
820
+ (d(!0), h(j, null, Z(l.data, (r, s) => (d(), h("td", {
821
+ key: `${r}${s}`
370
822
  }, T(r), 1))), 128))
371
823
  ]))), 128))
372
824
  ])
373
- ], 8, jt)
825
+ ], 8, ua)
374
826
  ]);
375
827
  };
376
828
  }
377
- }, Ht = (e) => ({
829
+ }, va = (e) => ({
378
830
  id: "htmlLegend",
379
831
  afterUpdate(a) {
380
832
  e.innerHTML = "", e.style.setProperty("--legend-padding", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((n) => {
381
833
  const l = document.createElement("li");
382
834
  l.onclick = () => {
383
- const { type: o } = a.config._config;
384
- o === "pie" || o === "doughnut" ? a.toggleDataVisibility(n.index) : a.setDatasetVisibility(n.datasetIndex, !a.isDatasetVisible(n.datasetIndex)), a.update();
835
+ const { type: i } = a.config._config;
836
+ i === "pie" || i === "doughnut" ? a.toggleDataVisibility(n.index) : a.setDatasetVisibility(n.datasetIndex, !a.isDatasetVisible(n.datasetIndex)), a.update();
385
837
  };
386
838
  const r = document.createElement("span");
387
839
  r.style.setProperty("--item-box-fill", n.fillStyle), r.style.setProperty("--item-box-stroke", n.strokeStyle);
388
- const d = document.createTextNode(n.text), i = document.createElement("p");
389
- i.style.setProperty("--item-text-color", n.fontColor), i.style.setProperty("--item-text-decoration", n.hidden ? "line-through" : "none"), i.appendChild(d), l.appendChild(r), l.appendChild(i), e.appendChild(l);
840
+ const s = document.createTextNode(n.text), o = document.createElement("p");
841
+ o.style.setProperty("--item-text-color", n.fontColor), o.style.setProperty("--item-text-decoration", n.hidden ? "line-through" : "none"), o.appendChild(s), l.appendChild(r), l.appendChild(o), e.appendChild(l);
390
842
  });
391
843
  }
392
- }), Kt = ({ type: e, datasets: a, labels: t, tooltips: n }) => ({
844
+ }), ba = ({ type: e, datasets: a, labels: t, tooltips: n }) => ({
393
845
  type: e,
394
846
  data: {
395
847
  datasets: a,
@@ -408,7 +860,7 @@ const Be = (e) => {
408
860
  responsive: !0
409
861
  }
410
862
  });
411
- function Yt(e) {
863
+ function ma(e) {
412
864
  const a = [
413
865
  "rgba(209, 26, 111, 1)",
414
866
  "rgba(130, 18, 196, 1)",
@@ -421,19 +873,10 @@ function Yt(e) {
421
873
  ], t = a[e % a.length];
422
874
  return e >= a.length ? t.replace("1)", "0.5)") : t;
423
875
  }
424
- function Ge(e, a, t) {
425
- let n;
426
- return function() {
427
- let l = this, r = arguments;
428
- clearTimeout(n), t && !n && e.apply(l, r), n = setTimeout(function() {
429
- n = null, t || e.apply(l, r);
430
- }, a);
431
- };
432
- }
433
- const Xt = {
876
+ const ga = {
434
877
  class: "bs-chart-bar",
435
878
  "data-component": "bs-chart-bar"
436
- }, Zt = ["aria-label"], Jt = ["data-hidden"], ul = {
879
+ }, ya = ["aria-label"], Ba = ["data-hidden"], Ll = {
437
880
  __name: "BsChartBar",
438
881
  props: {
439
882
  chartTitle: {
@@ -487,16 +930,16 @@ const Xt = {
487
930
  }
488
931
  },
489
932
  setup(e) {
490
- const a = e, t = $(null), n = $(null);
933
+ const a = e, t = y(null), n = y(null);
491
934
  let l;
492
- const r = g(() => {
935
+ const r = v(() => {
493
936
  const c = {
494
- datasets: d.value,
937
+ datasets: s.value,
495
938
  labels: a.dataIdxLabels,
496
939
  type: "bar",
497
940
  tooltips: a.showTooltips
498
- }, h = Kt(c);
499
- return h.plugins = [Ht(n.value)], h.options.scales = {
941
+ }, f = ba(c);
942
+ return f.plugins = [va(n.value)], f.options.scales = {
500
943
  x: {
501
944
  grid: {
502
945
  display: a.showXGrid
@@ -517,33 +960,33 @@ const Xt = {
517
960
  text: a.yLabel
518
961
  }
519
962
  }
520
- }, h;
521
- }), d = g(() => a.data.map((c, h) => ({
963
+ }, f;
964
+ }), s = v(() => a.data.map((c, f) => ({
522
965
  ...c,
523
- backgroundColor: Yt(h),
966
+ backgroundColor: ma(f),
524
967
  categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
525
- }))), i = g(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), o = Ge(function(c, h) {
526
- !l || c === h || (l.options = r.value.options, l.update());
527
- }, 100), u = Ge(function() {
968
+ }))), o = v(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), i = qe(function(c, f) {
969
+ !l || c === f || (l.options = r.value.options, l.update());
970
+ }, 100), u = qe(function() {
528
971
  l && (l.data = r.value.data, l.update());
529
972
  }, 100);
530
- return U(() => {
531
- Ae.register(bt, gt, mt, yt, Bt, $t), Ae.defaults.font.family = "'Roobert', sans-serif", l = new Ae(t.value, r.value);
532
- }), z(() => a.showLegend, o), z(() => a.showTooltips, o), z(() => a.showXGrid, o), z(() => a.showYGrid, o), z(() => a.stacked, o), z(() => a.xLabel, o), z(() => a.yLabel, o), z(() => a.data, u), z(() => a.dataIdxLabels, u), (c, h) => (s(), p("div", Xt, [
973
+ return W(() => {
974
+ Ve.register($t, kt, It, Ct, xt, Tt), Ve.defaults.font.family = "'Roobert', sans-serif", l = new Ve(t.value, r.value);
975
+ }), z(() => a.showLegend, i), z(() => a.showTooltips, i), z(() => a.showXGrid, i), z(() => a.showYGrid, i), z(() => a.stacked, i), z(() => a.xLabel, i), z(() => a.yLabel, i), z(() => a.data, u), z(() => a.dataIdxLabels, u), (c, f) => (d(), h("div", ga, [
533
976
  B("figure", null, [
534
977
  B("div", null, [
535
978
  B("canvas", {
536
- "aria-label": i.value,
979
+ "aria-label": o.value,
537
980
  ref_key: "canvas",
538
981
  ref: t,
539
982
  role: "img"
540
- }, null, 8, Zt)
983
+ }, null, 8, ya)
541
984
  ]),
542
985
  B("div", null, [
543
- P(Gt, {
986
+ D(ha, {
544
987
  data: e.data,
545
988
  "data-idx-labels": e.dataIdxLabels,
546
- "table-title": i.value
989
+ "table-title": o.value
547
990
  }, null, 8, ["data", "data-idx-labels", "table-title"]),
548
991
  B("figcaption", {
549
992
  "data-hidden": !e.showLegend
@@ -552,39 +995,12 @@ const Xt = {
552
995
  ref_key: "legendList",
553
996
  ref: n
554
997
  }, null, 512)
555
- ], 8, Jt)
998
+ ], 8, Ba)
556
999
  ])
557
1000
  ])
558
1001
  ]));
559
1002
  }
560
- }, Qt = ["data-disabled", "for"], _t = /* @__PURE__ */ B("span", {
561
- "data-required": "true",
562
- "aria-hidden": "true"
563
- }, " *", -1), ea = /* @__PURE__ */ B("span", { class: "visually-hidden" }, "required", -1), ne = {
564
- __name: "BsLabel",
565
- props: {
566
- disabled: { type: Boolean, default: !1 },
567
- for: { type: String, required: !0 },
568
- hide: { type: Boolean, default: !1 },
569
- required: { type: Boolean, default: !1 }
570
- },
571
- setup(e) {
572
- return (a, t) => (s(), p("label", {
573
- class: _(["bs-label", e.hide ? "visually-hidden" : ""]),
574
- "data-component": "bs-label",
575
- "data-disabled": e.disabled,
576
- for: e.for
577
- }, [
578
- B("span", null, [
579
- L(a.$slots, "default")
580
- ]),
581
- e.required ? (s(), p(N, { key: 0 }, [
582
- _t,
583
- ea
584
- ], 64)) : I("", !0)
585
- ], 10, Qt));
586
- }
587
- }, ta = ["data-size"], aa = ["checked", "data-error", "disabled", "id", "required", "value"], na = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1003
+ }, Sa = ["data-size"], wa = ["checked", "data-error", "disabled", "id", "required", "value"], $a = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
588
1004
  __name: "BsCheckbox",
589
1005
  props: {
590
1006
  /** Sets the label. */
@@ -642,29 +1058,29 @@ const Xt = {
642
1058
  },
643
1059
  emits: ["update:modelValue"],
644
1060
  setup(e, { emit: a }) {
645
- const t = e, n = a, l = G(), [r] = Y(), { toChild: d, toRoot: i } = ie(t, l, ["aria-label", "name", "value"]), o = $(null), u = g(() => t.inputId || r.value), c = g(() => t.checked || m.value), h = g(() => Array.isArray(t.modelValue) && t.value), m = g(() => h.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
646
- function b() {
647
- o.value && (o.value.indeterminate = t.checkedPartially && !c.value);
1061
+ const t = e, n = a, l = G(), [r] = Y(), { toChild: s, toRoot: o } = ie(t, l, ["aria-label", "name", "value"]), i = y(null), u = v(() => t.inputId || r.value), c = v(() => t.checked || g.value), f = v(() => Array.isArray(t.modelValue) && t.value), g = v(() => f.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
1062
+ function m() {
1063
+ i.value && (i.value.indeterminate = t.checkedPartially && !c.value);
648
1064
  }
649
- function x(w) {
650
- n("update:modelValue", w);
1065
+ function x(I) {
1066
+ n("update:modelValue", I);
651
1067
  }
652
- function C(w) {
653
- const v = [...t.modelValue];
654
- w ? v.push(t.value) : v.splice(v.indexOf(t.value), 1), n("update:modelValue", v);
1068
+ function k(I) {
1069
+ const b = [...t.modelValue];
1070
+ I ? b.push(t.value) : b.splice(b.indexOf(t.value), 1), n("update:modelValue", b);
655
1071
  }
656
- function S(w) {
657
- const { checked: v } = w.target;
658
- h.value ? C(v) : x(v);
1072
+ function w(I) {
1073
+ const { checked: b } = I.target;
1074
+ f.value ? k(b) : x(b);
659
1075
  }
660
- return z(c, b), z(() => t.checkedPartially, b), (w, v) => (s(), p("div", R({
1076
+ return z(c, m), z(() => t.checkedPartially, m), (I, b) => (d(), h("div", P({
661
1077
  class: "bs-boolean",
662
1078
  "data-component": "bs-checkbox",
663
1079
  "data-size": e.size
664
- }, f(i)), [
665
- B("input", R({
1080
+ }, p(o)), [
1081
+ B("input", P({
666
1082
  ref_key: "inputEl",
667
- ref: o,
1083
+ ref: i,
668
1084
  checked: c.value,
669
1085
  "data-error": e.error,
670
1086
  disabled: e.disabled,
@@ -672,24 +1088,24 @@ const Xt = {
672
1088
  required: e.required,
673
1089
  value: e.value || "on",
674
1090
  type: "checkbox",
675
- onChange: S
676
- }, f(d)), null, 16, aa),
677
- e.label || w.$slots.label ? (s(), V(ne, {
1091
+ onChange: w
1092
+ }, p(s)), null, 16, wa),
1093
+ e.label || I.$slots.label ? (d(), V(ne, {
678
1094
  key: 0,
679
1095
  for: u.value,
680
1096
  disabled: e.disabled,
681
1097
  required: e.required
682
1098
  }, {
683
- default: E(() => [
684
- L(w.$slots, "label", {}, () => [
685
- j(T(e.label), 1)
1099
+ default: O(() => [
1100
+ E(I.$slots, "label", {}, () => [
1101
+ U(T(e.label), 1)
686
1102
  ])
687
1103
  ]),
688
1104
  _: 3
689
- }, 8, ["for", "disabled", "required"])) : I("", !0)
690
- ], 16, ta));
1105
+ }, 8, ["for", "disabled", "required"])) : $("", !0)
1106
+ ], 16, Sa));
691
1107
  }
692
- }), la = { key: 0 }, oa = { class: "bs-circle-button-icon" }, ia = { key: 1 }, cl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1108
+ }), ka = { key: 0 }, Ia = { class: "bs-circle-button-icon" }, Ca = { key: 1 }, Vl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
693
1109
  __name: "BsCircleButton",
694
1110
  props: {
695
1111
  disabled: {
@@ -735,32 +1151,32 @@ const Xt = {
735
1151
  }
736
1152
  },
737
1153
  setup(e) {
738
- const a = e, t = G(), { rootTag: n, attrsToBind: l, hrefUrl: r } = ge(a, t), { icon: d } = fe(a, "icon"), { onLinkClick: i } = me(a), o = g(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), u = g(() => {
1154
+ const a = e, t = G(), { rootTag: n, attrsToBind: l, hrefUrl: r } = Se(a, t), { icon: s } = be(a, "icon"), { onLinkClick: o } = we(a), i = v(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), u = v(() => {
739
1155
  if (a.hoverEffect)
740
1156
  return a.iconPosition;
741
- }), c = g(() => a.textBtn && a.iconPosition !== "left"), h = g(() => a.textBtn && a.iconPosition === "left");
742
- return (m, b) => (s(), V(Z(f(n)), R({
1157
+ }), c = v(() => a.textBtn && a.iconPosition !== "left"), f = v(() => a.textBtn && a.iconPosition === "left");
1158
+ return (g, m) => (d(), V(J(p(n)), P({
743
1159
  class: "bs-circle-button",
744
1160
  "data-disabled": e.disabled,
745
1161
  "data-direction": u.value,
746
1162
  "data-ghost": e.ghostBtn,
747
1163
  "data-size": e.size,
748
1164
  "data-text": e.textBtn,
749
- ".href": f(r)
750
- }, { ...f(l), ...o.value }, { onClick: f(i) }), {
751
- default: E(() => [
752
- c.value ? (s(), p("span", la, T(e.label), 1)) : I("", !0),
753
- B("span", oa, [
754
- L(m.$slots, "icon", {}, () => [
755
- (s(), V(Z(f(d)), { size: e.size }, null, 8, ["size"]))
1165
+ ".href": p(r)
1166
+ }, { ...p(l), ...i.value }, { onClick: p(o) }), {
1167
+ default: O(() => [
1168
+ c.value ? (d(), h("span", ka, T(e.label), 1)) : $("", !0),
1169
+ B("span", Ia, [
1170
+ E(g.$slots, "icon", {}, () => [
1171
+ (d(), V(J(p(s)), { size: e.size }, null, 8, ["size"]))
756
1172
  ])
757
1173
  ]),
758
- h.value ? (s(), p("span", ia, T(e.label), 1)) : I("", !0)
1174
+ f.value ? (d(), h("span", Ca, T(e.label), 1)) : $("", !0)
759
1175
  ]),
760
1176
  _: 3
761
1177
  }, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", ".href", "onClick"]));
762
1178
  }
763
- }), $e = {
1179
+ }), Ie = {
764
1180
  __name: "BsTransition",
765
1181
  props: {
766
1182
  shown: {
@@ -804,35 +1220,35 @@ const Xt = {
804
1220
  ],
805
1221
  setup(e, { emit: a }) {
806
1222
  const t = e, n = a, l = [];
807
- function r(o, u) {
808
- const { duration: c, enterClass: h, enterAttribute: m } = t;
1223
+ function r(i, u) {
1224
+ const { duration: c, enterClass: f, enterAttribute: g } = t;
809
1225
  l.push(setTimeout(() => {
810
- h && o.classList.add(h), m && o.setAttribute(m, ""), l.push(setTimeout(() => {
1226
+ f && i.classList.add(f), g && i.setAttribute(g, ""), l.push(setTimeout(() => {
811
1227
  u();
812
- }, c)), n("enter", o);
1228
+ }, c)), n("enter", i);
813
1229
  }));
814
1230
  }
815
- function d(o, u) {
1231
+ function s(i, u) {
816
1232
  const {
817
1233
  duration: c,
818
- enterClass: h,
819
- enterAttribute: m,
820
- leaveClass: b,
1234
+ enterClass: f,
1235
+ enterAttribute: g,
1236
+ leaveClass: m,
821
1237
  leaveAttribute: x
822
1238
  } = t;
823
- o.classList.remove(h), o.removeAttribute(m), b && o.classList.add(b), x && o.setAttribute(x, ""), l.push(setTimeout(() => {
1239
+ i.classList.remove(f), i.removeAttribute(g), m && i.classList.add(m), x && i.setAttribute(x, ""), l.push(setTimeout(() => {
824
1240
  u();
825
- }, c)), n("leave", o);
1241
+ }, c)), n("leave", i);
826
1242
  }
827
- function i(o) {
1243
+ function o(i) {
828
1244
  const { leaveClass: u, leaveAttribute: c } = t;
829
- o.classList.remove(u), o.removeAttribute(c), n("after-leave", o);
1245
+ i.classList.remove(u), i.removeAttribute(c), n("after-leave", i);
830
1246
  }
831
- return ae(() => {
832
- l.forEach((o) => {
833
- clearTimeout(o);
1247
+ return oe(() => {
1248
+ l.forEach((i) => {
1249
+ clearTimeout(i);
834
1250
  });
835
- }), (o, u) => e.preloaded ? he((s(), V(Ne, {
1251
+ }), (i, u) => e.preloaded ? ge((d(), V(Fe, {
836
1252
  key: 0,
837
1253
  css: !1,
838
1254
  onBeforeEnter: u[0] || (u[0] = (c) => n("before-enter", c)),
@@ -840,77 +1256,91 @@ const Xt = {
840
1256
  onAfterEnter: u[1] || (u[1] = (c) => n("after-enter", c)),
841
1257
  onEnterCancelled: u[2] || (u[2] = (c) => n("enter-cancelled", c)),
842
1258
  onBeforeLeave: u[3] || (u[3] = (c) => n("before-leave", c)),
843
- onLeave: d,
844
- onAfterLeave: i,
1259
+ onLeave: s,
1260
+ onAfterLeave: o,
845
1261
  onLeaveCancelled: u[4] || (u[4] = (c) => n("leave-cancelled", c))
846
1262
  }, {
847
- default: E(() => [
848
- L(o.$slots, "default")
1263
+ default: O(() => [
1264
+ E(i.$slots, "default")
849
1265
  ]),
850
1266
  _: 3
851
1267
  }, 512)), [
852
- [ve, e.shown]
853
- ]) : (s(), V(Ne, {
1268
+ [ye, e.shown]
1269
+ ]) : (d(), V(Fe, {
854
1270
  key: 1,
1271
+ appear: !0,
855
1272
  css: !1,
856
1273
  onBeforeEnter: u[5] || (u[5] = (c) => n("before-enter", c)),
857
1274
  onEnter: r,
858
1275
  onAfterEnter: u[6] || (u[6] = (c) => n("after-enter", c)),
859
1276
  onEnterCancelled: u[7] || (u[7] = (c) => n("enter-cancelled", c)),
860
1277
  onBeforeLeave: u[8] || (u[8] = (c) => n("before-leave", c)),
861
- onLeave: d,
862
- onAfterLeave: i,
1278
+ onLeave: s,
1279
+ onAfterLeave: o,
863
1280
  onLeaveCancelled: u[9] || (u[9] = (c) => n("leave-cancelled", c))
864
1281
  }, {
865
- default: E(() => [
866
- e.shown ? L(o.$slots, "default", { key: 0 }) : I("", !0)
1282
+ default: O(() => [
1283
+ e.shown ? E(i.$slots, "default", { key: 0 }) : $("", !0)
867
1284
  ]),
868
1285
  _: 3
869
1286
  }));
870
1287
  }
871
- }, ra = ["data-width", "data-no-mobile"], sa = { key: 0 }, da = { key: 0 }, He = {
872
- __name: "BsDropdownInternal",
1288
+ }, xa = (e, a = void 0, t = "relative") => {
1289
+ const n = y(null), l = y(null), r = y(!1);
1290
+ let s = !1;
1291
+ return W(() => {
1292
+ e && (n.value = a || et(), document.getElementById(n.value) ? (l.value = document.getElementById(n.value), s = !0) : (l.value = document.createElement("div"), l.value.id = n.value, l.value.style.position = t, document.body.insertAdjacentElement("afterbegin", l.value)), r.value = !0);
1293
+ }), oe(() => {
1294
+ var o;
1295
+ e && !s && ((o = document.getElementById(n.value)) == null || o.remove());
1296
+ }), { breakoutId: n, breakoutStub: l, breakoutMounted: r };
1297
+ }, Ta = {
1298
+ key: 0,
1299
+ class: "bs-dropdown-backdrop"
1300
+ }, Aa = ["data-width", "data-no-mobile"], La = { key: 0 }, Va = { key: 0 }, Ea = {
1301
+ __name: "BsDropdownNew",
873
1302
  props: {
874
- shown: {
875
- type: Boolean,
876
- default: !0
1303
+ anchorId: {
1304
+ type: String,
1305
+ required: !0
877
1306
  },
878
- preloaded: {
1307
+ breakout: {
879
1308
  type: Boolean,
880
1309
  default: !1
881
1310
  },
882
- width: {
883
- type: String,
884
- default: void 0,
885
- validator: (e) => ["sm", "md", "lg", "content", "anchor"].includes(e)
886
- },
887
- position: {
888
- type: String,
889
- default: void 0,
890
- validator: (e) => ["top", "center", "right"].includes(e)
891
- },
892
- anchorId: {
893
- required: !0
894
- },
895
1311
  containerId: {
896
1312
  type: String,
897
1313
  default: void 0
898
1314
  },
899
- containerRef: {
900
- type: Object,
1315
+ helperDescription: {
1316
+ type: String,
901
1317
  default: void 0
902
1318
  },
903
1319
  helperText: {
904
1320
  type: String,
905
1321
  default: void 0
906
1322
  },
907
- helperDescription: {
1323
+ position: {
908
1324
  type: String,
909
- default: void 0
1325
+ default: void 0,
1326
+ validator: (e) => ["top", "center", "right"].includes(e)
1327
+ },
1328
+ preloaded: {
1329
+ type: Boolean,
1330
+ default: !1
1331
+ },
1332
+ shown: {
1333
+ type: Boolean,
1334
+ default: !0
910
1335
  },
911
1336
  useMobileStyle: {
912
1337
  type: Boolean,
913
1338
  default: !0
1339
+ },
1340
+ width: {
1341
+ type: String,
1342
+ default: void 0,
1343
+ validator: (e) => ["sm", "md", "lg", "content", "anchor"].includes(e)
914
1344
  }
915
1345
  },
916
1346
  emits: [
@@ -920,107 +1350,123 @@ const Xt = {
920
1350
  "after-leave"
921
1351
  ],
922
1352
  setup(e, { emit: a }) {
923
- const t = e, n = a, l = $(null);
924
- let r = !1;
925
- const d = new Proxy({}, {
926
- get: () => document.getElementById(t.anchorId)
927
- });
928
- Ct([l, d], () => {
929
- r && n("close");
930
- }), ye(["Escape"], () => {
931
- r && n("close");
932
- });
933
- function i() {
934
- const x = (t.containerRef || document.getElementById(t.containerId)).getBoundingClientRect(), C = document.getElementById(t.anchorId).getBoundingClientRect(), S = l.value.getBoundingClientRect();
1353
+ const t = e, n = a, l = y(null), r = y(null), s = y(!1), o = v(() => document.getElementById(t.anchorId)), i = v(() => t.breakout ? f.value : t.containerId ? document.getElementById(t.containerId) : l.value), u = v(() => t.breakout ? g.value : !0), c = v(() => t.width === "anchor" ? void 0 : t.width), { breakoutStub: f, breakoutMounted: g } = xa(t.breakout, t.containerId);
1354
+ Dt([r, o], () => {
1355
+ s.value && n("close");
1356
+ }), $e(["Escape"], () => {
1357
+ s.value && n("close");
1358
+ }), re("dropdownAfterEnter", s), re("dropdownShown", v(() => t.shown));
1359
+ const m = (A, M) => {
1360
+ r.value.style.setProperty(A, M);
1361
+ };
1362
+ function x() {
1363
+ const A = i.value.getBoundingClientRect(), M = o.value.getBoundingClientRect(), Q = r.value.getBoundingClientRect();
1364
+ k(A, M), w(A, M, Q);
1365
+ }
1366
+ function k(A, M) {
935
1367
  if (t.position === "top") {
936
- const w = x.bottom - C.bottom;
937
- l.value.style.setProperty("--dropdown-wscreen-top", "auto"), l.value.style.setProperty("--dropdown-wscreen-bottom", `${w + C.height + 8}px`);
1368
+ const Q = A.bottom - M.bottom;
1369
+ m("--dropdown-wscreen-top", "auto"), m("--dropdown-wscreen-bottom", `${Q + M.height + 8}px`);
938
1370
  } else {
939
- const w = C.top - x.top;
940
- l.value.style.setProperty("--dropdown-wscreen-top", `${w + C.height + 8}px`), l.value.style.setProperty("--dropdown-wscreen-bottom", "auto");
1371
+ const Q = M.top - A.top;
1372
+ m("--dropdown-wscreen-top", `${Q + M.height + 8}px`), m("--dropdown-wscreen-bottom", "auto");
941
1373
  }
1374
+ }
1375
+ function w(A, M, Q) {
942
1376
  if (t.width !== "anchor") {
943
- const w = C.left - x.left;
1377
+ const X = M.left - A.left;
944
1378
  if (t.position === "center") {
945
- const v = (C.width - S.width) / 2;
946
- l.value.style.setProperty("--dropdown-wscreen-left", `${w + v}px`);
1379
+ const _ = (M.width - Q.width) / 2;
1380
+ m("--dropdown-wscreen-left", `${X + _}px`), m("--dropdown-wscreen-right", "auto");
947
1381
  } else if (t.position === "right") {
948
- const v = x.right - C.right;
949
- l.value.style.setProperty("--dropdown-wscreen-left", "auto"), l.value.style.setProperty("--dropdown-wscreen-right", `${v}px`);
1382
+ const _ = A.right - M.right;
1383
+ m("--dropdown-wscreen-left", "auto"), m("--dropdown-wscreen-right", `${_}px`);
950
1384
  } else
951
- l.value.style.setProperty("--dropdown-wscreen-left", `${w}px`);
1385
+ m("--dropdown-wscreen-left", `${X}px`), m("--dropdown-wscreen-right", "auto");
952
1386
  }
953
1387
  }
954
- function o() {
1388
+ function I() {
955
1389
  if (t.width === "anchor") {
956
- const b = document.getElementById(t.anchorId).getBoundingClientRect();
957
- l.value.style.setProperty("--dropdown-wscreen-width", `${b.width}px`);
1390
+ const A = o.value.getBoundingClientRect();
1391
+ m("--dropdown-wscreen-width", `${A.width}px`);
958
1392
  } else
959
- l.value.style.setProperty("--dropdown-wscreen-width", "");
1393
+ m("--dropdown-wscreen-width", "");
960
1394
  }
961
- function u() {
962
- i(), o(), n("enter");
963
- }
964
- function c() {
965
- r = !0, n("after-enter");
1395
+ function b() {
1396
+ x(), I(), n("enter");
966
1397
  }
967
- function h() {
968
- r = !1, n("after-leave");
1398
+ function C() {
1399
+ s.value = !0, n("after-enter");
969
1400
  }
970
- function m() {
971
- return t.width === "toggle" ? void 0 : t.width;
1401
+ function q() {
1402
+ s.value = !1, n("after-leave");
972
1403
  }
973
- return (b, x) => (s(), V(f($e), {
974
- shown: e.shown,
975
- preloaded: e.preloaded,
976
- duration: 75,
977
- "enter-attribute": "data-shown",
978
- onAfterEnter: c,
979
- onEnter: u,
980
- onAfterLeave: h
981
- }, {
982
- default: E(() => [
983
- B("div", R({
984
- ref_key: "dropdownRef",
1404
+ return (A, M) => (d(), h(j, null, [
1405
+ e.useMobileStyle && e.shown ? (d(), h("div", Ta)) : $("", !0),
1406
+ u.value ? (d(), V(dt, {
1407
+ key: 1,
1408
+ disabled: !e.breakout,
1409
+ to: e.breakout ? p(f) : void 0
1410
+ }, [
1411
+ B("div", {
1412
+ ref_key: "containerRef",
985
1413
  ref: l,
986
- class: "bs-dropdown",
987
- "data-width": m()
988
- }, b.$attrs, {
989
- "data-no-mobile": !e.useMobileStyle
990
- }), [
991
- e.helperText ? (s(), p("header", sa, [
992
- B("div", null, [
993
- B("h3", null, T(e.helperText), 1),
994
- e.helperDescription ? (s(), p("p", da, T(e.helperDescription), 1)) : I("", !0)
1414
+ style: ut(e.breakout || e.containerId ? void 0 : { position: "relative" })
1415
+ }, [
1416
+ D(Ie, {
1417
+ shown: e.shown,
1418
+ preloaded: e.preloaded,
1419
+ duration: 75,
1420
+ "enter-attribute": "data-shown",
1421
+ onAfterEnter: C,
1422
+ onEnter: b,
1423
+ onAfterLeave: q
1424
+ }, {
1425
+ default: O(() => [
1426
+ B("div", P({
1427
+ ref_key: "dropdownRef",
1428
+ ref: r,
1429
+ class: "bs-dropdown",
1430
+ "data-width": c.value,
1431
+ "data-no-mobile": !e.useMobileStyle
1432
+ }, A.$attrs), [
1433
+ e.helperText ? (d(), h("header", La, [
1434
+ B("div", null, [
1435
+ B("h3", null, T(e.helperText), 1),
1436
+ e.helperDescription ? (d(), h("p", Va, T(e.helperDescription), 1)) : $("", !0)
1437
+ ]),
1438
+ B("button", {
1439
+ type: "button",
1440
+ title: "close",
1441
+ onClick: M[0] || (M[0] = () => n("close"))
1442
+ }, [
1443
+ D(p(Be))
1444
+ ])
1445
+ ])) : $("", !0),
1446
+ E(A.$slots, "default")
1447
+ ], 16, Aa)
995
1448
  ]),
996
- B("button", {
997
- type: "button",
998
- title: "close",
999
- onClick: x[0] || (x[0] = () => n("close"))
1000
- }, [
1001
- P(f(be))
1002
- ])
1003
- ])) : I("", !0),
1004
- L(b.$slots, "default")
1005
- ], 16, ra)
1006
- ]),
1007
- _: 3
1008
- }, 8, ["shown", "preloaded"]));
1449
+ _: 3
1450
+ }, 8, ["shown", "preloaded"])
1451
+ ], 4)
1452
+ ], 8, ["disabled", "to"])) : $("", !0)
1453
+ ], 64));
1009
1454
  }
1010
- }, ua = {
1011
- key: 0,
1012
- class: "bs-dropdown-backdrop"
1013
- }, Xe = {
1455
+ }, nt = {
1014
1456
  __name: "BsDropdown",
1015
1457
  props: {
1016
1458
  anchorId: {
1017
1459
  type: String,
1018
- default: void 0
1460
+ required: !0
1019
1461
  },
1020
1462
  shown: {
1021
1463
  type: Boolean,
1022
1464
  default: !0
1023
1465
  },
1466
+ breakout: {
1467
+ type: Boolean,
1468
+ default: !1
1469
+ },
1024
1470
  containerId: {
1025
1471
  type: String,
1026
1472
  default: void 0
@@ -1052,6 +1498,7 @@ const Xt = {
1052
1498
  default: void 0,
1053
1499
  validator: (e) => ["sm", "md", "lg", "content", "anchor", "toggle"].includes(e)
1054
1500
  },
1501
+ // DEPRECATED DROPDOWN PROPS
1055
1502
  /** @Deprecated - Use position instead */
1056
1503
  center: {
1057
1504
  type: Boolean,
@@ -1095,69 +1542,30 @@ const Xt = {
1095
1542
  "after-leave"
1096
1543
  ],
1097
1544
  setup(e, { emit: a }) {
1098
- const t = e, n = a, l = $(null), r = $(!1), { transition: d } = Be(t);
1099
- le("dropdownAfterEnter", r), le("dropdownShown", d);
1100
- const i = g(() => t.toggleId ? t.toggleId : t.anchorId), o = g(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), u = g(() => t.width === "toggle" ? "anchor" : t.width);
1101
- function c() {
1102
- r.value = !0, n("after-enter");
1103
- }
1104
- function h() {
1105
- r.value = !1, n("after-leave");
1106
- }
1107
- return (m, b) => (s(), p(N, null, [
1108
- e.useMobileStyle && f(d) ? (s(), p("div", ua)) : I("", !0),
1109
- e.containerId ? (s(), V(f(He), R({
1110
- key: 1,
1111
- shown: f(d),
1112
- preloaded: e.preloaded,
1113
- "anchor-id": i.value,
1114
- "container-id": e.containerId,
1115
- "helper-description": e.helperDescription,
1116
- "helper-text": e.helperText,
1117
- position: o.value,
1118
- "use-mobile-style": e.useMobileStyle,
1119
- width: u.value
1120
- }, m.$attrs, {
1121
- onClose: b[0] || (b[0] = (x) => n("close")),
1122
- onAfterEnter: c,
1123
- onEnter: b[1] || (b[1] = (x) => n("enter")),
1124
- onAfterLeave: h
1125
- }), {
1126
- default: E(() => [
1127
- L(m.$slots, "default")
1128
- ]),
1129
- _: 3
1130
- }, 16, ["shown", "preloaded", "anchor-id", "container-id", "helper-description", "helper-text", "position", "use-mobile-style", "width"])) : (s(), p("div", {
1131
- key: 2,
1132
- ref_key: "containerRef",
1133
- ref: l,
1134
- style: { position: "relative" }
1135
- }, [
1136
- P(f(He), R({
1137
- shown: f(d),
1138
- preloaded: e.preloaded,
1139
- "anchor-id": i.value,
1140
- "container-ref": l.value,
1141
- "helper-description": e.helperDescription,
1142
- "helper-text": e.helperText,
1143
- position: o.value,
1144
- "use-mobile-style": e.useMobileStyle,
1145
- width: u.value
1146
- }, m.$attrs, {
1147
- onClose: b[2] || (b[2] = (x) => n("close")),
1148
- onAfterEnter: c,
1149
- onEnter: b[3] || (b[3] = (x) => n("enter")),
1150
- onAfterLeave: h
1151
- }), {
1152
- default: E(() => [
1153
- L(m.$slots, "default")
1154
- ]),
1155
- _: 3
1156
- }, 16, ["shown", "preloaded", "anchor-id", "container-ref", "helper-description", "helper-text", "position", "use-mobile-style", "width"])
1157
- ], 512))
1158
- ], 64));
1545
+ const t = e, n = a, { transition: l } = ue(t), r = v(() => t.width === "toggle" ? "anchor" : t.width), s = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId);
1546
+ return (i, u) => (d(), V(Ea, {
1547
+ "anchor-id": o.value,
1548
+ breakout: e.breakout,
1549
+ "container-id": e.containerId,
1550
+ "helper-description": e.helperDescription,
1551
+ "helper-text": e.helperText,
1552
+ position: s.value,
1553
+ preloaded: e.preloaded,
1554
+ shown: p(l),
1555
+ "use-mobile-style": e.useMobileStyle,
1556
+ width: r.value,
1557
+ onClose: u[0] || (u[0] = () => n("close")),
1558
+ onEnter: u[1] || (u[1] = () => n("enter")),
1559
+ onAfterEnter: u[2] || (u[2] = () => n("after-enter")),
1560
+ onAfterLeave: u[3] || (u[3] = () => n("after-leave"))
1561
+ }, {
1562
+ default: O(() => [
1563
+ E(i.$slots, "default")
1564
+ ]),
1565
+ _: 3
1566
+ }, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
1159
1567
  }
1160
- }, ca = ["aria-activedescendant", "aria-label", "id"], Pe = {
1568
+ }, Da = ["aria-activedescendant", "aria-label", "id"], Pe = {
1161
1569
  __name: "BsDropdownOptionList",
1162
1570
  props: {
1163
1571
  optionsId: {
@@ -1193,110 +1601,110 @@ const Xt = {
1193
1601
  },
1194
1602
  emits: ["optselected", "update:modelValue", "close"],
1195
1603
  setup(e, { expose: a, emit: t }) {
1196
- const n = e, l = t, r = $(null), d = $(null), i = $(-1), o = $(null), u = oe("dropdownAfterEnter"), c = oe("dropdownShown", !1);
1197
- let h = -1;
1198
- le("handleSelect", v), le("optionsId", g(() => n.optionsId)), U(() => {
1199
- b(), x(), document.addEventListener("keydown", S);
1200
- }), ae(() => {
1201
- document.removeEventListener("keydown", S);
1202
- }), z(u, (k) => {
1203
- var O, D;
1204
- k && h > -1 && (n.focusOnShow ? (O = o.value[h]) == null || O.focus() : (D = o.value[h]) == null || D.scrollIntoView({ block: "nearest" }));
1604
+ const n = e, l = t, r = y(null), s = y(null), o = y(-1), i = y(null), u = se("dropdownAfterEnter"), c = se("dropdownShown", !1);
1605
+ let f = -1;
1606
+ re("handleSelect", b), re("optionsId", v(() => n.optionsId)), W(() => {
1607
+ m(), x(), document.addEventListener("keydown", w);
1608
+ }), oe(() => {
1609
+ document.removeEventListener("keydown", w);
1610
+ }), z(u, (C) => {
1611
+ var q, A;
1612
+ C && f > -1 && (n.focusOnShow ? (q = i.value[f]) == null || q.focus() : (A = i.value[f]) == null || A.scrollIntoView({ block: "nearest" }));
1205
1613
  }), z(c, x);
1206
- const m = g(() => n.modelValue || n.selectedValue);
1207
- function b() {
1208
- o.value = Array.from(
1614
+ const g = v(() => n.modelValue || n.selectedValue);
1615
+ function m() {
1616
+ i.value = Array.from(
1209
1617
  r.value.querySelectorAll('[data-component="bs-dropdown-option"]')
1210
1618
  );
1211
1619
  }
1212
1620
  function x() {
1213
- var k, O;
1214
- c.value && !n.multiselect ? (h = o.value.findIndex(
1215
- (D) => D.getAttribute("data-value") === String(m.value)
1216
- ), o.value.forEach((D) => {
1217
- var F;
1218
- return (F = D == null ? void 0 : D.setAttribute) == null ? void 0 : F.call(D, "aria-selected", "false");
1219
- }), h > -1 && ((k = o.value[h]) == null || k.setAttribute("data-selected", ""), (O = o.value[h]) == null || O.setAttribute("aria-selected", "true"), i.value = h)) : (o.value.forEach((D) => {
1220
- var F;
1221
- return (F = D == null ? void 0 : D.removeAttribute) == null ? void 0 : F.call(D, "data-selected");
1222
- }), o.value.forEach((D) => {
1223
- var F;
1224
- return (F = D == null ? void 0 : D.removeAttribute) == null ? void 0 : F.call(D, "aria-selected");
1621
+ var C, q;
1622
+ c.value && !n.multiselect ? (f = i.value.findIndex(
1623
+ (A) => A.getAttribute("data-value") === String(g.value)
1624
+ ), i.value.forEach((A) => {
1625
+ var M;
1626
+ return (M = A == null ? void 0 : A.setAttribute) == null ? void 0 : M.call(A, "aria-selected", "false");
1627
+ }), f > -1 && ((C = i.value[f]) == null || C.setAttribute("data-selected", ""), (q = i.value[f]) == null || q.setAttribute("aria-selected", "true"), o.value = f)) : (i.value.forEach((A) => {
1628
+ var M;
1629
+ return (M = A == null ? void 0 : A.removeAttribute) == null ? void 0 : M.call(A, "data-selected");
1630
+ }), i.value.forEach((A) => {
1631
+ var M;
1632
+ return (M = A == null ? void 0 : A.removeAttribute) == null ? void 0 : M.call(A, "aria-selected");
1225
1633
  }));
1226
1634
  }
1227
- Tt(
1635
+ Ot(
1228
1636
  r,
1229
1637
  () => {
1230
- b();
1638
+ m();
1231
1639
  },
1232
1640
  { childList: !0 }
1233
1641
  );
1234
- function C() {
1235
- var k;
1236
- i.value > -1 && ((k = o.value[i.value]) == null || k.blur());
1642
+ function k() {
1643
+ var C;
1644
+ o.value > -1 && ((C = i.value[o.value]) == null || C.blur());
1237
1645
  }
1238
- function S(k) {
1646
+ function w(C) {
1239
1647
  if (c.value)
1240
- switch (k.key) {
1648
+ switch (C.key) {
1241
1649
  case "ArrowDown":
1242
- w("down"), k.preventDefault();
1650
+ I("down"), C.preventDefault();
1243
1651
  break;
1244
1652
  case "ArrowUp":
1245
- w("up"), k.preventDefault();
1653
+ I("up"), C.preventDefault();
1246
1654
  break;
1247
1655
  case "Home":
1248
- w("home"), k.preventDefault();
1656
+ I("home"), C.preventDefault();
1249
1657
  break;
1250
1658
  case "End":
1251
- w("end"), k.preventDefault();
1659
+ I("end"), C.preventDefault();
1252
1660
  break;
1253
1661
  case "Tab":
1254
- i.value = h, n.preventTab && k.preventDefault();
1662
+ o.value = f, n.preventTab && C.preventDefault();
1255
1663
  break;
1256
1664
  }
1257
1665
  }
1258
- function w(k) {
1259
- let O;
1260
- switch (k) {
1666
+ function I(C) {
1667
+ let q;
1668
+ switch (C) {
1261
1669
  case "up":
1262
- O = i.value - 1 < 0 ? o.value.length - 1 : i.value - 1;
1670
+ q = o.value - 1 < 0 ? i.value.length - 1 : o.value - 1;
1263
1671
  break;
1264
1672
  case "down":
1265
- O = (i.value + 1) % o.value.length;
1673
+ q = (o.value + 1) % i.value.length;
1266
1674
  break;
1267
1675
  case "home":
1268
- O = 0;
1676
+ q = 0;
1269
1677
  break;
1270
1678
  case "end":
1271
- O = o.value.length - 1;
1679
+ q = i.value.length - 1;
1272
1680
  break;
1273
1681
  }
1274
- C(), o.value[O].focus(), d.value = o.value[O].id, i.value = O;
1682
+ k(), i.value[q].focus(), s.value = i.value[q].id, o.value = q;
1275
1683
  }
1276
- function v(k, O) {
1277
- d.value = k, C(), l("optselected", O), l("update:modelValue", O), l("close");
1684
+ function b(C, q) {
1685
+ s.value = C, k(), l("optselected", q), l("update:modelValue", q), l("close");
1278
1686
  }
1279
1687
  return a({
1280
- activeDescendantId: d,
1281
- focusedIndex: i,
1282
- optionEls: o,
1283
- refreshOptions: b
1284
- }), (k, O) => (s(), p("ul", {
1688
+ activeDescendantId: s,
1689
+ focusedIndex: o,
1690
+ optionEls: i,
1691
+ refreshOptions: m
1692
+ }), (C, q) => (d(), h("ul", {
1285
1693
  ref_key: "optionsRef",
1286
1694
  ref: r,
1287
- "aria-activedescendant": d.value || void 0,
1695
+ "aria-activedescendant": s.value || void 0,
1288
1696
  "aria-label": n.label || void 0,
1289
1697
  class: "bs-dropdown-options",
1290
1698
  id: n.optionsId,
1291
1699
  role: "listbox"
1292
1700
  }, [
1293
- L(k.$slots, "default")
1294
- ], 8, ca));
1701
+ E(C.$slots, "default")
1702
+ ], 8, Da));
1295
1703
  }
1296
- }, fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1704
+ }, Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1297
1705
  __proto__: null,
1298
1706
  default: Pe
1299
- }, Symbol.toStringTag, { value: "Module" })), pa = ["data-value", "data-variant", "id"], Oe = {
1707
+ }, Symbol.toStringTag, { value: "Module" })), qa = ["data-value", "data-variant", "id"], ze = {
1300
1708
  __name: "BsDropdownOption",
1301
1709
  props: {
1302
1710
  value: {
@@ -1309,16 +1717,16 @@ const Xt = {
1309
1717
  }
1310
1718
  },
1311
1719
  setup(e) {
1312
- const a = e, t = $(null), n = oe("optionsId", ""), l = oe("handleSelect", () => {
1313
- }), r = g(() => `${n.value}-option-${a.value}`);
1314
- ye([" ", "Enter", "NumpadEnter"], (i) => {
1315
- d(), i.preventDefault();
1720
+ const a = e, t = y(null), n = se("optionsId", ""), l = se("handleSelect", () => {
1721
+ }), r = v(() => `${n.value}-option-${a.value}`);
1722
+ $e([" ", "Enter", "NumpadEnter"], (o) => {
1723
+ s(), o.preventDefault();
1316
1724
  }, t);
1317
- function d(i) {
1318
- var o, u;
1319
- l(r.value, a.value), (o = t.value.querySelector("a")) == null || o.click(), (u = i == null ? void 0 : i.stopPropagation) == null || u.call(i);
1725
+ function s(o) {
1726
+ var i, u;
1727
+ l(r.value, a.value), (i = t.value.querySelector("a")) == null || i.click(), (u = o == null ? void 0 : o.stopPropagation) == null || u.call(o);
1320
1728
  }
1321
- return (i, o) => (s(), p("li", {
1729
+ return (o, i) => (d(), h("li", {
1322
1730
  ref_key: "optionRef",
1323
1731
  ref: t,
1324
1732
  "data-component": "bs-dropdown-option",
@@ -1327,12 +1735,12 @@ const Xt = {
1327
1735
  id: r.value,
1328
1736
  role: "option",
1329
1737
  tabIndex: -1,
1330
- onClick: d
1738
+ onClick: s
1331
1739
  }, [
1332
- L(i.$slots, "default")
1333
- ], 8, pa));
1740
+ E(o.$slots, "default")
1741
+ ], 8, qa));
1334
1742
  }
1335
- }, ha = ["data-img-size", "data-initials", "data-no-img"], va = ["src", "alt"], Ze = {
1743
+ }, Ma = ["data-img-size", "data-initials", "data-no-img"], Pa = ["src", "alt"], lt = {
1336
1744
  __name: "BsProfileImg",
1337
1745
  props: {
1338
1746
  src: String,
@@ -1347,25 +1755,25 @@ const Xt = {
1347
1755
  }
1348
1756
  },
1349
1757
  setup(e) {
1350
- const a = e, t = $(!1), n = $(!!a.src);
1351
- return U(() => t.value = !0), (l, r) => (s(), p("div", {
1758
+ const a = e, t = y(!1), n = y(!!a.src);
1759
+ return W(() => t.value = !0), (l, r) => (d(), h("div", {
1352
1760
  class: "bs-profile-img",
1353
1761
  "data-img-size": e.size,
1354
1762
  "data-initials": e.initials,
1355
1763
  "data-no-img": !n.value
1356
1764
  }, [
1357
- n.value && t.value ? (s(), p("img", {
1765
+ n.value && t.value ? (d(), h("img", {
1358
1766
  key: 0,
1359
1767
  src: e.src,
1360
1768
  alt: e.profileName,
1361
- onError: r[0] || (r[0] = (d) => n.value = !1)
1362
- }, null, 40, va)) : I("", !0)
1363
- ], 8, ha));
1769
+ onError: r[0] || (r[0] = (s) => n.value = !1)
1770
+ }, null, 40, Pa)) : $("", !0)
1771
+ ], 8, Ma));
1364
1772
  }
1365
- }, ba = { key: 1 }, ga = ["for", "innerHTML"], ma = ["innerHTML"], ya = ["for"], Ba = { key: 1 }, $a = { key: 5 }, Sa = {
1773
+ }, za = { key: 1 }, Ra = ["for", "innerHTML"], Na = ["innerHTML"], ja = ["for"], Ua = { key: 1 }, Fa = { key: 5 }, Wa = {
1366
1774
  key: 0,
1367
1775
  "data-no-hover": ""
1368
- }, pe = {
1776
+ }, me = {
1369
1777
  __name: "BsDropdownOptionBuilder",
1370
1778
  props: {
1371
1779
  // Array of objects with the following properties (either label or labelHtml
@@ -1398,83 +1806,83 @@ const Xt = {
1398
1806
  },
1399
1807
  setup(e) {
1400
1808
  const a = e, t = {};
1401
- at(() => {
1809
+ _e(() => {
1402
1810
  n();
1403
1811
  }), z(() => a.options, () => {
1404
1812
  n();
1405
1813
  });
1406
1814
  function n() {
1407
- a.options.forEach((d) => {
1408
- const { icon: i } = d;
1409
- i && !t[i] && (t[i] = r(i));
1815
+ a.options.forEach((s) => {
1816
+ const { icon: o } = s;
1817
+ o && !t[o] && (t[o] = r(o));
1410
1818
  });
1411
1819
  }
1412
- function l(d) {
1413
- let i = "", o = 1;
1414
- return o += d.checkbox ? 1 : 0, o += d.icon ? 1 : 0, o += d.profileImg ? 1 : 0, o > 1 && (i += ` ${o}-col`), d.checkbox && (i += " checkbox"), d.description && (i += " description"), d.negative && (i += " negative"), i;
1820
+ function l(s) {
1821
+ let o = "", i = 1;
1822
+ return i += s.checkbox ? 1 : 0, i += s.icon ? 1 : 0, i += s.profileImg ? 1 : 0, i > 1 && (o += ` ${i}-col`), s.checkbox && (o += " checkbox"), s.description && (o += " description"), s.negative && (o += " negative"), o;
1415
1823
  }
1416
- function r(d) {
1417
- return Ee(async () => {
1418
- const { [`BsIcon${d}`]: i } = await import("@wwtdev/bsds-icons-vue3");
1419
- return i;
1824
+ function r(s) {
1825
+ return Me(async () => {
1826
+ const { [`BsIcon${s}`]: o } = await import("@wwtdev/bsds-icons-vue3");
1827
+ return o;
1420
1828
  });
1421
1829
  }
1422
- return (d, i) => (s(), p(N, null, [
1423
- (s(!0), p(N, null, X(e.options, (o) => (s(), V(Oe, {
1424
- "aria-checked": o.checkbox ? o.checkbox.checked : void 0,
1425
- key: o.value,
1426
- value: o.value,
1427
- variant: l(o)
1830
+ return (s, o) => (d(), h(j, null, [
1831
+ (d(!0), h(j, null, Z(e.options, (i) => (d(), V(ze, {
1832
+ "aria-checked": i.checkbox ? i.checkbox.checked : void 0,
1833
+ key: i.value,
1834
+ value: i.value,
1835
+ variant: l(i)
1428
1836
  }, {
1429
- default: E(() => [
1430
- o.checkbox ? (s(), V(na, {
1837
+ default: O(() => [
1838
+ i.checkbox ? (d(), V($a, {
1431
1839
  key: 0,
1432
- "input-id": o.checkbox.inputId,
1433
- "model-value": o.checkbox.checked
1434
- }, null, 8, ["input-id", "model-value"])) : I("", !0),
1435
- o.icon ? (s(), p("span", ba, [
1436
- (s(), V(Z(t[o.icon])))
1437
- ])) : I("", !0),
1438
- o.profileImg ? (s(), V(Ze, {
1840
+ "input-id": i.checkbox.inputId,
1841
+ "model-value": i.checkbox.checked
1842
+ }, null, 8, ["input-id", "model-value"])) : $("", !0),
1843
+ i.icon ? (d(), h("span", za, [
1844
+ (d(), V(J(t[i.icon])))
1845
+ ])) : $("", !0),
1846
+ i.profileImg ? (d(), V(lt, {
1439
1847
  key: 2,
1440
- src: o.profileImg.src,
1848
+ src: i.profileImg.src,
1441
1849
  size: "xs",
1442
- initials: o.profileImg.initials,
1443
- "profile-name": o.profileImg.profileName
1444
- }, null, 8, ["src", "initials", "profile-name"])) : I("", !0),
1445
- o.labelHtml ? (s(), p(N, { key: 3 }, [
1446
- o.checkbox ? (s(), p("label", {
1850
+ initials: i.profileImg.initials,
1851
+ "profile-name": i.profileImg.profileName
1852
+ }, null, 8, ["src", "initials", "profile-name"])) : $("", !0),
1853
+ i.labelHtml ? (d(), h(j, { key: 3 }, [
1854
+ i.checkbox ? (d(), h("label", {
1447
1855
  key: 0,
1448
- for: o.checkbox.inputId,
1449
- innerHTML: o.labelHtml,
1450
- onClick: i[0] || (i[0] = je(() => {
1856
+ for: i.checkbox.inputId,
1857
+ innerHTML: i.labelHtml,
1858
+ onClick: o[0] || (o[0] = We(() => {
1451
1859
  }, ["prevent"]))
1452
- }, null, 8, ga)) : (s(), p("span", {
1860
+ }, null, 8, Ra)) : (d(), h("span", {
1453
1861
  key: 1,
1454
- innerHTML: o.labelHtml
1455
- }, null, 8, ma))
1456
- ], 64)) : (s(), p(N, { key: 4 }, [
1457
- o.checkbox ? (s(), p("label", {
1862
+ innerHTML: i.labelHtml
1863
+ }, null, 8, Na))
1864
+ ], 64)) : (d(), h(j, { key: 4 }, [
1865
+ i.checkbox ? (d(), h("label", {
1458
1866
  key: 0,
1459
- for: o.checkbox.inputId,
1460
- onClick: i[1] || (i[1] = je(() => {
1867
+ for: i.checkbox.inputId,
1868
+ onClick: o[1] || (o[1] = We(() => {
1461
1869
  }, ["prevent"]))
1462
- }, T(o.label), 9, ya)) : (s(), p("span", Ba, T(o.label), 1))
1870
+ }, T(i.label), 9, ja)) : (d(), h("span", Ua, T(i.label), 1))
1463
1871
  ], 64)),
1464
- o.description ? (s(), p("span", $a, T(o.description), 1)) : I("", !0)
1872
+ i.description ? (d(), h("span", Fa, T(i.description), 1)) : $("", !0)
1465
1873
  ]),
1466
1874
  _: 2
1467
1875
  }, 1032, ["aria-checked", "value", "variant"]))), 128)),
1468
- e.showNoOptions && e.options.length === 0 ? (s(), p("li", Sa, [
1469
- L(d.$slots, "no-options", {}, () => [
1470
- j("No options")
1876
+ e.showNoOptions && e.options.length === 0 ? (d(), h("li", Wa, [
1877
+ E(s.$slots, "no-options", {}, () => [
1878
+ U("No options")
1471
1879
  ])
1472
- ])) : I("", !0)
1880
+ ])) : $("", !0)
1473
1881
  ], 64));
1474
1882
  }
1475
- }, wa = { role: "separator" }, ka = /* @__PURE__ */ B("hr", null, null, -1), Ia = [
1476
- ka
1477
- ], Ca = {
1883
+ }, Ga = { role: "separator" }, Ha = /* @__PURE__ */ B("hr", null, null, -1), Ka = [
1884
+ Ha
1885
+ ], Ya = {
1478
1886
  __name: "BsDropdownMultiselect",
1479
1887
  props: {
1480
1888
  label: {
@@ -1500,52 +1908,52 @@ const Xt = {
1500
1908
  emits: ["update:selectedOptions"],
1501
1909
  setup(e, { emit: a }) {
1502
1910
  const t = e, n = a;
1503
- $(null), $(null);
1504
- const l = $(null), r = $([]), d = $([]);
1505
- let i = !1;
1911
+ y(null), y(null);
1912
+ const l = y(null), r = y([]), s = y([]);
1913
+ let o = !1;
1506
1914
  z(
1507
1915
  () => t.selectedOptions,
1508
1916
  c,
1509
1917
  { immediate: !0 }
1510
- ), z(() => t.shown, (b) => {
1511
- b && de(o);
1918
+ ), z(() => t.shown, (m) => {
1919
+ m && ve(i);
1512
1920
  });
1513
- function o() {
1514
- var x, C;
1921
+ function i() {
1922
+ var x, k;
1515
1923
  l.value && (l.value.refreshOptions(), l.value.activeDescendantId = (x = l.value.optionEls[0]) == null ? void 0 : x.id, l.value.focusedIndex = 0);
1516
- const b = document.querySelector(`#${t.optionsId} [data-component="bs-dropdown-option"]`);
1517
- (C = b == null ? void 0 : b.focus) == null || C.call(b, { preventScroll: !0 });
1924
+ const m = document.querySelector(`#${t.optionsId} [data-component="bs-dropdown-option"]`);
1925
+ (k = m == null ? void 0 : m.focus) == null || k.call(m, { preventScroll: !0 });
1518
1926
  }
1519
1927
  function u() {
1520
- var b;
1928
+ var m;
1521
1929
  if (l.value) {
1522
1930
  l.value.refreshOptions();
1523
- const x = l.value.focusedIndex, C = l.value.optionEls[x];
1524
- (b = C == null ? void 0 : C.focus) == null || b.call(C), l.value.activeDescendantId = C == null ? void 0 : C.id;
1931
+ const x = l.value.focusedIndex, k = l.value.optionEls[x];
1932
+ (m = k == null ? void 0 : k.focus) == null || m.call(k), l.value.activeDescendantId = k == null ? void 0 : k.id;
1525
1933
  }
1526
1934
  }
1527
- function c(b = []) {
1528
- const x = new Set(b), C = [], S = [];
1529
- t.options.forEach((w) => {
1530
- const v = { ...w }, k = `${t.optionsId}-${w.value}-cb`;
1531
- x.has(w.value) ? (v.checkbox = { inputId: k, checked: !0 }, C.push(v)) : (v.checkbox = { inputId: k, checked: !1 }, S.push(v));
1532
- }), r.value = C, de(() => {
1533
- d.value = S, de(() => {
1534
- i && u(), i = !1;
1935
+ function c(m = []) {
1936
+ const x = new Set(m), k = [], w = [];
1937
+ t.options.forEach((I) => {
1938
+ const b = { ...I }, C = `${t.optionsId}-${I.value}-cb`;
1939
+ x.has(I.value) ? (b.checkbox = { inputId: C, checked: !0 }, k.push(b)) : (b.checkbox = { inputId: C, checked: !1 }, w.push(b));
1940
+ }), r.value = k, ve(() => {
1941
+ s.value = w, ve(() => {
1942
+ o && u(), o = !1;
1535
1943
  });
1536
1944
  });
1537
1945
  }
1538
- function h(b = []) {
1539
- const x = new Set(b), C = [];
1540
- return t.options.forEach((S) => {
1541
- x.has(S.value) && C.push(S.value);
1542
- }), C;
1946
+ function f(m = []) {
1947
+ const x = new Set(m), k = [];
1948
+ return t.options.forEach((w) => {
1949
+ x.has(w.value) && k.push(w.value);
1950
+ }), k;
1543
1951
  }
1544
- function m(b) {
1545
- const x = t.selectedOptions.includes(b) ? t.selectedOptions.filter((C) => C !== b) : h([...t.selectedOptions, b]);
1546
- i = !0, n("update:selectedOptions", x);
1952
+ function g(m) {
1953
+ const x = t.selectedOptions.includes(m) ? t.selectedOptions.filter((k) => k !== m) : f([...t.selectedOptions, m]);
1954
+ o = !0, n("update:selectedOptions", x);
1547
1955
  }
1548
- return (b, x) => (s(), V(Pe, {
1956
+ return (m, x) => (d(), V(Pe, {
1549
1957
  ref_key: "optlist",
1550
1958
  ref: l,
1551
1959
  "aria-multiselectable": "true",
@@ -1554,20 +1962,20 @@ const Xt = {
1554
1962
  multiselect: "",
1555
1963
  "options-id": e.optionsId,
1556
1964
  shown: e.shown,
1557
- "onUpdate:modelValue": m
1965
+ "onUpdate:modelValue": g
1558
1966
  }, {
1559
- default: E(() => {
1560
- var C;
1967
+ default: O(() => {
1968
+ var k;
1561
1969
  return [
1562
- P(pe, {
1970
+ D(me, {
1563
1971
  options: r.value,
1564
1972
  "show-no-options": !1
1565
1973
  }, null, 8, ["options"]),
1566
- he(B("li", wa, Ia, 512), [
1567
- [ve, (C = r.value) == null ? void 0 : C.length]
1974
+ ge(B("li", Ga, Ka, 512), [
1975
+ [ye, (k = r.value) == null ? void 0 : k.length]
1568
1976
  ]),
1569
- P(pe, {
1570
- options: d.value,
1977
+ D(me, {
1978
+ options: s.value,
1571
1979
  "show-no-options": !1
1572
1980
  }, null, 8, ["options"])
1573
1981
  ];
@@ -1575,17 +1983,56 @@ const Xt = {
1575
1983
  _: 1
1576
1984
  }, 8, ["label", "options-id", "shown"]));
1577
1985
  }
1578
- }, Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1986
+ }, Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1579
1987
  __proto__: null,
1580
- default: Ca
1581
- }, Symbol.toStringTag, { value: "Module" })), De = {
1582
- __name: "BsDropdownWithOptions",
1988
+ default: Ya
1989
+ }, Symbol.toStringTag, { value: "Module" })), Xa = {
1990
+ __name: "BsDropdownWithOptionsNew",
1583
1991
  props: {
1584
- // OPTION LIST PROPS
1585
- optionsId: {
1992
+ // DROPDOWN PROPS
1993
+ anchorId: {
1994
+ type: String,
1995
+ default: void 0
1996
+ },
1997
+ breakout: {
1998
+ type: Boolean,
1999
+ default: !1
2000
+ },
2001
+ containerId: {
2002
+ type: String,
2003
+ default: void 0
2004
+ },
2005
+ helperDescription: {
2006
+ type: String,
2007
+ default: void 0
2008
+ },
2009
+ helperText: {
1586
2010
  type: String,
1587
- required: !0
2011
+ default: void 0
2012
+ },
2013
+ position: {
2014
+ type: String,
2015
+ default: void 0,
2016
+ validator: (e) => ["top", "center", "right"].includes(e)
2017
+ },
2018
+ preloaded: {
2019
+ type: Boolean,
2020
+ default: !1
2021
+ },
2022
+ shown: {
2023
+ type: Boolean,
2024
+ default: !0
2025
+ },
2026
+ useMobileStyle: {
2027
+ type: Boolean,
2028
+ default: !0
2029
+ },
2030
+ width: {
2031
+ type: String,
2032
+ default: void 0,
2033
+ validator: (e) => ["sm", "md", "lg", "content", "anchor"].includes(e)
1588
2034
  },
2035
+ // OPTION LIST PROPS
1589
2036
  focusOnShow: {
1590
2037
  type: Boolean,
1591
2038
  default: !0
@@ -1598,16 +2045,70 @@ const Xt = {
1598
2045
  type: [String, Number],
1599
2046
  default: void 0
1600
2047
  },
2048
+ optionsId: {
2049
+ type: String,
2050
+ required: !0
2051
+ },
1601
2052
  preventTab: {
1602
2053
  type: Boolean,
1603
2054
  default: !0
1604
- },
1605
- /** @Deprecated - Use modelValue (or v-model) instead */
1606
- selectedValue: {
1607
- type: [String, Number],
1608
- default: void 0
1609
- },
1610
- // DROPDOWN PROPS
2055
+ }
2056
+ },
2057
+ emits: [
2058
+ "update:modelValue",
2059
+ "close",
2060
+ "after-enter",
2061
+ "after-leave"
2062
+ ],
2063
+ setup(e, { emit: a }) {
2064
+ const t = a, n = y(!1);
2065
+ function l() {
2066
+ n.value = !0;
2067
+ }
2068
+ function r(o) {
2069
+ n.value = !1, t("update:modelValue", o), t("close");
2070
+ }
2071
+ function s() {
2072
+ n.value && (n.value = !1, t("close"));
2073
+ }
2074
+ return (o, i) => (d(), V(p(nt), {
2075
+ "anchor-id": e.anchorId,
2076
+ breakout: e.breakout,
2077
+ "container-id": e.containerId,
2078
+ "helper-description": e.helperDescription,
2079
+ "helper-text": e.helperText,
2080
+ position: e.position,
2081
+ preloaded: e.preloaded,
2082
+ shown: e.shown,
2083
+ "use-mobile-style": e.useMobileStyle,
2084
+ width: e.width,
2085
+ onClose: s,
2086
+ onAfterEnter: i[0] || (i[0] = (u) => t("after-enter")),
2087
+ onEnter: l,
2088
+ onAfterLeave: i[1] || (i[1] = (u) => t("after-leave"))
2089
+ }, {
2090
+ default: O(() => [
2091
+ D(p(Pe), {
2092
+ "focus-on-show": e.focusOnShow,
2093
+ label: e.label,
2094
+ "model-value": e.modelValue,
2095
+ "options-id": e.optionsId,
2096
+ "prevent-tab": e.preventTab,
2097
+ "onUpdate:modelValue": r,
2098
+ onClose: s
2099
+ }, {
2100
+ default: O(() => [
2101
+ E(o.$slots, "default")
2102
+ ]),
2103
+ _: 3
2104
+ }, 8, ["focus-on-show", "label", "model-value", "options-id", "prevent-tab"])
2105
+ ]),
2106
+ _: 3
2107
+ }, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
2108
+ }
2109
+ }, Re = {
2110
+ __name: "BsDropdownWithOptions",
2111
+ props: {
1611
2112
  anchorId: {
1612
2113
  type: String,
1613
2114
  default: void 0
@@ -1616,6 +2117,10 @@ const Xt = {
1616
2117
  type: Boolean,
1617
2118
  default: !0
1618
2119
  },
2120
+ breakout: {
2121
+ type: Boolean,
2122
+ default: !1
2123
+ },
1619
2124
  containerId: {
1620
2125
  type: String,
1621
2126
  default: void 0
@@ -1647,6 +2152,7 @@ const Xt = {
1647
2152
  default: void 0,
1648
2153
  validator: (e) => ["sm", "md", "lg", "content", "anchor", "toggle"].includes(e)
1649
2154
  },
2155
+ // DEPRECATED DROPDOWN PROPS
1650
2156
  /** @Deprecated - Use position instead */
1651
2157
  center: {
1652
2158
  type: Boolean,
@@ -1681,6 +2187,33 @@ const Xt = {
1681
2187
  top: {
1682
2188
  type: Boolean,
1683
2189
  default: !1
2190
+ },
2191
+ // OPTION LIST PROPS
2192
+ focusOnShow: {
2193
+ type: Boolean,
2194
+ default: !0
2195
+ },
2196
+ label: {
2197
+ type: String,
2198
+ default: void 0
2199
+ },
2200
+ modelValue: {
2201
+ type: [String, Number],
2202
+ default: void 0
2203
+ },
2204
+ optionsId: {
2205
+ type: String,
2206
+ required: !0
2207
+ },
2208
+ preventTab: {
2209
+ type: Boolean,
2210
+ default: !0
2211
+ },
2212
+ // DEPRECATED OPTION LIST PROPS
2213
+ /** @Deprecated - Use modelValue (or v-model) instead */
2214
+ selectedValue: {
2215
+ type: [String, Number],
2216
+ default: void 0
1684
2217
  }
1685
2218
  },
1686
2219
  emits: [
@@ -1691,60 +2224,38 @@ const Xt = {
1691
2224
  "after-leave"
1692
2225
  ],
1693
2226
  setup(e, { emit: a }) {
1694
- const t = a, n = $(!1);
1695
- function l() {
1696
- n.value = !0;
1697
- }
1698
- function r(i) {
1699
- n.value = !1, t("optselected", i), t("update:modelValue", i), t("close");
2227
+ const t = e, n = a, { transition: l } = ue(t), r = v(() => t.width === "toggle" ? "anchor" : t.width), s = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId), i = v(() => t.selectedValue || t.modelValue);
2228
+ function u(c) {
2229
+ n("optselected", c), n("update:modelValue", c);
1700
2230
  }
1701
- function d() {
1702
- n.value && (n.value = !1, t("close"));
1703
- }
1704
- return (i, o) => (s(), V(f(Xe), {
1705
- shown: e.shown,
1706
- preloaded: e.preloaded,
1707
- "anchor-id": e.anchorId,
1708
- center: e.center,
2231
+ return (c, f) => (d(), V(Xa, {
2232
+ "anchor-id": o.value,
2233
+ breakout: e.breakout,
1709
2234
  "container-id": e.containerId,
1710
- "enter-controlled": e.enterControlled,
1711
- "enter-trigger": e.enterTrigger,
2235
+ "focus-on-show": e.focusOnShow,
1712
2236
  "helper-description": e.helperDescription,
1713
2237
  "helper-text": e.helperText,
1714
- "leave-trigger": e.leaveTrigger,
1715
- position: e.position,
1716
- right: e.right,
1717
- "toggle-id": e.toggleId,
1718
- top: e.top,
2238
+ label: e.label,
2239
+ "model-value": i.value,
2240
+ "options-id": e.optionsId,
2241
+ position: s.value,
2242
+ preloaded: e.preloaded,
2243
+ "prevent-tab": e.preventTab,
2244
+ shown: p(l),
1719
2245
  "use-mobile-style": e.useMobileStyle,
1720
- width: e.width,
1721
- onClose: d,
1722
- onAfterEnter: o[0] || (o[0] = (u) => t("after-enter")),
1723
- onEnter: l,
1724
- onAfterLeave: o[1] || (o[1] = (u) => t("after-leave"))
2246
+ width: r.value,
2247
+ onClose: f[0] || (f[0] = (g) => n("close")),
2248
+ onAfterEnter: f[1] || (f[1] = (g) => n("after-enter")),
2249
+ onAfterLeave: f[2] || (f[2] = (g) => n("after-leave")),
2250
+ "onUpdate:modelValue": u
1725
2251
  }, {
1726
- default: E(() => [
1727
- P(f(Pe), {
1728
- "focus-on-show": e.focusOnShow,
1729
- label: e.label,
1730
- "model-value": e.modelValue,
1731
- "options-id": e.optionsId,
1732
- "prevent-tab": e.preventTab,
1733
- "selected-value": e.selectedValue,
1734
- shown: n.value,
1735
- "onUpdate:modelValue": r,
1736
- onClose: d
1737
- }, {
1738
- default: E(() => [
1739
- L(i.$slots, "default")
1740
- ]),
1741
- _: 3
1742
- }, 8, ["focus-on-show", "label", "model-value", "options-id", "prevent-tab", "selected-value", "shown"])
2252
+ default: O(() => [
2253
+ E(c.$slots, "default")
1743
2254
  ]),
1744
2255
  _: 3
1745
- }, 8, ["shown", "preloaded", "anchor-id", "center", "container-id", "enter-controlled", "enter-trigger", "helper-description", "helper-text", "leave-trigger", "position", "right", "toggle-id", "top", "use-mobile-style", "width"]));
2256
+ }, 8, ["anchor-id", "breakout", "container-id", "focus-on-show", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
1746
2257
  }
1747
- }, xa = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], Aa = {
2258
+ }, Za = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], Ja = {
1748
2259
  __name: "BsFilterButton",
1749
2260
  props: {
1750
2261
  badgeCount: {
@@ -1773,8 +2284,8 @@ const Xt = {
1773
2284
  }
1774
2285
  },
1775
2286
  setup(e) {
1776
- const a = e, t = g(() => a.badgeCount > 0);
1777
- return (n, l) => (s(), p("button", {
2287
+ const a = e, t = v(() => a.badgeCount > 0);
2288
+ return (n, l) => (d(), h("button", {
1778
2289
  class: "bs-filter-button",
1779
2290
  "aria-controls": e.optionsId,
1780
2291
  "aria-expanded": e.open,
@@ -1784,21 +2295,21 @@ const Xt = {
1784
2295
  disabled: e.disabled,
1785
2296
  type: "button"
1786
2297
  }, [
1787
- t.value ? (s(), V(Dt, {
2298
+ t.value ? (d(), V(Ut, {
1788
2299
  key: 0,
1789
2300
  color: "blue",
1790
2301
  count: e.badgeCount,
1791
2302
  label: "active filter",
1792
2303
  position: "left",
1793
2304
  variant: "notext"
1794
- }, null, 8, ["count"])) : I("", !0),
1795
- L(n.$slots, "label", {}, () => [
1796
- j(T(e.label), 1)
2305
+ }, null, 8, ["count"])) : $("", !0),
2306
+ E(n.$slots, "label", {}, () => [
2307
+ U(T(e.label), 1)
1797
2308
  ]),
1798
- P(f(Ye))
1799
- ], 8, xa));
2309
+ D(p(tt))
2310
+ ], 8, Za));
1800
2311
  }
1801
- }, La = ["id"], fl = {
2312
+ }, _a = ["id"], El = {
1802
2313
  __name: "BsDropdownWithToggle",
1803
2314
  props: {
1804
2315
  breakout: {
@@ -1860,234 +2371,129 @@ const Xt = {
1860
2371
  },
1861
2372
  emits: ["update:selectedOptions", "update:selectedOption", "toggled", "close"],
1862
2373
  setup(e, { emit: a }) {
1863
- const t = e, n = a, l = $(!1), r = $(!1), d = $(null), i = g(() => Ee(async () => await (t.multiselect ? Promise.resolve().then(() => Ta) : Promise.resolve().then(() => fa)))), [o, u, c] = Y(3);
1864
- z(r, (v) => {
1865
- v && d.value.$el.blur();
1866
- }), U(() => {
1867
- S(), de(() => l.value = !0);
1868
- }), ae(w);
1869
- function h() {
1870
- r.value = !1, n("close"), d.value.$el.focus();
1871
- }
1872
- function m() {
1873
- r.value && h();
1874
- }
1875
- function b() {
1876
- r.value = !0;
2374
+ const t = e, n = a, l = y(!1), r = y(null), s = v(() => Me(async () => await (t.multiselect ? Promise.resolve().then(() => Qa) : Promise.resolve().then(() => Oa)))), [o, i] = Y(2);
2375
+ z(l, (x) => {
2376
+ x && r.value.$el.blur();
2377
+ });
2378
+ function u() {
2379
+ l.value = !1, n("close"), r.value.$el.focus();
1877
2380
  }
1878
- function x(v) {
1879
- n("update:selectedOptions", v);
2381
+ function c() {
2382
+ l.value && u();
1880
2383
  }
1881
- function C(v) {
1882
- t.multiselect || (n("update:selectedOption", v), h());
2384
+ function f() {
2385
+ l.value = !0;
1883
2386
  }
1884
- function S() {
1885
- if (t.breakout) {
1886
- const v = document.querySelector("body"), k = document.createElement("div");
1887
- k.id = u.value, k.style.position = "absolute", v.insertAdjacentElement("afterbegin", k);
1888
- }
2387
+ function g(x) {
2388
+ n("update:selectedOptions", x);
1889
2389
  }
1890
- function w() {
1891
- t.breakout && document.querySelector(`#${u.value}`).remove();
2390
+ function m(x) {
2391
+ t.multiselect || (n("update:selectedOption", x), u());
1892
2392
  }
1893
- return (v, k) => (s(), p("div", {
2393
+ return (x, k) => (d(), h("div", {
1894
2394
  class: "bs-dropdown-with-toggle",
1895
- id: e.breakout ? v.$attrs.id : v.$attrs.id || f(u)
2395
+ id: x.$attrs.id
1896
2396
  }, [
1897
- P(Aa, {
2397
+ D(Ja, {
1898
2398
  ref_key: "toggleRef",
1899
- ref: d,
1900
- "aria-controls": f(c),
2399
+ ref: r,
2400
+ "aria-controls": p(i),
1901
2401
  "aria-expanded": e.open,
1902
2402
  disabled: e.disabled,
1903
- id: f(o),
2403
+ id: p(o),
1904
2404
  open: e.open,
1905
- "options-id": f(c),
2405
+ "options-id": p(i),
1906
2406
  size: e.toggleSize,
1907
- onClick: k[0] || (k[0] = (O) => v.$emit("toggled"))
2407
+ onClick: k[0] || (k[0] = (w) => x.$emit("toggled"))
1908
2408
  }, {
1909
- label: E(() => [
1910
- L(v.$slots, "toggle-label", {}, () => [
1911
- j(T(e.toggleLabel), 1)
2409
+ label: O(() => [
2410
+ E(x.$slots, "toggle-label", {}, () => [
2411
+ U(T(e.toggleLabel), 1)
1912
2412
  ])
1913
2413
  ]),
1914
2414
  _: 3
1915
2415
  }, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size"]),
1916
- l.value ? (s(), V(nt, {
1917
- key: 0,
1918
- disabled: !e.breakout,
1919
- to: e.breakout ? `#${f(u)}` : void 0
1920
- }, [
1921
- P(Xe, {
1922
- shown: e.open,
1923
- "anchor-id": f(o),
1924
- "container-id": e.breakout ? f(u) : v.$attrs.id || f(u),
1925
- "helper-text": e.helperText,
1926
- "helper-description": e.helperDescription,
1927
- position: e.dropdownPosition,
1928
- preloaded: "",
1929
- "use-mobile-style": e.useMobileStyle,
1930
- width: e.dropdownWidth,
1931
- onClose: m,
1932
- onEnter: b
1933
- }, {
1934
- default: E(() => [
1935
- P(f(i), {
1936
- label: e.dropdownLabel,
1937
- "model-value": e.selectedOption,
1938
- options: e.options,
1939
- "options-id": f(c),
1940
- "selected-options": e.selectedOptions,
1941
- shown: e.open,
1942
- "onUpdate:modelValue": C,
1943
- "onUpdate:selectedOptions": x,
1944
- onClose: k[1] || (k[1] = (O) => e.multiselect ? void 0 : m())
1945
- }, {
1946
- default: E(() => [
1947
- e.multiselect ? I("", !0) : (s(), V(pe, {
1948
- key: 0,
1949
- options: e.options
1950
- }, null, 8, ["options"]))
1951
- ]),
1952
- _: 1
1953
- }, 8, ["label", "model-value", "options", "options-id", "selected-options", "shown"])
1954
- ]),
1955
- _: 1
1956
- }, 8, ["shown", "anchor-id", "container-id", "helper-text", "helper-description", "position", "use-mobile-style", "width"])
1957
- ], 8, ["disabled", "to"])) : I("", !0)
1958
- ], 8, La));
1959
- }
1960
- }, Va = {
1961
- class: "bs-field-details",
1962
- "data-component": "bs-field-details"
1963
- }, Ea = ["id", "data-error"], Pa = ["data-error"], Se = {
1964
- __name: "BsFieldDetails",
1965
- props: {
1966
- /** The number of characters that have been entered by the user. */
1967
- charCount: Number,
1968
- /** Pass value to show character count and set the maximum number of characters that are allowed to be submitted by the user. */
1969
- charMax: Number,
1970
- /** Applies error styles to the helper text. */
1971
- error: {
1972
- type: Boolean,
1973
- default: !1
1974
- },
1975
- /** Pass error text. Will be shown if `error` is `true`. */
1976
- errorMsg: String,
1977
- /** Pass single helper text. */
1978
- hint: String,
1979
- /** Adds an id to associate a hint to an input. */
1980
- hintId: String
1981
- },
1982
- setup(e) {
1983
- const a = e, t = g(() => a.error && a.errorMsg || a.hint);
1984
- return (n, l) => (s(), p("div", Va, [
1985
- t.value ? (s(), p("span", {
1986
- key: 0,
1987
- id: e.hintId,
1988
- class: "bs-hint",
1989
- "data-error": e.error
1990
- }, T(t.value), 9, Ea)) : I("", !0),
1991
- e.charMax ? (s(), p("span", {
1992
- key: 1,
1993
- "aria-description": "character count over character limit for the preceding text field",
1994
- class: "bs-character-count",
1995
- "data-error": a.charCount > a.charMax
1996
- }, T(a.charCount || "0") + " / " + T(a.charMax), 9, Pa)) : I("", !0)
1997
- ]));
2416
+ D(nt, {
2417
+ shown: e.open,
2418
+ "anchor-id": p(o),
2419
+ breakout: e.breakout,
2420
+ "helper-text": e.helperText,
2421
+ "helper-description": e.helperDescription,
2422
+ position: e.dropdownPosition,
2423
+ preloaded: "",
2424
+ "use-mobile-style": e.useMobileStyle,
2425
+ width: e.dropdownWidth,
2426
+ onClose: c,
2427
+ onEnter: f
2428
+ }, {
2429
+ default: O(() => [
2430
+ D(p(s), {
2431
+ label: e.dropdownLabel,
2432
+ "model-value": e.selectedOption,
2433
+ options: e.options,
2434
+ "options-id": p(i),
2435
+ "selected-options": e.selectedOptions,
2436
+ shown: e.open,
2437
+ "onUpdate:modelValue": m,
2438
+ "onUpdate:selectedOptions": g,
2439
+ onClose: k[1] || (k[1] = (w) => e.multiselect ? void 0 : c())
2440
+ }, {
2441
+ default: O(() => [
2442
+ e.multiselect ? $("", !0) : (d(), V(me, {
2443
+ key: 0,
2444
+ options: e.options
2445
+ }, null, 8, ["options"]))
2446
+ ]),
2447
+ _: 1
2448
+ }, 8, ["label", "model-value", "options", "options-id", "selected-options", "shown"])
2449
+ ]),
2450
+ _: 1
2451
+ }, 8, ["shown", "anchor-id", "breakout", "helper-text", "helper-description", "position", "use-mobile-style", "width"])
2452
+ ], 8, _a));
1998
2453
  }
1999
- }, Oa = ["view-box"], Da = ["id"], Ma = ["offset", "stop-color"], pl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2454
+ }, en = ["view-box"], tn = ["id"], an = ["offset", "stop-color"], Dl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2000
2455
  __name: "BsIconGradientWrapper",
2001
2456
  setup(e) {
2002
- const a = $(null), t = $(null), n = [
2457
+ const a = y(null), t = y(null), n = [
2003
2458
  { offset: 0.1326, color: "#EE282A" },
2004
2459
  { offset: 0.5466, color: "#1C0087" },
2005
2460
  { offset: 0.9715, color: "#0086EA" }
2006
2461
  ], [l] = Y();
2007
- return U(() => {
2462
+ return W(() => {
2008
2463
  t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
2009
- }), (r, d) => (s(), p(N, null, [
2010
- B("span", R({
2464
+ }), (r, s) => (d(), h(j, null, [
2465
+ B("span", P({
2011
2466
  ref_key: "svgWrapperRef",
2012
2467
  ref: a,
2013
2468
  class: "bs-icon-gradient-wrapper",
2014
- style: `fill: url(#${f(l)});`
2469
+ style: `fill: url(#${p(l)});`
2015
2470
  }, r.$attrs), [
2016
- L(r.$slots, "default")
2471
+ E(r.$slots, "default")
2017
2472
  ], 16),
2018
- (s(), p("svg", {
2473
+ (d(), h("svg", {
2019
2474
  xmlns: "http://www.w3.org/2000/svg",
2020
2475
  "view-box": t.value,
2021
2476
  width: "0",
2022
2477
  height: "0"
2023
2478
  }, [
2024
2479
  B("linearGradient", {
2025
- id: f(l),
2480
+ id: p(l),
2026
2481
  x1: "0",
2027
2482
  y1: "0",
2028
2483
  x2: "100%",
2029
2484
  y2: "100%",
2030
2485
  "gradient-units": "userSpaceOnUse"
2031
2486
  }, [
2032
- (s(), p(N, null, X(n, (i) => B("stop", {
2033
- key: i.offset,
2034
- offset: i.offset,
2035
- "stop-color": i.color
2036
- }, null, 8, Ma)), 64))
2037
- ], 8, Da)
2038
- ], 8, Oa))
2487
+ (d(), h(j, null, Z(n, (o) => B("stop", {
2488
+ key: o.offset,
2489
+ offset: o.offset,
2490
+ "stop-color": o.color
2491
+ }, null, 8, an)), 64))
2492
+ ], 8, tn)
2493
+ ], 8, en))
2039
2494
  ], 64));
2040
2495
  }
2041
- }), qa = ["data-error", "id", "value"], Me = {
2042
- __name: "BsInput",
2043
- props: {
2044
- error: {
2045
- type: Boolean,
2046
- default: !1
2047
- },
2048
- hintId: String,
2049
- /** @Deprecated - Just set `id` since it will fall-through to the inner input element. */
2050
- inputId: String,
2051
- modelValue: [String, Number],
2052
- value: [String, Number]
2053
- },
2054
- emits: ["update:modelValue"],
2055
- setup(e, { emit: a }) {
2056
- const t = e, n = a, l = G(), r = g(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
2057
- function d(i) {
2058
- const o = l.type === "number" ? parseInt(i.target.value) : i.target.value;
2059
- n("update:modelValue", o);
2060
- }
2061
- return (i, o) => (s(), p("input", R({
2062
- class: "bs-input",
2063
- "data-component": "bs-input",
2064
- "data-error": e.error,
2065
- id: i.$attrs.id || e.inputId,
2066
- value: e.value || e.modelValue,
2067
- onInput: d
2068
- }, r.value), null, 16, qa));
2069
- }
2070
- }, za = ["data-disabled", "data-error", "data-variant", "data-multifocus"], Je = {
2071
- __name: "BsInputAddon",
2072
- props: {
2073
- disabled: { type: Boolean, default: !1 },
2074
- error: { type: Boolean, default: !1 },
2075
- multifocus: { type: Boolean, default: !1 },
2076
- variant: { type: String, validator: (e) => e === "inner-bordered" }
2077
- },
2078
- setup(e) {
2079
- return (a, t) => (s(), p("div", {
2080
- class: "bs-input-addon",
2081
- "data-component": "bs-input-addon",
2082
- "data-disabled": e.disabled,
2083
- "data-error": e.error,
2084
- "data-variant": e.variant,
2085
- "data-multifocus": e.multifocus
2086
- }, [
2087
- L(a.$slots, "default")
2088
- ], 8, za));
2089
- }
2090
- }, hl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2496
+ }), Ol = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2091
2497
  __name: "BsInputField",
2092
2498
  props: {
2093
2499
  /** Sets the disabled state on input, disabled styles on label. */
@@ -2134,7 +2540,7 @@ const Xt = {
2134
2540
  },
2135
2541
  emits: ["update:modelValue"],
2136
2542
  setup(e, { emit: a }) {
2137
- const t = e, n = G(), [l, r] = Y(2), { toChild: d, toRoot: i } = ie(t, n, [
2543
+ const t = e, n = G(), [l, r] = Y(2), { toChild: s, toRoot: o } = ie(t, n, [
2138
2544
  "aria-label",
2139
2545
  "autocomplete",
2140
2546
  "max",
@@ -2142,46 +2548,46 @@ const Xt = {
2142
2548
  "min",
2143
2549
  "minlength",
2144
2550
  "name"
2145
- ]), o = g(() => {
2146
- var h, m;
2147
- return ((m = (h = t.hints) == null ? void 0 : h.join) == null ? void 0 : m.call(h, `
2551
+ ]), i = v(() => {
2552
+ var f, g;
2553
+ return ((g = (f = t.hints) == null ? void 0 : f.join) == null ? void 0 : g.call(f, `
2148
2554
  `)) || t.hints;
2149
- }), u = g(() => t.error && t.errorMsg || t.hint || o.value || void 0), c = g(() => t.inputId || l.value);
2150
- return (h, m) => (s(), p("div", R({ "data-component": "bs-input-field" }, f(i)), [
2151
- e.label || h.$slots.label ? (s(), V(ne, {
2555
+ }), u = v(() => t.error && t.errorMsg || t.hint || i.value || void 0), c = v(() => t.inputId || l.value);
2556
+ return (f, g) => (d(), h("div", P({ "data-component": "bs-input-field" }, p(o)), [
2557
+ e.label || f.$slots.label ? (d(), V(ne, {
2152
2558
  key: 0,
2153
2559
  for: c.value,
2154
2560
  disabled: e.disabled,
2155
2561
  required: e.required
2156
2562
  }, {
2157
- default: E(() => [
2158
- L(h.$slots, "label", {}, () => [
2159
- j(T(e.label), 1)
2563
+ default: O(() => [
2564
+ E(f.$slots, "label", {}, () => [
2565
+ U(T(e.label), 1)
2160
2566
  ])
2161
2567
  ]),
2162
2568
  _: 3
2163
- }, 8, ["for", "disabled", "required"])) : I("", !0),
2164
- P(Me, R({
2569
+ }, 8, ["for", "disabled", "required"])) : $("", !0),
2570
+ D(fe, P({
2165
2571
  disabled: e.disabled,
2166
2572
  error: e.error,
2167
- "hint-id": f(r),
2573
+ "hint-id": p(r),
2168
2574
  id: c.value,
2169
2575
  placeholder: e.placeholder,
2170
2576
  required: e.required,
2171
2577
  type: e.type,
2172
2578
  value: e.value || e.modelValue,
2173
- "onUpdate:modelValue": m[0] || (m[0] = (b) => h.$emit("update:modelValue", b))
2174
- }, f(d)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
2175
- u.value ? (s(), V(Se, {
2579
+ "onUpdate:modelValue": g[0] || (g[0] = (m) => f.$emit("update:modelValue", m))
2580
+ }, p(s)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
2581
+ u.value ? (d(), V(ce, {
2176
2582
  key: 1,
2177
2583
  error: e.error,
2178
2584
  "error-msg": e.errorMsg,
2179
- hint: e.hint || o.value,
2180
- "hint-id": f(r)
2181
- }, null, 8, ["error", "error-msg", "hint", "hint-id"])) : I("", !0)
2585
+ hint: e.hint || i.value,
2586
+ "hint-id": p(r)
2587
+ }, null, 8, ["error", "error-msg", "hint", "hint-id"])) : $("", !0)
2182
2588
  ], 16));
2183
2589
  }
2184
- }), Ke = {
2590
+ }), Ze = {
2185
2591
  A: "🇦",
2186
2592
  B: "🇧",
2187
2593
  C: "🇨",
@@ -2208,7 +2614,7 @@ const Xt = {
2208
2614
  X: "🇽",
2209
2615
  Y: "🇾",
2210
2616
  Z: "🇿"
2211
- }, Le = {
2617
+ }, Ee = {
2212
2618
  data: {
2213
2619
  allCountries: null,
2214
2620
  byCountryCode: null,
@@ -2234,8 +2640,8 @@ const Xt = {
2234
2640
  * @returns {Country[]} an array of country objects
2235
2641
  */
2236
2642
  initSourceData() {
2237
- return this.data.allCountries || (this.data.allCountries = St().map((e) => {
2238
- const a = wt(e), t = Ke[a[0]] + Ke[a[1]] || "";
2643
+ return this.data.allCountries || (this.data.allCountries = At().map((e) => {
2644
+ const a = Lt(e), t = Ze[a[0]] + Ze[a[1]] || "";
2239
2645
  return {
2240
2646
  label: `+${e}`,
2241
2647
  flag: t,
@@ -2249,13 +2655,13 @@ const Xt = {
2249
2655
  this.data[e][t[a]] = t;
2250
2656
  }));
2251
2657
  }
2252
- }, Ra = {
2658
+ }, nn = {
2253
2659
  class: "bs-input-phone",
2254
2660
  "data-component": "bs-input-phone"
2255
- }, Na = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], ja = {
2661
+ }, ln = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], on = {
2256
2662
  "aria-hidden": "true",
2257
2663
  style: { width: "1.25rem" }
2258
- }, Fa = { "aria-hidden": "true" }, vl = {
2664
+ }, rn = { "aria-hidden": "true" }, ql = {
2259
2665
  __name: "BsInputPhone",
2260
2666
  props: {
2261
2667
  deferValidation: {
@@ -2317,148 +2723,148 @@ const Xt = {
2317
2723
  "Escape",
2318
2724
  "Home",
2319
2725
  "Tab"
2320
- ], d = $(null), i = $(1), o = $([]), u = $(null), [
2726
+ ], s = y(null), o = y(1), i = y([]), u = y(null), [
2321
2727
  c,
2322
- h,
2323
- m,
2324
- b
2325
- ] = Y(4), x = $(!1), C = $(""), S = $(""), w = $(!1), v = $(!1);
2728
+ f,
2729
+ g,
2730
+ m
2731
+ ] = Y(4), x = y(!1), k = y(""), w = y(""), I = y(!1), b = y(!1);
2326
2732
  a({
2327
- validationErr: w,
2328
- validationErrMsg: S
2733
+ validationErr: I,
2734
+ validationErrMsg: w
2329
2735
  });
2330
- const k = g(() => C.value ? `+${i.value}${C.value}` : ""), O = g(() => `Country code: ${i.value}. Click to change.`), D = g(() => n.errorMsg || S.value), F = g(() => n.error || w.value), we = g(() => n.hint || F.value && D.value);
2331
- z(k, (M) => {
2332
- l("update:modelValue", M);
2333
- }), z(() => n.modelValue, ee), Te(), U(() => x.value = !0);
2334
- function ee(M, H) {
2335
- M === "" && M !== H && (C.value = "");
2736
+ const C = v(() => k.value ? `+${o.value}${k.value}` : ""), q = v(() => `Country code: ${o.value}. Click to change.`), A = v(() => n.errorMsg || w.value), M = v(() => n.error || I.value), Q = v(() => n.hint || M.value && A.value);
2737
+ z(C, (R) => {
2738
+ l("update:modelValue", R);
2739
+ }), z(() => n.modelValue, X), Ae(), W(() => x.value = !0);
2740
+ function X(R, H) {
2741
+ R === "" && R !== H && (k.value = "");
2336
2742
  }
2337
- function re() {
2338
- var M;
2339
- v.value && (v.value = !1, (M = d.value) == null || M.focus());
2743
+ function _() {
2744
+ var R;
2745
+ b.value && (b.value = !1, (R = s.value) == null || R.focus());
2340
2746
  }
2341
- function se(M) {
2747
+ function de(R) {
2342
2748
  var H;
2343
- i.value = M, v.value = !1, (H = d.value) == null || H.focus(), ue(M);
2749
+ o.value = R, b.value = !1, (H = s.value) == null || H.focus(), pe(R);
2344
2750
  }
2345
- function ke() {
2346
- n.deferValidation && ce(k.value), l("input-blur");
2751
+ function Ce() {
2752
+ n.deferValidation && he(C.value), l("input-blur");
2347
2753
  }
2348
- function Ie(M) {
2349
- C.value = M.target.value, n.deferValidation || ce(k.value);
2754
+ function xe(R) {
2755
+ k.value = R.target.value, n.deferValidation || he(C.value);
2350
2756
  }
2351
- function Ce(M) {
2352
- !M.key.match(/[0-9]/) && !r.includes(M.key) && M.preventDefault();
2757
+ function Te(R) {
2758
+ !R.key.match(/[0-9]/) && !r.includes(R.key) && R.preventDefault();
2353
2759
  }
2354
- function Te() {
2355
- Le.initSourceData(), xe(), ue(i.value);
2760
+ function Ae() {
2761
+ Ee.initSourceData(), Le(), pe(o.value);
2356
2762
  }
2357
- function xe() {
2358
- let M = Fe(n.modelValue);
2359
- M.valid ? (i.value = M.countryCode, C.value = M.number.significant) : C.value = n.modelValue, o.value = Le.data.allCountries.map((H) => ({
2763
+ function Le() {
2764
+ let R = Ge(n.modelValue);
2765
+ R.valid ? (o.value = R.countryCode, k.value = R.number.significant) : k.value = n.modelValue, i.value = Ee.data.allCountries.map((H) => ({
2360
2766
  ...H,
2361
- isSelected: i.value === H
2767
+ isSelected: o.value === H
2362
2768
  }));
2363
2769
  }
2364
- function ue(M) {
2365
- u.value = Le.getCountryByCountryCode(M);
2770
+ function pe(R) {
2771
+ u.value = Ee.getCountryByCountryCode(R);
2366
2772
  }
2367
- function ce(M) {
2368
- w.value = M ? !Fe(M).valid : !1, S.value = w.value ? "Invalid phone number" : "";
2773
+ function he(R) {
2774
+ I.value = R ? !Ge(R).valid : !1, w.value = I.value ? "Invalid phone number" : "";
2369
2775
  }
2370
- return (M, H) => (s(), p("div", Ra, [
2371
- P(ne, {
2372
- for: e.inputId || f(b),
2776
+ return (R, H) => (d(), h("div", nn, [
2777
+ D(ne, {
2778
+ for: e.inputId || p(m),
2373
2779
  required: e.required,
2374
- class: _({ "visually-hidden": e.hideLabel })
2780
+ class: ae({ "visually-hidden": e.hideLabel })
2375
2781
  }, {
2376
- default: E(() => [
2377
- j(T(e.label), 1)
2782
+ default: O(() => [
2783
+ U(T(e.label), 1)
2378
2784
  ]),
2379
2785
  _: 1
2380
2786
  }, 8, ["for", "required", "class"]),
2381
- P(Je, {
2787
+ D(ke, {
2382
2788
  disabled: e.disabled,
2383
- error: F.value,
2789
+ error: M.value,
2384
2790
  multifocus: !0,
2385
2791
  variant: "inner-bordered"
2386
2792
  }, {
2387
- default: E(() => {
2793
+ default: O(() => {
2388
2794
  var K;
2389
2795
  return [
2390
2796
  B("button", {
2391
- id: f(c),
2797
+ id: p(c),
2392
2798
  ref_key: "countryCodesToggle",
2393
- ref: d,
2394
- "aria-controls": f(h),
2395
- "aria-expanded": v.value,
2799
+ ref: s,
2800
+ "aria-controls": p(f),
2801
+ "aria-expanded": b.value,
2396
2802
  "aria-haspopup": "listbox",
2397
- "aria-label": O.value,
2803
+ "aria-label": q.value,
2398
2804
  disabled: e.disabled,
2399
2805
  type: "button",
2400
- onClick: H[0] || (H[0] = (qe) => v.value = !v.value)
2806
+ onClick: H[0] || (H[0] = (Ne) => b.value = !b.value)
2401
2807
  }, [
2402
2808
  B("span", null, T((K = u.value) == null ? void 0 : K.flag), 1),
2403
- B("span", null, "+" + T(i.value), 1),
2404
- P(f(rt), { size: "sm" })
2405
- ], 8, Na),
2406
- P(Me, {
2407
- "input-id": e.inputId || f(b),
2809
+ B("span", null, "+" + T(o.value), 1),
2810
+ D(p(pt), { size: "sm" })
2811
+ ], 8, ln),
2812
+ D(fe, {
2813
+ "input-id": e.inputId || p(m),
2408
2814
  disabled: e.disabled,
2409
- "hint-id": f(m),
2815
+ "hint-id": p(g),
2410
2816
  placeholder: e.placeholder,
2411
- value: C.value,
2817
+ value: k.value,
2412
2818
  "data-autowidth": "",
2413
2819
  type: "tel",
2414
- onInput: Ie,
2415
- onFocusout: ke,
2416
- onKeydown: Ce
2820
+ onInput: xe,
2821
+ onFocusout: Ce,
2822
+ onKeydown: Te
2417
2823
  }, null, 8, ["input-id", "disabled", "hint-id", "placeholder", "value"])
2418
2824
  ];
2419
2825
  }),
2420
2826
  _: 1
2421
2827
  }, 8, ["disabled", "error"]),
2422
- he(P(Se, {
2423
- error: F.value,
2424
- "error-msg": D.value,
2828
+ ge(D(ce, {
2829
+ error: M.value,
2830
+ "error-msg": A.value,
2425
2831
  hint: e.hint,
2426
- "hint-id": f(m)
2832
+ "hint-id": p(g)
2427
2833
  }, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
2428
- [ve, we.value]
2834
+ [ye, Q.value]
2429
2835
  ]),
2430
- x.value ? (s(), V(De, {
2836
+ x.value ? (d(), V(Re, {
2431
2837
  key: 0,
2432
- "anchor-id": f(c),
2838
+ "anchor-id": p(c),
2433
2839
  "helper-text": "Country Code",
2434
2840
  label: "Country Code",
2435
- "model-value": i.value,
2436
- "options-id": f(h),
2841
+ "model-value": o.value,
2842
+ "options-id": p(f),
2437
2843
  preloaded: "",
2438
- shown: v.value,
2844
+ shown: b.value,
2439
2845
  width: "content",
2440
- onClose: re,
2441
- "onUpdate:modelValue": se
2846
+ onClose: _,
2847
+ "onUpdate:modelValue": de
2442
2848
  }, {
2443
- default: E(() => [
2444
- (s(!0), p(N, null, X(o.value, (K) => (s(), V(Oe, {
2849
+ default: O(() => [
2850
+ (d(!0), h(j, null, Z(i.value, (K) => (d(), V(ze, {
2445
2851
  "aria-label": K.value,
2446
2852
  key: K.value,
2447
2853
  value: `${K.value}`,
2448
2854
  variant: "2-col"
2449
2855
  }, {
2450
- default: E(() => [
2451
- B("span", ja, T(K == null ? void 0 : K.flag), 1),
2452
- B("span", Fa, T(K.label), 1)
2856
+ default: O(() => [
2857
+ B("span", on, T(K == null ? void 0 : K.flag), 1),
2858
+ B("span", rn, T(K.label), 1)
2453
2859
  ]),
2454
2860
  _: 2
2455
2861
  }, 1032, ["aria-label", "value"]))), 128))
2456
2862
  ]),
2457
2863
  _: 1
2458
- }, 8, ["anchor-id", "model-value", "options-id", "shown"])) : I("", !0)
2864
+ }, 8, ["anchor-id", "model-value", "options-id", "shown"])) : $("", !0)
2459
2865
  ]));
2460
2866
  }
2461
- }, Wa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2867
+ }, sn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2462
2868
  __name: "BsInputSearch",
2463
2869
  props: {
2464
2870
  /** Sets the disabled state on input, disabled styles on label. */
@@ -2509,37 +2915,37 @@ const Xt = {
2509
2915
  "maxlength",
2510
2916
  "minlength",
2511
2917
  "name"
2512
- ]), d = g(() => !t.disabled && !t.hideClear && t.variant !== "filter");
2513
- return (i, o) => (s(), V(Je, R({
2918
+ ]), s = v(() => !t.disabled && !t.hideClear && t.variant !== "filter");
2919
+ return (o, i) => (d(), V(ke, P({
2514
2920
  class: "bs-input-search",
2515
2921
  "data-component": "bs-input-search",
2516
2922
  "data-variant": e.variant,
2517
2923
  disabled: e.disabled
2518
- }, f(r)), {
2519
- default: E(() => [
2520
- e.hideSearchIcon ? I("", !0) : (s(), V(f(st), { key: 0 })),
2521
- P(Me, R({
2924
+ }, p(r)), {
2925
+ default: O(() => [
2926
+ e.hideSearchIcon ? $("", !0) : (d(), V(p(ht), { key: 0 })),
2927
+ D(fe, P({
2522
2928
  "data-autowidth": "",
2523
2929
  disabled: e.disabled,
2524
2930
  "input-id": e.inputId,
2525
2931
  placeholder: e.placeholder,
2526
2932
  value: e.value || e.modelValue,
2527
- "onUpdate:modelValue": o[0] || (o[0] = (u) => i.$emit("update:modelValue", u))
2528
- }, f(l)), null, 16, ["disabled", "input-id", "placeholder", "value"]),
2529
- he(B("button", {
2933
+ "onUpdate:modelValue": i[0] || (i[0] = (u) => o.$emit("update:modelValue", u))
2934
+ }, p(l)), null, 16, ["disabled", "input-id", "placeholder", "value"]),
2935
+ ge(B("button", {
2530
2936
  title: "Clear",
2531
2937
  type: "button",
2532
- onClick: o[1] || (o[1] = (u) => i.$emit("clear"))
2938
+ onClick: i[1] || (i[1] = (u) => o.$emit("clear"))
2533
2939
  }, [
2534
- P(f(be), { size: "sm" })
2940
+ D(p(Be), { size: "sm" })
2535
2941
  ], 512), [
2536
- [ve, d.value]
2942
+ [ye, s.value]
2537
2943
  ])
2538
2944
  ]),
2539
2945
  _: 1
2540
2946
  }, 16, ["data-variant", "disabled"]));
2541
2947
  }
2542
- }), bl = {
2948
+ }), Ml = {
2543
2949
  __name: "BsInputTypeahead",
2544
2950
  props: {
2545
2951
  characterThreshold: {
@@ -2599,58 +3005,58 @@ const Xt = {
2599
3005
  },
2600
3006
  emits: ["update:inputValue", "update:optionsValue"],
2601
3007
  setup(e, { emit: a }) {
2602
- const t = e, n = a, l = $(!1), r = $(!1);
2603
- let d = [];
3008
+ const t = e, n = a, l = y(!1), r = y(!1);
3009
+ let s = [];
2604
3010
  z(() => t.inputValue, () => {
2605
- r.value ? r.value = !1 : b();
3011
+ r.value ? r.value = !1 : m();
2606
3012
  });
2607
- const i = g(() => `${t.typeaheadId}-input-addon`), o = g(() => `${t.typeaheadId}-input`), u = g(() => `${t.typeaheadId}-options`), c = g(() => {
3013
+ const o = v(() => `${t.typeaheadId}-input-addon`), i = v(() => `${t.typeaheadId}-input`), u = v(() => `${t.typeaheadId}-options`), c = v(() => {
2608
3014
  if (l.value) {
2609
- let S = t.options;
2610
- const w = t.inputValue.toLowerCase(), v = t.filterType === "includes" ? "includes" : "startsWith";
2611
- return S = h(S, w, v), S = S.slice(0, t.maxOptions), S = m(S, w, v), d = S, S;
3015
+ let w = t.options;
3016
+ const I = t.inputValue.toLowerCase(), b = t.filterType === "includes" ? "includes" : "startsWith";
3017
+ return w = f(w, I, b), w = w.slice(0, t.maxOptions), w = g(w, I, b), s = w, w;
2612
3018
  } else
2613
- return d;
3019
+ return s;
2614
3020
  });
2615
- function h(S, w, v) {
2616
- return t.internalFiltering ? S.filter((k) => k.label.toLowerCase()[v](w)) : S;
3021
+ function f(w, I, b) {
3022
+ return t.internalFiltering ? w.filter((C) => C.label.toLowerCase()[b](I)) : w;
2617
3023
  }
2618
- function m(S, w, v) {
2619
- return S.map((k) => {
2620
- let O = k.label;
2621
- if (w !== "") {
2622
- const D = v === "includes" ? "gi" : "i", F = new RegExp(`(${w})`, D);
2623
- O = k.label.replace(F, '<span style="color: var(--bs-blue-base)">$1</span>');
3024
+ function g(w, I, b) {
3025
+ return w.map((C) => {
3026
+ let q = C.label;
3027
+ if (I !== "") {
3028
+ const A = b === "includes" ? "gi" : "i", M = new RegExp(`(${I})`, A);
3029
+ q = C.label.replace(M, '<span style="color: var(--bs-blue-base)">$1</span>');
2624
3030
  }
2625
- return { ...k, labelHtml: O };
3031
+ return { ...C, labelHtml: q };
2626
3032
  });
2627
3033
  }
2628
- function b() {
3034
+ function m() {
2629
3035
  t.inputValue.length >= t.characterThreshold ? l.value = !0 : l.value = !1;
2630
3036
  }
2631
3037
  function x() {
2632
- n("update:inputValue", ""), n("update:optionsValue", ""), document.getElementById(o.value).focus();
3038
+ n("update:inputValue", ""), n("update:optionsValue", ""), document.getElementById(i.value).focus();
2633
3039
  }
2634
- function C(S) {
3040
+ function k(w) {
2635
3041
  r.value = !0, l.value = !1;
2636
- const w = c.value.find((v) => v.value === S);
2637
- n("update:inputValue", w.label), n("update:optionsValue", S);
3042
+ const I = c.value.find((b) => b.value === w);
3043
+ n("update:inputValue", I.label), n("update:optionsValue", w);
2638
3044
  }
2639
- return (S, w) => (s(), p(N, null, [
2640
- e.label || S.$slots.label ? (s(), V(ne, {
3045
+ return (w, I) => (d(), h(j, null, [
3046
+ e.label || w.$slots.label ? (d(), V(ne, {
2641
3047
  key: 0,
2642
- for: o.value,
3048
+ for: i.value,
2643
3049
  disabled: e.disabled,
2644
3050
  required: e.required
2645
3051
  }, {
2646
- default: E(() => [
2647
- L(S.$slots, "label", {}, () => [
2648
- j(T(e.label), 1)
3052
+ default: O(() => [
3053
+ E(w.$slots, "label", {}, () => [
3054
+ U(T(e.label), 1)
2649
3055
  ])
2650
3056
  ]),
2651
3057
  _: 3
2652
- }, 8, ["for", "disabled", "required"])) : I("", !0),
2653
- P(Wa, R({
3058
+ }, 8, ["for", "disabled", "required"])) : $("", !0),
3059
+ D(sn, P({
2654
3060
  "aria-controls": u.value,
2655
3061
  "aria-expanded": l.value,
2656
3062
  "aria-haspopup": "listbox",
@@ -2658,17 +3064,17 @@ const Xt = {
2658
3064
  disabled: e.disabled,
2659
3065
  "hide-clear": e.inputValue === "",
2660
3066
  "hide-search-icon": e.hideSearchIcon,
2661
- id: i.value,
2662
- "input-id": o.value,
3067
+ id: o.value,
3068
+ "input-id": i.value,
2663
3069
  placeholder: e.placeholder,
2664
3070
  value: e.inputValue
2665
- }, S.$attrs, {
3071
+ }, w.$attrs, {
2666
3072
  onClear: x,
2667
- onFocusin: b,
2668
- "onUpdate:modelValue": w[0] || (w[0] = (v) => n("update:inputValue", v))
3073
+ onFocusin: m,
3074
+ "onUpdate:modelValue": I[0] || (I[0] = (b) => n("update:inputValue", b))
2669
3075
  }), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "id", "input-id", "placeholder", "value"]),
2670
- P(De, {
2671
- "anchor-id": i.value,
3076
+ D(Re, {
3077
+ "anchor-id": o.value,
2672
3078
  "focus-on-show": !1,
2673
3079
  "model-value": e.optionsValue,
2674
3080
  "options-id": u.value,
@@ -2677,13 +3083,13 @@ const Xt = {
2677
3083
  shown: l.value,
2678
3084
  "use-mobile-style": !1,
2679
3085
  width: "toggle",
2680
- onClose: w[1] || (w[1] = (v) => l.value = !1),
2681
- "onUpdate:modelValue": C
3086
+ onClose: I[1] || (I[1] = (b) => l.value = !1),
3087
+ "onUpdate:modelValue": k
2682
3088
  }, {
2683
- default: E(() => [
2684
- P(pe, { options: c.value }, {
2685
- "no-options": E(() => [
2686
- j("No results found")
3089
+ default: O(() => [
3090
+ D(me, { options: c.value }, {
3091
+ "no-options": O(() => [
3092
+ U("No results found")
2687
3093
  ]),
2688
3094
  _: 1
2689
3095
  }, 8, ["options"])
@@ -2692,13 +3098,13 @@ const Xt = {
2692
3098
  }, 8, ["anchor-id", "model-value", "options-id", "shown"])
2693
3099
  ], 64));
2694
3100
  }
2695
- }, Ua = ["data-size", "data-variant"], Ga = /* @__PURE__ */ B("span", null, null, -1), Ha = /* @__PURE__ */ B("span", null, null, -1), Ka = /* @__PURE__ */ B("span", null, null, -1), Ya = /* @__PURE__ */ B("span", null, null, -1), Xa = /* @__PURE__ */ B("span", { class: "visually-hidden" }, "Loading", -1), Za = [
2696
- Ga,
2697
- Ha,
2698
- Ka,
2699
- Ya,
2700
- Xa
2701
- ], gl = {
3101
+ }, dn = ["data-size", "data-variant"], un = /* @__PURE__ */ B("span", null, null, -1), cn = /* @__PURE__ */ B("span", null, null, -1), fn = /* @__PURE__ */ B("span", null, null, -1), pn = /* @__PURE__ */ B("span", null, null, -1), hn = /* @__PURE__ */ B("span", { class: "visually-hidden" }, "Loading", -1), vn = [
3102
+ un,
3103
+ cn,
3104
+ fn,
3105
+ pn,
3106
+ hn
3107
+ ], Pl = {
2702
3108
  __name: "BsLoader",
2703
3109
  props: {
2704
3110
  size: {
@@ -2712,14 +3118,14 @@ const Xt = {
2712
3118
  }
2713
3119
  },
2714
3120
  setup(e) {
2715
- return (a, t) => (s(), p("span", {
3121
+ return (a, t) => (d(), h("span", {
2716
3122
  class: "bs-loader",
2717
3123
  "data-size": e.size,
2718
3124
  "data-variant": e.variant,
2719
3125
  role: "status"
2720
- }, Za, 8, Ua));
3126
+ }, vn, 8, dn));
2721
3127
  }
2722
- }, Ja = /* @__PURE__ */ B("div", { class: "bs-overlay" }, null, -1), Qa = {
3128
+ }, bn = /* @__PURE__ */ B("div", { class: "bs-overlay" }, null, -1), mn = {
2723
3129
  __name: "BsOverlay",
2724
3130
  props: {
2725
3131
  shown: {
@@ -2748,25 +3154,27 @@ const Xt = {
2748
3154
  },
2749
3155
  emits: ["after-enter", "after-leave"],
2750
3156
  setup(e, { emit: a }) {
2751
- const t = e, n = a, { transition: l } = Be(t);
2752
- return (r, d) => (s(), V(f($e), {
2753
- shown: f(l),
3157
+ const t = e, n = a, { transition: l } = ue(t);
3158
+ return watch(l, (r) => {
3159
+ r ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
3160
+ }), (r, s) => (d(), V(p(Ie), {
3161
+ shown: p(l),
2754
3162
  preloaded: e.preloaded,
2755
3163
  duration: 75,
2756
3164
  "enter-attribute": "data-shown",
2757
- onAfterEnter: d[0] || (d[0] = (i) => n("after-enter")),
2758
- onAfterLeave: d[1] || (d[1] = (i) => n("after-leave"))
3165
+ onAfterEnter: s[0] || (s[0] = (o) => n("after-enter")),
3166
+ onAfterLeave: s[1] || (s[1] = (o) => n("after-leave"))
2759
3167
  }, {
2760
- default: E(() => [
2761
- Ja
3168
+ default: O(() => [
3169
+ bn
2762
3170
  ]),
2763
3171
  _: 1
2764
3172
  }, 8, ["shown", "preloaded"]));
2765
3173
  }
2766
- }, _a = ["id", "role"], en = {
3174
+ }, gn = ["id", "role"], yn = {
2767
3175
  key: 0,
2768
3176
  class: "modal-title"
2769
- }, ml = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3177
+ }, zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2770
3178
  __name: "BsModal",
2771
3179
  props: {
2772
3180
  modalId: {
@@ -2811,81 +3219,81 @@ const Xt = {
2811
3219
  },
2812
3220
  emits: ["close", "after-enter", "after-leave"],
2813
3221
  setup(e, { emit: a }) {
2814
- const t = e, n = a, { transition: l } = Be(t);
3222
+ const t = e, n = a, { transition: l } = ue(t);
2815
3223
  let r = !1;
2816
- const d = $(null), i = (c) => {
2817
- d.value && c.target.closest(".bs-overlay") && n("close", t.modalId);
3224
+ const s = y(null), o = (c) => {
3225
+ s.value && c.target.closest(".bs-overlay") && n("close", t.modalId);
2818
3226
  };
2819
- U(() => {
2820
- document.addEventListener("click", i);
2821
- }), ae(() => {
2822
- document.removeEventListener("click", i);
2823
- }), ye(["Escape"], () => {
3227
+ W(() => {
3228
+ document.addEventListener("click", o);
3229
+ }), oe(() => {
3230
+ document.removeEventListener("click", o);
3231
+ }), $e(["Escape"], () => {
2824
3232
  r && n("close", t.modalId);
2825
3233
  });
2826
- const o = () => !t.title && t.closeButton, u = () => t.title && t.closeButton;
2827
- return (c, h) => (s(), p(N, null, [
2828
- P(Qa, {
2829
- shown: f(l),
3234
+ const i = () => !t.title && t.closeButton, u = () => t.title && t.closeButton;
3235
+ return (c, f) => (d(), h(j, null, [
3236
+ D(mn, {
3237
+ shown: p(l),
2830
3238
  preloaded: e.preloaded,
2831
3239
  "enter-controlled": e.enterControlled,
2832
3240
  "enter-trigger": e.enterTrigger,
2833
3241
  "leave-trigger": e.leaveTrigger
2834
3242
  }, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
2835
- P($e, {
2836
- shown: f(l),
3243
+ D(Ie, {
3244
+ shown: p(l),
2837
3245
  preloaded: e.preloaded,
2838
3246
  duration: 75,
2839
3247
  "enter-attribute": "data-shown",
2840
- onEnter: h[1] || (h[1] = (m) => lt(r) ? r.value = !0 : r = !0),
2841
- onAfterEnter: h[2] || (h[2] = (m) => n("after-enter")),
2842
- onAfterLeave: h[3] || (h[3] = (m) => n("after-leave"))
3248
+ onEnter: f[1] || (f[1] = (g) => ct(r) ? r.value = !0 : r = !0),
3249
+ onAfterEnter: f[2] || (f[2] = (g) => n("after-enter")),
3250
+ onAfterLeave: f[3] || (f[3] = (g) => n("after-leave"))
2843
3251
  }, {
2844
- default: E(() => [
2845
- B("div", R({
3252
+ default: O(() => [
3253
+ B("div", P({
2846
3254
  id: t.modalId,
2847
3255
  class: "bs-modal",
2848
3256
  role: e.alert ? "alertdialog" : "dialog",
2849
3257
  "aria-modal": "true"
2850
3258
  }, c.$attrs, {
2851
3259
  ref_key: "modalRef",
2852
- ref: d
3260
+ ref: s
2853
3261
  }), [
2854
- e.title || e.closeButton ? (s(), p("header", {
3262
+ e.title || e.closeButton ? (d(), h("header", {
2855
3263
  key: 0,
2856
- class: _({
2857
- "only-close-button-modal-header": o,
3264
+ class: ae({
3265
+ "only-close-button-modal-header": i,
2858
3266
  "modal-header": u
2859
3267
  })
2860
3268
  }, [
2861
- e.title ? (s(), p("h5", en, T(e.title), 1)) : I("", !0),
2862
- e.closeButton ? (s(), p("button", {
3269
+ e.title ? (d(), h("h5", yn, T(e.title), 1)) : $("", !0),
3270
+ e.closeButton ? (d(), h("button", {
2863
3271
  key: 1,
2864
3272
  type: "button",
2865
3273
  title: "Close Modal",
2866
3274
  "aria-label": "Close Modal",
2867
- onClick: h[0] || (h[0] = (m) => n("close", e.modalId))
3275
+ onClick: f[0] || (f[0] = (g) => n("close", e.modalId))
2868
3276
  }, [
2869
- P(f(be), { class: "close-button" })
2870
- ])) : I("", !0)
2871
- ], 2)) : I("", !0),
2872
- L(c.$slots, "default")
2873
- ], 16, _a)
3277
+ D(p(Be), { class: "close-button" })
3278
+ ])) : $("", !0)
3279
+ ], 2)) : $("", !0),
3280
+ E(c.$slots, "default")
3281
+ ], 16, gn)
2874
3282
  ]),
2875
3283
  _: 3
2876
3284
  }, 8, ["shown", "preloaded"])
2877
3285
  ], 64));
2878
3286
  }
2879
- }), tn = ["data-variant", "data-fixed"], an = {
3287
+ }), Bn = ["data-variant", "data-fixed"], Sn = {
2880
3288
  key: 0,
2881
3289
  class: "bs-pagination-carets"
2882
- }, nn = ["title", "disabled"], ln = { key: 0 }, on = ["title", "disabled"], rn = { key: 0 }, sn = {
3290
+ }, wn = ["title", "disabled"], $n = { key: 0 }, kn = ["title", "disabled"], In = { key: 0 }, Cn = {
2883
3291
  key: 1,
2884
3292
  class: "bs-pagination-page-numbers"
2885
- }, dn = ["title", "data-selected", "onClick"], un = { key: 2 }, cn = { key: 3 }, fn = /* @__PURE__ */ B("span", null, "Results Per Page:", -1), pn = { class: "bs-pagination-results-numbers" }, hn = ["data-selected", "disabled", "onClick"], vn = {
3293
+ }, xn = ["title", "data-selected", "onClick"], Tn = { key: 2 }, An = { key: 3 }, Ln = /* @__PURE__ */ B("span", null, "Results Per Page:", -1), Vn = { class: "bs-pagination-results-numbers" }, En = ["data-selected", "disabled", "onClick"], Dn = {
2886
3294
  key: 5,
2887
3295
  class: "bs-pagination-carets"
2888
- }, bn = ["title", "disabled"], gn = { key: 0 }, mn = ["title", "disabled"], yn = { key: 0 }, yl = {
3296
+ }, On = ["title", "disabled"], qn = { key: 0 }, Mn = ["title", "disabled"], Pn = { key: 0 }, Rl = {
2889
3297
  __name: "BsPagination",
2890
3298
  props: {
2891
3299
  // Used for all
@@ -2971,25 +3379,25 @@ const Xt = {
2971
3379
  },
2972
3380
  emits: ["selchange", "update:modelValue"],
2973
3381
  setup(e, { emit: a }) {
2974
- const t = e, n = a, l = $(null);
2975
- U(() => {
2976
- r.value ? l.value = r.value : t.variant === "results" ? l.value = C.value[0] : l.value = 1;
3382
+ const t = e, n = a, l = y(null);
3383
+ W(() => {
3384
+ r.value ? l.value = r.value : t.variant === "results" ? l.value = k.value[0] : l.value = 1;
2977
3385
  });
2978
- const r = g(() => t.modelValue || t.selection);
2979
- z(() => t.selection, (S) => {
2980
- l.value = S;
2981
- }), z(() => t.modelValue, (S) => {
2982
- l.value = S;
2983
- }), z(l, (S, w) => {
2984
- w !== null && (n("selchange", S), n("update:modelValue", S));
3386
+ const r = v(() => t.modelValue || t.selection);
3387
+ z(() => t.selection, (w) => {
3388
+ l.value = w;
3389
+ }), z(() => t.modelValue, (w) => {
3390
+ l.value = w;
3391
+ }), z(l, (w, I) => {
3392
+ I !== null && (n("selchange", w), n("update:modelValue", w));
2985
3393
  });
2986
- const d = g(() => {
3394
+ const s = v(() => {
2987
3395
  if (t.variant === "group")
2988
3396
  return Math.ceil(t.itemsCount / t.itemsPerGroup);
2989
3397
  if (t.variant === "base")
2990
3398
  return t.pageCount;
2991
- }), i = g(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
2992
- function o() {
3399
+ }), o = v(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
3400
+ function i() {
2993
3401
  l.value = 1;
2994
3402
  }
2995
3403
  function u() {
@@ -2998,102 +3406,102 @@ const Xt = {
2998
3406
  function c() {
2999
3407
  l.value = Math.min(
3000
3408
  l.value + 1,
3001
- d.value
3409
+ s.value
3002
3410
  );
3003
3411
  }
3004
- function h() {
3005
- l.value = d.value;
3412
+ function f() {
3413
+ l.value = s.value;
3006
3414
  }
3007
- const m = g(() => {
3415
+ const g = v(() => {
3008
3416
  if (t.pageCount <= t.pageRange)
3009
3417
  return [...Array(t.pageCount + 1).keys()].slice(1);
3010
- const S = [1], w = (t.pageRange - 1) / 2;
3011
- let v = l.value - w, k = l.value + w;
3012
- v < 1 && (k += 1 - v, v = 1), k > t.pageCount && (v -= k - t.pageCount, k = t.pageCount), v = Math.max(v, 2), k = Math.min(k, t.pageCount - 1), v > 2 && S.push(t.breakText);
3013
- for (let O = v; O <= k; O++)
3014
- S.push(O);
3015
- return k < t.pageCount - 1 && S.push(t.breakText), S.push(t.pageCount), S;
3016
- }), b = g(() => `${t.centerLabel ?? "Page"} ${l.value} of ${d.value}`), x = g(() => {
3017
- const S = (l.value - 1) * t.itemsPerGroup + 1, w = Math.min(S - 1 + t.itemsPerGroup, t.itemsCount);
3018
- return `${t.centerLabel ?? "Results"} ${S} - ${w} of ${t.itemsCount}`;
3019
- }), C = g(() => t.resultsIncrements.split(",").map((S) => parseInt(S)));
3020
- return (S, w) => (s(), p("div", {
3418
+ const w = [1], I = (t.pageRange - 1) / 2;
3419
+ let b = l.value - I, C = l.value + I;
3420
+ b < 1 && (C += 1 - b, b = 1), C > t.pageCount && (b -= C - t.pageCount, C = t.pageCount), b = Math.max(b, 2), C = Math.min(C, t.pageCount - 1), b > 2 && w.push(t.breakText);
3421
+ for (let q = b; q <= C; q++)
3422
+ w.push(q);
3423
+ return C < t.pageCount - 1 && w.push(t.breakText), w.push(t.pageCount), w;
3424
+ }), m = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${s.value}`), x = v(() => {
3425
+ const w = (l.value - 1) * t.itemsPerGroup + 1, I = Math.min(w - 1 + t.itemsPerGroup, t.itemsCount);
3426
+ return `${t.centerLabel ?? "Results"} ${w} - ${I} of ${t.itemsCount}`;
3427
+ }), k = v(() => t.resultsIncrements.split(",").map((w) => parseInt(w)));
3428
+ return (w, I) => (d(), h("div", {
3021
3429
  class: "bs-pagination",
3022
- "data-variant": i.value,
3430
+ "data-variant": o.value,
3023
3431
  "data-fixed": t.fixed
3024
3432
  }, [
3025
- e.variant === "base" || e.variant === "group" ? (s(), p("div", an, [
3026
- e.showFirstLastButtons ? (s(), p("button", {
3433
+ e.variant === "base" || e.variant === "group" ? (d(), h("div", Sn, [
3434
+ e.showFirstLastButtons ? (d(), h("button", {
3027
3435
  key: 0,
3028
3436
  type: "button",
3029
- class: _(e.firstPageText ? "bs-pagination-word-caret" : void 0),
3437
+ class: ae(e.firstPageText ? "bs-pagination-word-caret" : void 0),
3030
3438
  title: e.firstPageText,
3031
3439
  disabled: l.value === 1,
3032
- onClick: o
3440
+ onClick: i
3033
3441
  }, [
3034
- P(f(dt)),
3035
- e.firstPageText ? (s(), p("span", ln, T(e.firstPageText), 1)) : I("", !0)
3036
- ], 10, nn)) : I("", !0),
3442
+ D(p(vt)),
3443
+ e.firstPageText ? (d(), h("span", $n, T(e.firstPageText), 1)) : $("", !0)
3444
+ ], 10, wn)) : $("", !0),
3037
3445
  B("button", {
3038
3446
  type: "button",
3039
- class: _(e.prevPageText ? "bs-pagination-word-caret" : void 0),
3447
+ class: ae(e.prevPageText ? "bs-pagination-word-caret" : void 0),
3040
3448
  title: e.prevPageText,
3041
3449
  disabled: l.value === 1,
3042
3450
  onClick: u
3043
3451
  }, [
3044
- P(f(ut)),
3045
- e.prevPageText ? (s(), p("span", rn, T(e.prevPageText), 1)) : I("", !0)
3046
- ], 10, on)
3047
- ])) : I("", !0),
3048
- e.variant === "base" && e.centerDisplay === "numbers" ? (s(), p("div", sn, [
3049
- (s(!0), p(N, null, X(m.value, (v) => (s(), p("button", {
3050
- key: `page-${v}-button`,
3452
+ D(p(bt)),
3453
+ e.prevPageText ? (d(), h("span", In, T(e.prevPageText), 1)) : $("", !0)
3454
+ ], 10, kn)
3455
+ ])) : $("", !0),
3456
+ e.variant === "base" && e.centerDisplay === "numbers" ? (d(), h("div", Cn, [
3457
+ (d(!0), h(j, null, Z(g.value, (b) => (d(), h("button", {
3458
+ key: `page-${b}-button`,
3051
3459
  type: "button",
3052
- title: `Page ${v}`,
3053
- "data-selected": v === l.value,
3054
- onClick: (k) => l.value = v
3055
- }, T(v), 9, dn))), 128))
3056
- ])) : I("", !0),
3057
- t.variant === "base" && t.centerDisplay === "text" ? (s(), p("span", un, T(b.value), 1)) : I("", !0),
3058
- t.variant === "group" ? (s(), p("span", cn, T(x.value), 1)) : I("", !0),
3059
- t.variant === "results" ? (s(), p(N, { key: 4 }, [
3060
- fn,
3061
- B("div", pn, [
3062
- (s(!0), p(N, null, X(C.value, (v) => (s(), p("button", {
3460
+ title: `Page ${b}`,
3461
+ "data-selected": b === l.value,
3462
+ onClick: (C) => l.value = b
3463
+ }, T(b), 9, xn))), 128))
3464
+ ])) : $("", !0),
3465
+ t.variant === "base" && t.centerDisplay === "text" ? (d(), h("span", Tn, T(m.value), 1)) : $("", !0),
3466
+ t.variant === "group" ? (d(), h("span", An, T(x.value), 1)) : $("", !0),
3467
+ t.variant === "results" ? (d(), h(j, { key: 4 }, [
3468
+ Ln,
3469
+ B("div", Vn, [
3470
+ (d(!0), h(j, null, Z(k.value, (b) => (d(), h("button", {
3063
3471
  type: "button",
3064
- key: `results-${v}`,
3065
- "data-selected": v === l.value,
3066
- disabled: l.value === v,
3067
- onClick: (k) => l.value = v
3068
- }, T(v), 9, hn))), 128))
3472
+ key: `results-${b}`,
3473
+ "data-selected": b === l.value,
3474
+ disabled: l.value === b,
3475
+ onClick: (C) => l.value = b
3476
+ }, T(b), 9, En))), 128))
3069
3477
  ])
3070
- ], 64)) : I("", !0),
3071
- e.variant === "base" || e.variant === "group" ? (s(), p("div", vn, [
3478
+ ], 64)) : $("", !0),
3479
+ e.variant === "base" || e.variant === "group" ? (d(), h("div", Dn, [
3072
3480
  B("button", {
3073
3481
  type: "button",
3074
- class: _(e.nextPageText ? "bs-pagination-word-caret" : void 0),
3482
+ class: ae(e.nextPageText ? "bs-pagination-word-caret" : void 0),
3075
3483
  title: e.nextPageText,
3076
- disabled: l.value === d.value,
3484
+ disabled: l.value === s.value,
3077
3485
  onClick: c
3078
3486
  }, [
3079
- e.nextPageText ? (s(), p("span", gn, T(e.nextPageText), 1)) : I("", !0),
3080
- P(f(ct))
3081
- ], 10, bn),
3082
- e.showFirstLastButtons ? (s(), p("button", {
3487
+ e.nextPageText ? (d(), h("span", qn, T(e.nextPageText), 1)) : $("", !0),
3488
+ D(p(mt))
3489
+ ], 10, On),
3490
+ e.showFirstLastButtons ? (d(), h("button", {
3083
3491
  key: 0,
3084
3492
  type: "button",
3085
- class: _(e.lastPageText ? "bs-pagination-word-caret" : void 0),
3493
+ class: ae(e.lastPageText ? "bs-pagination-word-caret" : void 0),
3086
3494
  title: e.lastPageText,
3087
- disabled: l.value === d.value,
3088
- onClick: h
3495
+ disabled: l.value === s.value,
3496
+ onClick: f
3089
3497
  }, [
3090
- e.lastPageText ? (s(), p("span", yn, T(e.lastPageText), 1)) : I("", !0),
3091
- P(f(ft))
3092
- ], 10, mn)) : I("", !0)
3093
- ])) : I("", !0)
3094
- ], 8, tn));
3498
+ e.lastPageText ? (d(), h("span", Pn, T(e.lastPageText), 1)) : $("", !0),
3499
+ D(p(gt))
3500
+ ], 10, Mn)) : $("", !0)
3501
+ ])) : $("", !0)
3502
+ ], 8, Bn));
3095
3503
  }
3096
- }, Bn = ["data-truncate"], Bl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3504
+ }, zn = ["data-truncate"], Nl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3097
3505
  __name: "BsPill",
3098
3506
  props: {
3099
3507
  active: { type: Boolean, default: !1 },
@@ -3117,35 +3525,35 @@ const Xt = {
3117
3525
  }
3118
3526
  },
3119
3527
  setup(e) {
3120
- const a = e, { onLinkClick: t } = me(a), n = G(), { rootTag: l, attrsToBind: r, hrefUrl: d } = ge(a, n, "span");
3121
- return (i, o) => (s(), V(Z(f(l)), R({
3528
+ const a = e, { onLinkClick: t } = we(a), n = G(), { rootTag: l, attrsToBind: r, hrefUrl: s } = Se(a, n, "span");
3529
+ return (o, i) => (d(), V(J(p(l)), P({
3122
3530
  class: "bs-pill",
3123
3531
  "data-active": e.active,
3124
3532
  "data-component": "bs-pill",
3125
3533
  "data-status": e.status || void 0,
3126
3534
  "data-variant": e.variant || void 0,
3127
3535
  disabled: e.disabled,
3128
- ".href": f(d)
3129
- }, f(r), { onClick: f(t) }), {
3130
- default: E(() => [
3536
+ ".href": p(s)
3537
+ }, p(r), { onClick: p(t) }), {
3538
+ default: O(() => [
3131
3539
  B("span", { "data-truncate": e.truncate }, [
3132
- L(i.$slots, "default")
3133
- ], 8, Bn)
3540
+ E(o.$slots, "default")
3541
+ ], 8, zn)
3134
3542
  ]),
3135
3543
  _: 3
3136
3544
  }, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
3137
3545
  }
3138
- }), $n = { class: "bs-profile-details" }, Sn = {
3546
+ }), Rn = { class: "bs-profile-details" }, Nn = {
3139
3547
  class: "bs-profile-name",
3140
3548
  "data-size": "sm",
3141
3549
  "data-weight": "bold"
3142
- }, wn = {
3550
+ }, jn = {
3143
3551
  key: 1,
3144
3552
  "data-weight": "bold"
3145
- }, kn = { key: 2 }, In = { key: 3 }, Cn = {
3553
+ }, Un = { key: 2 }, Fn = { key: 3 }, Wn = {
3146
3554
  key: 4,
3147
3555
  "data-icon": "true"
3148
- }, Tn = {
3556
+ }, Gn = {
3149
3557
  __name: "BsProfileDetails",
3150
3558
  props: {
3151
3559
  profileName: {
@@ -3162,40 +3570,40 @@ const Xt = {
3162
3570
  },
3163
3571
  emits: ["action-toggled"],
3164
3572
  setup(e, { emit: a }) {
3165
- const t = e, n = a, { icon: l } = fe(t, "actionIcon"), { icon: r } = fe(t, "miscMetaIcon");
3166
- function d(i) {
3167
- i.target.tagName === "BUTTON" && (i.preventDefault(), i.stopImmediatePropagation(), n("action-toggled"));
3573
+ const t = e, n = a, { icon: l } = be(t, "actionIcon"), { icon: r } = be(t, "miscMetaIcon");
3574
+ function s(o) {
3575
+ o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), n("action-toggled"));
3168
3576
  }
3169
- return (i, o) => (s(), p("div", $n, [
3170
- e.action || i.$slots.action ? (s(), p("button", {
3577
+ return (o, i) => (d(), h("div", Rn, [
3578
+ e.action || o.$slots.action ? (d(), h("button", {
3171
3579
  key: 0,
3172
3580
  "data-icon": "true",
3173
- onClick: d
3581
+ onClick: s
3174
3582
  }, [
3175
- L(i.$slots, "action", {}, () => [
3176
- e.actionIcon ? (s(), V(Z(f(l) ? f(l) : "span"), {
3583
+ E(o.$slots, "action", {}, () => [
3584
+ e.actionIcon ? (d(), V(J(p(l) ? p(l) : "span"), {
3177
3585
  key: 0,
3178
3586
  class: "bs-icon"
3179
- })) : I("", !0),
3180
- j(" " + T(e.action), 1)
3587
+ })) : $("", !0),
3588
+ U(" " + T(e.action), 1)
3181
3589
  ])
3182
- ])) : I("", !0),
3183
- B("span", Sn, T(e.profileName), 1),
3184
- e.company ? (s(), p("span", wn, T(e.company), 1)) : I("", !0),
3185
- e.jobTitle ? (s(), p("span", kn, T(e.jobTitle), 1)) : I("", !0),
3186
- e.email ? (s(), p("span", In, T(e.email), 1)) : I("", !0),
3187
- e.miscMeta || i.$slots.misc ? (s(), p("span", Cn, [
3188
- L(i.$slots, "misc", {}, () => [
3189
- e.miscMetaIcon ? (s(), V(Z(f(r) ? f(r) : "span"), {
3590
+ ])) : $("", !0),
3591
+ B("span", Nn, T(e.profileName), 1),
3592
+ e.company ? (d(), h("span", jn, T(e.company), 1)) : $("", !0),
3593
+ e.jobTitle ? (d(), h("span", Un, T(e.jobTitle), 1)) : $("", !0),
3594
+ e.email ? (d(), h("span", Fn, T(e.email), 1)) : $("", !0),
3595
+ e.miscMeta || o.$slots.misc ? (d(), h("span", Wn, [
3596
+ E(o.$slots, "misc", {}, () => [
3597
+ e.miscMetaIcon ? (d(), V(J(p(r) ? p(r) : "span"), {
3190
3598
  key: 0,
3191
3599
  class: "bs-icon"
3192
- })) : I("", !0),
3193
- j(" " + T(e.miscMeta), 1)
3600
+ })) : $("", !0),
3601
+ U(" " + T(e.miscMeta), 1)
3194
3602
  ])
3195
- ])) : I("", !0)
3603
+ ])) : $("", !0)
3196
3604
  ]));
3197
3605
  }
3198
- }, $l = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3606
+ }, jl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3199
3607
  __name: "BsProfile",
3200
3608
  props: {
3201
3609
  layout: {
@@ -3225,20 +3633,20 @@ const Xt = {
3225
3633
  },
3226
3634
  emits: ["action-toggled"],
3227
3635
  setup(e, { emit: a }) {
3228
- const t = e, n = a, l = G(), { onLinkClick: r } = me(t), { rootTag: d, attrsToBind: i, hrefUrl: o } = ge(t, l, "div");
3229
- return (u, c) => (s(), V(Z(f(d)), R({
3636
+ const t = e, n = a, l = G(), { onLinkClick: r } = we(t), { rootTag: s, attrsToBind: o, hrefUrl: i } = Se(t, l, "div");
3637
+ return (u, c) => (d(), V(J(p(s)), P({
3230
3638
  class: "bs-profile",
3231
- ".href": f(o),
3639
+ ".href": p(i),
3232
3640
  "data-layout": e.layout
3233
- }, f(i), { onClick: f(r) }), {
3234
- default: E(() => [
3235
- P(Ze, {
3641
+ }, p(o), { onClick: p(r) }), {
3642
+ default: O(() => [
3643
+ D(lt, {
3236
3644
  src: e.imageSrc,
3237
3645
  size: e.imageSize,
3238
3646
  initials: e.initials,
3239
3647
  "profile-name": e.profileName
3240
3648
  }, null, 8, ["src", "size", "initials", "profile-name"]),
3241
- P(Tn, {
3649
+ D(Gn, {
3242
3650
  "profile-name": e.profileName,
3243
3651
  company: e.company,
3244
3652
  "job-title": e.jobTitle,
@@ -3247,13 +3655,13 @@ const Xt = {
3247
3655
  "action-icon": e.actionIcon,
3248
3656
  "misc-meta": e.miscMeta,
3249
3657
  "misc-meta-icon": e.miscMetaIcon,
3250
- onActionToggled: c[0] || (c[0] = (h) => n("action-toggled"))
3658
+ onActionToggled: c[0] || (c[0] = (f) => n("action-toggled"))
3251
3659
  }, {
3252
- action: E(() => [
3253
- L(u.$slots, "action")
3660
+ action: O(() => [
3661
+ E(u.$slots, "action")
3254
3662
  ]),
3255
- misc: E(() => [
3256
- L(u.$slots, "misc")
3663
+ misc: O(() => [
3664
+ E(u.$slots, "misc")
3257
3665
  ]),
3258
3666
  _: 3
3259
3667
  }, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
@@ -3261,7 +3669,7 @@ const Xt = {
3261
3669
  _: 3
3262
3670
  }, 48, [".href", "data-layout", "onClick"]));
3263
3671
  }
3264
- }), xn = ["data-size"], An = ["checked", "disabled", "id", "required", "value", "data-error"], Sl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3672
+ }), Hn = ["data-size"], Kn = ["checked", "disabled", "id", "required", "value", "data-error"], Ul = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3265
3673
  __name: "BsRadio",
3266
3674
  props: {
3267
3675
  label: {
@@ -3305,39 +3713,39 @@ const Xt = {
3305
3713
  },
3306
3714
  emits: ["update:modelValue"],
3307
3715
  setup(e, { emit: a }) {
3308
- const t = e, n = G(), [l] = Y(), { toChild: r, toRoot: d } = ie(t, n, ["aria-label", "name"]), i = g(() => t.inputId || l.value), o = g(() => t.checked || t.modelValue && t.modelValue === t.value);
3309
- return (u, c) => (s(), p("div", R({
3716
+ const t = e, n = G(), [l] = Y(), { toChild: r, toRoot: s } = ie(t, n, ["aria-label", "name"]), o = v(() => t.inputId || l.value), i = v(() => t.checked || t.modelValue && t.modelValue === t.value);
3717
+ return (u, c) => (d(), h("div", P({
3310
3718
  class: "bs-boolean",
3311
3719
  "data-component": "bs-radio",
3312
3720
  "data-size": e.size
3313
- }, f(d)), [
3314
- B("input", R({
3315
- checked: o.value,
3721
+ }, p(s)), [
3722
+ B("input", P({
3723
+ checked: i.value,
3316
3724
  disabled: e.disabled,
3317
- id: i.value,
3725
+ id: o.value,
3318
3726
  required: e.required,
3319
3727
  type: "radio",
3320
3728
  value: e.value,
3321
3729
  "data-error": e.error
3322
- }, f(r), {
3323
- onChange: c[0] || (c[0] = (h) => u.$emit("update:modelValue", h.target.value))
3324
- }), null, 16, An),
3325
- e.label || u.$slots.label ? (s(), V(ne, {
3730
+ }, p(r), {
3731
+ onChange: c[0] || (c[0] = (f) => u.$emit("update:modelValue", f.target.value))
3732
+ }), null, 16, Kn),
3733
+ e.label || u.$slots.label ? (d(), V(ne, {
3326
3734
  key: 0,
3327
- for: i.value,
3735
+ for: o.value,
3328
3736
  disabled: e.disabled,
3329
3737
  required: e.required
3330
3738
  }, {
3331
- default: E(() => [
3332
- L(u.$slots, "label", {}, () => [
3333
- j(T(e.label), 1)
3739
+ default: O(() => [
3740
+ E(u.$slots, "label", {}, () => [
3741
+ U(T(e.label), 1)
3334
3742
  ])
3335
3743
  ]),
3336
3744
  _: 3
3337
- }, 8, ["for", "disabled", "required"])) : I("", !0)
3338
- ], 16, xn));
3745
+ }, 8, ["for", "disabled", "required"])) : $("", !0)
3746
+ ], 16, Hn));
3339
3747
  }
3340
- }), Ln = ["id", "disabled", "required", "data-error", "value"], Vn = {
3748
+ }), Yn = ["id", "disabled", "required", "data-error", "value"], Qn = {
3341
3749
  __name: "BsSelect",
3342
3750
  props: {
3343
3751
  disabled: { type: Boolean, default: !1 },
@@ -3350,8 +3758,8 @@ const Xt = {
3350
3758
  },
3351
3759
  emits: ["update:modelValue"],
3352
3760
  setup(e, { emit: a }) {
3353
- const t = e, n = g(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
3354
- return (l, r) => (s(), p("select", R({
3761
+ const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
3762
+ return (l, r) => (d(), h("select", P({
3355
3763
  id: l.$attrs.id || e.inputId,
3356
3764
  class: "bs-select",
3357
3765
  "data-component": "bs-select",
@@ -3360,12 +3768,12 @@ const Xt = {
3360
3768
  "data-error": e.error,
3361
3769
  value: e.value || e.modelValue
3362
3770
  }, n.value, {
3363
- onChange: r[0] || (r[0] = (d) => l.$emit("update:modelValue", d.target.value))
3771
+ onChange: r[0] || (r[0] = (s) => l.$emit("update:modelValue", s.target.value))
3364
3772
  }), [
3365
- L(l.$slots, "default")
3366
- ], 16, Ln));
3773
+ E(l.$slots, "default")
3774
+ ], 16, Yn));
3367
3775
  }
3368
- }, En = ["selected", "disabled"], Pn = ["disabled", "selected", "value"], wl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3776
+ }, Xn = ["selected", "disabled"], Zn = ["disabled", "selected", "value"], Fl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3369
3777
  __name: "BsSelectField",
3370
3778
  props: {
3371
3779
  data: {
@@ -3409,64 +3817,64 @@ const Xt = {
3409
3817
  modelValue: [String, Number]
3410
3818
  },
3411
3819
  setup(e) {
3412
- const a = e, t = G(), [n, l] = Y(2), { toChild: r, toRoot: d } = ie(a, t, [
3820
+ const a = e, t = G(), [n, l] = Y(2), { toChild: r, toRoot: s } = ie(a, t, [
3413
3821
  "aria-label",
3414
3822
  "autofocus",
3415
3823
  "name"
3416
- ]), i = g(() => {
3417
- var h, m;
3418
- return ((m = (h = a.hints) == null ? void 0 : h.join) == null ? void 0 : m.call(h, `
3824
+ ]), o = v(() => {
3825
+ var f, g;
3826
+ return ((g = (f = a.hints) == null ? void 0 : f.join) == null ? void 0 : g.call(f, `
3419
3827
  `)) || a.hints;
3420
- }), o = g(() => a.error && a.errorMsg || a.hint || i.value || void 0), u = g(() => a.inputId || n.value), c = g(() => a.value || a.modelValue);
3421
- return (h, m) => (s(), p("div", R({ "data-component": "bs-select-field" }, f(d)), [
3422
- e.label || h.$slots.label ? (s(), V(ne, {
3828
+ }), i = v(() => a.error && a.errorMsg || a.hint || o.value || void 0), u = v(() => a.inputId || n.value), c = v(() => a.value || a.modelValue);
3829
+ return (f, g) => (d(), h("div", P({ "data-component": "bs-select-field" }, p(s)), [
3830
+ e.label || f.$slots.label ? (d(), V(ne, {
3423
3831
  key: 0,
3424
3832
  for: u.value,
3425
3833
  disabled: e.disabled,
3426
3834
  required: e.required
3427
3835
  }, {
3428
- default: E(() => [
3429
- L(h.$slots, "label", {}, () => [
3430
- j(T(e.label), 1)
3836
+ default: O(() => [
3837
+ E(f.$slots, "label", {}, () => [
3838
+ U(T(e.label), 1)
3431
3839
  ])
3432
3840
  ]),
3433
3841
  _: 3
3434
- }, 8, ["for", "disabled", "required"])) : I("", !0),
3435
- P(Vn, R({
3842
+ }, 8, ["for", "disabled", "required"])) : $("", !0),
3843
+ D(Qn, P({
3436
3844
  disabled: e.disabled,
3437
3845
  error: e.error,
3438
- "hint-id": f(l),
3846
+ "hint-id": p(l),
3439
3847
  "input-id": u.value,
3440
3848
  required: e.required,
3441
3849
  value: c.value,
3442
- "onUpdate:modelValue": m[0] || (m[0] = (b) => h.$emit("update:modelValue", b))
3443
- }, f(r)), {
3444
- default: E(() => [
3850
+ "onUpdate:modelValue": g[0] || (g[0] = (m) => f.$emit("update:modelValue", m))
3851
+ }, p(r)), {
3852
+ default: O(() => [
3445
3853
  B("option", {
3446
3854
  selected: !c.value,
3447
3855
  value: "",
3448
3856
  disabled: !!c.value
3449
- }, T(e.disabled ? "" : e.placeholder), 9, En),
3450
- (s(!0), p(N, null, X(e.data, (b) => (s(), p("option", {
3451
- key: b.value,
3452
- disabled: b.disabled,
3453
- selected: c.value === b.value,
3454
- value: b.value
3455
- }, T(b.label), 9, Pn))), 128))
3857
+ }, T(e.disabled ? "" : e.placeholder), 9, Xn),
3858
+ (d(!0), h(j, null, Z(e.data, (m) => (d(), h("option", {
3859
+ key: m.value,
3860
+ disabled: m.disabled,
3861
+ selected: c.value === m.value,
3862
+ value: m.value
3863
+ }, T(m.label), 9, Zn))), 128))
3456
3864
  ]),
3457
3865
  _: 1
3458
3866
  }, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
3459
- o.value ? (s(), V(Se, {
3867
+ i.value ? (d(), V(ce, {
3460
3868
  key: 1,
3461
3869
  "data-disabled": e.disabled,
3462
3870
  error: e.error,
3463
3871
  "error-msg": e.errorMsg,
3464
- hint: e.hint || i.value,
3465
- "hint-id": f(l)
3466
- }, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : I("", !0)
3872
+ hint: e.hint || o.value,
3873
+ "hint-id": p(l)
3874
+ }, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
3467
3875
  ], 16));
3468
3876
  }
3469
- }), On = ["data-size"], Dn = ["data-disabled", "data-pending", "data-size"], Mn = ["checked", "disabled", "id"], qn = ["data-inner-on-label", "data-inner-off-label"], kl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3877
+ }), Jn = ["data-size"], _n = ["data-disabled", "data-pending", "data-size"], el = ["checked", "disabled", "id"], tl = ["data-inner-on-label", "data-inner-off-label"], Wl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3470
3878
  __name: "BsSwitch",
3471
3879
  props: {
3472
3880
  checked: {
@@ -3512,48 +3920,48 @@ const Xt = {
3512
3920
  },
3513
3921
  emits: ["update:modelValue"],
3514
3922
  setup(e, { emit: a }) {
3515
- const t = e, n = a, l = G(), [r] = Y(), { toChild: d, toRoot: i } = ie(t, l, ["aria-label", "name", "value"]), o = g(() => t.inputId || r.value), u = g(() => t.checked || t.modelValue);
3516
- return (c, h) => (s(), p("div", R({
3923
+ const t = e, n = a, l = G(), [r] = Y(), { toChild: s, toRoot: o } = ie(t, l, ["aria-label", "name", "value"]), i = v(() => t.inputId || r.value), u = v(() => t.checked || t.modelValue);
3924
+ return (c, f) => (d(), h("div", P({
3517
3925
  class: "bs-boolean",
3518
3926
  "data-component": "bs-switch",
3519
3927
  "data-size": e.size
3520
- }, f(i)), [
3521
- e.label || c.$slots.label ? (s(), V(ne, {
3928
+ }, p(o)), [
3929
+ e.label || c.$slots.label ? (d(), V(ne, {
3522
3930
  key: 0,
3523
- for: o.value,
3931
+ for: i.value,
3524
3932
  disabled: e.disabled,
3525
3933
  hide: e.hideLabel
3526
3934
  }, {
3527
- default: E(() => [
3528
- L(c.$slots, "label", {}, () => [
3529
- j(T(e.label), 1)
3935
+ default: O(() => [
3936
+ E(c.$slots, "label", {}, () => [
3937
+ U(T(e.label), 1)
3530
3938
  ])
3531
3939
  ]),
3532
3940
  _: 3
3533
- }, 8, ["for", "disabled", "hide"])) : I("", !0),
3941
+ }, 8, ["for", "disabled", "hide"])) : $("", !0),
3534
3942
  B("div", {
3535
3943
  class: "bs-switch",
3536
3944
  "data-disabled": e.disabled,
3537
3945
  "data-pending": e.pending,
3538
3946
  "data-size": e.size
3539
3947
  }, [
3540
- B("input", R({
3948
+ B("input", P({
3541
3949
  checked: u.value,
3542
3950
  disabled: e.disabled,
3543
- id: o.value,
3951
+ id: i.value,
3544
3952
  type: "checkbox"
3545
- }, f(d), {
3546
- onChange: h[0] || (h[0] = (m) => n("update:modelValue", m.target.checked))
3547
- }), null, 16, Mn),
3953
+ }, p(s), {
3954
+ onChange: f[0] || (f[0] = (g) => n("update:modelValue", g.target.checked))
3955
+ }), null, 16, el),
3548
3956
  B("span", {
3549
3957
  "aria-hidden": "true",
3550
3958
  "data-inner-on-label": e.innerOnLabel,
3551
3959
  "data-inner-off-label": e.innerOffLabel
3552
- }, null, 8, qn)
3553
- ], 8, Dn)
3554
- ], 16, On));
3960
+ }, null, 8, tl)
3961
+ ], 8, _n)
3962
+ ], 16, Jn));
3555
3963
  }
3556
- }), zn = ["aria-controls", "aria-selected", "data-hidden"], Il = {
3964
+ }), al = ["aria-controls", "aria-selected", "data-hidden"], Gl = {
3557
3965
  __name: "BsTab",
3558
3966
  props: {
3559
3967
  activeTabId: {
@@ -3570,18 +3978,18 @@ const Xt = {
3570
3978
  },
3571
3979
  emits: ["tabClick"],
3572
3980
  setup(e, { emit: a }) {
3573
- const t = e, n = G(), l = $(), r = g(() => t.activeTabId === n.id), d = g(() => t.panelId || `${n.id}-panel`);
3574
- function i(u) {
3575
- (u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.stopPropagation(), o());
3981
+ const t = e, n = G(), l = y(), r = v(() => t.activeTabId === n.id), s = v(() => t.panelId || `${n.id}-panel`);
3982
+ function o(u) {
3983
+ (u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.stopPropagation(), i());
3576
3984
  }
3577
- function o() {
3985
+ function i() {
3578
3986
  if (t.activeTabId !== n.id) {
3579
3987
  const u = new CustomEvent("tabClick", { detail: n.id, bubbles: !0 });
3580
3988
  l.value.dispatchEvent(u);
3581
3989
  }
3582
3990
  }
3583
- return (u, c) => (s(), p("div", {
3584
- "aria-controls": d.value,
3991
+ return (u, c) => (d(), h("div", {
3992
+ "aria-controls": s.value,
3585
3993
  "aria-selected": r.value ? "true" : "false",
3586
3994
  "data-hidden": e.hidden || void 0,
3587
3995
  "data-component": "bs-tab",
@@ -3589,13 +3997,13 @@ const Xt = {
3589
3997
  tabindex: "0",
3590
3998
  ref_key: "hostEl",
3591
3999
  ref: l,
3592
- onClick: o,
3593
- onKeydown: i
4000
+ onClick: i,
4001
+ onKeydown: o
3594
4002
  }, [
3595
- L(u.$slots, "default")
3596
- ], 40, zn));
4003
+ E(u.$slots, "default")
4004
+ ], 40, al));
3597
4005
  }
3598
- }, Rn = ["id", "data-resizing"], Nn = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], jn = 73, Fn = 20, Wn = 16, Cl = {
4006
+ }, nl = ["id", "data-resizing"], ll = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], ol = 73, il = 20, rl = 16, Hl = {
3599
4007
  __name: "BsTabList",
3600
4008
  props: {
3601
4009
  activeTabId: { type: String, required: !0 },
@@ -3606,182 +4014,182 @@ const Xt = {
3606
4014
  },
3607
4015
  emits: ["tabChange", "update:modelValue"],
3608
4016
  setup(e, { emit: a }) {
3609
- const t = e, n = a, l = $(!1), r = $(!1), d = $([]), i = $(!1), o = $(!1), u = $(), c = $([]), h = $(!1), m = $([]), b = $(), x = $(), C = $(), [S, w] = Y(2), v = g(() => t.activeTabId ? m.value.findIndex((y) => y.id === t.activeTabId) : 0), k = g(() => d.value.some((y) => y.id === t.activeTabId)), O = g(() => `${w.value}-options`), D = g(() => `${w.value}-toggle`), F = g(() => {
3610
- var y;
3611
- return k.value ? (y = m.value[v.value]) == null ? void 0 : y.textContent : "More";
3612
- }), we = g(() => k.value ? c.value[v.value] - c.value[v.value - 1] + Fn : jn), ee = g(() => {
3613
- var A, q;
3614
- let y = [];
4017
+ const t = e, n = a, l = y(!1), r = y(!1), s = y([]), o = y(!1), i = y(!1), u = y(), c = y([]), f = y(!1), g = y([]), m = y(), x = y(), k = y(), [w, I] = Y(2), b = v(() => t.activeTabId ? g.value.findIndex((S) => S.id === t.activeTabId) : 0), C = v(() => s.value.some((S) => S.id === t.activeTabId)), q = v(() => `${I.value}-options`), A = v(() => `${I.value}-toggle`), M = v(() => {
4018
+ var S;
4019
+ return C.value ? (S = g.value[b.value]) == null ? void 0 : S.textContent : "More";
4020
+ }), Q = v(() => C.value ? c.value[b.value] - c.value[b.value - 1] + il : ol), X = v(() => {
4021
+ var L, N;
4022
+ let S = [];
3615
4023
  if (typeof window > "u")
3616
- return y;
3617
- for (let W of m.value) {
3618
- if (((A = W.dataset) == null ? void 0 : A.hidden) === "true" || ((q = W.dataset) == null ? void 0 : q.hidden) === "" || W.getAttribute("tabindex") === "-1")
4024
+ return S;
4025
+ for (let F of g.value) {
4026
+ if (((L = F.dataset) == null ? void 0 : L.hidden) === "true" || ((N = F.dataset) == null ? void 0 : N.hidden) === "" || F.getAttribute("tabindex") === "-1")
3619
4027
  break;
3620
- y.push(W);
4028
+ S.push(F);
3621
4029
  }
3622
- return o.value && y.push(u.value.querySelector(".bs-tab-list-toggle")), y;
4030
+ return i.value && S.push(u.value.querySelector(".bs-tab-list-toggle")), S;
3623
4031
  });
3624
- function re() {
3625
- var te;
3626
- let y = !1, A, q = 0, W = !1, J = [];
3627
- if ((te = m.value) != null && te.length) {
3628
- for (let Q = 0; Q < m.value.length; Q++) {
3629
- if (A = m.value[Q], A.setAttribute("tabindex", "-1"), W && Q !== v.value) {
3630
- A.dataset.hidden = "true", J.push(A);
4032
+ function _() {
4033
+ var le;
4034
+ let S = !1, L, N = 0, F = !1, ee = [];
4035
+ if ((le = g.value) != null && le.length) {
4036
+ for (let te = 0; te < g.value.length; te++) {
4037
+ if (L = g.value[te], L.setAttribute("tabindex", "-1"), F && te !== b.value) {
4038
+ L.dataset.hidden = "true", ee.push(L);
3631
4039
  continue;
3632
4040
  }
3633
- if (q = Q < m.value.length - 1 ? C.value - we.value : C.value, c.value[Q] > q) {
3634
- A.dataset.hidden = "true", J.push(A), y = !0, W = !0;
4041
+ if (N = te < g.value.length - 1 ? k.value - Q.value : k.value, c.value[te] > N) {
4042
+ L.dataset.hidden = "true", ee.push(L), S = !0, F = !0;
3635
4043
  continue;
3636
4044
  }
3637
- A.dataset.hidden = "false", A.setAttribute("tabindex", "0");
4045
+ L.dataset.hidden = "false", L.setAttribute("tabindex", "0");
3638
4046
  }
3639
- o.value = y, d.value = J, l.value || de(() => l.value = !0), setTimeout(() => {
3640
- K(), h.value = !0;
3641
- }, h.value ? 0 : 1e3);
4047
+ i.value = S, s.value = ee, l.value || ve(() => l.value = !0), setTimeout(() => {
4048
+ K(), f.value = !0;
4049
+ }, f.value ? 0 : 1e3);
3642
4050
  }
3643
4051
  }
3644
- function se(y) {
3645
- n("tabChange", y), n("update:modelValue", y);
3646
- }
3647
- function ke(y) {
3648
- var W, J, te;
3649
- const A = (te = (J = (W = m.value[y]) == null ? void 0 : W.getBoundingClientRect) == null ? void 0 : J.call(W)) == null ? void 0 : te.width;
3650
- return A || (y === 0 ? c.value[0] : c.value[y] - c.value[y - 1]) || 0;
4052
+ function de(S) {
4053
+ n("tabChange", S), n("update:modelValue", S);
3651
4054
  }
3652
- function Ie() {
3653
- var y;
3654
- (y = m.value[v.value]) == null || y.setAttribute("aria-selected", "true"), re();
4055
+ function Ce(S) {
4056
+ var F, ee, le;
4057
+ const L = (le = (ee = (F = g.value[S]) == null ? void 0 : F.getBoundingClientRect) == null ? void 0 : ee.call(F)) == null ? void 0 : le.width;
4058
+ return L || (S === 0 ? c.value[0] : c.value[S] - c.value[S - 1]) || 0;
3655
4059
  }
3656
- function Ce() {
3657
- var y;
3658
- (y = b.value) == null || y.focus(), i.value = !1;
4060
+ function xe() {
4061
+ var S;
4062
+ (S = g.value[b.value]) == null || S.setAttribute("aria-selected", "true"), _();
3659
4063
  }
3660
4064
  function Te() {
3661
- i.value = !i.value, r.value || (r.value = !0);
4065
+ var S;
4066
+ (S = m.value) == null || S.focus(), o.value = !1;
3662
4067
  }
3663
- function xe(y) {
3664
- var A;
3665
- i.value = !1, (A = b.value) == null || A.focus(), se(y);
4068
+ function Ae() {
4069
+ o.value = !o.value, r.value || (r.value = !0);
3666
4070
  }
3667
- function ue(y) {
4071
+ function Le(S) {
4072
+ var L;
4073
+ o.value = !1, (L = m.value) == null || L.focus(), de(S);
4074
+ }
4075
+ function pe(S) {
3668
4076
  if (t.withBsTabs)
3669
4077
  return;
3670
- const A = y.target.closest('[role="tab"]');
3671
- if (!A || A.getAttribute("aria-selected") === "true")
4078
+ const L = S.target.closest('[role="tab"]');
4079
+ if (!L || L.getAttribute("aria-selected") === "true")
3672
4080
  return;
3673
- const q = A.getAttribute("id");
3674
- se(q);
4081
+ const N = L.getAttribute("id");
4082
+ de(N);
3675
4083
  }
3676
- function ce(y) {
3677
- if (y.key === "ArrowLeft" || y.key === "ArrowRight") {
3678
- const A = ee.value.findIndex((q) => q.id === y.target.id);
3679
- if (A === -1)
4084
+ function he(S) {
4085
+ if (S.key === "ArrowLeft" || S.key === "ArrowRight") {
4086
+ const L = X.value.findIndex((N) => N.id === S.target.id);
4087
+ if (L === -1)
3680
4088
  return;
3681
- y.preventDefault(), y.stopPropagation(), y.key === "ArrowLeft" ? H(A) : M(A);
4089
+ S.preventDefault(), S.stopPropagation(), S.key === "ArrowLeft" ? H(L) : R(L);
3682
4090
  }
3683
4091
  }
3684
- function M(y) {
3685
- var q;
3686
- const A = (y + 1) % ee.value.length;
3687
- (q = ee.value[A]) == null || q.focus();
4092
+ function R(S) {
4093
+ var N;
4094
+ const L = (S + 1) % X.value.length;
4095
+ (N = X.value[L]) == null || N.focus();
3688
4096
  }
3689
- function H(y) {
3690
- var q;
3691
- const A = y === 0 ? ee.value.length - 1 : y - 1;
3692
- (q = ee.value[A]) == null || q.focus();
4097
+ function H(S) {
4098
+ var N;
4099
+ const L = S === 0 ? X.value.length - 1 : S - 1;
4100
+ (N = X.value[L]) == null || N.focus();
3693
4101
  }
3694
4102
  function K() {
3695
- var te, Q, ze, Re;
3696
- const y = parseInt(u.value.style.getPropertyValue("--active-line-offset")) || 0, A = C.value;
3697
- let q = 300, W = ((Q = (te = ee.value) == null ? void 0 : te[v.value]) == null ? void 0 : Q.offsetLeft) || 0, J = ke(v.value);
3698
- o.value && k.value && (W = (ze = b.value) == null ? void 0 : ze.offsetLeft, J = (Re = b.value) == null ? void 0 : Re.offsetWidth), q = Math.max(Math.abs((W - y) / A * 300), 100), u.value.style.setProperty("--active-line-max-width", `${A}px`), u.value.style.setProperty("--active-line-scale", `${J / A}`), u.value.style.setProperty("--active-line-offset", `${W}px`), u.value.style.setProperty("--active-line-transition-duration", `${q}ms`);
4103
+ var le, te, je, Ue;
4104
+ const S = parseInt(u.value.style.getPropertyValue("--active-line-offset")) || 0, L = k.value;
4105
+ let N = 300, F = ((te = (le = X.value) == null ? void 0 : le[b.value]) == null ? void 0 : te.offsetLeft) || 0, ee = Ce(b.value);
4106
+ i.value && C.value && (F = (je = m.value) == null ? void 0 : je.offsetLeft, ee = (Ue = m.value) == null ? void 0 : Ue.offsetWidth), N = Math.max(Math.abs((F - S) / L * 300), 100), u.value.style.setProperty("--active-line-max-width", `${L}px`), u.value.style.setProperty("--active-line-scale", `${ee / L}`), u.value.style.setProperty("--active-line-offset", `${F}px`), u.value.style.setProperty("--active-line-transition-duration", `${N}ms`);
3699
4107
  }
3700
- function qe() {
3701
- var y, A;
3702
- (A = (y = x.value) == null ? void 0 : y.disconnect) == null || A.call(y), x.value = null;
4108
+ function Ne() {
4109
+ var S, L;
4110
+ (L = (S = x.value) == null ? void 0 : S.disconnect) == null || L.call(S), x.value = null;
3703
4111
  }
3704
- function Qe() {
3705
- x.value = new ResizeObserver((y) => {
3706
- for (let A of y)
3707
- C.value = A.contentBoxSize[0].inlineSize;
3708
- re();
4112
+ function ot() {
4113
+ x.value = new ResizeObserver((S) => {
4114
+ for (let L of S)
4115
+ k.value = L.contentBoxSize[0].inlineSize;
4116
+ _();
3709
4117
  }), x.value.observe(u.value);
3710
4118
  }
3711
- function _e() {
3712
- m.value = Array.from(u.value.children).filter((y) => y.role === "tab");
4119
+ function it() {
4120
+ g.value = Array.from(u.value.children).filter((S) => S.role === "tab");
3713
4121
  }
3714
- function et() {
3715
- let y;
3716
- m.value.forEach((A, q) => {
3717
- y = A.getBoundingClientRect().width + Wn, c.value.push(q ? y + c.value[q - 1] : y);
4122
+ function rt() {
4123
+ let S;
4124
+ g.value.forEach((L, N) => {
4125
+ S = L.getBoundingClientRect().width + rl, c.value.push(N ? S + c.value[N - 1] : S);
3718
4126
  });
3719
4127
  }
3720
- return z(() => t.activeTabId, Ie), U(() => {
3721
- var y;
4128
+ return z(() => t.activeTabId, xe), W(() => {
4129
+ var S;
3722
4130
  try {
3723
- _e(), et(), Qe(), C.value = u.value.getBoundingClientRect().width, re(), t.withBsTabs || (y = m.value[v.value]) == null || y.setAttribute("aria-selected", "true");
3724
- } catch (A) {
3725
- console.log("tab error", A);
4131
+ it(), rt(), ot(), k.value = u.value.getBoundingClientRect().width, _(), t.withBsTabs || (S = g.value[b.value]) == null || S.setAttribute("aria-selected", "true");
4132
+ } catch (L) {
4133
+ console.log("tab error", L);
3726
4134
  }
3727
- }), ae(qe), (y, A) => (s(), p("div", {
4135
+ }), oe(Ne), (S, L) => (d(), h("div", {
3728
4136
  class: "bs-tab-list",
3729
4137
  "data-component": "bs-tab-list",
3730
- id: y.$attrs.id || f(S),
4138
+ id: S.$attrs.id || p(w),
3731
4139
  ref_key: "hostEl",
3732
4140
  ref: u,
3733
4141
  role: "tablist",
3734
4142
  "data-resizing": !l.value || void 0,
3735
- onClick: ue,
3736
- "on:tabClick": A[0] || (A[0] = (q) => se(q.detail)),
3737
- onKeydown: ce
4143
+ onClick: pe,
4144
+ "on:tabClick": L[0] || (L[0] = (N) => de(N.detail)),
4145
+ onKeydown: he
3738
4146
  }, [
3739
- L(y.$slots, "default"),
4147
+ E(S.$slots, "default"),
3740
4148
  B("button", {
3741
- "aria-controls": f(w),
3742
- "aria-expanded": i.value,
4149
+ "aria-controls": p(I),
4150
+ "aria-expanded": o.value,
3743
4151
  class: "bs-tab-list-toggle",
3744
- "data-active": k.value || void 0,
3745
- "data-hidden": !o.value,
3746
- id: D.value,
4152
+ "data-active": C.value || void 0,
4153
+ "data-hidden": !i.value,
4154
+ id: A.value,
3747
4155
  ref_key: "dropdownToggle",
3748
- ref: b,
3749
- onClick: Te
4156
+ ref: m,
4157
+ onClick: Ae
3750
4158
  }, [
3751
- P(f(pt), { size: "sm" }),
3752
- j(" " + T(F.value), 1)
3753
- ], 8, Nn),
3754
- P(De, {
3755
- "anchor-id": D.value,
3756
- "container-id": y.$attrs.id || f(S),
4159
+ D(p(yt), { size: "sm" }),
4160
+ U(" " + T(M.value), 1)
4161
+ ], 8, ll),
4162
+ D(Re, {
4163
+ "anchor-id": A.value,
4164
+ "container-id": S.$attrs.id || p(w),
3757
4165
  "helper-description": e.helperDescription || void 0,
3758
4166
  "helper-text": e.helperText,
3759
- id: f(w),
3760
- "options-id": O.value,
4167
+ id: p(I),
4168
+ "options-id": q.value,
3761
4169
  position: "right",
3762
4170
  preloaded: "",
3763
- shown: i.value,
4171
+ shown: o.value,
3764
4172
  width: "content",
3765
- onClose: Ce,
3766
- "onUpdate:modelValue": xe
4173
+ onClose: Te,
4174
+ "onUpdate:modelValue": Le
3767
4175
  }, {
3768
- default: E(() => [
3769
- (s(!0), p(N, null, X(d.value, (q) => (s(), V(Oe, {
3770
- key: q.id,
3771
- value: q.id,
3772
- "options-id": O.value
4176
+ default: O(() => [
4177
+ (d(!0), h(j, null, Z(s.value, (N) => (d(), V(ze, {
4178
+ key: N.id,
4179
+ value: N.id,
4180
+ "options-id": q.value
3773
4181
  }, {
3774
- default: E(() => [
3775
- j(T(q.textContent), 1)
4182
+ default: O(() => [
4183
+ U(T(N.textContent), 1)
3776
4184
  ]),
3777
4185
  _: 2
3778
4186
  }, 1032, ["value", "options-id"]))), 128))
3779
4187
  ]),
3780
4188
  _: 1
3781
4189
  }, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
3782
- ], 40, Rn));
4190
+ ], 40, nl));
3783
4191
  }
3784
- }, Un = ["aria-labelledby", "data-active", "id"], Tl = {
4192
+ }, sl = ["aria-labelledby", "data-active", "id"], Kl = {
3785
4193
  __name: "BsTabPanel",
3786
4194
  props: {
3787
4195
  activeTabId: {
@@ -3794,18 +4202,18 @@ const Xt = {
3794
4202
  }
3795
4203
  },
3796
4204
  setup(e) {
3797
- const a = e, t = G(), n = g(() => a.activeTabId && a.activeTabId === a.tabId), l = g(() => t.id || `${a.tabId}-panel`);
3798
- return (r, d) => (s(), p("section", {
4205
+ const a = e, t = G(), n = v(() => a.activeTabId && a.activeTabId === a.tabId), l = v(() => t.id || `${a.tabId}-panel`);
4206
+ return (r, s) => (d(), h("section", {
3799
4207
  "aria-labelledby": e.tabId,
3800
4208
  "data-active": n.value,
3801
4209
  "data-component": "bs-tab-panel",
3802
4210
  id: l.value,
3803
4211
  role: "tabpanel"
3804
4212
  }, [
3805
- L(r.$slots, "default")
3806
- ], 8, Un));
4213
+ E(r.$slots, "default")
4214
+ ], 8, sl));
3807
4215
  }
3808
- }, Gn = ["data-error", "id", "rows", "value"], Hn = {
4216
+ }, dl = ["data-error", "id", "rows", "value"], ul = {
3809
4217
  __name: "BsTextarea",
3810
4218
  props: {
3811
4219
  error: {
@@ -3820,18 +4228,18 @@ const Xt = {
3820
4228
  },
3821
4229
  emits: ["update:modelValue"],
3822
4230
  setup(e, { emit: a }) {
3823
- const t = e, n = g(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
3824
- return (l, r) => (s(), p("textarea", R({
4231
+ const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
4232
+ return (l, r) => (d(), h("textarea", P({
3825
4233
  class: "bs-textarea",
3826
4234
  "data-component": "bs-textarea",
3827
4235
  "data-error": e.error,
3828
4236
  id: l.$attrs.id || e.inputId,
3829
4237
  rows: l.$attrs.rows || 6,
3830
4238
  value: e.value || e.modelValue,
3831
- onInput: r[0] || (r[0] = (d) => l.$emit("update:modelValue", d.target.value))
3832
- }, n.value), null, 16, Gn));
4239
+ onInput: r[0] || (r[0] = (s) => l.$emit("update:modelValue", s.target.value))
4240
+ }, n.value), null, 16, dl));
3833
4241
  }
3834
- }, xl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
4242
+ }, Yl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3835
4243
  __name: "BsTextareaField",
3836
4244
  props: {
3837
4245
  /** 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. */
@@ -3880,59 +4288,59 @@ const Xt = {
3880
4288
  },
3881
4289
  emits: ["update:modelValue"],
3882
4290
  setup(e, { emit: a }) {
3883
- const t = e, n = G(), [l, r] = Y(2), { toChild: d, toRoot: i } = ie(t, n, [
4291
+ const t = e, n = G(), [l, r] = Y(2), { toChild: s, toRoot: o } = ie(t, n, [
3884
4292
  "aria-label",
3885
4293
  "autocomplete",
3886
4294
  "cols",
3887
4295
  "maxlength",
3888
4296
  "minlength",
3889
4297
  "name"
3890
- ]), o = g(() => {
3891
- var m;
3892
- return ((m = t.value || t.modelValue) == null ? void 0 : m.length) || 0;
3893
- }), u = g(() => {
3894
- var m, b;
3895
- return ((b = (m = t.hints) == null ? void 0 : m.join) == null ? void 0 : b.call(m, `
4298
+ ]), i = v(() => {
4299
+ var g;
4300
+ return ((g = t.value || t.modelValue) == null ? void 0 : g.length) || 0;
4301
+ }), u = v(() => {
4302
+ var g, m;
4303
+ return ((m = (g = t.hints) == null ? void 0 : g.join) == null ? void 0 : m.call(g, `
3896
4304
  `)) || t.hints;
3897
- }), c = g(() => t.error && t.errorMsg || t.hint || u.value || void 0), h = g(() => t.inputId || l.value);
3898
- return (m, b) => (s(), p("div", R({ "data-component": "bs-textarea-field" }, f(i)), [
3899
- e.label || m.$slots.label ? (s(), V(ne, {
4305
+ }), c = v(() => t.error && t.errorMsg || t.hint || u.value || void 0), f = v(() => t.inputId || l.value);
4306
+ return (g, m) => (d(), h("div", P({ "data-component": "bs-textarea-field" }, p(o)), [
4307
+ e.label || g.$slots.label ? (d(), V(ne, {
3900
4308
  key: 0,
3901
- for: h.value,
4309
+ for: f.value,
3902
4310
  disabled: e.disabled,
3903
4311
  required: e.required
3904
4312
  }, {
3905
- default: E(() => [
3906
- L(m.$slots, "label", {}, () => [
3907
- j(T(e.label), 1)
4313
+ default: O(() => [
4314
+ E(g.$slots, "label", {}, () => [
4315
+ U(T(e.label), 1)
3908
4316
  ])
3909
4317
  ]),
3910
4318
  _: 3
3911
- }, 8, ["for", "disabled", "required"])) : I("", !0),
3912
- P(Hn, R({
4319
+ }, 8, ["for", "disabled", "required"])) : $("", !0),
4320
+ D(ul, P({
3913
4321
  disabled: e.disabled,
3914
4322
  error: e.error,
3915
- "hint-id": f(r),
3916
- id: h.value,
4323
+ "hint-id": p(r),
4324
+ id: f.value,
3917
4325
  placeholder: e.placeholder,
3918
4326
  required: e.required,
3919
4327
  rows: e.rows,
3920
4328
  value: e.value || e.modelValue,
3921
- "onUpdate:modelValue": b[0] || (b[0] = (x) => m.$emit("update:modelValue", x))
3922
- }, f(d)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
3923
- c.value || e.charMax ? (s(), V(Se, {
4329
+ "onUpdate:modelValue": m[0] || (m[0] = (x) => g.$emit("update:modelValue", x))
4330
+ }, p(s)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
4331
+ c.value || e.charMax ? (d(), V(ce, {
3924
4332
  key: 1,
3925
- "char-count": o.value,
4333
+ "char-count": i.value,
3926
4334
  "char-max": e.charMax,
3927
4335
  "data-disabled": e.disabled,
3928
4336
  error: e.error,
3929
4337
  "error-msg": e.errorMsg,
3930
4338
  hint: e.hint || u.value,
3931
- "hint-id": f(r)
3932
- }, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : I("", !0)
4339
+ "hint-id": p(r)
4340
+ }, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
3933
4341
  ], 16));
3934
4342
  }
3935
- }), Kn = ["data-variant", "data-stacked"], Al = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
4343
+ }), cl = ["data-variant", "data-stacked"], Ql = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3936
4344
  __name: "BsToast",
3937
4345
  props: {
3938
4346
  shown: {
@@ -3978,111 +4386,111 @@ const Xt = {
3978
4386
  },
3979
4387
  emits: ["dismiss", "after-enter", "after-leave"],
3980
4388
  setup(e, { emit: a }) {
3981
- const t = e, n = a, { transition: l } = Be(t);
4389
+ const t = e, n = a, { transition: l } = ue(t);
3982
4390
  let r = null;
3983
- le("variant", t.variant), le("handleDismiss", i);
3984
- const d = oe("stacked", t.stacked);
3985
- function i() {
4391
+ re("variant", t.variant), re("handleDismiss", o);
4392
+ const s = se("stacked", t.stacked);
4393
+ function o() {
3986
4394
  r && (clearTimeout(r), r = null), n("dismiss", t.toastId);
3987
4395
  }
3988
- function o() {
4396
+ function i() {
3989
4397
  t.duration > 0 && (r = setTimeout(() => {
3990
- i();
4398
+ o();
3991
4399
  }, t.duration)), n("after-enter");
3992
4400
  }
3993
- return (u, c) => (s(), V(f($e), {
3994
- shown: f(l),
4401
+ return (u, c) => (d(), V(p(Ie), {
4402
+ shown: p(l),
3995
4403
  preloaded: e.preloaded,
3996
4404
  duration: 200,
3997
4405
  "enter-attribute": "data-shown",
3998
- onAfterEnter: o,
3999
- onAfterLeave: c[0] || (c[0] = (h) => n("after-leave"))
4406
+ onAfterEnter: i,
4407
+ onAfterLeave: c[0] || (c[0] = (f) => n("after-leave"))
4000
4408
  }, {
4001
- default: E(() => [
4002
- B("div", R({
4409
+ default: O(() => [
4410
+ B("div", P({
4003
4411
  class: "bs-toast",
4004
4412
  "data-variant": e.variant,
4005
- "data-stacked": f(d) || void 0,
4413
+ "data-stacked": p(s) || void 0,
4006
4414
  "aria-role": "alert"
4007
4415
  }, u.$attrs), [
4008
- L(u.$slots, "default")
4009
- ], 16, Kn)
4416
+ E(u.$slots, "default")
4417
+ ], 16, cl)
4010
4418
  ]),
4011
4419
  _: 3
4012
4420
  }, 8, ["shown", "preloaded"]));
4013
4421
  }
4014
- }), Yn = ["data-stacked"], Ll = {
4422
+ }), fl = ["data-stacked"], Xl = {
4015
4423
  __name: "BsToastActions",
4016
4424
  setup(e) {
4017
- const a = $(!1);
4018
- U(() => {
4425
+ const a = y(!1);
4426
+ W(() => {
4019
4427
  var l;
4020
- const n = ot();
4428
+ const n = ft();
4021
4429
  ((l = n.default) == null ? void 0 : l.call(n).length) > 2 && (a.value = !0);
4022
4430
  });
4023
- const t = oe("handleDismiss");
4024
- return (n, l) => (s(), p("div", {
4431
+ const t = se("handleDismiss");
4432
+ return (n, l) => (d(), h("div", {
4025
4433
  class: "bs-toast-actions",
4026
4434
  "data-stacked": a.value || void 0
4027
4435
  }, [
4028
- L(n.$slots, "default", {}, () => [
4029
- P(Rt, {
4436
+ E(n.$slots, "default", {}, () => [
4437
+ D(sa, {
4030
4438
  size: "sm",
4031
4439
  "text-btn": "",
4032
- onClick: f(t)
4440
+ onClick: p(t)
4033
4441
  }, {
4034
- default: E(() => [
4035
- j(" Dismiss ")
4442
+ default: O(() => [
4443
+ U(" Dismiss ")
4036
4444
  ]),
4037
4445
  _: 1
4038
4446
  }, 8, ["onClick"])
4039
4447
  ])
4040
- ], 8, Yn));
4448
+ ], 8, fl));
4041
4449
  }
4042
- }, Xn = (e, a) => {
4450
+ }, pl = (e, a) => {
4043
4451
  const t = e.__vccOpts || e;
4044
4452
  for (const [n, l] of a)
4045
4453
  t[n] = l;
4046
4454
  return t;
4047
- }, Zn = {}, Jn = { class: "bs-toast-body" };
4048
- function Qn(e, a) {
4049
- return s(), p("div", Jn, [
4050
- L(e.$slots, "default")
4455
+ }, hl = {}, vl = { class: "bs-toast-body" };
4456
+ function bl(e, a) {
4457
+ return d(), h("div", vl, [
4458
+ E(e.$slots, "default")
4051
4459
  ]);
4052
4460
  }
4053
- const Vl = /* @__PURE__ */ Xn(Zn, [["render", Qn]]), _n = ["data-variant"], El = {
4461
+ const Zl = /* @__PURE__ */ pl(hl, [["render", bl]]), ml = ["data-variant"], Jl = {
4054
4462
  __name: "BsToastHeader",
4055
4463
  setup(e) {
4056
- const a = oe("variant"), t = g(() => {
4464
+ const a = se("variant"), t = v(() => {
4057
4465
  switch (a) {
4058
4466
  case "warning":
4059
- return Ve;
4467
+ return Oe;
4060
4468
  case "positive":
4061
- return vt;
4469
+ return St;
4062
4470
  case "negative":
4063
- return Ve;
4471
+ return Oe;
4064
4472
  default:
4065
- return ht;
4473
+ return Bt;
4066
4474
  }
4067
4475
  });
4068
- return (n, l) => (s(), p("div", {
4476
+ return (n, l) => (d(), h("div", {
4069
4477
  class: "bs-toast-header",
4070
- "data-variant": f(a)
4478
+ "data-variant": p(a)
4071
4479
  }, [
4072
- (s(), V(Z(t.value), { class: "bs-toast-header-icon" })),
4480
+ (d(), V(J(t.value), { class: "bs-toast-header-icon" })),
4073
4481
  B("h5", null, [
4074
- L(n.$slots, "default")
4482
+ E(n.$slots, "default")
4075
4483
  ])
4076
- ], 8, _n));
4484
+ ], 8, ml));
4077
4485
  }
4078
- }, el = { class: "bs-toaster" }, Pl = {
4486
+ }, gl = { class: "bs-toaster" }, _l = {
4079
4487
  __name: "BsToaster",
4080
4488
  setup(e) {
4081
- return le("stacked", !0), (a, t) => (s(), p("div", el, [
4082
- L(a.$slots, "default")
4489
+ return re("stacked", !0), (a, t) => (d(), h("div", gl, [
4490
+ E(a.$slots, "default")
4083
4491
  ]));
4084
4492
  }
4085
- }, tl = ["data-position"], al = ["id"], Ol = {
4493
+ }, yl = ["data-position"], Bl = ["id"], eo = {
4086
4494
  __name: "BsTooltip",
4087
4495
  props: {
4088
4496
  tooltipId: {
@@ -4109,85 +4517,86 @@ const Vl = /* @__PURE__ */ Xn(Zn, [["render", Qn]]), _n = ["data-variant"], El =
4109
4517
  }
4110
4518
  },
4111
4519
  setup(e) {
4112
- const a = e, t = $(!1), n = $(!1), l = g(() => {
4113
- let i = "bs-tooltip-text";
4114
- return n.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ? i += " escaped-x" : a.position === "left" || a.position === "right" ? i += " escaped-y" : i += " escaped"), i;
4520
+ const a = e, t = y(!1), n = y(!1), l = v(() => {
4521
+ let o = "bs-tooltip-text";
4522
+ return n.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ? o += " escaped-x" : a.position === "left" || a.position === "right" ? o += " escaped-y" : o += " escaped"), o;
4115
4523
  });
4116
- ye(["Escape"], () => {
4524
+ $e(["Escape"], () => {
4117
4525
  t.value && (t.value = !1, n.value = !0);
4118
4526
  });
4119
4527
  function r() {
4120
4528
  t.value = !0;
4121
4529
  }
4122
- function d() {
4530
+ function s() {
4123
4531
  t.value = !1, n.value = !1;
4124
4532
  }
4125
- return (i, o) => (s(), p("div", {
4533
+ return (o, i) => (d(), h("div", {
4126
4534
  class: "bs-tooltip",
4127
4535
  "data-position": e.position || void 0,
4128
4536
  "data-component": "bs-tooltip",
4129
4537
  onMouseenter: r,
4130
4538
  onFocusin: r,
4131
- onMouseleave: d,
4132
- onFocusout: d
4539
+ onMouseleave: s,
4540
+ onFocusout: s
4133
4541
  }, [
4134
- L(i.$slots, "default"),
4135
- e.content ? (s(), p("div", {
4542
+ E(o.$slots, "default"),
4543
+ e.content ? (d(), h("div", {
4136
4544
  key: 0,
4137
- class: _(l.value),
4545
+ class: ae(l.value),
4138
4546
  id: e.tooltipId,
4139
4547
  role: "tooltip"
4140
- }, T(e.content), 11, al)) : I("", !0)
4141
- ], 40, tl));
4548
+ }, T(e.content), 11, Bl)) : $("", !0)
4549
+ ], 40, yl));
4142
4550
  }
4143
4551
  };
4144
4552
  export {
4145
- sl as BsAccordion,
4146
- Dt as BsBadge,
4147
- dl as BsBanner,
4148
- Rt as BsButton,
4149
- ul as BsChartBar,
4150
- na as BsCheckbox,
4151
- cl as BsCircleButton,
4152
- Xe as BsDropdown,
4153
- Ca as BsDropdownMultiselect,
4154
- Oe as BsDropdownOption,
4155
- pe as BsDropdownOptionBuilder,
4553
+ xl as BsAccordion,
4554
+ Ut as BsBadge,
4555
+ Tl as BsBanner,
4556
+ sa as BsButton,
4557
+ Al as BsCalendar,
4558
+ Ll as BsChartBar,
4559
+ $a as BsCheckbox,
4560
+ Vl as BsCircleButton,
4561
+ nt as BsDropdown,
4562
+ Ya as BsDropdownMultiselect,
4563
+ ze as BsDropdownOption,
4564
+ me as BsDropdownOptionBuilder,
4156
4565
  Pe as BsDropdownOptionList,
4157
- De as BsDropdownWithOptions,
4158
- fl as BsDropdownWithToggle,
4159
- Se as BsFieldDetails,
4160
- Aa as BsFilterButton,
4161
- pl as BsIconGradientWrapper,
4162
- Me as BsInput,
4163
- Je as BsInputAddon,
4164
- hl as BsInputField,
4165
- vl as BsInputPhone,
4166
- Wa as BsInputSearch,
4167
- bl as BsInputTypeahead,
4566
+ Re as BsDropdownWithOptions,
4567
+ El as BsDropdownWithToggle,
4568
+ ce as BsFieldDetails,
4569
+ Ja as BsFilterButton,
4570
+ Dl as BsIconGradientWrapper,
4571
+ fe as BsInput,
4572
+ ke as BsInputAddon,
4573
+ Ol as BsInputField,
4574
+ ql as BsInputPhone,
4575
+ sn as BsInputSearch,
4576
+ Ml as BsInputTypeahead,
4168
4577
  ne as BsLabel,
4169
- gl as BsLoader,
4170
- ml as BsModal,
4171
- Qa as BsOverlay,
4172
- yl as BsPagination,
4173
- Bl as BsPill,
4174
- $l as BsProfile,
4175
- Tn as BsProfileDetails,
4176
- Ze as BsProfileImg,
4177
- Sl as BsRadio,
4178
- Vn as BsSelect,
4179
- wl as BsSelectField,
4180
- kl as BsSwitch,
4181
- Il as BsTab,
4182
- Cl as BsTabList,
4183
- Tl as BsTabPanel,
4184
- Hn as BsTextarea,
4185
- xl as BsTextareaField,
4186
- Al as BsToast,
4187
- Ll as BsToastActions,
4188
- Vl as BsToastBody,
4189
- El as BsToastHeader,
4190
- Pl as BsToaster,
4191
- Ol as BsTooltip,
4192
- $e as BsTransition
4578
+ Pl as BsLoader,
4579
+ zl as BsModal,
4580
+ mn as BsOverlay,
4581
+ Rl as BsPagination,
4582
+ Nl as BsPill,
4583
+ jl as BsProfile,
4584
+ Gn as BsProfileDetails,
4585
+ lt as BsProfileImg,
4586
+ Ul as BsRadio,
4587
+ Qn as BsSelect,
4588
+ Fl as BsSelectField,
4589
+ Wl as BsSwitch,
4590
+ Gl as BsTab,
4591
+ Hl as BsTabList,
4592
+ Kl as BsTabPanel,
4593
+ ul as BsTextarea,
4594
+ Yl as BsTextareaField,
4595
+ Ql as BsToast,
4596
+ Xl as BsToastActions,
4597
+ Zl as BsToastBody,
4598
+ Jl as BsToastHeader,
4599
+ _l as BsToaster,
4600
+ eo as BsTooltip,
4601
+ Ie as BsTransition
4193
4602
  };