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