@adyen/bento-vue2 1.4.1 → 1.5.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 (201) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-lazy-load/data-grid-lazy-load.vue.d.ts +17 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +2 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/useLazyLoading/useLazyLoading.d.ts +8 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -1
  9. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +27 -2
  10. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +522 -114
  11. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +3 -3
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +3 -3
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +3 -3
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +3 -3
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +3 -3
  16. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +3 -3
  17. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +13 -13
  18. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +4 -4
  19. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +12 -3
  20. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +3 -3
  21. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +5 -1
  22. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +12 -3
  23. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
  24. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -1
  25. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +2 -1
  26. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +2 -0
  27. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  28. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +2 -0
  29. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +24 -0
  30. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
  31. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -1
  32. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +13 -3
  33. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.types.d.ts +1 -9
  34. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.utils.d.ts +5 -21
  35. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +119 -71
  36. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +3 -2
  37. package/dist/@types/packages/vue2/src/components/stepper/components/step/index.d.ts +1 -0
  38. package/dist/@types/packages/vue2/src/components/stepper/components/step/step.vue.d.ts +33 -0
  39. package/dist/@types/packages/vue2/src/components/stepper/composables/useKeyboardNavigation/useKeyboardNavigation.d.ts +15 -0
  40. package/dist/@types/packages/vue2/src/components/stepper/index.d.ts +3 -0
  41. package/dist/@types/packages/vue2/src/components/stepper/stepper.keys.d.ts +3 -0
  42. package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +24 -0
  43. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +42 -0
  44. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  45. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +389 -50
  46. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  47. package/dist/@types/packages/vue2/src/types/index.d.ts +1 -0
  48. package/dist/@types/packages/vue2/src/types/lazy-load.d.ts +1 -0
  49. package/dist/accordion.js +1 -1
  50. package/dist/alert.js +1 -1
  51. package/dist/assets/base-button.css +1 -1
  52. package/dist/assets/base-modal.css +1 -1
  53. package/dist/assets/button.css +1 -1
  54. package/dist/assets/calendar.css +1 -1
  55. package/dist/assets/checkbox.css +1 -1
  56. package/dist/assets/dropdown-default-textbox.css +1 -1
  57. package/dist/assets/dropdown.css +1 -1
  58. package/dist/assets/index.css +1 -1
  59. package/dist/assets/index10.css +1 -1
  60. package/dist/assets/index11.css +1 -1
  61. package/dist/assets/index12.css +1 -1
  62. package/dist/assets/index13.css +1 -1
  63. package/dist/assets/index14.css +1 -1
  64. package/dist/assets/index15.css +1 -1
  65. package/dist/assets/index16.css +1 -1
  66. package/dist/assets/index17.css +1 -1
  67. package/dist/assets/index18.css +1 -1
  68. package/dist/assets/index19.css +1 -1
  69. package/dist/assets/index2.css +1 -1
  70. package/dist/assets/index20.css +1 -1
  71. package/dist/assets/index21.css +1 -1
  72. package/dist/assets/index22.css +1 -1
  73. package/dist/assets/index23.css +1 -1
  74. package/dist/assets/index24.css +1 -1
  75. package/dist/assets/index25.css +1 -1
  76. package/dist/assets/index26.css +1 -1
  77. package/dist/assets/index27.css +1 -1
  78. package/dist/assets/index28.css +1 -1
  79. package/dist/assets/index29.css +1 -1
  80. package/dist/assets/index3.css +1 -1
  81. package/dist/assets/index30.css +1 -1
  82. package/dist/assets/index31.css +1 -1
  83. package/dist/assets/index32.css +1 -1
  84. package/dist/assets/index34.css +1 -1
  85. package/dist/assets/index35.css +1 -1
  86. package/dist/assets/index36.css +1 -1
  87. package/dist/assets/index37.css +1 -1
  88. package/dist/assets/index38.css +1 -1
  89. package/dist/assets/index39.css +1 -1
  90. package/dist/assets/index4.css +1 -1
  91. package/dist/assets/index40.css +1 -1
  92. package/dist/assets/index41.css +1 -1
  93. package/dist/assets/index42.css +1 -1
  94. package/dist/assets/index43.css +1 -0
  95. package/dist/assets/index5.css +1 -1
  96. package/dist/assets/index6.css +1 -1
  97. package/dist/assets/index7.css +1 -1
  98. package/dist/assets/index8.css +1 -1
  99. package/dist/assets/index9.css +1 -1
  100. package/dist/assets/tooltip.css +1 -1
  101. package/dist/avatar-image.js +1 -1
  102. package/dist/badge.js +1 -1
  103. package/dist/button.js +1 -1
  104. package/dist/card.js +1 -1
  105. package/dist/checkbox.js +3 -3
  106. package/dist/chunks/base-button.89e9efbd.js +88 -0
  107. package/dist/chunks/base-button.89e9efbd.js.map +1 -0
  108. package/dist/chunks/base-modal.6eaa7e53.js +211 -0
  109. package/dist/chunks/base-modal.6eaa7e53.js.map +1 -0
  110. package/dist/chunks/{calendar.c20df708.js → calendar.44459d87.js} +2 -2
  111. package/dist/chunks/{calendar.c20df708.js.map → calendar.44459d87.js.map} +1 -1
  112. package/dist/chunks/{checkbox.5a69ce9d.js → checkbox.b69b8f22.js} +16 -16
  113. package/dist/chunks/{checkbox.5a69ce9d.js.map → checkbox.b69b8f22.js.map} +1 -1
  114. package/dist/chunks/{copy.982e1b19.js → copy.57f969d4.js} +2 -2
  115. package/dist/chunks/{copy.982e1b19.js.map → copy.57f969d4.js.map} +1 -1
  116. package/dist/chunks/debounce.b5ef6acf.js +10 -0
  117. package/dist/chunks/debounce.b5ef6acf.js.map +1 -0
  118. package/dist/chunks/{dropdown-default-textbox.9bef4138.js → dropdown-default-textbox.2d093874.js} +8 -7
  119. package/dist/chunks/{dropdown-default-textbox.9bef4138.js.map → dropdown-default-textbox.2d093874.js.map} +1 -1
  120. package/dist/chunks/{dropdown.15cc1c45.js → dropdown.10ea8304.js} +33 -31
  121. package/dist/chunks/dropdown.10ea8304.js.map +1 -0
  122. package/dist/chunks/{index.c39c64c9.js → index.0f8690c4.js} +2 -2
  123. package/dist/chunks/{index.c39c64c9.js.map → index.0f8690c4.js.map} +1 -1
  124. package/dist/chunks/{index.58ce168a.js → index.4a11da21.js} +179 -170
  125. package/dist/chunks/index.4a11da21.js.map +1 -0
  126. package/dist/chunks/{index.876ea5bf.js → index.660f2f2e.js} +2 -2
  127. package/dist/chunks/{index.876ea5bf.js.map → index.660f2f2e.js.map} +1 -1
  128. package/dist/chunks/{index.b9c8c99a.js → index.f607a3f1.js} +4 -4
  129. package/dist/chunks/{index.b9c8c99a.js.map → index.f607a3f1.js.map} +1 -1
  130. package/dist/chunks/{debounce.f8d92e44.js → keyboard-navigation.ca47dfa8.js} +11 -17
  131. package/dist/chunks/keyboard-navigation.ca47dfa8.js.map +1 -0
  132. package/dist/chunks/{listbox-option-tag.f8b467a7.js → listbox-option-tag.e2688e54.js} +2 -2
  133. package/dist/chunks/{listbox-option-tag.f8b467a7.js.map → listbox-option-tag.e2688e54.js.map} +1 -1
  134. package/dist/chunks/{listbox.cbf47484.js → listbox.201a8521.js} +6 -5
  135. package/dist/chunks/{listbox.cbf47484.js.map → listbox.201a8521.js.map} +1 -1
  136. package/dist/chunks/{tooltip.0297fd5d.js → tooltip.f89cb0cd.js} +18 -18
  137. package/dist/chunks/{tooltip.0297fd5d.js.map → tooltip.f89cb0cd.js.map} +1 -1
  138. package/dist/chunks/use-has-slot.6052d56a.js.map +1 -1
  139. package/dist/code-snippet.js +193 -191
  140. package/dist/code-snippet.js.map +1 -1
  141. package/dist/country.js +1 -1
  142. package/dist/data-grid.js +750 -640
  143. package/dist/data-grid.js.map +1 -1
  144. package/dist/date-picker.js +5 -5
  145. package/dist/date-range-picker.js +2 -2
  146. package/dist/divider.js +1 -1
  147. package/dist/dropdown.js +3 -3
  148. package/dist/empty-state.js +10 -10
  149. package/dist/empty-state.js.map +1 -1
  150. package/dist/filter-bar.js +533 -491
  151. package/dist/filter-bar.js.map +1 -1
  152. package/dist/focus-trap.js +1 -1
  153. package/dist/form-layout.js +71 -50
  154. package/dist/form-layout.js.map +1 -1
  155. package/dist/header.js +181 -102
  156. package/dist/header.js.map +1 -1
  157. package/dist/image.js +3 -1
  158. package/dist/index.js +200 -193
  159. package/dist/index.js.map +1 -1
  160. package/dist/info-icon.js +2 -2
  161. package/dist/input-field.js +2 -2
  162. package/dist/internal.js +4 -4
  163. package/dist/link.js +1 -1
  164. package/dist/loading-indicator.js +1 -1
  165. package/dist/menu.js +39 -30
  166. package/dist/menu.js.map +1 -1
  167. package/dist/modal.js +29 -26
  168. package/dist/modal.js.map +1 -1
  169. package/dist/pagination.js +2 -2
  170. package/dist/payment-method.js +1 -1
  171. package/dist/popover.js +43 -31
  172. package/dist/popover.js.map +1 -1
  173. package/dist/popper-container.js +1228 -180
  174. package/dist/popper-container.js.map +1 -1
  175. package/dist/radio-group.js +1 -1
  176. package/dist/search-bar.js +3 -3
  177. package/dist/segmented-control.js +9 -9
  178. package/dist/segmented-control.js.map +1 -1
  179. package/dist/sidepanel.js +13 -13
  180. package/dist/sidepanel.js.map +1 -1
  181. package/dist/status.js +1 -1
  182. package/dist/stepper.js +229 -0
  183. package/dist/stepper.js.map +1 -0
  184. package/dist/structured-list.js +1 -1
  185. package/dist/summary-grid.js +2 -2
  186. package/dist/tabs.js +1 -1
  187. package/dist/tag.js +2 -2
  188. package/dist/textarea.js +1 -1
  189. package/dist/timeline.js +2 -2
  190. package/dist/toast.js +1 -1
  191. package/dist/toggle.js +14 -14
  192. package/dist/toggle.js.map +1 -1
  193. package/dist/web-types.json +279 -60
  194. package/package.json +3 -3
  195. package/dist/chunks/base-button.7a676605.js +0 -82
  196. package/dist/chunks/base-button.7a676605.js.map +0 -1
  197. package/dist/chunks/base-modal.a51d2395.js +0 -207
  198. package/dist/chunks/base-modal.a51d2395.js.map +0 -1
  199. package/dist/chunks/debounce.f8d92e44.js.map +0 -1
  200. package/dist/chunks/dropdown.15cc1c45.js.map +0 -1
  201. package/dist/chunks/index.58ce168a.js.map +0 -1
@@ -1,49 +1,50 @@
1
- import { n as A } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
2
- import { defineComponent as P, useSlots as Le, useAttrs as we, computed as r, ref as D, watch as Z, toRef as E, onBeforeUpdate as le, reactive as _e, toRefs as Me, provide as qe, nextTick as He, onMounted as je } from "vue";
3
- import { BentoPopover as re } from "./popover.js";
4
- import { u as H } from "./chunks/i18n.155748d6.js";
5
- import { g as ae } from "./chunks/unique-id.a2a2b458.js";
6
- import { B as ee, d as Ye } from "./chunks/index.1645ffcb.js";
7
- import { u as pe } from "./chunks/aria-label.ac9651a5.js";
8
- import { B as be, a as ie } from "./chunks/base-button.7a676605.js";
9
- import { g as ve } from "./chunks/get-slot-text.c1114034.js";
10
- import { u as ye } from "./chunks/use-has-slot.6052d56a.js";
11
- import { a as me, C as Fe } from "./chunks/chevron-up.674ec2e5.js";
12
- import { B as ze } from "./chunks/tooltip.0297fd5d.js";
13
- import { B as Je } from "./chunks/directive.0408e565.js";
14
- import { BentoRadioGroup as Ke } from "./radio-group.js";
15
- import { BentoInputField as he } from "./input-field.js";
16
- import { BentoSearchBar as X, BentoSearchBarEvent as j } from "./search-bar.js";
17
- import { u as Ge } from "./chunks/toastController.0e01443d.js";
1
+ import { n as B } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
2
+ import { defineComponent as P, useSlots as we, useAttrs as Me, computed as r, ref as T, watch as X, toRef as E, onBeforeUpdate as ne, reactive as be, toRefs as He, provide as qe, nextTick as je, onMounted as Ye } from "vue";
3
+ import { BentoPopover as ie } from "./popover.js";
4
+ import { u as j } from "./chunks/i18n.155748d6.js";
5
+ import { g as se } from "./chunks/unique-id.a2a2b458.js";
6
+ import { B as le, d as ze } from "./chunks/index.1645ffcb.js";
7
+ import { u as ve } from "./chunks/aria-label.ac9651a5.js";
8
+ import { B as ye, a as ue } from "./chunks/base-button.89e9efbd.js";
9
+ import { g as me } from "./chunks/get-slot-text.c1114034.js";
10
+ import { u as Fe } from "./chunks/use-has-slot.6052d56a.js";
11
+ import { a as Ce, C as he } from "./chunks/chevron-up.674ec2e5.js";
12
+ import { B as Je } from "./chunks/tooltip.f89cb0cd.js";
13
+ import { B as Ke } from "./chunks/directive.0408e565.js";
14
+ import { BentoRadioGroup as Ge } from "./radio-group.js";
15
+ import { BentoInputField as ge } from "./input-field.js";
16
+ import { BentoSearchBar as te, BentoSearchBarEvent as J } from "./search-bar.js";
17
+ import { u as Ze } from "./chunks/toastController.0e01443d.js";
18
18
  import { BentoModal as We } from "./modal.js";
19
- import { e as Ze } from "./chunks/base-modal.a51d2395.js";
20
- import { a as Qe } from "./chunks/button.66df5734.js";
21
- import { B as Xe, u as Ce } from "./chunks/dropdown.15cc1c45.js";
22
- import { g as et } from "./chunks/index.c39c64c9.js";
23
- import { BentoDivider as ge } from "./divider.js";
24
- import { BentoDatePicker as tt } from "./date-picker.js";
25
- import { f as G } from "./chunks/index.e722eb60.js";
26
- import { e as q, d as Be, f as Se } from "./chunks/index.f55fdc32.js";
27
- import { C as lt } from "./chunks/calendar.c20df708.js";
28
- import { B as at, D as nt } from "./chunks/index.58ce168a.js";
29
- import { BentoButtonActions as st } from "./button.js";
30
- import { D as ue } from "./chunks/date-input.9186a0bf.js";
31
- import { B as ot } from "./chunks/listbox.cbf47484.js";
32
- import { B as rt, L as Ae } from "./chunks/listbox-option-tag.f8b467a7.js";
33
- import { BentoCountry as it } from "./country.js";
34
- import { u as ut } from "./chunks/useCountryItems.5d7b436e.js";
35
- import { BentoPaymentMethod as ct } from "./payment-method.js";
36
- import "./assets/index38.css";
37
- var i = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.UPDATE = "update", t))(i || {}), w = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(w || {}), k = /* @__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))(k || {});
38
- const dt = {}, ft = /* @__PURE__ */ P({
39
- ...dt,
19
+ import { e as Qe } from "./chunks/base-modal.6eaa7e53.js";
20
+ import { a as Xe } from "./chunks/button.66df5734.js";
21
+ import { B as et, u as Se } from "./chunks/dropdown.10ea8304.js";
22
+ import { g as tt } from "./chunks/index.0f8690c4.js";
23
+ import { BentoDivider as Be } from "./divider.js";
24
+ import { BentoDatePicker as lt } from "./date-picker.js";
25
+ import { f as W } from "./chunks/index.e722eb60.js";
26
+ import { e as q, d as Ae, f as De } from "./chunks/index.f55fdc32.js";
27
+ import { C as at } from "./chunks/calendar.44459d87.js";
28
+ import { B as nt, D as st } from "./chunks/index.4a11da21.js";
29
+ import { BentoButtonActions as ot } from "./button.js";
30
+ import { D as ce } from "./chunks/date-input.9186a0bf.js";
31
+ import { B as rt } from "./chunks/listbox.201a8521.js";
32
+ import { B as it, L as Te } from "./chunks/listbox-option-tag.e2688e54.js";
33
+ import { BentoCountry as ut } from "./country.js";
34
+ import { u as ct } from "./chunks/useCountryItems.5d7b436e.js";
35
+ import { BentoPaymentMethod as dt } from "./payment-method.js";
36
+ import "./assets/index11.css";
37
+ var i = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.UPDATE = "update", t))(i || {}), L = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(L || {}), U = /* @__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))(U || {});
38
+ const ft = {}, _t = /* @__PURE__ */ P({
39
+ ...ft,
40
40
  __name: "filter-bar-button",
41
41
  props: {
42
42
  /**
43
- * The number of applies values within the filter.
43
+ * The number of applied values within the filter.
44
+ * Text can also be applied here such as 'All'.
44
45
  * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
45
46
  */
46
- appliedFiltersCount: { type: Number, default: null },
47
+ appliedFiltersCount: { type: [String, Number], default: null },
47
48
  /**
48
49
  * Disables button functionality.
49
50
  */
@@ -56,43 +57,48 @@ const dt = {}, ft = /* @__PURE__ */ P({
56
57
  * Toggles if a chevron icon should be displayed in the button.
57
58
  * The chevron will change depending on the open state of the filter.
58
59
  */
59
- hasChevron: { type: Boolean, default: !1 }
60
+ hasChevron: { type: Boolean, default: !1 },
61
+ /**
62
+ * A secondary label to be added next to the primary for additional filtering information.
63
+ * i.e. Can be used to show the set value for said filter.
64
+ */
65
+ secondaryLabel: { type: String, default: null }
60
66
  },
61
67
  emits: ["click"],
62
68
  setup(t, { emit: e }) {
63
- const l = t, a = Le(), n = we(), s = ye(a), u = r(() => a.default ? ve(a)("default") : null), d = pe({ ariaLabel: u }), c = D(null), f = r(() => {
64
- var v;
69
+ const l = t, a = we(), n = Me(), s = Fe(a), u = r(() => a.default ? me(a)("default") : null), d = ve({ ariaLabel: u }), c = T(null), f = r(() => {
70
+ var b;
65
71
  return {
66
- "aria-controls": (v = n["aria-controls"]) == null ? void 0 : v.toString()
72
+ "aria-controls": (b = n["aria-controls"]) == null ? void 0 : b.toString()
67
73
  };
68
74
  }), p = r(() => ({
69
75
  "b-filter-bar-button--filter-open": l.isFilterOpen,
70
76
  "b-filter-bar-button--with-counter": l.appliedFiltersCount,
71
77
  "b-filter-bar-button--with-chevron": l.hasChevron
72
78
  }));
73
- return { __sfc: !0, props: l, emit: e, slots: a, attrs: n, hasSlot: s, labelSlot: u, computedAriaLabel: d, filterBarButtonRef: c, ariaAttributes: f, conditionalClasses: p, onClickButton: (v) => {
74
- l.disabled || e("click", v);
75
- }, BentoTypography: ee, BaseButton: be, ChevronUpIcon: me, ChevronDownIcon: Fe };
79
+ return { __sfc: !0, props: l, emit: e, slots: a, attrs: n, hasSlot: s, labelSlot: u, computedAriaLabel: d, filterBarButtonRef: c, ariaAttributes: f, conditionalClasses: p, onClickButton: (b) => {
80
+ l.disabled || e("click", b);
81
+ }, BentoTypography: le, BaseButton: ye, ChevronUpIcon: Ce, ChevronDownIcon: he };
76
82
  }
77
83
  });
78
- var _t = function() {
84
+ var pt = function() {
79
85
  var e = this, l = e._self._c, a = e._self._setupProxy;
80
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() {
81
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()];
82
- }, proxy: !0 }]) }, [l("div", { staticClass: "b-filter-bar-button__container" }, [a.hasSlot("iconLeft") ? [e._t("iconLeft")] : e._e(), l(a.BentoTypography, { staticClass: "b-filter-bar-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._t("default")], 2)], 2)]);
83
- }, pt = [], bt = /* @__PURE__ */ A(
84
- ft,
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)]);
89
+ }, bt = [], vt = /* @__PURE__ */ B(
85
90
  _t,
86
91
  pt,
92
+ bt,
87
93
  !1,
88
94
  null,
89
- "671d00fd",
95
+ "b3ad119c",
90
96
  null,
91
97
  null
92
98
  );
93
- const ne = bt.exports;
94
- var I = /* @__PURE__ */ ((t) => (t.APPLY = "apply", t.CLEAR = "clear", t.OPEN = "open", t.CLOSE = "close", t.RESET = "reset", t))(I || {});
95
- const vt = {
99
+ const oe = vt.exports;
100
+ var O = /* @__PURE__ */ ((t) => (t.APPLY = "apply", t.CLEAR = "clear", t.OPEN = "open", t.CLOSE = "close", t.RESET = "reset", t))(O || {});
101
+ const yt = {
96
102
  "en-US": {
97
103
  clear: "Clear",
98
104
  apply: "Apply",
@@ -118,23 +124,27 @@ const vt = {
118
124
  clear: "Borrar",
119
125
  apply: "Aplicar"
120
126
  }
121
- }, yt = P({
122
- i18n: { messages: vt },
127
+ }, mt = P({
128
+ i18n: { messages: yt },
123
129
  name: "bento-base-filter",
124
130
  components: {
125
- BentoPopover: re,
126
- FilterBarButton: ne
131
+ BentoPopover: ie,
132
+ FilterBarButton: oe
127
133
  },
128
- directives: { BentoClickOutsideDirective: Je },
134
+ directives: { BentoClickOutsideDirective: Ke },
129
135
  props: {
130
136
  /**
131
137
  * Total count of applied filters
132
138
  */
133
- appliedFiltersCount: { type: Number, default: null },
139
+ appliedFiltersCount: { type: [String, Number], default: null },
134
140
  /**
135
141
  * Overrides the label of the popover vsibility toggle button text.
136
142
  */
137
143
  buttonLabel: { type: String, default: void 0 },
144
+ /**
145
+ * Sets the secondary label text of the popover vsibility toggle button text.
146
+ */
147
+ buttonSecondaryLabel: { type: String, default: void 0 },
138
148
  /**
139
149
  * Default value of the filter to reset to.
140
150
  */
@@ -172,28 +182,28 @@ const vt = {
172
182
  /**
173
183
  * Sets the size of the container to fit its content
174
184
  */
175
- fitContent: re.props.fitContent
185
+ fitContent: ie.props.fitContent
176
186
  },
177
187
  emits: [
178
- I.APPLY,
179
- I.CLEAR,
180
- I.OPEN,
181
- I.CLOSE,
182
- I.RESET
188
+ O.APPLY,
189
+ O.CLEAR,
190
+ O.OPEN,
191
+ O.CLOSE,
192
+ O.RESET
183
193
  ],
184
194
  setup(t, { emit: e }) {
185
- const { t: l } = H(), a = ae("base-filter-popover"), n = D(!1), s = D(null), u = r(() => t.defaultValue !== null), d = () => {
186
- n.value = !1, e(I.CLOSE);
195
+ const { t: l } = j(), a = se("base-filter-popover"), n = T(!1), s = T(null), u = r(() => t.defaultValue !== null), d = () => {
196
+ n.value = !1, e(O.CLOSE);
187
197
  }, c = () => {
188
- d(), u.value ? e(I.RESET) : e(I.CLEAR);
198
+ d(), u.value ? e(O.RESET) : e(O.CLEAR);
189
199
  }, f = () => d(), p = () => {
190
- n.value ? d() : (n.value = !0, e(I.OPEN));
191
- }, y = () => {
192
- d(), e(I.APPLY);
193
- }, v = r(() => [
200
+ n.value ? d() : (n.value = !0, e(O.OPEN));
201
+ }, m = () => {
202
+ d(), e(O.APPLY);
203
+ }, b = r(() => [
194
204
  {
195
205
  title: l("apply"),
196
- event: y,
206
+ event: m,
197
207
  disabled: t.disableApplyButton
198
208
  },
199
209
  {
@@ -202,23 +212,23 @@ const vt = {
202
212
  disabled: t.disableSecondaryButton
203
213
  }
204
214
  ]);
205
- return Z(
215
+ return X(
206
216
  () => n.value,
207
- (g, S) => {
208
- var _, b;
209
- !g && S && (b = (_ = s.value) == null ? void 0 : _.filterBarButtonRef) != null && b.bentoBaseButtonRef && s.value.filterBarButtonRef.bentoBaseButtonRef.focus();
217
+ (g, A) => {
218
+ var _, y;
219
+ !g && A && (y = (_ = s.value) == null ? void 0 : _.filterBarButtonRef) != null && y.bentoBaseButtonRef && s.value.filterBarButtonRef.bentoBaseButtonRef.focus();
210
220
  }
211
221
  ), {
212
222
  // Values
213
- actions: v,
223
+ actions: b,
214
224
  popoverId: a,
215
225
  isFilterOpen: n,
216
226
  isPersistentFilter: u,
217
227
  // Enums
218
- BentoTooltipPosition: ze,
228
+ BentoTooltipPosition: Je,
219
229
  // Events
220
230
  onClickFilter: p,
221
- onClickApply: y,
231
+ onClickApply: m,
222
232
  onClickSecondaryAction: c,
223
233
  onClickOutside: f,
224
234
  closePopover: d,
@@ -227,42 +237,42 @@ const vt = {
227
237
  };
228
238
  }
229
239
  });
230
- var mt = function() {
240
+ var Ft = function() {
231
241
  var e = this, l = e._self._c;
232
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) {
233
243
  return !a.type.indexOf("key") && e._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
234
- } } }, [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 }, 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 } }, [e._t("default")], 2) : e._e()], 1);
235
- }, Ft = [], ht = /* @__PURE__ */ A(
236
- yt,
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 } }, [e._t("default")], 2) : e._e()], 1);
245
+ }, Ct = [], ht = /* @__PURE__ */ B(
237
246
  mt,
238
247
  Ft,
248
+ Ct,
239
249
  !1,
240
250
  null,
241
- "58d123e2",
251
+ "f4da334c",
242
252
  null,
243
253
  null
244
254
  );
245
- const Y = ht.exports, Ct = (t) => t instanceof Array, ce = (t) => Ct(t) ? t.length === 0 || t.every((e) => e === "") : !t, de = (t, e) => JSON.stringify(t) === JSON.stringify(e), z = (t, e) => {
246
- const l = D(t.value);
247
- Z(
255
+ const K = ht.exports, gt = (t) => t instanceof Array, de = (t) => gt(t) ? t.length === 0 || t.every((e) => e === "") : !t, fe = (t, e) => JSON.stringify(t) === JSON.stringify(e), G = (t, e) => {
256
+ const l = T(t.value);
257
+ X(
248
258
  () => t.value,
249
259
  () => {
250
260
  l.value = t.value;
251
261
  }
252
262
  );
253
- const a = r(() => ce(t.value)), n = r(
254
- () => e.value !== null ? de(e.value, t.value) : a.value
255
- ), s = r(() => de(l.value, t.value) || ce(l.value) && a.value);
263
+ const a = r(() => de(t.value)), n = r(
264
+ () => e.value !== null ? fe(e.value, t.value) : a.value
265
+ ), s = r(() => fe(l.value, t.value) || de(l.value) && a.value);
256
266
  return {
257
267
  internalFilterValue: l,
258
268
  isSecondaryButtonDisabled: n,
259
269
  isApplyButtonDisabled: s
260
270
  };
261
- }, W = (t, e) => (t == null ? void 0 : t.length) > e ? `${t.slice(0, e)}...` : t, gt = P({
271
+ }, Q = (t, e) => (t == null ? void 0 : t.length) > e ? `${t.slice(0, e)}...` : t, St = P({
262
272
  name: "bento-input-filter",
263
273
  components: {
264
- BentoBaseFilter: Y,
265
- BentoInputField: he
274
+ BentoBaseFilter: K,
275
+ BentoInputField: ge
266
276
  },
267
277
  props: {
268
278
  /**
@@ -290,15 +300,15 @@ const Y = ht.exports, Ct = (t) => t instanceof Array, ce = (t) => Ct(t) ? t.leng
290
300
  },
291
301
  emits: [i.INPUT, i.UPDATE],
292
302
  setup(t, { emit: e }) {
293
- const l = D(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = z(
303
+ const l = T(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = G(
294
304
  E(t, "value"),
295
305
  E(t, "defaultValue")
296
- ), u = r(() => t.defaultValue === null ? t.label : W(t.value, 18)), d = r(() => t.value != null ? 1 : null), c = r(() => ({
306
+ ), u = r(() => t.defaultValue === null ? t.label : Q(t.value, 18)), d = r(() => t.value != null ? 1 : null), c = r(() => ({
297
307
  ["b-input-filter--only-slot"]: t.onlySlot
298
308
  }));
299
- le(() => {
309
+ ne(() => {
300
310
  a.value === "" && (a.value = null);
301
- }), Z(l, () => {
311
+ }), X(l, () => {
302
312
  var _;
303
313
  (_ = l.value) == null || _.focusInput();
304
314
  });
@@ -338,23 +348,23 @@ var Bt = function() {
338
348
  return e._self._setupProxy, l("bento-base-filter", e._b({ attrs: { "applied-filters-count": e.appliedFiltersCount, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "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) {
339
349
  return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
340
350
  }, input: e.onInput } }, [l("bento-input-field", { ref: "inputTextRef", attrs: { value: e.internalFilterValue }, on: { input: e.setInternalFilterValue } })], 1)]);
341
- }, St = [], At = /* @__PURE__ */ A(
342
- gt,
343
- Bt,
351
+ }, At = [], Dt = /* @__PURE__ */ B(
344
352
  St,
353
+ Bt,
354
+ At,
345
355
  !1,
346
356
  null,
347
357
  "cd9a0583",
348
358
  null,
349
359
  null
350
360
  );
351
- const Te = At.exports, Tt = P({
361
+ const Pe = Dt.exports, Tt = P({
352
362
  name: "bento-date-filter",
353
363
  components: {
354
- BentoBaseFilter: Y,
355
- BentoDatePicker: tt,
356
- BentoDivider: ge,
357
- Calendar: lt
364
+ BentoBaseFilter: K,
365
+ BentoDatePicker: lt,
366
+ BentoDivider: Be,
367
+ Calendar: at
358
368
  },
359
369
  props: {
360
370
  isDateInput: { type: Boolean, default: !0 },
@@ -393,20 +403,20 @@ const Te = At.exports, Tt = P({
393
403
  },
394
404
  emits: [i.INPUT, i.UPDATE],
395
405
  setup(t, { emit: e }) {
396
- const { locale: l } = H(void 0, !0), a = { de: Be, enUS: q, fr: Se }, { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: u } = z(
406
+ const { locale: l } = j(void 0, !0), a = { de: Ae, enUS: q, fr: De }, { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: u } = G(
397
407
  E(t, "value"),
398
408
  E(t, "defaultValue")
399
409
  ), d = r(
400
- () => t.defaultValue === null ? t.label : G(t.value, "dd MMM, yyyy", {
410
+ () => t.defaultValue === null ? t.label : W(t.value, "dd MMM, yyyy", {
401
411
  locale: a[l.value.substring(0, 2)] || q
402
412
  })
403
413
  ), c = r(() => t.value != null ? 1 : null), f = () => {
404
414
  e(i.UPDATE, { ...t, value: n.value });
405
415
  }, p = () => {
406
416
  n.value = null, f();
407
- }, y = () => {
417
+ }, m = () => {
408
418
  n.value = t.defaultValue, f();
409
- }, v = () => {
419
+ }, b = () => {
410
420
  n.value = t.value;
411
421
  }, g = (_) => {
412
422
  n.value = _, e(i.INPUT, { ...t, value: n.value });
@@ -421,30 +431,30 @@ const Te = At.exports, Tt = P({
421
431
  // Events
422
432
  clearFilter: p,
423
433
  onDateSelected: g,
424
- openFilter: v,
434
+ openFilter: b,
425
435
  updateFilter: f,
426
- resetFilter: y,
436
+ resetFilter: m,
427
437
  onDateInputSelected: (_) => {
428
438
  n.value = _, g(_), f();
429
439
  }
430
440
  };
431
441
  }
432
442
  });
433
- var Dt = function() {
443
+ var Pt = function() {
434
444
  var a, n, s, u;
435
445
  var e = this, l = e._self._c;
436
446
  return e._self._setupProxy, l("bento-base-filter", { attrs: { label: e.label, field: e.field, "applied-filters-count": e.appliedFiltersCount, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "default-value": e.defaultValue, "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);
437
- }, Pt = [], Et = /* @__PURE__ */ A(
447
+ }, Et = [], $t = /* @__PURE__ */ B(
438
448
  Tt,
439
- Dt,
440
449
  Pt,
450
+ Et,
441
451
  !1,
442
452
  null,
443
453
  "be131834",
444
454
  null,
445
455
  null
446
456
  );
447
- const De = Et.exports, Ut = {
457
+ const Ee = $t.exports, Ut = {
448
458
  "en-US": {
449
459
  clear: "Clear",
450
460
  reset: "Reset",
@@ -470,16 +480,16 @@ const De = Et.exports, Ut = {
470
480
  clear: "Borrar",
471
481
  apply: "Aplicar"
472
482
  }
473
- }, kt = P({
483
+ }, xt = P({
474
484
  i18n: { messages: Ut },
475
485
  name: "bento-date-range-filter",
476
486
  components: {
477
- BentoBaseFilter: Y,
478
- BentoButtonActions: st,
479
- BentoDateRangePicker: at,
480
- BentoTypography: ee,
481
- BentoDivider: ge,
482
- DateRangePickerCalendar: nt
487
+ BentoBaseFilter: K,
488
+ BentoButtonActions: ot,
489
+ BentoDateRangePicker: nt,
490
+ BentoTypography: le,
491
+ BentoDivider: Be,
492
+ DateRangePickerCalendar: st
483
493
  },
484
494
  props: {
485
495
  /**
@@ -508,6 +518,7 @@ const De = Et.exports, Ut = {
508
518
  * - isDateDisabled: Indicate if a date should be disabled or not
509
519
  * - maxRange: Set a maximum number of dates to be selectable by the range
510
520
  * - numberOfMonths: Number of months rendered on pane
521
+ * - quickSelectRanges: An array that sets the custom range dropdown items. @see BentoDateRangePicker
511
522
  */
512
523
  options: {
513
524
  type: Object,
@@ -523,55 +534,57 @@ const De = Et.exports, Ut = {
523
534
  },
524
535
  emits: [i.INPUT, i.UPDATE],
525
536
  setup(t, { emit: e }) {
526
- var U, R, V, x;
527
- const { locale: l, t: a } = H(), n = { de: Be, enUS: q, fr: Se }, { internalFilterValue: s, isSecondaryButtonDisabled: u, isApplyButtonDisabled: d } = z(
537
+ var k, N, R, M;
538
+ const { locale: l, t: a } = j(), n = { de: Ae, enUS: q, fr: De }, { internalFilterValue: s, isSecondaryButtonDisabled: u, isApplyButtonDisabled: d } = G(
528
539
  E(t, "value"),
529
540
  E(t, "defaultValue")
530
- ), c = (h) => h ? G(h, ue.NUMERIC_DATE_YEAR_FIRST, {
541
+ ), c = (v) => v ? W(v, ce.NUMERIC_DATE_YEAR_FIRST, {
531
542
  locale: n[l.value.substring(0, 2)] || q
532
- }) : void 0, f = (h) => h ? G(h, ue.HOUR_MINUTE_SECONDS, {
543
+ }) : void 0, f = (v) => v ? W(v, ce.HOUR_MINUTE_SECONDS, {
533
544
  locale: n[l.value.substring(0, 2)] || q
534
- }) : "", p = D(null), y = D(!1), v = _e({
535
- startDate: c((U = t.value) == null ? void 0 : U.startDate),
536
- endDate: c((R = t.value) == null ? void 0 : R.endDate),
537
- startTime: f((V = t.value) == null ? void 0 : V.startDate),
538
- endTime: f((x = t.value) == null ? void 0 : x.endDate)
545
+ }) : "", p = T(null), m = T(!1), b = be({
546
+ startDate: c((k = t.value) == null ? void 0 : k.startDate),
547
+ endDate: c((N = t.value) == null ? void 0 : N.endDate),
548
+ startTime: f((R = t.value) == null ? void 0 : R.startDate),
549
+ endTime: f((M = t.value) == null ? void 0 : M.endDate)
539
550
  }), g = r(
540
551
  () => {
541
- var h, L;
542
- return ((h = t.value) == null ? void 0 : h.startDate) != null && ((L = t.value) == null ? void 0 : L.endDate) != null ? 1 : null;
552
+ var v, z;
553
+ return ((v = t.value) == null ? void 0 : v.startDate) != null && ((z = t.value) == null ? void 0 : z.endDate) != null ? 1 : null;
543
554
  }
544
- ), S = r(
545
- () => t.defaultValue === null ? t.label : `${G(t.value.startDate, "dd MMM, yyyy", {
555
+ ), A = r(
556
+ () => t.defaultValue === null ? t.label : `${W(t.value.startDate, "dd MMM, yyyy", {
546
557
  locale: n[l.value.substring(0, 2)] || q
547
- })} - ${G(t.value.endDate, "dd MMM, yyyy", {
558
+ })} - ${W(t.value.endDate, "dd MMM, yyyy", {
548
559
  locale: n[l.value.substring(0, 2)] || q
549
560
  })}`
550
561
  ), _ = () => {
551
562
  p.value.closePopover();
552
- const { onlySlot: h, ...L } = t;
553
- e(i.UPDATE, { ...L, value: s.value });
554
- }, b = () => {
563
+ const { onlySlot: v, ...z } = t;
564
+ e(i.UPDATE, { ...z, value: s.value });
565
+ }, y = () => {
555
566
  s.value = void 0, _();
556
- }, M = () => {
567
+ }, w = () => {
557
568
  s.value = t.defaultValue, _();
558
- }, m = () => {
569
+ }, F = () => {
559
570
  s.value = t.value;
560
- }, F = (h) => {
561
- s.value = h, v.startDate = c(h.startDate), v.endDate = c(h.endDate), e(i.INPUT, { ...t, value: s.value });
562
- }, T = (h) => {
563
- F(h), e(i.INPUT, { ...t, value: s.value });
564
- }, O = r(
571
+ }, C = (v) => {
572
+ s.value = v, b.startDate = c(v.startDate), b.endDate = c(v.endDate), e(i.INPUT, { ...t, value: s.value });
573
+ }, D = (v) => {
574
+ v != null && v.startDate && (v != null && v.endDate) && (s.value = v, b.startDate = c(v.startDate), b.endDate = c(v.endDate), e(i.INPUT, { ...t, value: s.value }));
575
+ }, V = (v) => {
576
+ C(v), e(i.INPUT, { ...t, value: s.value });
577
+ }, Y = r(
565
578
  () => [
566
579
  {
567
580
  title: a("apply"),
568
581
  event: _,
569
- disabled: y.value || d.value
582
+ disabled: m.value || d.value
570
583
  },
571
584
  {
572
585
  title: t.defaultValue ? a("reset") : a("clear"),
573
- event: t.defaultValue ? M : b,
574
- disabled: y.value && u.value
586
+ event: t.defaultValue ? w : y,
587
+ disabled: m.value && u.value
575
588
  }
576
589
  ]
577
590
  );
@@ -579,59 +592,60 @@ const De = Et.exports, Ut = {
579
592
  // Refs
580
593
  baseFilter: p,
581
594
  // Values
582
- actions: O,
583
595
  appliedFiltersCount: g,
584
- formData: v,
596
+ actions: Y,
597
+ formData: b,
585
598
  internalFilterValue: s,
586
599
  isApplyButtonDisabled: d,
587
600
  isSecondaryButtonDisabled: u,
588
- buttonLabel: S,
601
+ buttonLabel: A,
589
602
  // Events
590
- onDateSelected: F,
591
- openFilter: m,
603
+ onDateSelected: C,
604
+ openFilter: F,
592
605
  updateFilter: _,
593
606
  onDatePickerRangeError: () => {
594
- y.value = !0, s.value = { startDate: void 0, endDate: void 0 }, e(i.INPUT, { ...t, value: s.value });
607
+ m.value = !0, s.value = { startDate: void 0, endDate: void 0 }, e(i.INPUT, { ...t, value: s.value });
595
608
  },
596
- onDatePickerRangeFormDateInputUpdate: (h) => {
597
- y.value = !1, h.startTime && (v.startTime = h.startTime), h.endTime && (v.endTime = h.endTime);
609
+ onDatePickerRangeFormDateInputUpdate: (v) => {
610
+ m.value = !1, v.startTime && (b.startTime = v.startTime), v.endTime && (b.endTime = v.endTime);
598
611
  },
599
- onDateInputSelected: T
612
+ onDateInputSelected: V,
613
+ onRangeSelectorInput: D
600
614
  };
601
615
  }
602
616
  });
603
- var $t = function() {
604
- var a, n, s, u, d, c, f, p, y, v;
617
+ var It = function() {
618
+ var a, n, s, u, d, c, f, p, m, b, g;
605
619
  var e = this, l = e._self._c;
606
- return e._self._setupProxy, l("bento-base-filter", { ref: "baseFilter", attrs: { label: e.label, field: e.field, "applied-filters-count": e.appliedFiltersCount, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "default-value": e.defaultValue, controlled: !e.onlySlot, "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, "custom-range": (n = e.options) == null ? void 0 : n.quickSelectRanges, "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": (d = e.options) == null ? void 0 : d.numberOfMonths }, 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": (f = e.options) == null ? void 0 : f.firstDayOfWeek, "is-date-disabled": (p = e.options) == null ? void 0 : p.isDateDisabled, "max-range": (y = e.options) == null ? void 0 : y.maxRange, "number-of-months": (v = e.options) == null ? void 0 : v.numberOfMonths, value: e.internalFilterValue, "date-form-data": e.formData }, on: { input: e.onDateSelected, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate }, scopedSlots: e._u([{ key: "title", fn: function() {
620
+ return e._self._setupProxy, l("bento-base-filter", { ref: "baseFilter", attrs: { "applied-filters-count": e.appliedFiltersCount, "button-label": e.buttonLabel, 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": (f = e.options) == null ? void 0 : f.firstDayOfWeek, "is-date-disabled": (p = e.options) == null ? void 0 : p.isDateDisabled, "max-range": (m = e.options) == null ? void 0 : m.maxRange, "number-of-months": (b = e.options) == null ? void 0 : b.numberOfMonths, "quick-select-ranges": (g = e.options) == null ? void 0 : g.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() {
607
621
  return [l("bento-typography", { attrs: { strongest: "", variant: "body", el: "span" } }, [e._v(" " + e._s(e.label) + " ")])];
608
622
  }, proxy: !0 }, { key: "actions", fn: function() {
609
623
  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" } })];
610
624
  }, proxy: !0 }]) })], 1)]], 2);
611
- }, Rt = [], xt = /* @__PURE__ */ A(
625
+ }, kt = [], Rt = /* @__PURE__ */ B(
626
+ xt,
627
+ It,
612
628
  kt,
613
- $t,
614
- Rt,
615
629
  !1,
616
630
  null,
617
- "e33e97f8",
631
+ "d69622fb",
618
632
  null,
619
633
  null
620
634
  );
621
- const Pe = xt.exports, It = {
635
+ const $e = Rt.exports, Ot = {
622
636
  "en-US": {
623
637
  noFiltersMatchThisSearch: "No filters match this search",
624
638
  search: "Search",
625
639
  searchFilter: "Search {filter}"
626
640
  }
627
- }, Ot = P({
628
- i18n: { messages: It },
641
+ }, Vt = P({
642
+ i18n: { messages: Ot },
629
643
  name: "bento-select-filter",
630
644
  components: {
631
- BentoBaseFilter: Y,
632
- BentoDropdown: Xe,
633
- BentoListbox: ot,
634
- BentoSearchBar: X
645
+ BentoBaseFilter: K,
646
+ BentoDropdown: et,
647
+ BentoListbox: rt,
648
+ BentoSearchBar: te
635
649
  },
636
650
  props: {
637
651
  /**
@@ -672,110 +686,110 @@ const Pe = xt.exports, It = {
672
686
  },
673
687
  emits: [i.INPUT, i.UPDATE],
674
688
  setup(t, { emit: e, slots: l }) {
675
- var J, K;
676
- const { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = z(
689
+ var Y, Z;
690
+ const { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = G(
677
691
  E(t, "value"),
678
692
  E(t, "defaultValue")
679
- ), { t: u, locale: d } = H(), c = D(""), f = E(t, "options"), p = D(t.options.listboxItems);
680
- Z(f, () => {
693
+ ), { t: u, locale: d } = j(), c = T(""), f = E(t, "options"), p = T(t.options.listboxItems);
694
+ X(f, () => {
681
695
  p.value = f.value.listboxItems;
682
696
  });
683
- const y = Ce(
697
+ const m = Se(
684
698
  c,
685
699
  p,
686
- (K = (J = t.options) == null ? void 0 : J.search) == null ? void 0 : K.searchEvent
687
- ), v = r(() => u("noFiltersMatchThisSearch")), g = r(() => {
688
- var U, R, V;
700
+ (Z = (Y = t.options) == null ? void 0 : Y.search) == null ? void 0 : Z.searchEvent
701
+ ), b = r(() => u("noFiltersMatchThisSearch")), g = r(() => {
702
+ var I, k, N;
689
703
  if (t.defaultValue === null)
690
704
  return t.label;
691
705
  if (t.options.multiple) {
692
- const x = t.value.length;
693
- if (x === t.options.listboxItems.length)
694
- return (U = t == null ? void 0 : t.options) == null ? void 0 : U.messages[d.value].persistentButtonLabelAllSelected;
695
- const h = (R = t == null ? void 0 : t.options) == null ? void 0 : R.messages[d.value].persistentButtonLabelPartiallySelected.split("|").map((L) => L.trim());
696
- return x === 1 ? h[0].replace("{count}", x) : h[1].replace("{count}", x);
706
+ const R = t.value.length;
707
+ if (R === t.options.listboxItems.length)
708
+ return (I = t == null ? void 0 : t.options) == null ? void 0 : I.messages[d.value].persistentButtonLabelAllSelected;
709
+ const M = (k = t == null ? void 0 : t.options) == null ? void 0 : k.messages[d.value].persistentButtonLabelPartiallySelected.split("|").map((v) => v.trim());
710
+ return R === 1 ? M[0].replace("{count}", R) : M[1].replace("{count}", R);
697
711
  }
698
- return W((V = t.options.listboxItems.find(({ value: x }) => x === t.value)) == null ? void 0 : V.label, 18);
699
- }), S = r(() => ae(`filter-listbox-${t.field}`)), _ = (U) => {
700
- a.value = U;
701
- const { onlySlot: R, ...V } = t;
702
- e(i.INPUT, { ...V, value: a.value });
703
- }, b = () => {
712
+ return Q((N = t.options.listboxItems.find(({ value: R }) => R === t.value)) == null ? void 0 : N.label, 18);
713
+ }), A = r(() => se(`filter-listbox-${t.field}`)), _ = (I) => {
714
+ a.value = I;
715
+ const { onlySlot: k, ...N } = t;
716
+ e(i.INPUT, { ...N, value: a.value });
717
+ }, y = () => {
704
718
  t.options.multiple && a.value && a.value.length === 0 && (a.value = t.defaultValue !== null ? t.defaultValue : void 0);
705
- const { onlySlot: U, ...R } = t;
706
- e(i.UPDATE, { ...R, value: a.value });
707
- }, M = () => {
719
+ const { onlySlot: I, ...k } = t;
720
+ e(i.UPDATE, { ...k, value: a.value });
721
+ }, w = () => {
708
722
  a.value = t.value;
709
- }, m = () => {
710
- c.value && (c.value = "");
711
723
  }, F = () => {
712
- a.value = t.defaultValue, b();
713
- }, T = () => {
714
- a.value = null, b();
724
+ c.value && (c.value = "");
725
+ }, C = () => {
726
+ a.value = t.defaultValue, y();
727
+ }, D = () => {
728
+ a.value = null, y();
715
729
  };
716
730
  return {
717
731
  // Values
718
732
  appliedFiltersCount: r(() => {
719
733
  if (t.value == null)
720
734
  return null;
721
- const U = 1;
722
- return t.options.multiple ? t.value.length : U;
735
+ const I = 1;
736
+ return t.options.multiple ? t.value.length : I;
723
737
  }),
724
- filteredItems: y,
738
+ filteredItems: m,
725
739
  internalFilterValue: a,
726
740
  isApplyButtonDisabled: s,
727
741
  isSecondaryButtonDisabled: n,
728
- listboxFilterId: S,
729
- noResultsMessage: v,
742
+ listboxFilterId: A,
743
+ noResultsMessage: b,
730
744
  slots: l,
731
745
  buttonLabel: g,
732
746
  // Search
733
747
  searchTerm: c,
734
748
  // Events
735
- clearFilter: T,
736
- closeFilter: m,
749
+ clearFilter: D,
750
+ closeFilter: F,
737
751
  onOptionSelected: _,
738
- openFilter: M,
739
- updateFilter: b,
740
- resetFilter: F
752
+ openFilter: w,
753
+ updateFilter: y,
754
+ resetFilter: C
741
755
  };
742
756
  }
743
757
  });
744
- var Vt = function() {
745
- var a, n, s, u, d, c, f, p, y, v, g;
758
+ var Nt = function() {
759
+ var a, n, s, u, d, c, f, p, m, b, g;
746
760
  var e = this, l = e._self._c;
747
- return e._self._setupProxy, l("bento-base-filter", { attrs: { label: e.label, field: e.field, "applied-filters-count": e.appliedFiltersCount, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "default-value": e.defaultValue, "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(S, _) {
748
- return { key: _, fn: function(b) {
749
- return [e._t(_, null, null, b)];
761
+ return e._self._setupProxy, l("bento-base-filter", { attrs: { label: e.label, field: e.field, "applied-filters-count": e.appliedFiltersCount, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "default-value": e.defaultValue, "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(A, _) {
762
+ return { key: _, fn: function(y) {
763
+ return [e._t(_, null, null, y)];
750
764
  } };
751
- })], 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(S) {
752
- e.searchTerm = S;
753
- } } })], 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": (p = (f = e.options) == null ? void 0 : f.lazy) == null ? void 0 : p.lazyLoadType, loading: (v = (y = e.options) == null ? void 0 : y.lazy) == null ? void 0 : v.loading, multiple: (g = e.options) == null ? void 0 : g.multiple, "no-results-message": e.noResultsMessage, searching: !!e.searchTerm, "selected-value": e.internalFilterValue }, on: { select: e.onOptionSelected, "show-more": function(S) {
754
- var _, b;
755
- (b = (_ = e.options) == null ? void 0 : _.lazy) == null || b.showMoreEvent();
756
- } }, scopedSlots: e._u([e._l(e.slots, function(S, _) {
757
- return { key: _, fn: function(b) {
758
- return [e._t(_, null, null, b)];
765
+ })], 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(A) {
766
+ e.searchTerm = A;
767
+ } } })], 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": (p = (f = e.options) == null ? void 0 : f.lazy) == null ? void 0 : p.lazyLoadType, loading: (b = (m = e.options) == null ? void 0 : m.lazy) == null ? void 0 : b.loading, multiple: (g = e.options) == null ? void 0 : g.multiple, "no-results-message": e.noResultsMessage, searching: !!e.searchTerm, "selected-value": e.internalFilterValue }, on: { select: e.onOptionSelected, "show-more": function(A) {
768
+ var _, y;
769
+ (y = (_ = e.options) == null ? void 0 : _.lazy) == null || y.showMoreEvent();
770
+ } }, scopedSlots: e._u([e._l(e.slots, function(A, _) {
771
+ return { key: _, fn: function(y) {
772
+ return [e._t(_, null, null, y)];
759
773
  } };
760
774
  })], null, !0) })]], 2);
761
- }, Nt = [], Lt = /* @__PURE__ */ A(
762
- Ot,
775
+ }, Lt = [], wt = /* @__PURE__ */ B(
763
776
  Vt,
764
777
  Nt,
778
+ Lt,
765
779
  !1,
766
780
  null,
767
781
  "dbe46835",
768
782
  null,
769
783
  null
770
784
  );
771
- const $ = Lt.exports, wt = P({
785
+ const x = wt.exports, Mt = P({
772
786
  name: "bento-select-avatar-filter",
773
787
  components: {
774
- BentoSelectFilter: $,
775
- BentoAvatar: rt
788
+ BentoSelectFilter: x,
789
+ BentoAvatar: it
776
790
  },
777
791
  props: {
778
- ...$.props,
792
+ ...x.props,
779
793
  /**
780
794
  * List of options that are needed to setup the country filter
781
795
  * Available options:
@@ -797,14 +811,14 @@ const $ = Lt.exports, wt = P({
797
811
  };
798
812
  }
799
813
  });
800
- var Mt = function() {
814
+ var Ht = function() {
801
815
  var e = this, l = e._self._c;
802
816
  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 }) {
803
817
  return [l("bento-avatar", { attrs: { username: a, src: n } })];
804
818
  } }]) }, "bento-select-filter", e.$props, !1));
805
- }, qt = [], Ht = /* @__PURE__ */ A(
806
- wt,
819
+ }, qt = [], jt = /* @__PURE__ */ B(
807
820
  Mt,
821
+ Ht,
808
822
  qt,
809
823
  !1,
810
824
  null,
@@ -812,14 +826,14 @@ var Mt = function() {
812
826
  null,
813
827
  null
814
828
  );
815
- const Ee = Ht.exports, jt = P({
829
+ const Ue = jt.exports, Yt = P({
816
830
  name: "bento-select-country-filter",
817
831
  components: {
818
- BentoSelectFilter: $,
819
- ListboxOptionTag: Ae
832
+ BentoSelectFilter: x,
833
+ ListboxOptionTag: Te
820
834
  },
821
835
  props: {
822
- ...$.props,
836
+ ...x.props,
823
837
  /**
824
838
  * List of options that are needed to setup the country filter
825
839
  * Available options:
@@ -843,29 +857,29 @@ const Ee = Ht.exports, jt = P({
843
857
  };
844
858
  }
845
859
  });
846
- var Yt = function() {
860
+ var zt = function() {
847
861
  var e = this, l = e._self._c;
848
862
  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) {
849
863
  return [l("listbox-option-tag", { attrs: { option: a } })];
850
864
  } }]) }, "bento-select-filter", e.$props, !1));
851
- }, zt = [], Jt = /* @__PURE__ */ A(
852
- jt,
865
+ }, Jt = [], Kt = /* @__PURE__ */ B(
853
866
  Yt,
854
867
  zt,
868
+ Jt,
855
869
  !1,
856
870
  null,
857
871
  null,
858
872
  null,
859
873
  null
860
874
  );
861
- const Ue = Jt.exports, Kt = P({
875
+ const xe = Kt.exports, Gt = P({
862
876
  name: "bento-select-country-filter",
863
877
  components: {
864
- BentoSelectFilter: $,
865
- BentoCountry: it
878
+ BentoSelectFilter: x,
879
+ BentoCountry: ut
866
880
  },
867
881
  props: {
868
- ...$.props,
882
+ ...x.props,
869
883
  /**
870
884
  * List of options that are needed to setup the country filter
871
885
  * Available options:
@@ -880,11 +894,11 @@ const Ue = Jt.exports, Kt = P({
880
894
  },
881
895
  emits: [i.INPUT, i.UPDATE],
882
896
  setup(t, { emit: e }) {
883
- const l = E(t, "options"), { listboxItems: a, variant: n } = Me(l.value), s = (c) => e(i.UPDATE, c), u = ut(n, a), d = r(() => ({
897
+ const l = E(t, "options"), { listboxItems: a, variant: n } = He(l.value), s = (c) => e(i.UPDATE, c), u = ct(n, a), d = r(() => ({
884
898
  ...t.options,
885
899
  listboxItems: u.value
886
900
  }));
887
- return qe("skipBentoCountryDeprecateMessage", !0), (!n || n.value === "custom") && Ye(
901
+ return qe("skipBentoCountryDeprecateMessage", !0), (!n || n.value === "custom") && ze(
888
902
  'BentoSelectCountryFilter type with `options.variant==="custom"`',
889
903
  "Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
890
904
  "2.0.0"
@@ -898,14 +912,14 @@ const Ue = Jt.exports, Kt = P({
898
912
  };
899
913
  }
900
914
  });
901
- var Gt = function() {
915
+ var Zt = function() {
902
916
  var e = this, l = e._self._c;
903
917
  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 }) {
904
918
  return [l("bento-country", { attrs: { code: a, label: n, variant: "custom" } })];
905
919
  } }]) }, "bento-select-filter", e.$props, !1));
906
- }, Wt = [], Zt = /* @__PURE__ */ A(
907
- Kt,
920
+ }, Wt = [], Qt = /* @__PURE__ */ B(
908
921
  Gt,
922
+ Zt,
909
923
  Wt,
910
924
  !1,
911
925
  null,
@@ -913,14 +927,14 @@ var Gt = function() {
913
927
  null,
914
928
  null
915
929
  );
916
- const ke = Zt.exports, Qt = P({
930
+ const Ie = Qt.exports, Xt = P({
917
931
  name: "bento-select-payment-method-filter",
918
932
  components: {
919
- BentoSelectFilter: $,
920
- BentoPaymentMethod: ct
933
+ BentoSelectFilter: x,
934
+ BentoPaymentMethod: dt
921
935
  },
922
936
  props: {
923
- ...$.props,
937
+ ...x.props,
924
938
  /**
925
939
  * List of options that are needed to setup the payment method filter
926
940
  * Available options:
@@ -942,29 +956,29 @@ const ke = Zt.exports, Qt = P({
942
956
  };
943
957
  }
944
958
  });
945
- var Xt = function() {
959
+ var el = function() {
946
960
  var e = this, l = e._self._c;
947
961
  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 }) {
948
962
  return [l("bento-payment-method", { attrs: { type: a, label: n } })];
949
963
  } }]) }, "bento-select-filter", e.$props, !1));
950
- }, el = [], tl = /* @__PURE__ */ A(
951
- Qt,
964
+ }, tl = [], ll = /* @__PURE__ */ B(
952
965
  Xt,
953
966
  el,
967
+ tl,
954
968
  !1,
955
969
  null,
956
970
  null,
957
971
  null,
958
972
  null
959
973
  );
960
- const $e = tl.exports, ll = P({
974
+ const ke = ll.exports, al = P({
961
975
  name: "bento-select-country-filter",
962
976
  components: {
963
- BentoSelectFilter: $,
964
- ListboxOptionTag: Ae
977
+ BentoSelectFilter: x,
978
+ ListboxOptionTag: Te
965
979
  },
966
980
  props: {
967
- ...$.props,
981
+ ...x.props,
968
982
  /**
969
983
  * List of options that are needed to setup the tag filter
970
984
  * Available options:
@@ -997,30 +1011,30 @@ const $e = tl.exports, ll = P({
997
1011
  };
998
1012
  }
999
1013
  });
1000
- var al = function() {
1014
+ var nl = function() {
1001
1015
  var e = this, l = e._self._c;
1002
1016
  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 }) {
1003
1017
  return [l("listbox-option-tag", { attrs: { option: { value: a, data: n, label: "" } } })];
1004
1018
  } }]) }, "bento-select-filter", e.$props, !1));
1005
- }, nl = [], sl = /* @__PURE__ */ A(
1006
- ll,
1019
+ }, sl = [], ol = /* @__PURE__ */ B(
1007
1020
  al,
1008
1021
  nl,
1022
+ sl,
1009
1023
  !1,
1010
1024
  null,
1011
1025
  null,
1012
1026
  null,
1013
1027
  null
1014
1028
  );
1015
- const Re = sl.exports, ol = {
1029
+ const Re = ol.exports, rl = {
1016
1030
  "en-US": {
1017
1031
  yes: "Yes",
1018
1032
  no: "No"
1019
1033
  }
1020
- }, rl = P({
1034
+ }, il = P({
1021
1035
  name: "bento-boolean-filter",
1022
- i18n: { messages: ol },
1023
- components: { BentoBaseFilter: Y, BentoRadioGroup: Ke },
1036
+ i18n: { messages: rl },
1037
+ components: { BentoBaseFilter: K, BentoRadioGroup: Ge },
1024
1038
  props: {
1025
1039
  /**
1026
1040
  * Default value of the filter to reset to.
@@ -1047,25 +1061,25 @@ const Re = sl.exports, ol = {
1047
1061
  },
1048
1062
  emits: [i.INPUT, i.UPDATE],
1049
1063
  setup(t, { emit: e }) {
1050
- const { t: l } = H(), a = r(() => [
1064
+ const { t: l } = j(), a = r(() => [
1051
1065
  { value: "yes", label: l("yes") },
1052
1066
  { value: "no", label: l("no") }
1053
- ]), { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: u } = z(
1067
+ ]), { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: u } = G(
1054
1068
  E(t, "value"),
1055
1069
  E(t, "defaultValue")
1056
1070
  ), d = r(
1057
- () => t.defaultValue === null ? t.label : W(a.value.find(({ value: _ }) => _ === t.value).label, 18)
1071
+ () => t.defaultValue === null ? t.label : Q(a.value.find(({ value: _ }) => _ === t.value).label, 18)
1058
1072
  ), c = r(() => t.value != null ? 1 : null), f = r(() => ({
1059
1073
  ["b-boolean-filter--only-slot"]: t.onlySlot
1060
1074
  }));
1061
- le(() => {
1075
+ ne(() => {
1062
1076
  n.value || (n.value = null);
1063
1077
  });
1064
1078
  const p = (_) => {
1065
1079
  n.value = _, e(i.INPUT, { ...t, value: n.value });
1066
- }, y = () => {
1080
+ }, m = () => {
1067
1081
  n.value = t.value;
1068
- }, v = () => {
1082
+ }, b = () => {
1069
1083
  e(i.UPDATE, { ...t, value: n.value });
1070
1084
  };
1071
1085
  return {
@@ -1079,39 +1093,39 @@ const Re = sl.exports, ol = {
1079
1093
  isSecondaryButtonDisabled: s,
1080
1094
  // Events
1081
1095
  onInput: p,
1082
- updateFilter: v,
1096
+ updateFilter: b,
1083
1097
  clearFilter: () => {
1084
- n.value = null, v();
1098
+ n.value = null, b();
1085
1099
  },
1086
- openFilter: y,
1100
+ openFilter: m,
1087
1101
  resetFilter: () => e(i.UPDATE, { ...t, value: t.defaultValue })
1088
1102
  };
1089
1103
  }
1090
1104
  });
1091
- var il = function() {
1105
+ var ul = function() {
1092
1106
  var e = this, l = e._self._c;
1093
1107
  return e._self._setupProxy, l("bento-base-filter", e._b({ attrs: { "applied-filters-count": e.appliedFiltersCount, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "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) {
1094
1108
  return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1095
1109
  } } }, [l("bento-radio-group", { attrs: { items: e.items, label: e.label, "model-value": e.internalFilterValue, "hide-label": "" }, on: { "update:model-value": e.onInput } })], 1)]);
1096
- }, ul = [], cl = /* @__PURE__ */ A(
1097
- rl,
1110
+ }, cl = [], dl = /* @__PURE__ */ B(
1098
1111
  il,
1099
1112
  ul,
1113
+ cl,
1100
1114
  !1,
1101
1115
  null,
1102
1116
  "275a3969",
1103
1117
  null,
1104
1118
  null
1105
1119
  );
1106
- const xe = cl.exports, dl = {
1120
+ const Oe = dl.exports, fl = {
1107
1121
  "en-US": {
1108
1122
  from: "From",
1109
1123
  to: "To"
1110
1124
  }
1111
- }, fl = P({
1125
+ }, _l = P({
1112
1126
  name: "bento-range-filter",
1113
- i18n: { messages: dl },
1114
- components: { BentoBaseFilter: Y, BentoInputField: he },
1127
+ i18n: { messages: fl },
1128
+ components: { BentoBaseFilter: K, BentoInputField: ge },
1115
1129
  props: {
1116
1130
  /**
1117
1131
  * Default value of the filter to reset to.
@@ -1138,23 +1152,23 @@ const xe = cl.exports, dl = {
1138
1152
  },
1139
1153
  emits: [i.INPUT, i.UPDATE],
1140
1154
  setup(t, { emit: e }) {
1141
- const l = D(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = z(
1155
+ const l = T(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = G(
1142
1156
  E(t, "value"),
1143
1157
  E(t, "defaultValue")
1144
1158
  ), u = r(
1145
- () => t.defaultValue === null ? t.label : `${W(t.value[0], 5)}-${W(t.value[1], 5)}`
1146
- ), d = r(() => t.value.find((b) => b !== "") ? 1 : null), c = r(() => ({
1159
+ () => t.defaultValue === null ? t.label : `${Q(t.value[0], 5)}-${Q(t.value[1], 5)}`
1160
+ ), d = r(() => t.value.find((y) => y !== "") ? 1 : null), c = r(() => ({
1147
1161
  ["b-range-filter--only-slot"]: t.onlySlot
1148
1162
  })), f = () => {
1149
- a.value = t.value, He(() => l.value.focusInput());
1163
+ a.value = t.value, je(() => l.value.focusInput());
1150
1164
  }, p = () => {
1151
1165
  e(i.INPUT, { ...t, value: a.value });
1152
- }, y = (b) => {
1153
- a.value = [b, a.value[1]], p();
1154
- }, v = (b) => {
1155
- a.value = [a.value[0], b], p();
1166
+ }, m = (y) => {
1167
+ a.value = [y, a.value[1]], p();
1168
+ }, b = (y) => {
1169
+ a.value = [a.value[0], y], p();
1156
1170
  }, g = () => {
1157
- a.value.some((b) => b) || (a.value = t.defaultValue !== null ? t.defaultValue : void 0), e(i.UPDATE, {
1171
+ a.value.some((y) => y) || (a.value = t.defaultValue !== null ? t.defaultValue : void 0), e(i.UPDATE, {
1158
1172
  ...t,
1159
1173
  value: a.value
1160
1174
  });
@@ -1169,8 +1183,8 @@ const xe = cl.exports, dl = {
1169
1183
  isSecondaryButtonDisabled: n,
1170
1184
  buttonLabel: u,
1171
1185
  // Events
1172
- updateFrom: y,
1173
- updateTo: v,
1186
+ updateFrom: m,
1187
+ updateTo: b,
1174
1188
  updateFilter: g,
1175
1189
  clearFilter: () => {
1176
1190
  a.value = ["", ""], g();
@@ -1180,32 +1194,32 @@ const xe = cl.exports, dl = {
1180
1194
  };
1181
1195
  }
1182
1196
  });
1183
- var _l = function() {
1197
+ var pl = function() {
1184
1198
  var e = this, l = e._self._c;
1185
1199
  return e._self._setupProxy, l("bento-base-filter", e._b({ attrs: { "applied-filters-count": e.appliedFiltersCount, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "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) {
1186
1200
  return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1187
1201
  } } }, [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)]);
1188
- }, pl = [], bl = /* @__PURE__ */ A(
1189
- fl,
1202
+ }, bl = [], vl = /* @__PURE__ */ B(
1190
1203
  _l,
1191
1204
  pl,
1205
+ bl,
1192
1206
  !1,
1193
1207
  null,
1194
1208
  "e51c13b2",
1195
1209
  null,
1196
1210
  null
1197
1211
  );
1198
- const Ie = bl.exports;
1199
- var te = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(te || {});
1200
- const vl = P({
1212
+ const Ve = vl.exports;
1213
+ var ae = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(ae || {});
1214
+ const yl = P({
1201
1215
  name: "base-filter-button",
1202
- components: { BaseButton: be, BentoTypography: ee, ChevronUpIcon: me, ChevronDownIcon: Fe },
1216
+ components: { BaseButton: ye, BentoTypography: le, ChevronUpIcon: Ce, ChevronDownIcon: he },
1203
1217
  props: {
1204
1218
  /**
1205
1219
  * The number of applies values within the filter.
1206
1220
  * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
1207
1221
  */
1208
- amountAppliedValues: { type: Number, default: null },
1222
+ amountAppliedValues: { type: [Number, String], default: null },
1209
1223
  /**
1210
1224
  * Disables button functionality.
1211
1225
  */
@@ -1224,9 +1238,9 @@ const vl = P({
1224
1238
  */
1225
1239
  bold: { type: Boolean, default: !1 }
1226
1240
  },
1227
- emits: [ie.CLICK],
1241
+ emits: [ue.CLICK],
1228
1242
  setup(t, { slots: e, emit: l, attrs: a }) {
1229
- const n = r(() => e.default ? ve(e)("default") : null), s = pe({ ariaLabel: n }), u = D(null), d = r(() => {
1243
+ const n = r(() => e.default ? me(e)("default") : null), s = ve({ ariaLabel: n }), u = T(null), d = r(() => {
1230
1244
  var p;
1231
1245
  return {
1232
1246
  "aria-controls": (p = a["aria-controls"]) == null ? void 0 : p.toString()
@@ -1242,30 +1256,30 @@ const vl = P({
1242
1256
  conditionalClasses: c,
1243
1257
  // Methods
1244
1258
  onClickButton: () => {
1245
- t.disabled || l(ie.CLICK);
1259
+ t.disabled || l(ue.CLICK);
1246
1260
  },
1247
- hasSlot: ye(e),
1261
+ hasSlot: Fe(e),
1248
1262
  // Refs
1249
1263
  baseFilterButtonRef: u
1250
1264
  };
1251
1265
  }
1252
1266
  });
1253
- var yl = function() {
1267
+ var ml = function() {
1254
1268
  var e = this, l = e._self._c;
1255
1269
  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() {
1256
1270
  return [e.isFilterOpen ? l("chevron-up-icon", { attrs: { "aria-hidden": "true" } }) : l("chevron-down-icon", { attrs: { "aria-hidden": "true" } })];
1257
1271
  }, proxy: !0 } : null], null, !0) }, [l("div", { staticClass: "b-base-filter-button__default-container" }, [l("bento-typography", { staticClass: "b-base-filter-button__label", attrs: { el: "span", variant: "body", stronger: e.bold } }, [e._t("default")], 2), 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()], 1)]);
1258
- }, ml = [], Fl = /* @__PURE__ */ A(
1259
- vl,
1272
+ }, Fl = [], Cl = /* @__PURE__ */ B(
1260
1273
  yl,
1261
1274
  ml,
1275
+ Fl,
1262
1276
  !1,
1263
1277
  null,
1264
- "83d1168e",
1278
+ "f53055e7",
1265
1279
  null,
1266
1280
  null
1267
1281
  );
1268
- const hl = Fl.exports, Cl = P({
1282
+ const hl = Cl.exports, gl = P({
1269
1283
  name: "all-filters-modal-button",
1270
1284
  components: { BaseFilterButton: hl },
1271
1285
  props: {
@@ -1276,7 +1290,7 @@ const hl = Fl.exports, Cl = P({
1276
1290
  /**
1277
1291
  * Total count of applied filters
1278
1292
  */
1279
- appliedFiltersCount: { type: Number, default: null },
1293
+ appliedFiltersCount: { type: [Number, String], default: null },
1280
1294
  /**
1281
1295
  * Indicates whether the filter popover tied to this button is showing
1282
1296
  */
@@ -1299,21 +1313,42 @@ const hl = Fl.exports, Cl = P({
1299
1313
  };
1300
1314
  }
1301
1315
  });
1302
- var gl = function() {
1316
+ var Sl = function() {
1303
1317
  var e = this, l = e._self._c;
1304
1318
  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) + " ")]);
1305
- }, Bl = [], Sl = /* @__PURE__ */ A(
1306
- Cl,
1319
+ }, Bl = [], Al = /* @__PURE__ */ B(
1307
1320
  gl,
1321
+ Sl,
1308
1322
  Bl,
1309
1323
  !1,
1310
1324
  null,
1311
- "53602c1c",
1325
+ "4c415ac7",
1326
+ null,
1327
+ null
1328
+ );
1329
+ const Dl = Al.exports;
1330
+ let _e = 0;
1331
+ const Tl = {
1332
+ beforeCreate() {
1333
+ this.uuid = _e.toString(), _e += 1;
1334
+ }
1335
+ };
1336
+ var Pl = function() {
1337
+ var e = this, l = e._self._c;
1338
+ 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" } })]);
1339
+ }, El = [], $l = /* @__PURE__ */ B(
1340
+ Tl,
1341
+ Pl,
1342
+ El,
1343
+ !1,
1344
+ null,
1345
+ "6a35173c",
1312
1346
  null,
1313
1347
  null
1314
1348
  );
1315
- const Al = Sl.exports, Tl = {
1349
+ const Ul = $l.exports, xl = {
1316
1350
  "en-US": {
1351
+ all: "All",
1317
1352
  activeFilters: "Active filters",
1318
1353
  allFilters: "All filters",
1319
1354
  applyAll: "Apply all",
@@ -1324,27 +1359,28 @@ const Al = Sl.exports, Tl = {
1324
1359
  otherFilters: "Other filters",
1325
1360
  searchBar: "Search bar"
1326
1361
  }
1327
- }, Dl = P({
1328
- i18n: { messages: Tl },
1362
+ }, Il = P({
1363
+ i18n: { messages: xl },
1329
1364
  name: "all-filters-modal",
1330
1365
  components: {
1331
- AllFiltersModalButton: Al,
1332
- BentoBooleanFilter: xe,
1333
- BentoButton: Qe,
1334
- BentoDateFilter: De,
1335
- BentoDateRangeFilter: Pe,
1336
- BentoInputFilter: Te,
1366
+ AllFiltersModalButton: Dl,
1367
+ BentoBooleanFilter: Oe,
1368
+ BentoButton: Xe,
1369
+ BentoDateFilter: Ee,
1370
+ BentoDateRangeFilter: $e,
1371
+ BentoInputFilter: Pe,
1337
1372
  BentoModal: We,
1338
- BentoRangeFilter: Ie,
1339
- BentoSearchBar: X,
1340
- BentoSelectAvatarFilter: Ee,
1341
- BentoSelectCurrencyFilter: Ue,
1342
- BentoSelectCountryFilter: ke,
1343
- BentoSelectFilter: $,
1344
- BentoSelectPaymentMethodFilter: $e,
1373
+ BentoRangeFilter: Ve,
1374
+ BentoSearchBar: te,
1375
+ BentoSelectAvatarFilter: Ue,
1376
+ BentoSelectCurrencyFilter: xe,
1377
+ BentoSelectCountryFilter: Ie,
1378
+ BentoSelectFilter: x,
1379
+ BentoSelectPaymentMethodFilter: ke,
1345
1380
  BentoSelectTagFilter: Re,
1346
- BentoTypography: ee,
1347
- FilterBarButton: ne
1381
+ BentoTypography: le,
1382
+ FilterBarButton: oe,
1383
+ SlidersIcon: Ul
1348
1384
  },
1349
1385
  props: {
1350
1386
  /**
@@ -1372,66 +1408,66 @@ const Al = Sl.exports, Tl = {
1372
1408
  default: () => []
1373
1409
  }
1374
1410
  },
1375
- emits: [te.INPUT],
1411
+ emits: [ae.INPUT],
1376
1412
  setup(t, { emit: e }) {
1377
- const l = _e({ value: t.value }), a = ae("all-filters-modal"), n = D([]), s = D(!1), u = D(0), d = D(null), c = D(""), { t: f } = H(), p = Ce(c, E(l, "value")), y = D({});
1378
- le(() => {
1379
- y.value = [];
1380
- }), Z(
1413
+ const l = be({ value: t.value }), a = se("all-filters-modal"), n = T([]), s = T(!1), u = T(0), d = T(null), c = T(""), { t: f } = j(), p = Se(c, E(l, "value")), m = T({});
1414
+ ne(() => {
1415
+ m.value = [];
1416
+ }), X(
1381
1417
  () => t.value,
1382
1418
  () => {
1383
1419
  l.value = t.value;
1384
1420
  }
1385
1421
  );
1386
- const v = (o) => (
1422
+ const b = (o) => (
1387
1423
  /* eslint-disable-next-line no-nested-ternary */
1388
- o.sort((C, B) => C.label > B.label ? 1 : B.label > C.label ? -1 : 0)
1424
+ o.sort((h, S) => h.label > S.label ? 1 : S.label > h.label ? -1 : 0)
1389
1425
  ), g = r(
1390
- () => v(
1426
+ () => b(
1391
1427
  p.value.filter(
1392
1428
  (o) => {
1393
- var C, B;
1394
- return Array.isArray(o.value) ? ((C = o.value) == null ? void 0 : C.length) && ((B = o.value) == null ? void 0 : B.find((N) => N !== "")) : o.value;
1429
+ var h, S;
1430
+ return Array.isArray(o.value) ? ((h = o.value) == null ? void 0 : h.length) && ((S = o.value) == null ? void 0 : S.find(($) => $ !== "")) : o.value;
1395
1431
  }
1396
1432
  )
1397
1433
  )
1398
- ), S = r(
1399
- () => v(
1434
+ ), A = r(
1435
+ () => b(
1400
1436
  p.value.filter(
1401
1437
  (o) => {
1402
- var C, B;
1403
- return Array.isArray(o.value) ? ((C = o.value) == null ? void 0 : C.length) === 0 || ((B = o.value) == null ? void 0 : B.every((N) => N === "")) : !o.value;
1438
+ var h, S;
1439
+ return Array.isArray(o.value) ? ((h = o.value) == null ? void 0 : h.length) === 0 || ((S = o.value) == null ? void 0 : S.every(($) => $ === "")) : !o.value;
1404
1440
  }
1405
1441
  )
1406
1442
  )
1407
1443
  ), _ = r(() => {
1408
1444
  var o;
1409
1445
  return c.value && ((o = p.value) == null ? void 0 : o.length) === 0;
1410
- }), b = r(() => l.value[u.value]), M = () => {
1411
- const o = g.value.length ? g.value[0] : S.value[0], C = l.value.findIndex(
1412
- (B) => B.label === o.label && B.field === o.field
1446
+ }), y = r(() => l.value[u.value]), w = () => {
1447
+ const o = g.value.length ? g.value[0] : A.value[0], h = l.value.findIndex(
1448
+ (S) => S.label === o.label && S.field === o.field
1413
1449
  );
1414
- u.value = C;
1450
+ u.value = h;
1415
1451
  };
1416
- je(() => {
1417
- M();
1452
+ Ye(() => {
1453
+ w();
1418
1454
  });
1419
- const m = r(
1455
+ const F = r(
1420
1456
  () => l.value.map((o) => {
1421
- var C, B, N, Q, se, oe;
1457
+ var h, S, $, H, ee, re;
1422
1458
  switch (o.type) {
1423
- case k.SELECT:
1424
- case k.SELECT_AVATAR:
1425
- case k.SELECT_COUNTRY:
1426
- case k.SELECT_CURRENCY:
1427
- case k.SELECT_PAYMENT_METHOD:
1428
- case k.SELECT_TAG:
1429
- switch ((C = o.options) == null ? void 0 : C.multiple) {
1459
+ case U.SELECT:
1460
+ case U.SELECT_AVATAR:
1461
+ case U.SELECT_COUNTRY:
1462
+ case U.SELECT_CURRENCY:
1463
+ case U.SELECT_PAYMENT_METHOD:
1464
+ case U.SELECT_TAG:
1465
+ switch ((h = o.options) == null ? void 0 : h.multiple) {
1430
1466
  case !0:
1431
1467
  return {
1432
1468
  label: o.label,
1433
1469
  field: o.field,
1434
- count: (B = o.value) != null && B.length ? (N = o.value) == null ? void 0 : N.length : null
1470
+ count: (S = o.value) != null && S.length ? ($ = o.value) == null ? void 0 : $.length : null
1435
1471
  };
1436
1472
  default:
1437
1473
  return {
@@ -1440,21 +1476,21 @@ const Al = Sl.exports, Tl = {
1440
1476
  count: o.value == null ? null : 1
1441
1477
  };
1442
1478
  }
1443
- case k.DATE_RANGE:
1479
+ case U.DATE_RANGE:
1444
1480
  return {
1445
1481
  label: o.label,
1446
1482
  field: o.field,
1447
- count: ((Q = o.value) == null ? void 0 : Q.startDate) != null && ((se = o.value) == null ? void 0 : se.endDate) != null ? 1 : null
1483
+ count: ((H = o.value) == null ? void 0 : H.startDate) != null && ((ee = o.value) == null ? void 0 : ee.endDate) != null ? 1 : null
1448
1484
  };
1449
- case k.RANGE:
1485
+ case U.RANGE:
1450
1486
  return {
1451
1487
  label: o.label,
1452
1488
  field: o.field,
1453
- count: (oe = o.value) != null && oe.find((Ne) => Ne !== "") ? 1 : null
1489
+ count: (re = o.value) != null && re.find((Le) => Le !== "") ? 1 : null
1454
1490
  };
1455
- case k.INPUT:
1456
- case k.BOOLEAN:
1457
- case k.DATE:
1491
+ case U.INPUT:
1492
+ case U.BOOLEAN:
1493
+ case U.DATE:
1458
1494
  default:
1459
1495
  return {
1460
1496
  label: o.label,
@@ -1463,103 +1499,109 @@ const Al = Sl.exports, Tl = {
1463
1499
  };
1464
1500
  }
1465
1501
  })
1466
- ), F = r(
1502
+ ), C = r(
1467
1503
  () => {
1468
1504
  var o;
1469
- return Array.isArray(b.value.value) ? ((o = b.value) == null ? void 0 : o.value.length) && b.value.value.find((C) => C !== "") : !!l.value[u.value].value;
1505
+ return Array.isArray(y.value.value) ? ((o = y.value) == null ? void 0 : o.value.length) && y.value.value.find((h) => h !== "") : !!l.value[u.value].value;
1470
1506
  }
1471
- ), T = r(
1507
+ ), D = r(
1472
1508
  () => {
1473
1509
  var o;
1474
1510
  return (
1475
1511
  // eslint-disable-next-line no-return-assign, no-param-reassign
1476
- (o = m.value) == null ? void 0 : o.reduce((C, B) => C += B.count, 0)
1512
+ (o = F.value) == null ? void 0 : o.reduce((h, S) => h += S.count, 0)
1477
1513
  );
1478
1514
  }
1479
- ), O = () => {
1515
+ ), V = () => {
1480
1516
  s.value ? s.value = !1 : s.value = !0;
1481
- }, J = (o) => m.value.find((C) => C.label === o).count, K = (o, C) => {
1517
+ }, Y = (o) => {
1518
+ var S, $, H;
1519
+ const h = F.value.find((ee) => ee.field === o.field).count;
1520
+ return o.type.includes("BentoSelect") && ((S = o.options) != null && S.multiple) && h === ((H = ($ = o.options) == null ? void 0 : $.listboxItems) == null ? void 0 : H.length) ? f("all") : h;
1521
+ }, Z = (o, h) => {
1482
1522
  u.value = l.value.findIndex(
1483
- (B) => B.label === o && B.field === C
1523
+ (S) => S.label === o && S.field === h
1484
1524
  );
1485
- }, U = () => {
1525
+ }, I = () => {
1486
1526
  c.value = "";
1527
+ }, k = () => {
1528
+ s.value = !1, l.value = t.value, I(), w();
1529
+ }, N = (o) => {
1530
+ const h = l.value.map(({ value: S, ...$ }, H) => H === u.value ? { value: o.value, ...$ } : { value: S, ...$ });
1531
+ l.value = h;
1487
1532
  }, R = () => {
1488
- s.value = !1, l.value = t.value, U(), M();
1489
- }, V = (o) => {
1490
- const C = l.value.map(({ value: B, ...N }, Q) => Q === u.value ? { value: o.value, ...N } : { value: B, ...N });
1491
- l.value = C;
1492
- }, x = () => {
1493
- V({
1494
- field: b.value.field,
1495
- label: b.value.label,
1496
- type: b.value.type,
1533
+ N({
1534
+ field: y.value.field,
1535
+ label: y.value.label,
1536
+ type: y.value.type,
1497
1537
  value: void 0
1498
1538
  });
1499
- }, h = () => {
1500
- l.value = l.value.map(({ value: o, ...C }) => ({
1501
- ...C,
1539
+ }, M = () => {
1540
+ l.value = l.value.map(({ value: o, ...h }) => ({
1541
+ ...h,
1502
1542
  value: void 0
1503
1543
  }));
1504
- }, L = () => {
1505
- e(te.INPUT, l.value), s.value = !1;
1506
- }, Oe = r(
1544
+ }, v = () => {
1545
+ e(ae.INPUT, l.value), s.value = !1;
1546
+ }, z = r(
1507
1547
  () => JSON.stringify(l.value) === JSON.stringify(t.value)
1508
- ), Ve = r(() => [
1548
+ ), Ne = r(() => [
1509
1549
  {
1510
1550
  title: f("applyAll"),
1511
- disabled: Oe.value,
1512
- event: L
1551
+ disabled: z.value,
1552
+ event: v
1513
1553
  },
1514
1554
  {
1515
1555
  title: f("cancel"),
1516
- event: R
1556
+ event: k
1517
1557
  },
1518
1558
  {
1519
1559
  title: f("clearAll"),
1520
- disabled: !T.value,
1521
- event: h
1560
+ disabled: !D.value,
1561
+ event: M
1522
1562
  }
1523
1563
  ]);
1524
1564
  return {
1525
1565
  // Enums
1526
- BentoModalEvent: Ze,
1566
+ BentoModalEvent: Qe,
1527
1567
  // Values
1528
1568
  allFiltersModalUniqueId: a,
1529
1569
  allFiltersModalFiltersSection: n,
1530
- allFiltersModalFilterButtons: y,
1531
- numberOfActiveFilters: T,
1570
+ allFiltersModalFilterButtons: m,
1571
+ numberOfActiveFilters: D,
1532
1572
  isEmptyResultForSearchFilter: _,
1533
1573
  isModalOpen: s,
1534
- isClearButtonEnabled: F,
1574
+ isClearButtonEnabled: C,
1535
1575
  activeFilters: g,
1536
- otherFilters: S,
1537
- modalActions: Ve,
1538
- selectedFilter: b,
1576
+ otherFilters: A,
1577
+ modalActions: Ne,
1578
+ selectedFilter: y,
1539
1579
  selectedFilterRef: d,
1540
1580
  filters: l,
1541
- computedCounts: m,
1581
+ computedCounts: F,
1542
1582
  searchTerm: c,
1543
1583
  // Methods
1544
- onClickAllFiltersModal: O,
1545
- getFilterCount: J,
1546
- cancel: R,
1547
- selectFilter: K,
1548
- clearFilter: x,
1549
- updateFilter: V,
1550
- onSearchbarClear: U,
1584
+ onClickAllFiltersModal: V,
1585
+ getFilterCount: Y,
1586
+ cancel: k,
1587
+ selectFilter: Z,
1588
+ clearFilter: R,
1589
+ updateFilter: N,
1590
+ onSearchbarClear: I,
1551
1591
  onKeydownRight: () => {
1552
- et(1, d.value.$el).focus();
1592
+ tt(1, d.value.$el).focus();
1553
1593
  },
1554
1594
  onKeydownLeft: () => {
1555
- y.value[b.value.label].$el.focus();
1595
+ m.value[y.value.label].$el.focus();
1556
1596
  }
1557
1597
  };
1558
1598
  }
1559
1599
  });
1560
- var Pl = function() {
1600
+ var kl = function() {
1561
1601
  var e = this, l = e._self._c;
1562
- return e._self._setupProxy, l("div", { staticClass: "b-all-filters-modal" }, [l("filter-bar-button", { attrs: { "is-filter-open": e.isModalOpen, "applied-filters-count": e.numberOfActiveFilters }, on: { click: e.onClickAllFiltersModal } }, [e._v(" " + e._s(e.$t("allFilters")) + " ")]), l("bento-modal", { staticClass: "'b-all-filters-modal__modal'", attrs: { "is-open": e.isModalOpen, "with-column-layout": !0, size: "large", actions: e.modalActions, "is-dismissible": !1, "hide-close-button": "" }, on: { "close-modal": e.cancel }, scopedSlots: e._u([{ key: "default", fn: function() {
1602
+ return e._self._setupProxy, l("div", { staticClass: "b-all-filters-modal" }, [l("filter-bar-button", { attrs: { "is-filter-open": e.isModalOpen, "applied-filters-count": e.numberOfActiveFilters }, on: { click: e.onClickAllFiltersModal }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1603
+ return [l("sliders-icon", { attrs: { "aria-hidden": "true" } })];
1604
+ }, proxy: !0 }]) }, [e._v(" " + e._s(e.$t("allFilters")) + " ")]), l("bento-modal", { staticClass: "'b-all-filters-modal__modal'", attrs: { "is-open": e.isModalOpen, "with-column-layout": !0, size: "large", actions: e.modalActions, "is-dismissible": !1, "hide-close-button": "" }, on: { "close-modal": e.cancel }, scopedSlots: e._u([{ key: "default", fn: function() {
1563
1605
  return [e._v(" " + e._s(e.$t("allFilters")) + " ")];
1564
1606
  }, proxy: !0 }, { key: "content-col-1", fn: function() {
1565
1607
  return [l("div", { ref: "allFiltersModalFiltersSection", staticClass: "b-all-filters-modal__filters", on: { keydown: function(a) {
@@ -1567,11 +1609,11 @@ var Pl = function() {
1567
1609
  } } }, [l("bento-search-bar", { staticClass: "b-all-filters-modal__search-bar", attrs: { value: e.searchTerm, "input-field-aria-label": e.$t("searchBar").toString() }, on: { input: function(a) {
1568
1610
  e.searchTerm = a;
1569
1611
  }, clear: e.onSearchbarClear } }), e.isEmptyResultForSearchFilter ? l("div", { staticClass: "b-all-filters-modal__empty-search-message" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(" " + e._s(e.$t("noFiltersMatchThisSearch")))])], 1) : e._e(), e.activeFilters.length ? l("div", { staticClass: "b-all-filters-modal__filters-section" }, [l("bento-typography", { staticClass: "b-all-filters-modal__filters-section-title", attrs: { id: `active-filters-${e.allFiltersModalUniqueId}`, el: "span", variant: "caption" } }, [e._v(" " + e._s(e.$t("activeFilters")))]), l("ul", { staticClass: "b-all-filters-modal__filters-list", attrs: { "aria-labelledby": `active-filters-${e.allFiltersModalUniqueId}` } }, e._l(e.activeFilters, function(a) {
1570
- return l("li", { key: `${a.label}-${a.field}` }, [l("all-filters-modal-button", { ref: (n) => e.allFiltersModalFilterButtons[a.label] = n, refInFor: !0, attrs: { label: a.label, "applied-filters-count": e.getFilterCount(a.label), "is-filter-open": e.selectedFilter.label === a.label }, on: { click: function(n) {
1612
+ return l("li", { key: `${a.label}-${a.field}` }, [l("all-filters-modal-button", { ref: (n) => e.allFiltersModalFilterButtons[a.label] = n, refInFor: !0, attrs: { label: a.label, "applied-filters-count": e.getFilterCount(a), "is-filter-open": e.selectedFilter.label === a.label }, on: { click: function(n) {
1571
1613
  return e.selectFilter(a.label, a.field);
1572
1614
  } } })], 1);
1573
1615
  }), 0)], 1) : e._e(), e.otherFilters.length ? l("div", { staticClass: "b-all-filters-modal__filters-section" }, [e.activeFilters.length ? l("bento-typography", { staticClass: "b-all-filters-modal__filters-section-title", attrs: { id: `other-filters-${e.allFiltersModalUniqueId}`, el: "span", variant: "caption" } }, [e._v(" " + e._s(e.$t("otherFilters")))]) : e._e(), l("ul", { staticClass: "b-all-filters-modal__filters-list", attrs: { "aria-labelledby": `other-filters-${e.allFiltersModalUniqueId}` } }, e._l(e.otherFilters, function(a) {
1574
- return l("li", { key: `${a.label}-${a.field}` }, [l("all-filters-modal-button", { ref: (n) => e.allFiltersModalFilterButtons[a.label] = n, refInFor: !0, attrs: { label: a.label, "applied-filters-count": e.getFilterCount(a.label), "is-filter-open": e.selectedFilter.label === a.label }, on: { click: function(n) {
1616
+ return l("li", { key: `${a.label}-${a.field}` }, [l("all-filters-modal-button", { ref: (n) => e.allFiltersModalFilterButtons[a.label] = n, refInFor: !0, attrs: { label: a.label, "applied-filters-count": e.getFilterCount(a), "is-filter-open": e.selectedFilter.label === a.label }, on: { click: function(n) {
1575
1617
  return e.selectFilter(a.label, a.field);
1576
1618
  } } })], 1);
1577
1619
  }), 0)], 1) : e._e()], 1)];
@@ -1580,37 +1622,37 @@ var Pl = function() {
1580
1622
  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);
1581
1623
  } } }, [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)])];
1582
1624
  }, proxy: !0 }]) })], 1);
1583
- }, El = [], Ul = /* @__PURE__ */ A(
1584
- Dl,
1585
- Pl,
1586
- El,
1625
+ }, Rl = [], Ol = /* @__PURE__ */ B(
1626
+ Il,
1627
+ kl,
1628
+ Rl,
1587
1629
  !1,
1588
1630
  null,
1589
- "72f56264",
1631
+ "97626423",
1590
1632
  null,
1591
1633
  null
1592
1634
  );
1593
- const kl = Ul.exports;
1594
- let fe = 0;
1595
- const $l = {
1635
+ const Vl = Ol.exports;
1636
+ let pe = 0;
1637
+ const Nl = {
1596
1638
  beforeCreate() {
1597
- this.uuid = fe.toString(), fe += 1;
1639
+ this.uuid = pe.toString(), pe += 1;
1598
1640
  }
1599
1641
  };
1600
- var Rl = function() {
1642
+ var Ll = function() {
1601
1643
  var e = this, l = e._self._c;
1602
1644
  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" } })]);
1603
- }, xl = [], Il = /* @__PURE__ */ A(
1604
- $l,
1605
- Rl,
1606
- xl,
1645
+ }, wl = [], Ml = /* @__PURE__ */ B(
1646
+ Nl,
1647
+ Ll,
1648
+ wl,
1607
1649
  !1,
1608
1650
  null,
1609
1651
  "35088f28",
1610
1652
  null,
1611
1653
  null
1612
1654
  );
1613
- const Ol = Il.exports, Vl = {
1655
+ const Hl = Ml.exports, ql = {
1614
1656
  "en-US": {
1615
1657
  clearAll: "Clear all",
1616
1658
  filtersHaveBeenCleared: "Filters have been cleared.",
@@ -1619,25 +1661,25 @@ const Ol = Il.exports, Vl = {
1619
1661
  resetAll: "Reset all",
1620
1662
  searchBar: "Search bar"
1621
1663
  }
1622
- }, Nl = P({
1623
- i18n: { messages: Vl },
1664
+ }, jl = P({
1665
+ i18n: { messages: ql },
1624
1666
  name: "bento-filter-bar",
1625
1667
  components: {
1626
- AllFiltersModal: kl,
1627
- FilterBarButton: ne,
1628
- BentoBooleanFilter: xe,
1629
- BentoDateFilter: De,
1630
- BentoDateRangeFilter: Pe,
1631
- BentoRangeFilter: Ie,
1632
- BentoInputFilter: Te,
1633
- BentoSelectFilter: $,
1634
- BentoSelectAvatarFilter: Ee,
1635
- BentoSelectCountryFilter: ke,
1636
- BentoSelectCurrencyFilter: Ue,
1637
- BentoSelectPaymentMethodFilter: $e,
1668
+ AllFiltersModal: Vl,
1669
+ FilterBarButton: oe,
1670
+ BentoBooleanFilter: Oe,
1671
+ BentoDateFilter: Ee,
1672
+ BentoDateRangeFilter: $e,
1673
+ BentoRangeFilter: Ve,
1674
+ BentoInputFilter: Pe,
1675
+ BentoSelectFilter: x,
1676
+ BentoSelectAvatarFilter: Ue,
1677
+ BentoSelectCountryFilter: Ie,
1678
+ BentoSelectCurrencyFilter: xe,
1679
+ BentoSelectPaymentMethodFilter: ke,
1638
1680
  BentoSelectTagFilter: Re,
1639
- BentoSearchBar: X,
1640
- RefreshIcon: Ol
1681
+ BentoSearchBar: te,
1682
+ RefreshIcon: Hl
1641
1683
  },
1642
1684
  props: {
1643
1685
  /**
@@ -1645,7 +1687,7 @@ const Ol = Il.exports, Vl = {
1645
1687
  * If the value is non-existant (null or undefined) the search bar won't be enabled.
1646
1688
  */
1647
1689
  searchTerm: {
1648
- type: X.props.value.type,
1690
+ type: te.props.value.type,
1649
1691
  default: void 0
1650
1692
  },
1651
1693
  /**
@@ -1674,17 +1716,17 @@ const Ol = Il.exports, Vl = {
1674
1716
  }
1675
1717
  },
1676
1718
  emits: [
1677
- w.INPUT,
1678
- j.CLEAR,
1679
- j.INPUT,
1680
- j.UPDATE
1719
+ L.INPUT,
1720
+ J.CLEAR,
1721
+ J.INPUT,
1722
+ J.UPDATE
1681
1723
  ],
1682
1724
  setup(t, { emit: e }) {
1683
- const { t: l } = H(), a = Ge(), n = r(() => l("searchBar")), s = r(() => t.value.some(({ visible: F }) => F != null) ? t.value.some(({ visible: F }) => !F) : !1), u = r(
1684
- () => t.value.filter(({ defaultValue: m }) => m !== void 0)
1685
- ), d = r(() => t.value.some(({ visible: F }) => F != null) ? t.value.filter(({ defaultValue: F, visible: T }) => F === void 0 && T) : t.value.filter(({ defaultValue: F }) => F === void 0)), c = r(() => t.searchTerm != null), f = r(
1686
- () => t.value.filter(({ defaultValue: m }) => m == null).some(({ value: m }) => m != null)
1687
- ), p = r(() => u.value.length === 0 && f.value), y = r(() => u.value.length === 0 ? !1 : !t.value.filter(({ defaultValue: F }) => F !== void 0 || F !== null).every(({ value: F, defaultValue: T }) => JSON.stringify(F) === JSON.stringify(T)) || f.value);
1725
+ const { t: l } = j(), a = Ze(), n = r(() => l("searchBar")), s = r(() => t.value.some(({ visible: C }) => C != null) ? t.value.some(({ visible: C }) => !C) : !1), u = r(
1726
+ () => t.value.filter(({ defaultValue: F }) => F !== void 0)
1727
+ ), d = r(() => t.value.some(({ visible: C }) => C != null) ? t.value.filter(({ defaultValue: C, visible: D }) => C === void 0 && D) : t.value.filter(({ defaultValue: C }) => C === void 0)), c = r(() => t.searchTerm != null), f = r(
1728
+ () => t.value.filter(({ defaultValue: F }) => F == null).some(({ value: F }) => F != null)
1729
+ ), p = r(() => u.value.length === 0 && f.value), m = r(() => u.value.length === 0 ? !1 : !t.value.filter(({ defaultValue: C }) => C !== void 0 || C !== null).every(({ value: C, defaultValue: D }) => JSON.stringify(C) === JSON.stringify(D)) || f.value);
1688
1730
  return {
1689
1731
  // Values
1690
1732
  hasHiddenFilters: s,
@@ -1693,52 +1735,52 @@ const Ol = Il.exports, Vl = {
1693
1735
  searchBarAriaLabel: n,
1694
1736
  persistentFilters: u,
1695
1737
  regularFilters: d,
1696
- isResetAllVisible: y,
1738
+ isResetAllVisible: m,
1697
1739
  // Events
1698
- updateAllFilters: (m) => {
1699
- e(w.INPUT, m);
1740
+ updateAllFilters: (F) => {
1741
+ e(L.INPUT, F);
1700
1742
  },
1701
- updateFilterHandler: (m) => {
1702
- const F = t.value.findIndex((O) => O.field === m.field), T = t.value.slice();
1703
- T[F].value = m.value, e(w.INPUT, T);
1743
+ updateFilterHandler: (F) => {
1744
+ const C = t.value.findIndex((V) => V.field === F.field), D = t.value.slice();
1745
+ D[C].value = F.value, e(L.INPUT, D);
1704
1746
  },
1705
1747
  clearAllFilters: () => {
1706
- const m = t.value.slice(), F = t.value.map(({ value: T, ...O }) => ({
1707
- ...O,
1748
+ const F = t.value.slice(), C = t.value.map(({ value: D, ...V }) => ({
1749
+ ...V,
1708
1750
  value: void 0
1709
1751
  }));
1710
1752
  a.addToast({
1711
1753
  text: l("filtersHaveBeenCleared"),
1712
1754
  action: {
1713
- handler: () => e(w.INPUT, m),
1755
+ handler: () => e(L.INPUT, F),
1714
1756
  text: l("undo")
1715
1757
  }
1716
- }), e(w.INPUT, F);
1758
+ }), e(L.INPUT, C);
1717
1759
  },
1718
1760
  onSearchbarClear: () => {
1719
- e(j.CLEAR);
1761
+ e(J.CLEAR);
1720
1762
  },
1721
- onSearchbarInput: (m) => {
1722
- e(j.INPUT, m), e(j.UPDATE, m);
1763
+ onSearchbarInput: (F) => {
1764
+ e(J.INPUT, F), e(J.UPDATE, F);
1723
1765
  },
1724
1766
  resetAllFilters: () => {
1725
- const m = t.value.slice(), F = t.value.map(({ defaultValue: T, ...O }) => ({
1726
- ...O,
1727
- defaultValue: T,
1728
- value: T
1767
+ const F = t.value.slice(), C = t.value.map(({ defaultValue: D, ...V }) => ({
1768
+ ...V,
1769
+ defaultValue: D,
1770
+ value: D
1729
1771
  }));
1730
1772
  a.addToast({
1731
1773
  text: l("filtersHaveBeenReset"),
1732
1774
  action: {
1733
- handler: () => e(w.INPUT, m),
1775
+ handler: () => e(L.INPUT, F),
1734
1776
  text: l("undo")
1735
1777
  }
1736
- }), e(w.INPUT, F);
1778
+ }), e(L.INPUT, C);
1737
1779
  }
1738
1780
  };
1739
1781
  }
1740
1782
  });
1741
- var Ll = function() {
1783
+ var Yl = function() {
1742
1784
  var e = this, l = e._self._c;
1743
1785
  return e._self._setupProxy, l("div", { staticClass: "b-filter-bar" }, [l("div", { staticClass: "b-filter-bar__filters-wrapper" }, [e.persistentFilters.length ? l("div", { staticClass: "b-filter-bar__persistent-filters" }, e._l(e.persistentFilters, function(a) {
1744
1786
  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 } });
@@ -1749,21 +1791,21 @@ var Ll = function() {
1749
1791
  }, 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() {
1750
1792
  return [l("refresh-icon", { attrs: { "aria-hidden": "true" } })];
1751
1793
  }, proxy: !0 }]) }, [e._v(" " + e._s(e.$t("resetAll")) + " ")])], 1), e.isSearchBarEnabled ? l("bento-search-bar", { staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": e.searchBarAriaLabel, value: e.searchTerm }, on: { input: e.onSearchbarInput, clear: e.onSearchbarClear } }) : e._e()], 1);
1752
- }, wl = [], Ml = /* @__PURE__ */ A(
1753
- Nl,
1754
- Ll,
1755
- wl,
1794
+ }, zl = [], Jl = /* @__PURE__ */ B(
1795
+ jl,
1796
+ Yl,
1797
+ zl,
1756
1798
  !1,
1757
1799
  null,
1758
1800
  "19958cbd",
1759
1801
  null,
1760
1802
  null
1761
1803
  );
1762
- const Aa = Ml.exports;
1804
+ const Ua = Jl.exports;
1763
1805
  export {
1764
- Aa as BentoFilterBar,
1765
- w as BentoFilterBarEvent,
1806
+ Ua as BentoFilterBar,
1807
+ L as BentoFilterBarEvent,
1766
1808
  i as BentoFilterEvent,
1767
- k as BentoFilterItemType
1809
+ U as BentoFilterItemType
1768
1810
  };
1769
1811
  //# sourceMappingURL=filter-bar.js.map