@adyen/bento-vue2 1.62.0 → 1.62.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/assets/accordion-item.css +1 -1
  2. package/dist/assets/action-bar.css +1 -1
  3. package/dist/assets/base-modal.css +1 -1
  4. package/dist/assets/card.css +1 -1
  5. package/dist/assets/data-grid.css +1 -1
  6. package/dist/assets/dialog-page.css +1 -1
  7. package/dist/assets/file-uploader.css +1 -1
  8. package/dist/assets/inspector.css +1 -1
  9. package/dist/assets/menu.css +1 -1
  10. package/dist/assets/modal-fullscreen.css +1 -1
  11. package/dist/assets/popover.css +1 -1
  12. package/dist/assets/sidepanel.css +1 -1
  13. package/dist/chunks/{code-snippet.n93oYvH4.js → code-snippet.C17bZ5LS.js} +2 -2
  14. package/dist/chunks/{code-snippet.n93oYvH4.js.map → code-snippet.C17bZ5LS.js.map} +1 -1
  15. package/dist/chunks/{data-grid.BcGRXt9C.js → data-grid.BFw0RHNG.js} +5 -5
  16. package/dist/chunks/{data-grid.BcGRXt9C.js.map → data-grid.BFw0RHNG.js.map} +1 -1
  17. package/dist/chunks/{date-picker.Dc_HdQnr.js → date-picker.DIegsFDO.js} +12 -12
  18. package/dist/chunks/{date-picker.Dc_HdQnr.js.map → date-picker.DIegsFDO.js.map} +1 -1
  19. package/dist/chunks/{date-range-picker.D6xJAHoB.js → date-range-picker.bQnZ1R2Q.js} +20 -20
  20. package/dist/chunks/{date-range-picker.D6xJAHoB.js.map → date-range-picker.bQnZ1R2Q.js.map} +1 -1
  21. package/dist/chunks/{dropdown-tag.qKSu6xYY.js → dropdown-tag.DopZ3PPD.js} +2 -2
  22. package/dist/chunks/{dropdown-tag.qKSu6xYY.js.map → dropdown-tag.DopZ3PPD.js.map} +1 -1
  23. package/dist/chunks/{dropdown.BNLPzKbr.js → dropdown.4KhU0G3H.js} +16 -16
  24. package/dist/chunks/{dropdown.BNLPzKbr.js.map → dropdown.4KhU0G3H.js.map} +1 -1
  25. package/dist/chunks/{filter-bar.TiqZofNt.js → filter-bar.BcQUTqis.js} +7 -7
  26. package/dist/chunks/{filter-bar.TiqZofNt.js.map → filter-bar.BcQUTqis.js.map} +1 -1
  27. package/dist/chunks/{header-with-views.MFHmiIXb.js → header-with-views.DKj9cp5r.js} +2 -2
  28. package/dist/chunks/{header-with-views.MFHmiIXb.js.map → header-with-views.DKj9cp5r.js.map} +1 -1
  29. package/dist/chunks/{input-field-password.BlX3Icgt.js → input-field-password.D-rEjNIS.js} +3 -3
  30. package/dist/chunks/{input-field-password.BlX3Icgt.js.map → input-field-password.D-rEjNIS.js.map} +1 -1
  31. package/dist/chunks/{input-field-phone-number.Ofvi2A48.js → input-field-phone-number.BXopNol8.js} +3 -3
  32. package/dist/chunks/{input-field-phone-number.Ofvi2A48.js.map → input-field-phone-number.BXopNol8.js.map} +1 -1
  33. package/dist/chunks/{input-field.Dck9dAeK.js → input-field.cU5zOb6o.js} +2 -2
  34. package/dist/chunks/{input-field.Dck9dAeK.js.map → input-field.cU5zOb6o.js.map} +1 -1
  35. package/dist/chunks/{pagination.BvhUFgsT.js → pagination.K2EzoJKj.js} +2 -2
  36. package/dist/chunks/{pagination.BvhUFgsT.js.map → pagination.K2EzoJKj.js.map} +1 -1
  37. package/dist/chunks/{search-bar.Ch1dLZAb.js → search-bar.2U9B3XTR.js} +3 -3
  38. package/dist/chunks/{search-bar.Ch1dLZAb.js.map → search-bar.2U9B3XTR.js.map} +1 -1
  39. package/dist/chunks/{secondary-nav.DBssP9fQ.js → secondary-nav.D5bWZz_7.js} +2 -2
  40. package/dist/chunks/{secondary-nav.DBssP9fQ.js.map → secondary-nav.D5bWZz_7.js.map} +1 -1
  41. package/dist/chunks/{use-cached-selected-values.Da6xbfzO.js → use-cached-selected-values.DzIppuhI.js} +181 -181
  42. package/dist/chunks/{use-cached-selected-values.Da6xbfzO.js.map → use-cached-selected-values.DzIppuhI.js.map} +1 -1
  43. package/dist/code-snippet.js +1 -1
  44. package/dist/data-grid.js +1 -1
  45. package/dist/date-picker.js +1 -1
  46. package/dist/date-range-picker.js +1 -1
  47. package/dist/dropdown.js +3 -3
  48. package/dist/filter-bar.js +1 -1
  49. package/dist/header-with-views.js +1 -1
  50. package/dist/index.js +15 -15
  51. package/dist/input-field-password.js +1 -1
  52. package/dist/input-field-phone-number.js +1 -1
  53. package/dist/input-field.js +1 -1
  54. package/dist/internal.js +1 -1
  55. package/dist/pagination.js +1 -1
  56. package/dist/search-bar.js +2 -2
  57. package/dist/secondary-nav.js +1 -1
  58. package/dist/web-types.json +1 -1
  59. package/package.json +2 -2
@@ -14,41 +14,41 @@ import { d as Le, e as ie } from "./button-actions._OIvTdKt.js";
14
14
  /* empty css */
15
15
  import { o as Ie } from "./resize.Bqks3WUm.js";
16
16
  import "../assets/use-cached-selected-values.css";
17
- const ue = (s, e, t, l) => {
17
+ const ue = (l, e, t, s) => {
18
18
  const o = c(
19
19
  () => {
20
- var b, S;
21
- return !!((b = s.value) != null && b.length) && ((S = s.value) == null ? void 0 : S.length) === e.value.length;
20
+ var v, S;
21
+ return !!((v = l.value) != null && v.length) && ((S = l.value) == null ? void 0 : S.length) === e.value.length;
22
22
  }
23
23
  ), n = c(() => {
24
- var b;
25
- return s.value == null || s.value.length === 0 ? !1 : ((b = s.value) == null ? void 0 : b.length) !== e.value.length;
24
+ var v;
25
+ return l.value == null || l.value.length === 0 ? !1 : ((v = l.value) == null ? void 0 : v.length) !== e.value.length;
26
26
  });
27
27
  return {
28
28
  isAllSelected: o,
29
29
  isIndeterminate: n,
30
- toggleSelectAll: (b) => {
31
- b ? t() : l();
30
+ toggleSelectAll: (v) => {
31
+ v ? t() : s();
32
32
  }
33
33
  };
34
34
  };
35
- function Re(s, { disabled: e, itemHeight: t, overscan: l = 5, prefixHeight: o }) {
36
- const n = A(null), d = A([]), b = A(0), S = A(0), i = A(0);
35
+ function Re(l, { disabled: e, itemHeight: t, overscan: s = 5, prefixHeight: o }) {
36
+ const n = A(null), d = A([]), v = A(0), S = A(0), i = A(0);
37
37
  let r;
38
38
  const y = c(() => {
39
- const v = typeof t == "number" ? s.value.length * t : s.value.reduce((L, T, E) => L + t(E), 0), x = typeof t == "number" ? b.value * t : s.value.slice(0, b.value).reduce((L, T, E) => L + t(E), 0);
39
+ const b = typeof t == "number" ? l.value.length * t : l.value.reduce((L, T, E) => L + t(E), 0), x = typeof t == "number" ? v.value * t : l.value.slice(0, v.value).reduce((L, T, E) => L + t(E), 0);
40
40
  return {
41
41
  style: {
42
42
  marginTop: `${x}px`,
43
- height: `${v - x}px`
43
+ height: `${b - x}px`
44
44
  }
45
45
  };
46
46
  }), O = () => {
47
- const v = (o == null ? void 0 : o.value) ?? 0, x = Math.max(n.value.scrollTop - v, 0);
47
+ const b = (o == null ? void 0 : o.value) ?? 0, x = Math.max(n.value.scrollTop - b, 0);
48
48
  if (typeof t == "number")
49
49
  return Math.floor(x / t);
50
50
  let L = 0, T = 0;
51
- for (let E = 0; E < s.value.length; E += 1) {
51
+ for (let E = 0; E < l.value.length; E += 1) {
52
52
  const C = t(E);
53
53
  if (L += C, L >= x) {
54
54
  T = E;
@@ -59,30 +59,30 @@ function Re(s, { disabled: e, itemHeight: t, overscan: l = 5, prefixHeight: o })
59
59
  }, p = () => {
60
60
  if (i.value = n.value.clientHeight, typeof t == "number")
61
61
  return Math.ceil(i.value / t);
62
- const v = b.value ?? 0;
62
+ const b = v.value ?? 0;
63
63
  let x = 0, L = 0;
64
- for (let T = v; T < s.value.length; T += 1) {
64
+ for (let T = b; T < l.value.length; T += 1) {
65
65
  const E = t(T);
66
66
  if (x += E, L = T, x > i.value)
67
67
  break;
68
68
  }
69
- return L - v;
69
+ return L - b;
70
70
  }, u = () => {
71
71
  if (n.value) {
72
- const v = p();
73
- b.value = O(), S.value = Math.min(b.value + v + l, s.value.length), d.value = s.value.slice(b.value, S.value);
72
+ const b = p();
73
+ v.value = O(), S.value = Math.min(v.value + b + s, l.value.length), d.value = l.value.slice(v.value, S.value);
74
74
  }
75
75
  }, I = () => {
76
76
  u();
77
77
  };
78
78
  e || (ye(() => {
79
- n.value && (i.value = n.value.clientHeight, r = Ie(n.value, ({ clientHeight: v }) => {
80
- i.value = v, u();
79
+ n.value && (i.value = n.value.clientHeight, r = Ie(n.value, ({ clientHeight: b }) => {
80
+ i.value = b, u();
81
81
  }), u());
82
82
  }), he(() => {
83
83
  r == null || r.disconnect();
84
84
  }), K(
85
- () => s.value,
85
+ () => l.value,
86
86
  () => {
87
87
  u();
88
88
  }
@@ -97,7 +97,7 @@ function Re(s, { disabled: e, itemHeight: t, overscan: l = 5, prefixHeight: o })
97
97
  // eslint-disable-next-line @typescript-eslint/no-empty-function
98
98
  onScroll: () => {
99
99
  },
100
- list: s
100
+ list: l
101
101
  } : {
102
102
  containerRef: n,
103
103
  containerProps: B,
@@ -106,7 +106,7 @@ function Re(s, { disabled: e, itemHeight: t, overscan: l = 5, prefixHeight: o })
106
106
  wrapperProps: y
107
107
  };
108
108
  }
109
- var a = /* @__PURE__ */ ((s) => (s.SELECT = "select", s.SHOW_MORE = "show-more", s.ESCAPE = "escape-pressed", s.CLICK = "click", s.ENTER = "enter-pressed", s.SPACE = "space-pressed", s.TAB = "tab-pressed", s.CLOSE_DROPDOWN = "close-dropdown", s))(a || {}), U = /* @__PURE__ */ ((s) => (s.AUTOMATIC = "automatic", s.BUTTON = "button", s.NONE = "none", s))(U || {});
109
+ var a = /* @__PURE__ */ ((l) => (l.SELECT = "select", l.SHOW_MORE = "show-more", l.ESCAPE = "escape-pressed", l.CLICK = "click", l.ENTER = "enter-pressed", l.SPACE = "space-pressed", l.TAB = "tab-pressed", l.CLOSE_DROPDOWN = "close-dropdown", l))(a || {}), U = /* @__PURE__ */ ((l) => (l.AUTOMATIC = "automatic", l.BUTTON = "button", l.NONE = "none", l))(U || {});
110
110
  const ke = P({
111
111
  name: "bento-listbox-static-category",
112
112
  components: {
@@ -146,10 +146,10 @@ const Me = Ne.exports, $e = P({
146
146
  selected: { type: Boolean, default: !1 }
147
147
  },
148
148
  emits: [a.CLICK, a.ENTER, a.SPACE, a.TAB],
149
- setup(s, { emit: e }) {
149
+ setup(l, { emit: e }) {
150
150
  const t = c(() => ({
151
- "b-listbox-option--disabled": s.disabled,
152
- "b-listbox-option--selected": s.selected
151
+ "b-listbox-option--disabled": l.disabled,
152
+ "b-listbox-option--selected": l.selected
153
153
  }));
154
154
  return {
155
155
  // Enums
@@ -169,12 +169,12 @@ const Me = Ne.exports, $e = P({
169
169
  });
170
170
  var we = function() {
171
171
  var e = this, t = e._self._c;
172
- return e._self._setupProxy, t("div", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(l) {
173
- return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, l);
174
- }, function(l) {
175
- return !l.type.indexOf("key") && e._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onOptionSelected(e.BentoListboxEvent.SPACE, l);
176
- }, function(l) {
177
- return !l.type.indexOf("key") && e._k(l.keyCode, "tab", 9, l.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, l);
172
+ return e._self._setupProxy, t("div", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(s) {
173
+ return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, s);
174
+ }, function(s) {
175
+ return !s.type.indexOf("key") && e._k(s.keyCode, "space", 32, s.key, [" ", "Spacebar"]) ? null : e.onOptionSelected(e.BentoListboxEvent.SPACE, s);
176
+ }, function(s) {
177
+ return !s.type.indexOf("key") && e._k(s.keyCode, "tab", 9, s.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, s);
178
178
  }] } }, "div", e.$attrs, !1), [e._t("default")], 2);
179
179
  }, Pe = [], Fe = /* @__PURE__ */ M(
180
180
  $e,
@@ -228,13 +228,13 @@ const We = Ye.exports, Ke = P({
228
228
  selected: { type: Boolean, default: !1 }
229
229
  },
230
230
  emits: [a.ENTER, a.SELECT, a.SPACE, a.TAB],
231
- setup(s, { emit: e }) {
231
+ setup(l, { emit: e }) {
232
232
  const t = (d) => {
233
- s.disabled || e(d, s.option);
234
- }, l = c(() => s.disabled ? !0 : null), o = c(() => s.selected ? !0 : null), n = c(() => s.disabled ? -1 : 0);
233
+ l.disabled || e(d, l.option);
234
+ }, s = c(() => l.disabled ? !0 : null), o = c(() => l.selected ? !0 : null), n = c(() => l.disabled ? -1 : 0);
235
235
  return {
236
236
  // Values
237
- ariaDisabled: l,
237
+ ariaDisabled: s,
238
238
  ariaSelected: o,
239
239
  tabIndex: n,
240
240
  // Enums
@@ -246,13 +246,13 @@ const We = Ye.exports, Ke = P({
246
246
  });
247
247
  var qe = function() {
248
248
  var e = this, t = e._self._c;
249
- return e._self._setupProxy, t("bento-listbox-option", { staticClass: "b-listbox-single-select-option", attrs: { disabled: e.disabled, selected: e.selected, "aria-selected": e.ariaSelected, "aria-disabled": e.ariaDisabled, tabindex: e.tabIndex }, on: { click: function(l) {
249
+ return e._self._setupProxy, t("bento-listbox-option", { staticClass: "b-listbox-single-select-option", attrs: { disabled: e.disabled, selected: e.selected, "aria-selected": e.ariaSelected, "aria-disabled": e.ariaDisabled, tabindex: e.tabIndex }, on: { click: function(s) {
250
250
  return e.onOptionSelected(e.BentoListboxEvent.SELECT);
251
- }, "enter-pressed": function(l) {
251
+ }, "enter-pressed": function(s) {
252
252
  return e.onOptionSelected(e.BentoListboxEvent.ENTER);
253
- }, "space-pressed": function(l) {
254
- return l.preventDefault(), e.onOptionSelected(e.BentoListboxEvent.SPACE);
255
- }, "tab-pressed": function(l) {
253
+ }, "space-pressed": function(s) {
254
+ return s.preventDefault(), e.onOptionSelected(e.BentoListboxEvent.SPACE);
255
+ }, "tab-pressed": function(s) {
256
256
  return e.onOptionSelected(e.BentoListboxEvent.TAB);
257
257
  } } }, [e._t("default", function() {
258
258
  return [t("span", { staticClass: "b-listbox-single-select-option__text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.option.label))]), e.option.description ? t("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
@@ -265,10 +265,10 @@ var qe = function() {
265
265
  null,
266
266
  "5a5ff36a"
267
267
  );
268
- const Xe = He.exports, de = ({ items: s, hasStaticCategories: e }, t) => {
269
- const l = c(
270
- () => e.value ? s.value.flatMap((u) => u.items) : s.value
271
- ), o = c(() => l.value.length - 1), n = A(0), d = (u) => {
268
+ const Xe = He.exports, de = ({ items: l, hasStaticCategories: e }, t) => {
269
+ const s = c(
270
+ () => e.value ? l.value.flatMap((u) => u.items) : l.value
271
+ ), o = c(() => s.value.length - 1), n = A(0), d = (u) => {
272
272
  switch (u) {
273
273
  case "increase":
274
274
  n.value += 1;
@@ -277,10 +277,10 @@ const Xe = He.exports, de = ({ items: s, hasStaticCategories: e }, t) => {
277
277
  n.value -= 1;
278
278
  break;
279
279
  }
280
- }, b = ({ edgeCaseItem: u }, I) => {
280
+ }, v = ({ edgeCaseItem: u }, I) => {
281
281
  n.value !== u && (d(I), t(n.value));
282
282
  }, S = (u) => {
283
- p(u), b(
283
+ p(u), v(
284
284
  {
285
285
  edgeCaseItem: o.value
286
286
  },
@@ -288,7 +288,7 @@ const Xe = He.exports, de = ({ items: s, hasStaticCategories: e }, t) => {
288
288
  /* INCREASE */
289
289
  );
290
290
  }, i = (u) => {
291
- p(u), b(
291
+ p(u), v(
292
292
  {
293
293
  edgeCaseItem: 0
294
294
  },
@@ -362,15 +362,15 @@ const Xe = He.exports, de = ({ items: s, hasStaticCategories: e }, t) => {
362
362
  staticCategories: { type: Boolean, default: !1 }
363
363
  },
364
364
  emits: [a.SELECT, a.ENTER, a.SPACE, a.TAB],
365
- setup(s, { emit: e, expose: t, slots: l }) {
365
+ setup(l, { emit: e, expose: t, slots: s }) {
366
366
  const o = A(null), n = A([]), d = c(() => {
367
- var v;
368
- return !!((v = s.selectedValue) != null && v.length) && s.selectedValue.at(0);
369
- }), b = c(() => !!s.items.some(({ items: v }) => !!v)), S = (v) => (x) => {
370
- e(v, [x]);
371
- }, i = (v) => {
367
+ var b;
368
+ return !!((b = l.selectedValue) != null && b.length) && l.selectedValue.at(0);
369
+ }), v = c(() => !!l.items.some(({ items: b }) => !!b)), S = (b) => (x) => {
370
+ e(b, [x]);
371
+ }, i = (b) => {
372
372
  var x;
373
- (x = o.value.querySelectorAll('[role="option"]')[v]) == null || x.focus();
373
+ (x = o.value.querySelectorAll('[role="option"]')[b]) == null || x.focus();
374
374
  }, {
375
375
  moveToNextElement: r,
376
376
  moveToPreviousElement: y,
@@ -379,8 +379,8 @@ const Xe = He.exports, de = ({ items: s, hasStaticCategories: e }, t) => {
379
379
  setListboxFocusedIndex: u
380
380
  } = de(
381
381
  {
382
- items: F(s, "items"),
383
- hasStaticCategories: F(s, "staticCategories")
382
+ items: F(l, "items"),
383
+ hasStaticCategories: F(l, "staticCategories")
384
384
  },
385
385
  i
386
386
  ), I = {
@@ -412,9 +412,9 @@ const Xe = He.exports, de = ({ items: s, hasStaticCategories: e }, t) => {
412
412
  listboxRef: o,
413
413
  listboxItemRef: n,
414
414
  selectedItem: d,
415
- slots: l,
415
+ slots: s,
416
416
  // Computed
417
- hasCategories: b,
417
+ hasCategories: v,
418
418
  // Methods
419
419
  onOptionSelected: S,
420
420
  // Keyboard navigation
@@ -425,16 +425,16 @@ const Xe = He.exports, de = ({ items: s, hasStaticCategories: e }, t) => {
425
425
  });
426
426
  var Je = function() {
427
427
  var e = this, t = e._self._c;
428
- return e._self._setupProxy, t("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef" }, e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(l) {
429
- return t("bento-listbox-single-select-category", { key: l.value, attrs: { "category-label": l.label, role: "group" } }, e._l(l.items, function(o) {
428
+ return e._self._setupProxy, t("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef" }, e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(s) {
429
+ return t("bento-listbox-single-select-category", { key: s.value, attrs: { "category-label": s.label, role: "group" } }, e._l(s.items, function(o) {
430
430
  return t("bento-listbox-single-select-option", e._g({ key: o.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: o, disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null, selected: o.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, d) {
431
- return { key: d, fn: function(b) {
432
- return [e._t(d, null, null, b)];
431
+ return { key: d, fn: function(v) {
432
+ return [e._t(d, null, null, v)];
433
433
  } };
434
434
  })], null, !0) }, e.listboxOptionListeners));
435
435
  }), 1);
436
- }) : e._l(e.items, function(l) {
437
- return t("bento-listbox-single-select-option", e._g({ key: l.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: l, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, selected: l.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(o, n) {
436
+ }) : e._l(e.items, function(s) {
437
+ return t("bento-listbox-single-select-option", e._g({ key: s.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: s, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, selected: s.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(o, n) {
438
438
  return { key: n, fn: function(d) {
439
439
  return [e._t(n, null, null, d)];
440
440
  } };
@@ -449,7 +449,7 @@ var Je = function() {
449
449
  null
450
450
  );
451
451
  const et = Qe.exports;
452
- var X = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(X || {}), W = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.UNSELECT_CATEGORY = "unselect-category", s))(W || {});
452
+ var X = /* @__PURE__ */ ((l) => (l.DISABLED = "disabled", l.STATIC_CATEGORY = "static-category", l))(X || {}), W = /* @__PURE__ */ ((l) => (l.SELECT_CATEGORY = "select-category", l.UNSELECT_CATEGORY = "unselect-category", l))(W || {});
453
453
  const tt = {
454
454
  "en-US": {
455
455
  categoryClosed: "{category} closed",
@@ -509,20 +509,20 @@ const tt = {
509
509
  tabindex: { type: Number, default: -1 }
510
510
  },
511
511
  emits: [W.SELECT_CATEGORY, W.UNSELECT_CATEGORY],
512
- setup(s, { emit: e }) {
513
- const t = A(!1), { t: l } = J(), o = (C) => s.isOptionDisabled ? s.isOptionDisabled(C) : !1, n = c(
514
- () => s.category.items.every((C) => o(C))
515
- ), d = F(s, "staticCategories"), b = c(() => t.value || s.staticCategories), S = c(() => ({
512
+ setup(l, { emit: e }) {
513
+ const t = A(!1), { t: s } = J(), o = (C) => l.isOptionDisabled ? l.isOptionDisabled(C) : !1, n = c(
514
+ () => l.category.items.every((C) => o(C))
515
+ ), d = F(l, "staticCategories"), v = c(() => t.value || l.staticCategories), S = c(() => ({
516
516
  [`b-listbox-multi-select-category--${X.DISABLED}`]: n.value,
517
- [`b-listbox-multi-select-category--${X.STATIC_CATEGORY}`]: s.staticCategories
517
+ [`b-listbox-multi-select-category--${X.STATIC_CATEGORY}`]: l.staticCategories
518
518
  })), i = (C) => {
519
519
  C.preventDefault(), t.value = !t.value;
520
520
  }, r = (C) => {
521
521
  var G;
522
- const N = o(C), R = ((G = s.selectedItemsList) == null ? void 0 : G.includes(C.value)) || !1;
522
+ const N = o(C), R = ((G = l.selectedItemsList) == null ? void 0 : G.includes(C.value)) || !1;
523
523
  return { isDisabled: N, isPreSelected: R };
524
524
  }, y = c(
525
- () => s.category.items.filter((C) => {
525
+ () => l.category.items.filter((C) => {
526
526
  const { isDisabled: N, isPreSelected: R } = r(C);
527
527
  return N && R || !N;
528
528
  })
@@ -532,43 +532,43 @@ const tt = {
532
532
  return (C = y.value) == null ? void 0 : C.filter(
533
533
  ({ value: N }) => {
534
534
  var R;
535
- return (R = s.selectedItemsList) == null ? void 0 : R.includes(N);
535
+ return (R = l.selectedItemsList) == null ? void 0 : R.includes(N);
536
536
  }
537
537
  );
538
538
  }
539
539
  ), p = c(() => {
540
540
  const C = t.value ? "categoryOpened" : "categoryClosed";
541
- return l(C, { category: s.category.label });
541
+ return s(C, { category: l.category.label });
542
542
  }), u = c(
543
543
  () => ({
544
544
  el: "span",
545
- variant: s.staticCategories ? "caption" : "body"
545
+ variant: l.staticCategories ? "caption" : "body"
546
546
  })
547
547
  ), I = () => {
548
548
  e(W.SELECT_CATEGORY);
549
549
  }, B = () => {
550
550
  e(W.UNSELECT_CATEGORY);
551
- }, { isAllSelected: v, isIndeterminate: x, toggleSelectAll: L } = ue(
551
+ }, { isAllSelected: b, isIndeterminate: x, toggleSelectAll: L } = ue(
552
552
  O,
553
553
  y,
554
554
  I,
555
555
  B
556
- ), T = A(v.value), E = () => {
556
+ ), T = A(b.value), E = () => {
557
557
  T.value = !T.value, L(T.value);
558
558
  };
559
- return K(v, () => {
560
- T.value = v.value;
559
+ return K(b, () => {
560
+ T.value = b.value;
561
561
  }), {
562
562
  // Values
563
563
  chevronTitle: p,
564
564
  conditionalClass: S,
565
565
  hasAllPropsDisabled: n,
566
566
  isOpen: t,
567
- isAllSelected: v,
567
+ isAllSelected: b,
568
568
  isIndeterminate: x,
569
569
  isStaticCategory: d,
570
570
  // Computed
571
- showItemChildren: b,
571
+ showItemChildren: v,
572
572
  categoryLabelProps: u,
573
573
  // Methods
574
574
  handleSelectAll: E,
@@ -579,10 +579,10 @@ const tt = {
579
579
  });
580
580
  var lt = function() {
581
581
  var e = this, t = e._self._c;
582
- return e._self._setupProxy, t("div", [t("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(l) {
583
- return l.preventDefault(), e.handleSelectAll.apply(null, arguments);
584
- } } }, [e.isStaticCategory ? e._e() : t("bento-checkbox", { attrs: { "model-value": e.isAllSelected, indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, "aria-label": e.category.label, value: e.category.value, tabindex: -1 } }), t("span", { staticClass: "b-listbox-multi-select-category__label" }, [t("bento-typography", e._b({ staticClass: "b-listbox-multi-select-category__label-text" }, "bento-typography", e.categoryLabelProps, !1), [e._v(" " + e._s(e.category.label) + " ")]), e.isStaticCategory ? e._e() : t("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "data-testid": "toggle-listbox" }, on: { "!click": function(l) {
585
- return l.stopPropagation(), e.toggleOpen.apply(null, arguments);
582
+ return e._self._setupProxy, t("div", [t("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(s) {
583
+ return s.preventDefault(), e.handleSelectAll.apply(null, arguments);
584
+ } } }, [e.isStaticCategory ? e._e() : t("bento-checkbox", { attrs: { "model-value": e.isAllSelected, indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, "aria-label": e.category.label, value: e.category.value, tabindex: -1 } }), t("span", { staticClass: "b-listbox-multi-select-category__label" }, [t("bento-typography", e._b({ staticClass: "b-listbox-multi-select-category__label-text" }, "bento-typography", e.categoryLabelProps, !1), [e._v(" " + e._s(e.category.label) + " ")]), e.isStaticCategory ? e._e() : t("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "data-testid": "toggle-listbox" }, on: { "!click": function(s) {
585
+ return s.stopPropagation(), e.toggleOpen.apply(null, arguments);
586
586
  } } }, [e.isOpen ? t("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : t("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), t("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }] }, [e._t("default")], 2)], 1);
587
587
  }, nt = [], ot = /* @__PURE__ */ M(
588
588
  st,
@@ -593,7 +593,7 @@ var lt = function() {
593
593
  "5e190a4d"
594
594
  );
595
595
  const at = ot.exports;
596
- var w = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", s.UNSELECT_CATEGORY = "unselect-category", s))(w || {});
596
+ var w = /* @__PURE__ */ ((l) => (l.SELECT_CATEGORY = "select-category", l.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", l.UNSELECT_CATEGORY = "unselect-category", l))(w || {});
597
597
  const it = P({
598
598
  name: "listbox-multi-select-options",
599
599
  components: {
@@ -666,14 +666,14 @@ const it = P({
666
666
  w.SELECT_CATEGORY,
667
667
  w.UNSELECT_CATEGORY
668
668
  ],
669
- setup(s, { emit: e }) {
669
+ setup(l, { emit: e }) {
670
670
  const t = (i) => {
671
- s.isOptionDisabled(i) || e(w.TOGGLE_CHECKBOX_SELECTION, i);
672
- }, l = (i) => !!i.items, o = (i) => {
673
- const r = s.isMultiLevel && s.searching;
674
- return i.description && (!s.isMultiLevel || r);
675
- }, n = (i) => i.items ? !!i.items.find((r) => s.selectedItemsList.includes(r.value)) : s.selectedItemsList.includes(i.value), d = (i) => {
676
- if (l(i)) {
671
+ l.isOptionDisabled(i) || e(w.TOGGLE_CHECKBOX_SELECTION, i);
672
+ }, s = (i) => !!i.items, o = (i) => {
673
+ const r = l.isMultiLevel && l.searching;
674
+ return i.description && (!l.isMultiLevel || r);
675
+ }, n = (i) => i.items ? !!i.items.find((r) => l.selectedItemsList.includes(r.value)) : l.selectedItemsList.includes(i.value), d = (i) => {
676
+ if (s(i)) {
677
677
  const r = n(i) ? w.UNSELECT_CATEGORY : w.SELECT_CATEGORY;
678
678
  e(r, i);
679
679
  } else
@@ -682,15 +682,15 @@ const it = P({
682
682
  return {
683
683
  // Values
684
684
  conditionalClasses: c(() => ({
685
- "b-listbox-multi-select-options__static-category-option": s.staticCategories,
686
- "b-listbox-multi-select-options__category-option": s.categoryItems
685
+ "b-listbox-multi-select-options__static-category-option": l.staticCategories,
686
+ "b-listbox-multi-select-options__category-option": l.categoryItems
687
687
  })),
688
688
  // Methods
689
689
  isOptionSelected: n,
690
690
  shouldShowDescription: o,
691
691
  toggleCheckboxSelection: t,
692
692
  toggleSearchOption: d,
693
- computedTabindex: (i) => i + 1 === s.focusedIndex ? 0 : -1,
693
+ computedTabindex: (i) => i + 1 === l.focusedIndex ? 0 : -1,
694
694
  // Enums
695
695
  BentoListboxEvent: a,
696
696
  ListboxMultiSelectOptionsEvent: w
@@ -699,28 +699,28 @@ const it = P({
699
699
  });
700
700
  var ct = function() {
701
701
  var e = this, t = e._self._c;
702
- return e._self._setupProxy, t("div", e._l(e.items, function(l, o) {
703
- return t("div", { key: `selected-${l.value}` }, [e.searching && e.isMultiLevel ? [t("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, tabindex: e.computedTabindex(o) }, on: { click: function(n) {
704
- return e.toggleSearchOption(l);
702
+ return e._self._setupProxy, t("div", e._l(e.items, function(s, o) {
703
+ return t("div", { key: `selected-${s.value}` }, [e.searching && e.isMultiLevel ? [t("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, tabindex: e.computedTabindex(o) }, on: { click: function(n) {
704
+ return e.toggleSearchOption(s);
705
705
  }, "enter-pressed": function(n) {
706
- return e.toggleSearchOption(l);
706
+ return e.toggleSearchOption(s);
707
707
  }, "space-pressed": function(n) {
708
- return n.preventDefault(), e.toggleSearchOption(l);
709
- } } }, [t("bento-checkbox", { attrs: { "model-value": e.isOptionSelected(l), "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value, tabindex: "-1" } }), e._t("default", function() {
710
- return [t("span", { staticClass: "b-listbox-multi-select__option-text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(l.label))]), e.shouldShowDescription(l) ? t("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(l.description) + " ")]) : e._e()], 1)];
711
- }, null, l)], 2)] : [l.items ? [t("listbox-multi-select-category", { attrs: { category: l, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList, tabindex: e.computedTabindex(o) }, on: { "select-category": function(n) {
712
- return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, l);
708
+ return n.preventDefault(), e.toggleSearchOption(s);
709
+ } } }, [t("bento-checkbox", { attrs: { "model-value": e.isOptionSelected(s), "aria-label": s.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, value: s.value, tabindex: "-1" } }), e._t("default", function() {
710
+ return [t("span", { staticClass: "b-listbox-multi-select__option-text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(s.label))]), e.shouldShowDescription(s) ? t("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(s.description) + " ")]) : e._e()], 1)];
711
+ }, null, s)], 2)] : [s.items ? [t("listbox-multi-select-category", { attrs: { category: s, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList, tabindex: e.computedTabindex(o) }, on: { "select-category": function(n) {
712
+ return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, s);
713
713
  }, "unselect-category": function(n) {
714
- return e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, l);
715
- } } }, [t("listbox-multi-select-options", { attrs: { "category-items": "", items: l.items, "is-option-disabled": e.isOptionDisabled, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching }, on: { "toggle-checkbox-selection": (n) => e.toggleCheckboxSelection(n) } })], 1)] : t("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, tabindex: e.computedTabindex(o) }, on: { click: function(n) {
716
- return e.toggleCheckboxSelection(l);
714
+ return e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, s);
715
+ } } }, [t("listbox-multi-select-options", { attrs: { "category-items": "", items: s.items, "is-option-disabled": e.isOptionDisabled, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching }, on: { "toggle-checkbox-selection": (n) => e.toggleCheckboxSelection(n) } })], 1)] : t("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, tabindex: e.computedTabindex(o) }, on: { click: function(n) {
716
+ return e.toggleCheckboxSelection(s);
717
717
  }, "enter-pressed": function(n) {
718
- return e.toggleCheckboxSelection(l);
718
+ return e.toggleCheckboxSelection(s);
719
719
  }, "space-pressed": function(n) {
720
- return n.preventDefault(), e.toggleCheckboxSelection(l);
721
- } } }, [t("bento-checkbox", { attrs: { "model-value": e.selectedItemsList, "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value, tabindex: -1 } }), e._t("default", function() {
722
- return [t("span", { staticClass: "b-listbox-multi-select__option-text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(l.label))]), e.shouldShowDescription(l) ? t("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(l.description) + " ")]) : e._e()], 1)];
723
- }, null, l)], 2)]], 2);
720
+ return n.preventDefault(), e.toggleCheckboxSelection(s);
721
+ } } }, [t("bento-checkbox", { attrs: { "model-value": e.selectedItemsList, "aria-label": s.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, value: s.value, tabindex: -1 } }), e._t("default", function() {
722
+ return [t("span", { staticClass: "b-listbox-multi-select__option-text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(s.label))]), e.shouldShowDescription(s) ? t("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(s.description) + " ")]) : e._e()], 1)];
723
+ }, null, s)], 2)]], 2);
724
724
  }), 0);
725
725
  }, rt = [], ut = /* @__PURE__ */ M(
726
726
  it,
@@ -730,27 +730,27 @@ var ct = function() {
730
730
  null,
731
731
  "e99d836e"
732
732
  );
733
- const dt = ut.exports, ft = (s) => {
733
+ const dt = ut.exports, ft = (l) => {
734
734
  const e = c(() => {
735
- var l;
736
- return !!((l = s.value) != null && l.find(({ items: o }) => !!o));
735
+ var s;
736
+ return !!((s = l.value) != null && s.find(({ items: o }) => !!o));
737
737
  }), t = c(() => {
738
- var l;
739
- return e.value ? (l = s.value) == null ? void 0 : l.reduce((o, n) => (n.items ? o.push(...n.items.flat()) : o.push(n), o), []) : s.value;
738
+ var s;
739
+ return e.value ? (s = l.value) == null ? void 0 : s.reduce((o, n) => (n.items ? o.push(...n.items.flat()) : o.push(n), o), []) : l.value;
740
740
  });
741
741
  return {
742
742
  isMultiLevelSelect: e,
743
743
  flattenedItemsList: t
744
744
  };
745
- }, vt = {
745
+ }, bt = {
746
746
  "en-US": {
747
747
  allSelected: "All selected ({total})",
748
748
  numberOfTotalSelected: "{number} of {total} selected",
749
749
  numbersSelected: "{number} selected",
750
750
  selectAll: "Select all ({total})"
751
751
  }
752
- }, bt = { i18n: { messages: vt } }, mt = /* @__PURE__ */ P({
753
- ...bt,
752
+ }, vt = { i18n: { messages: bt } }, mt = /* @__PURE__ */ P({
753
+ ...vt,
754
754
  __name: "listbox-multi-select",
755
755
  props: {
756
756
  hasMoreItems: { type: Boolean, default: !1 },
@@ -762,8 +762,8 @@ const dt = ut.exports, ft = (s) => {
762
762
  staticCategories: { type: Boolean, default: !1 }
763
763
  },
764
764
  emits: ["select"],
765
- setup(s, { emit: e }) {
766
- const t = s, { t: l } = J(), o = Se(), n = A(null), d = A(null), b = A(null), S = A(null), i = c(() => t.selectedValues.map(({ value: f }) => f)), { isMultiLevelSelect: r, flattenedItemsList: y } = ft(F(t, "items")), O = (f) => {
765
+ setup(l, { emit: e }) {
766
+ const t = l, { t: s } = J(), o = Se(), n = A(null), d = A(null), v = A(null), S = A(null), i = c(() => t.selectedValues.map(({ value: f }) => f)), { isMultiLevelSelect: r, flattenedItemsList: y } = ft(F(t, "items")), O = (f) => {
767
767
  var h;
768
768
  const _ = t.isOptionDisabled(f), m = ((h = i.value) == null ? void 0 : h.includes(f.value)) || !1;
769
769
  return { isDisabled: _, isPreSelected: m };
@@ -790,8 +790,8 @@ const dt = ut.exports, ft = (s) => {
790
790
  ), I = () => r.value && !t.searching ? y.value.length : t.items.length, B = c(() => {
791
791
  var h;
792
792
  const f = p.value.length, _ = I(), m = ((h = u.value) == null ? void 0 : h.length) || 0;
793
- return m === 0 ? l("selectAll", { total: f }) : m === _ ? l("allSelected", { total: _ }) : m <= _ ? l("numberOfTotalSelected", { number: m, total: _ }) : l("numbersSelected", { number: m });
794
- }), v = (f) => {
793
+ return m === 0 ? s("selectAll", { total: f }) : m === _ ? s("allSelected", { total: _ }) : m <= _ ? s("numberOfTotalSelected", { number: m, total: _ }) : s("numbersSelected", { number: m });
794
+ }), b = (f) => {
795
795
  const _ = (h) => {
796
796
  const { isDisabled: g, isPreSelected: $ } = O(h);
797
797
  return g && $ || !g;
@@ -804,7 +804,7 @@ const dt = ut.exports, ft = (s) => {
804
804
  }, m = f.filter(_).map(({ value: g }) => g), h = t.selectedValues.filter((g) => !(m != null && m.includes(g.value)));
805
805
  e("select", h);
806
806
  }, L = () => {
807
- v(y.value);
807
+ b(y.value);
808
808
  }, T = () => {
809
809
  x(y.value);
810
810
  }, { isAllSelected: E, isIndeterminate: C, toggleSelectAll: N } = ue(
@@ -819,7 +819,7 @@ const dt = ut.exports, ft = (s) => {
819
819
  R.value = E.value;
820
820
  });
821
821
  const j = (f) => {
822
- v(f.items);
822
+ b(f.items);
823
823
  }, k = (f) => {
824
824
  x(f.items);
825
825
  }, Y = (f, _) => {
@@ -833,11 +833,11 @@ const dt = ut.exports, ft = (s) => {
833
833
  return t.items.flatMap(
834
834
  (g) => g.items && !_(g.items) ? g.items : g
835
835
  ).filter((g) => g.items ? !0 : f(g));
836
- }), ve = c(() => {
836
+ }), be = c(() => {
837
837
  var m, h, g, $;
838
838
  const f = ["automatic", "button"].includes(t.lazyLoadType), _ = ((m = t.selectedValues) == null ? void 0 : m.length) > 0 && ((h = u.value) == null ? void 0 : h.length) !== ((g = y.value) == null ? void 0 : g.length);
839
839
  return f && t.hasMoreItems ? !!(($ = t.selectedValues) != null && $.length) : _;
840
- }), be = c(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), ee = c(() => ({ label: B, value: E })), te = c(() => [ee, ...F(t, "items").value]), se = (f) => {
840
+ }), ve = c(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), ee = c(() => ({ label: B, value: E })), te = c(() => [ee, ...F(t, "items").value]), se = (f) => {
841
841
  var m;
842
842
  (m = Array.from(
843
843
  n.value.querySelectorAll('[role="option"]')
@@ -864,26 +864,26 @@ const dt = ut.exports, ft = (s) => {
864
864
  [D.ARROW_UP]: H,
865
865
  [D.ARROW_DOWN]: H
866
866
  };
867
- return { __sfc: !0, props: t, emit: e, t: l, slots: o, listboxRef: n, selectAllListboxItemsRef: d, selectedListboxItemsRef: b, listboxItemsRef: S, selectedItemsList: i, isMultiLevelSelect: r, flattenedItemsList: y, optionStates: O, enabledItems: p, visibleSelectedList: u, calculateTotalItems: I, selectAllCheckboxText: B, selectAll: v, unselectAll: x, selectAllItems: L, unselectAllItems: T, isAllSelected: E, isIndeterminate: C, toggleSelectAll: N, isSelectAllOn: R, handleSelectAll: G, selectAllCategory: j, unselectAllCategory: k, toggleCheckboxSelection: Y, selectedOptions: fe, showSelectedItems: ve, showSelectAllCheckbox: be, computedselectAllItemRefs: ee, computedItems: te, focusItem: se, moveToNextElement: le, moveToPreviousElement: ne, moveToFirstElement: oe, moveToLastElement: ae, preventDefault: H, focusedIndex: me, listboxListeners: _e, chipsSectionListeners: ge, BentoCheckbox: Z, BentoTypography: z, BentoChip: Oe, BentoListboxOption: q, ListboxMultiSelectOptions: dt, vBentoKeyboardNavigationDirective: Q, BentoListboxEvent: a };
867
+ return { __sfc: !0, props: t, emit: e, t: s, slots: o, listboxRef: n, selectAllListboxItemsRef: d, selectedListboxItemsRef: v, listboxItemsRef: S, selectedItemsList: i, isMultiLevelSelect: r, flattenedItemsList: y, optionStates: O, enabledItems: p, visibleSelectedList: u, calculateTotalItems: I, selectAllCheckboxText: B, selectAll: b, unselectAll: x, selectAllItems: L, unselectAllItems: T, isAllSelected: E, isIndeterminate: C, toggleSelectAll: N, isSelectAllOn: R, handleSelectAll: G, selectAllCategory: j, unselectAllCategory: k, toggleCheckboxSelection: Y, selectedOptions: fe, showSelectedItems: be, showSelectAllCheckbox: ve, computedselectAllItemRefs: ee, computedItems: te, focusItem: se, moveToNextElement: le, moveToPreviousElement: ne, moveToFirstElement: oe, moveToLastElement: ae, preventDefault: H, focusedIndex: me, listboxListeners: _e, chipsSectionListeners: ge, BentoCheckbox: Z, BentoTypography: z, BentoChip: Oe, BentoListboxOption: q, ListboxMultiSelectOptions: dt, vBentoKeyboardNavigationDirective: Q, BentoListboxEvent: a };
868
868
  }
869
869
  });
870
870
  var _t = function() {
871
- var e = this, t = e._self._c, l = e._self._setupProxy;
872
- return t("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [l.showSelectedItems ? t("div", [t("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, l.chipsSectionListeners), e._l(l.selectedOptions, function(o) {
873
- return t("li", { key: o.value }, [t(l.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(o), label: o.label, condensed: "" }, on: { click: function(n) {
874
- o.items ? l.unselectAllCategory(o) : l.toggleCheckboxSelection("select", o);
871
+ var e = this, t = e._self._c, s = e._self._setupProxy;
872
+ return t("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [s.showSelectedItems ? t("div", [t("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, s.chipsSectionListeners), e._l(s.selectedOptions, function(o) {
873
+ return t("li", { key: o.value }, [t(s.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(o), label: o.label, condensed: "" }, on: { click: function(n) {
874
+ o.items ? s.unselectAllCategory(o) : s.toggleCheckboxSelection("select", o);
875
875
  } } })], 1);
876
- }), 0), t("hr", { staticClass: "b-listbox-multi-select__divider" })]) : e._e(), t("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, l.listboxListeners), [l.showSelectAllCheckbox ? t(l.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: l.focusedIndex === 0 ? 0 : -1 }, on: { click: l.handleSelectAll, "enter-pressed": l.handleSelectAll, "space-pressed": function(o) {
877
- return o.preventDefault(), l.handleSelectAll.apply(null, arguments);
878
- } } }, [t(l.BentoCheckbox, { attrs: { "aria-label": l.selectAllCheckboxText, "model-value": l.isAllSelected, indeterminate: l.isIndeterminate, tabindex: -1 } }), t(l.BentoTypography, { attrs: { el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(l.selectAllCheckboxText) + " ")])], 1) : e._e(), l.showSelectAllCheckbox ? t("hr", { staticClass: "b-listbox-multi-select__divider" }) : e._e(), t(l.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": l.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": l.selectedItemsList, "focused-index": l.focusedIndex }, on: { "toggle-checkbox-selection": function(o) {
879
- return l.toggleCheckboxSelection("select", o);
880
- }, "select-category": l.selectAllCategory, "unselect-category": l.unselectAllCategory, "space-pressed": function(o) {
881
- return l.toggleCheckboxSelection(l.BentoListboxEvent.SPACE, o);
876
+ }), 0), t("hr", { staticClass: "b-listbox-multi-select__divider" })]) : e._e(), t("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, s.listboxListeners), [s.showSelectAllCheckbox ? t(s.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: s.focusedIndex === 0 ? 0 : -1 }, on: { click: s.handleSelectAll, "enter-pressed": s.handleSelectAll, "space-pressed": function(o) {
877
+ return o.preventDefault(), s.handleSelectAll.apply(null, arguments);
878
+ } } }, [t(s.BentoCheckbox, { attrs: { "aria-label": s.selectAllCheckboxText, "model-value": s.isAllSelected, indeterminate: s.isIndeterminate, tabindex: -1 } }), t(s.BentoTypography, { attrs: { el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(s.selectAllCheckboxText) + " ")])], 1) : e._e(), s.showSelectAllCheckbox ? t("hr", { staticClass: "b-listbox-multi-select__divider" }) : e._e(), t(s.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": s.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": s.selectedItemsList, "focused-index": s.focusedIndex }, on: { "toggle-checkbox-selection": function(o) {
879
+ return s.toggleCheckboxSelection("select", o);
880
+ }, "select-category": s.selectAllCategory, "unselect-category": s.unselectAllCategory, "space-pressed": function(o) {
881
+ return s.toggleCheckboxSelection(s.BentoListboxEvent.SPACE, o);
882
882
  }, "tab-pressed": function(o) {
883
- return l.toggleCheckboxSelection(l.BentoListboxEvent.TAB, o);
883
+ return s.toggleCheckboxSelection(s.BentoListboxEvent.TAB, o);
884
884
  }, "enter-pressed": function(o) {
885
- return l.toggleCheckboxSelection(l.BentoListboxEvent.ENTER, o);
886
- } }, scopedSlots: e._u([e._l(l.slots, function(o, n) {
885
+ return s.toggleCheckboxSelection(s.BentoListboxEvent.ENTER, o);
886
+ } }, scopedSlots: e._u([e._l(s.slots, function(o, n) {
887
887
  return { key: n, fn: function(d) {
888
888
  return [e._t(n, null, null, d)];
889
889
  } };
@@ -977,7 +977,7 @@ const re = pt.exports, yt = {
977
977
  lazyLoadType: {
978
978
  type: String,
979
979
  default: U.NONE,
980
- validator: (s) => Object.values(U).includes(s)
980
+ validator: (l) => Object.values(U).includes(l)
981
981
  },
982
982
  /**
983
983
  * Indicates the listbox is loading filtered items.
@@ -1028,10 +1028,10 @@ const re = pt.exports, yt = {
1028
1028
  a.ESCAPE,
1029
1029
  a.TAB
1030
1030
  ],
1031
- setup(s, { emit: e, slots: t }) {
1032
- const l = A([]), o = F(s, "items"), { t: n } = J(), d = c(() => s.lazyLoadType !== U.AUTOMATIC), b = c(() => s.lazyLoadType === U.AUTOMATIC), S = () => {
1031
+ setup(l, { emit: e, slots: t }) {
1032
+ const s = A([]), o = F(l, "items"), { t: n } = J(), d = c(() => l.lazyLoadType !== U.AUTOMATIC), v = c(() => l.lazyLoadType === U.AUTOMATIC), S = () => {
1033
1033
  var k;
1034
- return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((k = s == null ? void 0 : s.virtualScroll) != null && k.itemHeight) ? s.virtualScroll.itemHeight : ht;
1034
+ return typeof (l == null ? void 0 : l.virtualScroll) == "object" && ((k = l == null ? void 0 : l.virtualScroll) != null && k.itemHeight) ? l.virtualScroll.itemHeight : ht;
1035
1035
  }, {
1036
1036
  containerRef: i,
1037
1037
  containerProps: r,
@@ -1041,14 +1041,14 @@ const re = pt.exports, yt = {
1041
1041
  } = Re(o, {
1042
1042
  itemHeight: S(),
1043
1043
  // Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
1044
- disabled: (s == null ? void 0 : s.multiple) || (s == null ? void 0 : s.virtualScroll) === !1 || (s == null ? void 0 : s.lazyLoadType) !== "none"
1044
+ disabled: (l == null ? void 0 : l.multiple) || (l == null ? void 0 : l.virtualScroll) === !1 || (l == null ? void 0 : l.lazyLoadType) !== "none"
1045
1045
  }), u = c(
1046
- () => s.componentLoading !== void 0 || d.value ? "true" : void 0
1046
+ () => l.componentLoading !== void 0 || d.value ? "true" : void 0
1047
1047
  ), I = c(
1048
- () => d.value && s.loading || s.componentLoading ? "true" : "false"
1048
+ () => d.value && l.loading || l.componentLoading ? "true" : "false"
1049
1049
  ), B = c(
1050
- () => d.value || s.componentLoading !== void 0 ? "polite" : void 0
1051
- ), v = (k) => (Y) => {
1050
+ () => d.value || l.componentLoading !== void 0 ? "polite" : void 0
1051
+ ), b = (k) => (Y) => {
1052
1052
  e(k, Y);
1053
1053
  }, x = () => {
1054
1054
  e(a.SHOW_MORE);
@@ -1057,29 +1057,29 @@ const re = pt.exports, yt = {
1057
1057
  if (!k)
1058
1058
  return;
1059
1059
  const Y = Math.round(k.scrollTop) + k.clientHeight >= k.scrollHeight;
1060
- s.hasMoreItems && Y && !s.loading && x();
1060
+ l.hasMoreItems && Y && !l.loading && x();
1061
1061
  }), T = () => {
1062
- b.value ? L() : y();
1062
+ v.value ? L() : y();
1063
1063
  }, E = c(() => {
1064
1064
  var k;
1065
- return ((k = s.items) == null ? void 0 : k.length) === 0;
1065
+ return ((k = l.items) == null ? void 0 : k.length) === 0;
1066
1066
  }), C = c(
1067
- () => s.lazyLoadType === U.BUTTON && s.hasMoreItems
1067
+ () => l.lazyLoadType === U.BUTTON && l.hasMoreItems
1068
1068
  ), N = c(
1069
- () => s.loading ? ie.LOADING : ie.START
1070
- ), R = c(() => s.loading ? n("loading") : n("showMore")), G = c(() => ({
1071
- ...s.emptyState,
1069
+ () => l.loading ? ie.LOADING : ie.START
1070
+ ), R = c(() => l.loading ? n("loading") : n("showMore")), G = c(() => ({
1071
+ ...l.emptyState,
1072
1072
  variant: "condensed"
1073
1073
  })), j = {
1074
- [a.SELECT]: v(a.SELECT),
1075
- [a.SPACE]: v(a.SPACE),
1076
- [a.TAB]: v(a.TAB),
1077
- [a.ENTER]: v(a.ENTER)
1074
+ [a.SELECT]: b(a.SELECT),
1075
+ [a.SPACE]: b(a.SPACE),
1076
+ [a.TAB]: b(a.TAB),
1077
+ [a.ENTER]: b(a.ENTER)
1078
1078
  };
1079
1079
  return {
1080
1080
  // Refs
1081
1081
  listboxRef: i,
1082
- listboxItemRef: l,
1082
+ listboxItemRef: s,
1083
1083
  // a11y
1084
1084
  ariaAtomic: u,
1085
1085
  ariaBusy: I,
@@ -1099,16 +1099,16 @@ const re = pt.exports, yt = {
1099
1099
  BentoListboxEvent: a,
1100
1100
  // Methods
1101
1101
  onListboxContainerScroll: T,
1102
- onOptionSelected: v,
1102
+ onOptionSelected: b,
1103
1103
  emitShowMore: x,
1104
1104
  listboxListeners: j
1105
1105
  };
1106
1106
  }
1107
1107
  });
1108
1108
  var xt = function() {
1109
- var l;
1109
+ var s;
1110
1110
  var e = this, t = e._self._c;
1111
- return e._self._setupProxy, t("div", { directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (l = e.containerProps) == null ? void 0 : l.style, attrs: { id: e.id, role: "listbox", tabindex: "-1", "aria-busy": e.ariaBusy, "aria-atomic": e.ariaAtomic, "aria-label": e.ariaLabel, "aria-live": e.ariaLive }, on: { scroll: e.onListboxContainerScroll } }, [t("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? t("div", { staticClass: "b-listbox__loading-filtered-items" }, [t("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? t("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? t("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [t("bento-listbox-multi-select", e._g({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(o, n) {
1111
+ return e._self._setupProxy, t("div", { directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (s = e.containerProps) == null ? void 0 : s.style, attrs: { id: e.id, role: "listbox", tabindex: "-1", "aria-busy": e.ariaBusy, "aria-atomic": e.ariaAtomic, "aria-label": e.ariaLabel, "aria-live": e.ariaLive }, on: { scroll: e.onListboxContainerScroll } }, [t("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? t("div", { staticClass: "b-listbox__loading-filtered-items" }, [t("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? t("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? t("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [t("bento-listbox-multi-select", e._g({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(o, n) {
1112
1112
  return { key: n, fn: function(d) {
1113
1113
  return [e._t(n, null, null, d)];
1114
1114
  } };
@@ -1127,29 +1127,29 @@ var xt = function() {
1127
1127
  null,
1128
1128
  "37a9ab16"
1129
1129
  );
1130
- const Ut = Et.exports, V = (s, e) => {
1131
- for (const t of s) {
1130
+ const Ut = Et.exports, V = (l, e) => {
1131
+ for (const t of l) {
1132
1132
  if (t.value === e)
1133
1133
  return t;
1134
1134
  if (t.items) {
1135
- const l = V(t.items, e);
1136
- if (l)
1137
- return l;
1135
+ const s = V(t.items, e);
1136
+ if (s)
1137
+ return s;
1138
1138
  }
1139
1139
  }
1140
1140
  return null;
1141
- }, Ot = (s) => typeof s == "object" && s !== null && "value" in s && "label" in s, zt = (s, e, t, l) => {
1141
+ }, Ot = (l) => typeof l == "object" && l !== null && "value" in l && "label" in l, zt = (l, e, t, s) => {
1142
1142
  const o = A([]), n = A(), d = (r) => {
1143
1143
  t.value ? n.value = r.map(({ value: y }) => y) : n.value = r.length > 0 ? r[0].value : null;
1144
- }, b = (r) => {
1144
+ }, v = (r) => {
1145
1145
  t.value ? n.value = r.map(({ value: y, label: O }) => ({ value: y, label: O })) : n.value = r.length > 0 ? { value: r[0].value, label: r[0].label } : null;
1146
1146
  }, S = (r) => {
1147
- o.value = r, l != null && l.value ? b(r) : d(r);
1147
+ o.value = r, s != null && s.value ? v(r) : d(r);
1148
1148
  }, i = () => {
1149
1149
  o.value = [], n.value = null;
1150
1150
  };
1151
1151
  return K(
1152
- [() => s.value, () => e.value],
1152
+ () => e.value,
1153
1153
  () => {
1154
1154
  if (!e.value && e.value !== 0) {
1155
1155
  i();
@@ -1161,16 +1161,16 @@ const Ut = Et.exports, V = (s, e) => {
1161
1161
  if (Ot(p))
1162
1162
  o.value.push(p);
1163
1163
  else {
1164
- let u = V(s.value, p);
1164
+ let u = V(l.value, p);
1165
1165
  u || (u = V(y, p)), u || (u = { value: p, label: p.toString() }), o.value.push(u);
1166
1166
  }
1167
1167
  };
1168
1168
  if (r) {
1169
1169
  const p = e.value;
1170
- O(p), l != null && l.value ? b(o.value) : d(o.value);
1170
+ O(p), s != null && s.value ? v(o.value) : d(o.value);
1171
1171
  return;
1172
1172
  }
1173
- e.value.forEach(O), l != null && l.value ? b(o.value) : d(o.value);
1173
+ e.value.forEach(O), s != null && s.value ? v(o.value) : d(o.value);
1174
1174
  },
1175
1175
  { immediate: !0 }
1176
1176
  ), {
@@ -1189,4 +1189,4 @@ export {
1189
1189
  zt as c,
1190
1190
  ft as u
1191
1191
  };
1192
- //# sourceMappingURL=use-cached-selected-values.Da6xbfzO.js.map
1192
+ //# sourceMappingURL=use-cached-selected-values.DzIppuhI.js.map