@adyen/bento-vue2 1.6.1 → 1.7.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 (291) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +3 -1
  3. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +43 -0
  4. package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +4 -4
  6. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
  7. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +290 -281
  8. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +9 -0
  9. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  10. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  11. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +5 -5
  12. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +4 -3
  14. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +53 -70
  15. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
  16. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +20 -2
  17. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +18 -0
  18. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +20 -2
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
  21. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +45 -27
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  23. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +21 -3
  24. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +24 -6
  25. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +21 -3
  26. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +21 -3
  27. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +21 -3
  28. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -0
  29. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +22 -4
  30. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -2
  31. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +234 -12
  32. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -5
  33. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +1 -1
  34. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -1
  35. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -0
  36. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
  37. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -0
  38. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +3 -3
  39. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +1 -1
  40. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  41. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +1 -1
  42. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +21 -0
  43. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +18 -0
  44. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +19 -0
  45. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  46. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +22 -1
  47. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +94 -8
  48. package/dist/@types/packages/vue2/src/components/internal/teleport/index.d.ts +1 -0
  49. package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +50 -0
  50. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +1 -1
  51. package/dist/@types/packages/vue2/src/components/menu/menu.keys.d.ts +1 -0
  52. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +15 -11
  53. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +9 -0
  54. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +9 -0
  55. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +1 -0
  56. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
  57. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -5
  58. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +10 -5
  59. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +21 -0
  60. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +21 -5
  61. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
  62. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -2
  63. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  64. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.keys.d.ts +1 -0
  65. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +3 -0
  66. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -0
  67. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +9 -0
  68. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -0
  69. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +2 -0
  70. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -5
  71. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -3
  72. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -2
  73. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +13 -13
  74. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/index.d.ts +1 -0
  75. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +12 -0
  76. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/index.d.ts +1 -0
  77. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +226 -0
  78. package/dist/@types/packages/vue2/src/components/tutorial/index.d.ts +2 -0
  79. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +13 -0
  80. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +16 -0
  81. package/dist/@types/packages/vue2/src/composables/index.d.ts +5 -2
  82. package/dist/@types/packages/vue2/src/composables/use-click-outside/use-click-outside.d.ts +3 -0
  83. package/dist/@types/packages/vue2/src/composables/use-form-validate/index.d.ts +2 -0
  84. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +12 -0
  85. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -0
  86. package/dist/@types/packages/vue2/src/composables/use-virtual-list/index.d.ts +2 -0
  87. package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +15 -0
  88. package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +20 -0
  89. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  90. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +2 -2
  91. package/dist/@types/packages/vue2/src/types/listbox.d.ts +12 -0
  92. package/dist/accordion.js +41 -32
  93. package/dist/accordion.js.map +1 -1
  94. package/dist/action-bar.js +191 -0
  95. package/dist/action-bar.js.map +1 -0
  96. package/dist/alert.js +3 -3
  97. package/dist/assets/base-modal.css +1 -1
  98. package/dist/assets/button-actions-with-menu.css +1 -0
  99. package/dist/assets/button.css +1 -1
  100. package/dist/assets/calendar.css +1 -1
  101. package/dist/assets/checkbox.css +1 -1
  102. package/dist/assets/checkmark.css +1 -0
  103. package/dist/assets/chevron-left.css +1 -0
  104. package/dist/assets/dropdown-default-textbox.css +1 -1
  105. package/dist/assets/dropdown.css +1 -1
  106. package/dist/assets/fixed-scroller.css +1 -0
  107. package/dist/assets/index.css +1 -1
  108. package/dist/assets/index10.css +1 -1
  109. package/dist/assets/index11.css +1 -1
  110. package/dist/assets/index12.css +1 -1
  111. package/dist/assets/index13.css +1 -1
  112. package/dist/assets/index14.css +1 -1
  113. package/dist/assets/index15.css +1 -1
  114. package/dist/assets/index16.css +1 -1
  115. package/dist/assets/index17.css +1 -1
  116. package/dist/assets/index18.css +1 -1
  117. package/dist/assets/index19.css +1 -1
  118. package/dist/assets/index2.css +1 -1
  119. package/dist/assets/index20.css +1 -1
  120. package/dist/assets/index21.css +1 -1
  121. package/dist/assets/index22.css +1 -1
  122. package/dist/assets/index23.css +1 -1
  123. package/dist/assets/index24.css +1 -1
  124. package/dist/assets/index25.css +1 -1
  125. package/dist/assets/index26.css +1 -1
  126. package/dist/assets/index27.css +1 -1
  127. package/dist/assets/index28.css +1 -1
  128. package/dist/assets/index29.css +1 -1
  129. package/dist/assets/index3.css +1 -1
  130. package/dist/assets/index30.css +1 -1
  131. package/dist/assets/index31.css +1 -1
  132. package/dist/assets/index32.css +1 -1
  133. package/dist/assets/index33.css +1 -1
  134. package/dist/assets/index34.css +1 -1
  135. package/dist/assets/index35.css +1 -1
  136. package/dist/assets/index36.css +1 -1
  137. package/dist/assets/index37.css +1 -1
  138. package/dist/assets/index39.css +1 -1
  139. package/dist/assets/index4.css +1 -1
  140. package/dist/assets/index40.css +1 -1
  141. package/dist/assets/index41.css +1 -1
  142. package/dist/assets/index42.css +1 -1
  143. package/dist/assets/index43.css +1 -1
  144. package/dist/assets/index44.css +1 -1
  145. package/dist/assets/index45.css +1 -0
  146. package/dist/assets/index5.css +1 -1
  147. package/dist/assets/index6.css +1 -1
  148. package/dist/assets/index7.css +1 -1
  149. package/dist/assets/index8.css +1 -1
  150. package/dist/assets/index9.css +1 -1
  151. package/dist/assets/listbox.css +1 -1
  152. package/dist/assets/refresh.css +1 -0
  153. package/dist/avatar-image.js +1 -1
  154. package/dist/badge.js +1 -1
  155. package/dist/button.js +21 -14
  156. package/dist/button.js.map +1 -1
  157. package/dist/card.js +54 -54
  158. package/dist/card.js.map +1 -1
  159. package/dist/checkbox.js +6 -6
  160. package/dist/chunks/{base-button.d1ba66cd.js → base-button.7886a7e6.js} +2 -2
  161. package/dist/chunks/{base-button.d1ba66cd.js.map → base-button.7886a7e6.js.map} +1 -1
  162. package/dist/chunks/{base-modal.ec74044e.js → base-modal.88e7b9d4.js} +4 -4
  163. package/dist/chunks/{base-modal.ec74044e.js.map → base-modal.88e7b9d4.js.map} +1 -1
  164. package/dist/chunks/button-actions-with-menu.a5413243.js +105 -0
  165. package/dist/chunks/button-actions-with-menu.a5413243.js.map +1 -0
  166. package/dist/chunks/button.e09d5980.js +125 -0
  167. package/dist/chunks/button.e09d5980.js.map +1 -0
  168. package/dist/chunks/{calendar.b74f8a0f.js → calendar.24d0ac04.js} +294 -272
  169. package/dist/chunks/calendar.24d0ac04.js.map +1 -0
  170. package/dist/chunks/{checkbox.96ee3f71.js → checkbox.5343e28e.js} +7 -7
  171. package/dist/chunks/{checkbox.96ee3f71.js.map → checkbox.5343e28e.js.map} +1 -1
  172. package/dist/chunks/checkmark.78f3ed9c.js +26 -0
  173. package/dist/chunks/checkmark.78f3ed9c.js.map +1 -0
  174. package/dist/chunks/{chevron-right.3b826337.js → chevron-left.c10778d3.js} +8 -8
  175. package/dist/chunks/chevron-left.c10778d3.js.map +1 -0
  176. package/dist/chunks/{controls-group.e9537e45.js → controls-group.2a21bd83.js} +2 -2
  177. package/dist/chunks/{controls-group.e9537e45.js.map → controls-group.2a21bd83.js.map} +1 -1
  178. package/dist/chunks/{copy.2ff56819.js → copy.346eadb1.js} +4 -4
  179. package/dist/chunks/{copy.2ff56819.js.map → copy.346eadb1.js.map} +1 -1
  180. package/dist/chunks/{dropdown-default-textbox.3df0bf23.js → dropdown-default-textbox.25134789.js} +4 -4
  181. package/dist/chunks/dropdown-default-textbox.25134789.js.map +1 -0
  182. package/dist/chunks/{dropdown.3f198167.js → dropdown.f1253a54.js} +111 -81
  183. package/dist/chunks/dropdown.f1253a54.js.map +1 -0
  184. package/dist/chunks/{error-message.f5454f19.js → error-message.8302a46c.js} +2 -2
  185. package/dist/chunks/{error-message.f5454f19.js.map → error-message.8302a46c.js.map} +1 -1
  186. package/dist/chunks/fixed-scroller.8994e30a.js +108 -0
  187. package/dist/chunks/fixed-scroller.8994e30a.js.map +1 -0
  188. package/dist/chunks/{footer-actions.00d20947.js → footer-actions.c9b2cb74.js} +3 -3
  189. package/dist/chunks/{footer-actions.00d20947.js.map → footer-actions.c9b2cb74.js.map} +1 -1
  190. package/dist/chunks/{index.c39c64c9.js → index.2625175a.js} +2 -2
  191. package/dist/chunks/{index.c39c64c9.js.map → index.2625175a.js.map} +1 -1
  192. package/dist/chunks/index.37283390.js +475 -0
  193. package/dist/chunks/index.37283390.js.map +1 -0
  194. package/dist/chunks/index.8ac70774.js +1328 -0
  195. package/dist/chunks/index.8ac70774.js.map +1 -0
  196. package/dist/chunks/{index.2fce7703.js → index.965ac1af.js} +2 -2
  197. package/dist/chunks/{index.2fce7703.js.map → index.965ac1af.js.map} +1 -1
  198. package/dist/chunks/{index.eb52e785.js → index.a201f750.js} +6 -5
  199. package/dist/chunks/{index.eb52e785.js.map → index.a201f750.js.map} +1 -1
  200. package/dist/chunks/{index.a709a6b0.js → index.b83f8b7e.js} +2 -2
  201. package/dist/chunks/{index.a709a6b0.js.map → index.b83f8b7e.js.map} +1 -1
  202. package/dist/chunks/{index.298f5eed.js → index.d6b5f5e1.js} +6 -6
  203. package/dist/chunks/{index.298f5eed.js.map → index.d6b5f5e1.js.map} +1 -1
  204. package/dist/chunks/{index.31949c1a.js → index.e566354f.js} +91 -74
  205. package/dist/chunks/index.e566354f.js.map +1 -0
  206. package/dist/chunks/{listbox-option-tag.1362a2d7.js → listbox-option-tag.6a09e8e2.js} +8 -7
  207. package/dist/chunks/{listbox-option-tag.1362a2d7.js.map → listbox-option-tag.6a09e8e2.js.map} +1 -1
  208. package/dist/chunks/{listbox.e7bf46e4.js → listbox.73c38f38.js} +479 -385
  209. package/dist/chunks/listbox.73c38f38.js.map +1 -0
  210. package/dist/chunks/{loading-button.0ad06c99.js → loading-button.c65682d6.js} +2 -2
  211. package/dist/chunks/{loading-button.0ad06c99.js.map → loading-button.c65682d6.js.map} +1 -1
  212. package/dist/chunks/refresh.eb485c6f.js +26 -0
  213. package/dist/chunks/refresh.eb485c6f.js.map +1 -0
  214. package/dist/chunks/summary-grid.keys.1d1028c2.js +5 -0
  215. package/dist/chunks/summary-grid.keys.1d1028c2.js.map +1 -0
  216. package/dist/chunks/{tooltip.68e81e9c.js → tooltip.104e5fac.js} +39 -36
  217. package/dist/chunks/{tooltip.68e81e9c.js.map → tooltip.104e5fac.js.map} +1 -1
  218. package/dist/code-snippet.js +7 -7
  219. package/dist/code-snippet.js.map +1 -1
  220. package/dist/country.js +537 -528
  221. package/dist/country.js.map +1 -1
  222. package/dist/currency.js +1 -1
  223. package/dist/data-grid.js +10 -10
  224. package/dist/data-grid.js.map +1 -1
  225. package/dist/date-picker.js +99 -89
  226. package/dist/date-picker.js.map +1 -1
  227. package/dist/date-range-picker.js +2 -2
  228. package/dist/date.js +1 -1
  229. package/dist/divider.js +1 -1
  230. package/dist/dropdown.js +4 -4
  231. package/dist/empty-state.js +8 -7
  232. package/dist/empty-state.js.map +1 -1
  233. package/dist/filter-bar.js +500 -486
  234. package/dist/filter-bar.js.map +1 -1
  235. package/dist/focus-trap.js +1 -1
  236. package/dist/form-layout.js +2 -2
  237. package/dist/header.js +104 -183
  238. package/dist/header.js.map +1 -1
  239. package/dist/image.js +3 -3
  240. package/dist/index.js +171 -169
  241. package/dist/index.js.map +1 -1
  242. package/dist/info-icon.js +3 -3
  243. package/dist/input-field.js +7 -7
  244. package/dist/internal.js +20 -106
  245. package/dist/internal.js.map +1 -1
  246. package/dist/link.js +2 -2
  247. package/dist/loading-indicator.js +1 -1
  248. package/dist/menu.js +3 -466
  249. package/dist/menu.js.map +1 -1
  250. package/dist/modal.js +3 -3
  251. package/dist/pagination.js +40 -26
  252. package/dist/pagination.js.map +1 -1
  253. package/dist/payment-method.js +33 -26
  254. package/dist/payment-method.js.map +1 -1
  255. package/dist/popover.js +4 -4
  256. package/dist/popper-container.js +6 -1270
  257. package/dist/popper-container.js.map +1 -1
  258. package/dist/radio-group.js +97 -81
  259. package/dist/radio-group.js.map +1 -1
  260. package/dist/search-bar.js +2 -2
  261. package/dist/segmented-control.js +100 -70
  262. package/dist/segmented-control.js.map +1 -1
  263. package/dist/sidepanel.js +53 -51
  264. package/dist/sidepanel.js.map +1 -1
  265. package/dist/status.js +2 -2
  266. package/dist/stepper.js +3 -3
  267. package/dist/structured-list.js +1 -1
  268. package/dist/summary-grid.js +109 -119
  269. package/dist/summary-grid.js.map +1 -1
  270. package/dist/tabs.js +81 -71
  271. package/dist/tabs.js.map +1 -1
  272. package/dist/tag.js +3 -3
  273. package/dist/textarea.js +4 -4
  274. package/dist/timeline.js +170 -162
  275. package/dist/timeline.js.map +1 -1
  276. package/dist/toast.js +3 -3
  277. package/dist/toggle.js +6 -6
  278. package/dist/tutorial.js +307 -0
  279. package/dist/tutorial.js.map +1 -0
  280. package/dist/typography.js +1 -1
  281. package/dist/web-types.json +828 -122
  282. package/package.json +7 -4
  283. package/dist/assets/chevron-right.css +0 -1
  284. package/dist/chunks/button.eb60d460.js +0 -117
  285. package/dist/chunks/button.eb60d460.js.map +0 -1
  286. package/dist/chunks/calendar.b74f8a0f.js.map +0 -1
  287. package/dist/chunks/chevron-right.3b826337.js.map +0 -1
  288. package/dist/chunks/dropdown-default-textbox.3df0bf23.js.map +0 -1
  289. package/dist/chunks/dropdown.3f198167.js.map +0 -1
  290. package/dist/chunks/index.31949c1a.js.map +0 -1
  291. package/dist/chunks/listbox.e7bf46e4.js.map +0 -1
@@ -1,39 +1,40 @@
1
- import { n as D } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
2
- import { defineComponent as x, useSlots as qe, useAttrs as je, computed as r, ref as $, watch as te, toRef as I, onBeforeUpdate as re, reactive as Fe, toRefs as Ye, provide as ze, nextTick as Je, onMounted as Ke } from "vue";
1
+ import { n as U } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
2
+ import { defineComponent as x, useSlots as He, useAttrs as qe, computed as r, ref as I, watch as te, toRef as R, onBeforeUpdate as re, reactive as me, toRefs as je, provide as Ye, nextTick as ze, onMounted as Je } from "vue";
3
3
  import { BentoPopover as de } from "./popover.js";
4
- import { u as G } from "./chunks/i18n.155748d6.js";
4
+ import { u as W } from "./chunks/i18n.155748d6.js";
5
5
  import { g as ie } from "./chunks/unique-id.a2a2b458.js";
6
- import { B as ae, d as Ge } from "./chunks/index.2fce7703.js";
7
- import { u as he } from "./chunks/aria-label.ac9651a5.js";
8
- import { B as Ce, a as fe } from "./chunks/base-button.d1ba66cd.js";
9
- import { g as ge } from "./chunks/get-slot-text.c1114034.js";
10
- import { u as Se } from "./chunks/use-has-slot.6052d56a.js";
11
- import { a as Be, C as Ae } from "./chunks/chevron-up.674ec2e5.js";
12
- import { B as Ze } from "./chunks/tooltip.68e81e9c.js";
6
+ import { B as ae, d as Ke } from "./chunks/index.965ac1af.js";
7
+ import { u as Fe } from "./chunks/aria-label.ac9651a5.js";
8
+ import { B as he, a as fe } from "./chunks/base-button.7886a7e6.js";
9
+ import { g as Ce } from "./chunks/get-slot-text.c1114034.js";
10
+ import { u as ge } from "./chunks/use-has-slot.6052d56a.js";
11
+ import { a as Se, C as Be } from "./chunks/chevron-up.674ec2e5.js";
12
+ import { B as Ge } from "./chunks/tooltip.104e5fac.js";
13
13
  import { B as We } from "./chunks/directive.0408e565.js";
14
- import { BentoRadioGroup as Qe } from "./radio-group.js";
15
- import { BentoInputField as De } from "./input-field.js";
16
- import { BentoSearchBar as le, BentoSearchBarEvent as W } from "./search-bar.js";
17
- import { u as Xe } from "./chunks/toastController.0e01443d.js";
18
- import { BentoModal as et } from "./modal.js";
19
- import { e as tt } from "./chunks/base-modal.ec74044e.js";
20
- import { a as lt } from "./chunks/button.eb60d460.js";
21
- import { B as at, u as Te } from "./chunks/dropdown.3f198167.js";
22
- import { g as nt } from "./chunks/index.c39c64c9.js";
23
- import { BentoDivider as Ee } from "./divider.js";
24
- import { BentoDatePicker as st } from "./date-picker.js";
25
- import { f as K } from "./chunks/index.a709a6b0.js";
26
- import { e as Y, d as Pe, f as $e } from "./chunks/index.f55fdc32.js";
27
- import { a as ot, i as rt } from "./chunks/calendar.b74f8a0f.js";
28
- import { B as it, D as ut, i as _e } from "./chunks/index.31949c1a.js";
29
- import { BentoButtonActions as ct } from "./button.js";
30
- import { D as be } from "./chunks/date-input.9186a0bf.js";
31
- import { b as dt } from "./chunks/listbox.e7bf46e4.js";
32
- import { B as ft, L as xe } from "./chunks/listbox-option-tag.1362a2d7.js";
33
- import { BentoCountry as _t } from "./country.js";
14
+ import { BentoRadioGroup as Ze } from "./radio-group.js";
15
+ import { BentoInputField as Ae } from "./input-field.js";
16
+ import { BentoSearchBar as le, BentoSearchBarEvent as Z } from "./search-bar.js";
17
+ import { u as Qe } from "./chunks/toastController.0e01443d.js";
18
+ import { BentoModal as Xe } from "./modal.js";
19
+ import { e as et } from "./chunks/base-modal.88e7b9d4.js";
20
+ import { a as tt } from "./chunks/button.e09d5980.js";
21
+ import { B as lt, u as De } from "./chunks/dropdown.f1253a54.js";
22
+ import { g as at } from "./chunks/index.2625175a.js";
23
+ import { BentoDivider as Te } from "./divider.js";
24
+ import { BentoDatePicker as nt } from "./date-picker.js";
25
+ import { f as G } from "./chunks/index.b83f8b7e.js";
26
+ import { e as z, d as Ee, f as Pe } from "./chunks/index.f55fdc32.js";
27
+ import { C as st, i as ot } from "./chunks/calendar.24d0ac04.js";
28
+ import { B as rt, D as it, i as be } from "./chunks/index.e566354f.js";
29
+ import { BentoButtonActions as ut } from "./button.js";
30
+ import { D as _e } from "./chunks/date-input.9186a0bf.js";
31
+ import { B as ct } from "./chunks/listbox.73c38f38.js";
32
+ import { B as dt, L as Ue } from "./chunks/listbox-option-tag.6a09e8e2.js";
33
+ import { BentoCountry as ft } from "./country.js";
34
34
  import { u as bt } from "./chunks/useCountryItems.5d7b436e.js";
35
- import { BentoPaymentMethod as vt } from "./payment-method.js";
36
- import "./assets/index41.css";
35
+ import { BentoPaymentMethod as _t } from "./payment-method.js";
36
+ import { R as vt } from "./chunks/refresh.eb485c6f.js";
37
+ import "./assets/index45.css";
37
38
  const pt = {}, yt = /* @__PURE__ */ x({
38
39
  ...pt,
39
40
  __name: "filter-bar-button",
@@ -65,19 +66,19 @@ const pt = {}, yt = /* @__PURE__ */ x({
65
66
  },
66
67
  emits: ["click"],
67
68
  setup(t, { emit: e }) {
68
- const l = t, a = qe(), n = je(), s = Se(a), u = r(() => a.default ? ge(a)("default") : null), d = he({ ariaLabel: u }), c = $(null), y = r(() => {
69
+ const l = t, a = He(), n = qe(), s = ge(a), u = r(() => a.default ? Ce(a)("default") : null), d = Fe({ ariaLabel: u }), c = I(null), p = r(() => {
69
70
  var v;
70
71
  return {
71
72
  "aria-controls": (v = n["aria-controls"]) == null ? void 0 : v.toString()
72
73
  };
73
- }), b = r(() => ({
74
+ }), _ = r(() => ({
74
75
  "b-filter-bar-button--filter-open": l.isFilterOpen,
75
76
  "b-filter-bar-button--with-counter": l.appliedFiltersCount,
76
77
  "b-filter-bar-button--with-chevron": l.hasChevron
77
78
  }));
78
- return { __sfc: !0, props: l, emit: e, slots: a, attrs: n, hasSlot: s, labelSlot: u, computedAriaLabel: d, filterBarButtonRef: c, ariaAttributes: y, conditionalClasses: b, onClickButton: (v) => {
79
+ return { __sfc: !0, props: l, emit: e, slots: a, attrs: n, hasSlot: s, labelSlot: u, computedAriaLabel: d, filterBarButtonRef: c, ariaAttributes: p, conditionalClasses: _, onClickButton: (v) => {
79
80
  l.disabled || e("click", v);
80
- }, BentoTypography: ae, BaseButton: Ce, ChevronUpIcon: Be, ChevronDownIcon: Ae };
81
+ }, BentoTypography: ae, BaseButton: he, ChevronUpIcon: Se, ChevronDownIcon: Be };
81
82
  }
82
83
  });
83
84
  var mt = function() {
@@ -85,7 +86,7 @@ var mt = function() {
85
86
  return l(a.BaseButton, { ref: "filterBarButtonRef", staticClass: "b-filter-bar-button", class: a.conditionalClasses, attrs: { disabled: e.disabled, "aria-label": a.computedAriaLabel, "aria-controls": a.ariaAttributes["aria-controls"], type: "button" }, on: { click: a.onClickButton }, scopedSlots: e._u([{ key: "iconRight", fn: function() {
86
87
  return [e.appliedFiltersCount && !e.hasChevron ? l(a.BentoTypography, { staticClass: "b-filter-bar-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.appliedFiltersCount) + " ")]) : e._e(), e.hasChevron ? l("div", { staticClass: "b-filter-bar-button__chevron" }, [e.isFilterOpen ? l(a.ChevronUpIcon, { attrs: { "aria-hidden": "true" } }) : l(a.ChevronDownIcon, { attrs: { "aria-hidden": "true" } })], 1) : e._e()];
87
88
  }, proxy: !0 }]) }, [l("div", { staticClass: "b-filter-bar-button__container" }, [a.hasSlot("iconLeft") ? [e._t("iconLeft")] : e._e(), l("div", { staticClass: "b-filter-bar-button__label-container" }, [l(a.BentoTypography, { staticClass: "b-filter-bar-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._t("default")], 2), e.secondaryLabel ? l(a.BentoTypography, { staticClass: "b-filter-bar-button__secondary-label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.secondaryLabel) + " ")]) : e._e()], 1)], 2)]);
88
- }, Ft = [], ht = /* @__PURE__ */ D(
89
+ }, Ft = [], ht = /* @__PURE__ */ U(
89
90
  yt,
90
91
  mt,
91
92
  Ft,
@@ -96,7 +97,7 @@ var mt = function() {
96
97
  null
97
98
  );
98
99
  const ue = ht.exports;
99
- var i = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.UPDATE = "update", t))(i || {}), ee = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.UPDATE_FILTER_VALUES = "update:filter-values", t))(ee || {}), O = /* @__PURE__ */ ((t) => (t.INPUT = "BentoInputFilter", t.BOOLEAN = "BentoBooleanFilter", t.RANGE = "BentoRangeFilter", t.SELECT = "BentoSelectFilter", t.SELECT_AVATAR = "BentoSelectAvatarFilter", t.SELECT_COUNTRY = "BentoSelectCountryFilter", t.SELECT_CURRENCY = "BentoSelectCurrencyFilter", t.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", t.SELECT_TAG = "BentoSelectTagFilter", t.DATE = "BentoDateFilter", t.DATE_RANGE = "BentoDateRangeFilter", t))(O || {}), q = /* @__PURE__ */ ((t) => (t.APPLY = "apply", t.CLEAR = "clear", t.OPEN = "open", t.CLOSE = "close", t.RESET = "reset", t))(q || {});
100
+ var i = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.UPDATE = "update", t))(i || {}), ee = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.UPDATE_FILTER_VALUES = "update:filter-values", t))(ee || {}), N = /* @__PURE__ */ ((t) => (t.INPUT = "BentoInputFilter", t.BOOLEAN = "BentoBooleanFilter", t.RANGE = "BentoRangeFilter", t.SELECT = "BentoSelectFilter", t.SELECT_AVATAR = "BentoSelectAvatarFilter", t.SELECT_COUNTRY = "BentoSelectCountryFilter", t.SELECT_CURRENCY = "BentoSelectCurrencyFilter", t.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", t.SELECT_TAG = "BentoSelectTagFilter", t.DATE = "BentoDateFilter", t.DATE_RANGE = "BentoDateRangeFilter", t))(N || {}), q = /* @__PURE__ */ ((t) => (t.APPLY = "apply", t.CLEAR = "clear", t.OPEN = "open", t.CLOSE = "close", t.RESET = "reset", t))(q || {});
100
101
  const Ct = {
101
102
  "en-US": {
102
103
  clear: "Clear",
@@ -191,18 +192,18 @@ const Ct = {
191
192
  q.RESET
192
193
  ],
193
194
  setup(t, { emit: e }) {
194
- const { t: l } = G(), a = ie("base-filter-popover"), n = $(!1), s = $(null), u = r(() => t.defaultValue !== null), d = () => {
195
+ const { t: l } = W(), a = ie("base-filter-popover"), n = I(!1), s = I(null), u = r(() => t.defaultValue !== null), d = () => {
195
196
  n.value = !1, e(q.CLOSE);
196
197
  }, c = () => {
197
198
  d(), u.value ? e(q.RESET) : e(q.CLEAR);
198
- }, y = () => d(), b = () => {
199
+ }, p = () => d(), _ = () => {
199
200
  n.value ? d() : (n.value = !0, e(q.OPEN));
200
- }, h = () => {
201
+ }, F = () => {
201
202
  d(), e(q.APPLY);
202
203
  }, v = r(() => [
203
204
  {
204
205
  title: l("apply"),
205
- event: h,
206
+ event: F,
206
207
  disabled: t.disableApplyButton
207
208
  },
208
209
  {
@@ -213,9 +214,9 @@ const Ct = {
213
214
  ]);
214
215
  return te(
215
216
  () => n.value,
216
- (C, B) => {
217
- var F, p;
218
- !C && B && (p = (F = s.value) == null ? void 0 : F.filterBarButtonRef) != null && p.bentoBaseButtonRef && s.value.filterBarButtonRef.bentoBaseButtonRef.focus();
217
+ (h, D) => {
218
+ var B, m;
219
+ !h && D && (m = (B = s.value) == null ? void 0 : B.filterBarButtonRef) != null && m.bentoBaseButtonRef && s.value.filterBarButtonRef.bentoBaseButtonRef.focus();
219
220
  }
220
221
  ), {
221
222
  // Values
@@ -224,12 +225,12 @@ const Ct = {
224
225
  isFilterOpen: n,
225
226
  isPersistentFilter: u,
226
227
  // Enums
227
- BentoTooltipPosition: Ze,
228
+ BentoTooltipPosition: Ge,
228
229
  // Events
229
- onClickFilter: b,
230
- onClickApply: h,
230
+ onClickFilter: _,
231
+ onClickApply: F,
231
232
  onClickSecondaryAction: c,
232
- onClickOutside: y,
233
+ onClickOutside: p,
233
234
  closePopover: d,
234
235
  // Refs
235
236
  filterButtonRef: s
@@ -241,7 +242,7 @@ var St = function() {
241
242
  return e._self._setupProxy, e.onlySlot ? l("div", [e._t("default")], 2) : l("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.onClickOutside, expression: "onClickOutside" }], staticClass: "b-base-filter", on: { keydown: function(a) {
242
243
  return !a.type.indexOf("key") && e._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
243
244
  } } }, [l("filter-bar-button", { ref: "filterButtonRef", attrs: { "aria-controls": e.isFilterOpen ? e.popoverId : null, "has-chevron": e.isPersistentFilter, "is-filter-open": e.isFilterOpen, "applied-filters-count": e.appliedFiltersCount, "secondary-label": e.buttonSecondaryLabel }, on: { click: e.onClickFilter } }, [e._v(" " + e._s(e.buttonLabel || e.label) + " ")]), e.filterButtonRef ? l("bento-popover", { staticClass: "b-base-filter__popover", attrs: { id: e.popoverId, divider: "", open: e.isFilterOpen, actions: e.controlled ? null : e.actions, "actions-layout": "space-between", "target-element": e.filterButtonRef, title: e.controlled ? null : e.label, "fit-content": e.fitContent, position: "bottom-start", "without-space": e.controlled, "fallback-position": ["bottom-end"] } }, [e._t("default")], 2) : e._e()], 1);
244
- }, Bt = [], At = /* @__PURE__ */ D(
245
+ }, Bt = [], At = /* @__PURE__ */ U(
245
246
  gt,
246
247
  St,
247
248
  Bt,
@@ -252,7 +253,7 @@ var St = function() {
252
253
  null
253
254
  );
254
255
  const Q = At.exports, Dt = (t) => t instanceof Array, ve = (t) => Dt(t) ? t.length === 0 || t.every((e) => e === "") : !t, pe = (t, e) => JSON.stringify(t) === JSON.stringify(e), X = (t, e) => {
255
- const l = $(t.value);
256
+ const l = I(t.value);
256
257
  te(
257
258
  () => t.value,
258
259
  () => {
@@ -267,14 +268,14 @@ const Q = At.exports, Dt = (t) => t instanceof Array, ve = (t) => Dt(t) ? t.leng
267
268
  isSecondaryButtonDisabled: n,
268
269
  isApplyButtonDisabled: s
269
270
  };
270
- }, J = (t, e) => {
271
+ }, K = (t, e) => {
271
272
  const l = t == null ? void 0 : t.toString();
272
273
  return (l == null ? void 0 : l.length) > e ? `${l == null ? void 0 : l.slice(0, e)}...` : l;
273
274
  }, Tt = x({
274
275
  name: "bento-input-filter",
275
276
  components: {
276
277
  BentoBaseFilter: Q,
277
- BentoInputField: De
278
+ BentoInputField: Ae
278
279
  },
279
280
  props: {
280
281
  /**
@@ -302,23 +303,23 @@ const Q = At.exports, Dt = (t) => t instanceof Array, ve = (t) => Dt(t) ? t.leng
302
303
  },
303
304
  emits: [i.INPUT, i.UPDATE],
304
305
  setup(t, { emit: e }) {
305
- const l = $(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = X(
306
- I(t, "value"),
307
- I(t, "defaultValue")
308
- ), u = r(() => t.defaultValue === null ? t.label : J(t.value, 18)), d = r(
309
- () => t.defaultValue === null ? J(t.value, 12) : null
306
+ const l = I(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = X(
307
+ R(t, "value"),
308
+ R(t, "defaultValue")
309
+ ), u = r(() => t.defaultValue === null ? t.label : K(t.value, 18)), d = r(
310
+ () => t.defaultValue === null ? K(t.value, 12) : null
310
311
  ), c = r(() => ({
311
312
  ["b-input-filter--only-slot"]: t.onlySlot
312
313
  }));
313
314
  re(() => {
314
315
  a.value === "" && (a.value = null);
315
316
  }), te(l, () => {
316
- var F;
317
- (F = l.value) == null || F.focusInput();
317
+ var B;
318
+ (B = l.value) == null || B.focusInput();
318
319
  });
319
- const y = () => {
320
+ const p = () => {
320
321
  a.value = t.value;
321
- }, b = () => {
322
+ }, _ = () => {
322
323
  !a.value && t.defaultValue !== null && (a.value = t.defaultValue), e(i.UPDATE, { ...t, value: a.value });
323
324
  };
324
325
  return {
@@ -332,17 +333,17 @@ const Q = At.exports, Dt = (t) => t instanceof Array, ve = (t) => Dt(t) ? t.leng
332
333
  // Refs
333
334
  inputTextRef: l,
334
335
  // Events
335
- updateFilter: b,
336
+ updateFilter: _,
336
337
  clearFilter: () => {
337
- a.value = null, b();
338
+ a.value = null, _();
338
339
  },
339
- openFilter: y,
340
+ openFilter: p,
340
341
  resetFilter: () => e(i.UPDATE, { ...t, value: t.defaultValue }),
341
342
  onInput: () => {
342
343
  e(i.INPUT, { ...t, value: a.value });
343
344
  },
344
- setInternalFilterValue: (F) => {
345
- a.value = F;
345
+ setInternalFilterValue: (B) => {
346
+ a.value = B;
346
347
  }
347
348
  };
348
349
  }
@@ -352,7 +353,7 @@ var Et = function() {
352
353
  return e._self._setupProxy, l("bento-base-filter", e._b({ attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [l("div", { staticClass: "b-input-filter", class: e.conditionalClasses, on: { keydown: function(a) {
353
354
  return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
354
355
  }, input: e.onInput } }, [l("bento-input-field", { ref: "inputTextRef", attrs: { value: e.internalFilterValue }, on: { input: e.setInternalFilterValue } })], 1)]);
355
- }, Pt = [], $t = /* @__PURE__ */ D(
356
+ }, Pt = [], Ut = /* @__PURE__ */ U(
356
357
  Tt,
357
358
  Et,
358
359
  Pt,
@@ -362,13 +363,13 @@ var Et = function() {
362
363
  null,
363
364
  null
364
365
  );
365
- const Ue = $t.exports, xt = x({
366
+ const Ie = Ut.exports, It = x({
366
367
  name: "bento-date-filter",
367
368
  components: {
368
369
  BentoBaseFilter: Q,
369
- BentoDatePicker: st,
370
- BentoDivider: Ee,
371
- Calendar: ot
370
+ BentoDatePicker: nt,
371
+ BentoDivider: Te,
372
+ Calendar: st
372
373
  },
373
374
  props: {
374
375
  isDateInput: { type: Boolean, default: !0 },
@@ -407,27 +408,27 @@ const Ue = $t.exports, xt = x({
407
408
  },
408
409
  emits: [i.INPUT, i.UPDATE],
409
410
  setup(t, { emit: e }) {
410
- const { locale: l } = G(void 0, !0), a = { de: Pe, enUS: Y, fr: $e }, { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: u } = X(
411
- I(t, "value"),
412
- I(t, "defaultValue")
411
+ const { locale: l } = W(void 0, !0), a = { de: Ee, enUS: z, fr: Pe }, { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: u } = X(
412
+ R(t, "value"),
413
+ R(t, "defaultValue")
413
414
  ), d = r(
414
- () => t.value ? K(t.value, "dd MMM, yyyy", {
415
- locale: a[l.value.substring(0, 2)] || Y
415
+ () => t.value ? G(t.value, "dd MMM, yyyy", {
416
+ locale: a[l.value.substring(0, 2)] || z
416
417
  }) : null
417
418
  ), c = r(
418
419
  () => t.defaultValue === null ? t.label : d.value
419
- ), y = r(
420
+ ), p = r(
420
421
  () => t.defaultValue === null ? d.value : null
421
- ), b = () => {
422
+ ), _ = () => {
422
423
  e(i.UPDATE, { ...t, value: n.value });
423
- }, h = () => {
424
- n.value = null, b();
424
+ }, F = () => {
425
+ n.value = null, _();
425
426
  }, v = () => {
426
- n.value = t.defaultValue, b();
427
- }, C = () => {
427
+ n.value = t.defaultValue, _();
428
+ }, h = () => {
428
429
  n.value = t.value;
429
- }, B = (p) => {
430
- n.value = p, e(i.INPUT, { ...t, value: n.value });
430
+ }, D = (m) => {
431
+ n.value = m, e(i.INPUT, { ...t, value: n.value });
431
432
  };
432
433
  return {
433
434
  // Values
@@ -435,34 +436,34 @@ const Ue = $t.exports, xt = x({
435
436
  isApplyButtonDisabled: u,
436
437
  isSecondaryButtonDisabled: s,
437
438
  buttonLabel: c,
438
- buttonSecondaryLabel: y,
439
+ buttonSecondaryLabel: p,
439
440
  // Events
440
- clearFilter: h,
441
- onDateSelected: B,
442
- openFilter: C,
443
- updateFilter: b,
441
+ clearFilter: F,
442
+ onDateSelected: D,
443
+ openFilter: h,
444
+ updateFilter: _,
444
445
  resetFilter: v,
445
- onDateInputSelected: (p) => {
446
- n.value = p, B(p), b();
446
+ onDateInputSelected: (m) => {
447
+ n.value = m, D(m), _();
447
448
  }
448
449
  };
449
450
  }
450
451
  });
451
- var Ut = function() {
452
+ var xt = function() {
452
453
  var a, n, s, u;
453
454
  var e = this, l = e._self._c;
454
455
  return e._self._setupProxy, l("bento-base-filter", { attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "default-value": e.defaultValue, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, field: e.field, label: e.label, "only-slot": e.onlySlot, "fit-content": "" }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, [e.onlySlot ? l("bento-date-picker", { attrs: { value: e.internalFilterValue, "first-day-of-week": (a = e.options) == null ? void 0 : a.firstDayOfWeek, "is-date-disabled": (n = e.options) == null ? void 0 : n.isDateDisabled }, on: { input: e.onDateInputSelected } }) : [l("bento-divider", { staticClass: "b-date-filter__divider" }), l("div", { staticClass: "b-date-filter" }, [l("calendar", { attrs: { "first-day-of-week": (s = e.options) == null ? void 0 : s.firstDayOfWeek, "is-date-disabled": (u = e.options) == null ? void 0 : u.isDateDisabled, "number-of-months": 1, value: e.internalFilterValue }, on: { input: e.onDateSelected } })], 1)]], 2);
455
- }, It = [], Rt = /* @__PURE__ */ D(
456
- xt,
457
- Ut,
456
+ }, $t = [], Rt = /* @__PURE__ */ U(
458
457
  It,
458
+ xt,
459
+ $t,
459
460
  !1,
460
461
  null,
461
462
  "3a27d7af",
462
463
  null,
463
464
  null
464
465
  );
465
- const Ie = Rt.exports, kt = {
466
+ const xe = Rt.exports, kt = {
466
467
  "en-US": {
467
468
  clear: "Clear",
468
469
  reset: "Reset",
@@ -493,11 +494,11 @@ const Ie = Rt.exports, kt = {
493
494
  name: "bento-date-range-filter",
494
495
  components: {
495
496
  BentoBaseFilter: Q,
496
- BentoButtonActions: ct,
497
- BentoDateRangePicker: it,
497
+ BentoButtonActions: ut,
498
+ BentoDateRangePicker: rt,
498
499
  BentoTypography: ae,
499
- BentoDivider: Ee,
500
- DateRangePickerCalendar: ut
500
+ BentoDivider: Te,
501
+ DateRangePickerCalendar: it
501
502
  },
502
503
  props: {
503
504
  /**
@@ -542,108 +543,108 @@ const Ie = Rt.exports, kt = {
542
543
  },
543
544
  emits: [i.INPUT, i.UPDATE],
544
545
  setup(t, { emit: e }) {
545
- var E, P, L, k;
546
- const { locale: l, t: a } = G(), n = { de: Pe, enUS: Y, fr: $e }, { internalFilterValue: s, isSecondaryButtonDisabled: u, isApplyButtonDisabled: d } = X(
547
- I(t, "value"),
548
- I(t, "defaultValue")
549
- ), c = (_) => _ ? K(_, be.NUMERIC_DATE_YEAR_FIRST, {
550
- locale: n[l.value.substring(0, 2)] || Y
551
- }) : void 0, y = (_) => _ ? K(_, be.HOUR_MINUTE_SECONDS, {
552
- locale: n[l.value.substring(0, 2)] || Y
553
- }) : "", b = $(null), h = $(!1), v = Fe({
546
+ var E, P, O, V;
547
+ const { locale: l, t: a } = W(), n = { de: Ee, enUS: z, fr: Pe }, { internalFilterValue: s, isSecondaryButtonDisabled: u, isApplyButtonDisabled: d } = X(
548
+ R(t, "value"),
549
+ R(t, "defaultValue")
550
+ ), c = (f) => f ? G(f, _e.NUMERIC_DATE_YEAR_FIRST, {
551
+ locale: n[l.value.substring(0, 2)] || z
552
+ }) : void 0, p = (f) => f ? G(f, _e.HOUR_MINUTE_SECONDS, {
553
+ locale: n[l.value.substring(0, 2)] || z
554
+ }) : "", _ = I(null), F = I(!1), v = me({
554
555
  startDate: c((E = t.value) == null ? void 0 : E.startDate),
555
556
  endDate: c((P = t.value) == null ? void 0 : P.endDate),
556
- startTime: y((L = t.value) == null ? void 0 : L.startDate),
557
- endTime: y((k = t.value) == null ? void 0 : k.endDate)
558
- }), C = r(() => {
559
- var _, M, ne, se, o, g, S, U;
560
- if (!((_ = t.value) != null && _.startDate) && !t.value.endDate)
557
+ startTime: p((O = t.value) == null ? void 0 : O.startDate),
558
+ endTime: p((V = t.value) == null ? void 0 : V.endDate)
559
+ }), h = r(() => {
560
+ var f, M, ne, se, o, C, S, $;
561
+ if (!((f = t.value) != null && f.startDate) && !t.value.endDate)
561
562
  return null;
562
563
  if (((ne = (M = t.options) == null ? void 0 : M.quickSelectRanges) == null ? void 0 : ne.length) > 0) {
563
564
  const j = (o = (se = t.options) == null ? void 0 : se.quickSelectRanges) == null ? void 0 : o.find(
564
- ({ data: H }) => _e(H == null ? void 0 : H.startDate, t.value.startDate) && _e(H == null ? void 0 : H.endDate, t.value.endDate)
565
+ ({ data: H }) => be(H == null ? void 0 : H.startDate, t.value.startDate) && be(H == null ? void 0 : H.endDate, t.value.endDate)
565
566
  );
566
567
  if (j)
567
568
  return j.label;
568
569
  }
569
- return rt((g = t.value) == null ? void 0 : g.startDate, (S = t.value) == null ? void 0 : S.endDate) && ((U = t == null ? void 0 : t.options) != null && U.allowTimeInput) ? `${K(t.value.startDate, "dd MMM, yyyy HH:mm:ss", {
570
- locale: n[l.value.substring(0, 2)] || Y
571
- })} - ${K(t.value.endDate, "HH:mm:ss", {
572
- locale: n[l.value.substring(0, 2)] || Y
573
- })}` : `${K(t.value.startDate, "dd MMM, yyyy", {
574
- locale: n[l.value.substring(0, 2)] || Y
575
- })} - ${K(t.value.endDate, "dd MMM, yyyy", {
576
- locale: n[l.value.substring(0, 2)] || Y
570
+ return ot((C = t.value) == null ? void 0 : C.startDate, (S = t.value) == null ? void 0 : S.endDate) && (($ = t == null ? void 0 : t.options) != null && $.allowTimeInput) ? `${G(t.value.startDate, "dd MMM, yyyy HH:mm:ss", {
571
+ locale: n[l.value.substring(0, 2)] || z
572
+ })} - ${G(t.value.endDate, "HH:mm:ss", {
573
+ locale: n[l.value.substring(0, 2)] || z
574
+ })}` : `${G(t.value.startDate, "dd MMM, yyyy", {
575
+ locale: n[l.value.substring(0, 2)] || z
576
+ })} - ${G(t.value.endDate, "dd MMM, yyyy", {
577
+ locale: n[l.value.substring(0, 2)] || z
577
578
  })}`;
578
- }), B = r(
579
- () => t.defaultValue === null ? t.label : C.value
580
- ), F = r(
581
- () => t.defaultValue === null ? C.value : null
582
- ), p = () => {
583
- b.value.closePopover();
584
- const { onlySlot: _, ...M } = t;
579
+ }), D = r(
580
+ () => t.defaultValue === null ? t.label : h.value
581
+ ), B = r(
582
+ () => t.defaultValue === null ? h.value : null
583
+ ), m = () => {
584
+ _.value.closePopover();
585
+ const { onlySlot: f, ...M } = t;
585
586
  e(i.UPDATE, { ...M, value: s.value });
587
+ }, g = () => {
588
+ s.value = void 0, m();
586
589
  }, T = () => {
587
- s.value = void 0, p();
588
- }, w = () => {
589
- s.value = t.defaultValue, p();
590
- }, m = () => {
590
+ s.value = t.defaultValue, m();
591
+ }, y = () => {
591
592
  s.value = t.value;
592
- }, f = (_) => {
593
- s.value = _, v.startDate = c(_.startDate), v.endDate = c(_.endDate), e(i.INPUT, { ...t, value: s.value });
594
- }, A = (_) => {
595
- _ != null && _.startDate && (_ != null && _.endDate) && (s.value = _, v.startDate = c(_.startDate), v.endDate = c(_.endDate), e(i.INPUT, { ...t, value: s.value }));
596
- }, V = (_) => {
597
- f(_), e(i.INPUT, { ...t, value: s.value });
598
- }, z = r(
593
+ }, b = (f) => {
594
+ s.value = f, v.startDate = c(f.startDate), v.endDate = c(f.endDate), e(i.INPUT, { ...t, value: s.value });
595
+ }, A = (f) => {
596
+ f != null && f.startDate && (f != null && f.endDate) && (s.value = f, v.startDate = c(f.startDate), v.endDate = c(f.endDate), e(i.INPUT, { ...t, value: s.value }));
597
+ }, L = (f) => {
598
+ b(f), e(i.INPUT, { ...t, value: s.value });
599
+ }, Y = r(
599
600
  () => [
600
601
  {
601
602
  title: a("apply"),
602
- event: p,
603
- disabled: h.value || d.value
603
+ event: m,
604
+ disabled: F.value || d.value
604
605
  },
605
606
  {
606
607
  title: t.defaultValue ? a("reset") : a("clear"),
607
- event: t.defaultValue ? w : T,
608
- disabled: h.value && u.value
608
+ event: t.defaultValue ? T : g,
609
+ disabled: F.value && u.value
609
610
  }
610
611
  ]
611
612
  );
612
613
  return {
613
614
  // Refs
614
- baseFilter: b,
615
+ baseFilter: _,
615
616
  // Values
616
- actions: z,
617
+ actions: Y,
617
618
  formData: v,
618
619
  internalFilterValue: s,
619
620
  isApplyButtonDisabled: d,
620
621
  isSecondaryButtonDisabled: u,
621
- buttonLabel: B,
622
- buttonSecondaryLabel: F,
622
+ buttonLabel: D,
623
+ buttonSecondaryLabel: B,
623
624
  // Events
624
- onDateSelected: f,
625
- openFilter: m,
626
- updateFilter: p,
625
+ onDateSelected: b,
626
+ openFilter: y,
627
+ updateFilter: m,
627
628
  onDatePickerRangeError: () => {
628
- h.value = !0, s.value = { startDate: void 0, endDate: void 0 }, e(i.INPUT, { ...t, value: s.value });
629
+ F.value = !0, s.value = { startDate: void 0, endDate: void 0 }, e(i.INPUT, { ...t, value: s.value });
629
630
  },
630
- onDatePickerRangeFormDateInputUpdate: (_) => {
631
- h.value = !1, _.startTime && (v.startTime = _.startTime), _.endTime && (v.endTime = _.endTime);
631
+ onDatePickerRangeFormDateInputUpdate: (f) => {
632
+ F.value = !1, f.startTime && (v.startTime = f.startTime), f.endTime && (v.endTime = f.endTime);
632
633
  },
633
- onDateInputSelected: V,
634
+ onDateInputSelected: L,
634
635
  onRangeSelectorInput: A
635
636
  };
636
637
  }
637
638
  });
638
639
  var Lt = function() {
639
- var a, n, s, u, d, c, y, b, h, v, C;
640
+ var a, n, s, u, d, c, p, _, F, v, h;
640
641
  var e = this, l = e._self._c;
641
- return e._self._setupProxy, l("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, field: e.field, label: e.label, "only-slot": e.onlySlot, "fit-content": "" }, on: { open: e.openFilter } }, [e.onlySlot ? l("bento-date-range-picker", { attrs: { "allow-time-input": (a = e.options) == null ? void 0 : a.allowTimeInput, value: e.internalFilterValue, "first-day-of-week": (n = e.options) == null ? void 0 : n.firstDayOfWeek, "is-date-disabled": (s = e.options) == null ? void 0 : s.isDateDisabled, "number-of-months": (u = e.options) == null ? void 0 : u.numberOfMonths, "quick-select-ranges": (d = e.options) == null ? void 0 : d.quickSelectRanges }, on: { input: e.onDateInputSelected } }) : [l("div", { staticClass: "b-date-range-filter" }, [l("date-range-picker-calendar", { attrs: { "allow-time-input": (c = e.options) == null ? void 0 : c.allowTimeInput, "first-day-of-week": (y = e.options) == null ? void 0 : y.firstDayOfWeek, "is-date-disabled": (b = e.options) == null ? void 0 : b.isDateDisabled, "max-range": (h = e.options) == null ? void 0 : h.maxRange, "number-of-months": (v = e.options) == null ? void 0 : v.numberOfMonths, "quick-select-ranges": (C = e.options) == null ? void 0 : C.quickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate }, scopedSlots: e._u([{ key: "title", fn: function() {
642
+ return e._self._setupProxy, l("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, field: e.field, label: e.label, "only-slot": e.onlySlot, "fit-content": "" }, on: { open: e.openFilter } }, [e.onlySlot ? l("bento-date-range-picker", { attrs: { "allow-time-input": (a = e.options) == null ? void 0 : a.allowTimeInput, value: e.internalFilterValue, "first-day-of-week": (n = e.options) == null ? void 0 : n.firstDayOfWeek, "is-date-disabled": (s = e.options) == null ? void 0 : s.isDateDisabled, "number-of-months": (u = e.options) == null ? void 0 : u.numberOfMonths, "quick-select-ranges": (d = e.options) == null ? void 0 : d.quickSelectRanges }, on: { input: e.onDateInputSelected } }) : [l("div", { staticClass: "b-date-range-filter" }, [l("date-range-picker-calendar", { attrs: { "allow-time-input": (c = e.options) == null ? void 0 : c.allowTimeInput, "first-day-of-week": (p = e.options) == null ? void 0 : p.firstDayOfWeek, "is-date-disabled": (_ = e.options) == null ? void 0 : _.isDateDisabled, "max-range": (F = e.options) == null ? void 0 : F.maxRange, "number-of-months": (v = e.options) == null ? void 0 : v.numberOfMonths, "quick-select-ranges": (h = e.options) == null ? void 0 : h.quickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate }, scopedSlots: e._u([{ key: "title", fn: function() {
642
643
  return [l("bento-typography", { attrs: { strongest: "", variant: "body", el: "span" } }, [e._v(" " + e._s(e.label) + " ")])];
643
644
  }, proxy: !0 }, { key: "actions", fn: function() {
644
645
  return [l("bento-divider", { staticClass: "b-date-range-filter__divider" }), l("bento-button-actions", { staticClass: "b-date-range-filter__actions", attrs: { actions: e.actions, layout: "space-between" } })];
645
646
  }, proxy: !0 }]) })], 1)]], 2);
646
- }, Ot = [], Nt = /* @__PURE__ */ D(
647
+ }, Ot = [], Nt = /* @__PURE__ */ U(
647
648
  Vt,
648
649
  Lt,
649
650
  Ot,
@@ -653,7 +654,7 @@ var Lt = function() {
653
654
  null,
654
655
  null
655
656
  );
656
- const Re = Nt.exports, wt = {
657
+ const $e = Nt.exports, wt = {
657
658
  "en-US": {
658
659
  all: "All",
659
660
  noFiltersMatchThisSearch: "No filters match this search",
@@ -665,8 +666,8 @@ const Re = Nt.exports, wt = {
665
666
  name: "bento-select-filter",
666
667
  components: {
667
668
  BentoBaseFilter: Q,
668
- BentoDropdown: at,
669
- BentoListbox: dt,
669
+ BentoDropdown: lt,
670
+ BentoListbox: ct,
670
671
  BentoSearchBar: le
671
672
  },
672
673
  props: {
@@ -708,127 +709,127 @@ const Re = Nt.exports, wt = {
708
709
  },
709
710
  emits: [i.INPUT, i.UPDATE],
710
711
  setup(t, { emit: e, slots: l }) {
711
- var z, Z;
712
+ var Y, J;
712
713
  const { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = X(
713
- I(t, "value"),
714
- I(t, "defaultValue")
715
- ), { t: u, locale: d } = G(), c = $(""), y = I(t, "options"), b = $(t.options.listboxItems);
716
- te(y, () => {
717
- b.value = y.value.listboxItems;
714
+ R(t, "value"),
715
+ R(t, "defaultValue")
716
+ ), { t: u, locale: d } = W(), c = I(""), p = R(t, "options"), _ = I(t.options.listboxItems);
717
+ te(p, () => {
718
+ _.value = p.value.listboxItems;
718
719
  });
719
- const h = Te(
720
+ const F = De(
720
721
  c,
721
- b,
722
- (Z = (z = t.options) == null ? void 0 : z.search) == null ? void 0 : Z.searchEvent
723
- ), v = r(() => u("noFiltersMatchThisSearch")), C = r(() => {
724
- var R, E, P, L;
722
+ _,
723
+ (J = (Y = t.options) == null ? void 0 : Y.search) == null ? void 0 : J.searchEvent
724
+ ), v = r(() => u("noFiltersMatchThisSearch")), h = r(() => {
725
+ var k, E, P, O;
725
726
  if (t.defaultValue === null)
726
727
  return t.label;
727
728
  if (t.options.multiple) {
728
- const k = (R = t.value) == null ? void 0 : R.length;
729
- if (k === t.options.listboxItems.length)
729
+ const V = (k = t.value) == null ? void 0 : k.length;
730
+ if (V === t.options.listboxItems.length)
730
731
  return (E = t == null ? void 0 : t.options) == null ? void 0 : E.messages[d.value].persistentButtonLabelAllSelected;
731
- const _ = (P = t == null ? void 0 : t.options) == null ? void 0 : P.messages[d.value].persistentButtonLabelPartiallySelected.split("|").map((M) => M.trim());
732
- return k === 1 ? _[0].replace("{count}", k) : _[1].replace("{count}", k);
732
+ const f = (P = t == null ? void 0 : t.options) == null ? void 0 : P.messages[d.value].persistentButtonLabelPartiallySelected.split("|").map((M) => M.trim());
733
+ return V === 1 ? f[0].replace("{count}", V) : f[1].replace("{count}", V);
733
734
  }
734
- return J((L = t.options.listboxItems.find(({ value: k }) => k === t.value)) == null ? void 0 : L.label, 18);
735
- }), B = r(() => {
736
- var R, E;
737
- return t.defaultValue === null && (!t.options.multiple || ((R = t.value) == null ? void 0 : R.length) === 1) ? J(
735
+ return K((O = t.options.listboxItems.find(({ value: V }) => V === t.value)) == null ? void 0 : O.label, 18);
736
+ }), D = r(() => {
737
+ var k, E;
738
+ return t.defaultValue === null && (!t.options.multiple || ((k = t.value) == null ? void 0 : k.length) === 1) ? K(
738
739
  (E = t.options.listboxItems.find(
739
740
  ({ value: P }) => {
740
- var L;
741
- return Array.isArray(t.value) ? (L = t == null ? void 0 : t.value) == null ? void 0 : L.includes(P) : P === t.value;
741
+ var O;
742
+ return Array.isArray(t.value) ? (O = t == null ? void 0 : t.value) == null ? void 0 : O.includes(P) : P === t.value;
742
743
  }
743
744
  )) == null ? void 0 : E.label,
744
745
  12
745
746
  ) : null;
746
- }), F = r(() => ie(`filter-listbox-${t.field}`)), p = (R) => {
747
- a.value = R;
747
+ }), B = r(() => ie(`filter-listbox-${t.field}`)), m = (k) => {
748
+ a.value = k;
748
749
  const { onlySlot: E, ...P } = t;
749
750
  e(i.INPUT, { ...P, value: a.value });
750
- }, T = () => {
751
+ }, g = () => {
751
752
  var P;
752
753
  t.options.multiple && a.value && ((P = a.value) == null ? void 0 : P.length) === 0 && (a.value = t.defaultValue !== null ? t.defaultValue : void 0);
753
- const { onlySlot: R, ...E } = t;
754
+ const { onlySlot: k, ...E } = t;
754
755
  e(i.UPDATE, { ...E, value: a.value });
755
- }, w = () => {
756
+ }, T = () => {
756
757
  a.value = t.value;
757
- }, m = () => {
758
+ }, y = () => {
758
759
  c.value && (c.value = "");
759
- }, f = () => {
760
- a.value = t.defaultValue, T();
760
+ }, b = () => {
761
+ a.value = t.defaultValue, g();
761
762
  }, A = () => {
762
- a.value = null, T();
763
+ a.value = null, g();
763
764
  };
764
765
  return {
765
766
  // Values
766
767
  appliedFiltersCount: r(() => {
767
- var P, L;
768
+ var P, O;
768
769
  if (t.value == null || t.defaultValue !== null || !t.options.multiple)
769
770
  return null;
770
- const R = (P = t.options.listboxItems) == null ? void 0 : P.reduce((k, _) => {
771
+ const k = (P = t.options.listboxItems) == null ? void 0 : P.reduce((V, f) => {
771
772
  var M;
772
- return k += (M = _ == null ? void 0 : _.items) != null && M.length ? _.items.length : 1, k;
773
- }, 0), E = (L = t.value) == null ? void 0 : L.length;
774
- return E === 1 ? null : E === R ? u("all") : E;
773
+ return V += (M = f == null ? void 0 : f.items) != null && M.length ? f.items.length : 1, V;
774
+ }, 0), E = (O = t.value) == null ? void 0 : O.length;
775
+ return E === 1 ? null : E === k ? u("all") : E;
775
776
  }),
776
- filteredItems: h,
777
+ filteredItems: F,
777
778
  internalFilterValue: a,
778
779
  isApplyButtonDisabled: s,
779
780
  isSecondaryButtonDisabled: n,
780
- listboxFilterId: F,
781
+ listboxFilterId: B,
781
782
  noResultsMessage: v,
782
783
  slots: l,
783
- buttonLabel: C,
784
- buttonSecondaryLabel: B,
784
+ buttonLabel: h,
785
+ buttonSecondaryLabel: D,
785
786
  // Search
786
787
  searchTerm: c,
787
788
  // Events
788
789
  clearFilter: A,
789
- closeFilter: m,
790
- onOptionSelected: p,
791
- openFilter: w,
792
- updateFilter: T,
793
- resetFilter: f
790
+ closeFilter: y,
791
+ onOptionSelected: m,
792
+ openFilter: T,
793
+ updateFilter: g,
794
+ resetFilter: b
794
795
  };
795
796
  }
796
797
  });
797
798
  var Ht = function() {
798
- var a, n, s, u, d, c, y, b, h, v, C;
799
+ var a, n, s, u, d, c, p, _, F, v, h, D, B;
799
800
  var e = this, l = e._self._c;
800
- return e._self._setupProxy, l("bento-base-filter", { attrs: { "applied-filters-count": e.appliedFiltersCount, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, label: e.label, field: e.field, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, reset: e.resetFilter, open: e.openFilter, close: e.closeFilter } }, [e.onlySlot ? l("bento-dropdown", { staticClass: "b-select-filter__dropdown-variant", attrs: { value: e.internalFilterValue, items: e.options.listboxItems, multiple: (a = e.options) == null ? void 0 : a.multiple, "no-results-message": e.noResultsMessage, searching: !!e.searchTerm, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0 }, on: { input: e.onOptionSelected }, scopedSlots: e._u([e._l(e.slots, function(B, F) {
801
- return { key: F, fn: function(p) {
802
- return [e._t(F, null, null, p)];
801
+ return e._self._setupProxy, l("bento-base-filter", { attrs: { "applied-filters-count": e.appliedFiltersCount, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, label: e.label, field: e.field, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, reset: e.resetFilter, open: e.openFilter, close: e.closeFilter } }, [e.onlySlot ? l("bento-dropdown", { staticClass: "b-select-filter__dropdown-variant", attrs: { value: e.internalFilterValue, items: e.options.listboxItems, multiple: (a = e.options) == null ? void 0 : a.multiple, "no-results-message": e.noResultsMessage, searching: !!e.searchTerm, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0, "empty-state": (n = e.options) == null ? void 0 : n.emptyState }, on: { input: e.onOptionSelected }, scopedSlots: e._u([e._l(e.slots, function(m, g) {
802
+ return { key: g, fn: function(T) {
803
+ return [e._t(g, null, null, T)];
803
804
  } };
804
- })], null, !0) }) : [l("div", { staticClass: "b-select-filter__search-bar" }, [l("bento-search-bar", { attrs: { "debounce-time": (s = (n = e.options) == null ? void 0 : n.search) == null ? void 0 : s.debounceTime, value: e.searchTerm, "input-field-aria-label": e.$t("searchFilter", { filter: e.label.toLocaleLowerCase() }).toString() }, on: { input: function(B) {
805
- e.searchTerm = B;
806
- } } })], 1), l("hr", { staticClass: "b-select-filter__divider" }), l("bento-listbox", { staticClass: "b-select-filter__wrapper", attrs: { id: e.listboxFilterId, "aria-label": e.label, "has-more-items": (d = (u = e.options) == null ? void 0 : u.lazy) == null ? void 0 : d.hasMoreItems, items: e.filteredItems, "is-option-disabled": (c = e.options) == null ? void 0 : c.isOptionDisabled, "lazy-load-type": (b = (y = e.options) == null ? void 0 : y.lazy) == null ? void 0 : b.lazyLoadType, loading: (v = (h = e.options) == null ? void 0 : h.lazy) == null ? void 0 : v.loading, multiple: (C = e.options) == null ? void 0 : C.multiple, "no-results-message": e.noResultsMessage, searching: !!e.searchTerm, "selected-value": e.internalFilterValue }, on: { select: e.onOptionSelected, "show-more": function(B) {
807
- var F, p;
808
- (p = (F = e.options) == null ? void 0 : F.lazy) == null || p.showMoreEvent();
809
- } }, scopedSlots: e._u([e._l(e.slots, function(B, F) {
810
- return { key: F, fn: function(p) {
811
- return [e._t(F, null, null, p)];
805
+ })], null, !0) }) : [l("div", { staticClass: "b-select-filter__search-bar" }, [l("bento-search-bar", { attrs: { "debounce-time": (u = (s = e.options) == null ? void 0 : s.search) == null ? void 0 : u.debounceTime, value: e.searchTerm, "input-field-aria-label": e.$t("searchFilter", { filter: e.label.toLocaleLowerCase() }).toString() }, on: { input: function(m) {
806
+ e.searchTerm = m;
807
+ } } })], 1), l("hr", { staticClass: "b-select-filter__divider" }), l("bento-listbox", { staticClass: "b-select-filter__wrapper", attrs: { id: e.listboxFilterId, "aria-label": e.label, "empty-state": (d = e.options) == null ? void 0 : d.emptyState, "has-more-items": (p = (c = e.options) == null ? void 0 : c.lazy) == null ? void 0 : p.hasMoreItems, items: e.filteredItems, "is-option-disabled": (_ = e.options) == null ? void 0 : _.isOptionDisabled, "lazy-load-type": (v = (F = e.options) == null ? void 0 : F.lazy) == null ? void 0 : v.lazyLoadType, loading: (D = (h = e.options) == null ? void 0 : h.lazy) == null ? void 0 : D.loading, multiple: (B = e.options) == null ? void 0 : B.multiple, "no-results-message": e.noResultsMessage, searching: !!e.searchTerm, "selected-value": e.internalFilterValue }, on: { select: e.onOptionSelected, "show-more": function(m) {
808
+ var g, T;
809
+ (T = (g = e.options) == null ? void 0 : g.lazy) == null || T.showMoreEvent();
810
+ } }, scopedSlots: e._u([e._l(e.slots, function(m, g) {
811
+ return { key: g, fn: function(T) {
812
+ return [e._t(g, null, null, T)];
812
813
  } };
813
814
  })], null, !0) })]], 2);
814
- }, qt = [], jt = /* @__PURE__ */ D(
815
+ }, qt = [], jt = /* @__PURE__ */ U(
815
816
  Mt,
816
817
  Ht,
817
818
  qt,
818
819
  !1,
819
820
  null,
820
- "85cbc599",
821
+ "63e9e788",
821
822
  null,
822
823
  null
823
824
  );
824
- const N = jt.exports, Yt = x({
825
+ const w = jt.exports, Yt = x({
825
826
  name: "bento-select-avatar-filter",
826
827
  components: {
827
- BentoSelectFilter: N,
828
- BentoAvatar: ft
828
+ BentoSelectFilter: w,
829
+ BentoAvatar: dt
829
830
  },
830
831
  props: {
831
- ...N.props,
832
+ ...w.props,
832
833
  /**
833
834
  * List of options that are needed to setup the country filter
834
835
  * Available options:
@@ -855,7 +856,7 @@ var zt = function() {
855
856
  return e._self._setupProxy, l("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ label: a, data: n }) {
856
857
  return [l("bento-avatar", { attrs: { username: a, src: n } })];
857
858
  } }]) }, "bento-select-filter", e.$props, !1));
858
- }, Jt = [], Kt = /* @__PURE__ */ D(
859
+ }, Jt = [], Kt = /* @__PURE__ */ U(
859
860
  Yt,
860
861
  zt,
861
862
  Jt,
@@ -865,14 +866,14 @@ var zt = function() {
865
866
  null,
866
867
  null
867
868
  );
868
- const ke = Kt.exports, Gt = x({
869
+ const Re = Kt.exports, Gt = x({
869
870
  name: "bento-select-country-filter",
870
871
  components: {
871
- BentoSelectFilter: N,
872
- ListboxOptionTag: xe
872
+ BentoSelectFilter: w,
873
+ ListboxOptionTag: Ue
873
874
  },
874
875
  props: {
875
- ...N.props,
876
+ ...w.props,
876
877
  /**
877
878
  * List of options that are needed to setup the country filter
878
879
  * Available options:
@@ -896,29 +897,29 @@ const ke = Kt.exports, Gt = x({
896
897
  };
897
898
  }
898
899
  });
899
- var Zt = function() {
900
+ var Wt = function() {
900
901
  var e = this, l = e._self._c;
901
902
  return e._self._setupProxy, l("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function(a) {
902
903
  return [l("listbox-option-tag", { attrs: { option: a } })];
903
904
  } }]) }, "bento-select-filter", e.$props, !1));
904
- }, Wt = [], Qt = /* @__PURE__ */ D(
905
+ }, Zt = [], Qt = /* @__PURE__ */ U(
905
906
  Gt,
906
- Zt,
907
907
  Wt,
908
+ Zt,
908
909
  !1,
909
910
  null,
910
911
  null,
911
912
  null,
912
913
  null
913
914
  );
914
- const Ve = Qt.exports, Xt = x({
915
+ const ke = Qt.exports, Xt = x({
915
916
  name: "bento-select-country-filter",
916
917
  components: {
917
- BentoSelectFilter: N,
918
- BentoCountry: _t
918
+ BentoSelectFilter: w,
919
+ BentoCountry: ft
919
920
  },
920
921
  props: {
921
- ...N.props,
922
+ ...w.props,
922
923
  /**
923
924
  * List of options that are needed to setup the country filter
924
925
  * Available options:
@@ -933,11 +934,11 @@ const Ve = Qt.exports, Xt = x({
933
934
  },
934
935
  emits: [i.INPUT, i.UPDATE],
935
936
  setup(t, { emit: e }) {
936
- const l = I(t, "options"), { listboxItems: a, variant: n } = Ye(l.value), s = (c) => e(i.UPDATE, c), u = bt(n, a), d = r(() => ({
937
+ const l = R(t, "options"), { listboxItems: a, variant: n } = je(l.value), s = (c) => e(i.UPDATE, c), u = bt(n, a), d = r(() => ({
937
938
  ...t.options,
938
939
  listboxItems: u.value
939
940
  }));
940
- return ze("skipBentoCountryDeprecateMessage", !0), (!n || n.value === "custom") && Ge(
941
+ return Ye("skipBentoCountryDeprecateMessage", !0), (!n || n.value === "custom") && Ke(
941
942
  'BentoSelectCountryFilter type with `options.variant==="custom"`',
942
943
  "Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
943
944
  "2.0.0"
@@ -956,7 +957,7 @@ var el = function() {
956
957
  return e._self._setupProxy, l("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label, options: e.countryOptions }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ value: a, label: n }) {
957
958
  return [l("bento-country", { attrs: { code: a, label: n, variant: "custom" } })];
958
959
  } }]) }, "bento-select-filter", e.$props, !1));
959
- }, tl = [], ll = /* @__PURE__ */ D(
960
+ }, tl = [], ll = /* @__PURE__ */ U(
960
961
  Xt,
961
962
  el,
962
963
  tl,
@@ -966,14 +967,14 @@ var el = function() {
966
967
  null,
967
968
  null
968
969
  );
969
- const Le = ll.exports, al = x({
970
+ const Ve = ll.exports, al = x({
970
971
  name: "bento-select-payment-method-filter",
971
972
  components: {
972
- BentoSelectFilter: N,
973
- BentoPaymentMethod: vt
973
+ BentoSelectFilter: w,
974
+ BentoPaymentMethod: _t
974
975
  },
975
976
  props: {
976
- ...N.props,
977
+ ...w.props,
977
978
  /**
978
979
  * List of options that are needed to setup the payment method filter
979
980
  * Available options:
@@ -1000,7 +1001,7 @@ var nl = function() {
1000
1001
  return e._self._setupProxy, l("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ value: a, label: n }) {
1001
1002
  return [l("bento-payment-method", { attrs: { type: a, label: n } })];
1002
1003
  } }]) }, "bento-select-filter", e.$props, !1));
1003
- }, sl = [], ol = /* @__PURE__ */ D(
1004
+ }, sl = [], ol = /* @__PURE__ */ U(
1004
1005
  al,
1005
1006
  nl,
1006
1007
  sl,
@@ -1010,14 +1011,14 @@ var nl = function() {
1010
1011
  null,
1011
1012
  null
1012
1013
  );
1013
- const Oe = ol.exports, rl = x({
1014
+ const Le = ol.exports, rl = x({
1014
1015
  name: "bento-select-country-filter",
1015
1016
  components: {
1016
- BentoSelectFilter: N,
1017
- ListboxOptionTag: xe
1017
+ BentoSelectFilter: w,
1018
+ ListboxOptionTag: Ue
1018
1019
  },
1019
1020
  props: {
1020
- ...N.props,
1021
+ ...w.props,
1021
1022
  /**
1022
1023
  * List of options that are needed to setup the tag filter
1023
1024
  * Available options:
@@ -1034,7 +1035,7 @@ const Oe = ol.exports, rl = x({
1034
1035
  const l = (s) => e(i.UPDATE, s), a = r(
1035
1036
  () => {
1036
1037
  var s, u;
1037
- return (u = (s = t == null ? void 0 : t.options) == null ? void 0 : s.listboxItems) == null ? void 0 : u.map(({ label: d, value: c, variant: y }) => ({ label: d, value: c, data: y }));
1038
+ return (u = (s = t == null ? void 0 : t.options) == null ? void 0 : s.listboxItems) == null ? void 0 : u.map(({ label: d, value: c, variant: p }) => ({ label: d, value: c, data: p }));
1038
1039
  }
1039
1040
  );
1040
1041
  return {
@@ -1055,7 +1056,7 @@ var il = function() {
1055
1056
  return e._self._setupProxy, l("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label, options: e.countryOptions }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ label: a, data: n }) {
1056
1057
  return [l("listbox-option-tag", { attrs: { option: { value: a, data: n, label: "" } } })];
1057
1058
  } }]) }, "bento-select-filter", e.$props, !1));
1058
- }, ul = [], cl = /* @__PURE__ */ D(
1059
+ }, ul = [], cl = /* @__PURE__ */ U(
1059
1060
  rl,
1060
1061
  il,
1061
1062
  ul,
@@ -1065,7 +1066,7 @@ var il = function() {
1065
1066
  null,
1066
1067
  null
1067
1068
  );
1068
- const Ne = cl.exports, dl = {
1069
+ const Oe = cl.exports, dl = {
1069
1070
  "en-US": {
1070
1071
  yes: "Yes",
1071
1072
  no: "No"
@@ -1073,7 +1074,7 @@ const Ne = cl.exports, dl = {
1073
1074
  }, fl = x({
1074
1075
  name: "bento-boolean-filter",
1075
1076
  i18n: { messages: dl },
1076
- components: { BentoBaseFilter: Q, BentoRadioGroup: Qe },
1077
+ components: { BentoBaseFilter: Q, BentoRadioGroup: Ze },
1077
1078
  props: {
1078
1079
  /**
1079
1080
  * Default value of the filter to reset to.
@@ -1096,32 +1097,41 @@ const Ne = cl.exports, dl = {
1096
1097
  * Renders the base filter's slot content only - leaving out the button and the popover.
1097
1098
  * Used for the allFiltersModal component.
1098
1099
  */
1099
- onlySlot: { type: Boolean, default: !1 }
1100
+ onlySlot: { type: Boolean, default: !1 },
1101
+ /**
1102
+ * List of options that are needed to setup the filter
1103
+ * Available options:
1104
+ * - listboxItems: The option elements to populate the filter with.
1105
+ */
1106
+ options: {
1107
+ type: Object,
1108
+ default: void 0
1109
+ }
1100
1110
  },
1101
1111
  emits: [i.INPUT, i.UPDATE],
1102
1112
  setup(t, { emit: e }) {
1103
- const { t: l } = G(), a = r(() => [
1113
+ const { t: l } = W(), a = r(() => t.options && t.options.positiveOption && t.options.negativeOption ? [t.options.positiveOption, t.options.negativeOption] : [
1104
1114
  { value: "yes", label: l("yes") },
1105
1115
  { value: "no", label: l("no") }
1106
1116
  ]), { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: u } = X(
1107
- I(t, "value"),
1108
- I(t, "defaultValue")
1117
+ R(t, "value"),
1118
+ R(t, "defaultValue")
1109
1119
  ), d = r(
1110
- () => t.defaultValue === null ? t.label : J(a.value.find(({ value: F }) => F === t.value).label, 18)
1120
+ () => t.defaultValue === null ? t.label : K(a.value.find(({ value: B }) => B === t.value).label, 18)
1111
1121
  ), c = r(
1112
1122
  () => {
1113
- var F;
1114
- return t.defaultValue === null ? J((F = a.value.find(({ value: p }) => p === t.value)) == null ? void 0 : F.label, 12) : null;
1123
+ var B;
1124
+ return t.defaultValue === null ? K((B = a.value.find(({ value: m }) => m === t.value)) == null ? void 0 : B.label, 12) : null;
1115
1125
  }
1116
- ), y = r(() => ({
1126
+ ), p = r(() => ({
1117
1127
  ["b-boolean-filter--only-slot"]: t.onlySlot
1118
1128
  }));
1119
1129
  re(() => {
1120
1130
  n.value || (n.value = null);
1121
1131
  });
1122
- const b = (F) => {
1123
- n.value = F, e(i.INPUT, { ...t, value: n.value });
1124
- }, h = () => {
1132
+ const _ = (B) => {
1133
+ n.value = B, e(i.INPUT, { ...t, value: n.value });
1134
+ }, F = () => {
1125
1135
  n.value = t.value;
1126
1136
  }, v = () => {
1127
1137
  e(i.UPDATE, { ...t, value: n.value });
@@ -1129,39 +1139,39 @@ const Ne = cl.exports, dl = {
1129
1139
  return {
1130
1140
  // Values
1131
1141
  items: a,
1132
- conditionalClasses: y,
1142
+ conditionalClasses: p,
1133
1143
  buttonLabel: d,
1134
1144
  buttonSecondaryLabel: c,
1135
1145
  internalFilterValue: n,
1136
1146
  isApplyButtonDisabled: u,
1137
1147
  isSecondaryButtonDisabled: s,
1138
1148
  // Events
1139
- onInput: b,
1149
+ onInput: _,
1140
1150
  updateFilter: v,
1141
1151
  clearFilter: () => {
1142
1152
  n.value = null, v();
1143
1153
  },
1144
- openFilter: h,
1154
+ openFilter: F,
1145
1155
  resetFilter: () => e(i.UPDATE, { ...t, value: t.defaultValue })
1146
1156
  };
1147
1157
  }
1148
1158
  });
1149
- var _l = function() {
1159
+ var bl = function() {
1150
1160
  var e = this, l = e._self._c;
1151
1161
  return e._self._setupProxy, l("bento-base-filter", e._b({ attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [l("div", { staticClass: "b-boolean-filter", class: e.conditionalClasses, on: { keydown: function(a) {
1152
1162
  return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1153
1163
  } } }, [l("bento-radio-group", { attrs: { items: e.items, label: e.label, "model-value": e.internalFilterValue, "hide-label": "" }, on: { "update:model-value": e.onInput } })], 1)]);
1154
- }, bl = [], vl = /* @__PURE__ */ D(
1164
+ }, _l = [], vl = /* @__PURE__ */ U(
1155
1165
  fl,
1156
- _l,
1157
1166
  bl,
1167
+ _l,
1158
1168
  !1,
1159
1169
  null,
1160
- "ff9ced78",
1170
+ "af2f275e",
1161
1171
  null,
1162
1172
  null
1163
1173
  );
1164
- const we = vl.exports, pl = {
1174
+ const Ne = vl.exports, pl = {
1165
1175
  "en-US": {
1166
1176
  from: "From",
1167
1177
  to: "To"
@@ -1169,7 +1179,7 @@ const we = vl.exports, pl = {
1169
1179
  }, yl = x({
1170
1180
  name: "bento-range-filter",
1171
1181
  i18n: { messages: pl },
1172
- components: { BentoBaseFilter: Q, BentoInputField: De },
1182
+ components: { BentoBaseFilter: Q, BentoInputField: Ae },
1173
1183
  props: {
1174
1184
  /**
1175
1185
  * Default value of the filter to reset to.
@@ -1196,30 +1206,30 @@ const we = vl.exports, pl = {
1196
1206
  },
1197
1207
  emits: [i.INPUT, i.UPDATE],
1198
1208
  setup(t, { emit: e }) {
1199
- const l = $(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = X(
1200
- I(t, "value"),
1201
- I(t, "defaultValue")
1209
+ const l = I(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = X(
1210
+ R(t, "value"),
1211
+ R(t, "defaultValue")
1202
1212
  ), u = r(
1203
1213
  () => {
1204
- var T, w;
1205
- return (T = t.value) != null && T[0] && ((w = t.value) != null && w[1]) ? `${J(t.value[0], 5)} - ${J(t.value[1], 5)}` : null;
1214
+ var g, T;
1215
+ return (g = t.value) != null && g[0] && ((T = t.value) != null && T[1]) ? `${K(t.value[0], 5)} - ${K(t.value[1], 5)}` : null;
1206
1216
  }
1207
1217
  ), d = r(
1208
1218
  () => t.defaultValue === null ? t.label : u.value
1209
1219
  ), c = r(
1210
1220
  () => t.defaultValue === null ? u.value : null
1211
- ), y = r(() => ({
1221
+ ), p = r(() => ({
1212
1222
  ["b-range-filter--only-slot"]: t.onlySlot
1213
- })), b = () => {
1214
- a.value = t.value, Je(() => l.value.focusInput());
1215
- }, h = () => {
1223
+ })), _ = () => {
1224
+ a.value = t.value, ze(() => l.value.focusInput());
1225
+ }, F = () => {
1216
1226
  e(i.INPUT, { ...t, value: a.value });
1217
- }, v = (T) => {
1218
- a.value = [T, a.value[1]], h();
1219
- }, C = (T) => {
1220
- a.value = [a.value[0], T], h();
1221
- }, B = () => {
1222
- a.value.some((T) => T) || (a.value = t.defaultValue !== null ? t.defaultValue : void 0), e(i.UPDATE, {
1227
+ }, v = (g) => {
1228
+ a.value = [g, a.value[1]], F();
1229
+ }, h = (g) => {
1230
+ a.value = [a.value[0], g], F();
1231
+ }, D = () => {
1232
+ a.value.some((g) => g) || (a.value = t.defaultValue !== null ? t.defaultValue : void 0), e(i.UPDATE, {
1223
1233
  ...t,
1224
1234
  value: a.value
1225
1235
  });
@@ -1227,7 +1237,7 @@ const we = vl.exports, pl = {
1227
1237
  return {
1228
1238
  // Values
1229
1239
  inputTextRef: l,
1230
- conditionalClasses: y,
1240
+ conditionalClasses: p,
1231
1241
  internalFilterValue: a,
1232
1242
  isApplyButtonDisabled: s,
1233
1243
  isSecondaryButtonDisabled: n,
@@ -1235,12 +1245,12 @@ const we = vl.exports, pl = {
1235
1245
  buttonSecondaryLabel: c,
1236
1246
  // Events
1237
1247
  updateFrom: v,
1238
- updateTo: C,
1239
- updateFilter: B,
1248
+ updateTo: h,
1249
+ updateFilter: D,
1240
1250
  clearFilter: () => {
1241
- a.value = ["", ""], B();
1251
+ a.value = ["", ""], D();
1242
1252
  },
1243
- openFilter: b,
1253
+ openFilter: _,
1244
1254
  resetFilter: () => e(i.UPDATE, { ...t, value: t.defaultValue })
1245
1255
  };
1246
1256
  }
@@ -1250,7 +1260,7 @@ var ml = function() {
1250
1260
  return e._self._setupProxy, l("bento-base-filter", e._b({ attrs: { "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [l("div", { staticClass: "b-range-filter", class: e.conditionalClasses, on: { keydown: function(a) {
1251
1261
  return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1252
1262
  } } }, [l("bento-input-field", { ref: "inputTextRef", attrs: { value: e.internalFilterValue ? e.internalFilterValue[0] : "", type: "number", "aria-label": e.$t("from").toString() }, on: { input: e.updateFrom } }, [e._v(" " + e._s(e.$t("from")) + " ")]), l("bento-input-field", { staticClass: "b-range-filter__input-field", attrs: { value: e.internalFilterValue ? e.internalFilterValue[1] : "", type: "number", "aria-label": e.$t("to").toString() }, on: { input: e.updateTo } }, [e._v(" " + e._s(e.$t("to")) + " ")])], 1)]);
1253
- }, Fl = [], hl = /* @__PURE__ */ D(
1263
+ }, Fl = [], hl = /* @__PURE__ */ U(
1254
1264
  yl,
1255
1265
  ml,
1256
1266
  Fl,
@@ -1260,11 +1270,11 @@ var ml = function() {
1260
1270
  null,
1261
1271
  null
1262
1272
  );
1263
- const Me = hl.exports;
1273
+ const we = hl.exports;
1264
1274
  var oe = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(oe || {});
1265
1275
  const Cl = x({
1266
1276
  name: "base-filter-button",
1267
- components: { BaseButton: Ce, BentoTypography: ae, ChevronUpIcon: Be, ChevronDownIcon: Ae },
1277
+ components: { BaseButton: he, BentoTypography: ae, ChevronUpIcon: Se, ChevronDownIcon: Be },
1268
1278
  props: {
1269
1279
  /**
1270
1280
  * The number of applies values within the filter.
@@ -1291,10 +1301,10 @@ const Cl = x({
1291
1301
  },
1292
1302
  emits: [fe.CLICK],
1293
1303
  setup(t, { slots: e, emit: l, attrs: a }) {
1294
- const n = r(() => e.default ? ge(e)("default") : null), s = he({ ariaLabel: n }), u = $(null), d = r(() => {
1295
- var b;
1304
+ const n = r(() => e.default ? Ce(e)("default") : null), s = Fe({ ariaLabel: n }), u = I(null), d = r(() => {
1305
+ var _;
1296
1306
  return {
1297
- "aria-controls": (b = a["aria-controls"]) == null ? void 0 : b.toString()
1307
+ "aria-controls": (_ = a["aria-controls"]) == null ? void 0 : _.toString()
1298
1308
  };
1299
1309
  }), c = r(() => ({
1300
1310
  ["b-base-filter-button--with-chevron"]: t.hasChevron,
@@ -1309,7 +1319,7 @@ const Cl = x({
1309
1319
  onClickButton: () => {
1310
1320
  t.disabled || l(fe.CLICK);
1311
1321
  },
1312
- hasSlot: Se(e),
1322
+ hasSlot: ge(e),
1313
1323
  // Refs
1314
1324
  baseFilterButtonRef: u
1315
1325
  };
@@ -1320,7 +1330,7 @@ var gl = function() {
1320
1330
  return e._self._setupProxy, l("base-button", { ref: "baseFilterButtonRef", staticClass: "b-base-filter-button", class: e.conditionalClasses, attrs: { disabled: e.disabled, "aria-label": e.computedAriaLabel, "aria-controls": e.ariaAttributes["aria-controls"], type: "button" }, on: { click: e.onClickButton }, scopedSlots: e._u([e.hasChevron ? { key: "iconRight", fn: function() {
1321
1331
  return [e.isFilterOpen ? l("chevron-up-icon", { attrs: { "aria-hidden": "true" } }) : l("chevron-down-icon", { attrs: { "aria-hidden": "true" } })];
1322
1332
  }, proxy: !0 } : null], null, !0) }, [l("div", { staticClass: "b-base-filter-button__default-container" }, [l("div", { staticClass: "b-base-filter-button__label-container" }, [l("bento-typography", { staticClass: "b-base-filter-button__label", attrs: { el: "span", variant: "body", stronger: e.bold } }, [e._t("default")], 2)], 1), e.amountAppliedValues && !e.hasChevron ? l("div", { staticClass: "b-base-filter-button__counter-wrapper" }, [l("bento-typography", { staticClass: "b-base-filter-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.amountAppliedValues) + " ")])], 1) : e._e()])]);
1323
- }, Sl = [], Bl = /* @__PURE__ */ D(
1333
+ }, Sl = [], Bl = /* @__PURE__ */ U(
1324
1334
  Cl,
1325
1335
  gl,
1326
1336
  Sl,
@@ -1367,7 +1377,7 @@ const Al = Bl.exports, Dl = x({
1367
1377
  var Tl = function() {
1368
1378
  var e = this, l = e._self._c;
1369
1379
  return e._self._setupProxy, l("base-filter-button", { staticClass: "b-all-filters-modal-button", class: e.conditionalClasses, attrs: { "amount-applied-values": e.appliedFiltersCount, "is-filter-open": e.isFilterOpen, disabled: e.disabled }, on: { click: e.onClick } }, [e._v(" " + e._s(e.label) + " ")]);
1370
- }, El = [], Pl = /* @__PURE__ */ D(
1380
+ }, El = [], Pl = /* @__PURE__ */ U(
1371
1381
  Dl,
1372
1382
  Tl,
1373
1383
  El,
@@ -1377,20 +1387,20 @@ var Tl = function() {
1377
1387
  null,
1378
1388
  null
1379
1389
  );
1380
- const $l = Pl.exports;
1390
+ const Ul = Pl.exports;
1381
1391
  let ye = 0;
1382
- const xl = {
1392
+ const Il = {
1383
1393
  beforeCreate() {
1384
1394
  this.uuid = ye.toString(), ye += 1;
1385
1395
  }
1386
1396
  };
1387
- var Ul = function() {
1397
+ var xl = function() {
1388
1398
  var e = this, l = e._self._c;
1389
1399
  return l("svg", e._b({ 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: "#00112C", "fill-rule": "evenodd", d: "M12.6465 4.58337C12.32 3.42912 11.2588 2.58337 10 2.58337C8.74122 2.58337 7.67998 3.42912 7.35352 4.58337H2C1.58579 4.58337 1.25 4.91916 1.25 5.33337C1.25 5.74759 1.58579 6.08337 2 6.08337H7.35352C7.67998 7.23763 8.74122 8.08337 10 8.08337C11.2588 8.08337 12.32 7.23763 12.6465 6.08337H14C14.4142 6.08337 14.75 5.74759 14.75 5.33337C14.75 4.91916 14.4142 4.58337 14 4.58337H12.6465ZM11.25 5.33337C11.25 4.64302 10.6904 4.08337 10 4.08337C9.30964 4.08337 8.75 4.64302 8.75 5.33337C8.75 6.02373 9.30964 6.58337 10 6.58337C10.6904 6.58337 11.25 6.02373 11.25 5.33337Z", "clip-rule": "evenodd" } }), l("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M4 7.91675C5.25878 7.91675 6.32002 8.7625 6.64648 9.91675H14C14.4142 9.91675 14.75 10.2525 14.75 10.6667C14.75 11.081 14.4142 11.4167 14 11.4167H6.64648C6.32002 12.571 5.25878 13.4167 4 13.4167C2.48122 13.4167 1.25 12.1855 1.25 10.6667C1.25 9.14796 2.48122 7.91675 4 7.91675ZM5.25 10.6667C5.25 9.97639 4.69036 9.41675 4 9.41675C3.30964 9.41675 2.75 9.97639 2.75 10.6667C2.75 11.3571 3.30964 11.9167 4 11.9167C4.69036 11.9167 5.25 11.3571 5.25 10.6667Z", "clip-rule": "evenodd" } })]);
1390
- }, Il = [], Rl = /* @__PURE__ */ D(
1391
- xl,
1392
- Ul,
1400
+ }, $l = [], Rl = /* @__PURE__ */ U(
1393
1401
  Il,
1402
+ xl,
1403
+ $l,
1394
1404
  !1,
1395
1405
  null,
1396
1406
  "6a35173c",
@@ -1414,21 +1424,21 @@ const kl = Rl.exports, Vl = {
1414
1424
  i18n: { messages: Vl },
1415
1425
  name: "all-filters-modal",
1416
1426
  components: {
1417
- AllFiltersModalButton: $l,
1418
- BentoBooleanFilter: we,
1419
- BentoButton: lt,
1420
- BentoDateFilter: Ie,
1421
- BentoDateRangeFilter: Re,
1422
- BentoInputFilter: Ue,
1423
- BentoModal: et,
1424
- BentoRangeFilter: Me,
1427
+ AllFiltersModalButton: Ul,
1428
+ BentoBooleanFilter: Ne,
1429
+ BentoButton: tt,
1430
+ BentoDateFilter: xe,
1431
+ BentoDateRangeFilter: $e,
1432
+ BentoInputFilter: Ie,
1433
+ BentoModal: Xe,
1434
+ BentoRangeFilter: we,
1425
1435
  BentoSearchBar: le,
1426
- BentoSelectAvatarFilter: ke,
1427
- BentoSelectCurrencyFilter: Ve,
1428
- BentoSelectCountryFilter: Le,
1429
- BentoSelectFilter: N,
1430
- BentoSelectPaymentMethodFilter: Oe,
1431
- BentoSelectTagFilter: Ne,
1436
+ BentoSelectAvatarFilter: Re,
1437
+ BentoSelectCurrencyFilter: ke,
1438
+ BentoSelectCountryFilter: Ve,
1439
+ BentoSelectFilter: w,
1440
+ BentoSelectPaymentMethodFilter: Le,
1441
+ BentoSelectTagFilter: Oe,
1432
1442
  BentoTypography: ae,
1433
1443
  FilterBarButton: ue,
1434
1444
  SlidersIcon: kl
@@ -1461,9 +1471,9 @@ const kl = Rl.exports, Vl = {
1461
1471
  },
1462
1472
  emits: [oe.INPUT],
1463
1473
  setup(t, { emit: e }) {
1464
- const l = Fe({ value: t.value }), a = ie("all-filters-modal"), n = $([]), s = $(!1), u = $(0), d = $(null), c = $(""), { t: y } = G(), b = Te(c, I(l, "value")), h = $({});
1474
+ const l = me({ value: t.value }), a = ie("all-filters-modal"), n = I([]), s = I(!1), u = I(0), d = I(null), c = I(""), { t: p } = W(), _ = De(c, R(l, "value")), F = I({});
1465
1475
  re(() => {
1466
- h.value = [];
1476
+ F.value = [];
1467
1477
  }), te(
1468
1478
  () => t.value,
1469
1479
  () => {
@@ -1472,53 +1482,53 @@ const kl = Rl.exports, Vl = {
1472
1482
  );
1473
1483
  const v = (o) => (
1474
1484
  /* eslint-disable-next-line no-nested-ternary */
1475
- o.sort((g, S) => g.label > S.label ? 1 : S.label > g.label ? -1 : 0)
1476
- ), C = r(
1485
+ o.sort((C, S) => C.label > S.label ? 1 : S.label > C.label ? -1 : 0)
1486
+ ), h = r(
1477
1487
  () => v(
1478
- b.value.filter(
1488
+ _.value.filter(
1479
1489
  (o) => {
1480
- var g, S;
1481
- return Array.isArray(o.value) ? ((g = o.value) == null ? void 0 : g.length) && ((S = o.value) == null ? void 0 : S.find((U) => U !== "")) : o.value;
1490
+ var C, S;
1491
+ return Array.isArray(o.value) ? ((C = o.value) == null ? void 0 : C.length) && ((S = o.value) == null ? void 0 : S.find(($) => $ !== "")) : o.value;
1482
1492
  }
1483
1493
  )
1484
1494
  )
1485
- ), B = r(
1495
+ ), D = r(
1486
1496
  () => v(
1487
- b.value.filter(
1497
+ _.value.filter(
1488
1498
  (o) => {
1489
- var g, S;
1490
- return Array.isArray(o.value) ? ((g = o.value) == null ? void 0 : g.length) === 0 || ((S = o.value) == null ? void 0 : S.every((U) => U === "")) : !o.value;
1499
+ var C, S;
1500
+ return Array.isArray(o.value) ? ((C = o.value) == null ? void 0 : C.length) === 0 || ((S = o.value) == null ? void 0 : S.every(($) => $ === "")) : !o.value;
1491
1501
  }
1492
1502
  )
1493
1503
  )
1494
- ), F = r(() => {
1504
+ ), B = r(() => {
1495
1505
  var o;
1496
- return c.value && ((o = b.value) == null ? void 0 : o.length) === 0;
1497
- }), p = r(() => l.value[u.value]), T = () => {
1498
- const o = C.value.length ? C.value[0] : B.value[0], g = l.value.findIndex(
1506
+ return c.value && ((o = _.value) == null ? void 0 : o.length) === 0;
1507
+ }), m = r(() => l.value[u.value]), g = () => {
1508
+ const o = h.value.length ? h.value[0] : D.value[0], C = l.value.findIndex(
1499
1509
  (S) => S.label === o.label && S.field === o.field
1500
1510
  );
1501
- u.value = g;
1511
+ u.value = C;
1502
1512
  };
1503
- Ke(() => {
1504
- T();
1513
+ Je(() => {
1514
+ g();
1505
1515
  });
1506
- const w = r(
1516
+ const T = r(
1507
1517
  () => l.value.map((o) => {
1508
- var g, S, U, j, H, ce;
1518
+ var C, S, $, j, H, ce;
1509
1519
  switch (o.type) {
1510
- case O.SELECT:
1511
- case O.SELECT_AVATAR:
1512
- case O.SELECT_COUNTRY:
1513
- case O.SELECT_CURRENCY:
1514
- case O.SELECT_PAYMENT_METHOD:
1515
- case O.SELECT_TAG:
1516
- switch ((g = o.options) == null ? void 0 : g.multiple) {
1520
+ case N.SELECT:
1521
+ case N.SELECT_AVATAR:
1522
+ case N.SELECT_COUNTRY:
1523
+ case N.SELECT_CURRENCY:
1524
+ case N.SELECT_PAYMENT_METHOD:
1525
+ case N.SELECT_TAG:
1526
+ switch ((C = o.options) == null ? void 0 : C.multiple) {
1517
1527
  case !0:
1518
1528
  return {
1519
1529
  label: o.label,
1520
1530
  field: o.field,
1521
- count: (S = o.value) != null && S.length ? (U = o.value) == null ? void 0 : U.length : null
1531
+ count: (S = o.value) != null && S.length ? ($ = o.value) == null ? void 0 : $.length : null
1522
1532
  };
1523
1533
  default:
1524
1534
  return {
@@ -1527,21 +1537,21 @@ const kl = Rl.exports, Vl = {
1527
1537
  count: o.value == null ? null : 1
1528
1538
  };
1529
1539
  }
1530
- case O.DATE_RANGE:
1540
+ case N.DATE_RANGE:
1531
1541
  return {
1532
1542
  label: o.label,
1533
1543
  field: o.field,
1534
1544
  count: ((j = o.value) == null ? void 0 : j.startDate) != null && ((H = o.value) == null ? void 0 : H.endDate) != null ? 1 : null
1535
1545
  };
1536
- case O.RANGE:
1546
+ case N.RANGE:
1537
1547
  return {
1538
1548
  label: o.label,
1539
1549
  field: o.field,
1540
- count: (ce = o.value) != null && ce.find((He) => He !== "") ? 1 : null
1550
+ count: (ce = o.value) != null && ce.find((Me) => Me !== "") ? 1 : null
1541
1551
  };
1542
- case O.INPUT:
1543
- case O.BOOLEAN:
1544
- case O.DATE:
1552
+ case N.INPUT:
1553
+ case N.BOOLEAN:
1554
+ case N.DATE:
1545
1555
  default:
1546
1556
  return {
1547
1557
  label: o.label,
@@ -1550,100 +1560,100 @@ const kl = Rl.exports, Vl = {
1550
1560
  };
1551
1561
  }
1552
1562
  })
1553
- ), m = r(
1563
+ ), y = r(
1554
1564
  () => {
1555
1565
  var o;
1556
- return Array.isArray(p.value.value) ? ((o = p.value) == null ? void 0 : o.value.length) && p.value.value.find((g) => g !== "") : !!l.value[u.value].value;
1566
+ return Array.isArray(m.value.value) ? ((o = m.value) == null ? void 0 : o.value.length) && m.value.value.find((C) => C !== "") : !!l.value[u.value].value;
1557
1567
  }
1558
- ), f = r(
1568
+ ), b = r(
1559
1569
  () => {
1560
1570
  var o;
1561
1571
  return (
1562
1572
  // eslint-disable-next-line no-return-assign, no-param-reassign
1563
- (o = w.value) == null ? void 0 : o.reduce((g, S) => g += S.count, 0)
1573
+ (o = T.value) == null ? void 0 : o.reduce((C, S) => C += S.count, 0)
1564
1574
  );
1565
1575
  }
1566
1576
  ), A = () => {
1567
1577
  s.value ? s.value = !1 : s.value = !0;
1568
- }, V = (o) => {
1569
- var S, U, j;
1570
- const g = w.value.find((H) => H.field === o.field).count;
1571
- return o.type.includes("BentoSelect") && ((S = o.options) != null && S.multiple) && g === ((j = (U = o.options) == null ? void 0 : U.listboxItems) == null ? void 0 : j.length) ? y("all") : g;
1572
- }, z = (o, g) => {
1578
+ }, L = (o) => {
1579
+ var S, $, j;
1580
+ const C = T.value.find((H) => H.field === o.field).count;
1581
+ return o.type.includes("BentoSelect") && ((S = o.options) != null && S.multiple) && C === ((j = ($ = o.options) == null ? void 0 : $.listboxItems) == null ? void 0 : j.length) ? p("all") : C;
1582
+ }, Y = (o, C) => {
1573
1583
  u.value = l.value.findIndex(
1574
- (S) => S.label === o && S.field === g
1584
+ (S) => S.label === o && S.field === C
1575
1585
  );
1576
- }, Z = () => {
1586
+ }, J = () => {
1577
1587
  c.value = "";
1578
- }, R = () => {
1579
- s.value = !1, l.value = t.value, Z(), T();
1588
+ }, k = () => {
1589
+ s.value = !1, l.value = t.value, J(), g();
1580
1590
  }, E = (o) => {
1581
- const g = l.value.map(({ value: S, ...U }, j) => j === u.value ? { value: o.value, ...U } : { value: S, ...U });
1582
- l.value = g;
1591
+ const C = l.value.map(({ value: S, ...$ }, j) => j === u.value ? { value: o.value, ...$ } : { value: S, ...$ });
1592
+ l.value = C;
1583
1593
  }, P = () => {
1584
1594
  E({
1585
- field: p.value.field,
1586
- label: p.value.label,
1587
- type: p.value.type,
1595
+ field: m.value.field,
1596
+ label: m.value.label,
1597
+ type: m.value.type,
1588
1598
  value: void 0
1589
1599
  });
1590
- }, L = () => {
1591
- l.value = l.value.map(({ value: o, ...g }) => ({
1592
- ...g,
1600
+ }, O = () => {
1601
+ l.value = l.value.map(({ value: o, ...C }) => ({
1602
+ ...C,
1593
1603
  value: void 0
1594
1604
  }));
1595
- }, k = () => {
1605
+ }, V = () => {
1596
1606
  e(oe.INPUT, l.value), s.value = !1;
1597
- }, _ = r(
1607
+ }, f = r(
1598
1608
  () => JSON.stringify(l.value) === JSON.stringify(t.value)
1599
1609
  ), M = r(() => [
1600
1610
  {
1601
- title: y("applyAll"),
1602
- disabled: _.value,
1603
- event: k
1611
+ title: p("applyAll"),
1612
+ disabled: f.value,
1613
+ event: V
1604
1614
  },
1605
1615
  {
1606
- title: y("cancel"),
1607
- event: R
1616
+ title: p("cancel"),
1617
+ event: k
1608
1618
  },
1609
1619
  {
1610
- title: y("clearAll"),
1611
- disabled: !f.value,
1612
- event: L
1620
+ title: p("clearAll"),
1621
+ disabled: !b.value,
1622
+ event: O
1613
1623
  }
1614
1624
  ]);
1615
1625
  return {
1616
1626
  // Enums
1617
- BentoModalEvent: tt,
1627
+ BentoModalEvent: et,
1618
1628
  // Values
1619
1629
  allFiltersModalUniqueId: a,
1620
1630
  allFiltersModalFiltersSection: n,
1621
- allFiltersModalFilterButtons: h,
1622
- numberOfActiveFilters: f,
1623
- isEmptyResultForSearchFilter: F,
1631
+ allFiltersModalFilterButtons: F,
1632
+ numberOfActiveFilters: b,
1633
+ isEmptyResultForSearchFilter: B,
1624
1634
  isModalOpen: s,
1625
- isClearButtonEnabled: m,
1626
- activeFilters: C,
1627
- otherFilters: B,
1635
+ isClearButtonEnabled: y,
1636
+ activeFilters: h,
1637
+ otherFilters: D,
1628
1638
  modalActions: M,
1629
- selectedFilter: p,
1639
+ selectedFilter: m,
1630
1640
  selectedFilterRef: d,
1631
1641
  filters: l,
1632
- computedCounts: w,
1642
+ computedCounts: T,
1633
1643
  searchTerm: c,
1634
1644
  // Methods
1635
1645
  onClickAllFiltersModal: A,
1636
- getFilterCount: V,
1637
- cancel: R,
1638
- selectFilter: z,
1646
+ getFilterCount: L,
1647
+ cancel: k,
1648
+ selectFilter: Y,
1639
1649
  clearFilter: P,
1640
1650
  updateFilter: E,
1641
- onSearchbarClear: Z,
1651
+ onSearchbarClear: J,
1642
1652
  onKeydownRight: () => {
1643
- nt(1, d.value.$el).focus();
1653
+ at(1, d.value.$el).focus();
1644
1654
  },
1645
1655
  onKeydownLeft: () => {
1646
- h.value[p.value.label].$el.focus();
1656
+ F.value[m.value.label].$el.focus();
1647
1657
  }
1648
1658
  };
1649
1659
  }
@@ -1673,7 +1683,7 @@ var Ol = function() {
1673
1683
  return !a.type.indexOf("key") && e._k(a.keyCode, "left", 37, a.key, ["Left", "ArrowLeft"]) || "button" in a && a.button !== 0 ? null : e.onKeydownLeft.apply(null, arguments);
1674
1684
  } } }, [l("div", { staticClass: "b-all-filters-modal__selected-filter-text" }, [l("bento-typography", { attrs: { el: "div", variant: "title", medium: "" } }, [e._v(e._s(e.selectedFilter.label))]), e.selectedFilter.description ? l("bento-typography", { attrs: { el: "div", variant: "body", wide: "" } }, [e._v(" " + e._s(e.selectedFilter.description) + " ")]) : e._e()], 1), l("div", { staticClass: "b-all-filters-modal__selected-filter-component" }, [l(e.selectedFilter.type, { key: e.selectedFilter.field, ref: "selectedFilterRef", tag: "component", attrs: { field: e.selectedFilter.field, label: e.selectedFilter.label, options: e.selectedFilter.options, value: e.selectedFilter.value, "default-value": e.selectedFilter.defaultValue, "only-slot": !0 }, on: { input: e.updateFilter } })], 1), l("div", { staticClass: "b-all-filters-modal__clear-button" }, [l("bento-button", { attrs: { variant: "secondary", disabled: !e.isClearButtonEnabled }, on: { click: e.clearFilter } }, [e._v(e._s(e.$t("clear")))])], 1)])];
1675
1685
  }, proxy: !0 }]) })], 1);
1676
- }, Nl = [], wl = /* @__PURE__ */ D(
1686
+ }, Nl = [], wl = /* @__PURE__ */ U(
1677
1687
  Ll,
1678
1688
  Ol,
1679
1689
  Nl,
@@ -1683,27 +1693,7 @@ var Ol = function() {
1683
1693
  null,
1684
1694
  null
1685
1695
  );
1686
- const Ml = wl.exports;
1687
- let me = 0;
1688
- const Hl = {
1689
- beforeCreate() {
1690
- this.uuid = me.toString(), me += 1;
1691
- }
1692
- };
1693
- var ql = function() {
1694
- var e = this, l = e._self._c;
1695
- return l("svg", e._b({ 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: "#00112C", "fill-rule": "evenodd", d: "M14 1.25C14.4142 1.25 14.75 1.58579 14.75 2V6C14.75 6.41421 14.4142 6.75 14 6.75H13.6783C13.6661 6.7503 13.6539 6.7503 13.6418 6.75H10C9.58579 6.75 9.25 6.41421 9.25 6C9.25 5.58579 9.58579 5.25 10 5.25H12.4738C12.0646 4.58631 11.51 4.018 10.8465 3.59097C9.86926 2.96199 8.71093 2.67505 7.55308 2.77512C6.39523 2.8752 5.30331 3.35663 4.44847 4.14395C3.59363 4.93128 3.0242 5.97999 2.82942 7.12572C2.82642 7.14333 2.82284 7.16069 2.81868 7.17779C2.75208 7.59699 2.73609 8.02569 2.77328 8.45478C2.88357 9.72739 3.45406 10.9161 4.37787 11.7983C5.30168 12.6805 6.51543 13.1956 7.79177 13.2472C9.06811 13.2988 10.3195 12.8832 11.3114 12.0784C12.3034 11.2736 12.9679 10.1347 13.1805 8.87518C13.2494 8.46674 13.6364 8.19152 14.0448 8.26046C14.4533 8.32939 14.7285 8.71637 14.6595 9.12481C14.3862 10.7443 13.5319 12.2085 12.2565 13.2432C10.9811 14.278 9.37223 14.8123 7.73123 14.746C6.09022 14.6797 4.52968 14.0174 3.34192 12.8831C2.15417 11.7489 1.42069 10.2205 1.27888 8.58429C1.13708 6.94808 1.59668 5.3163 2.57158 3.99462C3.54649 2.67294 4.96983 1.75203 6.57496 1.40441C8.18009 1.05679 9.8569 1.3063 11.2913 2.10621C12.0495 2.52906 12.7125 3.09037 13.25 3.7543V2C13.25 1.58579 13.5858 1.25 14 1.25Z", "clip-rule": "evenodd" } })]);
1696
- }, jl = [], Yl = /* @__PURE__ */ D(
1697
- Hl,
1698
- ql,
1699
- jl,
1700
- !1,
1701
- null,
1702
- "35088f28",
1703
- null,
1704
- null
1705
- );
1706
- const zl = Yl.exports, Jl = {
1696
+ const Ml = wl.exports, Hl = {
1707
1697
  "en-US": {
1708
1698
  clearAll: "Clear all",
1709
1699
  filtersHaveBeenCleared: "Filters have been cleared.",
@@ -1712,27 +1702,47 @@ const zl = Yl.exports, Jl = {
1712
1702
  resetAll: "Reset all",
1713
1703
  searchBar: "Search bar"
1714
1704
  }
1715
- }, Kl = x({
1716
- i18n: { messages: Jl },
1705
+ }, ql = x({
1706
+ i18n: { messages: Hl },
1717
1707
  name: "bento-filter-bar",
1718
1708
  components: {
1719
1709
  AllFiltersModal: Ml,
1720
- BentoBooleanFilter: we,
1721
- BentoDateFilter: Ie,
1722
- BentoDateRangeFilter: Re,
1723
- BentoRangeFilter: Me,
1724
- BentoInputFilter: Ue,
1725
- BentoSelectFilter: N,
1726
- BentoSelectAvatarFilter: ke,
1727
- BentoSelectCountryFilter: Le,
1728
- BentoSelectCurrencyFilter: Ve,
1729
- BentoSelectPaymentMethodFilter: Oe,
1730
- BentoSelectTagFilter: Ne,
1710
+ BentoBooleanFilter: Ne,
1711
+ BentoDateFilter: xe,
1712
+ BentoDateRangeFilter: $e,
1713
+ BentoRangeFilter: we,
1714
+ BentoInputFilter: Ie,
1715
+ BentoSelectFilter: w,
1716
+ BentoSelectAvatarFilter: Re,
1717
+ BentoSelectCountryFilter: Ve,
1718
+ BentoSelectCurrencyFilter: ke,
1719
+ BentoSelectPaymentMethodFilter: Le,
1720
+ BentoSelectTagFilter: Oe,
1731
1721
  BentoSearchBar: le,
1732
1722
  FilterBarButton: ue,
1733
- RefreshIcon: zl
1723
+ RefreshIcon: vt
1734
1724
  },
1735
1725
  props: {
1726
+ /**
1727
+ * Array of filters based on {@see BentoFilterBarModel}.
1728
+ * Each one of the elements in the array correspond to a filter that will
1729
+ * be created and rendered in the FilterBar.
1730
+ *
1731
+ * @example
1732
+ * [{
1733
+ * field: 'company',
1734
+ * label: 'Company',
1735
+ * type: FilterType.TEXT,
1736
+ * }, {
1737
+ * field: 'name',
1738
+ * label: 'Name',
1739
+ * type: FilterType.TEXT,
1740
+ * }]
1741
+ */
1742
+ config: {
1743
+ type: Array,
1744
+ default: () => []
1745
+ },
1736
1746
  /**
1737
1747
  * Search term useful to filter all the data by text.
1738
1748
  * If the value is non-existant (null or undefined) the search bar won't be enabled.
@@ -1741,6 +1751,9 @@ const zl = Yl.exports, Jl = {
1741
1751
  type: le.props.value.type,
1742
1752
  default: void 0
1743
1753
  },
1754
+ /**
1755
+ * @deprecated from version 2.0.0. Use the config property instead.
1756
+ */
1744
1757
  /**
1745
1758
  * Array of filters based on {@see BentoFilterBarModel}.
1746
1759
  * Each one of the elements in the array correspond to a filter that will
@@ -1786,115 +1799,116 @@ const zl = Yl.exports, Jl = {
1786
1799
  emits: [
1787
1800
  ee.INPUT,
1788
1801
  ee.UPDATE_FILTER_VALUES,
1789
- W.CLEAR,
1790
- W.INPUT,
1791
- W.UPDATE
1802
+ Z.CLEAR,
1803
+ Z.INPUT,
1804
+ Z.UPDATE
1792
1805
  ],
1793
1806
  setup(t, { emit: e }) {
1794
- const { t: l } = G(), a = r(
1807
+ const { t: l } = W(), a = r(
1795
1808
  () => {
1796
- var m;
1797
- return (m = t.value) == null ? void 0 : m.map((f) => {
1798
- var V;
1799
- const A = (V = t.filterValues.find(({ field: z }) => z === f.field)) == null ? void 0 : V.value;
1800
- return { ...f, value: A !== void 0 ? A : f == null ? void 0 : f.value };
1809
+ var y, b;
1810
+ return (b = ((y = t.config) == null ? void 0 : y.length) > 0 ? t.config : t.value) == null ? void 0 : b.map((A) => {
1811
+ var Y;
1812
+ const L = (Y = t.filterValues.find(({ field: J }) => J === A.field)) == null ? void 0 : Y.value;
1813
+ return { ...A, value: L !== void 0 ? L : A == null ? void 0 : A.value };
1801
1814
  });
1802
1815
  }
1803
- ), n = Xe(), s = r(() => l("searchBar")), u = r(() => a.value.some(
1804
- ({ visible: f }) => f != null
1805
- ) ? a.value.some(({ visible: f }) => !f) : !1), d = r(
1806
- () => a.value.filter(({ defaultValue: m }) => m !== void 0)
1816
+ ), n = Qe(), s = r(() => l("searchBar")), u = r(() => a.value.some(
1817
+ ({ visible: b }) => b != null
1818
+ ) ? a.value.some(({ visible: b }) => !b) : !1), d = r(
1819
+ () => a.value.filter(({ defaultValue: y }) => y !== void 0)
1807
1820
  ), c = r(() => a.value.some(
1808
- ({ visible: f }) => f != null
1821
+ ({ visible: b }) => b != null
1809
1822
  ) ? a.value.filter(
1810
- ({ defaultValue: f, visible: A }) => f === void 0 && A
1811
- ) : a.value.filter(({ defaultValue: f }) => f === void 0)), y = r(() => t.searchTerm != null), b = r(
1812
- () => a.value.filter(({ defaultValue: m }) => m == null).some(({ value: m }) => m != null)
1813
- ), h = r(() => d.value.length === 0 && b.value), v = r(() => d.value.length === 0 ? !1 : !a.value.filter(({ defaultValue: f }) => f !== void 0 || f !== null).every(({ value: f, defaultValue: A }) => JSON.stringify(f) === JSON.stringify(A)) || b.value), C = (m) => {
1814
- e(ee.INPUT, m), e(
1823
+ ({ defaultValue: b, visible: A }) => b === void 0 && A
1824
+ ) : a.value.filter(({ defaultValue: b }) => b === void 0)), p = r(() => t.searchTerm != null), _ = r(
1825
+ () => a.value.filter(({ defaultValue: y }) => y == null).some(({ value: y }) => y != null)
1826
+ ), F = r(() => d.value.length === 0 && _.value), v = r(() => d.value.length === 0 ? !1 : !a.value.filter(({ defaultValue: b }) => b !== void 0 || b !== null).every(({ value: b, defaultValue: A }) => JSON.stringify(b) === JSON.stringify(A)) || _.value), h = (y) => {
1827
+ e(ee.INPUT, y), e(
1815
1828
  ee.UPDATE_FILTER_VALUES,
1816
- m == null ? void 0 : m.filter(({ value: f }) => f !== null || f !== void 0).map(({ field: f, value: A }) => ({ field: f, value: A }))
1829
+ y == null ? void 0 : y.filter(({ value: b }) => b !== null || b !== void 0).map(({ field: b, value: A }) => ({ field: b, value: A }))
1817
1830
  );
1818
1831
  };
1819
1832
  return {
1820
1833
  // Values
1821
1834
  hasHiddenFilters: u,
1822
- isClearAllVisible: h,
1823
- isSearchBarEnabled: y,
1835
+ isClearAllVisible: F,
1836
+ isSearchBarEnabled: p,
1824
1837
  searchBarAriaLabel: s,
1825
1838
  persistentFilters: d,
1826
1839
  regularFilters: c,
1827
1840
  isResetAllVisible: v,
1841
+ valueAndFilterValuesPropsMerged: a,
1828
1842
  // Events
1829
- updateAllFilters: C,
1830
- updateFilterHandler: (m) => {
1831
- const f = a.value.findIndex(
1832
- (V) => V.field === m.field
1843
+ updateAllFilters: h,
1844
+ updateFilterHandler: (y) => {
1845
+ const b = a.value.findIndex(
1846
+ (L) => L.field === y.field
1833
1847
  ), A = a.value.slice();
1834
- A[f].value = m.value, C(A);
1848
+ A[b].value = y.value, h(A);
1835
1849
  },
1836
1850
  clearAllFilters: () => {
1837
- const m = a.value.slice(), f = a.value.map(({ value: A, ...V }) => ({
1838
- ...V,
1851
+ const y = a.value.slice(), b = a.value.map(({ value: A, ...L }) => ({
1852
+ ...L,
1839
1853
  value: void 0
1840
1854
  }));
1841
1855
  n.addToast({
1842
1856
  text: l("filtersHaveBeenCleared"),
1843
1857
  action: {
1844
- handler: () => C(m),
1858
+ handler: () => h(y),
1845
1859
  text: l("undo")
1846
1860
  }
1847
- }), C(f);
1861
+ }), h(b);
1848
1862
  },
1849
1863
  onSearchbarClear: () => {
1850
- e(W.CLEAR);
1864
+ e(Z.CLEAR);
1851
1865
  },
1852
- onSearchbarInput: (m) => {
1853
- e(W.INPUT, m), e(W.UPDATE, m);
1866
+ onSearchbarInput: (y) => {
1867
+ e(Z.INPUT, y), e(Z.UPDATE, y);
1854
1868
  },
1855
1869
  resetAllFilters: () => {
1856
- const m = a.value.slice(), f = a.value.map(({ defaultValue: A, ...V }) => ({
1857
- ...V,
1870
+ const y = a.value.slice(), b = a.value.map(({ defaultValue: A, ...L }) => ({
1871
+ ...L,
1858
1872
  defaultValue: A,
1859
1873
  value: A
1860
1874
  }));
1861
1875
  n.addToast({
1862
1876
  text: l("filtersHaveBeenReset"),
1863
1877
  action: {
1864
- handler: () => C(m),
1878
+ handler: () => h(y),
1865
1879
  text: l("undo")
1866
1880
  }
1867
- }), C(f);
1881
+ }), h(b);
1868
1882
  }
1869
1883
  };
1870
1884
  }
1871
1885
  });
1872
- var Gl = function() {
1886
+ var jl = function() {
1873
1887
  var e = this, l = e._self._c;
1874
1888
  return e._self._setupProxy, l("div", { staticClass: "b-filter-bar" }, [e.isSearchBarEnabled ? l("bento-search-bar", { staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": e.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: e.onSearchbarInput, clear: e.onSearchbarClear } }) : e._e(), e.persistentFilters.length ? e._l(e.persistentFilters, function(a) {
1875
1889
  return l(a.type, { key: a.field, tag: "component", attrs: { field: a.field, label: a.label, options: a.options, value: a.value, "default-value": a.defaultValue }, on: { update: e.updateFilterHandler } });
1876
1890
  }) : e._e(), e._l(e.regularFilters, function(a) {
1877
1891
  return l(a.type, { key: a.field, tag: "component", attrs: { field: a.field, label: a.label, options: a.options, value: a.value }, on: { update: e.updateFilterHandler } });
1878
- }), e.hasHiddenFilters ? l("all-filters-modal", { attrs: { value: e.value }, on: { input: e.updateAllFilters } }) : e._e(), l("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isClearAllVisible, expression: "isClearAllVisible" }], on: { click: e.clearAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1892
+ }), e.hasHiddenFilters ? l("all-filters-modal", { attrs: { value: e.valueAndFilterValuesPropsMerged }, on: { input: e.updateAllFilters } }) : e._e(), l("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isClearAllVisible, expression: "isClearAllVisible" }], on: { click: e.clearAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1879
1893
  return [l("refresh-icon", { attrs: { "aria-hidden": "true" } })];
1880
1894
  }, proxy: !0 }]) }, [e._v(" " + e._s(e.$t("clearAll")) + " ")]), l("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isResetAllVisible, expression: "isResetAllVisible" }], staticClass: "b-filter-bar__reset-all", on: { click: e.resetAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1881
1895
  return [l("refresh-icon", { attrs: { "aria-hidden": "true" } })];
1882
1896
  }, proxy: !0 }]) }, [e._v(" " + e._s(e.$t("resetAll")) + " ")])], 2);
1883
- }, Zl = [], Wl = /* @__PURE__ */ D(
1884
- Kl,
1885
- Gl,
1886
- Zl,
1897
+ }, Yl = [], zl = /* @__PURE__ */ U(
1898
+ ql,
1899
+ jl,
1900
+ Yl,
1887
1901
  !1,
1888
1902
  null,
1889
- "0a653aa0",
1903
+ "39eb8244",
1890
1904
  null,
1891
1905
  null
1892
1906
  );
1893
- const Ia = Wl.exports;
1907
+ const Pa = zl.exports;
1894
1908
  export {
1895
- Ia as BentoFilterBar,
1909
+ Pa as BentoFilterBar,
1896
1910
  ee as BentoFilterBarEvent,
1897
1911
  i as BentoFilterEvent,
1898
- O as BentoFilterItemType
1912
+ N as BentoFilterItemType
1899
1913
  };
1900
1914
  //# sourceMappingURL=filter-bar.js.map