@adyen/bento-vue2 1.57.0 → 1.58.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 (181) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +191 -52
  3. package/dist/action-bar.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/data-grid-template.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/date-range-picker.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/filter-bar.css +1 -1
  14. package/dist/assets/input-field-password.css +1 -1
  15. package/dist/assets/inspector.css +1 -1
  16. package/dist/assets/menu.css +1 -1
  17. package/dist/assets/modal-fullscreen.css +1 -1
  18. package/dist/assets/pagination.css +1 -1
  19. package/dist/assets/popover.css +1 -1
  20. package/dist/assets/sidepanel.css +1 -1
  21. package/dist/button.js +1 -1
  22. package/dist/card.js +1 -1
  23. package/dist/checkbox.js +2 -2
  24. package/dist/chunks/{action-bar.nUvnRVwP.js → action-bar.CErJh_wJ.js} +4 -4
  25. package/dist/chunks/{action-bar.nUvnRVwP.js.map → action-bar.CErJh_wJ.js.map} +1 -1
  26. package/dist/chunks/{base-modal.DdznUtgC.js → base-modal.D4x_tmYO.js} +2 -2
  27. package/dist/chunks/{base-modal.DdznUtgC.js.map → base-modal.D4x_tmYO.js.map} +1 -1
  28. package/dist/chunks/{button-actions-with-menu.CDLJMdJh.js → button-actions-with-menu.BHmj0Xvn.js} +4 -4
  29. package/dist/chunks/{button-actions-with-menu.CDLJMdJh.js.map → button-actions-with-menu.BHmj0Xvn.js.map} +1 -1
  30. package/dist/chunks/{button-actions.DUn_iPDm.js → button-actions.V0te_IrY.js} +2 -2
  31. package/dist/chunks/{button-actions.DUn_iPDm.js.map → button-actions.V0te_IrY.js.map} +1 -1
  32. package/dist/chunks/calendar.C7onA58P.js +1166 -0
  33. package/dist/chunks/calendar.C7onA58P.js.map +1 -0
  34. package/dist/chunks/{card.BYUqSnBy.js → card.CC4BEw-7.js} +2 -2
  35. package/dist/chunks/{card.BYUqSnBy.js.map → card.CC4BEw-7.js.map} +1 -1
  36. package/dist/chunks/{checkbox-group.HhNN-r-o.js → checkbox-group.Bev3ogYa.js} +4 -4
  37. package/dist/chunks/{checkbox-group.HhNN-r-o.js.map → checkbox-group.Bev3ogYa.js.map} +1 -1
  38. package/dist/chunks/{checkbox.CkaV8-b-.js → checkbox.DCIphKqu.js} +3 -3
  39. package/dist/chunks/{checkbox.CkaV8-b-.js.map → checkbox.DCIphKqu.js.map} +1 -1
  40. package/dist/chunks/{code-snippet.B1_T5Y4d.js → code-snippet.BjtPvt9m.js} +5 -5
  41. package/dist/chunks/{code-snippet.B1_T5Y4d.js.map → code-snippet.BjtPvt9m.js.map} +1 -1
  42. package/dist/chunks/{controls-group.CG5RvOSi.js → controls-group.CtpaKQIg.js} +2 -2
  43. package/dist/chunks/{controls-group.CG5RvOSi.js.map → controls-group.CtpaKQIg.js.map} +1 -1
  44. package/dist/chunks/{copy.MTsLLiC0.js → copy.BggvtZCO.js} +2 -2
  45. package/dist/chunks/{copy.MTsLLiC0.js.map → copy.BggvtZCO.js.map} +1 -1
  46. package/dist/chunks/{dashboard-section.DYk4LVm8.js → dashboard-section.D9LPEZ88.js} +2 -2
  47. package/dist/chunks/{dashboard-section.DYk4LVm8.js.map → dashboard-section.D9LPEZ88.js.map} +1 -1
  48. package/dist/chunks/{dashed-underline.lDp966e8.js → dashed-underline.DGRnOVkG.js} +3 -3
  49. package/dist/chunks/{dashed-underline.lDp966e8.js.map → dashed-underline.DGRnOVkG.js.map} +1 -1
  50. package/dist/chunks/{data-grid-template.Dcnw2_Du.js → data-grid-template.CwqfhYua.js} +2 -2
  51. package/dist/chunks/{data-grid-template.Dcnw2_Du.js.map → data-grid-template.CwqfhYua.js.map} +1 -1
  52. package/dist/chunks/{data-grid.BNgBYl3r.js → data-grid.Dl3xh62_.js} +1163 -1098
  53. package/dist/chunks/data-grid.Dl3xh62_.js.map +1 -0
  54. package/dist/chunks/{date-picker.S8ABQaHP.js → date-picker.DgF85qSC.js} +15 -15
  55. package/dist/chunks/{date-picker.S8ABQaHP.js.map → date-picker.DgF85qSC.js.map} +1 -1
  56. package/dist/chunks/date-range-picker.CAQY6v7g.js +967 -0
  57. package/dist/chunks/date-range-picker.CAQY6v7g.js.map +1 -0
  58. package/dist/chunks/{dropdown-tag.BiJvxp5n.js → dropdown-tag.Cn6lz_lG.js} +3 -3
  59. package/dist/chunks/{dropdown-tag.BiJvxp5n.js.map → dropdown-tag.Cn6lz_lG.js.map} +1 -1
  60. package/dist/chunks/{dropdown.Qc6K5BzU.js → dropdown.C01pOog2.js} +18 -18
  61. package/dist/chunks/{dropdown.Qc6K5BzU.js.map → dropdown.C01pOog2.js.map} +1 -1
  62. package/dist/chunks/{error-message.JskAm-Td.js → error-message.dQtl9mYG.js} +2 -2
  63. package/dist/chunks/{error-message.JskAm-Td.js.map → error-message.dQtl9mYG.js.map} +1 -1
  64. package/dist/chunks/{es6.BtaxuP0b.js → es6.BA9GH7QZ.js} +2 -2
  65. package/dist/chunks/{es6.BtaxuP0b.js.map → es6.BA9GH7QZ.js.map} +1 -1
  66. package/dist/chunks/{file-uploader.DhOTdtfm.js → file-uploader.D81zRKpY.js} +3 -3
  67. package/dist/chunks/{file-uploader.DhOTdtfm.js.map → file-uploader.D81zRKpY.js.map} +1 -1
  68. package/dist/chunks/{filter-bar.BFAsFxQo.js → filter-bar.CcsUi7Xg.js} +603 -575
  69. package/dist/chunks/filter-bar.CcsUi7Xg.js.map +1 -0
  70. package/dist/chunks/{footer-actions.CWOEDPKJ.js → footer-actions.Cn-793_Z.js} +2 -2
  71. package/dist/chunks/{footer-actions.CWOEDPKJ.js.map → footer-actions.Cn-793_Z.js.map} +1 -1
  72. package/dist/chunks/{header-with-views.CO2aEwi4.js → header-with-views.BTd57MWZ.js} +10 -10
  73. package/dist/chunks/{header-with-views.CO2aEwi4.js.map → header-with-views.BTd57MWZ.js.map} +1 -1
  74. package/dist/chunks/{header.byOrhnHk.js → header.Rr0lnNYz.js} +4 -4
  75. package/dist/chunks/{header.byOrhnHk.js.map → header.Rr0lnNYz.js.map} +1 -1
  76. package/dist/chunks/{info-icon-with-popover.Cfng_pMj.js → info-icon-with-popover.B9QgNl-S.js} +2 -2
  77. package/dist/chunks/{info-icon-with-popover.Cfng_pMj.js.map → info-icon-with-popover.B9QgNl-S.js.map} +1 -1
  78. package/dist/chunks/{info-icon.DgCYoVE3.js → info-icon.BL55W9hd.js} +2 -2
  79. package/dist/chunks/{info-icon.DgCYoVE3.js.map → info-icon.BL55W9hd.js.map} +1 -1
  80. package/dist/chunks/input-field-password.DMcXkdVE.js +251 -0
  81. package/dist/chunks/input-field-password.DMcXkdVE.js.map +1 -0
  82. package/dist/chunks/{input-field-phone-number.Bg9XyY_1.js → input-field-phone-number.Cfy_o9aE.js} +3 -3
  83. package/dist/chunks/{input-field-phone-number.Bg9XyY_1.js.map → input-field-phone-number.Cfy_o9aE.js.map} +1 -1
  84. package/dist/chunks/{input-field.DgUkNPXo.js → input-field.CP8Qui6G.js} +3 -3
  85. package/dist/chunks/{input-field.DgUkNPXo.js.map → input-field.CP8Qui6G.js.map} +1 -1
  86. package/dist/chunks/{listbox-option-tag.CBGk4m-_.js → listbox-option-tag.DDmqT1rs.js} +2 -2
  87. package/dist/chunks/{listbox-option-tag.CBGk4m-_.js.map → listbox-option-tag.DDmqT1rs.js.map} +1 -1
  88. package/dist/chunks/{menu.DZEDTBYV.js → menu.Dkesc658.js} +2 -2
  89. package/dist/chunks/{menu.DZEDTBYV.js.map → menu.Dkesc658.js.map} +1 -1
  90. package/dist/chunks/{modal-fullscreen.DRQ4V5tT.js → modal-fullscreen.D1pHbGYd.js} +2 -2
  91. package/dist/chunks/{modal-fullscreen.DRQ4V5tT.js.map → modal-fullscreen.D1pHbGYd.js.map} +1 -1
  92. package/dist/chunks/{modal.DDF63uBR.js → modal.bgya0ObK.js} +4 -4
  93. package/dist/chunks/{modal.DDF63uBR.js.map → modal.bgya0ObK.js.map} +1 -1
  94. package/dist/chunks/{pagination.1PxOrSA9.js → pagination.CaHPf-Ye.js} +82 -73
  95. package/dist/chunks/{pagination.1PxOrSA9.js.map → pagination.CaHPf-Ye.js.map} +1 -1
  96. package/dist/chunks/{popover.DXo3nXew.js → popover.CuOrBXcF.js} +2 -2
  97. package/dist/chunks/{popover.DXo3nXew.js.map → popover.CuOrBXcF.js.map} +1 -1
  98. package/dist/chunks/{radio-group.DtCgLBuL.js → radio-group.9jAj6AKb.js} +4 -4
  99. package/dist/chunks/{radio-group.DtCgLBuL.js.map → radio-group.9jAj6AKb.js.map} +1 -1
  100. package/dist/chunks/rich-text-editor.Ch-ETIRi.js +6203 -0
  101. package/dist/chunks/rich-text-editor.Ch-ETIRi.js.map +1 -0
  102. package/dist/chunks/{search-bar.-Lpxv9sU.js → search-bar.Cs60bUZc.js} +3 -3
  103. package/dist/chunks/{search-bar.-Lpxv9sU.js.map → search-bar.Cs60bUZc.js.map} +1 -1
  104. package/dist/chunks/{secondary-nav.DvTPsW8x.js → secondary-nav.i_Bb4wQF.js} +3 -3
  105. package/dist/chunks/{secondary-nav.DvTPsW8x.js.map → secondary-nav.i_Bb4wQF.js.map} +1 -1
  106. package/dist/chunks/{segmented-control.BQlmGv2x.js → segmented-control.BffWAGrf.js} +2 -2
  107. package/dist/chunks/{segmented-control.BQlmGv2x.js.map → segmented-control.BffWAGrf.js.map} +1 -1
  108. package/dist/chunks/{selection-card-group.BniN7KWU.js → selection-card-group.DTz7k_M7.js} +4 -4
  109. package/dist/chunks/{selection-card-group.BniN7KWU.js.map → selection-card-group.DTz7k_M7.js.map} +1 -1
  110. package/dist/chunks/{sidepanel.DfQaLZEA.js → sidepanel.DuTesKDW.js} +2 -2
  111. package/dist/chunks/{sidepanel.DfQaLZEA.js.map → sidepanel.DuTesKDW.js.map} +1 -1
  112. package/dist/chunks/{structured-list-item.xaedKywV.js → structured-list-item.-vyqAp4Y.js} +4 -4
  113. package/dist/chunks/{structured-list-item.xaedKywV.js.map → structured-list-item.-vyqAp4Y.js.map} +1 -1
  114. package/dist/chunks/{summary-grid.types.CNEeGgWh.js → summary-grid.types.fm_VmUVA.js} +5 -5
  115. package/dist/chunks/{summary-grid.types.CNEeGgWh.js.map → summary-grid.types.fm_VmUVA.js.map} +1 -1
  116. package/dist/chunks/{tag.C7kJJ5Ki.js → tag.DczYlfXd.js} +2 -2
  117. package/dist/chunks/{tag.C7kJJ5Ki.js.map → tag.DczYlfXd.js.map} +1 -1
  118. package/dist/chunks/{textarea.CdA36VsY.js → textarea.B7BgCn_l.js} +2 -2
  119. package/dist/chunks/{textarea.CdA36VsY.js.map → textarea.B7BgCn_l.js.map} +1 -1
  120. package/dist/chunks/{timeline-item.D87PFH_o.js → timeline-item.DdF6EN2w.js} +5 -5
  121. package/dist/chunks/{timeline-item.D87PFH_o.js.map → timeline-item.DdF6EN2w.js.map} +1 -1
  122. package/dist/chunks/{tooltip.8KbMqaXP.js → tooltip.Bm5S2goP.js} +65 -65
  123. package/dist/chunks/{tooltip.8KbMqaXP.js.map → tooltip.Bm5S2goP.js.map} +1 -1
  124. package/dist/chunks/{tutorial.D74hJVBb.js → tutorial.DIYd-V8c.js} +4 -4
  125. package/dist/chunks/{tutorial.D74hJVBb.js.map → tutorial.DIYd-V8c.js.map} +1 -1
  126. package/dist/chunks/{use-cached-selected-values.CSVs_E5A.js → use-cached-selected-values.BrkzIuaE.js} +3 -3
  127. package/dist/chunks/{use-cached-selected-values.CSVs_E5A.js.map → use-cached-selected-values.BrkzIuaE.js.map} +1 -1
  128. package/dist/code-snippet.js +1 -1
  129. package/dist/dashboard-template.js +1 -1
  130. package/dist/dashed-underline.js +1 -1
  131. package/dist/data-grid-template.js +1 -1
  132. package/dist/data-grid.js +1 -1
  133. package/dist/date-picker.js +2 -2
  134. package/dist/date-range-picker.js +2 -2
  135. package/dist/dropdown.js +3 -3
  136. package/dist/file-uploader.js +1 -1
  137. package/dist/filter-bar.js +1 -1
  138. package/dist/header-with-views.js +1 -1
  139. package/dist/header.js +1 -1
  140. package/dist/index.js +148 -146
  141. package/dist/index.js.map +1 -1
  142. package/dist/info-icon.js +1 -1
  143. package/dist/input-field-password.js +1 -1
  144. package/dist/input-field-phone-number.js +1 -1
  145. package/dist/input-field.js +1 -1
  146. package/dist/internal.js +10 -10
  147. package/dist/menu.js +1 -1
  148. package/dist/modal-fullscreen.js +1 -1
  149. package/dist/modal.js +2 -2
  150. package/dist/pagination.js +1 -1
  151. package/dist/popover.js +1 -1
  152. package/dist/radio-group.js +1 -1
  153. package/dist/rich-text-editor.js +2 -6200
  154. package/dist/rich-text-editor.js.map +1 -1
  155. package/dist/search-bar.js +2 -2
  156. package/dist/secondary-nav.js +1 -1
  157. package/dist/segmented-control.js +1 -1
  158. package/dist/selection-card.js +1 -1
  159. package/dist/sidepanel.js +1 -1
  160. package/dist/structured-list.js +1 -1
  161. package/dist/styles/bento-dark.css +15 -15
  162. package/dist/styles/bento-light.css +95 -95
  163. package/dist/styles/bento.css +95 -95
  164. package/dist/styles/legacy.css +96 -96
  165. package/dist/styles/styleguide.css +96 -96
  166. package/dist/styles/utility.css +64 -64
  167. package/dist/summary-grid.js +1 -1
  168. package/dist/tag.js +1 -1
  169. package/dist/textarea.js +1 -1
  170. package/dist/timeline.js +1 -1
  171. package/dist/tutorial.js +1 -1
  172. package/dist/web-types.json +53 -7
  173. package/package.json +5 -5
  174. package/dist/chunks/calendar.C0iatn5N.js +0 -1127
  175. package/dist/chunks/calendar.C0iatn5N.js.map +0 -1
  176. package/dist/chunks/data-grid.BNgBYl3r.js.map +0 -1
  177. package/dist/chunks/date-range-picker.CQNhNKK-.js +0 -906
  178. package/dist/chunks/date-range-picker.CQNhNKK-.js.map +0 -1
  179. package/dist/chunks/filter-bar.BFAsFxQo.js.map +0 -1
  180. package/dist/chunks/input-field-password.D6PVCLoF.js +0 -233
  181. package/dist/chunks/input-field-password.D6PVCLoF.js.map +0 -1
@@ -1,51 +1,51 @@
1
- import { defineComponent as x, useSlots as ie, useAttrs as Ke, computed as r, ref as E, watch as z, nextTick as Te, toRef as w, onBeforeUpdate as ue, provide as Ie, reactive as Ze, onMounted as Pe } from "vue";
2
- import { B as me, I as Qe, b as Xe } from "./popover.DXo3nXew.js";
1
+ import { defineComponent as $, useSlots as ie, useAttrs as Ke, computed as r, ref as x, watch as z, nextTick as Te, toRef as w, onBeforeUpdate as ue, provide as Pe, reactive as Ze, onMounted as Ie } from "vue";
2
+ import { B as me, I as Qe, b as Xe } from "./popover.CuOrBXcF.js";
3
3
  import { u as G } from "./i18n.BQkEbtPM.js";
4
- import { g as fe } from "./generate-uid.NJ8tVoha.js";
4
+ import { g as pe } from "./generate-uid.NJ8tVoha.js";
5
5
  import { u as et } from "./use-click-outside.BnhTgpSt.js";
6
6
  import "./index.Cl4_42j5.js";
7
7
  import { C as tt } from "./cross-small.CZqsjZDz.js";
8
- import { n as $ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
8
+ import { n as U } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
9
  import { B as Ee, a as Fe } from "./base-button.-gx_u8Bd.js";
10
- import { B as se, d as pe } from "./typography.J1v_SPG3.js";
11
- import { u as Le } from "./use-has-slot.C9lQZ6nz.js";
12
- import { u as Re } from "./aria-label.CaUURpnB.js";
13
- import { g as Ue } from "./get-slot-text.BQS5Olxm.js";
14
- import { a as lt } from "./tooltip.8KbMqaXP.js";
15
- import { B as at } from "./directive.Cbdox5VL.js";
10
+ import { B as se, d as fe } from "./typography.J1v_SPG3.js";
11
+ import { u as xe } from "./use-has-slot.C9lQZ6nz.js";
12
+ import { u as Le } from "./aria-label.CaUURpnB.js";
13
+ import { g as Re } from "./get-slot-text.BQS5Olxm.js";
14
+ import { B as lt, a as at } from "./tooltip.Bm5S2goP.js";
15
+ import { B as nt } from "./directive.Cbdox5VL.js";
16
16
  import { B as Oe } from "./teleport.BV6zrDjA.js";
17
- import { B as nt } from "./radio-group.DtCgLBuL.js";
17
+ import { B as ot } from "./radio-group.9jAj6AKb.js";
18
18
  import { t as le } from "./chip.BeK9uqmW.js";
19
- import { B as be } from "./input-field.DgUkNPXo.js";
20
- import { B as ve, b as te } from "./search-bar.-Lpxv9sU.js";
21
- import { i as ot } from "./index.oJzeCMPe.js";
22
- import { F as $e } from "./fixed-scroller.D0a6q8_i.js";
23
- import { B as st } from "./modal.DDF63uBR.js";
24
- import { g as rt } from "./base-modal.DdznUtgC.js";
25
- import { B as it } from "./button.BuD-IsW5.js";
26
- import { u as xe, B as ut } from "./dropdown.Qc6K5BzU.js";
27
- import { g as ct } from "./focus-trap.DiqwA-bw.js";
28
- import { a as dt, C as ft } from "./chevron-up.CSVyoaTy.js";
19
+ import { B as be } from "./input-field.CP8Qui6G.js";
20
+ import { B as ve, b as te } from "./search-bar.Cs60bUZc.js";
21
+ import { i as st } from "./index.oJzeCMPe.js";
22
+ import { F as Ue } from "./fixed-scroller.D0a6q8_i.js";
23
+ import { B as rt } from "./modal.bgya0ObK.js";
24
+ import { g as it } from "./base-modal.D4x_tmYO.js";
25
+ import { B as ut } from "./button.BuD-IsW5.js";
26
+ import { u as $e, B as ct } from "./dropdown.C01pOog2.js";
27
+ import { g as dt } from "./focus-trap.DiqwA-bw.js";
28
+ import { a as pt, C as ft } from "./chevron-up.CSVyoaTy.js";
29
29
  /* empty css */
30
30
  import { B as _e } from "./divider.Cc4JFWG_.js";
31
- import { c as he, b as pt } from "./use-cached-selected-values.CSVs_E5A.js";
32
- import { L as ke } from "./listbox-option-tag.CBGk4m-_.js";
33
- import { B as bt } from "./payment-method.Cx4nPDtE.js";
34
- import { u as vt } from "./use-country-items.HFnjuDsG.js";
35
- import { B as _t } from "./avatar.BgwjpLQO.js";
36
- import { D as yt, B as mt, i as ce, b as Ft } from "./date-range-picker.CQNhNKK-.js";
31
+ import { c as he, b as bt } from "./use-cached-selected-values.BrkzIuaE.js";
32
+ import { L as ke } from "./listbox-option-tag.DDmqT1rs.js";
33
+ import { B as vt } from "./payment-method.Cx4nPDtE.js";
34
+ import { u as _t } from "./use-country-items.HFnjuDsG.js";
35
+ import { B as yt } from "./avatar.BgwjpLQO.js";
36
+ import { D as mt, B as Ft, i as ce, b as ht } from "./date-range-picker.CAQY6v7g.js";
37
37
  import { g as Ve } from "./get-date-locale.BN8xEjY0.js";
38
- import { a as ht, i as St } from "./calendar.C0iatn5N.js";
38
+ import { a as St, i as gt } from "./calendar.C7onA58P.js";
39
39
  import { f as Q } from "./date.dYFFEunA.js";
40
- import { B as gt } from "./button-actions.DUn_iPDm.js";
40
+ import { B as Bt } from "./button-actions.V0te_IrY.js";
41
41
  import { D as Se } from "./date-input.BqBdAO1E.js";
42
- import { B as Bt } from "./date-picker.S8ABQaHP.js";
43
- import { R as Ct } from "./refresh.Bc9FzGjJ.js";
44
- import { u as Dt } from "./use-bento-toast-controller.Cn_2Eogn.js";
42
+ import { B as Ct } from "./date-picker.DgF85qSC.js";
43
+ import { R as Dt } from "./refresh.Bc9FzGjJ.js";
44
+ import { u as At } from "./use-bento-toast-controller.Cn_2Eogn.js";
45
45
  import "../assets/filter-bar.css";
46
46
  var v = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE = "update", a))(v || {}), oe = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE_FILTER_VALUES = "update:filter-values", a))(oe || {}), Y = /* @__PURE__ */ ((a) => (a.BOOLEAN = "BentoBooleanFilter", a.RANGE = "BentoRangeFilter", a.INPUT = "BentoInputFilter", a.INPUT_DROPDOWN = "BentoInputWithDropdownFilter", a.SELECT = "BentoSelectFilter", a.SELECT_AVATAR = "BentoSelectAvatarFilter", a.SELECT_COUNTRY = "BentoSelectCountryFilter", a.SELECT_CURRENCY = "BentoSelectCurrencyFilter", a.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", a.SELECT_TAG = "BentoSelectTagFilter", a.DATE = "BentoDateFilter", a.DATE_RANGE = "BentoDateRangeFilter", a))(Y || {});
47
- const At = {}, Tt = /* @__PURE__ */ x({
48
- ...At,
47
+ const Tt = {}, Pt = /* @__PURE__ */ $({
48
+ ...Tt,
49
49
  __name: "filter-bar-button",
50
50
  props: {
51
51
  /**
@@ -78,23 +78,23 @@ const At = {}, Tt = /* @__PURE__ */ x({
78
78
  },
79
79
  emits: ["click"],
80
80
  setup(a, { emit: e }) {
81
- const t = a, l = ie(), n = Ke(), o = Le(l), s = r(() => l.default ? Ue(l)("default") : null), c = r(() => !o("default") && o("iconLeft")), u = Re({ ariaLabel: s }), d = E(null), F = r(() => {
82
- var D;
81
+ const t = a, l = ie(), n = Ke(), o = xe(l), s = r(() => l.default ? Re(l)("default") : null), u = r(() => !o("default") && o("iconLeft")), i = Le({ ariaLabel: s }), d = x(null), y = r(() => {
82
+ var A;
83
83
  return {
84
- "aria-controls": (D = n["aria-controls"]) == null ? void 0 : D.toString()
84
+ "aria-controls": (A = n["aria-controls"]) == null ? void 0 : A.toString()
85
85
  };
86
86
  }), h = r(
87
87
  () => (t.appliedFiltersCount || t.secondaryLabel || t.isPersistentFilter) && !t.noAppliedStateStyles
88
- ), m = r(() => ({
88
+ ), F = r(() => ({
89
89
  "b-filter-bar-button--applied": h.value,
90
90
  "b-filter-bar-button--filter-open": t.isFilterOpen && !h.value,
91
91
  "b-filter-bar-button--filter-open-applied": t.isFilterOpen && h.value,
92
92
  "b-filter-bar-button--with-secondary-label": t.secondaryLabel,
93
93
  "b-filter-bar-button--with-counter": t.appliedFiltersCount,
94
- "b-filter-bar-button--icon-only": c.value
94
+ "b-filter-bar-button--icon-only": u.value
95
95
  }));
96
- return { __sfc: !0, props: t, emit: e, slots: l, attrs: n, hasSlot: o, labelSlot: s, isIconOnly: c, computedAriaLabel: u, filterBarButtonRef: d, ariaAttributes: F, isAppliedFilter: h, conditionalClasses: m, onClickButton: (D) => {
97
- D.preventDefault(), t.disabled || e("click", D);
96
+ return { __sfc: !0, props: t, emit: e, slots: l, attrs: n, hasSlot: o, labelSlot: s, isIconOnly: u, computedAriaLabel: i, filterBarButtonRef: d, ariaAttributes: y, isAppliedFilter: h, conditionalClasses: F, onClickButton: (A) => {
97
+ A.preventDefault(), t.disabled || e("click", A);
98
98
  }, BaseButton: Ee, BentoTypography: se };
99
99
  }
100
100
  });
@@ -103,15 +103,15 @@ var It = function() {
103
103
  return t(l.BaseButton, { ref: "filterBarButtonRef", staticClass: "b-filter-bar-button", class: l.conditionalClasses, attrs: { disabled: e.disabled, "aria-label": l.computedAriaLabel, "aria-controls": l.ariaAttributes["aria-controls"], type: "button" }, on: { click: l.onClickButton }, scopedSlots: e._u([{ key: "iconRight", fn: function() {
104
104
  return [e.appliedFiltersCount && !l.isIconOnly ? t(l.BentoTypography, { staticClass: "b-filter-bar-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.appliedFiltersCount) + " ")]) : e._e()];
105
105
  }, proxy: !0 }]) }, [t("div", { staticClass: "b-filter-bar-button__container" }, [l.hasSlot("iconLeft") ? [e._t("iconLeft")] : e._e(), t("div", { staticClass: "b-filter-bar-button__label-container" }, [t(l.BentoTypography, { staticClass: "b-filter-bar-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [t("span", [e._t("default")], 2), e.secondaryLabel && !l.isIconOnly ? t(l.BentoTypography, { staticClass: "b-filter-bar-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(":")]) : e._e()], 1), e.secondaryLabel && !l.isIconOnly ? t(l.BentoTypography, { staticClass: "b-filter-bar-button__secondary-label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.secondaryLabel) + " ")]) : e._e()], 1)], 2)]);
106
- }, Pt = [], Et = /* @__PURE__ */ $(
107
- Tt,
108
- It,
106
+ }, Et = [], xt = /* @__PURE__ */ U(
109
107
  Pt,
108
+ It,
109
+ Et,
110
110
  !1,
111
111
  null,
112
112
  "a64471d2"
113
113
  );
114
- const ye = Et.exports, Lt = {}, Rt = /* @__PURE__ */ x({
114
+ const ye = xt.exports, Lt = {}, Rt = /* @__PURE__ */ $({
115
115
  ...Lt,
116
116
  __name: "filter-bar-button-group",
117
117
  props: {
@@ -126,20 +126,20 @@ const ye = Et.exports, Lt = {}, Rt = /* @__PURE__ */ x({
126
126
  return { __sfc: !0, props: e, conditionalClasses: t };
127
127
  }
128
128
  });
129
- var Ut = function() {
129
+ var Ot = function() {
130
130
  var e = this, t = e._self._c, l = e._self._setupProxy;
131
131
  return t("div", { staticClass: "b-filter-bar-button-group", class: l.conditionalClasses }, [e._t("default")], 2);
132
- }, Ot = [], $t = /* @__PURE__ */ $(
132
+ }, Ut = [], $t = /* @__PURE__ */ U(
133
133
  Rt,
134
- Ut,
135
134
  Ot,
135
+ Ut,
136
136
  !1,
137
137
  null,
138
138
  "803bca9f"
139
139
  );
140
- const xt = $t.exports;
140
+ const kt = $t.exports;
141
141
  var W = /* @__PURE__ */ ((a) => (a.APPLY = "apply", a.CLEAR = "clear", a.OPEN = "open", a.CLOSE = "close", a.RESET = "reset", a))(W || {});
142
- const kt = {
142
+ const Vt = {
143
143
  "en-US": {
144
144
  apply: "Apply",
145
145
  clear: "Clear",
@@ -159,17 +159,17 @@ const kt = {
159
159
  clear: "Limpar",
160
160
  reset: "Reiniciar"
161
161
  }
162
- }, Vt = x({
163
- i18n: { messages: kt },
162
+ }, wt = $({
163
+ i18n: { messages: Vt },
164
164
  name: "bento-base-filter",
165
165
  components: {
166
166
  BentoPopover: me,
167
167
  BentoTeleport: Oe,
168
168
  FilterBarButton: ye,
169
- FilterBarButtonGroup: xt,
169
+ FilterBarButtonGroup: kt,
170
170
  CrossSmallIcon: tt
171
171
  },
172
- directives: { BentoClickOutsideDirective: at },
172
+ directives: { BentoClickOutsideDirective: nt, BentoTooltipDirective: lt },
173
173
  props: {
174
174
  /**
175
175
  * Total count of applied filters
@@ -225,6 +225,14 @@ const kt = {
225
225
  * Sets the size of the container to fit its content
226
226
  */
227
227
  fitContent: me.props.fitContent,
228
+ /**
229
+ * Attaches a `BentoTooltip` if present. Text showed in the tooltip on hover.
230
+ */
231
+ tooltipText: { type: String, default: void 0 },
232
+ /**
233
+ * Position the tooltip should take if space is available.
234
+ */
235
+ tooltipPosition: { type: String, default: void 0 },
228
236
  /**
229
237
  * The current value of the filter, used for v-model.
230
238
  */
@@ -241,91 +249,91 @@ const kt = {
241
249
  W.RESET
242
250
  ],
243
251
  setup(a, { emit: e }) {
244
- const { t } = G(), l = fe("base-filter-popover"), n = E(!1), o = E(null), s = E(null), c = r(() => a.defaultValue !== null), u = r(() => c.value ? JSON.stringify(a.value) !== JSON.stringify(a.defaultValue) : a.appliedFiltersCount || a.buttonSecondaryLabel), d = r(
245
- () => c.value ? t("filterButton", {
252
+ const { t } = G(), l = pe("base-filter-popover"), n = x(!1), o = x(null), s = x(null), u = r(() => a.defaultValue !== null), i = r(() => u.value ? JSON.stringify(a.value) !== JSON.stringify(a.defaultValue) : a.appliedFiltersCount || a.buttonSecondaryLabel), d = r(
253
+ () => u.value ? t("filterButton", {
246
254
  function: a.label
247
255
  }) : h.value
248
- ), F = r(
249
- () => c.value ? t("resetFilter", {
256
+ ), y = r(
257
+ () => u.value ? t("resetFilter", {
250
258
  function: h.value
251
259
  }) : t("clearFilter", {
252
260
  function: h.value
253
261
  })
254
- ), h = r(() => a.buttonLabel || a.label), m = async () => {
255
- var b, P;
256
- await Te(), (P = (b = o.value) == null ? void 0 : b.$el) == null || P.focus();
262
+ ), h = r(() => a.buttonLabel || a.label), F = async () => {
263
+ var b, D;
264
+ await Te(), (D = (b = o.value) == null ? void 0 : b.$el) == null || D.focus();
257
265
  }, C = () => {
258
- n.value && (n.value = !1, m(), e(W.CLOSE));
259
- }, D = () => {
260
- c.value ? e(W.RESET) : e(W.CLEAR), m();
261
- }, R = () => {
262
- C(), D();
263
- }, B = () => C(), U = () => {
264
- n.value ? C() : (n.value = !0, e(W.OPEN));
266
+ n.value && (n.value = !1, F(), e(W.CLOSE));
265
267
  }, A = () => {
268
+ u.value ? e(W.RESET) : e(W.CLEAR), F();
269
+ }, L = () => {
270
+ C(), A();
271
+ }, g = () => C(), R = () => {
272
+ n.value ? C() : (n.value = !0, e(W.OPEN));
273
+ }, P = () => {
266
274
  C(), e(W.APPLY);
267
- }, g = r(() => [
275
+ }, B = r(() => [
268
276
  {
269
277
  title: t("apply"),
270
- event: A,
278
+ event: P,
271
279
  disabled: a.disableApplyButton
272
280
  },
273
281
  {
274
- title: c.value ? t("reset") : t("clear"),
275
- event: R,
282
+ title: u.value ? t("reset") : t("clear"),
283
+ event: L,
276
284
  disabled: a.disableSecondaryButton
277
285
  }
278
286
  ]);
279
287
  return z(
280
288
  () => n.value,
281
- (b, P) => {
282
- var L, k;
283
- !b && P && (k = (L = o.value) == null ? void 0 : L.filterBarButtonRef) != null && k.bentoBaseButtonRef && o.value.filterBarButtonRef.bentoBaseButtonRef.focus();
289
+ (b, D) => {
290
+ var I, k;
291
+ !b && D && (k = (I = o.value) == null ? void 0 : I.filterBarButtonRef) != null && k.bentoBaseButtonRef && o.value.filterBarButtonRef.bentoBaseButtonRef.focus();
284
292
  }
285
- ), et(s, B, { ignore: [o] }), {
293
+ ), et(s, g, { ignore: [o] }), {
286
294
  // Values
287
- actions: g,
295
+ actions: B,
288
296
  popoverId: l,
289
297
  isFilterOpen: n,
290
- isPersistentFilter: c,
291
- isValueChanged: u,
298
+ isPersistentFilter: u,
299
+ isValueChanged: i,
292
300
  computedAriaLabel: d,
293
301
  computedButtonText: h,
294
- computedClearButtonLabel: F,
302
+ computedClearButtonLabel: y,
295
303
  // Enums
296
- BentoTooltipPosition: lt,
304
+ BentoTooltipPosition: at,
297
305
  // Events
298
- onClickFilter: U,
299
- onClickApply: A,
300
- onClickSecondaryAction: R,
301
- onClickOutside: B,
306
+ onClickFilter: R,
307
+ onClickApply: P,
308
+ onClickSecondaryAction: L,
309
+ onClickOutside: g,
302
310
  closePopover: C,
303
- resetFilter: D,
311
+ resetFilter: A,
304
312
  // Refs
305
313
  filterButtonRef: o,
306
314
  popoverRef: s
307
315
  };
308
316
  }
309
317
  });
310
- var wt = function() {
318
+ var Nt = function() {
311
319
  var e = this, t = e._self._c;
312
- return e._self._setupProxy, e.onlySlot ? t("div", [e._t("default")], 2) : t("div", { staticClass: "b-base-filter" }, [t("filter-bar-button-group", { attrs: { "is-active": e.isFilterOpen, "skip-grouping": !e.isValueChanged } }, [t("filter-bar-button", { ref: "filterButtonRef", attrs: { "aria-label": e.computedAriaLabel, "aria-controls": e.isFilterOpen ? e.popoverId : null, "applied-filters-count": e.appliedFiltersCount, disabled: e.disabled, "is-persistent-filter": e.isPersistentFilter, "is-filter-open": e.isFilterOpen, "secondary-label": e.buttonSecondaryLabel }, on: { click: e.onClickFilter, keydown: function(l) {
320
+ return e._self._setupProxy, e.onlySlot ? t("div", [e._t("default")], 2) : t("div", { staticClass: "b-base-filter" }, [t("filter-bar-button-group", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: e.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], attrs: { "is-active": e.isFilterOpen, "skip-grouping": !e.isValueChanged } }, [t("filter-bar-button", { ref: "filterButtonRef", attrs: { "aria-label": e.computedAriaLabel, "aria-controls": e.isFilterOpen ? e.popoverId : null, "applied-filters-count": e.appliedFiltersCount, disabled: e.disabled, "is-persistent-filter": e.isPersistentFilter, "is-filter-open": e.isFilterOpen, "secondary-label": e.buttonSecondaryLabel }, on: { click: e.onClickFilter, keydown: function(l) {
313
321
  return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
314
322
  } } }, [e._v(" " + e._s(e.computedButtonText) + " ")]), e.isValueChanged ? t("filter-bar-button", { attrs: { "applied-filters-count": e.appliedFiltersCount, disabled: e.disabled, "is-persistent-filter": e.isPersistentFilter, "is-filter-open": e.isFilterOpen, "secondary-label": e.buttonSecondaryLabel }, on: { click: e.resetFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
315
323
  return [t("cross-small-icon", { attrs: { "svg-title": e.computedClearButtonLabel } })];
316
324
  }, proxy: !0 }], null, !1, 3850482025) }) : e._e()], 1), e.filterButtonRef ? t("bento-teleport", [e.filterButtonRef ? t("bento-popover", { ref: "popoverRef", staticClass: "b-base-filter__popover", attrs: { id: e.popoverId, divider: "", open: e.isFilterOpen, actions: e.controlled ? null : e.actions, "actions-layout": "space-between", "target-element": e.filterButtonRef, title: e.controlled ? null : e.label, "fit-content": e.fitContent, position: "bottom-start", "without-space": e.controlled, "fallback-position": ["bottom-end"] } }, [t("div", { on: { keydown: function(l) {
317
325
  return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
318
326
  } } }, [e._t("default")], 2)]) : e._e()], 1) : e._e()], 1);
319
- }, Nt = [], Mt = /* @__PURE__ */ $(
320
- Vt,
327
+ }, Mt = [], Ht = /* @__PURE__ */ U(
321
328
  wt,
322
329
  Nt,
330
+ Mt,
323
331
  !1,
324
332
  null,
325
- "2f8feeb4"
333
+ "2f95c4ee"
326
334
  );
327
- const X = Mt.exports, Ht = (a) => a instanceof Array, ge = (a) => Ht(a) ? a.length === 0 || a.every((e) => e === "") : !a, Be = (a, e) => JSON.stringify(a) === JSON.stringify(e), K = (a, e) => {
328
- const t = E(a.value);
335
+ const X = Ht.exports, jt = (a) => a instanceof Array, ge = (a) => jt(a) ? a.length === 0 || a.every((e) => e === "") : !a, Be = (a, e) => JSON.stringify(a) === JSON.stringify(e), K = (a, e) => {
336
+ const t = x(a.value);
329
337
  z(
330
338
  () => a.value,
331
339
  () => {
@@ -340,10 +348,10 @@ const X = Mt.exports, Ht = (a) => a instanceof Array, ge = (a) => Ht(a) ? a.leng
340
348
  isSecondaryButtonDisabled: n,
341
349
  isApplyButtonDisabled: o
342
350
  };
343
- }, jt = {
351
+ }, qt = {
344
352
  name: "bento-input-filter"
345
- }, qt = /* @__PURE__ */ x({
346
- ...jt,
353
+ }, Jt = /* @__PURE__ */ $({
354
+ ...qt,
347
355
  props: {
348
356
  defaultValue: { default: null },
349
357
  disabled: { type: Boolean, default: !1 },
@@ -355,8 +363,8 @@ const X = Mt.exports, Ht = (a) => a instanceof Array, ge = (a) => Ht(a) ? a.leng
355
363
  },
356
364
  emits: ["input", "update"],
357
365
  setup(a, { emit: e }) {
358
- var L, k;
359
- const t = a, l = E(null), n = E((k = (L = t == null ? void 0 : t.options) == null ? void 0 : L.dropdown) == null ? void 0 : k.value), o = r(
366
+ var I, k;
367
+ const t = a, l = x(null), n = x((k = (I = t == null ? void 0 : t.options) == null ? void 0 : I.dropdown) == null ? void 0 : k.value), o = r(
360
368
  () => {
361
369
  var T, N;
362
370
  return ((T = t == null ? void 0 : t.options) == null ? void 0 : T.variant) === "dropdown" && ((N = t == null ? void 0 : t.options) == null ? void 0 : N.dropdown) !== void 0;
@@ -366,18 +374,18 @@ const X = Mt.exports, Ht = (a) => a instanceof Array, ge = (a) => Ht(a) ? a.leng
366
374
  var T;
367
375
  return o.value ? { ...(T = t == null ? void 0 : t.options) == null ? void 0 : T.dropdown, value: n.value } : void 0;
368
376
  }
369
- ), c = r(() => {
377
+ ), u = r(() => {
370
378
  var T;
371
379
  return ((T = t == null ? void 0 : t.options) == null ? void 0 : T.variant) === "dropdown" ? "dropdown" : "default";
372
- }), u = r(
380
+ }), i = r(
373
381
  () => {
374
382
  var T;
375
383
  return o.value ? (T = t.value) == null ? void 0 : T.inputValue : t == null ? void 0 : t.value;
376
384
  }
377
- ), { internalFilterValue: d, isSecondaryButtonDisabled: F, isApplyButtonDisabled: h } = K(
378
- u,
385
+ ), { internalFilterValue: d, isSecondaryButtonDisabled: y, isApplyButtonDisabled: h } = K(
386
+ i,
379
387
  w(t, "defaultValue")
380
- ), m = r(() => t.label), C = r(() => le(u.value, 12)), D = r(() => ({
388
+ ), F = r(() => t.label), C = r(() => le(i.value, 12)), A = r(() => ({
381
389
  "b-input-filter--only-slot": t.onlySlot
382
390
  }));
383
391
  ue(() => {
@@ -386,9 +394,9 @@ const X = Mt.exports, Ht = (a) => a instanceof Array, ge = (a) => Ht(a) ? a.leng
386
394
  var T;
387
395
  (T = l.value) == null || T.focusInput();
388
396
  });
389
- const R = () => {
390
- d.value = u.value;
391
- }, B = () => {
397
+ const L = () => {
398
+ d.value = i.value;
399
+ }, g = () => {
392
400
  !d.value && t.defaultValue !== null && (d.value = t.defaultValue), e("update", {
393
401
  ...t,
394
402
  value: o.value ? {
@@ -396,20 +404,20 @@ const X = Mt.exports, Ht = (a) => a instanceof Array, ge = (a) => Ht(a) ? a.leng
396
404
  dropdownValue: n.value
397
405
  } : d.value
398
406
  });
399
- }, U = () => e("update", { ...t, value: t.defaultValue }), A = () => {
400
- d.value = null, B();
401
- }, g = () => {
407
+ }, R = () => e("update", { ...t, value: t.defaultValue }), P = () => {
408
+ d.value = null, g();
409
+ }, B = () => {
402
410
  e("input", { ...t, value: d.value });
403
411
  }, b = (T) => {
404
412
  d.value = T;
405
- }, P = (T) => {
413
+ }, D = (T) => {
406
414
  n.value = T;
407
415
  };
408
- return Ie(Qe, o.value), z(
416
+ return Pe(Qe, o.value), z(
409
417
  () => t.options,
410
418
  () => {
411
419
  var T, N, j;
412
- ((T = t.options) != null && T.dropdown || (N = t.options) != null && N.dropdownPosition || (j = t.options) != null && j.variant) && pe(
420
+ ((T = t.options) != null && T.dropdown || (N = t.options) != null && N.dropdownPosition || (j = t.options) != null && j.variant) && fe(
413
421
  'BentoInputFilter "options" property',
414
422
  `BentoInputFilter "options" no longer supports "dropdown", "dropdownPosition" or "variant" attributes.
415
423
  Use the "BentoFilterItemType.INPUT_DROPDOWN" instead of "BentoFilterItemType.INPUT"
@@ -425,27 +433,27 @@ const X = Mt.exports, Ht = (a) => a instanceof Array, ge = (a) => Ht(a) ? a.leng
425
433
  );
426
434
  },
427
435
  { immediate: !0 }
428
- ), { __sfc: !0, props: t, emit: e, inputTextRef: l, dropdownValue: n, isDropdownVariant: o, dropdownProp: s, inputVariant: c, valueProp: u, internalFilterValue: d, isSecondaryButtonDisabled: F, isApplyButtonDisabled: h, buttonLabel: m, buttonSecondaryLabel: C, conditionalClasses: D, openFilter: R, updateFilter: B, resetFilter: U, clearFilter: A, onInput: g, setInternalFilterValue: b, onDropdownInput: P, BentoBaseFilter: X, BentoInputField: be };
436
+ ), { __sfc: !0, props: t, emit: e, inputTextRef: l, dropdownValue: n, isDropdownVariant: o, dropdownProp: s, inputVariant: u, valueProp: i, internalFilterValue: d, isSecondaryButtonDisabled: y, isApplyButtonDisabled: h, buttonLabel: F, buttonSecondaryLabel: C, conditionalClasses: A, openFilter: L, updateFilter: g, resetFilter: R, clearFilter: P, onInput: B, setInternalFilterValue: b, onDropdownInput: D, BentoBaseFilter: X, BentoInputField: be };
429
437
  }
430
438
  });
431
- var Jt = function() {
432
- var n, o;
439
+ var Yt = function() {
440
+ var n, o, s, u;
433
441
  var e = this, t = e._self._c, l = e._self._setupProxy;
434
- return t(l.BentoBaseFilter, e._b({ attrs: { "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, "disable-apply-button": l.isApplyButtonDisabled, "disable-secondary-button": l.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "popover-overflow-visible": l.isDropdownVariant }, on: { apply: l.updateFilter, clear: l.clearFilter, open: l.openFilter, reset: l.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-filter", class: l.conditionalClasses, on: { keydown: function(s) {
435
- return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
436
- }, input: l.onInput } }, [t(l.BentoInputField, { ref: "inputTextRef", attrs: { dropdown: l.dropdownProp, "dropdown-position": (n = e.options) == null ? void 0 : n.dropdownPosition, placeholder: (o = e.options) == null ? void 0 : o.placeholder, variant: l.inputVariant, value: l.internalFilterValue }, on: { input: l.setInternalFilterValue, "dropdown-input": l.onDropdownInput } })], 1)]);
437
- }, Yt = [], Wt = /* @__PURE__ */ $(
438
- qt,
442
+ return t(l.BentoBaseFilter, e._b({ attrs: { "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, "disable-apply-button": l.isApplyButtonDisabled, "disable-secondary-button": l.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "popover-overflow-visible": l.isDropdownVariant, "tooltip-position": (n = e.options) == null ? void 0 : n.tooltipPosition, "tooltip-text": (o = e.options) == null ? void 0 : o.tooltipText }, on: { apply: l.updateFilter, clear: l.clearFilter, open: l.openFilter, reset: l.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-filter", class: l.conditionalClasses, on: { keydown: function(i) {
443
+ return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
444
+ }, input: l.onInput } }, [t(l.BentoInputField, { ref: "inputTextRef", attrs: { dropdown: l.dropdownProp, "dropdown-position": (s = e.options) == null ? void 0 : s.dropdownPosition, placeholder: (u = e.options) == null ? void 0 : u.placeholder, variant: l.inputVariant, value: l.internalFilterValue }, on: { input: l.setInternalFilterValue, "dropdown-input": l.onDropdownInput } })], 1)]);
445
+ }, Wt = [], zt = /* @__PURE__ */ U(
439
446
  Jt,
440
447
  Yt,
448
+ Wt,
441
449
  !1,
442
450
  null,
443
- "84f6bd65"
451
+ "641bf14b"
444
452
  );
445
- const we = Wt.exports, zt = {
453
+ const we = zt.exports, Gt = {
446
454
  name: "bento-input-with-dropdown-filter"
447
- }, Gt = /* @__PURE__ */ x({
448
- ...zt,
455
+ }, Kt = /* @__PURE__ */ $({
456
+ ...Gt,
449
457
  props: {
450
458
  disabled: { type: Boolean },
451
459
  defaultValue: { default: void 0 },
@@ -457,15 +465,15 @@ const we = Wt.exports, zt = {
457
465
  },
458
466
  emits: [v.INPUT, v.UPDATE],
459
467
  setup(a, { emit: e }) {
460
- const t = a, l = E(null), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = K(w(t, "value"), w(t, "defaultValue")), c = r(() => t.label), u = r(() => {
468
+ const t = a, l = x(null), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = K(w(t, "value"), w(t, "defaultValue")), u = r(() => t.label), i = r(() => {
461
469
  var b;
462
470
  return le((b = t.value) == null ? void 0 : b.inputValue, 12);
463
471
  }), d = r(
464
472
  () => {
465
- var b, P, L;
466
- return ((b = n.value) == null ? void 0 : b.dropdownValue) ?? ((L = (P = t.options) == null ? void 0 : P.dropdown) == null ? void 0 : L.value);
473
+ var b, D, I;
474
+ return ((b = n.value) == null ? void 0 : b.dropdownValue) ?? ((I = (D = t.options) == null ? void 0 : D.dropdown) == null ? void 0 : I.value);
467
475
  }
468
- ), F = r(() => {
476
+ ), y = r(() => {
469
477
  var b;
470
478
  return {
471
479
  ...((b = t.options) == null ? void 0 : b.dropdown) || {},
@@ -473,9 +481,9 @@ const we = Wt.exports, zt = {
473
481
  };
474
482
  }), h = r(() => ({
475
483
  "b-input-with-dropdown-filter--only-slot": t.onlySlot
476
- })), m = r(() => {
477
- var P;
478
- return !(!!((P = n.value) != null && P.inputValue) && !!d.value) || s.value;
484
+ })), F = r(() => {
485
+ var D;
486
+ return !(!!((D = n.value) != null && D.inputValue) && !!d.value) || s.value;
479
487
  });
480
488
  ue(() => {
481
489
  var b;
@@ -486,45 +494,45 @@ const we = Wt.exports, zt = {
486
494
  });
487
495
  const C = () => {
488
496
  n.value = t.value;
489
- }, D = () => {
497
+ }, A = () => {
490
498
  var b;
491
499
  !((b = n.value) != null && b.inputValue) && t.defaultValue !== null && (n.value = { ...t.defaultValue }), e(v.UPDATE, {
492
500
  ...t,
493
501
  value: n.value
494
502
  });
495
- }, R = () => e(v.UPDATE, { ...t, value: t.defaultValue }), B = () => {
496
- n.value = null, D();
497
- }, U = () => {
503
+ }, L = () => e(v.UPDATE, { ...t, value: t.defaultValue }), g = () => {
504
+ n.value = null, A();
505
+ }, R = () => {
498
506
  e(v.INPUT, { ...t, value: n.value });
499
- }, A = (b) => {
507
+ }, P = (b) => {
500
508
  n.value = { dropdownValue: d.value, inputValue: b };
501
- }, g = (b) => {
509
+ }, B = (b) => {
502
510
  n.value = { ...n.value, dropdownValue: b };
503
511
  };
504
- return Ie(Xe, !0), { __sfc: !0, props: t, emit: e, inputTextRef: l, internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s, buttonLabel: c, buttonSecondaryLabel: u, dropdownSelection: d, dropdownOptions: F, conditionalClasses: h, shouldDisableApply: m, openFilter: C, updateFilter: D, resetFilter: R, clearFilter: B, onInput: U, setInternalFilterValue: A, onDropdownInput: g, BentoBaseFilter: X, BentoInputField: be };
512
+ return Pe(Xe, !0), { __sfc: !0, props: t, emit: e, inputTextRef: l, internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s, buttonLabel: u, buttonSecondaryLabel: i, dropdownSelection: d, dropdownOptions: y, conditionalClasses: h, shouldDisableApply: F, openFilter: C, updateFilter: A, resetFilter: L, clearFilter: g, onInput: R, setInternalFilterValue: P, onDropdownInput: B, BentoBaseFilter: X, BentoInputField: be };
505
513
  }
506
514
  });
507
- var Kt = function() {
508
- var n, o;
515
+ var Zt = function() {
516
+ var n, o, s, u;
509
517
  var e = this, t = e._self._c, l = e._self._setupProxy;
510
- return t(l.BentoBaseFilter, e._b({ attrs: { "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, "disable-apply-button": l.shouldDisableApply, "disable-secondary-button": l.isSecondaryButtonDisabled, "only-slot": e.onlySlot }, on: { apply: l.updateFilter, clear: l.clearFilter, open: l.openFilter, reset: l.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-with-dropdown-filter", class: l.conditionalClasses, on: { keydown: function(s) {
511
- return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
512
- }, input: l.onInput } }, [t(l.BentoInputField, { ref: "inputTextRef", attrs: { dropdown: l.dropdownOptions, "dropdown-position": (n = e.options) == null ? void 0 : n.dropdownPosition, variant: "dropdown", value: (o = l.internalFilterValue) == null ? void 0 : o.inputValue }, on: { input: l.setInternalFilterValue, "dropdown-input": l.onDropdownInput } })], 1)]);
513
- }, Zt = [], Qt = /* @__PURE__ */ $(
514
- Gt,
518
+ return t(l.BentoBaseFilter, e._b({ attrs: { "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, "disable-apply-button": l.shouldDisableApply, "disable-secondary-button": l.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "tooltip-position": (n = e.options) == null ? void 0 : n.tooltipPosition, "tooltip-text": (o = e.options) == null ? void 0 : o.tooltipText }, on: { apply: l.updateFilter, clear: l.clearFilter, open: l.openFilter, reset: l.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-with-dropdown-filter", class: l.conditionalClasses, on: { keydown: function(i) {
519
+ return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
520
+ }, input: l.onInput } }, [t(l.BentoInputField, { ref: "inputTextRef", attrs: { dropdown: l.dropdownOptions, "dropdown-position": (s = e.options) == null ? void 0 : s.dropdownPosition, variant: "dropdown", value: (u = l.internalFilterValue) == null ? void 0 : u.inputValue }, on: { input: l.setInternalFilterValue, "dropdown-input": l.onDropdownInput } })], 1)]);
521
+ }, Qt = [], Xt = /* @__PURE__ */ U(
515
522
  Kt,
516
523
  Zt,
524
+ Qt,
517
525
  !1,
518
526
  null,
519
- "c30f8fb3"
527
+ "dda28e03"
520
528
  );
521
- const Ne = Qt.exports, Xt = x({
529
+ const Ne = Xt.exports, el = $({
522
530
  name: "bento-date-filter",
523
531
  components: {
524
532
  BentoBaseFilter: X,
525
- BentoDatePicker: Bt,
533
+ BentoDatePicker: Ct,
526
534
  BentoDivider: _e,
527
- Calendar: ht
535
+ Calendar: St
528
536
  },
529
537
  props: {
530
538
  /**
@@ -555,6 +563,8 @@ const Ne = Qt.exports, Xt = x({
555
563
  * Available options:
556
564
  * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
557
565
  * - isDateDisabled: Indicate if a date should be disabled or not
566
+ * - tooltipPosition: The position of the tooltip attached to the filter button
567
+ * - tooltipText: The content of the tooltip attached to the filter button
558
568
  */
559
569
  options: {
560
570
  type: Object,
@@ -570,53 +580,53 @@ const Ne = Qt.exports, Xt = x({
570
580
  const { locale: t } = G(void 0, !0), l = Ve(), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = K(
571
581
  w(a, "value"),
572
582
  w(a, "defaultValue")
573
- ), c = r(
583
+ ), u = r(
574
584
  () => a.value ? Q(a.value, "dd MMM, yyyy", {
575
585
  locale: l[t.value.substring(0, 2)] || l.enUS
576
586
  }) : null
577
- ), u = r(() => a.label), d = r(() => c.value), F = () => {
587
+ ), i = r(() => a.label), d = r(() => u.value), y = () => {
578
588
  e(v.UPDATE, { ...a, value: n.value });
579
589
  }, h = () => {
580
- n.value = null, F();
581
- }, m = () => {
582
- n.value = a.defaultValue, F();
590
+ n.value = null, y();
591
+ }, F = () => {
592
+ n.value = a.defaultValue, y();
583
593
  }, C = () => {
584
594
  n.value = a.value;
585
- }, D = (B) => {
586
- n.value = B, e(v.INPUT, { ...a, value: n.value });
595
+ }, A = (g) => {
596
+ n.value = g, e(v.INPUT, { ...a, value: n.value });
587
597
  };
588
598
  return {
589
599
  // Values
590
600
  internalFilterValue: n,
591
601
  isApplyButtonDisabled: s,
592
602
  isSecondaryButtonDisabled: o,
593
- buttonLabel: u,
603
+ buttonLabel: i,
594
604
  buttonSecondaryLabel: d,
595
605
  // Events
596
606
  clearFilter: h,
597
- onDateSelected: D,
607
+ onDateSelected: A,
598
608
  openFilter: C,
599
- updateFilter: F,
600
- resetFilter: m,
601
- onDateInputSelected: (B) => {
602
- n.value = B, D(B), F();
609
+ updateFilter: y,
610
+ resetFilter: F,
611
+ onDateInputSelected: (g) => {
612
+ n.value = g, A(g), y();
603
613
  }
604
614
  };
605
615
  }
606
616
  });
607
- var el = function() {
608
- var l, n, o, s, c, u;
617
+ var tl = function() {
618
+ var l, n, o, s, u, i, d, y;
609
619
  var e = this, t = e._self._c;
610
- return e._self._setupProxy, t("bento-base-filter", { attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, disabled: e.disabled, "default-value": e.defaultValue, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, field: e.field, label: e.label, "only-slot": e.onlySlot, "fit-content": "" }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, [e.onlySlot ? t("bento-date-picker", { attrs: { value: e.internalFilterValue, "first-day-of-week": (l = e.options) == null ? void 0 : l.firstDayOfWeek, "is-date-disabled": (n = e.options) == null ? void 0 : n.isDateDisabled, variant: (o = e.options) == null ? void 0 : o.variant }, on: { input: e.onDateInputSelected } }) : [t("bento-divider", { staticClass: "b-date-filter__divider" }), t("div", { staticClass: "b-date-filter" }, [t("calendar", { attrs: { "first-day-of-week": (s = e.options) == null ? void 0 : s.firstDayOfWeek, "is-date-disabled": (c = e.options) == null ? void 0 : c.isDateDisabled, "number-of-months": 1, value: e.internalFilterValue, variant: (u = e.options) == null ? void 0 : u.variant }, on: { input: e.onDateSelected } })], 1)]], 2);
611
- }, tl = [], ll = /* @__PURE__ */ $(
612
- Xt,
620
+ return e._self._setupProxy, t("bento-base-filter", { attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, disabled: e.disabled, "default-value": e.defaultValue, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, field: e.field, label: e.label, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText, "fit-content": "" }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, [e.onlySlot ? t("bento-date-picker", { attrs: { value: e.internalFilterValue, "first-day-of-week": (o = e.options) == null ? void 0 : o.firstDayOfWeek, "is-date-disabled": (s = e.options) == null ? void 0 : s.isDateDisabled, variant: (u = e.options) == null ? void 0 : u.variant }, on: { input: e.onDateInputSelected } }) : [t("bento-divider", { staticClass: "b-date-filter__divider" }), t("div", { staticClass: "b-date-filter" }, [t("calendar", { attrs: { "first-day-of-week": (i = e.options) == null ? void 0 : i.firstDayOfWeek, "is-date-disabled": (d = e.options) == null ? void 0 : d.isDateDisabled, "number-of-months": 1, value: e.internalFilterValue, variant: (y = e.options) == null ? void 0 : y.variant }, on: { input: e.onDateSelected } })], 1)]], 2);
621
+ }, ll = [], al = /* @__PURE__ */ U(
613
622
  el,
614
623
  tl,
624
+ ll,
615
625
  !1,
616
626
  null,
617
- "cc990c60"
627
+ "572e723d"
618
628
  );
619
- const Me = ll.exports, al = {
629
+ const Me = al.exports, nl = {
620
630
  "en-US": {
621
631
  apply: "Apply",
622
632
  clear: "Clear",
@@ -632,16 +642,16 @@ const Me = ll.exports, al = {
632
642
  clear: "Limpar",
633
643
  reset: "Reiniciar"
634
644
  }
635
- }, nl = x({
636
- i18n: { messages: al },
645
+ }, ol = $({
646
+ i18n: { messages: nl },
637
647
  name: "bento-date-range-filter",
638
648
  components: {
639
649
  BentoBaseFilter: X,
640
- BentoButtonActions: gt,
641
- BentoDateRangePicker: mt,
650
+ BentoButtonActions: Bt,
651
+ BentoDateRangePicker: Ft,
642
652
  BentoTypography: se,
643
653
  BentoDivider: _e,
644
- DateRangePickerCalendar: yt
654
+ DateRangePickerCalendar: mt
645
655
  },
646
656
  props: {
647
657
  /**
@@ -676,6 +686,10 @@ const Me = ll.exports, al = {
676
686
  * - numberOfMonths: Number of months rendered on pane
677
687
  * - quickSelectRanges: An array that sets the custom range dropdown items. @see BentoDateRangePicker
678
688
  * - showEndDateOnOpen: Upon opening date range picker, end date's month will be pre-selected.
689
+ * - granularities: A list of available granularities.
690
+ * - variant: The type of calendar to display. Defaults to showing days.
691
+ * - tooltipPosition: The position of the tooltip attached to the filter button
692
+ * - tooltipText: The content of the tooltip attached to the filter button
679
693
  */
680
694
  options: {
681
695
  type: Object,
@@ -691,40 +705,40 @@ const Me = ll.exports, al = {
691
705
  },
692
706
  emits: [v.INPUT, v.UPDATE],
693
707
  setup(a, { emit: e }) {
694
- var J, S, _, y;
695
- const { locale: t, t: l } = G(), n = Ve(), { internalFilterValue: o, isSecondaryButtonDisabled: s, isApplyButtonDisabled: c } = K(
708
+ var J, S, _, m;
709
+ const { locale: t, t: l } = G(), n = Ve(), { internalFilterValue: o, isSecondaryButtonDisabled: s, isApplyButtonDisabled: u } = K(
696
710
  w(a, "value"),
697
711
  w(a, "defaultValue")
698
- ), u = E(!1), d = (i) => i ? Q(i, Se.NUMERIC_DATE_YEAR_FIRST, {
712
+ ), i = x(!1), d = (c) => c ? Q(c, Se.NUMERIC_DATE_YEAR_FIRST, {
699
713
  locale: n[t.value.substring(0, 2)] || n.enUS
700
- }) : void 0, F = (i) => i ? Q(i, Se.HOUR_MINUTE_SECONDS, {
714
+ }) : void 0, y = (c) => c ? Q(c, Se.HOUR_MINUTE_SECONDS, {
701
715
  locale: n[t.value.substring(0, 2)] || n.enUS
702
- }) : "", h = E(null), m = E(!1), C = Ze({
716
+ }) : "", h = x(null), F = x(!1), C = Ze({
703
717
  startDate: d((J = a.value) == null ? void 0 : J.startDate),
704
718
  endDate: d((S = a.value) == null ? void 0 : S.endDate),
705
- startTime: F((_ = a.value) == null ? void 0 : _.startDate),
706
- endTime: F((y = a.value) == null ? void 0 : y.endDate)
719
+ startTime: y((_ = a.value) == null ? void 0 : _.startDate),
720
+ endTime: y((m = a.value) == null ? void 0 : m.endDate)
707
721
  });
708
- function D(i) {
709
- return (i == null ? void 0 : i.length) !== void 0;
722
+ function A(c) {
723
+ return (c == null ? void 0 : c.length) !== void 0;
710
724
  }
711
- const R = r(() => {
712
- var i, V, M, f, p, I, O, q, Z;
713
- if (!((i = a.value) != null && i.startDate) && !a.value.endDate)
725
+ const L = r(() => {
726
+ var c, V, M, p, f, E, O, q, Z;
727
+ if (!((c = a.value) != null && c.startDate) && !a.value.endDate)
714
728
  return null;
715
- if (D((V = a.options) == null ? void 0 : V.quickSelectRanges) && ((f = (M = a.options) == null ? void 0 : M.quickSelectRanges) == null ? void 0 : f.length) > 0) {
716
- const ne = (I = (p = a.options) == null ? void 0 : p.quickSelectRanges) == null ? void 0 : I.find(({ value: re, data: H }) => {
729
+ if (A((V = a.options) == null ? void 0 : V.quickSelectRanges) && ((p = (M = a.options) == null ? void 0 : M.quickSelectRanges) == null ? void 0 : p.length) > 0) {
730
+ const ne = (E = (f = a.options) == null ? void 0 : f.quickSelectRanges) == null ? void 0 : E.find(({ value: re, data: H }) => {
717
731
  if (o.value.range)
718
732
  return re === o.value.range;
719
733
  if (!(H != null && H.endDate))
720
- ce(H == null ? void 0 : H.startDate, o.value.startDate) && Ft(o.value.endDate);
734
+ ce(H == null ? void 0 : H.startDate, o.value.startDate) && ht(o.value.endDate);
721
735
  else
722
736
  return ce(H == null ? void 0 : H.startDate, o.value.startDate) && ce(H == null ? void 0 : H.endDate, o.value.endDate);
723
737
  });
724
738
  if (ne)
725
739
  return ne.label;
726
740
  }
727
- return St((O = a.value) == null ? void 0 : O.startDate, (q = a.value) == null ? void 0 : q.endDate) && ((Z = a == null ? void 0 : a.options) != null && Z.allowTimeInput) ? `${Q(a.value.startDate, "dd MMM, yyyy HH:mm:ss", {
741
+ return gt((O = a.value) == null ? void 0 : O.startDate, (q = a.value) == null ? void 0 : q.endDate) && ((Z = a == null ? void 0 : a.options) != null && Z.allowTimeInput) ? `${Q(a.value.startDate, "dd MMM, yyyy HH:mm:ss", {
728
742
  locale: n[t.value.substring(0, 2)] || n.enUS
729
743
  })} - ${Q(a.value.endDate, "HH:mm:ss", {
730
744
  locale: n[t.value.substring(0, 2)] || n.enUS
@@ -733,33 +747,33 @@ const Me = ll.exports, al = {
733
747
  })} - ${Q(a.value.endDate, "dd MMM, yyyy", {
734
748
  locale: n[t.value.substring(0, 2)] || n.enUS
735
749
  })}`;
736
- }), B = r(() => a.label), U = () => {
750
+ }), g = r(() => a.label), R = () => {
737
751
  h.value.closePopover();
738
- const { onlySlot: i, ...V } = a;
752
+ const { onlySlot: c, ...V } = a;
739
753
  e(v.UPDATE, { ...V, value: o.value });
740
- }, A = () => {
741
- o.value = void 0, U();
742
- }, g = () => {
743
- o.value = a.defaultValue, U();
754
+ }, P = () => {
755
+ o.value = void 0, R();
756
+ }, B = () => {
757
+ o.value = a.defaultValue, R();
744
758
  }, b = () => {
745
759
  o.value = a.value;
746
- }, P = (i) => {
747
- u.value = !1, o.value = i, C.startDate = d(i.startDate), C.endDate = d(i.endDate), e(v.INPUT, { ...a, value: o.value });
748
- }, L = (i) => {
749
- i != null && i.startDate && (i != null && i.endDate) && (o.value = i, C.startDate = d(i.startDate), C.endDate = d(i.endDate), e(v.INPUT, { ...a, value: o.value }));
750
- }, k = (i) => {
751
- P(i), e(v.INPUT, { ...a, value: o.value });
760
+ }, D = (c) => {
761
+ i.value = !1, o.value = c, C.startDate = d(c.startDate), C.endDate = d(c.endDate), e(v.INPUT, { ...a, value: o.value });
762
+ }, I = (c) => {
763
+ c != null && c.startDate && (c != null && c.endDate) && (o.value = c, C.startDate = d(c.startDate), C.endDate = d(c.endDate), e(v.INPUT, { ...a, value: o.value }));
764
+ }, k = (c) => {
765
+ D(c), e(v.INPUT, { ...a, value: o.value });
752
766
  }, T = r(
753
767
  () => [
754
768
  {
755
769
  title: l("apply"),
756
- event: U,
757
- disabled: u.value || m.value || c.value
770
+ event: R,
771
+ disabled: i.value || F.value || u.value
758
772
  },
759
773
  {
760
774
  title: a.defaultValue ? l("reset") : l("clear"),
761
- event: a.defaultValue ? g : A,
762
- disabled: m.value && s.value
775
+ event: a.defaultValue ? B : P,
776
+ disabled: F.value && s.value
763
777
  }
764
778
  ]
765
779
  );
@@ -770,47 +784,47 @@ const Me = ll.exports, al = {
770
784
  actions: T,
771
785
  formData: C,
772
786
  internalFilterValue: o,
773
- isApplyButtonDisabled: c,
787
+ isApplyButtonDisabled: u,
774
788
  isSecondaryButtonDisabled: s,
775
- isSelectingDate: u,
776
- buttonLabel: B,
777
- buttonSecondaryLabel: R,
789
+ isSelectingDate: i,
790
+ buttonLabel: g,
791
+ buttonSecondaryLabel: L,
778
792
  // Events
779
- onDateSelected: P,
793
+ onDateSelected: D,
780
794
  openFilter: b,
781
- clearFilter: A,
782
- resetFilter: g,
783
- updateFilter: U,
795
+ clearFilter: P,
796
+ resetFilter: B,
797
+ updateFilter: R,
784
798
  onDatePickerRangeError: () => {
785
- m.value = !0, o.value = { startDate: void 0, endDate: void 0 }, e(v.INPUT, { ...a, value: o.value });
799
+ F.value = !0, o.value = { startDate: void 0, endDate: void 0 }, e(v.INPUT, { ...a, value: o.value });
786
800
  },
787
- onDatePickerRangeFormDateInputUpdate: (i) => {
788
- m.value = !1, i.startTime && (C.startTime = i.startTime), i.endTime && (C.endTime = i.endTime);
801
+ onDatePickerRangeFormDateInputUpdate: (c) => {
802
+ F.value = !1, c.startTime && (C.startTime = c.startTime), c.endTime && (C.endTime = c.endTime);
789
803
  },
790
804
  onDateInputSelected: k,
791
- onRangeSelectorInput: L
805
+ onRangeSelectorInput: I
792
806
  };
793
807
  }
794
808
  });
795
- var ol = function() {
796
- var l, n, o, s, c, u, d, F, h, m, C, D, R, B, U, A, g;
809
+ var sl = function() {
810
+ var l, n, o, s, u, i, d, y, h, F, C, A, L, g, R, P, B, b, D;
797
811
  var e = this, t = e._self._c;
798
- return e._self._setupProxy, t("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, disabled: e.disabled, "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, clear: e.clearFilter, reset: e.resetFilter } }, [e.onlySlot ? t("bento-date-range-picker", { attrs: { "allow-time-input": (l = e.options) == null ? void 0 : l.allowTimeInput, value: e.internalFilterValue, "first-day-of-week": (n = e.options) == null ? void 0 : n.firstDayOfWeek, "is-date-disabled": (o = e.options) == null ? void 0 : o.isDateDisabled, "number-of-months": (s = e.options) == null ? void 0 : s.numberOfMonths, "quick-select-ranges": (c = e.options) == null ? void 0 : c.quickSelectRanges, variant: (u = e.options) == null ? void 0 : u.variant }, on: { input: e.onDateInputSelected } }) : [t("div", { staticClass: "b-date-range-filter" }, [t("date-range-picker-calendar", { attrs: { "allow-time-input": (d = e.options) == null ? void 0 : d.allowTimeInput, "first-day-of-week": (F = e.options) == null ? void 0 : F.firstDayOfWeek, "is-date-disabled": (h = e.options) == null ? void 0 : h.isDateDisabled, granularities: (m = e.options) == null ? void 0 : m.granularities, "max-range": (C = e.options) == null ? void 0 : C.maxRange, min: (D = e.options) == null ? void 0 : D.min, max: (R = e.options) == null ? void 0 : R.max, "number-of-months": (B = e.options) == null ? void 0 : B.numberOfMonths, "quick-select-ranges": (U = e.options) == null ? void 0 : U.quickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData, "show-end-date-on-open": (A = e.options) == null ? void 0 : A.showEndDateOnOpen, variant: (g = e.options) == null ? void 0 : g.variant }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(b) {
812
+ return e._self._setupProxy, t("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, disabled: e.disabled, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, field: e.field, label: e.label, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText, "fit-content": "" }, on: { open: e.openFilter, clear: e.clearFilter, reset: e.resetFilter } }, [e.onlySlot ? t("bento-date-range-picker", { attrs: { "allow-time-input": (o = e.options) == null ? void 0 : o.allowTimeInput, value: e.internalFilterValue, "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": (i = e.options) == null ? void 0 : i.numberOfMonths, "quick-select-ranges": (d = e.options) == null ? void 0 : d.quickSelectRanges, variant: (y = e.options) == null ? void 0 : y.variant }, on: { input: e.onDateInputSelected } }) : [t("div", { staticClass: "b-date-range-filter" }, [t("date-range-picker-calendar", { attrs: { "allow-time-input": (h = e.options) == null ? void 0 : h.allowTimeInput, "first-day-of-week": (F = e.options) == null ? void 0 : F.firstDayOfWeek, "is-date-disabled": (C = e.options) == null ? void 0 : C.isDateDisabled, granularities: (A = e.options) == null ? void 0 : A.granularities, "max-range": (L = e.options) == null ? void 0 : L.maxRange, min: (g = e.options) == null ? void 0 : g.min, max: (R = e.options) == null ? void 0 : R.max, "number-of-months": (P = e.options) == null ? void 0 : P.numberOfMonths, "quick-select-ranges": (B = e.options) == null ? void 0 : B.quickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData, "show-end-date-on-open": (b = e.options) == null ? void 0 : b.showEndDateOnOpen, variant: (D = e.options) == null ? void 0 : D.variant }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(I) {
799
813
  e.isSelectingDate = !0;
800
814
  } }, scopedSlots: e._u([{ key: "title", fn: function() {
801
815
  return [t("bento-typography", { attrs: { strongest: "", variant: "body", el: "span" } }, [e._v(" " + e._s(e.label) + " ")])];
802
816
  }, proxy: !0 }, { key: "actions", fn: function() {
803
817
  return [t("bento-divider", { staticClass: "b-date-range-filter__divider" }), t("bento-button-actions", { staticClass: "b-date-range-filter__actions", attrs: { actions: e.actions, layout: "space-between" } })];
804
818
  }, proxy: !0 }]) })], 1)]], 2);
805
- }, sl = [], rl = /* @__PURE__ */ $(
806
- nl,
819
+ }, rl = [], il = /* @__PURE__ */ U(
807
820
  ol,
808
821
  sl,
822
+ rl,
809
823
  !1,
810
824
  null,
811
- "aac23949"
825
+ "8b8d207a"
812
826
  );
813
- const He = rl.exports, il = {
827
+ const He = il.exports, ul = {
814
828
  "en-US": {
815
829
  all: "All",
816
830
  noFiltersMatchThisSearch: "No filters match this search",
@@ -822,10 +836,10 @@ const He = rl.exports, il = {
822
836
  "pt-BR": {
823
837
  all: "Todos"
824
838
  }
825
- }, ul = {
826
- i18n: { messages: il }
827
- }, cl = /* @__PURE__ */ x({
828
- ...ul,
839
+ }, cl = {
840
+ i18n: { messages: ul }
841
+ }, dl = /* @__PURE__ */ $({
842
+ ...cl,
829
843
  __name: "select-filter-button",
830
844
  props: {
831
845
  /**
@@ -879,110 +893,110 @@ const He = rl.exports, il = {
879
893
  emits: ["input", "update"],
880
894
  setup(a, { emit: e }) {
881
895
  var J, S;
882
- const t = a, l = ie(), { t: n } = G(), o = E(""), s = w(t, "options"), c = E(t.options.listboxItems ?? []), { cachedSelectedListboxOptions: u, setCachedValues: d, resetCache: F } = he(
883
- c,
896
+ const t = a, l = ie(), { t: n } = G(), o = x(""), s = w(t, "options"), u = x(t.options.listboxItems ?? []), { cachedSelectedListboxOptions: i, setCachedValues: d, resetCache: y } = he(
897
+ u,
884
898
  w(t, "value"),
885
899
  w(s.value, "multiple")
886
900
  ), { cachedSelectedListboxOptions: h } = he(
887
- c,
901
+ u,
888
902
  w(t, "defaultValue"),
889
903
  w(s.value, "multiple")
890
- ), { internalFilterValue: m, isSecondaryButtonDisabled: C, isApplyButtonDisabled: D } = K(u, h);
904
+ ), { internalFilterValue: F, isSecondaryButtonDisabled: C, isApplyButtonDisabled: A } = K(i, h);
891
905
  z(s, () => {
892
- c.value = s.value.listboxItems ?? [];
906
+ u.value = s.value.listboxItems ?? [];
893
907
  });
894
- const R = xe(
908
+ const L = $e(
895
909
  o,
896
- c,
910
+ u,
897
911
  (S = (J = t.options) == null ? void 0 : J.search) == null ? void 0 : S.searchEvent
898
- ), B = r(() => n("noFiltersMatchThisSearch")), U = r(() => t.label), A = r(() => {
899
- var i, V, M, f;
900
- const _ = !((i = t == null ? void 0 : t.options) != null && i.multiple) && (t == null ? void 0 : t.value), y = ((M = ((V = t == null ? void 0 : t.options) == null ? void 0 : V.multiple) && t.value) == null ? void 0 : M.length) === 1;
901
- if (_ || y) {
902
- let I = (f = t.options.listboxItems.flatMap((O) => O.items ? O.items : O).find(
912
+ ), g = r(() => n("noFiltersMatchThisSearch")), R = r(() => t.label), P = r(() => {
913
+ var c, V, M, p;
914
+ const _ = !((c = t == null ? void 0 : t.options) != null && c.multiple) && (t == null ? void 0 : t.value), m = ((M = ((V = t == null ? void 0 : t.options) == null ? void 0 : V.multiple) && t.value) == null ? void 0 : M.length) === 1;
915
+ if (_ || m) {
916
+ let E = (p = t.options.listboxItems.flatMap((O) => O.items ? O.items : O).find(
903
917
  ({ value: O }) => {
904
918
  var q;
905
919
  return Array.isArray(t.value) ? (q = t == null ? void 0 : t.value) == null ? void 0 : q.includes(O) : O === t.value;
906
920
  }
907
- )) == null ? void 0 : f.label;
908
- return !I && t.value && (I = t.value[0]), le(I, 12);
921
+ )) == null ? void 0 : p.label;
922
+ return !E && t.value && (E = t.value[0]), le(E, 12);
909
923
  }
910
924
  return null;
911
- }), g = r(() => fe(`filter-listbox-${t.field}`)), b = (_) => {
912
- m.value = _;
913
- const { onlySlot: y, ...i } = t;
925
+ }), B = r(() => pe(`filter-listbox-${t.field}`)), b = (_) => {
926
+ F.value = _;
927
+ const { onlySlot: m, ...c } = t;
914
928
  if (t.options.multiple) {
915
- const M = _.length ? m.value.map(({ value: f }) => f) : null;
916
- e(v.INPUT, { ...i, value: M });
929
+ const M = _.length ? F.value.map(({ value: p }) => p) : null;
930
+ e(v.INPUT, { ...c, value: M });
917
931
  return;
918
932
  }
919
933
  const V = _.length ? _[0].value : null;
920
- e(v.INPUT, { ...i, value: V });
921
- }, P = () => {
922
- var V, M, f;
923
- const { onlySlot: _, ...y } = t;
934
+ e(v.INPUT, { ...c, value: V });
935
+ }, D = () => {
936
+ var V, M, p;
937
+ const { onlySlot: _, ...m } = t;
924
938
  if (t.options.multiple) {
925
- m.value && ((V = m.value) == null ? void 0 : V.length) === 0 && (m.value = t.defaultValue !== null ? h.value : void 0);
926
- const p = (M = m.value) != null && M.length ? (f = m.value) == null ? void 0 : f.map(({ value: I }) => I) : null;
939
+ F.value && ((V = F.value) == null ? void 0 : V.length) === 0 && (F.value = t.defaultValue !== null ? h.value : void 0);
940
+ const f = (M = F.value) != null && M.length ? (p = F.value) == null ? void 0 : p.map(({ value: E }) => E) : null;
927
941
  e(v.UPDATE, {
928
- ...y,
929
- value: p
942
+ ...m,
943
+ value: f
930
944
  });
931
945
  return;
932
946
  }
933
- const i = m.value.length ? m.value[0].value : void 0;
934
- e(v.UPDATE, { ...y, value: i });
935
- }, L = () => {
936
- m.value = u.value;
947
+ const c = F.value.length ? F.value[0].value : void 0;
948
+ e(v.UPDATE, { ...m, value: c });
949
+ }, I = () => {
950
+ F.value = i.value;
937
951
  }, k = () => {
938
952
  o.value && (o.value = "");
939
953
  }, T = () => {
940
- d(h.value), m.value = h.value, P();
954
+ d(h.value), F.value = h.value, D();
941
955
  }, N = () => {
942
- F(), m.value = [], P();
956
+ y(), F.value = [], D();
943
957
  }, j = r(() => {
944
- var i, V;
958
+ var c, V;
945
959
  if (t.value == null || !t.options.multiple)
946
960
  return null;
947
- const _ = (i = t.options.listboxItems) == null ? void 0 : i.reduce((M, f) => {
948
- var p;
949
- return M += (p = f == null ? void 0 : f.items) != null && p.length ? f.items.length : 1, M;
950
- }, 0), y = (V = t.value) == null ? void 0 : V.length;
951
- return y === 1 ? null : y === _ ? n("all") : y;
961
+ const _ = (c = t.options.listboxItems) == null ? void 0 : c.reduce((M, p) => {
962
+ var f;
963
+ return M += (f = p == null ? void 0 : p.items) != null && f.length ? p.items.length : 1, M;
964
+ }, 0), m = (V = t.value) == null ? void 0 : V.length;
965
+ return m === 1 ? null : m === _ ? n("all") : m;
952
966
  });
953
- return { __sfc: !0, slots: l, emit: e, props: t, t: n, searchTerm: o, optionsRef: s, itemsRef: c, cachedSelectedListboxOptions: u, setCachedValues: d, resetCache: F, cachedDefaultSelectedListboxOptions: h, internalFilterValue: m, isSecondaryButtonDisabled: C, isApplyButtonDisabled: D, filteredItems: R, noResultsMessage: B, buttonLabel: U, buttonSecondaryLabel: A, listboxFilterId: g, onOptionSelected: b, updateFilter: P, openFilter: L, closeFilter: k, resetFilter: T, clearFilter: N, appliedFiltersCount: j, BentoSearchBar: ve, BentoDivider: _e, BentoListbox: pt, BentoBaseFilter: X };
967
+ return { __sfc: !0, slots: l, emit: e, props: t, t: n, searchTerm: o, optionsRef: s, itemsRef: u, cachedSelectedListboxOptions: i, setCachedValues: d, resetCache: y, cachedDefaultSelectedListboxOptions: h, internalFilterValue: F, isSecondaryButtonDisabled: C, isApplyButtonDisabled: A, filteredItems: L, noResultsMessage: g, buttonLabel: R, buttonSecondaryLabel: P, listboxFilterId: B, onOptionSelected: b, updateFilter: D, openFilter: I, closeFilter: k, resetFilter: T, clearFilter: N, appliedFiltersCount: j, BentoSearchBar: ve, BentoDivider: _e, BentoListbox: bt, BentoBaseFilter: X };
954
968
  }
955
969
  });
956
- var dl = function() {
957
- var n, o, s, c, u, d, F, h, m, C, D, R, B, U;
970
+ var pl = function() {
971
+ var n, o, s, u, i, d, y, h, F, C, A, L, g, R, P, B;
958
972
  var e = this, t = e._self._c, l = e._self._setupProxy;
959
- return t(l.BentoBaseFilter, { attrs: { "applied-filters-count": l.appliedFiltersCount, "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, disabled: e.disabled, "disable-apply-button": l.isApplyButtonDisabled, "disable-secondary-button": l.isSecondaryButtonDisabled, "default-value": e.defaultValue, label: e.label, field: e.field, "only-slot": !1, value: e.value }, on: { apply: l.updateFilter, clear: l.clearFilter, reset: l.resetFilter, open: l.openFilter, close: l.closeFilter } }, [t("div", { staticClass: "b-select-filter-button__search-bar" }, [t(l.BentoSearchBar, { attrs: { "debounce-time": (o = (n = e.options) == null ? void 0 : n.search) == null ? void 0 : o.debounceTime, value: l.searchTerm, "input-field-aria-label": l.t("searchFilter", { filter: e.label.toLocaleLowerCase() }) }, on: { input: function(A) {
960
- l.searchTerm = A;
961
- } } })], 1), t("div", { staticClass: "b-select-filter-button__divider" }, [t(l.BentoDivider)], 1), t(l.BentoListbox, { staticClass: "b-select-filter-button__wrapper", attrs: { id: l.listboxFilterId, "aria-label": e.label, "component-loading": (s = e.options) == null ? void 0 : s.loading, "empty-state": (c = e.options) == null ? void 0 : c.emptyState, "has-more-items": (d = (u = e.options) == null ? void 0 : u.lazy) == null ? void 0 : d.hasMoreItems, items: l.filteredItems, "is-option-disabled": (F = e.options) == null ? void 0 : F.isOptionDisabled, "lazy-load-type": (m = (h = e.options) == null ? void 0 : h.lazy) == null ? void 0 : m.lazyLoadType, loading: (D = (C = e.options) == null ? void 0 : C.lazy) == null ? void 0 : D.loading, multiple: (R = e.options) == null ? void 0 : R.multiple, "static-categories": (B = e.options) == null ? void 0 : B.staticCategories, "no-results-message": l.noResultsMessage, searching: !!l.searchTerm, "selected-value": l.internalFilterValue, "virtual-scroll": (U = e.options) == null ? void 0 : U.virtualScroll }, on: { select: l.onOptionSelected, "space-pressed": l.onOptionSelected, "enter-pressed": l.onOptionSelected, "show-more": function(A) {
962
- var g, b;
963
- (b = (g = e.options) == null ? void 0 : g.lazy) == null || b.showMoreEvent();
964
- } }, scopedSlots: e._u([e._l(l.slots, function(A, g) {
965
- return { key: g, fn: function(b) {
966
- return [e._t(g, null, null, b)];
973
+ return t(l.BentoBaseFilter, { attrs: { "applied-filters-count": l.appliedFiltersCount, "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, disabled: e.disabled, "disable-apply-button": l.isApplyButtonDisabled, "disable-secondary-button": l.isSecondaryButtonDisabled, "default-value": e.defaultValue, label: e.label, field: e.field, "only-slot": !1, "tooltip-position": (n = e.options) == null ? void 0 : n.tooltipPosition, "tooltip-text": (o = e.options) == null ? void 0 : o.tooltipText, value: e.value }, on: { apply: l.updateFilter, clear: l.clearFilter, reset: l.resetFilter, open: l.openFilter, close: l.closeFilter } }, [t("div", { staticClass: "b-select-filter-button__search-bar" }, [t(l.BentoSearchBar, { attrs: { "debounce-time": (u = (s = e.options) == null ? void 0 : s.search) == null ? void 0 : u.debounceTime, value: l.searchTerm, "input-field-aria-label": l.t("searchFilter", { filter: e.label.toLocaleLowerCase() }) }, on: { input: function(b) {
974
+ l.searchTerm = b;
975
+ } } })], 1), t("div", { staticClass: "b-select-filter-button__divider" }, [t(l.BentoDivider)], 1), t(l.BentoListbox, { staticClass: "b-select-filter-button__wrapper", attrs: { id: l.listboxFilterId, "aria-label": e.label, "component-loading": (i = e.options) == null ? void 0 : i.loading, "empty-state": (d = e.options) == null ? void 0 : d.emptyState, "has-more-items": (h = (y = e.options) == null ? void 0 : y.lazy) == null ? void 0 : h.hasMoreItems, items: l.filteredItems, "is-option-disabled": (F = e.options) == null ? void 0 : F.isOptionDisabled, "lazy-load-type": (A = (C = e.options) == null ? void 0 : C.lazy) == null ? void 0 : A.lazyLoadType, loading: (g = (L = e.options) == null ? void 0 : L.lazy) == null ? void 0 : g.loading, multiple: (R = e.options) == null ? void 0 : R.multiple, "static-categories": (P = e.options) == null ? void 0 : P.staticCategories, "no-results-message": l.noResultsMessage, searching: !!l.searchTerm, "selected-value": l.internalFilterValue, "virtual-scroll": (B = e.options) == null ? void 0 : B.virtualScroll }, on: { select: l.onOptionSelected, "space-pressed": l.onOptionSelected, "enter-pressed": l.onOptionSelected, "show-more": function(b) {
976
+ var D, I;
977
+ (I = (D = e.options) == null ? void 0 : D.lazy) == null || I.showMoreEvent();
978
+ } }, scopedSlots: e._u([e._l(l.slots, function(b, D) {
979
+ return { key: D, fn: function(I) {
980
+ return [e._t(D, null, null, I)];
967
981
  } };
968
982
  })], null, !0) })], 1);
969
- }, fl = [], pl = /* @__PURE__ */ $(
970
- cl,
983
+ }, fl = [], bl = /* @__PURE__ */ U(
971
984
  dl,
985
+ pl,
972
986
  fl,
973
987
  !1,
974
988
  null,
975
- "ad56b38b"
989
+ "375f98b8"
976
990
  );
977
- const bl = pl.exports, vl = {
991
+ const vl = bl.exports, _l = {
978
992
  "en-US": {
979
993
  noFiltersMatchThisSearch: "No filters match this search"
980
994
  }
981
- }, _l = {
982
- i18n: { messages: vl },
995
+ }, yl = {
996
+ i18n: { messages: _l },
983
997
  name: "select-filter-dropdown"
984
- }, yl = /* @__PURE__ */ x({
985
- ..._l,
998
+ }, ml = /* @__PURE__ */ $({
999
+ ...yl,
986
1000
  props: {
987
1001
  /**
988
1002
  * Disables the filter from being interacted with.
@@ -1035,35 +1049,35 @@ const bl = pl.exports, vl = {
1035
1049
  },
1036
1050
  emits: ["input", "update"],
1037
1051
  setup(a, { emit: e }) {
1038
- const t = a, { t: l } = G(), n = ie(), { internalFilterValue: o } = K(w(t, "value"), w(t, "defaultValue")), s = w(t, "options"), c = E(t.options.listboxItems);
1052
+ const t = a, { t: l } = G(), n = ie(), { internalFilterValue: o } = K(w(t, "value"), w(t, "defaultValue")), s = w(t, "options"), u = x(t.options.listboxItems);
1039
1053
  z(s, () => {
1040
- c.value = s.value.listboxItems;
1054
+ u.value = s.value.listboxItems;
1041
1055
  });
1042
- const u = r(() => l("noFiltersMatchThisSearch"));
1043
- return { __sfc: !0, t: l, slots: n, emit: e, props: t, internalFilterValue: o, optionsRef: s, itemsRef: c, noResultsMessage: u, onOptionSelected: (F) => {
1044
- o.value = F;
1045
- const { onlySlot: h, ...m } = t;
1046
- e(v.INPUT, { ...m, value: o.value });
1047
- }, BentoDropdown: ut };
1056
+ const i = r(() => l("noFiltersMatchThisSearch"));
1057
+ return { __sfc: !0, t: l, slots: n, emit: e, props: t, internalFilterValue: o, optionsRef: s, itemsRef: u, noResultsMessage: i, onOptionSelected: (y) => {
1058
+ o.value = y;
1059
+ const { onlySlot: h, ...F } = t;
1060
+ e(v.INPUT, { ...F, value: o.value });
1061
+ }, BentoDropdown: ct };
1048
1062
  }
1049
1063
  });
1050
- var ml = function() {
1051
- var n, o, s, c, u;
1064
+ var Fl = function() {
1065
+ var n, o, s, u, i;
1052
1066
  var e = this, t = e._self._c, l = e._self._setupProxy;
1053
- return t(l.BentoDropdown, { attrs: { value: l.internalFilterValue, items: e.options.listboxItems, search: (n = e.options) == null ? void 0 : n.search, multiple: (o = e.options) == null ? void 0 : o.multiple, "static-categories": (s = e.options) == null ? void 0 : s.staticCategories, "no-results-message": l.noResultsMessage, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0, "component-loading": (c = e.options) == null ? void 0 : c.loading, "empty-state": (u = e.options) == null ? void 0 : u.emptyState, disabled: e.disabled }, on: { input: l.onOptionSelected }, scopedSlots: e._u([e._l(l.slots, function(d, F) {
1054
- return { key: F, fn: function(h) {
1055
- return [e._t(F, null, null, h)];
1067
+ return t(l.BentoDropdown, { attrs: { value: l.internalFilterValue, items: e.options.listboxItems, search: (n = e.options) == null ? void 0 : n.search, multiple: (o = e.options) == null ? void 0 : o.multiple, "static-categories": (s = e.options) == null ? void 0 : s.staticCategories, "no-results-message": l.noResultsMessage, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0, "component-loading": (u = e.options) == null ? void 0 : u.loading, "empty-state": (i = e.options) == null ? void 0 : i.emptyState, disabled: e.disabled }, on: { input: l.onOptionSelected }, scopedSlots: e._u([e._l(l.slots, function(d, y) {
1068
+ return { key: y, fn: function(h) {
1069
+ return [e._t(y, null, null, h)];
1056
1070
  } };
1057
1071
  })], null, !0) });
1058
- }, Fl = [], hl = /* @__PURE__ */ $(
1059
- yl,
1072
+ }, hl = [], Sl = /* @__PURE__ */ U(
1060
1073
  ml,
1061
1074
  Fl,
1075
+ hl,
1062
1076
  !1,
1063
1077
  null,
1064
1078
  null
1065
1079
  );
1066
- const Sl = hl.exports, ae = {
1080
+ const gl = Sl.exports, ae = {
1067
1081
  /**
1068
1082
  * Disables the filter from being interacted with.
1069
1083
  */
@@ -1096,6 +1110,8 @@ const Sl = hl.exports, ae = {
1096
1110
  * Available options:
1097
1111
  * - multiple: If "true", the user will be able to select multiple items.
1098
1112
  * - listboxItems: The option elements to populate the filter with.
1113
+ * - tooltipPosition: The position of the tooltip attached to the filter button
1114
+ * - tooltipText: The content of the tooltip attached to the filter button
1099
1115
  *
1100
1116
  * @default undefined
1101
1117
  */
@@ -1112,25 +1128,25 @@ const Sl = hl.exports, ae = {
1112
1128
  type: [String, Number, Array],
1113
1129
  default: void 0
1114
1130
  }
1115
- }, gl = {}, Bl = /* @__PURE__ */ x({
1116
- ...gl,
1131
+ }, Bl = {}, Cl = /* @__PURE__ */ $({
1132
+ ...Bl,
1117
1133
  __name: "select-filter",
1118
1134
  props: ae,
1119
1135
  emits: ["input", "update"],
1120
1136
  setup(a, { emit: e }) {
1121
1137
  const t = a, l = ie(), n = (s) => e("input", s), o = (s) => e("update", s);
1122
- return Pe(() => {
1138
+ return Ie(() => {
1123
1139
  var s;
1124
- (s = t == null ? void 0 : t.options) != null && s.messages && pe(
1140
+ (s = t == null ? void 0 : t.options) != null && s.messages && fe(
1125
1141
  'BentoFilterBar filter of type "BentoFilterItemType.SELECT" options message property',
1126
1142
  `Please remove the "options.messages" property from this filter, it is not required any more for persistent filters.
1127
1143
  This will be the default behavior in the v2 and "options.messages" will be removed.`,
1128
1144
  "2.0.0"
1129
1145
  );
1130
- }), { __sfc: !0, slots: l, emit: e, props: t, onInput: n, onUpdate: o, SelectFilterButton: bl, SelectFilterDropdown: Sl };
1146
+ }), { __sfc: !0, slots: l, emit: e, props: t, onInput: n, onUpdate: o, SelectFilterButton: vl, SelectFilterDropdown: gl };
1131
1147
  }
1132
1148
  });
1133
- var Cl = function() {
1149
+ var Dl = function() {
1134
1150
  var e = this, t = e._self._c, l = e._self._setupProxy;
1135
1151
  return e.onlySlot ? t(l.SelectFilterDropdown, { attrs: { disabled: e.disabled, "default-value": e.defaultValue, field: e.field, label: e.label, options: e.options, value: e.value }, on: { input: l.onInput, update: l.onUpdate }, scopedSlots: e._u([e._l(l.slots, function(n, o) {
1136
1152
  return { key: o, fn: function(s) {
@@ -1141,19 +1157,19 @@ var Cl = function() {
1141
1157
  return [e._t(o, null, null, s)];
1142
1158
  } };
1143
1159
  })], null, !0) });
1144
- }, Dl = [], Al = /* @__PURE__ */ $(
1145
- Bl,
1160
+ }, Al = [], Tl = /* @__PURE__ */ U(
1146
1161
  Cl,
1147
1162
  Dl,
1163
+ Al,
1148
1164
  !1,
1149
1165
  null,
1150
1166
  null
1151
1167
  );
1152
- const ee = Al.exports, Tl = x({
1168
+ const ee = Tl.exports, Pl = $({
1153
1169
  name: "bento-select-avatar-filter",
1154
1170
  components: {
1155
1171
  BentoSelectFilter: ee,
1156
- BentoAvatar: _t
1172
+ BentoAvatar: yt
1157
1173
  },
1158
1174
  props: {
1159
1175
  ...ae,
@@ -1183,15 +1199,15 @@ var Il = function() {
1183
1199
  return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (l) => e.$emit(e.BentoFilterEvent.INPUT, l) }, scopedSlots: e._u([{ key: "default", fn: function({ label: l, data: n }) {
1184
1200
  return [t("bento-avatar", { attrs: { username: l, src: n } })];
1185
1201
  } }]) }, "bento-select-filter", e.$props, !1));
1186
- }, Pl = [], El = /* @__PURE__ */ $(
1187
- Tl,
1188
- Il,
1202
+ }, El = [], xl = /* @__PURE__ */ U(
1189
1203
  Pl,
1204
+ Il,
1205
+ El,
1190
1206
  !1,
1191
1207
  null,
1192
1208
  null
1193
1209
  );
1194
- const je = El.exports, Ll = x({
1210
+ const je = xl.exports, Ll = $({
1195
1211
  name: "bento-select-country-filter",
1196
1212
  components: {
1197
1213
  BentoSelectFilter: ee,
@@ -1227,17 +1243,17 @@ var Rl = function() {
1227
1243
  return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (l) => e.$emit(e.BentoFilterEvent.INPUT, l) }, scopedSlots: e._u([{ key: "default", fn: function(l) {
1228
1244
  return [t("listbox-option-tag", { attrs: { option: l } })];
1229
1245
  } }]) }, "bento-select-filter", e.$props, !1));
1230
- }, Ul = [], Ol = /* @__PURE__ */ $(
1246
+ }, Ol = [], Ul = /* @__PURE__ */ U(
1231
1247
  Ll,
1232
1248
  Rl,
1233
- Ul,
1249
+ Ol,
1234
1250
  !1,
1235
1251
  null,
1236
1252
  null
1237
1253
  );
1238
- const qe = Ol.exports, $l = {
1254
+ const qe = Ul.exports, $l = {
1239
1255
  name: "bento-select-country-filter"
1240
- }, xl = /* @__PURE__ */ x({
1256
+ }, kl = /* @__PURE__ */ $({
1241
1257
  ...$l,
1242
1258
  props: {
1243
1259
  ...ae,
@@ -1255,39 +1271,39 @@ const qe = Ol.exports, $l = {
1255
1271
  },
1256
1272
  emits: [v.INPUT, v.UPDATE],
1257
1273
  setup(a, { emit: e }) {
1258
- const t = a, l = E(t.options.variant), n = E(t.options.listboxItems);
1274
+ const t = a, l = x(t.options.variant), n = x(t.options.listboxItems);
1259
1275
  z([() => t.options.variant, () => t.options.listboxItems], () => {
1260
1276
  l.value = t.options.variant, n.value = t.options.listboxItems;
1261
1277
  });
1262
- const o = (u) => e(v.UPDATE, u), s = vt(l, n), c = r(() => ({
1278
+ const o = (i) => e(v.UPDATE, i), s = _t(l, n), u = r(() => ({
1263
1279
  ...t != null && t.options ? t.options : {},
1264
1280
  listboxItems: s.value
1265
1281
  }));
1266
- return (!l.value || l.value === "custom") && pe(
1282
+ return (!l.value || l.value === "custom") && fe(
1267
1283
  'BentoSelectCountryFilter type with `options.variant==="custom"`',
1268
1284
  "Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
1269
1285
  "2.0.0"
1270
- ), { __sfc: !0, props: t, emit: e, variant: l, listboxItems: n, onUpdate: o, countryItems: s, countryOptions: c, BentoFilterEvent: v, BentoTypography: se, BentoSelectFilter: ee };
1286
+ ), { __sfc: !0, props: t, emit: e, variant: l, listboxItems: n, onUpdate: o, countryItems: s, countryOptions: u, BentoFilterEvent: v, BentoTypography: se, BentoSelectFilter: ee };
1271
1287
  }
1272
1288
  });
1273
- var kl = function() {
1289
+ var Vl = function() {
1274
1290
  var e = this, t = e._self._c, l = e._self._setupProxy;
1275
1291
  return t(l.BentoSelectFilter, e._b({ attrs: { field: e.field, label: e.label, options: l.countryOptions }, on: { update: l.onUpdate, input: (n) => e.$emit(l.BentoFilterEvent.INPUT, n) }, scopedSlots: e._u([{ key: "default", fn: function({ label: n }) {
1276
1292
  return [t(l.BentoTypography, { attrs: { el: "span" } }, [e._v(e._s(n))])];
1277
1293
  } }]) }, "bento-select-filter", l.props, !1));
1278
- }, Vl = [], wl = /* @__PURE__ */ $(
1279
- xl,
1294
+ }, wl = [], Nl = /* @__PURE__ */ U(
1280
1295
  kl,
1281
1296
  Vl,
1297
+ wl,
1282
1298
  !1,
1283
1299
  null,
1284
1300
  null
1285
1301
  );
1286
- const Je = wl.exports, Nl = x({
1302
+ const Je = Nl.exports, Ml = $({
1287
1303
  name: "bento-select-payment-method-filter",
1288
1304
  components: {
1289
1305
  BentoSelectFilter: ee,
1290
- BentoPaymentMethod: bt
1306
+ BentoPaymentMethod: vt
1291
1307
  },
1292
1308
  props: {
1293
1309
  ...ae,
@@ -1312,20 +1328,20 @@ const Je = wl.exports, Nl = x({
1312
1328
  };
1313
1329
  }
1314
1330
  });
1315
- var Ml = function() {
1331
+ var Hl = function() {
1316
1332
  var e = this, t = e._self._c;
1317
1333
  return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (l) => e.$emit(e.BentoFilterEvent.INPUT, l) }, scopedSlots: e._u([{ key: "default", fn: function({ value: l, label: n }) {
1318
1334
  return [t("bento-payment-method", { attrs: { type: l, label: n } })];
1319
1335
  } }]) }, "bento-select-filter", e.$props, !1));
1320
- }, Hl = [], jl = /* @__PURE__ */ $(
1321
- Nl,
1336
+ }, jl = [], ql = /* @__PURE__ */ U(
1322
1337
  Ml,
1323
1338
  Hl,
1339
+ jl,
1324
1340
  !1,
1325
1341
  null,
1326
1342
  null
1327
1343
  );
1328
- const Ye = jl.exports, ql = x({
1344
+ const Ye = ql.exports, Jl = $({
1329
1345
  name: "bento-select-country-filter",
1330
1346
  components: {
1331
1347
  BentoSelectFilter: ee,
@@ -1349,7 +1365,7 @@ const Ye = jl.exports, ql = x({
1349
1365
  const t = (o) => e(v.UPDATE, o), l = r(
1350
1366
  () => {
1351
1367
  var o, s;
1352
- return (s = (o = a == null ? void 0 : a.options) == null ? void 0 : o.listboxItems) == null ? void 0 : s.map(({ label: c, value: u, variant: d }) => ({ label: c, value: u, data: d }));
1368
+ return (s = (o = a == null ? void 0 : a.options) == null ? void 0 : o.listboxItems) == null ? void 0 : s.map(({ label: u, value: i, variant: d }) => ({ label: u, value: i, data: d }));
1353
1369
  }
1354
1370
  );
1355
1371
  return {
@@ -1365,20 +1381,20 @@ const Ye = jl.exports, ql = x({
1365
1381
  };
1366
1382
  }
1367
1383
  });
1368
- var Jl = function() {
1384
+ var Yl = function() {
1369
1385
  var e = this, t = e._self._c;
1370
1386
  return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label, options: e.countryOptions }, on: { update: e.onUpdate, input: (l) => e.$emit(e.BentoFilterEvent.INPUT, l) }, scopedSlots: e._u([{ key: "default", fn: function({ label: l, data: n }) {
1371
1387
  return [t("listbox-option-tag", { attrs: { option: { value: l, data: n, label: "" } } })];
1372
1388
  } }]) }, "bento-select-filter", e.$props, !1));
1373
- }, Yl = [], Wl = /* @__PURE__ */ $(
1374
- ql,
1389
+ }, Wl = [], zl = /* @__PURE__ */ U(
1375
1390
  Jl,
1376
1391
  Yl,
1392
+ Wl,
1377
1393
  !1,
1378
1394
  null,
1379
1395
  null
1380
1396
  );
1381
- const We = Wl.exports, zl = {
1397
+ const We = zl.exports, Gl = {
1382
1398
  "en-US": {
1383
1399
  no: "No",
1384
1400
  yes: "Yes"
@@ -1391,10 +1407,10 @@ const We = Wl.exports, zl = {
1391
1407
  no: "Não",
1392
1408
  yes: "Sim"
1393
1409
  }
1394
- }, Gl = x({
1410
+ }, Kl = $({
1395
1411
  name: "bento-boolean-filter",
1396
- i18n: { messages: zl },
1397
- components: { BentoBaseFilter: X, BentoRadioGroup: nt },
1412
+ i18n: { messages: Gl },
1413
+ components: { BentoBaseFilter: X, BentoRadioGroup: ot },
1398
1414
  props: {
1399
1415
  /**
1400
1416
  * Disables the filter from being interacted with.
@@ -1425,7 +1441,10 @@ const We = Wl.exports, zl = {
1425
1441
  /**
1426
1442
  * List of options that are needed to setup the filter
1427
1443
  * Available options:
1428
- * - listboxItems: The option elements to populate the filter with.
1444
+ * - positiveOption: The positive option label/value
1445
+ * - negativeOption: The positive option label/value
1446
+ * - tooltipPosition: The position of the tooltip attached to the filter button
1447
+ * - tooltipText: The content of the tooltip attached to the filter button
1429
1448
  */
1430
1449
  options: {
1431
1450
  type: Object,
@@ -1434,10 +1453,10 @@ const We = Wl.exports, zl = {
1434
1453
  },
1435
1454
  emits: [v.INPUT, v.UPDATE],
1436
1455
  setup(a, { emit: e }) {
1437
- const { t } = G(), l = (g) => typeof g == "boolean" ? g == null ? void 0 : g.toString() : g, n = (g) => {
1438
- var b, P, L, k;
1439
- return ((P = (b = a == null ? void 0 : a.options) == null ? void 0 : b.positiveOption) == null ? void 0 : P.value) !== void 0 && ((k = (L = a == null ? void 0 : a.options) == null ? void 0 : L.negativeOption) == null ? void 0 : k.value) !== void 0 && typeof a.options.positiveOption.value == "boolean" && typeof a.options.negativeOption.value == "boolean" && typeof g == "string" ? g === "true" : g;
1440
- }, o = r(() => l(a.defaultValue)), s = r(() => l(a.value)), c = r(() => a.options && a.options.positiveOption && a.options.negativeOption ? [
1456
+ const { t } = G(), l = (B) => typeof B == "boolean" ? B == null ? void 0 : B.toString() : B, n = (B) => {
1457
+ var b, D, I, k;
1458
+ return ((D = (b = a == null ? void 0 : a.options) == null ? void 0 : b.positiveOption) == null ? void 0 : D.value) !== void 0 && ((k = (I = a == null ? void 0 : a.options) == null ? void 0 : I.negativeOption) == null ? void 0 : k.value) !== void 0 && typeof a.options.positiveOption.value == "boolean" && typeof a.options.negativeOption.value == "boolean" && typeof B == "string" ? B === "true" : B;
1459
+ }, o = r(() => l(a.defaultValue)), s = r(() => l(a.value)), u = r(() => a.options && a.options.positiveOption && a.options.negativeOption ? [
1441
1460
  {
1442
1461
  ...a.options.positiveOption,
1443
1462
  value: l(a.options.positiveOption.value)
@@ -1449,76 +1468,77 @@ const We = Wl.exports, zl = {
1449
1468
  ] : [
1450
1469
  { value: "yes", label: t("yes") },
1451
1470
  { value: "no", label: t("no") }
1452
- ]), { internalFilterValue: u, isSecondaryButtonDisabled: d, isApplyButtonDisabled: F } = K(
1471
+ ]), { internalFilterValue: i, isSecondaryButtonDisabled: d, isApplyButtonDisabled: y } = K(
1453
1472
  s,
1454
1473
  o
1455
- ), h = r(() => a.label), m = r(
1474
+ ), h = r(() => a.label), F = r(
1456
1475
  () => {
1457
- var g;
1458
- return le((g = c.value.find(({ value: b }) => b === s.value)) == null ? void 0 : g.label, 12);
1476
+ var B;
1477
+ return le((B = u.value.find(({ value: b }) => b === s.value)) == null ? void 0 : B.label, 12);
1459
1478
  }
1460
1479
  ), C = r(() => ({
1461
1480
  "b-boolean-filter--only-slot": a.onlySlot
1462
1481
  }));
1463
1482
  ue(() => {
1464
- u.value || (u.value = null);
1483
+ i.value || (i.value = null);
1465
1484
  });
1466
- const D = (g) => {
1467
- u.value = g, e(v.INPUT, {
1485
+ const A = (B) => {
1486
+ i.value = B, e(v.INPUT, {
1468
1487
  ...a,
1469
- value: n(u.value)
1488
+ value: n(i.value)
1470
1489
  });
1471
- }, R = () => {
1472
- u.value = s.value;
1473
- }, B = () => {
1490
+ }, L = () => {
1491
+ i.value = s.value;
1492
+ }, g = () => {
1474
1493
  e(v.UPDATE, {
1475
1494
  ...a,
1476
- value: n(u.value)
1495
+ value: n(i.value)
1477
1496
  });
1478
1497
  };
1479
1498
  return {
1480
1499
  // Values
1481
- items: c,
1500
+ items: u,
1482
1501
  conditionalClasses: C,
1483
1502
  buttonLabel: h,
1484
- buttonSecondaryLabel: m,
1485
- internalFilterValue: u,
1486
- isApplyButtonDisabled: F,
1503
+ buttonSecondaryLabel: F,
1504
+ internalFilterValue: i,
1505
+ isApplyButtonDisabled: y,
1487
1506
  isSecondaryButtonDisabled: d,
1488
1507
  translatedValue: s,
1489
1508
  translatedDefaultValue: o,
1490
1509
  // Events
1491
- onInput: D,
1492
- updateFilter: B,
1510
+ onInput: A,
1511
+ updateFilter: g,
1493
1512
  clearFilter: () => {
1494
- u.value = null, B();
1513
+ i.value = null, g();
1495
1514
  },
1496
- openFilter: R,
1515
+ openFilter: L,
1497
1516
  resetFilter: () => e(v.UPDATE, { ...a, value: a.defaultValue })
1498
1517
  };
1499
1518
  }
1500
1519
  });
1501
- var Kl = function() {
1520
+ var Zl = function() {
1521
+ var l, n;
1502
1522
  var e = this, t = e._self._c;
1503
- return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { value: e.translatedValue, "default-value": e.translatedDefaultValue, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-boolean-filter", class: e.conditionalClasses, on: { keydown: function(l) {
1504
- return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1523
+ return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { value: e.translatedValue, "default-value": e.translatedDefaultValue, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-boolean-filter", class: e.conditionalClasses, on: { keydown: function(o) {
1524
+ return !o.type.indexOf("key") && e._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1505
1525
  } } }, [t("bento-radio-group", { attrs: { items: e.items, label: e.label, "model-value": e.internalFilterValue, "hide-label": "" }, on: { "update:model-value": e.onInput } })], 1)]);
1506
- }, Zl = [], Ql = /* @__PURE__ */ $(
1507
- Gl,
1526
+ }, Ql = [], Xl = /* @__PURE__ */ U(
1508
1527
  Kl,
1509
1528
  Zl,
1529
+ Ql,
1510
1530
  !1,
1511
1531
  null,
1512
- "c8af6e48"
1532
+ "3d4b2818"
1513
1533
  );
1514
- const ze = Ql.exports, Xl = {
1534
+ const ze = Xl.exports, ea = {
1515
1535
  "en-US": {
1516
1536
  from: "From",
1517
1537
  to: "To"
1518
1538
  }
1519
- }, ea = x({
1539
+ }, ta = $({
1520
1540
  name: "bento-range-filter",
1521
- i18n: { messages: Xl },
1541
+ i18n: { messages: ea },
1522
1542
  components: { BentoBaseFilter: X, BentoInputField: be },
1523
1543
  props: {
1524
1544
  /**
@@ -1546,33 +1566,40 @@ const ze = Ql.exports, Xl = {
1546
1566
  * Renders the base filter's slot content only - leaving out the button and the popover.
1547
1567
  * Used for the allFiltersModal component.
1548
1568
  */
1549
- onlySlot: { type: Boolean, default: !1 }
1569
+ onlySlot: { type: Boolean, default: !1 },
1570
+ /**
1571
+ * List of options that are needed to setup the filter
1572
+ * Available options:
1573
+ * - tooltipPosition: The position of the tooltip attached to the filter button
1574
+ * - tooltipText: The content of the tooltip attached to the filter button
1575
+ */
1576
+ options: { type: Object, default: void 0 }
1550
1577
  },
1551
1578
  emits: [v.INPUT, v.UPDATE],
1552
1579
  setup(a, { emit: e }) {
1553
- const { t } = G(), l = E(null), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = K(
1580
+ const { t } = G(), l = x(null), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = K(
1554
1581
  w(a, "value"),
1555
1582
  w(a, "defaultValue")
1556
- ), c = r(() => {
1557
- var L, k, T, N, j, J, S, _;
1558
- if (!((L = a.value) != null && L[0]) && !((k = a.value) != null && k[1]))
1583
+ ), u = r(() => {
1584
+ var I, k, T, N, j, J, S, _;
1585
+ if (!((I = a.value) != null && I[0]) && !((k = a.value) != null && k[1]))
1559
1586
  return null;
1560
- let A = "";
1561
- (T = a.value) != null && T[0] ? (N = a.value) != null && N[1] || (A = "≥") : A = "≤";
1562
- const g = (j = a.value) != null && j[0] ? `${le(a.value[0], 5)}` : "", b = (J = a.value) != null && J[0] && ((S = a.value) != null && S[1]) ? " - " : "", P = (_ = a.value) != null && _[1] ? `${le(a.value[1], 5)}` : "";
1563
- return `${A}${g}${b}${P}`;
1564
- }), u = r(() => a.label), d = r(() => c.value), F = r(() => ({
1587
+ let P = "";
1588
+ (T = a.value) != null && T[0] ? (N = a.value) != null && N[1] || (P = "≥") : P = "≤";
1589
+ const B = (j = a.value) != null && j[0] ? `${le(a.value[0], 5)}` : "", b = (J = a.value) != null && J[0] && ((S = a.value) != null && S[1]) ? " - " : "", D = (_ = a.value) != null && _[1] ? `${le(a.value[1], 5)}` : "";
1590
+ return `${P}${B}${b}${D}`;
1591
+ }), i = r(() => a.label), d = r(() => u.value), y = r(() => ({
1565
1592
  "b-range-filter--only-slot": a.onlySlot
1566
1593
  })), h = () => {
1567
1594
  n.value = a.value, Te(() => l.value.focusInput());
1568
- }, m = () => {
1595
+ }, F = () => {
1569
1596
  e(v.INPUT, { ...a, value: n.value });
1570
- }, C = (A) => {
1571
- n.value = [A, n.value[1]], m();
1572
- }, D = (A) => {
1573
- n.value = [n.value[0], A], m();
1574
- }, R = () => {
1575
- n.value.some((A) => A) || (n.value = a.defaultValue !== null ? a.defaultValue : void 0), e(v.UPDATE, {
1597
+ }, C = (P) => {
1598
+ n.value = [P, n.value[1]], F();
1599
+ }, A = (P) => {
1600
+ n.value = [n.value[0], P], F();
1601
+ }, L = () => {
1602
+ n.value.some((P) => P) || (n.value = a.defaultValue !== null ? a.defaultValue : void 0), e(v.UPDATE, {
1576
1603
  ...a,
1577
1604
  value: n.value
1578
1605
  });
@@ -1580,18 +1607,18 @@ const ze = Ql.exports, Xl = {
1580
1607
  return {
1581
1608
  // Values
1582
1609
  inputTextRef: l,
1583
- conditionalClasses: F,
1610
+ conditionalClasses: y,
1584
1611
  internalFilterValue: n,
1585
1612
  isApplyButtonDisabled: s,
1586
1613
  isSecondaryButtonDisabled: o,
1587
- buttonLabel: u,
1614
+ buttonLabel: i,
1588
1615
  buttonSecondaryLabel: d,
1589
1616
  // Events
1590
1617
  updateFrom: C,
1591
- updateTo: D,
1592
- updateFilter: R,
1618
+ updateTo: A,
1619
+ updateFilter: L,
1593
1620
  clearFilter: () => {
1594
- n.value = ["", ""], R();
1621
+ n.value = ["", ""], L();
1595
1622
  },
1596
1623
  openFilter: h,
1597
1624
  resetFilter: () => e(v.UPDATE, { ...a, value: a.defaultValue }),
@@ -1600,33 +1627,34 @@ const ze = Ql.exports, Xl = {
1600
1627
  };
1601
1628
  }
1602
1629
  });
1603
- var ta = function() {
1630
+ var la = function() {
1631
+ var l, n;
1604
1632
  var e = this, t = e._self._c;
1605
- return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-range-filter", class: e.conditionalClasses, on: { keydown: function(l) {
1606
- return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1633
+ return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-range-filter", class: e.conditionalClasses, on: { keydown: function(o) {
1634
+ return !o.type.indexOf("key") && e._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1607
1635
  } } }, [t("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")) + " ")]), t("bento-input-field", { staticClass: "b-range-filter__input-field", attrs: { value: e.internalFilterValue ? e.internalFilterValue[1] : "", type: "number", "aria-label": e.t("to") }, on: { input: e.updateTo } }, [e._v(" " + e._s(e.t("to")) + " ")])], 1)]);
1608
- }, la = [], aa = /* @__PURE__ */ $(
1609
- ea,
1636
+ }, aa = [], na = /* @__PURE__ */ U(
1610
1637
  ta,
1611
1638
  la,
1639
+ aa,
1612
1640
  !1,
1613
1641
  null,
1614
- "0d8531d1"
1642
+ "4e327bc7"
1615
1643
  );
1616
- const Ge = aa.exports, Ce = 430, De = 700;
1617
- function na(a, e) {
1618
- const t = E("div"), l = E(!1), n = E(0), o = r(() => !(n.value < Ce && e.value.small === "multi-line"));
1644
+ const Ge = na.exports, Ce = 430, De = 700;
1645
+ function oa(a, e) {
1646
+ const t = x("div"), l = x(!1), n = x(0), o = r(() => !(n.value < Ce && e.value.small === "multi-line"));
1619
1647
  function s() {
1620
1648
  l.value = !1, t.value = "div";
1621
1649
  }
1622
- function c() {
1623
- l.value = !0, t.value = $e;
1624
- }
1625
1650
  function u() {
1626
- n.value > De || n.value < De && n.value >= Ce && e.value.medium === "multi-line" ? s() : c();
1651
+ l.value = !0, t.value = Ue;
1627
1652
  }
1628
- return z(() => e.value, u), ot(a, (d) => {
1629
- n.value = d[0].contentRect.width, u();
1653
+ function i() {
1654
+ n.value > De || n.value < De && n.value >= Ce && e.value.medium === "multi-line" ? s() : u();
1655
+ }
1656
+ return z(() => e.value, i), st(a, (d) => {
1657
+ n.value = d[0].contentRect.width, i();
1630
1658
  }), {
1631
1659
  screenLayoutComponent: t,
1632
1660
  showSearchbarInsideContainer: o,
@@ -1634,9 +1662,9 @@ function na(a, e) {
1634
1662
  };
1635
1663
  }
1636
1664
  var de = /* @__PURE__ */ ((a) => (a.INPUT = "input", a))(de || {});
1637
- const oa = x({
1665
+ const sa = $({
1638
1666
  name: "base-filter-button",
1639
- components: { BaseButton: Ee, BentoTypography: se, ChevronUpIcon: ft, ChevronDownIcon: dt },
1667
+ components: { BaseButton: Ee, BentoTypography: se, ChevronUpIcon: ft, ChevronDownIcon: pt },
1640
1668
  props: {
1641
1669
  /**
1642
1670
  * The number of applies values within the filter.
@@ -1663,46 +1691,46 @@ const oa = x({
1663
1691
  },
1664
1692
  emits: [Fe.CLICK],
1665
1693
  setup(a, { slots: e, emit: t, attrs: l }) {
1666
- const n = r(() => e.default ? Ue(e)("default") : null), o = Re({ ariaLabel: n }), s = E(null), c = r(() => {
1667
- var F;
1694
+ const n = r(() => e.default ? Re(e)("default") : null), o = Le({ ariaLabel: n }), s = x(null), u = r(() => {
1695
+ var y;
1668
1696
  return {
1669
- "aria-controls": (F = l["aria-controls"]) == null ? void 0 : F.toString()
1697
+ "aria-controls": (y = l["aria-controls"]) == null ? void 0 : y.toString()
1670
1698
  };
1671
- }), u = r(() => ({
1699
+ }), i = r(() => ({
1672
1700
  "b-base-filter-button--with-chevron": a.hasChevron,
1673
1701
  "b-base-filter-button--filter-open": a.isFilterOpen
1674
1702
  }));
1675
1703
  return {
1676
1704
  // Values
1677
- ariaAttributes: c,
1705
+ ariaAttributes: u,
1678
1706
  computedAriaLabel: o,
1679
- conditionalClasses: u,
1707
+ conditionalClasses: i,
1680
1708
  // Methods
1681
1709
  onClickButton: () => {
1682
1710
  a.disabled || t(Fe.CLICK);
1683
1711
  },
1684
- hasSlot: Le(e),
1712
+ hasSlot: xe(e),
1685
1713
  // Refs
1686
1714
  baseFilterButtonRef: s
1687
1715
  };
1688
1716
  }
1689
1717
  });
1690
- var sa = function() {
1718
+ var ra = function() {
1691
1719
  var e = this, t = e._self._c;
1692
1720
  return e._self._setupProxy, t("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() {
1693
1721
  return [e.isFilterOpen ? t("chevron-up-icon", { attrs: { "aria-hidden": "true" } }) : t("chevron-down-icon", { attrs: { "aria-hidden": "true" } })];
1694
1722
  }, proxy: !0 } : null], null, !0) }, [t("div", { staticClass: "b-base-filter-button__default-container" }, [t("div", { staticClass: "b-base-filter-button__label-container" }, [t("bento-typography", { staticClass: "b-base-filter-button__label", attrs: { el: "span", variant: "body", stronger: e.bold } }, [e._t("default")], 2)], 1), e.amountAppliedValues && !e.hasChevron ? t("div", { staticClass: "b-base-filter-button__counter-wrapper" }, [t("bento-typography", { staticClass: "b-base-filter-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.amountAppliedValues) + " ")])], 1) : e._e()])]);
1695
- }, ra = [], ia = /* @__PURE__ */ $(
1696
- oa,
1723
+ }, ia = [], ua = /* @__PURE__ */ U(
1697
1724
  sa,
1698
1725
  ra,
1726
+ ia,
1699
1727
  !1,
1700
1728
  null,
1701
1729
  "66b170d4"
1702
1730
  );
1703
- const ua = ia.exports, ca = x({
1731
+ const ca = ua.exports, da = $({
1704
1732
  name: "all-filters-modal-button",
1705
- components: { BaseFilterButton: ua },
1733
+ components: { BaseFilterButton: ca },
1706
1734
  props: {
1707
1735
  /**
1708
1736
  * Button label to be displayed
@@ -1734,36 +1762,36 @@ const ua = ia.exports, ca = x({
1734
1762
  };
1735
1763
  }
1736
1764
  });
1737
- var da = function() {
1765
+ var pa = function() {
1738
1766
  var e = this, t = e._self._c;
1739
1767
  return e._self._setupProxy, t("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) + " ")]);
1740
- }, fa = [], pa = /* @__PURE__ */ $(
1741
- ca,
1768
+ }, fa = [], ba = /* @__PURE__ */ U(
1742
1769
  da,
1770
+ pa,
1743
1771
  fa,
1744
1772
  !1,
1745
1773
  null,
1746
1774
  "4c415ac7"
1747
1775
  );
1748
- const ba = pa.exports;
1776
+ const va = ba.exports;
1749
1777
  let Ae = 0;
1750
- const va = {
1778
+ const _a = {
1751
1779
  beforeCreate() {
1752
1780
  this.uuid = Ae.toString(), Ae += 1;
1753
1781
  }
1754
1782
  };
1755
- var _a = function() {
1783
+ var ya = function() {
1756
1784
  var e = this, t = e._self._c;
1757
1785
  return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M12.6465 4.58337C12.32 3.42912 11.2588 2.58337 10 2.58337C8.74122 2.58337 7.67998 3.42912 7.35352 4.58337H1.25V6.08337H7.35352C7.67998 7.23763 8.74122 8.08337 10 8.08337C11.2588 8.08337 12.32 7.23763 12.6465 6.08337H14.75V4.58337H12.6465ZM11.25 5.33337C11.25 6.02373 10.6904 6.58337 10 6.58337C9.30964 6.58337 8.75 6.02373 8.75 5.33337C8.75 4.64302 9.30964 4.08337 10 4.08337C10.6904 4.08337 11.25 4.64302 11.25 5.33337Z" } }), t("path", { attrs: { fill: "#00112C", d: "M4 7.91687C5.25878 7.91687 6.32002 8.76262 6.64648 9.91687H14.75V11.4169H6.64648C6.32002 12.5711 5.25878 13.4169 4 13.4169C2.48122 13.4169 1.25 12.1857 1.25 10.6669C1.25 9.14809 2.48122 7.91687 4 7.91687ZM5.25 10.6669C5.25 9.97651 4.69036 9.41687 4 9.41687C3.30964 9.41687 2.75 9.97651 2.75 10.6669C2.75 11.3572 3.30964 11.9169 4 11.9169C4.69036 11.9169 5.25 11.3572 5.25 10.6669Z" } })]);
1758
- }, ya = [], ma = /* @__PURE__ */ $(
1759
- va,
1786
+ }, ma = [], Fa = /* @__PURE__ */ U(
1760
1787
  _a,
1761
1788
  ya,
1789
+ ma,
1762
1790
  !1,
1763
1791
  null,
1764
1792
  null
1765
1793
  );
1766
- const Fa = ma.exports, ha = {
1794
+ const ha = Fa.exports, Sa = {
1767
1795
  "en-US": {
1768
1796
  activeFilters: "Active filters",
1769
1797
  all: "All",
@@ -1788,18 +1816,18 @@ const Fa = ma.exports, ha = {
1788
1816
  clear: "Limpar",
1789
1817
  clearAll: "Limpar tudo"
1790
1818
  }
1791
- }, Sa = x({
1792
- i18n: { messages: ha },
1819
+ }, ga = $({
1820
+ i18n: { messages: Sa },
1793
1821
  name: "all-filters-modal",
1794
1822
  components: {
1795
- AllFiltersModalButton: ba,
1823
+ AllFiltersModalButton: va,
1796
1824
  BentoBooleanFilter: ze,
1797
- BentoButton: it,
1825
+ BentoButton: ut,
1798
1826
  BentoDateFilter: Me,
1799
1827
  BentoDateRangeFilter: He,
1800
1828
  BentoInputFilter: we,
1801
1829
  BentoInputWithDropdownFilter: Ne,
1802
- BentoModal: st,
1830
+ BentoModal: rt,
1803
1831
  BentoRangeFilter: Ge,
1804
1832
  BentoSearchBar: ve,
1805
1833
  BentoSelectAvatarFilter: je,
@@ -1810,7 +1838,7 @@ const Fa = ma.exports, ha = {
1810
1838
  BentoSelectTagFilter: We,
1811
1839
  BentoTypography: se,
1812
1840
  FilterBarButton: ye,
1813
- SlidersIcon: Fa
1841
+ SlidersIcon: ha
1814
1842
  },
1815
1843
  props: {
1816
1844
  /**
@@ -1840,137 +1868,137 @@ const Fa = ma.exports, ha = {
1840
1868
  },
1841
1869
  emits: [de.INPUT],
1842
1870
  setup(a, { emit: e }) {
1843
- const t = E(a.value), l = fe("all-filters-modal"), n = E([]), o = E(!1), s = E(0), c = E(null), u = E(""), { t: d } = G(), F = xe(u, w(t, "value")), h = E({});
1871
+ const t = x(a.value), l = pe("all-filters-modal"), n = x([]), o = x(!1), s = x(0), u = x(null), i = x(""), { t: d } = G(), y = $e(i, w(t, "value")), h = x({});
1844
1872
  ue(() => {
1845
1873
  h.value = [];
1846
1874
  }), z(
1847
1875
  () => a.value,
1848
1876
  () => {
1849
- o.value ? t.value = a.value.map((f, p) => ({ ...f, value: t.value[p].value })) : t.value = a.value;
1877
+ o.value ? t.value = a.value.map((p, f) => ({ ...p, value: t.value[f].value })) : t.value = a.value;
1850
1878
  }
1851
1879
  );
1852
- const m = (f) => f.sort((p, I) => p.label > I.label ? 1 : I.label > p.label ? -1 : 0), C = r(
1853
- () => m(
1854
- F.value.filter(
1855
- (f) => {
1856
- var p, I;
1857
- return Array.isArray(f.value) ? ((p = f.value) == null ? void 0 : p.length) && ((I = f.value) == null ? void 0 : I.find((O) => O !== "")) : f.value;
1880
+ const F = (p) => p.sort((f, E) => f.label > E.label ? 1 : E.label > f.label ? -1 : 0), C = r(
1881
+ () => F(
1882
+ y.value.filter(
1883
+ (p) => {
1884
+ var f, E;
1885
+ return Array.isArray(p.value) ? ((f = p.value) == null ? void 0 : f.length) && ((E = p.value) == null ? void 0 : E.find((O) => O !== "")) : p.value;
1858
1886
  }
1859
1887
  )
1860
1888
  )
1861
- ), D = r(
1862
- () => m(
1863
- F.value.filter(
1864
- (f) => {
1865
- var p, I;
1866
- return Array.isArray(f.value) ? ((p = f.value) == null ? void 0 : p.length) === 0 || ((I = f.value) == null ? void 0 : I.every((O) => O === "")) : !f.value;
1889
+ ), A = r(
1890
+ () => F(
1891
+ y.value.filter(
1892
+ (p) => {
1893
+ var f, E;
1894
+ return Array.isArray(p.value) ? ((f = p.value) == null ? void 0 : f.length) === 0 || ((E = p.value) == null ? void 0 : E.every((O) => O === "")) : !p.value;
1867
1895
  }
1868
1896
  )
1869
1897
  )
1870
- ), R = r(() => {
1871
- var f;
1872
- return u.value && ((f = F.value) == null ? void 0 : f.length) === 0;
1873
- }), B = r(() => t.value[s.value]), U = () => {
1874
- const f = C.value.length ? C.value[0] : D.value[0], p = t.value.findIndex(
1875
- (I) => I.label === f.label && I.field === f.field
1898
+ ), L = r(() => {
1899
+ var p;
1900
+ return i.value && ((p = y.value) == null ? void 0 : p.length) === 0;
1901
+ }), g = r(() => t.value[s.value]), R = () => {
1902
+ const p = C.value.length ? C.value[0] : A.value[0], f = t.value.findIndex(
1903
+ (E) => E.label === p.label && E.field === p.field
1876
1904
  );
1877
- s.value = p;
1905
+ s.value = f;
1878
1906
  };
1879
- Pe(() => {
1880
- U();
1907
+ Ie(() => {
1908
+ R();
1881
1909
  });
1882
- const A = (f) => f.map((p) => {
1883
- var I, O, q, Z, ne, re;
1884
- switch (p.type) {
1910
+ const P = (p) => p.map((f) => {
1911
+ var E, O, q, Z, ne, re;
1912
+ switch (f.type) {
1885
1913
  case Y.SELECT:
1886
1914
  case Y.SELECT_AVATAR:
1887
1915
  case Y.SELECT_COUNTRY:
1888
1916
  case Y.SELECT_CURRENCY:
1889
1917
  case Y.SELECT_PAYMENT_METHOD:
1890
1918
  case Y.SELECT_TAG:
1891
- switch ((I = p.options) == null ? void 0 : I.multiple) {
1919
+ switch ((E = f.options) == null ? void 0 : E.multiple) {
1892
1920
  case !0:
1893
1921
  return {
1894
- label: p.label,
1895
- field: p.field,
1896
- count: (O = p.value) != null && O.length ? (q = p.value) == null ? void 0 : q.length : null
1922
+ label: f.label,
1923
+ field: f.field,
1924
+ count: (O = f.value) != null && O.length ? (q = f.value) == null ? void 0 : q.length : null
1897
1925
  };
1898
1926
  default:
1899
1927
  return {
1900
- label: p.label,
1901
- field: p.field,
1902
- count: p.value == null ? null : 1
1928
+ label: f.label,
1929
+ field: f.field,
1930
+ count: f.value == null ? null : 1
1903
1931
  };
1904
1932
  }
1905
1933
  case Y.DATE_RANGE:
1906
1934
  return {
1907
- label: p.label,
1908
- field: p.field,
1909
- count: ((Z = p.value) == null ? void 0 : Z.startDate) != null && ((ne = p.value) == null ? void 0 : ne.endDate) != null ? 1 : null
1935
+ label: f.label,
1936
+ field: f.field,
1937
+ count: ((Z = f.value) == null ? void 0 : Z.startDate) != null && ((ne = f.value) == null ? void 0 : ne.endDate) != null ? 1 : null
1910
1938
  };
1911
1939
  case Y.RANGE:
1912
1940
  return {
1913
- label: p.label,
1914
- field: p.field,
1915
- count: (re = p.value) != null && re.find((H) => H !== "") ? 1 : null
1941
+ label: f.label,
1942
+ field: f.field,
1943
+ count: (re = f.value) != null && re.find((H) => H !== "") ? 1 : null
1916
1944
  };
1917
1945
  case Y.INPUT:
1918
1946
  case Y.BOOLEAN:
1919
1947
  case Y.DATE:
1920
1948
  default:
1921
1949
  return {
1922
- label: p.label,
1923
- field: p.field,
1924
- count: p.value != null ? 1 : null
1950
+ label: f.label,
1951
+ field: f.field,
1952
+ count: f.value != null ? 1 : null
1925
1953
  };
1926
1954
  }
1927
- }), g = r(
1955
+ }), B = r(
1928
1956
  () => {
1929
- var f;
1930
- return Array.isArray(B.value.value) ? ((f = B.value) == null ? void 0 : f.value.length) && B.value.value.find((p) => p !== "") : !!t.value[s.value].value;
1957
+ var p;
1958
+ return Array.isArray(g.value.value) ? ((p = g.value) == null ? void 0 : p.value.length) && g.value.value.find((f) => f !== "") : !!t.value[s.value].value;
1931
1959
  }
1932
1960
  ), b = r(
1933
1961
  () => {
1934
- var f;
1935
- return (f = A(a.value)) == null ? void 0 : f.filter(({ count: p }) => !!p).length;
1962
+ var p;
1963
+ return (p = P(a.value)) == null ? void 0 : p.filter(({ count: f }) => !!f).length;
1936
1964
  }
1937
- ), P = () => {
1965
+ ), D = () => {
1938
1966
  o.value ? o.value = !1 : o.value = !0;
1939
- }, L = (f) => {
1940
- var I, O, q;
1941
- const p = A(t.value).find((Z) => Z.field === f.field).count;
1942
- return f.type.includes("BentoSelect") && ((I = f.options) != null && I.multiple) && p === ((q = (O = f.options) == null ? void 0 : O.listboxItems) == null ? void 0 : q.length) ? d("all") : p;
1943
- }, k = (f, p) => {
1967
+ }, I = (p) => {
1968
+ var E, O, q;
1969
+ const f = P(t.value).find((Z) => Z.field === p.field).count;
1970
+ return p.type.includes("BentoSelect") && ((E = p.options) != null && E.multiple) && f === ((q = (O = p.options) == null ? void 0 : O.listboxItems) == null ? void 0 : q.length) ? d("all") : f;
1971
+ }, k = (p, f) => {
1944
1972
  s.value = t.value.findIndex(
1945
- (I) => I.label === f && I.field === p
1973
+ (E) => E.label === p && E.field === f
1946
1974
  );
1947
1975
  }, T = () => {
1948
- u.value = "";
1976
+ i.value = "";
1949
1977
  }, N = () => {
1950
- o.value = !1, t.value = a.value, T(), U();
1951
- }, j = (f) => {
1952
- const p = t.value.map(({ value: I, ...O }, q) => q === s.value ? { value: f.value, ...O } : { value: I, ...O });
1953
- t.value = p;
1978
+ o.value = !1, t.value = a.value, T(), R();
1979
+ }, j = (p) => {
1980
+ const f = t.value.map(({ value: E, ...O }, q) => q === s.value ? { value: p.value, ...O } : { value: E, ...O });
1981
+ t.value = f;
1954
1982
  }, J = () => {
1955
1983
  j({
1956
- field: B.value.field,
1957
- label: B.value.label,
1958
- type: B.value.type,
1984
+ field: g.value.field,
1985
+ label: g.value.label,
1986
+ type: g.value.type,
1959
1987
  value: void 0
1960
1988
  });
1961
1989
  }, S = () => {
1962
- t.value = a.value.map(({ value: f, ...p }) => ({
1963
- ...p,
1990
+ t.value = a.value.map(({ value: p, ...f }) => ({
1991
+ ...f,
1964
1992
  value: void 0
1965
1993
  }));
1966
1994
  }, _ = () => {
1967
1995
  e(de.INPUT, t.value), o.value = !1;
1968
- }, y = r(
1996
+ }, m = r(
1969
1997
  () => JSON.stringify(t.value) === JSON.stringify(a.value)
1970
- ), i = r(() => [
1998
+ ), c = r(() => [
1971
1999
  {
1972
2000
  title: d("applyAll"),
1973
- disabled: y.value,
2001
+ disabled: m.value,
1974
2002
  event: _
1975
2003
  },
1976
2004
  {
@@ -1985,41 +2013,41 @@ const Fa = ma.exports, ha = {
1985
2013
  ]);
1986
2014
  return {
1987
2015
  // Enums
1988
- BentoModalEvent: rt,
2016
+ BentoModalEvent: it,
1989
2017
  // Values
1990
2018
  allFiltersModalUniqueId: l,
1991
2019
  allFiltersModalFiltersSection: n,
1992
2020
  allFiltersModalFilterButtons: h,
1993
2021
  numberOfActiveFilters: b,
1994
- isEmptyResultForSearchFilter: R,
2022
+ isEmptyResultForSearchFilter: L,
1995
2023
  isModalOpen: o,
1996
- isClearButtonEnabled: g,
2024
+ isClearButtonEnabled: B,
1997
2025
  activeFilters: C,
1998
- otherFilters: D,
1999
- modalActions: i,
2000
- selectedFilter: B,
2001
- selectedFilterRef: c,
2002
- searchTerm: u,
2026
+ otherFilters: A,
2027
+ modalActions: c,
2028
+ selectedFilter: g,
2029
+ selectedFilterRef: u,
2030
+ searchTerm: i,
2003
2031
  // Methods
2004
- onClickAllFiltersModal: P,
2005
- getFilterCount: L,
2032
+ onClickAllFiltersModal: D,
2033
+ getFilterCount: I,
2006
2034
  cancel: N,
2007
2035
  selectFilter: k,
2008
2036
  clearFilter: J,
2009
2037
  updateFilter: j,
2010
2038
  onSearchbarClear: T,
2011
2039
  onKeydownRight: () => {
2012
- ct(1, c.value.$el).focus();
2040
+ dt(1, u.value.$el).focus();
2013
2041
  },
2014
2042
  onKeydownLeft: () => {
2015
- h.value[B.value.label].$el.focus();
2043
+ h.value[g.value.label].$el.focus();
2016
2044
  },
2017
2045
  // Translations
2018
2046
  t: d
2019
2047
  };
2020
2048
  }
2021
2049
  });
2022
- var ga = function() {
2050
+ var Ba = function() {
2023
2051
  var e = this, t = e._self._c;
2024
2052
  return e._self._setupProxy, t("div", { staticClass: "b-all-filters-modal" }, [t("filter-bar-button", { attrs: { "is-filter-open": e.isModalOpen, "applied-filters-count": e.numberOfActiveFilters, "no-applied-state-styles": "" }, on: { click: e.onClickAllFiltersModal }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
2025
2053
  return [t("sliders-icon", { attrs: { "aria-hidden": "true" } })];
@@ -2044,15 +2072,15 @@ var ga = function() {
2044
2072
  return !l.type.indexOf("key") && e._k(l.keyCode, "left", 37, l.key, ["Left", "ArrowLeft"]) || "button" in l && l.button !== 0 ? null : e.onKeydownLeft.apply(null, arguments);
2045
2073
  } } }, [t("div", { staticClass: "b-all-filters-modal__selected-filter-text" }, [t("bento-typography", { attrs: { el: "div", variant: "title", medium: "" } }, [e._v(e._s(e.selectedFilter.label))]), e.selectedFilter.description ? t("bento-typography", { attrs: { el: "div", variant: "body", wide: "" } }, [e._v(" " + e._s(e.selectedFilter.description) + " ")]) : e._e()], 1), t("div", { staticClass: "b-all-filters-modal__selected-filter-component" }, [t(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), t("div", { staticClass: "b-all-filters-modal__clear-button" }, [t("bento-button", { attrs: { variant: "secondary", disabled: !e.isClearButtonEnabled }, on: { click: e.clearFilter } }, [e._v(e._s(e.t("clear")))])], 1)])];
2046
2074
  }, proxy: !0 }]) })], 1);
2047
- }, Ba = [], Ca = /* @__PURE__ */ $(
2048
- Sa,
2075
+ }, Ca = [], Da = /* @__PURE__ */ U(
2049
2076
  ga,
2050
2077
  Ba,
2078
+ Ca,
2051
2079
  !1,
2052
2080
  null,
2053
2081
  "20df0a7f"
2054
2082
  );
2055
- const Da = Ca.exports, Aa = {
2083
+ const Aa = Da.exports, Ta = {
2056
2084
  "en-US": {
2057
2085
  clearFilters: "Clear filters",
2058
2086
  filtersHaveBeenCleared: "Filters have been cleared.",
@@ -2073,8 +2101,8 @@ const Da = Ca.exports, Aa = {
2073
2101
  resetFilters: "Redefinir filtros",
2074
2102
  undo: "Desfazer"
2075
2103
  }
2076
- }, Ta = {
2077
- i18n: { messages: Aa },
2104
+ }, Pa = {
2105
+ i18n: { messages: Ta },
2078
2106
  name: "bento-filter-bar",
2079
2107
  components: {
2080
2108
  BentoBooleanFilter: ze,
@@ -2090,10 +2118,10 @@ const Da = Ca.exports, Aa = {
2090
2118
  BentoSelectPaymentMethodFilter: Ye,
2091
2119
  BentoSelectTagFilter: We,
2092
2120
  BentoTeleport: Oe,
2093
- FixedScroller: $e
2121
+ FixedScroller: Ue
2094
2122
  }
2095
- }, Ia = /* @__PURE__ */ x({
2096
- ...Ta,
2123
+ }, Ia = /* @__PURE__ */ $({
2124
+ ...Pa,
2097
2125
  props: {
2098
2126
  config: { default: () => [] },
2099
2127
  filterValues: { default: () => [] },
@@ -2114,96 +2142,96 @@ const Da = Ca.exports, Aa = {
2114
2142
  te.UPDATE
2115
2143
  ],
2116
2144
  setup(a, { expose: e, emit: t }) {
2117
- const l = a, { t: n } = G(), o = E(null), s = r(
2145
+ const l = a, { t: n } = G(), o = x(null), s = r(
2118
2146
  () => {
2119
2147
  var S, _;
2120
- return (_ = ((S = l.config) == null ? void 0 : S.length) > 0 ? l.config : l.value) == null ? void 0 : _.map((y) => {
2148
+ return (_ = ((S = l.config) == null ? void 0 : S.length) > 0 ? l.config : l.value) == null ? void 0 : _.map((m) => {
2121
2149
  var V;
2122
- let i = (V = l.filterValues.find(({ field: M }) => M === y.field)) == null ? void 0 : V.value;
2123
- return i === void 0 && (i = (y == null ? void 0 : y.value) === void 0 && (y == null ? void 0 : y.defaultValue) !== void 0 ? y == null ? void 0 : y.defaultValue : y == null ? void 0 : y.value), { ...y, value: i !== void 0 ? i : y == null ? void 0 : y.value };
2150
+ let c = (V = l.filterValues.find(({ field: M }) => M === m.field)) == null ? void 0 : V.value;
2151
+ return c === void 0 && (c = (m == null ? void 0 : m.value) === void 0 && (m == null ? void 0 : m.defaultValue) !== void 0 ? m == null ? void 0 : m.defaultValue : m == null ? void 0 : m.value), { ...m, value: c !== void 0 ? c : m == null ? void 0 : m.value };
2124
2152
  });
2125
2153
  }
2126
- ), { addToast: c } = Dt(), { screenLayoutComponent: u, showSearchbarInsideContainer: d, isOneLineLayout: F } = na(
2154
+ ), { addToast: u } = At(), { screenLayoutComponent: i, showSearchbarInsideContainer: d, isOneLineLayout: y } = oa(
2127
2155
  o,
2128
2156
  w(l, "containerSizeLayout")
2129
2157
  ), h = r(() => ({
2130
- "b-filter-bar__fixed-scroller": F.value,
2131
- "b-filter-bar__container": !F.value
2158
+ "b-filter-bar__fixed-scroller": y.value,
2159
+ "b-filter-bar__container": !y.value
2132
2160
  // Multi-line
2133
- })), m = r(() => ({
2134
- "b-filter-bar__scroller-content": F.value,
2135
- "b-filter-bar__filters": !F.value
2161
+ })), F = r(() => ({
2162
+ "b-filter-bar__scroller-content": y.value,
2163
+ "b-filter-bar__filters": !y.value
2136
2164
  // Multi-line
2137
2165
  })), C = r(() => {
2138
2166
  var S;
2139
2167
  return ((S = l.search) == null ? void 0 : S.inputFieldAriaLabel) || n("searchBar");
2140
- }), D = r(() => {
2168
+ }), A = r(() => {
2141
2169
  if (!l.search)
2142
2170
  return;
2143
- const { hint: S, inputFieldAriaLabel: _, debounceTime: y, placeholder: i } = l.search;
2144
- return { hint: S, inputFieldAriaLabel: _, debounceTime: y, placeholder: i };
2145
- }), R = r(() => s.value.some(
2171
+ const { hint: S, inputFieldAriaLabel: _, debounceTime: m, placeholder: c } = l.search;
2172
+ return { hint: S, inputFieldAriaLabel: _, debounceTime: m, placeholder: c };
2173
+ }), L = r(() => s.value.some(
2146
2174
  ({ visible: _ }) => _ != null
2147
- ) ? s.value.some(({ visible: _ }) => !_) : !1), B = r(
2175
+ ) ? s.value.some(({ visible: _ }) => !_) : !1), g = r(
2148
2176
  () => s.value.filter(({ defaultValue: S }) => S !== void 0)
2149
- ), U = r(() => s.value.some(
2177
+ ), R = r(() => s.value.some(
2150
2178
  ({ visible: _ }) => _ != null
2151
2179
  ) ? s.value.filter(
2152
- ({ defaultValue: _, visible: y, value: i }) => (
2180
+ ({ defaultValue: _, visible: m, value: c }) => (
2153
2181
  // eslint-disable-next-line eqeqeq
2154
- _ === void 0 && y || l.showAppliedHiddenFilters && i != null
2182
+ _ === void 0 && m || l.showAppliedHiddenFilters && c != null
2155
2183
  )
2156
2184
  ) : s.value.filter(
2157
- ({ defaultValue: _, value: y }) => (
2185
+ ({ defaultValue: _, value: m }) => (
2158
2186
  // eslint-disable-next-line eqeqeq
2159
- _ === void 0 || l.showAppliedHiddenFilters && y != null
2187
+ _ === void 0 || l.showAppliedHiddenFilters && m != null
2160
2188
  )
2161
- )), A = r(() => l.searchTerm != null), g = r(
2189
+ )), P = r(() => l.searchTerm != null), B = r(
2162
2190
  () => s.value.filter(({ defaultValue: S }) => S == null).some(({ value: S }) => S != null)
2163
- ), b = r(() => B.value.length === 0 && g.value), P = r(() => B.value.length === 0 ? !1 : !s.value.filter(({ defaultValue: _ }) => _ !== void 0 || _ !== null).every(({ value: _, defaultValue: y }) => JSON.stringify(_) === JSON.stringify(y)) || g.value), L = (S) => {
2191
+ ), b = r(() => g.value.length === 0 && B.value), D = r(() => g.value.length === 0 ? !1 : !s.value.filter(({ defaultValue: _ }) => _ !== void 0 || _ !== null).every(({ value: _, defaultValue: m }) => JSON.stringify(_) === JSON.stringify(m)) || B.value), I = (S) => {
2164
2192
  t(oe.INPUT, S), t(
2165
2193
  oe.UPDATE_FILTER_VALUES,
2166
- S == null ? void 0 : S.filter(({ value: _ }) => _ !== null || _ !== void 0).map(({ field: _, value: y }) => ({ field: _, value: y }))
2194
+ S == null ? void 0 : S.filter(({ value: _ }) => _ !== null || _ !== void 0).map(({ field: _, value: m }) => ({ field: _, value: m }))
2167
2195
  );
2168
2196
  }, k = (S) => {
2169
2197
  const _ = s.value.findIndex(
2170
- (i) => i.field === S.field
2171
- ), y = s.value.slice();
2172
- y[_].value = S.value, L(y);
2198
+ (c) => c.field === S.field
2199
+ ), m = s.value.slice();
2200
+ m[_].value = S.value, I(m);
2173
2201
  }, T = () => {
2174
- const S = s.value.slice(), _ = s.value.map(({ value: y, ...i }) => ({
2175
- ...i,
2202
+ const S = s.value.slice(), _ = s.value.map(({ value: m, ...c }) => ({
2203
+ ...c,
2176
2204
  value: void 0
2177
2205
  }));
2178
- c({
2206
+ u({
2179
2207
  text: n("filtersHaveBeenCleared"),
2180
2208
  action: {
2181
- handler: () => L(S),
2209
+ handler: () => I(S),
2182
2210
  text: n("undo")
2183
2211
  }
2184
- }), L(_);
2212
+ }), I(_);
2185
2213
  }, N = () => {
2186
- const S = s.value.slice(), _ = s.value.map(({ defaultValue: y, ...i }) => ({
2187
- ...i,
2188
- defaultValue: y,
2189
- value: y
2214
+ const S = s.value.slice(), _ = s.value.map(({ defaultValue: m, ...c }) => ({
2215
+ ...c,
2216
+ defaultValue: m,
2217
+ value: m
2190
2218
  }));
2191
- c({
2219
+ u({
2192
2220
  text: n("filtersHaveBeenReset"),
2193
2221
  action: {
2194
- handler: () => L(S),
2222
+ handler: () => I(S),
2195
2223
  text: n("undo")
2196
2224
  }
2197
- }), L(_);
2225
+ }), I(_);
2198
2226
  }, j = (S) => {
2199
2227
  t(te.INPUT, S), t(te.UPDATE, S);
2200
2228
  }, J = () => {
2201
2229
  t(te.CLEAR);
2202
2230
  };
2203
- return e({ isClearAllVisible: b, clearAllFilters: T, isResetAllVisible: P, resetAllFilters: N }), { __sfc: !0, props: l, emit: t, t: n, filterBarRef: o, valueAndFilterValuesPropsMerged: s, addToast: c, screenLayoutComponent: u, showSearchbarInsideContainer: d, isOneLineLayout: F, containerConditionalClasses: h, contentConditionalClasses: m, searchBarAriaLabel: C, searchBarProps: D, hasHiddenFilters: R, persistentFilters: B, regularFilters: U, isSearchBarEnabled: A, hasActiveFilters: g, isClearAllVisible: b, isResetAllVisible: P, updateAllFilters: L, updateFilterHandler: k, clearAllFilters: T, resetAllFilters: N, onSearchbarInput: j, onSearchbarClear: J, FilterBarButton: ye, BentoSearchBar: ve, AllFiltersModal: Da, RefreshIcon: Ct };
2231
+ return e({ isClearAllVisible: b, clearAllFilters: T, isResetAllVisible: D, resetAllFilters: N }), { __sfc: !0, props: l, emit: t, t: n, filterBarRef: o, valueAndFilterValuesPropsMerged: s, addToast: u, screenLayoutComponent: i, showSearchbarInsideContainer: d, isOneLineLayout: y, containerConditionalClasses: h, contentConditionalClasses: F, searchBarAriaLabel: C, searchBarProps: A, hasHiddenFilters: L, persistentFilters: g, regularFilters: R, isSearchBarEnabled: P, hasActiveFilters: B, isClearAllVisible: b, isResetAllVisible: D, updateAllFilters: I, updateFilterHandler: k, clearAllFilters: T, resetAllFilters: N, onSearchbarInput: j, onSearchbarClear: J, FilterBarButton: ye, BentoSearchBar: ve, AllFiltersModal: Aa, RefreshIcon: Dt };
2204
2232
  }
2205
2233
  });
2206
- var Pa = function() {
2234
+ var Ea = function() {
2207
2235
  var e = this, t = e._self._c, l = e._self._setupProxy;
2208
2236
  return t("div", { ref: "filterBarRef", staticClass: "b-filter-bar" }, [!l.showSearchbarInsideContainer && l.isSearchBarEnabled ? t("div", { staticClass: "b-filter-bar__search-external-container" }, [t(l.BentoSearchBar, e._b({ staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": l.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: l.onSearchbarInput, clear: l.onSearchbarClear } }, "bento-search-bar", l.searchBarProps, !1))], 1) : e._e(), t(l.screenLayoutComponent, { tag: "component", class: l.containerConditionalClasses, attrs: { condensed: "" } }, [t("div", { class: l.contentConditionalClasses }, [l.showSearchbarInsideContainer && l.isSearchBarEnabled ? t("div", [t(l.BentoSearchBar, e._b({ staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": l.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: l.onSearchbarInput, clear: l.onSearchbarClear } }, "bento-search-bar", l.searchBarProps, !1))], 1) : e._e(), l.persistentFilters.length ? e._l(l.persistentFilters, function(n) {
2209
2237
  return t(n.type, { key: n.field, tag: "component", attrs: { field: n.field, label: n.label, disabled: n == null ? void 0 : n.disabled, options: n.options, value: n.value, "default-value": n.defaultValue }, on: { update: l.updateFilterHandler } });
@@ -2214,19 +2242,19 @@ var Pa = function() {
2214
2242
  }, proxy: !0 }], null, !1, 4046500904) }, [e._v(" " + e._s(l.t("clearFilters")) + " ")]) : e._e(), l.isResetAllVisible ? t(l.FilterBarButton, { staticClass: "b-filter-bar__reset-all", on: { click: l.resetAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
2215
2243
  return [t(l.RefreshIcon, { attrs: { "aria-hidden": "true" } })];
2216
2244
  }, proxy: !0 }], null, !1, 4046500904) }, [e._v(" " + e._s(l.t("resetFilters")) + " ")]) : e._e()], 2)])], 1);
2217
- }, Ea = [], La = /* @__PURE__ */ $(
2245
+ }, xa = [], La = /* @__PURE__ */ U(
2218
2246
  Ia,
2219
- Pa,
2220
2247
  Ea,
2248
+ xa,
2221
2249
  !1,
2222
2250
  null,
2223
2251
  "7e269195"
2224
2252
  );
2225
- const Bn = La.exports;
2253
+ const Cn = La.exports;
2226
2254
  export {
2227
- Bn as B,
2255
+ Cn as B,
2228
2256
  v as a,
2229
2257
  oe as b,
2230
2258
  Y as c
2231
2259
  };
2232
- //# sourceMappingURL=filter-bar.BFAsFxQo.js.map
2260
+ //# sourceMappingURL=filter-bar.CcsUi7Xg.js.map