@adyen/bento-vue2 1.60.0 → 1.60.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 (579) hide show
  1. package/dist/@types/components.d.ts +201 -0
  2. package/dist/@types/index.d.ts +17710 -0
  3. package/dist/@types/use-form-v4.d.ts +86 -0
  4. package/dist/accordion.js +6 -0
  5. package/dist/accordion.js.map +1 -0
  6. package/dist/action-bar.js +5 -0
  7. package/dist/action-bar.js.map +1 -0
  8. package/dist/alert.js +8 -0
  9. package/dist/alert.js.map +1 -0
  10. package/dist/assets/accordion-item.css +1 -0
  11. package/dist/assets/action-bar.css +1 -0
  12. package/dist/assets/alert.css +1 -0
  13. package/dist/assets/avatar.css +1 -0
  14. package/dist/assets/base-button.css +1 -0
  15. package/dist/assets/base-modal.css +1 -0
  16. package/dist/assets/button-actions-with-menu.css +1 -0
  17. package/dist/assets/button-actions.css +1 -0
  18. package/dist/assets/button.css +1 -0
  19. package/dist/assets/calendar.css +1 -0
  20. package/dist/assets/card.css +1 -0
  21. package/dist/assets/checkbox-group.css +1 -0
  22. package/dist/assets/checkbox-input.css +1 -0
  23. package/dist/assets/checkbox.css +1 -0
  24. package/dist/assets/chip.css +1 -0
  25. package/dist/assets/code-snippet.css +1 -0
  26. package/dist/assets/controls-group.css +1 -0
  27. package/dist/assets/copy.css +1 -0
  28. package/dist/assets/country.css +1 -0
  29. package/dist/assets/currency.css +1 -0
  30. package/dist/assets/dashboard-section.css +1 -0
  31. package/dist/assets/dashed-underline.css +1 -0
  32. package/dist/assets/data-grid-template.css +1 -0
  33. package/dist/assets/data-grid.css +1 -0
  34. package/dist/assets/date-picker.css +1 -0
  35. package/dist/assets/date-range-picker.css +1 -0
  36. package/dist/assets/date.css +1 -0
  37. package/dist/assets/dialog-page.css +1 -0
  38. package/dist/assets/divider.css +1 -0
  39. package/dist/assets/dropdown-default-textbox.css +1 -0
  40. package/dist/assets/dropdown-tag.css +1 -0
  41. package/dist/assets/dropdown.css +1 -0
  42. package/dist/assets/empty-state.css +1 -0
  43. package/dist/assets/error-message.css +1 -0
  44. package/dist/assets/file-uploader.css +1 -0
  45. package/dist/assets/filter-bar.css +1 -0
  46. package/dist/assets/fixed-scroller.css +1 -0
  47. package/dist/assets/focus-trap.css +1 -0
  48. package/dist/assets/footer-actions.css +1 -0
  49. package/dist/assets/form-layout-title.css +1 -0
  50. package/dist/assets/grid-layout.css +1 -0
  51. package/dist/assets/header-with-views.css +1 -0
  52. package/dist/assets/header.css +1 -0
  53. package/dist/assets/info-icon-with-popover.css +1 -0
  54. package/dist/assets/info-icon.css +1 -0
  55. package/dist/assets/input-field-password.css +1 -0
  56. package/dist/assets/input-field-phone-number.css +1 -0
  57. package/dist/assets/input-field.css +1 -0
  58. package/dist/assets/inspector.css +1 -0
  59. package/dist/assets/layout-row.css +1 -0
  60. package/dist/assets/link.css +1 -0
  61. package/dist/assets/listbox-option-tag.css +1 -0
  62. package/dist/assets/loading-indicator.css +1 -0
  63. package/dist/assets/main.css +1 -0
  64. package/dist/assets/menu.css +1 -0
  65. package/dist/assets/modal-fullscreen.css +1 -0
  66. package/dist/assets/pagination.css +1 -0
  67. package/dist/assets/payment-method.css +1 -0
  68. package/dist/assets/popover.css +1 -0
  69. package/dist/assets/popper-container.css +1 -0
  70. package/dist/assets/promo-banner.css +1 -0
  71. package/dist/assets/radio-group.css +1 -0
  72. package/dist/assets/radio-input.css +1 -0
  73. package/dist/assets/rich-text-editor.css +1 -0
  74. package/dist/assets/search-bar.css +1 -0
  75. package/dist/assets/secondary-nav.css +1 -0
  76. package/dist/assets/segmented-control.css +1 -0
  77. package/dist/assets/selection-card-group.css +1 -0
  78. package/dist/assets/sidepanel.css +1 -0
  79. package/dist/assets/status.css +1 -0
  80. package/dist/assets/step.css +1 -0
  81. package/dist/assets/structured-list-item.css +1 -0
  82. package/dist/assets/summary-grid.css +1 -0
  83. package/dist/assets/tabs.css +1 -0
  84. package/dist/assets/tag.css +1 -0
  85. package/dist/assets/teleport.css +1 -0
  86. package/dist/assets/textarea.css +1 -0
  87. package/dist/assets/timeline-item.css +1 -0
  88. package/dist/assets/toast.css +1 -0
  89. package/dist/assets/toggle-button.css +1 -0
  90. package/dist/assets/toggle.css +1 -0
  91. package/dist/assets/tooltip.css +1 -0
  92. package/dist/assets/tutorial.css +1 -0
  93. package/dist/assets/typography.css +1 -0
  94. package/dist/assets/use-cached-selected-values.css +1 -0
  95. package/dist/avatar.js +5 -0
  96. package/dist/avatar.js.map +1 -0
  97. package/dist/button.js +16 -0
  98. package/dist/button.js.map +1 -0
  99. package/dist/card.js +7 -0
  100. package/dist/card.js.map +1 -0
  101. package/dist/checkbox.js +11 -0
  102. package/dist/checkbox.js.map +1 -0
  103. package/dist/chip.js +5 -0
  104. package/dist/chip.js.map +1 -0
  105. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  106. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  107. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  108. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  109. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  110. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  111. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  112. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  113. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  114. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  115. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  116. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  117. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  118. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  119. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  120. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  121. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +7 -0
  122. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +1 -0
  123. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
  124. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
  125. package/dist/chunks/accordion-item.C4tyRMCt.js +116 -0
  126. package/dist/chunks/accordion-item.C4tyRMCt.js.map +1 -0
  127. package/dist/chunks/action-bar.CMqiD6vc.js +161 -0
  128. package/dist/chunks/action-bar.CMqiD6vc.js.map +1 -0
  129. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  130. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  131. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  132. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  133. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  134. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  135. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  136. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  137. package/dist/chunks/alert.Du9NfW-V.js +103 -0
  138. package/dist/chunks/alert.Du9NfW-V.js.map +1 -0
  139. package/dist/chunks/aria-label.CaUURpnB.js +13 -0
  140. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
  141. package/dist/chunks/avatar.BgwjpLQO.js +71 -0
  142. package/dist/chunks/avatar.BgwjpLQO.js.map +1 -0
  143. package/dist/chunks/base-button.-gx_u8Bd.js +86 -0
  144. package/dist/chunks/base-button.-gx_u8Bd.js.map +1 -0
  145. package/dist/chunks/base-modal.keys.C2PQXcE2.js +5 -0
  146. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +1 -0
  147. package/dist/chunks/base-modal.xA_DhHx9.js +373 -0
  148. package/dist/chunks/base-modal.xA_DhHx9.js.map +1 -0
  149. package/dist/chunks/bin.DuebwJYu.js +24 -0
  150. package/dist/chunks/bin.DuebwJYu.js.map +1 -0
  151. package/dist/chunks/button-actions-with-menu.S7i4V-8E.js +166 -0
  152. package/dist/chunks/button-actions-with-menu.S7i4V-8E.js.map +1 -0
  153. package/dist/chunks/button-actions.BFtzsfNe.js +194 -0
  154. package/dist/chunks/button-actions.BFtzsfNe.js.map +1 -0
  155. package/dist/chunks/button.BuD-IsW5.js +99 -0
  156. package/dist/chunks/button.BuD-IsW5.js.map +1 -0
  157. package/dist/chunks/calendar.DQiq_EoU.js +1167 -0
  158. package/dist/chunks/calendar.DQiq_EoU.js.map +1 -0
  159. package/dist/chunks/card.Bk7Lz1GS.js +123 -0
  160. package/dist/chunks/card.Bk7Lz1GS.js.map +1 -0
  161. package/dist/chunks/checkbox-group.CossCRls.js +152 -0
  162. package/dist/chunks/checkbox-group.CossCRls.js.map +1 -0
  163. package/dist/chunks/checkbox-input.Dr1GS2BZ.js +137 -0
  164. package/dist/chunks/checkbox-input.Dr1GS2BZ.js.map +1 -0
  165. package/dist/chunks/checkbox.DkDqMVeb.js +176 -0
  166. package/dist/chunks/checkbox.DkDqMVeb.js.map +1 -0
  167. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
  168. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
  169. package/dist/chunks/checkmark-small.C8T8ISN6.js +24 -0
  170. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
  171. package/dist/chunks/chevron-left.DOMTgGel.js +43 -0
  172. package/dist/chunks/chevron-left.DOMTgGel.js.map +1 -0
  173. package/dist/chunks/chevron-up.CSVyoaTy.js +43 -0
  174. package/dist/chunks/chevron-up.CSVyoaTy.js.map +1 -0
  175. package/dist/chunks/chip.bZEhHfIk.js +63 -0
  176. package/dist/chunks/chip.bZEhHfIk.js.map +1 -0
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +23 -0
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -0
  179. package/dist/chunks/code-snippet.BlYhf-Dt.js +259 -0
  180. package/dist/chunks/code-snippet.BlYhf-Dt.js.map +1 -0
  181. package/dist/chunks/codemirror.Zv80n3Z2.js +14628 -0
  182. package/dist/chunks/codemirror.Zv80n3Z2.js.map +1 -0
  183. package/dist/chunks/controls-group.C4CHrb6Y.js +81 -0
  184. package/dist/chunks/controls-group.C4CHrb6Y.js.map +1 -0
  185. package/dist/chunks/copy.Bod4H2Dk.js +129 -0
  186. package/dist/chunks/copy.Bod4H2Dk.js.map +1 -0
  187. package/dist/chunks/country.Df7erZov.js +94 -0
  188. package/dist/chunks/country.Df7erZov.js.map +1 -0
  189. package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
  190. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
  191. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js +24 -0
  192. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
  193. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
  194. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
  195. package/dist/chunks/cross-small.CZqsjZDz.js +24 -0
  196. package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
  197. package/dist/chunks/cross.CJ5EEL2c.js +24 -0
  198. package/dist/chunks/cross.CJ5EEL2c.js.map +1 -0
  199. package/dist/chunks/currency.B1F9YOIx.js +106 -0
  200. package/dist/chunks/currency.B1F9YOIx.js.map +1 -0
  201. package/dist/chunks/dashboard-section.Dx6eYon4.js +102 -0
  202. package/dist/chunks/dashboard-section.Dx6eYon4.js.map +1 -0
  203. package/dist/chunks/dashed-underline.CY5J4pZp.js +65 -0
  204. package/dist/chunks/dashed-underline.CY5J4pZp.js.map +1 -0
  205. package/dist/chunks/data-grid-template.CVl3PU0v.js +109 -0
  206. package/dist/chunks/data-grid-template.CVl3PU0v.js.map +1 -0
  207. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +5 -0
  208. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +1 -0
  209. package/dist/chunks/data-grid.BZaXKTLk.js +2782 -0
  210. package/dist/chunks/data-grid.BZaXKTLk.js.map +1 -0
  211. package/dist/chunks/date-input.BqBdAO1E.js +17 -0
  212. package/dist/chunks/date-input.BqBdAO1E.js.map +1 -0
  213. package/dist/chunks/date-picker.lrT6LXe-.js +235 -0
  214. package/dist/chunks/date-picker.lrT6LXe-.js.map +1 -0
  215. package/dist/chunks/date-range-picker.Djt5mYvh.js +977 -0
  216. package/dist/chunks/date-range-picker.Djt5mYvh.js.map +1 -0
  217. package/dist/chunks/date.dYFFEunA.js +987 -0
  218. package/dist/chunks/date.dYFFEunA.js.map +1 -0
  219. package/dist/chunks/debounce.DUTu11PS.js +10 -0
  220. package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
  221. package/dist/chunks/dialog-page.C5r6tM57.js +131 -0
  222. package/dist/chunks/dialog-page.C5r6tM57.js.map +1 -0
  223. package/dist/chunks/directive.Cbdox5VL.js +23 -0
  224. package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
  225. package/dist/chunks/divider.Cc4JFWG_.js +35 -0
  226. package/dist/chunks/divider.Cc4JFWG_.js.map +1 -0
  227. package/dist/chunks/dot.CnkXzRn3.js +24 -0
  228. package/dist/chunks/dot.CnkXzRn3.js.map +1 -0
  229. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js +348 -0
  230. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js.map +1 -0
  231. package/dist/chunks/dropdown-tag.CY3nZ50z.js +215 -0
  232. package/dist/chunks/dropdown-tag.CY3nZ50z.js.map +1 -0
  233. package/dist/chunks/dropdown.Cx-3TGBk.js +818 -0
  234. package/dist/chunks/dropdown.Cx-3TGBk.js.map +1 -0
  235. package/dist/chunks/empty-state.IvvHHQ35.js +151 -0
  236. package/dist/chunks/empty-state.IvvHHQ35.js.map +1 -0
  237. package/dist/chunks/error-message.BAE9B9-N.js +121 -0
  238. package/dist/chunks/error-message.BAE9B9-N.js.map +1 -0
  239. package/dist/chunks/es6.n1ewaW31.js +11 -0
  240. package/dist/chunks/es6.n1ewaW31.js.map +1 -0
  241. package/dist/chunks/events.CMzGybJJ.js +47 -0
  242. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  243. package/dist/chunks/expand.C263WARj.js +24 -0
  244. package/dist/chunks/expand.C263WARj.js.map +1 -0
  245. package/dist/chunks/file-uploader.E18P6eyS.js +1913 -0
  246. package/dist/chunks/file-uploader.E18P6eyS.js.map +1 -0
  247. package/dist/chunks/filter-bar.D6IL1UDu.js +2288 -0
  248. package/dist/chunks/filter-bar.D6IL1UDu.js.map +1 -0
  249. package/dist/chunks/fixed-scroller.D0a6q8_i.js +106 -0
  250. package/dist/chunks/fixed-scroller.D0a6q8_i.js.map +1 -0
  251. package/dist/chunks/focus-trap.C-wIQqpO.js +499 -0
  252. package/dist/chunks/focus-trap.C-wIQqpO.js.map +1 -0
  253. package/dist/chunks/footer-actions.BgpSnSSn.js +96 -0
  254. package/dist/chunks/footer-actions.BgpSnSSn.js.map +1 -0
  255. package/dist/chunks/form-layout-title.DBCY18f8.js +190 -0
  256. package/dist/chunks/form-layout-title.DBCY18f8.js.map +1 -0
  257. package/dist/chunks/form-layout.types.D3EKzbE7.js +5 -0
  258. package/dist/chunks/form-layout.types.D3EKzbE7.js.map +1 -0
  259. package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
  260. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
  261. package/dist/chunks/get-date-locale.BN8xEjY0.js +1735 -0
  262. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  263. package/dist/chunks/get-slot-text.BQS5Olxm.js +12 -0
  264. package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -0
  265. package/dist/chunks/grid-layout.HvTAa4to.js +76 -0
  266. package/dist/chunks/grid-layout.HvTAa4to.js.map +1 -0
  267. package/dist/chunks/header-with-views.DAdbhhG9.js +1549 -0
  268. package/dist/chunks/header-with-views.DAdbhhG9.js.map +1 -0
  269. package/dist/chunks/header.8SId1U5r.js +187 -0
  270. package/dist/chunks/header.8SId1U5r.js.map +1 -0
  271. package/dist/chunks/i18n.BQkEbtPM.js +31 -0
  272. package/dist/chunks/i18n.BQkEbtPM.js.map +1 -0
  273. package/dist/chunks/image.C2D2hKat.js +56 -0
  274. package/dist/chunks/image.C2D2hKat.js.map +1 -0
  275. package/dist/chunks/index.BDuTpjD8.js +40 -0
  276. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  277. package/dist/chunks/index.BdrLbvtJ.js +529 -0
  278. package/dist/chunks/index.BdrLbvtJ.js.map +1 -0
  279. package/dist/chunks/index.BxBB1rsx.js +15 -0
  280. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  281. package/dist/chunks/index.Cl4_42j5.js +8 -0
  282. package/dist/chunks/index.Cl4_42j5.js.map +1 -0
  283. package/dist/chunks/index.DD7TppDb.js +10 -0
  284. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  285. package/dist/chunks/info-icon-with-popover.XZqkxPsB.js +71 -0
  286. package/dist/chunks/info-icon-with-popover.XZqkxPsB.js.map +1 -0
  287. package/dist/chunks/info-icon.C1xOlhYj.js +41 -0
  288. package/dist/chunks/info-icon.C1xOlhYj.js.map +1 -0
  289. package/dist/chunks/info.4d_mJHvT.js +24 -0
  290. package/dist/chunks/info.4d_mJHvT.js.map +1 -0
  291. package/dist/chunks/input-field-password.lK0Im1eg.js +251 -0
  292. package/dist/chunks/input-field-password.lK0Im1eg.js.map +1 -0
  293. package/dist/chunks/input-field-phone-number.BnjBqUKg.js +3097 -0
  294. package/dist/chunks/input-field-phone-number.BnjBqUKg.js.map +1 -0
  295. package/dist/chunks/input-field.B8HxtNIv.js +152 -0
  296. package/dist/chunks/input-field.B8HxtNIv.js.map +1 -0
  297. package/dist/chunks/inspector.CegHqvEW.js +117 -0
  298. package/dist/chunks/inspector.CegHqvEW.js.map +1 -0
  299. package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
  300. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
  301. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  302. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  303. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  304. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  305. package/dist/chunks/keyboard-navigation.pB8weElW.js +66 -0
  306. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
  307. package/dist/chunks/layout-row.C_F2wX6d.js +87 -0
  308. package/dist/chunks/layout-row.C_F2wX6d.js.map +1 -0
  309. package/dist/chunks/link.D0P79Toh.js +95 -0
  310. package/dist/chunks/link.D0P79Toh.js.map +1 -0
  311. package/dist/chunks/listbox-option-tag.CczGPhWH.js +44 -0
  312. package/dist/chunks/listbox-option-tag.CczGPhWH.js.map +1 -0
  313. package/dist/chunks/loading-indicator.z8COalOc.js +48 -0
  314. package/dist/chunks/loading-indicator.z8COalOc.js.map +1 -0
  315. package/dist/chunks/menu.CT0SIn4v.js +601 -0
  316. package/dist/chunks/menu.CT0SIn4v.js.map +1 -0
  317. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +5 -0
  318. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +1 -0
  319. package/dist/chunks/modal-fullscreen.tofT1h0P.js +202 -0
  320. package/dist/chunks/modal-fullscreen.tofT1h0P.js.map +1 -0
  321. package/dist/chunks/modal.CiYtGu6u.js +445 -0
  322. package/dist/chunks/modal.CiYtGu6u.js.map +1 -0
  323. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  324. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  325. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  326. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  327. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  328. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  329. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  330. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  331. package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
  332. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
  333. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  334. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  335. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  336. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  337. package/dist/chunks/pagination.B-EP9Lkq.js +338 -0
  338. package/dist/chunks/pagination.B-EP9Lkq.js.map +1 -0
  339. package/dist/chunks/payment-method.Cx4nPDtE.js +76 -0
  340. package/dist/chunks/payment-method.Cx4nPDtE.js.map +1 -0
  341. package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
  342. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
  343. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  344. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  345. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  346. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  347. package/dist/chunks/popover.COaHa4ES.js +295 -0
  348. package/dist/chunks/popover.COaHa4ES.js.map +1 -0
  349. package/dist/chunks/popper-container.DIFqmRsp.js +1393 -0
  350. package/dist/chunks/popper-container.DIFqmRsp.js.map +1 -0
  351. package/dist/chunks/promo-banner.DJpA7Whg.js +70 -0
  352. package/dist/chunks/promo-banner.DJpA7Whg.js.map +1 -0
  353. package/dist/chunks/radio-group.CzsbH4_F.js +229 -0
  354. package/dist/chunks/radio-group.CzsbH4_F.js.map +1 -0
  355. package/dist/chunks/radio-input.uJAhxKRs.js +90 -0
  356. package/dist/chunks/radio-input.uJAhxKRs.js.map +1 -0
  357. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  358. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  359. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  360. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  361. package/dist/chunks/refresh.Bc9FzGjJ.js +24 -0
  362. package/dist/chunks/refresh.Bc9FzGjJ.js.map +1 -0
  363. package/dist/chunks/resize.Bqks3WUm.js +15 -0
  364. package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
  365. package/dist/chunks/rich-text-editor.C4NdjtLA.js +6203 -0
  366. package/dist/chunks/rich-text-editor.C4NdjtLA.js.map +1 -0
  367. package/dist/chunks/search-bar.B4u_IgiI.js +97 -0
  368. package/dist/chunks/search-bar.B4u_IgiI.js.map +1 -0
  369. package/dist/chunks/search.DLtglc02.js +24 -0
  370. package/dist/chunks/search.DLtglc02.js.map +1 -0
  371. package/dist/chunks/secondary-nav.EROJ_sJQ.js +112 -0
  372. package/dist/chunks/secondary-nav.EROJ_sJQ.js.map +1 -0
  373. package/dist/chunks/segmented-control.B-uxKqMN.js +112 -0
  374. package/dist/chunks/segmented-control.B-uxKqMN.js.map +1 -0
  375. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  376. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  377. package/dist/chunks/selection-card-group.CnvREAh5.js +299 -0
  378. package/dist/chunks/selection-card-group.CnvREAh5.js.map +1 -0
  379. package/dist/chunks/show.e4LEpZKG.js +43 -0
  380. package/dist/chunks/show.e4LEpZKG.js.map +1 -0
  381. package/dist/chunks/sidepanel.3EBWM8JV.js +210 -0
  382. package/dist/chunks/sidepanel.3EBWM8JV.js.map +1 -0
  383. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +5 -0
  384. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +1 -0
  385. package/dist/chunks/status.types.p_TCvoo0.js +36 -0
  386. package/dist/chunks/status.types.p_TCvoo0.js.map +1 -0
  387. package/dist/chunks/step.CuOpi-Ye.js +217 -0
  388. package/dist/chunks/step.CuOpi-Ye.js.map +1 -0
  389. package/dist/chunks/structured-list-item.rOTJM0uc.js +87 -0
  390. package/dist/chunks/structured-list-item.rOTJM0uc.js.map +1 -0
  391. package/dist/chunks/success.DhioLvPD.js +5 -0
  392. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  393. package/dist/chunks/success.nNwxJRBS.js +5 -0
  394. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  395. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +6 -0
  396. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
  397. package/dist/chunks/summary-grid.types.Bg1Y7i-F.js +301 -0
  398. package/dist/chunks/summary-grid.types.Bg1Y7i-F.js.map +1 -0
  399. package/dist/chunks/tabs.DX_Gq12z.js +205 -0
  400. package/dist/chunks/tabs.DX_Gq12z.js.map +1 -0
  401. package/dist/chunks/tabs.keys.Bc2pSKRw.js +7 -0
  402. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +1 -0
  403. package/dist/chunks/tag.DDjyf2hd.js +44 -0
  404. package/dist/chunks/tag.DDjyf2hd.js.map +1 -0
  405. package/dist/chunks/teleport.BV6zrDjA.js +128 -0
  406. package/dist/chunks/teleport.BV6zrDjA.js.map +1 -0
  407. package/dist/chunks/textarea.0PapD8Nl.js +200 -0
  408. package/dist/chunks/textarea.0PapD8Nl.js.map +1 -0
  409. package/dist/chunks/timeline-item.IFw76Qeh.js +386 -0
  410. package/dist/chunks/timeline-item.IFw76Qeh.js.map +1 -0
  411. package/dist/chunks/toast.B2u2W_TQ.js +171 -0
  412. package/dist/chunks/toast.B2u2W_TQ.js.map +1 -0
  413. package/dist/chunks/toggle-button.ChDbeBZ8.js +83 -0
  414. package/dist/chunks/toggle-button.ChDbeBZ8.js.map +1 -0
  415. package/dist/chunks/toggle.Q52IIKfi.js +121 -0
  416. package/dist/chunks/toggle.Q52IIKfi.js.map +1 -0
  417. package/dist/chunks/tooltip.DyZIyMZN.js +189 -0
  418. package/dist/chunks/tooltip.DyZIyMZN.js.map +1 -0
  419. package/dist/chunks/truncate.BfIl_-71.js +8 -0
  420. package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
  421. package/dist/chunks/tutorial.suIRmXta.js +348 -0
  422. package/dist/chunks/tutorial.suIRmXta.js.map +1 -0
  423. package/dist/chunks/typography.J1v_SPG3.js +87 -0
  424. package/dist/chunks/typography.J1v_SPG3.js.map +1 -0
  425. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  426. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  427. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  428. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  429. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js +52 -0
  430. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js.map +1 -0
  431. package/dist/chunks/use-cached-selected-values.9OnD_j5F.js +1177 -0
  432. package/dist/chunks/use-cached-selected-values.9OnD_j5F.js.map +1 -0
  433. package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
  434. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
  435. package/dist/chunks/use-country-items.HFnjuDsG.js +30 -0
  436. package/dist/chunks/use-country-items.HFnjuDsG.js.map +1 -0
  437. package/dist/chunks/use-country-phon-code.DVgE19zT.js +5610 -0
  438. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +1 -0
  439. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +13 -0
  440. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -0
  441. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
  442. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
  443. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +12 -0
  444. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +1 -0
  445. package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
  446. package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -0
  447. package/dist/chunks/warning-filled.Cd0kVWwa.js +24 -0
  448. package/dist/chunks/warning-filled.Cd0kVWwa.js.map +1 -0
  449. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  450. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  451. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  452. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  453. package/dist/click-outside.js +5 -0
  454. package/dist/click-outside.js.map +1 -0
  455. package/dist/code-snippet.js +8 -0
  456. package/dist/code-snippet.js.map +1 -0
  457. package/dist/country.js +12 -0
  458. package/dist/country.js.map +1 -0
  459. package/dist/currency.js +6 -0
  460. package/dist/currency.js.map +1 -0
  461. package/dist/dashboard-template.js +6 -0
  462. package/dist/dashboard-template.js.map +1 -0
  463. package/dist/dashed-underline.js +5 -0
  464. package/dist/dashed-underline.js.map +1 -0
  465. package/dist/data-grid-template.js +5 -0
  466. package/dist/data-grid-template.js.map +1 -0
  467. package/dist/data-grid.js +11 -0
  468. package/dist/data-grid.js.map +1 -0
  469. package/dist/date-picker.js +8 -0
  470. package/dist/date-picker.js.map +1 -0
  471. package/dist/date-range-picker.js +8 -0
  472. package/dist/date-range-picker.js.map +1 -0
  473. package/dist/date.js +6 -0
  474. package/dist/date.js.map +1 -0
  475. package/dist/divider.js +5 -0
  476. package/dist/divider.js.map +1 -0
  477. package/dist/dropdown.js +16 -0
  478. package/dist/dropdown.js.map +1 -0
  479. package/dist/empty-state.js +8 -0
  480. package/dist/empty-state.js.map +1 -0
  481. package/dist/file-uploader.js +5 -0
  482. package/dist/file-uploader.js.map +1 -0
  483. package/dist/filter-bar.js +8 -0
  484. package/dist/filter-bar.js.map +1 -0
  485. package/dist/focus-trap.js +5 -0
  486. package/dist/focus-trap.js.map +1 -0
  487. package/dist/fonts/fonts.css +2 -0
  488. package/dist/form-layout.js +8 -0
  489. package/dist/form-layout.js.map +1 -0
  490. package/dist/header-with-views.js +5 -0
  491. package/dist/header-with-views.js.map +1 -0
  492. package/dist/header.js +5 -0
  493. package/dist/header.js.map +1 -0
  494. package/dist/image.js +7 -0
  495. package/dist/image.js.map +1 -0
  496. package/dist/index.js +372 -0
  497. package/dist/index.js.map +1 -0
  498. package/dist/info-icon.js +5 -0
  499. package/dist/info-icon.js.map +1 -0
  500. package/dist/input-field-password.js +10 -0
  501. package/dist/input-field-password.js.map +1 -0
  502. package/dist/input-field-phone-number.js +5 -0
  503. package/dist/input-field-phone-number.js.map +1 -0
  504. package/dist/input-field.js +10 -0
  505. package/dist/input-field.js.map +1 -0
  506. package/dist/inspector.js +7 -0
  507. package/dist/inspector.js.map +1 -0
  508. package/dist/internal.js +43 -0
  509. package/dist/internal.js.map +1 -0
  510. package/dist/layout.js +6 -0
  511. package/dist/layout.js.map +1 -0
  512. package/dist/link.js +6 -0
  513. package/dist/link.js.map +1 -0
  514. package/dist/loading-indicator.js +6 -0
  515. package/dist/loading-indicator.js.map +1 -0
  516. package/dist/menu.js +6 -0
  517. package/dist/menu.js.map +1 -0
  518. package/dist/modal-fullscreen.js +6 -0
  519. package/dist/modal-fullscreen.js.map +1 -0
  520. package/dist/modal.js +14 -0
  521. package/dist/modal.js.map +1 -0
  522. package/dist/pagination.js +5 -0
  523. package/dist/pagination.js.map +1 -0
  524. package/dist/payment-method.js +7 -0
  525. package/dist/payment-method.js.map +1 -0
  526. package/dist/popover.js +6 -0
  527. package/dist/popover.js.map +1 -0
  528. package/dist/popper-container.js +9 -0
  529. package/dist/popper-container.js.map +1 -0
  530. package/dist/promo-banner.js +7 -0
  531. package/dist/promo-banner.js.map +1 -0
  532. package/dist/radio-group.js +9 -0
  533. package/dist/radio-group.js.map +1 -0
  534. package/dist/rich-text-editor.js +5 -0
  535. package/dist/rich-text-editor.js.map +1 -0
  536. package/dist/search-bar.js +9 -0
  537. package/dist/search-bar.js.map +1 -0
  538. package/dist/secondary-nav.js +5 -0
  539. package/dist/secondary-nav.js.map +1 -0
  540. package/dist/segmented-control.js +7 -0
  541. package/dist/segmented-control.js.map +1 -0
  542. package/dist/selection-card.js +7 -0
  543. package/dist/selection-card.js.map +1 -0
  544. package/dist/sidepanel.js +7 -0
  545. package/dist/sidepanel.js.map +1 -0
  546. package/dist/status.js +6 -0
  547. package/dist/status.js.map +1 -0
  548. package/dist/stepper.js +8 -0
  549. package/dist/stepper.js.map +1 -0
  550. package/dist/structured-list.js +6 -0
  551. package/dist/structured-list.js.map +1 -0
  552. package/dist/styles/bento-dark.css +2055 -0
  553. package/dist/styles/bento-light.css +2054 -0
  554. package/dist/styles/bento.css +2054 -0
  555. package/dist/styles/legacy.css +2209 -0
  556. package/dist/styles/styleguide.css +2109 -0
  557. package/dist/styles/utility.css +987 -0
  558. package/dist/summary-grid.js +12 -0
  559. package/dist/summary-grid.js.map +1 -0
  560. package/dist/tabs.js +6 -0
  561. package/dist/tabs.js.map +1 -0
  562. package/dist/tag.js +6 -0
  563. package/dist/tag.js.map +1 -0
  564. package/dist/textarea.js +5 -0
  565. package/dist/textarea.js.map +1 -0
  566. package/dist/timeline.js +10 -0
  567. package/dist/timeline.js.map +1 -0
  568. package/dist/toast.js +5 -0
  569. package/dist/toast.js.map +1 -0
  570. package/dist/toggle.js +7 -0
  571. package/dist/toggle.js.map +1 -0
  572. package/dist/tutorial.js +5 -0
  573. package/dist/tutorial.js.map +1 -0
  574. package/dist/typography.js +8 -0
  575. package/dist/typography.js.map +1 -0
  576. package/dist/use-form-v4.js +8300 -0
  577. package/dist/use-form-v4.js.map +1 -0
  578. package/dist/web-types.json +15200 -0
  579. package/package.json +6 -6
@@ -0,0 +1,1177 @@
1
+ import { computed as c, ref as O, onMounted as de, onUnmounted as ye, watch as be, defineComponent as P, toRef as w, useSlots as Ce } from "vue";
2
+ import { B as G } from "./typography.J1v_SPG3.js";
3
+ import { B as Se } from "./loading-indicator.z8COalOc.js";
4
+ import { B as he } from "./empty-state.IvvHHQ35.js";
5
+ import { u as X } from "./i18n.BQkEbtPM.js";
6
+ import { d as xe } from "./debounce.DUTu11PS.js";
7
+ import "./index.Cl4_42j5.js";
8
+ import { B as J } from "./checkbox.DkDqMVeb.js";
9
+ import { B as Ee } from "./chip.bZEhHfIk.js";
10
+ import { C as Le, a as Oe } from "./chevron-up.CSVyoaTy.js";
11
+ import { B as k, a as Z } from "./keyboard-navigation.pB8weElW.js";
12
+ import { n as D } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
+ import { d as Te, e as ce } from "./button-actions.BFtzsfNe.js";
14
+ /* empty css */
15
+ import { o as Ae } from "./resize.Bqks3WUm.js";
16
+ import "../assets/use-cached-selected-values.css";
17
+ const fe = (s, e, t, l) => {
18
+ const o = c(
19
+ () => {
20
+ var b, v;
21
+ return !!((b = s.value) != null && b.length) && ((v = s.value) == null ? void 0 : v.length) === e.value.length;
22
+ }
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;
26
+ });
27
+ return {
28
+ isAllSelected: o,
29
+ isIndeterminate: n,
30
+ toggleSelectAll: (b) => {
31
+ b ? t() : l();
32
+ }
33
+ };
34
+ };
35
+ function Ie(s, { disabled: e, itemHeight: t, overscan: l = 5, prefixHeight: o }) {
36
+ const n = O(null), a = O([]), b = O(0), v = O(0), r = O(0);
37
+ let m;
38
+ const S = c(() => {
39
+ const d = typeof t == "number" ? s.value.length * t : s.value.reduce((L, _, x) => L + t(x), 0), C = typeof t == "number" ? b.value * t : s.value.slice(0, b.value).reduce((L, _, x) => L + t(x), 0);
40
+ return {
41
+ style: {
42
+ marginTop: `${C}px`,
43
+ height: `${d - C}px`
44
+ }
45
+ };
46
+ }), E = () => {
47
+ const d = (o == null ? void 0 : o.value) ?? 0, C = Math.max(n.value.scrollTop - d, 0);
48
+ if (typeof t == "number")
49
+ return Math.floor(C / t);
50
+ let L = 0, _ = 0;
51
+ for (let x = 0; x < s.value.length; x += 1) {
52
+ const B = t(x);
53
+ if (L += B, L >= C) {
54
+ _ = x;
55
+ break;
56
+ }
57
+ }
58
+ return _;
59
+ }, A = () => {
60
+ if (r.value = n.value.clientHeight, typeof t == "number")
61
+ return Math.ceil(r.value / t);
62
+ const d = b.value ?? 0;
63
+ let C = 0, L = 0;
64
+ for (let _ = d; _ < s.value.length; _ += 1) {
65
+ const x = t(_);
66
+ if (C += x, L = _, C > r.value)
67
+ break;
68
+ }
69
+ return L - d;
70
+ }, T = () => {
71
+ if (n.value) {
72
+ const d = A();
73
+ b.value = E(), v.value = Math.min(b.value + d + l, s.value.length), a.value = s.value.slice(b.value, v.value);
74
+ }
75
+ }, I = () => {
76
+ T();
77
+ };
78
+ e || (de(() => {
79
+ n.value && (r.value = n.value.clientHeight, m = Ae(n.value, ({ clientHeight: d }) => {
80
+ r.value = d, T();
81
+ }), T());
82
+ }), ye(() => {
83
+ m == null || m.disconnect();
84
+ }), be(
85
+ () => s.value,
86
+ () => {
87
+ T();
88
+ }
89
+ ));
90
+ const f = {
91
+ ref: n,
92
+ style: { overflowY: "auto" }
93
+ };
94
+ return e ? {
95
+ containerRef: n,
96
+ containerProps: f,
97
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
98
+ onScroll: () => {
99
+ },
100
+ list: s
101
+ } : {
102
+ containerRef: n,
103
+ containerProps: f,
104
+ onScroll: I,
105
+ list: a,
106
+ wrapperProps: S
107
+ };
108
+ }
109
+ var i = /* @__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))(i || {}), F = /* @__PURE__ */ ((s) => (s.AUTOMATIC = "automatic", s.BUTTON = "button", s.NONE = "none", s))(F || {});
110
+ const Re = P({
111
+ name: "bento-listbox-static-category",
112
+ components: {
113
+ BentoTypography: G
114
+ },
115
+ props: {
116
+ /**
117
+ * Category label text
118
+ */
119
+ categoryLabel: {
120
+ type: String,
121
+ required: !0
122
+ }
123
+ }
124
+ });
125
+ var Be = function() {
126
+ var e = this, t = e._self._c;
127
+ return e._self._setupProxy, t("div", { staticClass: "b-listbox-single-select-category" }, [t("bento-typography", { staticClass: "b-listbox-single-select-category__label-text", attrs: { variant: "caption", el: "span" } }, [e._v(" " + e._s(e.categoryLabel) + " ")]), t("div", [e._t("default")], 2)], 1);
128
+ }, ke = [], De = /* @__PURE__ */ D(
129
+ Re,
130
+ Be,
131
+ ke,
132
+ !1,
133
+ null,
134
+ "4aa8cc6e"
135
+ );
136
+ const Ne = De.exports, Me = P({
137
+ name: "bento-listbox-option",
138
+ props: {
139
+ /**
140
+ * Setting this property to true will disable the option.
141
+ */
142
+ disabled: { type: Boolean, default: !1 },
143
+ /**
144
+ * Indicates if the value is selected. Only one element can be selected at a time.
145
+ */
146
+ selected: { type: Boolean, default: !1 }
147
+ },
148
+ emits: [i.CLICK, i.ENTER, i.SPACE, i.TAB],
149
+ setup(s, { emit: e }) {
150
+ const t = c(() => ({
151
+ "b-listbox-option--disabled": s.disabled,
152
+ "b-listbox-option--selected": s.selected
153
+ }));
154
+ return {
155
+ // Enums
156
+ BentoKeyboardNavigationKeyDownEvent: k,
157
+ BentoListboxEvent: i,
158
+ // Values
159
+ conditionalClasses: t,
160
+ // Events
161
+ onClick: (n) => {
162
+ e(i.CLICK, n);
163
+ },
164
+ onOptionSelected: (n, a) => {
165
+ e(n, a);
166
+ }
167
+ };
168
+ }
169
+ });
170
+ var Pe = function() {
171
+ var e = this, t = e._self._c;
172
+ return e._self._setupProxy, t("label", 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);
178
+ }] } }, "label", e.$attrs, !1), [e._t("default")], 2);
179
+ }, we = [], $e = /* @__PURE__ */ D(
180
+ Me,
181
+ Pe,
182
+ we,
183
+ !1,
184
+ null,
185
+ "d7fb415c"
186
+ );
187
+ const V = $e.exports;
188
+ let re = 0;
189
+ const Fe = {
190
+ beforeCreate() {
191
+ this.uuid = re.toString(), re += 1;
192
+ }
193
+ };
194
+ var Ge = function() {
195
+ var e = this, t = e._self._c;
196
+ return t("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"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
197
+ }, Ue = [], ze = /* @__PURE__ */ D(
198
+ Fe,
199
+ Ge,
200
+ Ue,
201
+ !1,
202
+ null,
203
+ null
204
+ );
205
+ const Ve = ze.exports, Ye = P({
206
+ name: "bento-listbox-single-select-option",
207
+ components: {
208
+ BentoListboxOption: V,
209
+ BentoTypography: G,
210
+ CheckmarkIcon: Ve
211
+ },
212
+ props: {
213
+ /**
214
+ * Setting this property to true will disable the option.
215
+ */
216
+ disabled: { type: Boolean, default: !1 },
217
+ /**
218
+ * The option item that contains all the option item's data.
219
+ * @type {BentoListboxOptionItem}
220
+ */
221
+ option: {
222
+ type: Object,
223
+ required: !0
224
+ },
225
+ /**
226
+ * Indicates if the value is selected. Only one element can be selected at a time.
227
+ */
228
+ selected: { type: Boolean, default: !1 }
229
+ },
230
+ emits: [i.ENTER, i.SELECT, i.SPACE, i.TAB],
231
+ setup(s, { emit: e }) {
232
+ const t = (a) => {
233
+ s.disabled || e(a, s.option);
234
+ }, l = c(() => s.disabled ? !0 : null), o = c(() => s.selected ? !0 : null), n = c(() => s.disabled ? -1 : 0);
235
+ return {
236
+ // Values
237
+ ariaDisabled: l,
238
+ ariaSelected: o,
239
+ tabIndex: n,
240
+ // Enums
241
+ BentoListboxEvent: i,
242
+ // Events
243
+ onOptionSelected: t
244
+ };
245
+ }
246
+ });
247
+ var We = function() {
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) {
250
+ return e.onOptionSelected(e.BentoListboxEvent.SELECT);
251
+ }, "enter-pressed": function(l) {
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) {
256
+ return e.onOptionSelected(e.BentoListboxEvent.TAB);
257
+ } } }, [e._t("default", function() {
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)];
259
+ }, null, e.option), t("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [t("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
260
+ }, Ke = [], qe = /* @__PURE__ */ D(
261
+ Ye,
262
+ We,
263
+ Ke,
264
+ !1,
265
+ null,
266
+ "5a5ff36a"
267
+ );
268
+ const je = qe.exports, ve = ({ items: s, isOptionDisabled: e, hasStaticCategories: t }, l) => {
269
+ const o = c(
270
+ () => t.value ? s.value.flatMap((f) => f.items) : s.value
271
+ ), n = c(() => o.value.length - 1), a = O(0);
272
+ de(() => {
273
+ e && (a.value = s.value.findIndex((f) => !e(f)));
274
+ });
275
+ const b = (f) => {
276
+ var L, _;
277
+ const C = ((_ = (L = s.value[f]) == null ? void 0 : L.items) == null ? void 0 : _.length) ? s.value[f].items.every((x) => e(x)) : e(s.value[f]);
278
+ return !e || !!e && C;
279
+ }, v = (f) => {
280
+ switch (f) {
281
+ case "increase":
282
+ a.value += 1;
283
+ break;
284
+ case "decrease":
285
+ a.value -= 1;
286
+ break;
287
+ }
288
+ }, r = ({ edgeCaseItem: f }, d, C) => {
289
+ a.value !== f && (v(C), b(a.value) && d(), l(a.value));
290
+ }, m = (f) => {
291
+ I(f), r(
292
+ {
293
+ edgeCaseItem: n.value
294
+ },
295
+ m,
296
+ "increase"
297
+ /* INCREASE */
298
+ );
299
+ }, S = (f) => {
300
+ I(f), r(
301
+ {
302
+ edgeCaseItem: 0
303
+ },
304
+ S,
305
+ "decrease"
306
+ /* DECREASE */
307
+ );
308
+ }, E = () => {
309
+ a.value = 0, b(a.value) ? m() : l(a.value);
310
+ }, A = () => {
311
+ a.value = n.value, b(a.value) ? S() : l(a.value);
312
+ }, T = (f) => {
313
+ a.value = f;
314
+ }, I = (f) => {
315
+ var d;
316
+ (d = f == null ? void 0 : f.detail) == null || d.preventDefault();
317
+ };
318
+ return {
319
+ moveToFirstElement: E,
320
+ moveToLastElement: A,
321
+ moveToNextElement: m,
322
+ moveToPreviousElement: S,
323
+ setListboxFocusedIndex: T,
324
+ preventDefault: I,
325
+ focusedIndex: a
326
+ };
327
+ }, He = P({
328
+ name: "bento-listbox-single-select",
329
+ components: {
330
+ BentoListboxSingleSelectCategory: Ne,
331
+ BentoListboxSingleSelectOption: je
332
+ },
333
+ directives: { BentoKeyboardNavigationDirective: Z },
334
+ inheritAttrs: !1,
335
+ props: {
336
+ /**
337
+ * Function that allows the options to be disabled
338
+ *
339
+ * @type {BentoListboxIsOptionDisabled}
340
+ * @param {BentoListboxOptionItem} option - listbox option object
341
+ * @param {string} option.label - Option's label text
342
+ * @param {string|number} option.value - Option's value
343
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
344
+ */
345
+ isOptionDisabled: {
346
+ type: Function,
347
+ default: () => !1
348
+ },
349
+ /**
350
+ * The option elements to populate the listbox with.
351
+ * It must be an array of {@see BentoListboxOptionItem }.
352
+ *
353
+ * @property {string} value.label - Text to be displayed in the option
354
+ * @property {string,number} value.value - Value of the option
355
+ */
356
+ items: {
357
+ type: Array,
358
+ required: !0
359
+ },
360
+ /**
361
+ * The `input` value.
362
+ * Providing an empty string will select no options.
363
+ * Set to an empty string `''` if you don't want any of the available options to be selected
364
+ */
365
+ selectedValue: {
366
+ type: Array,
367
+ default: void 0
368
+ },
369
+ /**
370
+ * If enabled, dropdown will display non-selectable, static categories
371
+ */
372
+ staticCategories: { type: Boolean, default: !1 }
373
+ },
374
+ emits: [i.SELECT, i.ENTER, i.SPACE, i.TAB],
375
+ setup(s, { emit: e, expose: t, slots: l }) {
376
+ const o = O(null), n = O([]), a = c(() => {
377
+ var d;
378
+ return !!((d = s.selectedValue) != null && d.length) && s.selectedValue.at(0);
379
+ }), b = c(() => !!s.items.some(({ items: d }) => !!d)), v = (d) => (C) => {
380
+ e(d, [C]);
381
+ }, r = (d) => {
382
+ var C;
383
+ (C = o.value.querySelectorAll('[role="option"]')[d]) == null || C.focus();
384
+ }, {
385
+ moveToNextElement: m,
386
+ moveToPreviousElement: S,
387
+ moveToFirstElement: E,
388
+ moveToLastElement: A,
389
+ setListboxFocusedIndex: T
390
+ } = ve(
391
+ {
392
+ items: w(s, "items"),
393
+ isOptionDisabled: s.isOptionDisabled,
394
+ hasStaticCategories: w(s, "staticCategories")
395
+ },
396
+ r
397
+ ), I = {
398
+ [k.ARROW_UP]: S,
399
+ [k.ARROW_DOWN]: m,
400
+ [k.HOME]: E,
401
+ [k.END]: A
402
+ }, f = {
403
+ [i.SELECT]: v(i.SELECT),
404
+ [i.SPACE]: v(i.SPACE),
405
+ [i.TAB]: v(i.TAB),
406
+ [i.ENTER]: v(i.ENTER)
407
+ };
408
+ return t({
409
+ /**
410
+ * Reference for a single listbox item.
411
+ * Required for keyboard navigation in dropdown as $children is removed in vue@3
412
+ */
413
+ listboxItemRef: n,
414
+ /**
415
+ * Method to set the index of the item to be focused on
416
+ * Used for focus management to be kept in-sync with parent e.g. dropdowns
417
+ */
418
+ setListboxFocusedIndex: T
419
+ }), {
420
+ // Enums
421
+ BentoListboxEvent: i,
422
+ // Values
423
+ listboxRef: o,
424
+ listboxItemRef: n,
425
+ selectedItem: a,
426
+ slots: l,
427
+ // Computed
428
+ hasCategories: b,
429
+ // Methods
430
+ onOptionSelected: v,
431
+ // Keyboard navigation
432
+ listboxListeners: I,
433
+ listboxOptionListeners: f
434
+ };
435
+ }
436
+ });
437
+ var Xe = function() {
438
+ var e = this, t = e._self._c;
439
+ 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) {
440
+ return t("bento-listbox-single-select-category", { key: l.value, attrs: { "category-label": l.label, role: "group" } }, e._l(l.items, function(o) {
441
+ 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, a) {
442
+ return { key: a, fn: function(b) {
443
+ return [e._t(a, null, null, b)];
444
+ } };
445
+ })], null, !0) }, e.listboxOptionListeners));
446
+ }), 1);
447
+ }) : e._l(e.items, function(l) {
448
+ 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) {
449
+ return { key: n, fn: function(a) {
450
+ return [e._t(n, null, null, a)];
451
+ } };
452
+ })], null, !0) }, e.listboxOptionListeners));
453
+ })], 2);
454
+ }, Je = [], Ze = /* @__PURE__ */ D(
455
+ He,
456
+ Xe,
457
+ Je,
458
+ !1,
459
+ null,
460
+ null
461
+ );
462
+ const Qe = Ze.exports;
463
+ var j = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(j || {}), z = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.UNSELECT_CATEGORY = "unselect-category", s))(z || {});
464
+ const et = {
465
+ "en-US": {
466
+ categoryClosed: "{category} closed",
467
+ categoryOpened: "{category} opened"
468
+ }
469
+ }, tt = P({
470
+ i18n: { messages: et },
471
+ name: "bento-listbox-multi-select-category",
472
+ components: {
473
+ BentoCheckbox: J,
474
+ BentoTypography: G,
475
+ BentoListboxOption: V,
476
+ ChevronDownIcon: Oe,
477
+ ChevronUpIcon: Le
478
+ },
479
+ props: {
480
+ /**
481
+ * The option elements to populate the listbox with.
482
+ * It must be an array of {@see BentoListboxOptionItem }.
483
+ *
484
+ * @property {string} value.label - Text to be displayed in the option
485
+ * @property {string,number} value.value - Value of the option
486
+ * @property {BentoListboxOptionItem} value.items - Category items list
487
+ */
488
+ category: {
489
+ type: Object,
490
+ required: !0
491
+ },
492
+ /**
493
+ * Function that allows the options to be disabled
494
+ *
495
+ * @type {BentoListboxIsOptionDisabled}
496
+ * @param {BentoListboxOptionItem} option - listbox option object
497
+ * @param {string} option.label - Option's label text
498
+ * @param {string|number} option.value - Option's value
499
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
500
+ */
501
+ isOptionDisabled: {
502
+ type: [Function],
503
+ default: () => !1
504
+ },
505
+ /**
506
+ * The `input` value.
507
+ * Providing an empty array will select no options.
508
+ */
509
+ selectedItemsList: {
510
+ type: Array,
511
+ default: () => []
512
+ },
513
+ /**
514
+ * If enabled, dropdown will display non-selectable, static categories
515
+ */
516
+ staticCategories: { type: Boolean, default: !1 },
517
+ /**
518
+ * Category's tabindex
519
+ */
520
+ tabindex: { type: Number, default: -1 }
521
+ },
522
+ emits: [z.SELECT_CATEGORY, z.UNSELECT_CATEGORY],
523
+ setup(s, { emit: e }) {
524
+ const t = O(!1), { t: l } = X(), o = (_) => s.isOptionDisabled ? s.isOptionDisabled(_) : !1, n = c(
525
+ () => s.category.items.every((_) => o(_))
526
+ ), a = w(s, "staticCategories"), b = c(() => t.value || s.staticCategories), v = c(() => ({
527
+ [`b-listbox-multi-select-category--${j.DISABLED}`]: n.value,
528
+ [`b-listbox-multi-select-category--${j.STATIC_CATEGORY}`]: s.staticCategories
529
+ })), r = (_) => {
530
+ _.preventDefault(), t.value = !t.value;
531
+ }, m = (_) => {
532
+ var $;
533
+ const x = o(_), B = (($ = s.selectedItemsList) == null ? void 0 : $.includes(_.value)) || !1;
534
+ return { isDisabled: x, isPreSelected: B };
535
+ }, S = c(
536
+ () => s.category.items.filter((_) => {
537
+ const { isDisabled: x, isPreSelected: B } = m(_);
538
+ return x && B || !x;
539
+ })
540
+ ), E = c(
541
+ () => {
542
+ var _;
543
+ return (_ = S.value) == null ? void 0 : _.filter(
544
+ ({ value: x }) => {
545
+ var B;
546
+ return (B = s.selectedItemsList) == null ? void 0 : B.includes(x);
547
+ }
548
+ );
549
+ }
550
+ ), A = c(() => {
551
+ const _ = t.value ? "categoryOpened" : "categoryClosed";
552
+ return l(_, { category: s.category.label });
553
+ }), T = c(
554
+ () => ({
555
+ el: "span",
556
+ variant: s.staticCategories ? "caption" : "body"
557
+ })
558
+ ), I = () => {
559
+ e(z.SELECT_CATEGORY);
560
+ }, f = () => {
561
+ e(z.UNSELECT_CATEGORY);
562
+ }, { isAllSelected: d, isIndeterminate: C, toggleSelectAll: L } = fe(
563
+ E,
564
+ S,
565
+ I,
566
+ f
567
+ );
568
+ return {
569
+ // Values
570
+ chevronTitle: A,
571
+ conditionalClass: v,
572
+ hasAllPropsDisabled: n,
573
+ isOpen: t,
574
+ isAllSelected: d,
575
+ isIndeterminate: C,
576
+ isStaticCategory: a,
577
+ // Computed
578
+ showItemChildren: b,
579
+ categoryLabelProps: T,
580
+ // Methods
581
+ toggleOpen: r,
582
+ toggleSelectAll: L
583
+ };
584
+ }
585
+ });
586
+ var st = function() {
587
+ var e = this, t = e._self._c;
588
+ return e._self._setupProxy, t("div", [t("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass }, [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: e.tabindex }, on: { "update:model-value": e.toggleSelectAll } }), 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) {
589
+ return e.toggleOpen.apply(null, arguments);
590
+ } } }, [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);
591
+ }, lt = [], nt = /* @__PURE__ */ D(
592
+ tt,
593
+ st,
594
+ lt,
595
+ !1,
596
+ null,
597
+ "09983823"
598
+ );
599
+ const ot = nt.exports;
600
+ var M = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", s.UNSELECT_CATEGORY = "unselect-category", s))(M || {});
601
+ const at = P({
602
+ name: "listbox-multi-select-options",
603
+ components: {
604
+ BentoCheckbox: J,
605
+ BentoListboxOption: V,
606
+ BentoTypography: G,
607
+ ListboxMultiSelectCategory: ot
608
+ },
609
+ props: {
610
+ /**
611
+ * Indicates if the items listed are inside a category
612
+ * so they can be padded to right by one level in recursion.
613
+ * Items of categories are automatically defined as "categoryItems"
614
+ */
615
+ categoryItems: { type: Boolean, default: !1 },
616
+ /**
617
+ * Current focused option index
618
+ */
619
+ focusedIndex: { type: Number, default: 0 },
620
+ /**
621
+ * Function that allows the options to be disabled
622
+ *
623
+ * @type {BentoListboxIsOptionDisabled}
624
+ * @param {BentoListboxOptionItem} option - listbox option object
625
+ * @param {string} option.label - Option's label text
626
+ * @param {string|number} option.value - Option's value
627
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
628
+ */
629
+ isOptionDisabled: {
630
+ type: Function,
631
+ default: () => !1
632
+ },
633
+ /**
634
+ * The option elements to populate the listbox with.
635
+ * It must be an array of {@see BentoListboxOptionItem }.
636
+ *
637
+ * @property {string} value.label - Text to be displayed in the option
638
+ * @property {string,number} value.value - Value of the option
639
+ */
640
+ items: {
641
+ type: Array,
642
+ required: !0
643
+ },
644
+ /**
645
+ * Indicates if the elements options are inside a multi-level category
646
+ */
647
+ isMultiLevel: { type: Boolean, default: !1 },
648
+ /**
649
+ * Flag that indicates that an external search it's being made
650
+ * to filter out the items inside the the multi-select listbox
651
+ *
652
+ * If enabled, hides the "Select all" checkbox in "multiple" mode.
653
+ */
654
+ searching: { type: Boolean, default: !1 },
655
+ /**
656
+ * List of selected items.
657
+ * Providing an empty array will select no options.
658
+ */
659
+ selectedItemsList: {
660
+ type: Array,
661
+ default: () => []
662
+ },
663
+ /**
664
+ * If enabled, dropdown will display non-selectable, static categories
665
+ */
666
+ staticCategories: { type: Boolean, default: !1 }
667
+ },
668
+ emits: [
669
+ M.TOGGLE_CHECKBOX_SELECTION,
670
+ M.SELECT_CATEGORY,
671
+ M.UNSELECT_CATEGORY
672
+ ],
673
+ setup(s, { emit: e }) {
674
+ const t = (r) => {
675
+ e(M.TOGGLE_CHECKBOX_SELECTION, r);
676
+ }, l = (r) => !!r.items, o = (r) => {
677
+ const m = s.isMultiLevel && s.searching;
678
+ return r.description && (!s.isMultiLevel || m);
679
+ }, n = (r) => r.items ? !!r.items.find((m) => s.selectedItemsList.includes(m.value)) : s.selectedItemsList.includes(r.value), a = (r, m) => {
680
+ if (l(m))
681
+ return e(r ? M.SELECT_CATEGORY : M.UNSELECT_CATEGORY, m);
682
+ t(m.value);
683
+ };
684
+ return {
685
+ // Values
686
+ conditionalClasses: c(() => ({
687
+ "b-listbox-multi-select-options__static-category-option": s.staticCategories,
688
+ "b-listbox-multi-select-options__category-option": s.categoryItems
689
+ })),
690
+ // Methods
691
+ isOptionSelected: n,
692
+ shouldShowDescription: o,
693
+ toggleCheckboxSelection: t,
694
+ selectSearch: a,
695
+ computedTabindex: (r) => r + 1 === s.focusedIndex ? 0 : -1,
696
+ // Enums
697
+ BentoListboxEvent: i,
698
+ ListboxMultiSelectOptionsEvent: M
699
+ };
700
+ }
701
+ });
702
+ var it = function() {
703
+ var e = this, t = e._self._c;
704
+ return e._self._setupProxy, t("div", e._l(e.items, function(l, o) {
705
+ 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 } }, [t("bento-checkbox", { attrs: { "model-value": e.isOptionSelected(l), "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value, tabindex: e.computedTabindex(o) }, on: { "update:model-value": (n) => e.selectSearch(n, l) } }), e._t("default", function() {
706
+ 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)];
707
+ }, 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) {
708
+ return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, l);
709
+ }, "unselect-category": function(n) {
710
+ return e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, l);
711
+ } } }, [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 } }, [t("bento-checkbox", { attrs: { "model-value": e.selectedItemsList, "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value, tabindex: e.computedTabindex(o) }, on: { "update:model-value": function(n) {
712
+ return e.toggleCheckboxSelection(l);
713
+ } } }), e._t("default", function() {
714
+ 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)];
715
+ }, null, l)], 2)]], 2);
716
+ }), 0);
717
+ }, ct = [], rt = /* @__PURE__ */ D(
718
+ at,
719
+ it,
720
+ ct,
721
+ !1,
722
+ null,
723
+ "18d7cecf"
724
+ );
725
+ const ut = rt.exports, dt = (s) => {
726
+ const e = c(() => {
727
+ var l;
728
+ return !!((l = s.value) != null && l.find(({ items: o }) => !!o));
729
+ }), t = c(() => {
730
+ var l;
731
+ 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;
732
+ });
733
+ return {
734
+ isMultiLevelSelect: e,
735
+ flattenedItemsList: t
736
+ };
737
+ }, bt = {
738
+ "en-US": {
739
+ allSelected: "All selected ({total})",
740
+ numberOfTotalSelected: "{number} of {total} selected",
741
+ numbersSelected: "{number} selected",
742
+ selectAll: "Select all ({total})"
743
+ }
744
+ }, ft = { i18n: { messages: bt } }, vt = /* @__PURE__ */ P({
745
+ ...ft,
746
+ __name: "listbox-multi-select",
747
+ props: {
748
+ hasMoreItems: { type: Boolean, default: !1 },
749
+ isOptionDisabled: { default: () => () => !1 },
750
+ items: null,
751
+ lazyLoadType: { default: "none" },
752
+ searching: { type: Boolean, default: !1 },
753
+ selectedValues: null,
754
+ staticCategories: { type: Boolean, default: !1 }
755
+ },
756
+ emits: ["select"],
757
+ setup(s, { emit: e }) {
758
+ const t = s, { t: l } = X(), o = Ce(), n = O(null), a = O(null), b = O(null), v = c(() => t.selectedValues.map(({ value: u }) => u)), { isMultiLevelSelect: r, flattenedItemsList: m } = dt(w(t, "items")), S = (u) => {
759
+ var h;
760
+ const g = t.isOptionDisabled(u), p = ((h = v.value) == null ? void 0 : h.includes(u.value)) || !1;
761
+ return { isDisabled: g, isPreSelected: p };
762
+ }, E = c(() => {
763
+ if (t.searching && r)
764
+ return t.items;
765
+ const u = m.value.filter((g) => {
766
+ const { isDisabled: p, isPreSelected: h } = S(g);
767
+ return p && h || !p;
768
+ });
769
+ return t.selectedValues.forEach((g) => {
770
+ u.find((p) => p.value === g.value) || u.push(g);
771
+ }), u;
772
+ }), A = c(
773
+ () => {
774
+ var u;
775
+ return (u = E.value) == null ? void 0 : u.filter((g) => {
776
+ var p;
777
+ return g.items && r.value && t.searching ? g.items.filter(
778
+ (y) => (t.selectedValues ?? []).includes(y.value)
779
+ ).length === g.items.length : (p = v.value) == null ? void 0 : p.includes(g.value);
780
+ });
781
+ }
782
+ ), T = () => r.value && !t.searching ? m.value.length : t.items.length, I = c(() => {
783
+ var h;
784
+ const u = E.value.length, g = T(), p = ((h = A.value) == null ? void 0 : h.length) || 0;
785
+ return p === 0 ? l("selectAll", { total: u }) : p === g ? l("allSelected", { total: g }) : p <= g ? l("numberOfTotalSelected", { number: p, total: g }) : l("numbersSelected", { number: p });
786
+ }), f = (u) => {
787
+ const g = (h) => {
788
+ const { isDisabled: y, isPreSelected: N } = S(h);
789
+ return y && N || !y;
790
+ }, p = u.filter(g).filter((h) => !v.value.includes(h.value));
791
+ e("select", [...t.selectedValues, ...p]);
792
+ }, d = (u) => {
793
+ const g = (y) => {
794
+ const { isDisabled: N, isPreSelected: pe } = S(y);
795
+ return !(N && pe);
796
+ }, p = u.filter(g).map(({ value: y }) => y), h = t.selectedValues.filter((y) => !(p != null && p.includes(y.value)));
797
+ e("select", h);
798
+ }, C = () => {
799
+ f(m.value);
800
+ }, L = () => {
801
+ d(m.value);
802
+ }, { isAllSelected: _, isIndeterminate: x, toggleSelectAll: B } = fe(
803
+ A,
804
+ E,
805
+ C,
806
+ L
807
+ ), $ = (u) => {
808
+ f(u.items);
809
+ }, Y = (u) => {
810
+ d(u.items);
811
+ }, W = (u, g) => {
812
+ let p = !1;
813
+ const h = t.selectedValues.filter(({ value: y }) => g.value === y ? (p = !0, !1) : !0);
814
+ p || h.push(g), e(u, h);
815
+ }, K = c(() => {
816
+ if (!r.value)
817
+ return t.selectedValues;
818
+ const u = (y) => v.value.includes(y.value), g = (y) => !t.staticCategories && y.every((N) => u(N));
819
+ return t.items.flatMap(
820
+ (y) => y.items && !g(y.items) ? y.items : y
821
+ ).filter((y) => y.items ? !0 : u(y));
822
+ }), R = c(() => {
823
+ var p, h, y, N;
824
+ const u = ["automatic", "button"].includes(t.lazyLoadType), g = ((p = t.selectedValues) == null ? void 0 : p.length) > 0 && ((h = A.value) == null ? void 0 : h.length) !== ((y = m.value) == null ? void 0 : y.length);
825
+ return u && t.hasMoreItems ? !!((N = t.selectedValues) != null && N.length) : g;
826
+ }), U = c(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), Q = c(
827
+ () => n.value ? [n.value] : []
828
+ ), ee = c(
829
+ () => {
830
+ var u, g;
831
+ return (g = (u = b.value) == null ? void 0 : u.$children) != null && g.length ? b.value.$children : [];
832
+ }
833
+ ), te = c(() => ({ label: I, value: _ })), se = c(() => [te, ...w(t, "items").value]), le = (u) => {
834
+ var h;
835
+ const g = [...Q.value, ...ee.value], p = g[u].$el;
836
+ p.tagName === "LABEL" ? p.focus() : (h = p.querySelector("label")) == null || h.focus(), g[u].$el.focus();
837
+ }, {
838
+ moveToNextElement: ne,
839
+ moveToPreviousElement: oe,
840
+ moveToFirstElement: ae,
841
+ moveToLastElement: ie,
842
+ preventDefault: q,
843
+ focusedIndex: me
844
+ } = ve(
845
+ {
846
+ items: O(se),
847
+ isOptionDisabled: t.isOptionDisabled,
848
+ hasStaticCategories: w(t, "staticCategories")
849
+ },
850
+ le
851
+ ), _e = {
852
+ [k.ARROW_UP]: (u) => oe(u),
853
+ [k.ARROW_DOWN]: (u) => ne(u),
854
+ [k.HOME]: ae,
855
+ [k.END]: ie
856
+ }, ge = {
857
+ [k.ARROW_UP]: q,
858
+ [k.ARROW_DOWN]: q
859
+ };
860
+ return { __sfc: !0, props: t, emit: e, t: l, slots: o, selectAllListboxItemsRef: n, selectedListboxItemsRef: a, listboxItemsRef: b, selectedItemsList: v, isMultiLevelSelect: r, flattenedItemsList: m, optionStates: S, enabledItems: E, visibleSelectedList: A, calculateTotalItems: T, selectAllCheckboxText: I, selectAll: f, unselectAll: d, selectAllItems: C, unselectAllItems: L, isAllSelected: _, isIndeterminate: x, toggleSelectAll: B, selectAllCategory: $, unselectAllCategory: Y, toggleCheckboxSelection: W, selectedOptions: K, showSelectedItems: R, showSelectAllCheckbox: U, computedSelectAllListboxItemsRefs: Q, computedlistboxItems: ee, computedselectAllItemRefs: te, computedItems: se, focusItem: le, moveToNextElement: ne, moveToPreviousElement: oe, moveToFirstElement: ae, moveToLastElement: ie, preventDefault: q, focusedIndex: me, listboxListeners: _e, chipsSectionListeners: ge, BentoCheckbox: J, BentoTypography: G, BentoChip: Ee, BentoListboxOption: V, ListboxMultiSelectOptions: ut, vBentoKeyboardNavigationDirective: Z, BentoListboxEvent: i };
861
+ }
862
+ });
863
+ var mt = function() {
864
+ var e = this, t = e._self._c, l = e._self._setupProxy;
865
+ return t("div", { 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) {
866
+ 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) {
867
+ o.items ? l.unselectAllCategory(o) : l.toggleCheckboxSelection("select", o);
868
+ } } })], 1);
869
+ }), 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" }, [t(l.BentoCheckbox, { attrs: { "aria-label": l.selectAllCheckboxText, "model-value": l.isAllSelected, indeterminate: l.isIndeterminate, tabindex: l.focusedIndex === 0 ? 0 : -1 }, on: { "update:model-value": l.toggleSelectAll } }), 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) {
870
+ return l.toggleCheckboxSelection("select", o);
871
+ }, "select-category": l.selectAllCategory, "unselect-category": l.unselectAllCategory, "space-pressed": function(o) {
872
+ return l.toggleCheckboxSelection(l.BentoListboxEvent.SPACE, o);
873
+ }, "tab-pressed": function(o) {
874
+ return l.toggleCheckboxSelection(l.BentoListboxEvent.TAB, o);
875
+ }, "enter-pressed": function(o) {
876
+ return l.toggleCheckboxSelection(l.BentoListboxEvent.ENTER, o);
877
+ } }, scopedSlots: e._u([e._l(l.slots, function(o, n) {
878
+ return { key: n, fn: function(a) {
879
+ return [e._t(n, null, null, a)];
880
+ } };
881
+ })], null, !0) })], 1)]);
882
+ }, _t = [], gt = /* @__PURE__ */ D(
883
+ vt,
884
+ mt,
885
+ _t,
886
+ !1,
887
+ null,
888
+ "57c7482e"
889
+ );
890
+ const ue = gt.exports, pt = {
891
+ "en-US": {
892
+ loading: "Loading",
893
+ showMore: "Show more"
894
+ },
895
+ "ja-JP": {
896
+ loading: "読み込み中",
897
+ showMore: "表示内容を増やす"
898
+ },
899
+ "pt-BR": {
900
+ loading: "Carregando",
901
+ showMore: "Mostrar mais"
902
+ }
903
+ }, yt = 36, Ct = P({
904
+ name: "bento-listbox",
905
+ components: {
906
+ BentoEmptyState: he,
907
+ BentoListboxSingleSelect: Qe,
908
+ BentoListboxMultiSelect: ue,
909
+ BentoTypography: G,
910
+ BentoLoadingIndicator: Se,
911
+ BentoLoadingButton: Te
912
+ },
913
+ directives: { BentoKeyboardNavigationDirective: Z },
914
+ i18n: { messages: pt },
915
+ props: {
916
+ /**
917
+ * Defines a string value that labels an interactive element.
918
+ */
919
+ ariaLabel: { type: String, default: null },
920
+ /**
921
+ * Empty state props that will be used with the inner empty state component to be displayed when no search results are found.
922
+ */
923
+ emptyState: {
924
+ type: Object,
925
+ default: void 0
926
+ },
927
+ /**
928
+ * Indicates whether there are more items to load
929
+ */
930
+ hasMoreItems: { type: Boolean, default: !1 },
931
+ /**
932
+ * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
933
+ */
934
+ id: { type: String, required: !0 },
935
+ /**
936
+ * Function that allows the options to be disabled
937
+ *
938
+ * @type {BentoListboxIsOptionDisabled}
939
+ * @param {BentoListboxOptionItem} option - Listbox option object
940
+ * @param {string} option.label - Option's label text
941
+ * @param {string|number} option.value - Option's value
942
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
943
+ */
944
+ isOptionDisabled: {
945
+ type: Function,
946
+ default: () => {
947
+ }
948
+ },
949
+ /**
950
+ * The option elements to populate the listbox with.
951
+ * It must be an array of {@see BentoListboxOptionItem }
952
+ * * @property {string} value.label - Text to be displayed in the option
953
+ * * @property {string,number} value.value - Value of the option
954
+ */
955
+ items: {
956
+ type: Array,
957
+ required: !0
958
+ },
959
+ /**
960
+ * Indicates if new options are lazy loading.
961
+ */
962
+ loading: { type: Boolean, default: !1 },
963
+ /**
964
+ * The type of `Lazy Load`.
965
+ * Type "automatic" will enable infinite scrolling
966
+ * Type "button" will enable lazy loading with "Show more" button
967
+ */
968
+ lazyLoadType: {
969
+ type: String,
970
+ default: F.NONE,
971
+ validator: (s) => Object.values(F).includes(s)
972
+ },
973
+ /**
974
+ * Indicates the listbox is loading filtered items.
975
+ */
976
+ componentLoading: { type: Boolean, default: !1 },
977
+ /**
978
+ * If enabled, the user will be able to select multiple items.
979
+ */
980
+ multiple: { type: Boolean, default: !1 },
981
+ /**
982
+ * If enabled, dropdown will display non-selectable, static categories
983
+ */
984
+ staticCategories: { type: Boolean, default: !1 },
985
+ /**
986
+ * Messaged displayed when no items are listed in the listbox
987
+ */
988
+ noResultsMessage: { type: String, required: !0 },
989
+ /**
990
+ * Flag that indicates that an external search it's being made
991
+ * to filter out the items inside the the multi-select listbox
992
+ *
993
+ * If enabled, hides the "Select all" checkbox in "multiple" mode.
994
+ */
995
+ searching: ue.props.searching,
996
+ /**
997
+ * The `input` value.
998
+ * Providing an empty string or empty array will select no options.
999
+ * Set to an empty string `''` if you don't want any of the available options to be selected for single select
1000
+ */
1001
+ selectedValue: {
1002
+ type: Array,
1003
+ default: () => []
1004
+ },
1005
+ /**
1006
+ * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
1007
+ * The itemHeight function is used to calculate the height of rendered item given it's index.
1008
+ */
1009
+ virtualScroll: {
1010
+ type: [Boolean, Object],
1011
+ default: !1
1012
+ }
1013
+ },
1014
+ emits: [
1015
+ i.SELECT,
1016
+ i.SPACE,
1017
+ i.SHOW_MORE,
1018
+ i.ENTER,
1019
+ i.ESCAPE,
1020
+ i.TAB
1021
+ ],
1022
+ setup(s, { emit: e, slots: t }) {
1023
+ const l = O([]), o = w(s, "items"), { t: n } = X(), a = c(() => s.lazyLoadType !== F.AUTOMATIC), b = c(() => s.lazyLoadType === F.AUTOMATIC), v = () => {
1024
+ var R;
1025
+ return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((R = s == null ? void 0 : s.virtualScroll) != null && R.itemHeight) ? s.virtualScroll.itemHeight : yt;
1026
+ }, {
1027
+ containerRef: r,
1028
+ containerProps: m,
1029
+ onScroll: S,
1030
+ list: E,
1031
+ wrapperProps: A
1032
+ } = Ie(o, {
1033
+ itemHeight: v(),
1034
+ // Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
1035
+ disabled: (s == null ? void 0 : s.multiple) || (s == null ? void 0 : s.virtualScroll) === !1 || (s == null ? void 0 : s.lazyLoadType) !== "none"
1036
+ }), T = c(
1037
+ () => s.componentLoading !== void 0 || a.value ? "true" : void 0
1038
+ ), I = c(
1039
+ () => a.value && s.loading || s.componentLoading ? "true" : "false"
1040
+ ), f = c(
1041
+ () => a.value || s.componentLoading !== void 0 ? "polite" : void 0
1042
+ ), d = (R) => (U) => {
1043
+ e(R, U);
1044
+ }, C = () => {
1045
+ e(i.SHOW_MORE);
1046
+ }, L = xe(() => {
1047
+ const R = r.value;
1048
+ if (!R)
1049
+ return;
1050
+ const U = Math.round(R.scrollTop) + R.clientHeight >= R.scrollHeight;
1051
+ s.hasMoreItems && U && !s.loading && C();
1052
+ }), _ = () => {
1053
+ b.value ? L() : S();
1054
+ }, x = c(() => {
1055
+ var R;
1056
+ return ((R = s.items) == null ? void 0 : R.length) === 0;
1057
+ }), B = c(
1058
+ () => s.lazyLoadType === F.BUTTON && s.hasMoreItems
1059
+ ), $ = c(
1060
+ () => s.loading ? ce.LOADING : ce.START
1061
+ ), Y = c(() => s.loading ? n("loading") : n("showMore")), W = c(() => ({
1062
+ ...s.emptyState,
1063
+ variant: "condensed"
1064
+ })), K = {
1065
+ [i.SELECT]: d(i.SELECT),
1066
+ [i.SPACE]: d(i.SPACE),
1067
+ [i.TAB]: d(i.TAB),
1068
+ [i.ENTER]: d(i.ENTER)
1069
+ };
1070
+ return {
1071
+ // Refs
1072
+ listboxRef: r,
1073
+ listboxItemRef: l,
1074
+ // a11y
1075
+ ariaAtomic: T,
1076
+ ariaBusy: I,
1077
+ ariaLive: f,
1078
+ // Values
1079
+ containerProps: m,
1080
+ isSearchResultEmpty: x,
1081
+ limitedEmptyStateProps: W,
1082
+ loadingButtonState: $,
1083
+ slots: t,
1084
+ shouldDisplayShowMoreButton: B,
1085
+ showMoreButtonText: Y,
1086
+ virtualisedItems: E,
1087
+ wrapperProps: A,
1088
+ // Enums
1089
+ BentoKeyboardNavigationKeyDownEvent: k,
1090
+ BentoListboxEvent: i,
1091
+ // Methods
1092
+ onListboxContainerScroll: _,
1093
+ onOptionSelected: d,
1094
+ emitShowMore: C,
1095
+ listboxListeners: K
1096
+ };
1097
+ }
1098
+ });
1099
+ var St = function() {
1100
+ var l;
1101
+ var e = this, t = e._self._c;
1102
+ 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) {
1103
+ return { key: n, fn: function(a) {
1104
+ return [e._t(n, null, null, a)];
1105
+ } };
1106
+ })], null, !0) }, e.listboxListeners))] : [t("bento-listbox-single-select", e._g({ 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(o, n) {
1107
+ return { key: n, fn: function(a) {
1108
+ return [e._t(n, null, null, a)];
1109
+ } };
1110
+ })], null, !0) }, e.listboxListeners))], e.shouldDisplayShowMoreButton ? t("div", { staticClass: "b-listbox__lazy-load" }, [t("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(o) {
1111
+ return e.emitShowMore.apply(null, arguments);
1112
+ } } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? t("div", { staticClass: "b-listbox__lazy-load" }, [t("bento-loading-indicator")], 1) : e._e()]], 2)]);
1113
+ }, ht = [], xt = /* @__PURE__ */ D(
1114
+ Ct,
1115
+ St,
1116
+ ht,
1117
+ !1,
1118
+ null,
1119
+ "37a9ab16"
1120
+ );
1121
+ const Ft = xt.exports, H = (s, e) => {
1122
+ for (const t of s) {
1123
+ if (t.value === e)
1124
+ return t;
1125
+ if (t.items) {
1126
+ const l = H(t.items, e);
1127
+ if (l)
1128
+ return l;
1129
+ }
1130
+ }
1131
+ return null;
1132
+ }, Gt = (s, e, t) => {
1133
+ const l = O([]), o = O(), n = (v) => {
1134
+ t.value ? o.value = v.map(({ value: r }) => r) : o.value = v.length > 0 ? v[0].value : null;
1135
+ }, a = (v) => {
1136
+ l.value = v, n(v);
1137
+ }, b = () => {
1138
+ l.value = [], o.value = null;
1139
+ };
1140
+ return be(
1141
+ () => e.value,
1142
+ () => {
1143
+ if (!e.value && e.value !== 0) {
1144
+ b();
1145
+ return;
1146
+ }
1147
+ const v = !Array.isArray(e.value), r = [...l.value];
1148
+ b();
1149
+ const m = (S) => {
1150
+ let E = H(s.value, S);
1151
+ E || (E = H(r, S)), E || (E = { value: S, label: S.toString() }), l.value.push(E);
1152
+ };
1153
+ if (v) {
1154
+ const S = e.value;
1155
+ m(S), n(l.value);
1156
+ return;
1157
+ }
1158
+ e.value.forEach(m), n(l.value);
1159
+ },
1160
+ { immediate: !0 }
1161
+ ), {
1162
+ // Values
1163
+ cachedSelectedListboxOptions: l,
1164
+ cachedListboxSelectedValues: o,
1165
+ // Methods
1166
+ resetCache: b,
1167
+ setCachedValues: a
1168
+ };
1169
+ };
1170
+ export {
1171
+ F as B,
1172
+ i as a,
1173
+ Ft as b,
1174
+ Gt as c,
1175
+ dt as u
1176
+ };
1177
+ //# sourceMappingURL=use-cached-selected-values.9OnD_j5F.js.map