@adyen/bento-vue2 1.66.0 → 1.67.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.
Files changed (136) hide show
  1. package/dist/@types/index.d.ts +57 -19
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/button-actions.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/data-grid.css +1 -1
  9. package/dist/assets/date-range-picker.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/dropdown-default-textbox.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/footer-actions.css +1 -1
  14. package/dist/assets/header-with-views.css +1 -1
  15. package/dist/assets/input-field-password.css +1 -1
  16. package/dist/assets/input-field.css +1 -1
  17. package/dist/assets/inspector.css +1 -1
  18. package/dist/assets/menu.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/popover.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/assets/use-cached-selected-values.css +1 -1
  23. package/dist/button.js +1 -1
  24. package/dist/card.js +1 -1
  25. package/dist/chunks/{action-bar.C8zeHAJG.js → action-bar.BxX3I27_.js} +4 -4
  26. package/dist/chunks/{action-bar.C8zeHAJG.js.map → action-bar.BxX3I27_.js.map} +1 -1
  27. package/dist/chunks/{base-modal.3OptY7u_.js → base-modal.QGDM_kjG.js} +2 -2
  28. package/dist/chunks/{base-modal.3OptY7u_.js.map → base-modal.QGDM_kjG.js.map} +1 -1
  29. package/dist/chunks/{button-actions-with-menu.BVU1NS0m.js → button-actions-with-menu.itkbcqzk.js} +3 -3
  30. package/dist/chunks/{button-actions-with-menu.BVU1NS0m.js.map → button-actions-with-menu.itkbcqzk.js.map} +1 -1
  31. package/dist/chunks/{button-actions._OIvTdKt.js → button-actions.BKdI_ooV.js} +2 -2
  32. package/dist/chunks/button-actions.BKdI_ooV.js.map +1 -0
  33. package/dist/chunks/{card.CypgT0Ji.js → card.BktfAMv5.js} +2 -2
  34. package/dist/chunks/{card.CypgT0Ji.js.map → card.BktfAMv5.js.map} +1 -1
  35. package/dist/chunks/{code-snippet.BcoVTIs2.js → code-snippet.DDiQ9R3o.js} +3 -3
  36. package/dist/chunks/{code-snippet.BcoVTIs2.js.map → code-snippet.DDiQ9R3o.js.map} +1 -1
  37. package/dist/chunks/{dashboard-section.CcEIwDqX.js → dashboard-section.Beep1lY8.js} +2 -2
  38. package/dist/chunks/{dashboard-section.CcEIwDqX.js.map → dashboard-section.Beep1lY8.js.map} +1 -1
  39. package/dist/chunks/{dashed-underline.CEaAmjDa.js → dashed-underline.BQwLgzz6.js} +2 -2
  40. package/dist/chunks/{dashed-underline.CEaAmjDa.js.map → dashed-underline.BQwLgzz6.js.map} +1 -1
  41. package/dist/chunks/{data-grid-template.DJQcVuPs.js → data-grid-template.nkx0pCMA.js} +2 -2
  42. package/dist/chunks/{data-grid-template.DJQcVuPs.js.map → data-grid-template.nkx0pCMA.js.map} +1 -1
  43. package/dist/chunks/{data-grid.t4fCoE2Y.js → data-grid.CkwZVy3a.js} +186 -184
  44. package/dist/chunks/data-grid.CkwZVy3a.js.map +1 -0
  45. package/dist/chunks/{date-picker.DOAWsba5.js → date-picker.BLBXaDHv.js} +3 -3
  46. package/dist/chunks/{date-picker.DOAWsba5.js.map → date-picker.BLBXaDHv.js.map} +1 -1
  47. package/dist/chunks/{date-range-picker.DYxZygbL.js → date-range-picker.am63DgMj.js} +409 -392
  48. package/dist/chunks/date-range-picker.am63DgMj.js.map +1 -0
  49. package/dist/chunks/{dropdown-default-textbox.BNuuA4ES.js → dropdown-default-textbox.94q6opSD.js} +3 -3
  50. package/dist/chunks/dropdown-default-textbox.94q6opSD.js.map +1 -0
  51. package/dist/chunks/{dropdown-tag.DYg5l6HT.js → dropdown-tag.DYIkCBa6.js} +2 -2
  52. package/dist/chunks/{dropdown-tag.DYg5l6HT.js.map → dropdown-tag.DYIkCBa6.js.map} +1 -1
  53. package/dist/chunks/{dropdown.BWsU98dn.js → dropdown.HA6ISg2h.js} +4 -4
  54. package/dist/chunks/{dropdown.BWsU98dn.js.map → dropdown.HA6ISg2h.js.map} +1 -1
  55. package/dist/chunks/{filter-bar.Bx3wivl8.js → filter-bar.DbqsoAI1.js} +11 -11
  56. package/dist/chunks/{filter-bar.Bx3wivl8.js.map → filter-bar.DbqsoAI1.js.map} +1 -1
  57. package/dist/chunks/{footer-actions.DyuSTjC5.js → footer-actions.BUfQFz7J.js} +2 -2
  58. package/dist/chunks/{footer-actions.DyuSTjC5.js.map → footer-actions.BUfQFz7J.js.map} +1 -1
  59. package/dist/chunks/{header-with-views.B6mwBJjk.js → header-with-views.JllLR2nW.js} +332 -318
  60. package/dist/chunks/header-with-views.JllLR2nW.js.map +1 -0
  61. package/dist/chunks/{header.hTMmMN8n.js → header.04Y0unpy.js} +4 -4
  62. package/dist/chunks/{header.hTMmMN8n.js.map → header.04Y0unpy.js.map} +1 -1
  63. package/dist/chunks/{info-icon-with-popover.COq40yTq.js → info-icon-with-popover.B1DnkW4B.js} +2 -2
  64. package/dist/chunks/{info-icon-with-popover.COq40yTq.js.map → info-icon-with-popover.B1DnkW4B.js.map} +1 -1
  65. package/dist/chunks/{input-field-password.B8qWGzaB.js → input-field-password.BtOdV0gF.js} +89 -88
  66. package/dist/chunks/input-field-password.BtOdV0gF.js.map +1 -0
  67. package/dist/chunks/{input-field-phone-number.Bi4TJhbX.js → input-field-phone-number.Dq-LnGag.js} +3 -3
  68. package/dist/chunks/{input-field-phone-number.Bi4TJhbX.js.map → input-field-phone-number.Dq-LnGag.js.map} +1 -1
  69. package/dist/chunks/input-field.Bg77qHT2.js +157 -0
  70. package/dist/chunks/input-field.Bg77qHT2.js.map +1 -0
  71. package/dist/chunks/{menu.BCD4FW54.js → menu.EgYjFAku.js} +2 -2
  72. package/dist/chunks/{menu.BCD4FW54.js.map → menu.EgYjFAku.js.map} +1 -1
  73. package/dist/chunks/{modal-fullscreen.1OdCgyca.js → modal-fullscreen.BNTUOC7o.js} +2 -2
  74. package/dist/chunks/{modal-fullscreen.1OdCgyca.js.map → modal-fullscreen.BNTUOC7o.js.map} +1 -1
  75. package/dist/chunks/{modal.xY5aFhAO.js → modal.OvB4kEGR.js} +4 -4
  76. package/dist/chunks/{modal.xY5aFhAO.js.map → modal.OvB4kEGR.js.map} +1 -1
  77. package/dist/chunks/{pagination.CW_1yX5C.js → pagination.Dw153NzQ.js} +2 -2
  78. package/dist/chunks/{pagination.CW_1yX5C.js.map → pagination.Dw153NzQ.js.map} +1 -1
  79. package/dist/chunks/{popover.B05xkQ4e.js → popover.BGHbPUOr.js} +2 -2
  80. package/dist/chunks/{popover.B05xkQ4e.js.map → popover.BGHbPUOr.js.map} +1 -1
  81. package/dist/chunks/promo-banner.Bbc2U3S3.js.map +1 -1
  82. package/dist/chunks/{rich-text-editor.BpaFd2-y.js → rich-text-editor.CRJRvfJn.js} +3 -5
  83. package/dist/chunks/{rich-text-editor.BpaFd2-y.js.map → rich-text-editor.CRJRvfJn.js.map} +1 -1
  84. package/dist/chunks/{search-bar.5JHI6li0.js → search-bar.BTZSePJh.js} +3 -3
  85. package/dist/chunks/{search-bar.5JHI6li0.js.map → search-bar.BTZSePJh.js.map} +1 -1
  86. package/dist/chunks/{secondary-nav.D4hrWvf7.js → secondary-nav.BBhSBNn7.js} +2 -2
  87. package/dist/chunks/{secondary-nav.D4hrWvf7.js.map → secondary-nav.BBhSBNn7.js.map} +1 -1
  88. package/dist/chunks/{sidepanel.CI8fu1Q3.js → sidepanel.Dt-BnFzN.js} +2 -2
  89. package/dist/chunks/{sidepanel.CI8fu1Q3.js.map → sidepanel.Dt-BnFzN.js.map} +1 -1
  90. package/dist/chunks/{summary-grid.types.Cwri2Y3T.js → summary-grid.types.DsvtLg3D.js} +2 -2
  91. package/dist/chunks/{summary-grid.types.Cwri2Y3T.js.map → summary-grid.types.DsvtLg3D.js.map} +1 -1
  92. package/dist/chunks/{timeline-item.DK2d00rt.js → timeline-item.Dz66luo5.js} +2 -2
  93. package/dist/chunks/{timeline-item.DK2d00rt.js.map → timeline-item.Dz66luo5.js.map} +1 -1
  94. package/dist/chunks/{tutorial.DJ_Cwp9i.js → tutorial.DAKO-fKz.js} +4 -4
  95. package/dist/chunks/{tutorial.DJ_Cwp9i.js.map → tutorial.DAKO-fKz.js.map} +1 -1
  96. package/dist/chunks/{use-cached-selected-values.CusB5KBl.js → use-cached-selected-values.DQPABFfG.js} +122 -122
  97. package/dist/chunks/use-cached-selected-values.DQPABFfG.js.map +1 -0
  98. package/dist/code-snippet.js +1 -1
  99. package/dist/dashboard-template.js +1 -1
  100. package/dist/dashed-underline.js +1 -1
  101. package/dist/data-grid-template.js +1 -1
  102. package/dist/data-grid.js +1 -1
  103. package/dist/date-picker.js +1 -1
  104. package/dist/date-range-picker.js +1 -1
  105. package/dist/dropdown.js +4 -4
  106. package/dist/filter-bar.js +1 -1
  107. package/dist/header-with-views.js +1 -1
  108. package/dist/header.js +1 -1
  109. package/dist/index.js +33 -33
  110. package/dist/input-field-password.js +1 -1
  111. package/dist/input-field-phone-number.js +1 -1
  112. package/dist/input-field.js +1 -1
  113. package/dist/internal.js +4 -4
  114. package/dist/menu.js +1 -1
  115. package/dist/modal-fullscreen.js +1 -1
  116. package/dist/modal.js +2 -2
  117. package/dist/pagination.js +1 -1
  118. package/dist/popover.js +1 -1
  119. package/dist/rich-text-editor.js +1 -1
  120. package/dist/search-bar.js +2 -2
  121. package/dist/secondary-nav.js +1 -1
  122. package/dist/sidepanel.js +1 -1
  123. package/dist/summary-grid.js +1 -1
  124. package/dist/timeline.js +1 -1
  125. package/dist/tutorial.js +1 -1
  126. package/dist/web-types.json +65 -3
  127. package/package.json +6 -6
  128. package/dist/chunks/button-actions._OIvTdKt.js.map +0 -1
  129. package/dist/chunks/data-grid.t4fCoE2Y.js.map +0 -1
  130. package/dist/chunks/date-range-picker.DYxZygbL.js.map +0 -1
  131. package/dist/chunks/dropdown-default-textbox.BNuuA4ES.js.map +0 -1
  132. package/dist/chunks/header-with-views.B6mwBJjk.js.map +0 -1
  133. package/dist/chunks/input-field-password.B8qWGzaB.js.map +0 -1
  134. package/dist/chunks/input-field.L5bWjTpB.js +0 -152
  135. package/dist/chunks/input-field.L5bWjTpB.js.map +0 -1
  136. package/dist/chunks/use-cached-selected-values.CusB5KBl.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { computed as i, ref as E, onMounted as Ne, onUnmounted as $e, watch as q, defineComponent as w, nextTick as me, toRef as j, useSlots as Me, useAttrs as we } from "vue";
1
+ import { computed as o, ref as O, onMounted as Ne, onUnmounted as $e, watch as q, defineComponent as w, nextTick as me, toRef as j, useSlots as Me, useAttrs as we } from "vue";
2
2
  import { B as W } from "./typography.J1v_SPG3.js";
3
3
  import { B as Ge } from "./loading-indicator.z8COalOc.js";
4
4
  import { B as Pe } from "./empty-state.mtXfb1BB.js";
@@ -12,32 +12,32 @@ import { n as $ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
12
12
  import { C as Ve } from "./chevron-down.eYtgv5ly.js";
13
13
  import { C as We } from "./chevron-up.d8cwIlA_.js";
14
14
  import { B as N, a as le } from "./keyboard-navigation.pB8weElW.js";
15
- import { d as Ke, e as be } from "./button-actions._OIvTdKt.js";
15
+ import { d as Ke, e as be } from "./button-actions.BKdI_ooV.js";
16
16
  /* empty css */
17
17
  import { o as je } from "./resize.Bqks3WUm.js";
18
18
  import "../assets/use-cached-selected-values.css";
19
19
  const _e = (s, e, l, t) => {
20
- const n = i(
20
+ const n = o(
21
21
  () => {
22
22
  var f, I;
23
23
  return !!((f = s.value) != null && f.length) && ((I = s.value) == null ? void 0 : I.length) === e.value.length;
24
24
  }
25
- ), o = i(() => {
25
+ ), i = o(() => {
26
26
  var f;
27
27
  return s.value == null || s.value.length === 0 ? !1 : ((f = s.value) == null ? void 0 : f.length) !== e.value.length;
28
28
  });
29
29
  return {
30
30
  isAllSelected: n,
31
- isIndeterminate: o,
31
+ isIndeterminate: i,
32
32
  toggleSelectAll: (f) => {
33
33
  f ? l() : t();
34
34
  }
35
35
  };
36
36
  };
37
37
  function qe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n }) {
38
- const o = E(null), r = E([]), f = E(0), I = E(0), d = E(0);
38
+ const i = O(null), r = O([]), f = O(0), I = O(0), d = O(0);
39
39
  let b;
40
- const O = i(() => {
40
+ const E = o(() => {
41
41
  const T = typeof l == "number" ? s.value.length * l : s.value.reduce((S, m, y) => S + l(y), 0), A = typeof l == "number" ? f.value * l : s.value.slice(0, f.value).reduce((S, m, y) => S + l(y), 0);
42
42
  return {
43
43
  style: {
@@ -46,7 +46,7 @@ function qe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n })
46
46
  }
47
47
  };
48
48
  }), p = () => {
49
- const T = (n == null ? void 0 : n.value) ?? 0, A = Math.max(o.value.scrollTop - T, 0);
49
+ const T = (n == null ? void 0 : n.value) ?? 0, A = Math.max(i.value.scrollTop - T, 0);
50
50
  if (typeof l == "number")
51
51
  return Math.floor(A / l);
52
52
  let S = 0, m = 0;
@@ -59,7 +59,7 @@ function qe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n })
59
59
  }
60
60
  return m;
61
61
  }, g = () => {
62
- if (d.value = o.value.clientHeight, typeof l == "number")
62
+ if (d.value = i.value.clientHeight, typeof l == "number")
63
63
  return Math.ceil(d.value / l);
64
64
  const T = f.value ?? 0;
65
65
  let A = 0, S = 0;
@@ -70,7 +70,7 @@ function qe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n })
70
70
  }
71
71
  return S - T;
72
72
  }, C = () => {
73
- if (o.value) {
73
+ if (i.value) {
74
74
  const T = g();
75
75
  f.value = p(), I.value = Math.min(f.value + T + t, s.value.length), r.value = s.value.slice(f.value, I.value);
76
76
  }
@@ -78,7 +78,7 @@ function qe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n })
78
78
  C();
79
79
  };
80
80
  e || (Ne(() => {
81
- o.value && (d.value = o.value.clientHeight, b = je(o.value, ({ clientHeight: T }) => {
81
+ i.value && (d.value = i.value.clientHeight, b = je(i.value, ({ clientHeight: T }) => {
82
82
  d.value = T, C();
83
83
  }), C());
84
84
  }), $e(() => {
@@ -90,22 +90,22 @@ function qe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n })
90
90
  }
91
91
  ));
92
92
  const L = {
93
- ref: o,
93
+ ref: i,
94
94
  style: { overflowY: "auto" }
95
95
  };
96
96
  return e ? {
97
- containerRef: o,
97
+ containerRef: i,
98
98
  containerProps: L,
99
99
  // eslint-disable-next-line @typescript-eslint/no-empty-function
100
100
  onScroll: () => {
101
101
  },
102
102
  list: s
103
103
  } : {
104
- containerRef: o,
104
+ containerRef: i,
105
105
  containerProps: L,
106
106
  onScroll: D,
107
107
  list: r,
108
- wrapperProps: O
108
+ wrapperProps: E
109
109
  };
110
110
  }
111
111
  var c = /* @__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))(c || {}), V = /* @__PURE__ */ ((s) => (s.AUTOMATIC = "automatic", s.BUTTON = "button", s.NONE = "none", s))(V || {});
@@ -149,7 +149,7 @@ const Qe = Ze.exports, et = w({
149
149
  },
150
150
  emits: [c.CLICK, c.ENTER, c.SPACE, c.TAB],
151
151
  setup(s, { emit: e }) {
152
- const l = i(() => ({
152
+ const l = o(() => ({
153
153
  "b-listbox-option--disabled": s.disabled,
154
154
  "b-listbox-option--selected": s.selected
155
155
  }));
@@ -160,11 +160,11 @@ const Qe = Ze.exports, et = w({
160
160
  // Values
161
161
  conditionalClasses: l,
162
162
  // Events
163
- onClick: (o) => {
164
- e(c.CLICK, o);
163
+ onClick: (i) => {
164
+ e(c.CLICK, i);
165
165
  },
166
- onOptionSelected: (o, r) => {
167
- e(o, r);
166
+ onOptionSelected: (i, r) => {
167
+ e(i, r);
168
168
  }
169
169
  };
170
170
  }
@@ -193,13 +193,13 @@ const nt = {
193
193
  this.uuid = fe.toString(), fe += 1;
194
194
  }
195
195
  };
196
- var ot = function() {
196
+ var it = function() {
197
197
  var e = this, l = e._self._c;
198
198
  return l("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
199
- }, it = [], at = /* @__PURE__ */ $(
199
+ }, ot = [], at = /* @__PURE__ */ $(
200
200
  nt,
201
- ot,
202
201
  it,
202
+ ot,
203
203
  !1,
204
204
  null,
205
205
  null
@@ -233,12 +233,12 @@ const ct = at.exports, rt = w({
233
233
  setup(s, { emit: e }) {
234
234
  const l = (r) => {
235
235
  s.disabled || e(r, s.option);
236
- }, t = i(() => s.disabled ? !0 : null), n = i(() => s.selected ? !0 : null), o = i(() => s.disabled ? -1 : 0);
236
+ }, t = o(() => s.disabled ? !0 : null), n = o(() => s.selected ? !0 : null), i = o(() => s.disabled ? -1 : 0);
237
237
  return {
238
238
  // Values
239
239
  ariaDisabled: t,
240
240
  ariaSelected: n,
241
- tabIndex: o,
241
+ tabIndex: i,
242
242
  // Enums
243
243
  BentoListboxEvent: c,
244
244
  // Events
@@ -268,7 +268,7 @@ var ut = function() {
268
268
  "5a5ff36a"
269
269
  );
270
270
  const ft = bt.exports, pe = ({ items: s }, e) => {
271
- const l = i(() => s.value.length - 1), t = E(0), n = (p) => {
271
+ const l = o(() => s.value.length - 1), t = O(0), n = (p) => {
272
272
  switch (p) {
273
273
  case "increase":
274
274
  t.value += 1;
@@ -277,10 +277,10 @@ const ft = bt.exports, pe = ({ items: s }, e) => {
277
277
  t.value -= 1;
278
278
  break;
279
279
  }
280
- }, o = ({ edgeCaseItem: p }, g) => {
280
+ }, i = ({ edgeCaseItem: p }, g) => {
281
281
  t.value !== p && (n(g), e(t.value));
282
282
  }, r = (p) => {
283
- O(p), o(
283
+ E(p), i(
284
284
  {
285
285
  edgeCaseItem: l.value
286
286
  },
@@ -288,7 +288,7 @@ const ft = bt.exports, pe = ({ items: s }, e) => {
288
288
  /* INCREASE */
289
289
  );
290
290
  }, f = (p) => {
291
- O(p), o(
291
+ E(p), i(
292
292
  {
293
293
  edgeCaseItem: 0
294
294
  },
@@ -301,7 +301,7 @@ const ft = bt.exports, pe = ({ items: s }, e) => {
301
301
  t.value = l.value, e(t.value);
302
302
  }, b = (p) => {
303
303
  t.value = p;
304
- }, O = (p) => {
304
+ }, E = (p) => {
305
305
  var g;
306
306
  (g = p == null ? void 0 : p.detail) == null || g.preventDefault();
307
307
  };
@@ -311,11 +311,11 @@ const ft = bt.exports, pe = ({ items: s }, e) => {
311
311
  moveToNextElement: r,
312
312
  moveToPreviousElement: f,
313
313
  setListboxFocusedIndex: b,
314
- preventDefault: O,
314
+ preventDefault: E,
315
315
  focusedIndex: t
316
316
  };
317
- }, ge = (s, e, l = E("option"), t = !0) => {
318
- const n = E([]), o = async () => {
317
+ }, ge = (s, e, l = O("option"), t = !0) => {
318
+ const n = O([]), i = async () => {
319
319
  if (!s.value || s.value.nodeType === Node.COMMENT_NODE)
320
320
  return;
321
321
  const r = Array.from(s.value.querySelectorAll(`[role="${l.value}"]`));
@@ -325,13 +325,13 @@ const ft = bt.exports, pe = ({ items: s }, e) => {
325
325
  e,
326
326
  () => {
327
327
  me(() => {
328
- o();
328
+ i();
329
329
  });
330
330
  },
331
331
  { immediate: !0 }
332
332
  ), {
333
333
  visibleDomOptions: n,
334
- updateVisibleDomOptions: o
334
+ updateVisibleDomOptions: i
335
335
  };
336
336
  }, vt = w({
337
337
  name: "bento-listbox-single-select",
@@ -382,10 +382,10 @@ const ft = bt.exports, pe = ({ items: s }, e) => {
382
382
  },
383
383
  emits: [c.SELECT, c.ENTER, c.SPACE, c.TAB],
384
384
  setup(s, { emit: e, expose: l, slots: t, attrs: n }) {
385
- const o = E(null), r = E([]), f = i(() => {
385
+ const i = O(null), r = O([]), f = o(() => {
386
386
  var m;
387
387
  return !!((m = s.selectedValue) != null && m.length) && s.selectedValue.at(0);
388
- }), I = i(
388
+ }), I = o(
389
389
  () => {
390
390
  var m, y, h, k;
391
391
  return {
@@ -395,11 +395,11 @@ const ft = bt.exports, pe = ({ items: s }, e) => {
395
395
  "aria-live": (k = n["aria-live"]) == null ? void 0 : k.toString()
396
396
  };
397
397
  }
398
- ), d = i(() => !!s.items.some(({ items: m }) => !!m)), b = (m) => (y) => {
398
+ ), d = o(() => !!s.items.some(({ items: m }) => !!m)), b = (m) => (y) => {
399
399
  e(m, [y]);
400
- }, { visibleDomOptions: O } = ge(o, j(s, "items"), E("option"), !1), p = (m) => {
400
+ }, { visibleDomOptions: E } = ge(i, j(s, "items"), O("option"), !1), p = (m) => {
401
401
  var y;
402
- (y = O.value[m]) == null || y.focus();
402
+ (y = E.value[m]) == null || y.focus();
403
403
  }, {
404
404
  moveToNextElement: g,
405
405
  moveToPreviousElement: C,
@@ -408,7 +408,7 @@ const ft = bt.exports, pe = ({ items: s }, e) => {
408
408
  setListboxFocusedIndex: T
409
409
  } = pe(
410
410
  {
411
- items: O
411
+ items: E
412
412
  },
413
413
  p
414
414
  ), A = {
@@ -437,7 +437,7 @@ const ft = bt.exports, pe = ({ items: s }, e) => {
437
437
  // Enums
438
438
  BentoListboxEvent: c,
439
439
  // Values
440
- listboxRef: o,
440
+ listboxRef: i,
441
441
  listboxItemRef: r,
442
442
  selectedItem: f,
443
443
  slots: t,
@@ -456,16 +456,16 @@ var mt = function() {
456
456
  var e = this, l = e._self._c;
457
457
  return e._self._setupProxy, l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", attrs: { role: "listbox" } }, "div", e.ariaAttributes, !1), e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(t) {
458
458
  return l("bento-listbox-single-select-category", { key: t.value, attrs: { "category-label": t.label, role: "group" } }, e._l(t.items, function(n) {
459
- return l("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(o, r) {
459
+ return l("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(i, r) {
460
460
  return { key: r, fn: function(f) {
461
461
  return [e._t(r, null, null, f)];
462
462
  } };
463
463
  })], null, !0) }, e.listboxOptionListeners));
464
464
  }), 1);
465
465
  }) : e._l(e.items, function(t) {
466
- return l("bento-listbox-single-select-option", e._g({ key: t.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: t, disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, selected: t.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, o) {
467
- return { key: o, fn: function(r) {
468
- return [e._t(o, null, null, r)];
466
+ return l("bento-listbox-single-select-option", e._g({ key: t.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: t, disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, selected: t.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, i) {
467
+ return { key: i, fn: function(r) {
468
+ return [e._t(i, null, null, r)];
469
469
  } };
470
470
  })], null, !0) }, e.listboxOptionListeners));
471
471
  })], 2);
@@ -486,9 +486,9 @@ const gt = pt.exports, yt = {}, xt = /* @__PURE__ */ w({
486
486
  checked: { type: Boolean, default: !1 }
487
487
  },
488
488
  setup(s) {
489
- const e = s, l = i(() => ({
489
+ const e = s, l = o(() => ({
490
490
  [`b-checkbox-input--${J.DISABLED}`]: e.disabled
491
- })), t = i(() => ({
491
+ })), t = o(() => ({
492
492
  [`b-checkbox-input__outline--${J.UNCHECKED}`]: !e.checked && !e.indeterminate,
493
493
  [`b-checkbox-input__outline--${J.CHECKED}`]: e.checked && !e.indeterminate,
494
494
  [`b-checkbox-input__outline--${J.INDETERMINATE}`]: e.indeterminate
@@ -509,13 +509,13 @@ var ht = function() {
509
509
  );
510
510
  const ne = St.exports;
511
511
  var ye = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(ye || {}), Y = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.UNSELECT_CATEGORY = "unselect-category", s.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", s))(Y || {});
512
- const Et = {
512
+ const Ot = {
513
513
  "en-US": {
514
514
  categoryClosed: "{category} closed",
515
515
  categoryOpened: "{category} opened"
516
516
  }
517
- }, Ot = w({
518
- i18n: { messages: Et },
517
+ }, Et = w({
518
+ i18n: { messages: Ot },
519
519
  name: "bento-listbox-multi-select-category",
520
520
  components: {
521
521
  BentoTypography: W,
@@ -573,32 +573,32 @@ const Et = {
573
573
  Y.TOGGLE_CATEGORY_VISIBILITY
574
574
  ],
575
575
  setup(s, { emit: e }) {
576
- const l = E(!1), { t } = se(), n = (h) => s.isOptionDisabled ? s.isOptionDisabled(h) : !1, o = i(
576
+ const l = O(!1), { t } = se(), n = (h) => s.isOptionDisabled ? s.isOptionDisabled(h) : !1, i = o(
577
577
  () => s.category.items.every((h) => n(h))
578
- ), r = j(s, "staticCategories"), f = i(() => l.value || s.staticCategories), I = i(() => ({
579
- [`b-listbox-multi-select-category--${ye.DISABLED}`]: o.value
578
+ ), r = j(s, "staticCategories"), f = o(() => l.value || s.staticCategories), I = o(() => ({
579
+ [`b-listbox-multi-select-category--${ye.DISABLED}`]: i.value
580
580
  })), d = (h, k) => {
581
581
  h.preventDefault(), l.value = k !== void 0 ? k : !l.value, e(Y.TOGGLE_CATEGORY_VISIBILITY, s.category.value);
582
582
  }, b = (h) => {
583
583
  var G;
584
584
  const k = n(h), B = ((G = s.selectedItemsList) == null ? void 0 : G.includes(h.value)) || !1;
585
585
  return { isDisabled: k, isPreSelected: B };
586
- }, O = i(
586
+ }, E = o(
587
587
  () => s.category.items.filter((h) => {
588
588
  const { isDisabled: k, isPreSelected: B } = b(h);
589
589
  return k && B || !k;
590
590
  })
591
- ), p = i(
591
+ ), p = o(
592
592
  () => {
593
593
  var h;
594
- return (h = O.value) == null ? void 0 : h.filter(
594
+ return (h = E.value) == null ? void 0 : h.filter(
595
595
  ({ value: k }) => {
596
596
  var B;
597
597
  return (B = s.selectedItemsList) == null ? void 0 : B.includes(k);
598
598
  }
599
599
  );
600
600
  }
601
- ), g = i(() => {
601
+ ), g = o(() => {
602
602
  const h = l.value ? "categoryOpened" : "categoryClosed";
603
603
  return t(h, { category: s.category.label });
604
604
  }), C = () => {
@@ -607,10 +607,10 @@ const Et = {
607
607
  e(Y.UNSELECT_CATEGORY);
608
608
  }, { isAllSelected: L, isIndeterminate: T, toggleSelectAll: A } = _e(
609
609
  p,
610
- O,
610
+ E,
611
611
  C,
612
612
  D
613
- ), S = i(() => T.value ? "mixed" : `${L.value}`), m = E(L.value), y = () => {
613
+ ), S = o(() => T.value ? "mixed" : `${L.value}`), m = O(L.value), y = () => {
614
614
  m.value = !m.value, A(m.value);
615
615
  };
616
616
  return q(L, () => {
@@ -619,7 +619,7 @@ const Et = {
619
619
  // Values
620
620
  chevronTitle: g,
621
621
  conditionalClass: I,
622
- hasAllPropsDisabled: o,
622
+ hasAllPropsDisabled: i,
623
623
  isOpen: l,
624
624
  isAllSelected: L,
625
625
  isIndeterminate: T,
@@ -636,7 +636,7 @@ const Et = {
636
636
  });
637
637
  var Tt = function() {
638
638
  var e = this, l = e._self._c;
639
- return e._self._setupProxy, l("div", [e.isStaticCategory ? l("div", { staticClass: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category" }, [l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el: "span", variant: "caption" } }, [e._v(" " + e._s(e.category.label) + " ")])], 1)]) : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex, "aria-checked": e.ariaCheckedComputed, "aria-disabled": e.hasAllPropsDisabled, "aria-expanded": e.isOpen, role: "treeitem" }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(t) {
639
+ return e._self._setupProxy, l("div", [e.isStaticCategory ? l("div", { staticClass: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category" }, [l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el: "span", variant: "caption" } }, [e._v(" " + e._s(e.category.label) + " ")])], 1)]) : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex, "aria-selected": e.ariaCheckedComputed !== "false", "aria-checked": e.ariaCheckedComputed, "aria-disabled": e.hasAllPropsDisabled, "aria-expanded": e.isOpen, role: "treeitem" }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(t) {
640
640
  return t.preventDefault(), e.handleSelectAll.apply(null, arguments);
641
641
  } }, nativeOn: { keydown: [function(t) {
642
642
  return !t.type.indexOf("key") && e._k(t.keyCode, "arrow-left", void 0, t.key, void 0) ? null : e.toggleOpen(t, !1);
@@ -646,12 +646,12 @@ var Tt = function() {
646
646
  return t.stopPropagation(), e.toggleOpen.apply(null, arguments);
647
647
  } } }, [e.isOpen ? l("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : l("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), l("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }] }, [e._t("default")], 2)], 1);
648
648
  }, It = [], At = /* @__PURE__ */ $(
649
- Ot,
649
+ Et,
650
650
  Tt,
651
651
  It,
652
652
  !1,
653
653
  null,
654
- "e1e7494c"
654
+ "ed9dd823"
655
655
  );
656
656
  const Lt = At.exports;
657
657
  var M = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", s.UNSELECT_CATEGORY = "unselect-category", s.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", s))(M || {});
@@ -742,21 +742,21 @@ const kt = w({
742
742
  }, t = (d) => !!d.items, n = (d) => {
743
743
  const b = s.isMultiLevel && s.searching;
744
744
  return d.description && (!s.isMultiLevel || b);
745
- }, o = (d) => d.items ? !!d.items.find((b) => s.selectedItemsList.includes(b.value)) : s.selectedItemsList.includes(d.value), r = (d) => {
745
+ }, i = (d) => d.items ? !!d.items.find((b) => s.selectedItemsList.includes(b.value)) : s.selectedItemsList.includes(d.value), r = (d) => {
746
746
  if (t(d)) {
747
- const b = o(d) ? M.UNSELECT_CATEGORY : M.SELECT_CATEGORY;
747
+ const b = i(d) ? M.UNSELECT_CATEGORY : M.SELECT_CATEGORY;
748
748
  e(b, d);
749
749
  } else
750
750
  l(d);
751
751
  };
752
752
  return {
753
753
  // Values
754
- conditionalClasses: i(() => ({
754
+ conditionalClasses: o(() => ({
755
755
  "b-listbox-multi-select-options__static-category-option": s.staticCategories,
756
756
  "b-listbox-multi-select-options__category-option": s.categoryItems
757
757
  })),
758
758
  // Methods
759
- isOptionSelected: o,
759
+ isOptionSelected: i,
760
760
  shouldShowDescription: n,
761
761
  toggleCheckboxSelection: l,
762
762
  toggleSearchOption: r,
@@ -770,7 +770,7 @@ const kt = w({
770
770
  var Rt = function() {
771
771
  var e = this, l = e._self._c;
772
772
  return e._self._setupProxy, l("div", e._l(e.items, function(t) {
773
- return l("div", { key: `selected-${t.value}` }, [e.searching && e.isMultiLevel ? [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role }, on: { click: function(n) {
773
+ return l("div", { key: `selected-${t.value}` }, [e.searching && e.isMultiLevel ? [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-selected": `${e.isOptionSelected(t)}`, "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role }, on: { click: function(n) {
774
774
  return e.toggleSearchOption(t);
775
775
  }, "enter-pressed": function(n) {
776
776
  return e.toggleSearchOption(t);
@@ -784,7 +784,7 @@ var Rt = function() {
784
784
  return e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, t);
785
785
  }, "toggle-category-visibility": function(n) {
786
786
  return e.$emit(e.ListboxMultiSelectOptionsEvent.TOGGLE_CATEGORY_VISIBILITY, n);
787
- } } }, [l("listbox-multi-select-options", { attrs: { "category-items": "", items: t.items, "is-option-disabled": e.isOptionDisabled, "items-index": e.itemsIndex, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching, role: e.$attrs.role }, on: { "toggle-checkbox-selection": (n) => e.toggleCheckboxSelection(n) } })], 1)] : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role }, on: { click: function(n) {
787
+ } } }, [l("listbox-multi-select-options", { attrs: { "category-items": "", items: t.items, "is-option-disabled": e.isOptionDisabled, "items-index": e.itemsIndex, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching, role: e.$attrs.role }, on: { "toggle-checkbox-selection": (n) => e.toggleCheckboxSelection(n) } })], 1)] : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-selected": `${e.isOptionSelected(t)}`, "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role }, on: { click: function(n) {
788
788
  return e.toggleCheckboxSelection(t);
789
789
  }, "enter-pressed": function(n) {
790
790
  return e.toggleCheckboxSelection(t);
@@ -800,15 +800,15 @@ var Rt = function() {
800
800
  Dt,
801
801
  !1,
802
802
  null,
803
- "4c869a48"
803
+ "64d7fa1f"
804
804
  );
805
805
  const Nt = Bt.exports, $t = (s) => {
806
- const e = i(() => {
806
+ const e = o(() => {
807
807
  var t;
808
808
  return !!((t = s.value) != null && t.find(({ items: n }) => !!n));
809
- }), l = i(() => {
809
+ }), l = o(() => {
810
810
  var t;
811
- return e.value ? (t = s.value) == null ? void 0 : t.reduce((n, o) => (o.items ? n.push(...o.items.flat()) : n.push(o), n), []) : s.value;
811
+ return e.value ? (t = s.value) == null ? void 0 : t.reduce((n, i) => (i.items ? n.push(...i.items.flat()) : n.push(i), n), []) : s.value;
812
812
  });
813
813
  return {
814
814
  isMultiLevelSelect: e,
@@ -847,7 +847,7 @@ const Nt = Bt.exports, $t = (s) => {
847
847
  },
848
848
  emits: ["select"],
849
849
  setup(s, { expose: e, emit: l }) {
850
- const t = s, { t: n, n: o } = se(), r = Me(), f = we(), I = i(
850
+ const t = s, { t: n, n: i } = se(), r = Me(), f = we(), I = o(
851
851
  () => {
852
852
  var a, u, v, x;
853
853
  return {
@@ -858,11 +858,11 @@ const Nt = Bt.exports, $t = (s) => {
858
858
  "aria-multiselectable": !0
859
859
  };
860
860
  }
861
- ), d = E(null), b = E(null), O = E(null), p = E(null), g = i(() => t.selectedValues.map(({ value: a }) => a)), { isMultiLevelSelect: C, flattenedItemsList: D } = $t(j(t, "items")), L = i(() => C.value && !t.staticCategories), T = i(() => L.value ? "tree" : "listbox"), A = i(() => L.value ? "treeitem" : "option"), S = (a) => {
861
+ ), d = O(null), b = O(null), E = O(null), p = O(null), g = o(() => t.selectedValues.map(({ value: a }) => a)), { isMultiLevelSelect: C, flattenedItemsList: D } = $t(j(t, "items")), L = o(() => C.value && !t.staticCategories), T = o(() => L.value ? "tree" : "listbox"), A = o(() => L.value ? "treeitem" : "option"), S = (a) => {
862
862
  var x;
863
863
  const u = t.isOptionDisabled(a), v = ((x = g.value) == null ? void 0 : x.includes(a.value)) || !1;
864
864
  return { isDisabled: u, isPreSelected: v };
865
- }, m = i(() => {
865
+ }, m = o(() => {
866
866
  if (t.searching && C)
867
867
  return t.items;
868
868
  const a = D.value.filter((u) => {
@@ -872,7 +872,7 @@ const Nt = Bt.exports, $t = (s) => {
872
872
  return t.selectedValues.forEach((u) => {
873
873
  a.find((v) => v.value === u.value) || a.push(u);
874
874
  }), a;
875
- }), y = i(
875
+ }), y = o(
876
876
  () => {
877
877
  var a;
878
878
  return (a = m.value) == null ? void 0 : a.filter((u) => {
@@ -882,10 +882,10 @@ const Nt = Bt.exports, $t = (s) => {
882
882
  ).length === u.items.length : (v = g.value) == null ? void 0 : v.includes(u.value);
883
883
  });
884
884
  }
885
- ), h = () => C.value && !t.searching ? D.value.length : t.items.length, k = i(() => {
885
+ ), h = () => C.value && !t.searching ? D.value.length : t.items.length, k = o(() => {
886
886
  var x;
887
887
  const a = m.value.length, u = h(), v = ((x = y.value) == null ? void 0 : x.length) || 0;
888
- return v === 0 ? n("selectAll", { total: o(a) }) : v === u ? n("allSelected", { total: o(u) }) : v <= u ? n("numberOfTotalSelected", { number: o(v), total: o(u) }) : n("numbersSelected", { number: o(v) });
888
+ return v === 0 ? n("selectAll", { total: i(a) }) : v === u ? n("allSelected", { total: i(u) }) : v <= u ? n("numberOfTotalSelected", { number: i(v), total: i(u) }) : n("numbersSelected", { number: i(v) });
889
889
  }), B = (a) => {
890
890
  const u = (x) => {
891
891
  const { isDisabled: _, isPreSelected: P } = S(x);
@@ -907,7 +907,7 @@ const Nt = Bt.exports, $t = (s) => {
907
907
  m,
908
908
  H,
909
909
  X
910
- ), xe = i(() => R.value ? "mixed" : `${F.value}`), K = E(F.value), he = () => {
910
+ ), xe = o(() => R.value ? "mixed" : `${F.value}`), K = O(F.value), he = () => {
911
911
  K.value = !K.value, U(K.value);
912
912
  };
913
913
  q(F, () => {
@@ -917,30 +917,30 @@ const Nt = Bt.exports, $t = (s) => {
917
917
  B(a.items);
918
918
  }, Se = (a) => {
919
919
  G(a.items);
920
- }, Ee = (a, u) => {
920
+ }, Oe = (a, u) => {
921
921
  let v = !1;
922
922
  const x = t.selectedValues.filter(({ value: _ }) => u.value === _ ? (v = !0, !1) : !0);
923
923
  v || x.push(u), l(a, x);
924
- }, Oe = i(() => {
924
+ }, Ee = o(() => {
925
925
  if (!C.value)
926
926
  return t.selectedValues;
927
927
  const a = (_) => g.value.includes(_.value), u = (_) => !t.staticCategories && _.every((P) => a(P));
928
928
  return t.items.flatMap(
929
929
  (_) => _.items && !u(_.items) ? _.items : _
930
930
  ).filter((_) => _.items ? !0 : a(_));
931
- }), Te = i(() => {
931
+ }), Te = o(() => {
932
932
  var v, x, _, P;
933
933
  const a = ["automatic", "button"].includes(t.lazyLoadType), u = ((v = t.selectedValues) == null ? void 0 : v.length) > 0 && ((x = y.value) == null ? void 0 : x.length) !== ((_ = D.value) == null ? void 0 : _.length);
934
934
  return a && t.hasMoreItems ? !!((P = t.selectedValues) != null && P.length) : u;
935
- }), Ie = i(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), z = E([]), { visibleDomOptions: Q, updateVisibleDomOptions: oe } = ge(
935
+ }), Ie = o(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), z = O([]), { visibleDomOptions: Q, updateVisibleDomOptions: ie } = ge(
936
936
  d,
937
937
  j(t, "items"),
938
938
  A
939
939
  ), Ae = (a) => {
940
940
  z.value.includes(a) ? z.value = z.value.filter((u) => u !== a) : z.value.push(a), me(() => {
941
- oe();
941
+ ie();
942
942
  });
943
- }, ie = (a) => {
943
+ }, oe = (a) => {
944
944
  var u;
945
945
  (u = Q.value[a]) == null || u.focus();
946
946
  }, {
@@ -955,7 +955,7 @@ const Nt = Bt.exports, $t = (s) => {
955
955
  {
956
956
  items: Q
957
957
  },
958
- ie
958
+ oe
959
959
  ), ke = {
960
960
  [N.ARROW_UP]: (a) => ce(a),
961
961
  [N.ARROW_DOWN]: (a) => ae(a),
@@ -972,7 +972,7 @@ const Nt = Bt.exports, $t = (s) => {
972
972
  const Re = {
973
973
  [N.ARROW_UP]: ee,
974
974
  [N.ARROW_DOWN]: ee
975
- }, De = i(() => {
975
+ }, De = o(() => {
976
976
  let a = 1;
977
977
  const u = {};
978
978
  return t.items.forEach((v) => {
@@ -980,16 +980,16 @@ const Nt = Bt.exports, $t = (s) => {
980
980
  v.items ? (t.staticCategories ? x = !0 : u[v.value] = a++, x && v.items.forEach((_) => u[_.value] = a++)) : u[v.value] = a++;
981
981
  }), u;
982
982
  });
983
- return { __sfc: !0, props: t, emit: l, t: n, n: o, slots: r, attrs: f, ariaAttributes: I, listboxRef: d, selectAllListboxItemsRef: b, selectedListboxItemsRef: O, listboxItemsRef: p, selectedItemsList: g, isMultiLevelSelect: C, flattenedItemsList: D, isTreePattern: L, computedRole: T, computedOptionRole: A, optionStates: S, enabledItems: m, visibleSelectedList: y, calculateTotalItems: h, selectAllCheckboxText: k, selectAll: B, unselectAll: G, selectAllItems: H, unselectAllItems: X, isAllSelected: F, isIndeterminate: R, toggleSelectAll: U, ariaCheckedComputed: xe, isSelectAllOn: K, handleSelectAll: he, selectAllCategory: Ce, unselectAllCategory: Se, toggleCheckboxSelection: Ee, selectedOptions: Oe, showSelectedItems: Te, showSelectAllCheckbox: Ie, expandedCategories: z, visibleDomOptions: Q, updateVisibleDomOptions: oe, toggleCategoryVisibility: Ae, focusItem: ie, moveToNextElement: ae, moveToPreviousElement: ce, moveToFirstElement: re, moveToLastElement: ue, preventDefault: ee, focusedIndex: Le, setListboxFocusedIndex: de, listboxListeners: ke, chipsSectionListeners: Re, computedItemsIndex: De, ListboxDecorativeCheckbox: ne, BentoTypography: W, BentoChip: Ye, BentoListboxOption: Z, ListboxMultiSelectOptions: Nt, vBentoKeyboardNavigationDirective: le, BentoListboxEvent: c };
983
+ return { __sfc: !0, props: t, emit: l, t: n, n: i, slots: r, attrs: f, ariaAttributes: I, listboxRef: d, selectAllListboxItemsRef: b, selectedListboxItemsRef: E, listboxItemsRef: p, selectedItemsList: g, isMultiLevelSelect: C, flattenedItemsList: D, isTreePattern: L, computedRole: T, computedOptionRole: A, optionStates: S, enabledItems: m, visibleSelectedList: y, calculateTotalItems: h, selectAllCheckboxText: k, selectAll: B, unselectAll: G, selectAllItems: H, unselectAllItems: X, isAllSelected: F, isIndeterminate: R, toggleSelectAll: U, ariaCheckedComputed: xe, isSelectAllOn: K, handleSelectAll: he, selectAllCategory: Ce, unselectAllCategory: Se, toggleCheckboxSelection: Oe, selectedOptions: Ee, showSelectedItems: Te, showSelectAllCheckbox: Ie, expandedCategories: z, visibleDomOptions: Q, updateVisibleDomOptions: ie, toggleCategoryVisibility: Ae, focusItem: oe, moveToNextElement: ae, moveToPreviousElement: ce, moveToFirstElement: re, moveToLastElement: ue, preventDefault: ee, focusedIndex: Le, setListboxFocusedIndex: de, listboxListeners: ke, chipsSectionListeners: Re, computedItemsIndex: De, ListboxDecorativeCheckbox: ne, BentoTypography: W, BentoChip: Ye, BentoListboxOption: Z, ListboxMultiSelectOptions: Nt, vBentoKeyboardNavigationDirective: le, BentoListboxEvent: c };
984
984
  }
985
985
  });
986
986
  var Pt = function() {
987
987
  var e = this, l = e._self._c, t = e._self._setupProxy;
988
988
  return l("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [t.showSelectedItems ? l("div", [l("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, t.chipsSectionListeners), e._l(t.selectedOptions, function(n) {
989
- return l("li", { key: n.value }, [l(t.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(n), label: n.label, condensed: "" }, on: { click: function(o) {
989
+ return l("li", { key: n.value }, [l(t.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(n), label: n.label, condensed: "" }, on: { click: function(i) {
990
990
  n.items ? t.unselectAllCategory(n) : t.toggleCheckboxSelection("select", n);
991
991
  } } })], 1);
992
- }), 0), l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } })]) : e._e(), l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], attrs: { role: t.computedRole } }, "div", t.ariaAttributes, !1), t.listboxListeners), [t.showSelectAllCheckbox ? l(t.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: t.focusedIndex === 0 ? 0 : -1, "aria-checked": t.ariaCheckedComputed, role: t.computedOptionRole }, on: { click: t.handleSelectAll, "enter-pressed": t.handleSelectAll, "space-pressed": function(n) {
992
+ }), 0), l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } })]) : e._e(), l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], attrs: { role: t.computedRole } }, "div", t.ariaAttributes, !1), t.listboxListeners), [t.showSelectAllCheckbox ? l(t.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: t.focusedIndex === 0 ? 0 : -1, "aria-selected": t.ariaCheckedComputed !== "false", "aria-checked": t.ariaCheckedComputed, role: t.computedOptionRole }, on: { click: t.handleSelectAll, "enter-pressed": t.handleSelectAll, "space-pressed": function(n) {
993
993
  return n.preventDefault(), t.handleSelectAll.apply(null, arguments);
994
994
  } } }, [l(t.ListboxDecorativeCheckbox, { attrs: { checked: t.isAllSelected, indeterminate: t.isIndeterminate } }), l(t.BentoTypography, { attrs: { el: "span" } }, [e._v(" " + e._s(t.selectAllCheckboxText) + " ")])], 1) : e._e(), t.showSelectAllCheckbox ? l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } }) : e._e(), l(t.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": t.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": t.selectedItemsList, "focused-index": t.focusedIndex, "items-index": t.computedItemsIndex, role: t.computedOptionRole }, on: { "toggle-checkbox-selection": function(n) {
995
995
  return t.toggleCheckboxSelection("select", n);
@@ -999,9 +999,9 @@ var Pt = function() {
999
999
  return t.toggleCheckboxSelection(t.BentoListboxEvent.TAB, n);
1000
1000
  }, "enter-pressed": function(n) {
1001
1001
  return t.toggleCheckboxSelection(t.BentoListboxEvent.ENTER, n);
1002
- } }, scopedSlots: e._u([e._l(t.slots, function(n, o) {
1003
- return { key: o, fn: function(r) {
1004
- return [e._t(o, null, null, r)];
1002
+ } }, scopedSlots: e._u([e._l(t.slots, function(n, i) {
1003
+ return { key: i, fn: function(r) {
1004
+ return [e._t(i, null, null, r)];
1005
1005
  } };
1006
1006
  })], null, !0) })], 1)]);
1007
1007
  }, Ft = [], Yt = /* @__PURE__ */ $(
@@ -1010,7 +1010,7 @@ var Pt = function() {
1010
1010
  Ft,
1011
1011
  !1,
1012
1012
  null,
1013
- "904fc859"
1013
+ "88e0c352"
1014
1014
  );
1015
1015
  const ve = Yt.exports, Ut = {
1016
1016
  "en-US": {
@@ -1145,33 +1145,33 @@ const ve = Yt.exports, Ut = {
1145
1145
  c.TAB
1146
1146
  ],
1147
1147
  setup(s, { emit: e, slots: l }) {
1148
- const t = E([]), n = j(s, "items"), { t: o } = se(), r = i(() => s.lazyLoadType !== V.AUTOMATIC), f = i(() => s.lazyLoadType === V.AUTOMATIC), I = () => {
1148
+ const t = O([]), n = j(s, "items"), { t: i } = se(), r = o(() => s.lazyLoadType !== V.AUTOMATIC), f = o(() => s.lazyLoadType === V.AUTOMATIC), I = () => {
1149
1149
  var R;
1150
1150
  return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((R = s == null ? void 0 : s.virtualScroll) != null && R.itemHeight) ? s.virtualScroll.itemHeight : zt;
1151
1151
  }, {
1152
1152
  containerRef: d,
1153
1153
  containerProps: b,
1154
- onScroll: O,
1154
+ onScroll: E,
1155
1155
  list: p,
1156
1156
  wrapperProps: g
1157
1157
  } = qe(n, {
1158
1158
  itemHeight: I(),
1159
1159
  // Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
1160
1160
  disabled: (s == null ? void 0 : s.multiple) || (s == null ? void 0 : s.virtualScroll) === !1 || (s == null ? void 0 : s.lazyLoadType) !== "none"
1161
- }), C = i(
1161
+ }), C = o(
1162
1162
  () => s.componentLoading !== void 0 || r.value ? "true" : void 0
1163
- ), D = i(
1163
+ ), D = o(
1164
1164
  () => r.value && s.loading || s.componentLoading ? "true" : "false"
1165
- ), L = i(
1165
+ ), L = o(
1166
1166
  () => r.value || s.componentLoading !== void 0 ? "polite" : void 0
1167
- ), T = i(
1167
+ ), T = o(
1168
1168
  () => ({
1169
1169
  "aria-label": s.ariaLabel,
1170
1170
  "aria-busy": D.value,
1171
1171
  "aria-atomic": C.value,
1172
1172
  "aria-live": L.value
1173
1173
  })
1174
- ), A = i(
1174
+ ), A = o(
1175
1175
  () => s.componentLoading ? {
1176
1176
  ...T.value,
1177
1177
  role: "alert"
@@ -1187,15 +1187,15 @@ const ve = Yt.exports, Ut = {
1187
1187
  const U = Math.round(R.scrollTop) + R.clientHeight >= R.scrollHeight;
1188
1188
  s.hasMoreItems && U && !s.loading && m();
1189
1189
  }), h = () => {
1190
- f.value ? y() : O();
1191
- }, k = i(() => {
1190
+ f.value ? y() : E();
1191
+ }, k = o(() => {
1192
1192
  var R;
1193
1193
  return ((R = s.items) == null ? void 0 : R.length) === 0;
1194
- }), B = i(
1194
+ }), B = o(
1195
1195
  () => s.lazyLoadType === V.BUTTON && s.hasMoreItems
1196
- ), G = i(
1196
+ ), G = o(
1197
1197
  () => s.loading ? be.LOADING : be.START
1198
- ), H = i(() => s.loading ? o("loading") : o("showMore")), X = i(() => ({
1198
+ ), H = o(() => s.loading ? i("loading") : i("showMore")), X = o(() => ({
1199
1199
  ...s.emptyState,
1200
1200
  variant: "condensed"
1201
1201
  })), F = {
@@ -1235,13 +1235,13 @@ const ve = Yt.exports, Ut = {
1235
1235
  var Wt = function() {
1236
1236
  var t;
1237
1237
  var e = this, l = e._self._c;
1238
- return e._self._setupProxy, l("div", e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (t = e.containerProps) == null ? void 0 : t.style, attrs: { id: e.id, tabindex: "-1", "data-testid": "listbox-container" }, on: { scroll: e.onListboxContainerScroll } }, "div", e.listboxContainerAttributes, !1), [l("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? l("div", { staticClass: "b-listbox__loading-filtered-items" }, [l("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? l("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g(e._b({ 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(n, o) {
1239
- return { key: o, fn: function(r) {
1240
- return [e._t(o, null, null, r)];
1238
+ return e._self._setupProxy, l("div", e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (t = e.containerProps) == null ? void 0 : t.style, attrs: { id: e.id, tabindex: "-1", "data-testid": "listbox-container" }, on: { scroll: e.onListboxContainerScroll } }, "div", e.listboxContainerAttributes, !1), [l("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? l("div", { staticClass: "b-listbox__loading-filtered-items" }, [l("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? l("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g(e._b({ 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(n, i) {
1239
+ return { key: i, fn: function(r) {
1240
+ return [e._t(i, null, null, r)];
1241
1241
  } };
1242
- })], null, !0) }, "bento-listbox-multi-select", e.ariaAttributes, !1), e.listboxListeners))] : [l("bento-listbox-single-select", e._g(e._b({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(n, o) {
1243
- return { key: o, fn: function(r) {
1244
- return [e._t(o, null, null, r)];
1242
+ })], null, !0) }, "bento-listbox-multi-select", e.ariaAttributes, !1), e.listboxListeners))] : [l("bento-listbox-single-select", e._g(e._b({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(n, i) {
1243
+ return { key: i, fn: function(r) {
1244
+ return [e._t(i, null, null, r)];
1245
1245
  } };
1246
1246
  })], null, !0) }, "bento-listbox-single-select", e.ariaAttributes, !1), e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(n) {
1247
1247
  return e.emitShowMore.apply(null, arguments);
@@ -1266,14 +1266,14 @@ const bs = jt.exports, te = (s, e) => {
1266
1266
  }
1267
1267
  return null;
1268
1268
  }, qt = (s) => typeof s == "object" && s !== null && "value" in s && "label" in s, fs = (s, e, l, t) => {
1269
- const n = E([]), o = E(), r = (b) => {
1270
- l.value ? o.value = b.map(({ value: O }) => O) : o.value = b.length > 0 ? b[0].value : null;
1269
+ const n = O([]), i = O(), r = (b) => {
1270
+ l.value ? i.value = b.map(({ value: E }) => E) : i.value = b.length > 0 ? b[0].value : null;
1271
1271
  }, f = (b) => {
1272
- l.value ? o.value = b.map(({ value: O, label: p }) => ({ value: O, label: p })) : o.value = b.length > 0 ? { value: b[0].value, label: b[0].label } : null;
1272
+ l.value ? i.value = b.map(({ value: E, label: p }) => ({ value: E, label: p })) : i.value = b.length > 0 ? { value: b[0].value, label: b[0].label } : null;
1273
1273
  }, I = (b) => {
1274
1274
  n.value = b, t != null && t.value ? f(b) : r(b);
1275
1275
  }, d = () => {
1276
- n.value = [], o.value = null;
1276
+ n.value = [], i.value = null;
1277
1277
  };
1278
1278
  return q(
1279
1279
  () => e.value,
@@ -1282,14 +1282,14 @@ const bs = jt.exports, te = (s, e) => {
1282
1282
  d();
1283
1283
  return;
1284
1284
  }
1285
- const b = !Array.isArray(e.value), O = [...n.value];
1285
+ const b = !Array.isArray(e.value), E = [...n.value];
1286
1286
  d();
1287
1287
  const p = (g) => {
1288
1288
  if (qt(g))
1289
1289
  n.value.push(g);
1290
1290
  else {
1291
1291
  let C = te(s.value, g);
1292
- C || (C = te(O, g)), C || (C = { value: g, label: g.toString() }), n.value.push(C);
1292
+ C || (C = te(E, g)), C || (C = { value: g, label: g.toString() }), n.value.push(C);
1293
1293
  }
1294
1294
  };
1295
1295
  if (b) {
@@ -1303,7 +1303,7 @@ const bs = jt.exports, te = (s, e) => {
1303
1303
  ), {
1304
1304
  // Values
1305
1305
  cachedSelectedListboxOptions: n,
1306
- cachedListboxSelectedValues: o,
1306
+ cachedListboxSelectedValues: i,
1307
1307
  // Methods
1308
1308
  resetCache: d,
1309
1309
  setCachedValues: I
@@ -1317,4 +1317,4 @@ export {
1317
1317
  ge as d,
1318
1318
  $t as u
1319
1319
  };
1320
- //# sourceMappingURL=use-cached-selected-values.CusB5KBl.js.map
1320
+ //# sourceMappingURL=use-cached-selected-values.DQPABFfG.js.map