@adyen/bento-vue2 1.50.0 → 1.52.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 (345) hide show
  1. package/dist/@types/index.d.ts +513 -608
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button-actions-with-menu.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox-input.css +1 -1
  13. package/dist/assets/checkbox.css +1 -1
  14. package/dist/assets/copy.css +1 -1
  15. package/dist/assets/data-grid.css +1 -1
  16. package/dist/assets/date-picker.css +1 -1
  17. package/dist/assets/date-range-picker.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/file-uploader.css +1 -1
  21. package/dist/assets/filter-bar.css +1 -1
  22. package/dist/assets/form-layout-title.css +1 -1
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/input-field-phone-number.css +1 -1
  25. package/dist/assets/input-field.css +1 -1
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/link.css +1 -1
  28. package/dist/assets/menu.css +1 -1
  29. package/dist/assets/modal-fullscreen.css +1 -1
  30. package/dist/assets/pagination.css +1 -1
  31. package/dist/assets/payment-method.css +1 -1
  32. package/dist/assets/popover.css +1 -1
  33. package/dist/assets/search-bar.css +1 -1
  34. package/dist/assets/sidepanel.css +1 -1
  35. package/dist/assets/timeline-item.css +1 -1
  36. package/dist/assets/tutorial.css +1 -1
  37. package/dist/assets/use-cached-selected-values.css +1 -1
  38. package/dist/button.js +3 -3
  39. package/dist/card.js +1 -1
  40. package/dist/checkbox.js +3 -3
  41. package/dist/chip.js +1 -1
  42. package/dist/chunks/{accordion-item.CTxrEQEW.js → accordion-item.C4tyRMCt.js} +2 -2
  43. package/dist/chunks/{accordion-item.CTxrEQEW.js.map → accordion-item.C4tyRMCt.js.map} +1 -1
  44. package/dist/chunks/{action-bar.CGJJrMpa.js → action-bar.DuJkjAt1.js} +7 -7
  45. package/dist/chunks/{action-bar.CGJJrMpa.js.map → action-bar.DuJkjAt1.js.map} +1 -1
  46. package/dist/chunks/{alert.hiTIDSeX.js → alert.BkMKX9wD.js} +15 -14
  47. package/dist/chunks/alert.BkMKX9wD.js.map +1 -0
  48. package/dist/chunks/{base-modal.8kcvtFRx.js → base-modal.CiTysydg.js} +6 -6
  49. package/dist/chunks/{base-modal.8kcvtFRx.js.map → base-modal.CiTysydg.js.map} +1 -1
  50. package/dist/chunks/button-actions-with-menu.B9oXYIgo.js +166 -0
  51. package/dist/chunks/button-actions-with-menu.B9oXYIgo.js.map +1 -0
  52. package/dist/chunks/{button-actions.BovYBINL.js → button-actions.DAvSJtOB.js} +4 -4
  53. package/dist/chunks/{button-actions.BovYBINL.js.map → button-actions.DAvSJtOB.js.map} +1 -1
  54. package/dist/chunks/{button.CdAFZa4V.js → button.D-3uUhuG.js} +2 -2
  55. package/dist/chunks/{button.CdAFZa4V.js.map → button.D-3uUhuG.js.map} +1 -1
  56. package/dist/chunks/calendar.Bq67h02Z.js +1130 -0
  57. package/dist/chunks/calendar.Bq67h02Z.js.map +1 -0
  58. package/dist/chunks/{card.D-w9c3-n.js → card.AQO_BjGb.js} +3 -3
  59. package/dist/chunks/{card.D-w9c3-n.js.map → card.AQO_BjGb.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.wa6Mtmxa.js → checkbox-group.CqSIn-lG.js} +4 -4
  61. package/dist/chunks/{checkbox-group.wa6Mtmxa.js.map → checkbox-group.CqSIn-lG.js.map} +1 -1
  62. package/dist/chunks/checkbox-input.CMhyJDdo.js +129 -0
  63. package/dist/chunks/checkbox-input.CMhyJDdo.js.map +1 -0
  64. package/dist/chunks/checkbox.BeYtbfPv.js +170 -0
  65. package/dist/chunks/checkbox.BeYtbfPv.js.map +1 -0
  66. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
  67. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
  68. package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.C8T8ISN6.js} +4 -4
  69. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
  70. package/dist/chunks/{chevron-left.PIu6yPqe.js → chevron-left.DOMTgGel.js} +6 -6
  71. package/dist/chunks/chevron-left.DOMTgGel.js.map +1 -0
  72. package/dist/chunks/{chevron-up.DVfo78kV.js → chevron-up.CSVyoaTy.js} +6 -6
  73. package/dist/chunks/chevron-up.CSVyoaTy.js.map +1 -0
  74. package/dist/chunks/{chip.HNUA9VZl.js → chip.BeK9uqmW.js} +24 -21
  75. package/dist/chunks/chip.BeK9uqmW.js.map +1 -0
  76. package/dist/chunks/{code-snippet.3s8WCnke.js → code-snippet.CW42FdpP.js} +7 -7
  77. package/dist/chunks/{code-snippet.3s8WCnke.js.map → code-snippet.CW42FdpP.js.map} +1 -1
  78. package/dist/chunks/{controls-group.BnDPMaGI.js → controls-group.D0_cJaFF.js} +2 -2
  79. package/dist/chunks/{controls-group.BnDPMaGI.js.map → controls-group.D0_cJaFF.js.map} +1 -1
  80. package/dist/chunks/{copy.DMlIj53I.js → copy.2iD8aI5a.js} +7 -6
  81. package/dist/chunks/copy.2iD8aI5a.js.map +1 -0
  82. package/dist/chunks/{cross-circle-fill-small.Oj6lPaDy.js → cross-circle-fill-small.YhLgeipP.js} +4 -4
  83. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
  84. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
  85. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
  86. package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.CZqsjZDz.js} +4 -4
  87. package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
  88. package/dist/chunks/{cross.CsUPDmaA.js → cross.CJ5EEL2c.js} +4 -4
  89. package/dist/chunks/cross.CJ5EEL2c.js.map +1 -0
  90. package/dist/chunks/{dashboard-section.BgyN5u0K.js → dashboard-section.Cmulh6WM.js} +4 -4
  91. package/dist/chunks/{dashboard-section.BgyN5u0K.js.map → dashboard-section.Cmulh6WM.js.map} +1 -1
  92. package/dist/chunks/{dashed-underline.Cvn5IoHT.js → dashed-underline.eMF75SuT.js} +3 -3
  93. package/dist/chunks/{dashed-underline.Cvn5IoHT.js.map → dashed-underline.eMF75SuT.js.map} +1 -1
  94. package/dist/chunks/{data-grid-template.DtWM0Tnu.js → data-grid-template.CdHnPE1-.js} +3 -3
  95. package/dist/chunks/{data-grid-template.DtWM0Tnu.js.map → data-grid-template.CdHnPE1-.js.map} +1 -1
  96. package/dist/chunks/{data-grid.N5Rxo6QB.js → data-grid.DedjAz4_.js} +38 -37
  97. package/dist/chunks/data-grid.DedjAz4_.js.map +1 -0
  98. package/dist/chunks/date-picker.BdMr3Sn2.js +235 -0
  99. package/dist/chunks/date-picker.BdMr3Sn2.js.map +1 -0
  100. package/dist/chunks/date-range-picker.BHfvD0GK.js +903 -0
  101. package/dist/chunks/date-range-picker.BHfvD0GK.js.map +1 -0
  102. package/dist/chunks/{date.YLIcAerL.js → date.dYFFEunA.js} +12 -12
  103. package/dist/chunks/{date.YLIcAerL.js.map → date.dYFFEunA.js.map} +1 -1
  104. package/dist/chunks/{dialog-page.Bf07JxdG.js → dialog-page.BfF5_hmG.js} +5 -4
  105. package/dist/chunks/dialog-page.BfF5_hmG.js.map +1 -0
  106. package/dist/chunks/{dot.BCX4w7eT.js → dot.CnkXzRn3.js} +4 -4
  107. package/dist/chunks/dot.CnkXzRn3.js.map +1 -0
  108. package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js → dropdown-default-textbox.CDTdHfTv.js} +4 -4
  109. package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js.map → dropdown-default-textbox.CDTdHfTv.js.map} +1 -1
  110. package/dist/chunks/{dropdown-tag.ClUMccWv.js → dropdown-tag.CvZ1jckk.js} +4 -4
  111. package/dist/chunks/{dropdown-tag.ClUMccWv.js.map → dropdown-tag.CvZ1jckk.js.map} +1 -1
  112. package/dist/chunks/{dropdown.CC1i41NX.js → dropdown.CcHoKbLz.js} +241 -232
  113. package/dist/chunks/dropdown.CcHoKbLz.js.map +1 -0
  114. package/dist/chunks/{empty-state.BnHTBgKG.js → empty-state.JbgxSrnv.js} +2 -2
  115. package/dist/chunks/{empty-state.BnHTBgKG.js.map → empty-state.JbgxSrnv.js.map} +1 -1
  116. package/dist/chunks/{error-message.xTNEaNn8.js → error-message.B1-ekAMa.js} +3 -3
  117. package/dist/chunks/{error-message.xTNEaNn8.js.map → error-message.B1-ekAMa.js.map} +1 -1
  118. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  119. package/dist/chunks/{expand.CwwKq7Uc.js → expand.C263WARj.js} +4 -4
  120. package/dist/chunks/expand.C263WARj.js.map +1 -0
  121. package/dist/chunks/{file-uploader.DTkxh9Ct.js → file-uploader.Dlfzh5QQ.js} +17 -16
  122. package/dist/chunks/file-uploader.Dlfzh5QQ.js.map +1 -0
  123. package/dist/chunks/{filter-bar.gj9sdW5T.js → filter-bar.CwqoJGiK.js} +735 -844
  124. package/dist/chunks/filter-bar.CwqoJGiK.js.map +1 -0
  125. package/dist/chunks/{fixed-scroller.DX2YUuoU.js → fixed-scroller.BwvXYzE6.js} +3 -3
  126. package/dist/chunks/{fixed-scroller.DX2YUuoU.js.map → fixed-scroller.BwvXYzE6.js.map} +1 -1
  127. package/dist/chunks/{focus-trap._RrLaKlq.js → focus-trap.CWlKh48z.js} +2 -2
  128. package/dist/chunks/{focus-trap._RrLaKlq.js.map → focus-trap.CWlKh48z.js.map} +1 -1
  129. package/dist/chunks/{footer-actions.BsoofCrv.js → footer-actions.BkHpWa7A.js} +3 -3
  130. package/dist/chunks/{footer-actions.BsoofCrv.js.map → footer-actions.BkHpWa7A.js.map} +1 -1
  131. package/dist/chunks/{form-layout-title.CJbgfh3P.js → form-layout-title.DK1-01RH.js} +50 -47
  132. package/dist/chunks/form-layout-title.DK1-01RH.js.map +1 -0
  133. package/dist/chunks/header.BAKjEGmH.js +183 -0
  134. package/dist/chunks/header.BAKjEGmH.js.map +1 -0
  135. package/dist/chunks/{index.CU8GKq4C.js → index.-wO_BQCb.js} +2 -1
  136. package/dist/chunks/{index.CU8GKq4C.js.map → index.-wO_BQCb.js.map} +1 -1
  137. package/dist/chunks/index.BDuTpjD8.js +40 -0
  138. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  139. package/dist/chunks/index.BxBB1rsx.js +15 -0
  140. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  141. package/dist/chunks/index.DD7TppDb.js +10 -0
  142. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  143. package/dist/chunks/{info-icon-with-popover.B0zJWJZn.js → info-icon-with-popover.CxXWP4TR.js} +3 -3
  144. package/dist/chunks/{info-icon-with-popover.B0zJWJZn.js.map → info-icon-with-popover.CxXWP4TR.js.map} +1 -1
  145. package/dist/chunks/{info-icon.C4_l0WAf.js → info-icon.D3neDWqH.js} +4 -4
  146. package/dist/chunks/{info-icon.C4_l0WAf.js.map → info-icon.D3neDWqH.js.map} +1 -1
  147. package/dist/chunks/info.4d_mJHvT.js +24 -0
  148. package/dist/chunks/info.4d_mJHvT.js.map +1 -0
  149. package/dist/chunks/{input-field-password.PU9SY4FC.js → input-field-password.CO0lAgMh.js} +73 -70
  150. package/dist/chunks/input-field-password.CO0lAgMh.js.map +1 -0
  151. package/dist/chunks/{input-field-phone-number.D2juJ9ZD.js → input-field-phone-number.TXnK0dch.js} +324 -321
  152. package/dist/chunks/{input-field-phone-number.D2juJ9ZD.js.map → input-field-phone-number.TXnK0dch.js.map} +1 -1
  153. package/dist/chunks/input-field.De4sp76g.js +152 -0
  154. package/dist/chunks/input-field.De4sp76g.js.map +1 -0
  155. package/dist/chunks/{inspector.types.BtgXpTC7.js → inspector.types.ClnPOYmb.js} +6 -6
  156. package/dist/chunks/{inspector.types.BtgXpTC7.js.map → inspector.types.ClnPOYmb.js.map} +1 -1
  157. package/dist/chunks/{layout-row.CHwDU8yK.js → layout-row.dh2VyGoD.js} +2 -2
  158. package/dist/chunks/{layout-row.CHwDU8yK.js.map → layout-row.dh2VyGoD.js.map} +1 -1
  159. package/dist/chunks/{link.DZlbzVSB.js → link.BH3eB_7E.js} +4 -3
  160. package/dist/chunks/link.BH3eB_7E.js.map +1 -0
  161. package/dist/chunks/{listbox-option-tag.BJBWnC2r.js → listbox-option-tag.xGQr3Su1.js} +2 -2
  162. package/dist/chunks/{listbox-option-tag.BJBWnC2r.js.map → listbox-option-tag.xGQr3Su1.js.map} +1 -1
  163. package/dist/chunks/{menu.BC7ynpgF.js → menu.li3Kg9Uq.js} +227 -194
  164. package/dist/chunks/menu.li3Kg9Uq.js.map +1 -0
  165. package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js → modal-fullscreen.C4eL63TC.js} +6 -6
  166. package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js.map → modal-fullscreen.C4eL63TC.js.map} +1 -1
  167. package/dist/chunks/{modal.DV55hSPn.js → modal.BpDz0Dhc.js} +5 -5
  168. package/dist/chunks/{modal.DV55hSPn.js.map → modal.BpDz0Dhc.js.map} +1 -1
  169. package/dist/chunks/{pagination.CT-h2q0J.js → pagination.FuELftBG.js} +6 -5
  170. package/dist/chunks/pagination.FuELftBG.js.map +1 -0
  171. package/dist/chunks/payment-method.NZKiNOmM.js +76 -0
  172. package/dist/chunks/payment-method.NZKiNOmM.js.map +1 -0
  173. package/dist/chunks/{popover.CRdrSmFW.js → popover.Cb6utVhS.js} +29 -22
  174. package/dist/chunks/{popover.CRdrSmFW.js.map → popover.Cb6utVhS.js.map} +1 -1
  175. package/dist/chunks/{popper-container.CsW4R0-t.js → popper-container.CiEkF7eb.js} +356 -352
  176. package/dist/chunks/popper-container.CiEkF7eb.js.map +1 -0
  177. package/dist/chunks/{promo-banner.BNXfyv3h.js → promo-banner.PnHud5Wi.js} +3 -3
  178. package/dist/chunks/{promo-banner.BNXfyv3h.js.map → promo-banner.PnHud5Wi.js.map} +1 -1
  179. package/dist/chunks/{radio-group.CUgib4vp.js → radio-group._8PsjPCZ.js} +4 -4
  180. package/dist/chunks/{radio-group.CUgib4vp.js.map → radio-group._8PsjPCZ.js.map} +1 -1
  181. package/dist/chunks/{refresh.BKI9WwKh.js → refresh.Bc9FzGjJ.js} +4 -4
  182. package/dist/chunks/refresh.Bc9FzGjJ.js.map +1 -0
  183. package/dist/chunks/{search-bar.bMOGN8_E.js → search-bar.CVY2e8_B.js} +28 -46
  184. package/dist/chunks/search-bar.CVY2e8_B.js.map +1 -0
  185. package/dist/chunks/search.DLtglc02.js +24 -0
  186. package/dist/chunks/search.DLtglc02.js.map +1 -0
  187. package/dist/chunks/{secondary-nav.C9sm93do.js → secondary-nav.LxcuTR16.js} +3 -3
  188. package/dist/chunks/{secondary-nav.C9sm93do.js.map → secondary-nav.LxcuTR16.js.map} +1 -1
  189. package/dist/chunks/{segmented-control.BxCcPbKd.js → segmented-control.D69WXQGh.js} +2 -2
  190. package/dist/chunks/{segmented-control.BxCcPbKd.js.map → segmented-control.D69WXQGh.js.map} +1 -1
  191. package/dist/chunks/{selection-card-group.0O3gmtoi.js → selection-card-group.MTKkCBeK.js} +11 -11
  192. package/dist/chunks/{selection-card-group.0O3gmtoi.js.map → selection-card-group.MTKkCBeK.js.map} +1 -1
  193. package/dist/chunks/{show.IEAxtCB7.js → show.e4LEpZKG.js} +6 -6
  194. package/dist/chunks/show.e4LEpZKG.js.map +1 -0
  195. package/dist/chunks/{sidepanel.Dp6dKRnq.js → sidepanel.BStCbRqN.js} +6 -6
  196. package/dist/chunks/{sidepanel.Dp6dKRnq.js.map → sidepanel.BStCbRqN.js.map} +1 -1
  197. package/dist/chunks/{step.DrP2Frvn.js → step.CuOpi-Ye.js} +3 -3
  198. package/dist/chunks/{step.DrP2Frvn.js.map → step.CuOpi-Ye.js.map} +1 -1
  199. package/dist/chunks/{structured-list-item.DrY71Ndc.js → structured-list-item.CeosjL40.js} +6 -6
  200. package/dist/chunks/{structured-list-item.DrY71Ndc.js.map → structured-list-item.CeosjL40.js.map} +1 -1
  201. package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js → summary-grid-item-custom.CF_TS7oA.js} +4 -4
  202. package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js.map → summary-grid-item-custom.CF_TS7oA.js.map} +1 -1
  203. package/dist/chunks/{tabs.5zgaD1k3.js → tabs.UFoTqvew.js} +2 -2
  204. package/dist/chunks/{tabs.5zgaD1k3.js.map → tabs.UFoTqvew.js.map} +1 -1
  205. package/dist/chunks/{tag.CevG31iQ.js → tag.OgtZ3-ql.js} +2 -2
  206. package/dist/chunks/{tag.CevG31iQ.js.map → tag.OgtZ3-ql.js.map} +1 -1
  207. package/dist/chunks/{textarea.DHbXaxdU.js → textarea.BEISPJua.js} +4 -4
  208. package/dist/chunks/{textarea.DHbXaxdU.js.map → textarea.BEISPJua.js.map} +1 -1
  209. package/dist/chunks/{timeline-item.C4HOsaEG.js → timeline-item.BeWMuM8A.js} +15 -13
  210. package/dist/chunks/timeline-item.BeWMuM8A.js.map +1 -0
  211. package/dist/chunks/{toast.C5I7Wsfa.js → toast.DqSWycRO.js} +3 -3
  212. package/dist/chunks/{toast.C5I7Wsfa.js.map → toast.DqSWycRO.js.map} +1 -1
  213. package/dist/chunks/{toggle-button.DK4H4sHT.js → toggle-button.DgSFugBP.js} +2 -2
  214. package/dist/chunks/{toggle-button.DK4H4sHT.js.map → toggle-button.DgSFugBP.js.map} +1 -1
  215. package/dist/chunks/{toggle.CyaY0U0K.js → toggle.Q52IIKfi.js} +2 -2
  216. package/dist/chunks/{toggle.CyaY0U0K.js.map → toggle.Q52IIKfi.js.map} +1 -1
  217. package/dist/chunks/{tooltip.Bu8o7uyZ.js → tooltip.RPURZd36.js} +2 -2
  218. package/dist/chunks/{tooltip.Bu8o7uyZ.js.map → tooltip.RPURZd36.js.map} +1 -1
  219. package/dist/chunks/{tutorial.BbQox1EZ.js → tutorial.Ba8PTa0x.js} +10 -9
  220. package/dist/chunks/tutorial.Ba8PTa0x.js.map +1 -0
  221. package/dist/chunks/use-cached-selected-values.CxlYYUbd.js +1164 -0
  222. package/dist/chunks/use-cached-selected-values.CxlYYUbd.js.map +1 -0
  223. package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.Cd0kVWwa.js} +4 -4
  224. package/dist/chunks/warning-filled.Cd0kVWwa.js.map +1 -0
  225. package/dist/code-snippet.js +1 -1
  226. package/dist/dashboard-template.js +1 -1
  227. package/dist/dashed-underline.js +1 -1
  228. package/dist/data-grid-template.js +1 -1
  229. package/dist/data-grid.js +1 -1
  230. package/dist/date-picker.js +2 -2
  231. package/dist/date-range-picker.js +2 -2
  232. package/dist/date.js +1 -1
  233. package/dist/dropdown.js +4 -4
  234. package/dist/empty-state.js +1 -1
  235. package/dist/file-uploader.js +1 -1
  236. package/dist/filter-bar.js +1 -1
  237. package/dist/focus-trap.js +1 -1
  238. package/dist/form-layout.js +1 -1
  239. package/dist/header.js +1 -1
  240. package/dist/index.js +61 -61
  241. package/dist/info-icon.js +1 -1
  242. package/dist/input-field-password.js +1 -1
  243. package/dist/input-field-phone-number.js +1 -1
  244. package/dist/input-field.js +1 -1
  245. package/dist/inspector.js +1 -1
  246. package/dist/internal.js +35 -33
  247. package/dist/layout.js +1 -1
  248. package/dist/link.js +1 -1
  249. package/dist/menu.js +1 -1
  250. package/dist/modal-fullscreen.js +1 -1
  251. package/dist/modal.js +2 -2
  252. package/dist/pagination.js +1 -1
  253. package/dist/payment-method.js +1 -1
  254. package/dist/popover.js +1 -1
  255. package/dist/popper-container.js +1 -1
  256. package/dist/promo-banner.js +1 -1
  257. package/dist/radio-group.js +1 -1
  258. package/dist/search-bar.js +2 -2
  259. package/dist/secondary-nav.js +1 -1
  260. package/dist/segmented-control.js +1 -1
  261. package/dist/selection-card.js +1 -1
  262. package/dist/sidepanel.js +1 -1
  263. package/dist/stepper.js +1 -1
  264. package/dist/structured-list.js +1 -1
  265. package/dist/styles/bento-dark.css +30 -4
  266. package/dist/styles/bento-light.css +30 -4
  267. package/dist/styles/bento.css +30 -4
  268. package/dist/styles/legacy.css +32 -6
  269. package/dist/styles/styleguide.css +30 -4
  270. package/dist/styles/utility.css +2 -2
  271. package/dist/summary-grid.js +1 -1
  272. package/dist/tabs.js +1 -1
  273. package/dist/tag.js +1 -1
  274. package/dist/textarea.js +1 -1
  275. package/dist/timeline.js +1 -1
  276. package/dist/toast.js +1 -1
  277. package/dist/toggle.js +1 -1
  278. package/dist/tutorial.js +1 -1
  279. package/dist/web-types.json +512 -195
  280. package/package.json +6 -6
  281. package/dist/chunks/alert.hiTIDSeX.js.map +0 -1
  282. package/dist/chunks/button-actions-with-menu.C5OE7oOu.js +0 -112
  283. package/dist/chunks/button-actions-with-menu.C5OE7oOu.js.map +0 -1
  284. package/dist/chunks/calendar.Bb0-Svhx.js +0 -888
  285. package/dist/chunks/calendar.Bb0-Svhx.js.map +0 -1
  286. package/dist/chunks/checkbox-input.Bo4NxNOh.js +0 -127
  287. package/dist/chunks/checkbox-input.Bo4NxNOh.js.map +0 -1
  288. package/dist/chunks/checkbox.BPvnJrvd.js +0 -162
  289. package/dist/chunks/checkbox.BPvnJrvd.js.map +0 -1
  290. package/dist/chunks/checkmark-circle-fill.Cn7JN_Tk.js +0 -24
  291. package/dist/chunks/checkmark-circle-fill.Cn7JN_Tk.js.map +0 -1
  292. package/dist/chunks/checkmark-small.BtF8b2gE.js.map +0 -1
  293. package/dist/chunks/chevron-left.PIu6yPqe.js.map +0 -1
  294. package/dist/chunks/chevron-up.DVfo78kV.js.map +0 -1
  295. package/dist/chunks/chip.HNUA9VZl.js.map +0 -1
  296. package/dist/chunks/copy.DMlIj53I.js.map +0 -1
  297. package/dist/chunks/cross-circle-fill-small.Oj6lPaDy.js.map +0 -1
  298. package/dist/chunks/cross-circle-fill.CnYH4R_h.js +0 -24
  299. package/dist/chunks/cross-circle-fill.CnYH4R_h.js.map +0 -1
  300. package/dist/chunks/cross-small.BLUwtRB-.js.map +0 -1
  301. package/dist/chunks/cross.CsUPDmaA.js.map +0 -1
  302. package/dist/chunks/data-grid.N5Rxo6QB.js.map +0 -1
  303. package/dist/chunks/date-picker.Byv5Z-Xj.js +0 -213
  304. package/dist/chunks/date-picker.Byv5Z-Xj.js.map +0 -1
  305. package/dist/chunks/date-range-picker.CUS9Q53T.js +0 -884
  306. package/dist/chunks/date-range-picker.CUS9Q53T.js.map +0 -1
  307. package/dist/chunks/dialog-page.Bf07JxdG.js.map +0 -1
  308. package/dist/chunks/dot.BCX4w7eT.js.map +0 -1
  309. package/dist/chunks/dropdown.CC1i41NX.js.map +0 -1
  310. package/dist/chunks/expand.CwwKq7Uc.js.map +0 -1
  311. package/dist/chunks/file-uploader.DTkxh9Ct.js.map +0 -1
  312. package/dist/chunks/filter-bar.gj9sdW5T.js.map +0 -1
  313. package/dist/chunks/form-layout-title.CJbgfh3P.js.map +0 -1
  314. package/dist/chunks/header.5rAXro_L.js +0 -205
  315. package/dist/chunks/header.5rAXro_L.js.map +0 -1
  316. package/dist/chunks/index.CrhTVr5J.js +0 -10
  317. package/dist/chunks/index.CrhTVr5J.js.map +0 -1
  318. package/dist/chunks/index.DDnf1O9p.js +0 -22
  319. package/dist/chunks/index.DDnf1O9p.js.map +0 -1
  320. package/dist/chunks/index.DPafeRJa.js +0 -10
  321. package/dist/chunks/index.DPafeRJa.js.map +0 -1
  322. package/dist/chunks/info.CyeBsLgt.js +0 -24
  323. package/dist/chunks/info.CyeBsLgt.js.map +0 -1
  324. package/dist/chunks/input-field-password.PU9SY4FC.js.map +0 -1
  325. package/dist/chunks/input-field.BPbe00eB.js +0 -236
  326. package/dist/chunks/input-field.BPbe00eB.js.map +0 -1
  327. package/dist/chunks/link.DZlbzVSB.js.map +0 -1
  328. package/dist/chunks/menu.BC7ynpgF.js.map +0 -1
  329. package/dist/chunks/pagination.CT-h2q0J.js.map +0 -1
  330. package/dist/chunks/payment-method.Bu76jY3c.js +0 -59
  331. package/dist/chunks/payment-method.Bu76jY3c.js.map +0 -1
  332. package/dist/chunks/popper-container.CsW4R0-t.js.map +0 -1
  333. package/dist/chunks/refresh.BKI9WwKh.js.map +0 -1
  334. package/dist/chunks/search-bar.bMOGN8_E.js.map +0 -1
  335. package/dist/chunks/search.CBKhp7zB.js +0 -24
  336. package/dist/chunks/search.CBKhp7zB.js.map +0 -1
  337. package/dist/chunks/show.IEAxtCB7.js.map +0 -1
  338. package/dist/chunks/timeline-item.C4HOsaEG.js.map +0 -1
  339. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  340. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  341. package/dist/chunks/tutorial.BbQox1EZ.js.map +0 -1
  342. package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.js +0 -1305
  343. package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.js.map +0 -1
  344. package/dist/chunks/warning-filled.CLKRzGMT.js.map +0 -1
  345. /package/dist/assets/{cross.css → main.css} +0 -0
@@ -1,47 +1,48 @@
1
- import { defineComponent as x, useSlots as ue, useAttrs as We, computed as r, ref as E, watch as z, nextTick as Ae, toRef as V, onBeforeUpdate as ce, provide as De, reactive as Te, onMounted as Pe } from "vue";
2
- import { B as ye, I as Ke, b as ze } from "./popover.CRdrSmFW.js";
1
+ import { defineComponent as L, useSlots as ie, useAttrs as We, computed as r, ref as E, watch as z, nextTick as De, toRef as $, onBeforeUpdate as ue, provide as Ae, reactive as Te, onMounted as Pe } from "vue";
2
+ import { B as me, I as Ke, b as ze } from "./popover.Cb6utVhS.js";
3
3
  import { u as G } from "./i18n.BQkEbtPM.js";
4
4
  import { g as fe } from "./generate-uid.NJ8tVoha.js";
5
5
  import { B as Ge, u as Ze } from "./teleport.B5fwsT5y.js";
6
6
  import "./index.Cl4_42j5.js";
7
- import { B as re, d as pe } from "./typography.J1v_SPG3.js";
7
+ import { B as se, d as pe } from "./typography.J1v_SPG3.js";
8
8
  import { u as Ie } from "./aria-label.CaUURpnB.js";
9
- import { B as Ee, a as me } from "./base-button.-gx_u8Bd.js";
9
+ import { B as Ee, a as Fe } from "./base-button.-gx_u8Bd.js";
10
10
  import { g as Ue } from "./get-slot-text.BQS5Olxm.js";
11
11
  import { u as Re } from "./use-has-slot.C9lQZ6nz.js";
12
- import { n as R } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
- import { a as Qe } from "./tooltip.Bu8o7uyZ.js";
12
+ import { n as x } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
+ import { a as Qe } from "./tooltip.RPURZd36.js";
14
14
  import { B as Xe } from "./directive.O3yEdalv.js";
15
- import { B as et } from "./radio-group.CUgib4vp.js";
16
- import { t as ae } from "./truncate.BfIl_-71.js";
17
- import { B as be } from "./input-field.BPbe00eB.js";
18
- import { B as ie, b as le } from "./search-bar.bMOGN8_E.js";
19
- import { B as tt } from "./modal.DV55hSPn.js";
20
- import { g as lt } from "./base-modal.8kcvtFRx.js";
21
- import { B as at } from "./button.CdAFZa4V.js";
22
- import { u as xe, B as nt } from "./dropdown.CC1i41NX.js";
23
- import { g as ot } from "./focus-trap._RrLaKlq.js";
24
- import { a as st, C as rt } from "./chevron-up.DVfo78kV.js";
25
- import { B as ve } from "./divider.Cc4JFWG_.js";
26
- import { c as Fe, b as it } from "./use-cached-selected-values.a_5Iw6Dh.js";
27
- import { L as Oe } from "./listbox-option-tag.BJBWnC2r.js";
28
- import { B as ut } from "./payment-method.Bu76jY3c.js";
15
+ import { B as et } from "./radio-group._8PsjPCZ.js";
16
+ import { t as ae } from "./chip.BeK9uqmW.js";
17
+ import { B as be } from "./input-field.De4sp76g.js";
18
+ import { B as ve, b as le } from "./search-bar.CVY2e8_B.js";
19
+ import { B as tt } from "./modal.BpDz0Dhc.js";
20
+ import { g as lt } from "./base-modal.CiTysydg.js";
21
+ import { B as at } from "./button.D-3uUhuG.js";
22
+ import { u as xe, B as nt } from "./dropdown.CcHoKbLz.js";
23
+ import { g as ot } from "./focus-trap.CWlKh48z.js";
24
+ import { a as st, C as rt } from "./chevron-up.CSVyoaTy.js";
25
+ /* empty css */
26
+ import { B as _e } from "./divider.Cc4JFWG_.js";
27
+ import { c as he, b as it } from "./use-cached-selected-values.CxlYYUbd.js";
28
+ import { L as Le } from "./listbox-option-tag.xGQr3Su1.js";
29
+ import { B as ut } from "./payment-method.NZKiNOmM.js";
29
30
  import { u as ct } from "./use-country-items.HFnjuDsG.js";
30
31
  import { B as dt } from "./avatar.BgwjpLQO.js";
31
- import { D as ft, B as pt, i as he } from "./date-range-picker.CUS9Q53T.js";
32
+ import { D as ft, B as pt, i as ce, b as bt } from "./date-range-picker.BHfvD0GK.js";
32
33
  import { g as Ve } from "./get-date-locale.BN8xEjY0.js";
33
- import { a as bt, i as vt } from "./calendar.Bb0-Svhx.js";
34
- import { f as X } from "./date.YLIcAerL.js";
35
- import { B as _t } from "./button-actions.BovYBINL.js";
34
+ import { a as vt, i as _t } from "./calendar.Bq67h02Z.js";
35
+ import { f as X } from "./date.dYFFEunA.js";
36
+ import { B as yt } from "./button-actions.DAvSJtOB.js";
36
37
  import { D as Se } from "./date-input.BqBdAO1E.js";
37
- import { B as yt } from "./date-picker.Byv5Z-Xj.js";
38
- import { R as mt } from "./refresh.BKI9WwKh.js";
39
- import { u as Ft } from "./use-bento-toast-controller.Cn_2Eogn.js";
40
- import { F as ht } from "./fixed-scroller.DX2YUuoU.js";
38
+ import { B as mt } from "./date-picker.BdMr3Sn2.js";
39
+ import { R as Ft } from "./refresh.Bc9FzGjJ.js";
40
+ import { u as ht } from "./use-bento-toast-controller.Cn_2Eogn.js";
41
+ import { F as St } from "./fixed-scroller.BwvXYzE6.js";
41
42
  import "../assets/filter-bar.css";
42
- var c = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE = "update", a))(c || {}), se = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE_FILTER_VALUES = "update:filter-values", a))(se || {}), H = /* @__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))(H || {});
43
- const St = {}, Bt = /* @__PURE__ */ x({
44
- ...St,
43
+ var p = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE = "update", a))(p || {}), oe = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE_FILTER_VALUES = "update:filter-values", a))(oe || {}), J = /* @__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))(J || {});
44
+ const Bt = {}, gt = /* @__PURE__ */ L({
45
+ ...Bt,
45
46
  __name: "filter-bar-button",
46
47
  props: {
47
48
  /**
@@ -70,38 +71,38 @@ const St = {}, Bt = /* @__PURE__ */ x({
70
71
  },
71
72
  emits: ["click"],
72
73
  setup(a, { emit: e }) {
73
- const t = a, l = ue(), n = We(), o = Re(l), s = r(() => l.default ? Ue(l)("default") : null), f = Ie({ ariaLabel: s }), u = E(null), y = r(() => {
74
- var p;
74
+ const t = a, l = ie(), n = We(), o = Re(l), s = r(() => l.default ? Ue(l)("default") : null), b = Ie({ ariaLabel: s }), c = E(null), d = r(() => {
75
+ var v;
75
76
  return {
76
- "aria-controls": (p = n["aria-controls"]) == null ? void 0 : p.toString()
77
+ "aria-controls": (v = n["aria-controls"]) == null ? void 0 : v.toString()
77
78
  };
78
- }), h = r(() => ({
79
+ }), F = r(() => ({
79
80
  "b-filter-bar-button--attention": t.appliedFiltersCount || t.secondaryLabel || t.isPersistentFilter,
80
81
  "b-filter-bar-button--filter-open": t.isFilterOpen,
81
82
  "b-filter-bar-button--with-secondary-label": t.secondaryLabel,
82
83
  "b-filter-bar-button--with-counter": t.appliedFiltersCount
83
84
  }));
84
- return { __sfc: !0, props: t, emit: e, slots: l, attrs: n, hasSlot: o, labelSlot: s, computedAriaLabel: f, filterBarButtonRef: u, ariaAttributes: y, conditionalClasses: h, onClickButton: (p) => {
85
- p.preventDefault(), t.disabled || e("click", p);
86
- }, BentoTypography: re, BaseButton: Ee };
85
+ return { __sfc: !0, props: t, emit: e, slots: l, attrs: n, hasSlot: o, labelSlot: s, computedAriaLabel: b, filterBarButtonRef: c, ariaAttributes: d, conditionalClasses: F, onClickButton: (v) => {
86
+ v.preventDefault(), t.disabled || e("click", v);
87
+ }, BentoTypography: se, BaseButton: Ee };
87
88
  }
88
89
  });
89
- var gt = function() {
90
+ var Ct = function() {
90
91
  var e = this, t = e._self._c, l = e._self._setupProxy;
91
92
  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() {
92
93
  return [e.appliedFiltersCount ? t(l.BentoTypography, { staticClass: "b-filter-bar-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.appliedFiltersCount) + " ")]) : e._e()];
93
94
  }, 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 ? t(l.BentoTypography, { staticClass: "b-filter-bar-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(":")]) : e._e()], 1), e.secondaryLabel ? 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)]);
94
- }, Ct = [], At = /* @__PURE__ */ R(
95
- Bt,
95
+ }, Dt = [], At = /* @__PURE__ */ x(
96
96
  gt,
97
97
  Ct,
98
+ Dt,
98
99
  !1,
99
100
  null,
100
101
  "83ed6ba5"
101
102
  );
102
- const _e = At.exports;
103
- var j = /* @__PURE__ */ ((a) => (a.APPLY = "apply", a.CLEAR = "clear", a.OPEN = "open", a.CLOSE = "close", a.RESET = "reset", a))(j || {});
104
- const Dt = {
103
+ const ye = At.exports;
104
+ var Y = /* @__PURE__ */ ((a) => (a.APPLY = "apply", a.CLEAR = "clear", a.OPEN = "open", a.CLOSE = "close", a.RESET = "reset", a))(Y || {});
105
+ const Tt = {
105
106
  "en-US": {
106
107
  apply: "Apply",
107
108
  clear: "Clear",
@@ -118,13 +119,13 @@ const Dt = {
118
119
  clear: "Limpar",
119
120
  reset: "Reiniciar"
120
121
  }
121
- }, Tt = x({
122
- i18n: { messages: Dt },
122
+ }, Pt = L({
123
+ i18n: { messages: Tt },
123
124
  name: "bento-base-filter",
124
125
  components: {
125
- BentoPopover: ye,
126
+ BentoPopover: me,
126
127
  BentoTeleport: Ge,
127
- FilterBarButton: _e
128
+ FilterBarButton: ye
128
129
  },
129
130
  directives: { BentoClickOutsideDirective: Xe },
130
131
  props: {
@@ -181,87 +182,87 @@ const Dt = {
181
182
  /**
182
183
  * Sets the size of the container to fit its content
183
184
  */
184
- fitContent: ye.props.fitContent
185
+ fitContent: me.props.fitContent
185
186
  },
186
187
  emits: [
187
- j.APPLY,
188
- j.CLEAR,
189
- j.OPEN,
190
- j.CLOSE,
191
- j.RESET
188
+ Y.APPLY,
189
+ Y.CLEAR,
190
+ Y.OPEN,
191
+ Y.CLOSE,
192
+ Y.RESET
192
193
  ],
193
194
  setup(a, { emit: e }) {
194
- const { t } = G(), l = fe("base-filter-popover"), n = E(!1), o = E(null), s = E(null), f = r(() => a.defaultValue !== null), u = r(
195
- () => f.value ? t("filterButton", {
195
+ const { t } = G(), l = fe("base-filter-popover"), n = E(!1), o = E(null), s = E(null), b = r(() => a.defaultValue !== null), c = r(
196
+ () => b.value ? t("filterButton", {
196
197
  function: a.label
197
- }) : y.value
198
- ), y = r(() => a.buttonLabel || a.label), h = () => {
199
- n.value && (n.value = !1, Ae(() => {
200
- var T, C;
201
- (C = (T = o.value) == null ? void 0 : T.$el) == null || C.focus();
202
- }), e(j.CLOSE));
203
- }, B = () => {
204
- h(), f.value ? e(j.RESET) : e(j.CLEAR);
205
- }, p = () => h(), g = () => {
206
- n.value ? h() : (n.value = !0, e(j.OPEN));
207
- }, P = () => {
208
- h(), e(j.APPLY);
209
- }, A = r(() => [
198
+ }) : d.value
199
+ ), d = r(() => a.buttonLabel || a.label), F = () => {
200
+ n.value && (n.value = !1, De(() => {
201
+ var B, C;
202
+ (C = (B = o.value) == null ? void 0 : B.$el) == null || C.focus();
203
+ }), e(Y.CLOSE));
204
+ }, g = () => {
205
+ F(), b.value ? e(Y.RESET) : e(Y.CLEAR);
206
+ }, v = () => F(), S = () => {
207
+ n.value ? F() : (n.value = !0, e(Y.OPEN));
208
+ }, T = () => {
209
+ F(), e(Y.APPLY);
210
+ }, I = r(() => [
210
211
  {
211
212
  title: t("apply"),
212
- event: P,
213
+ event: T,
213
214
  disabled: a.disableApplyButton
214
215
  },
215
216
  {
216
- title: f.value ? t("reset") : t("clear"),
217
- event: B,
217
+ title: b.value ? t("reset") : t("clear"),
218
+ event: g,
218
219
  disabled: a.disableSecondaryButton
219
220
  }
220
221
  ]);
221
222
  return z(
222
223
  () => n.value,
223
- (T, C) => {
224
- var S, d;
225
- !T && C && (d = (S = o.value) == null ? void 0 : S.filterBarButtonRef) != null && d.bentoBaseButtonRef && o.value.filterBarButtonRef.bentoBaseButtonRef.focus();
224
+ (B, C) => {
225
+ var D, u;
226
+ !B && C && (u = (D = o.value) == null ? void 0 : D.filterBarButtonRef) != null && u.bentoBaseButtonRef && o.value.filterBarButtonRef.bentoBaseButtonRef.focus();
226
227
  }
227
- ), Ze(s, p, { ignore: [o] }), {
228
+ ), Ze(s, v, { ignore: [o] }), {
228
229
  // Values
229
- actions: A,
230
+ actions: I,
230
231
  popoverId: l,
231
232
  isFilterOpen: n,
232
- isPersistentFilter: f,
233
- computedAriaLabel: u,
234
- computedButtonText: y,
233
+ isPersistentFilter: b,
234
+ computedAriaLabel: c,
235
+ computedButtonText: d,
235
236
  // Enums
236
237
  BentoTooltipPosition: Qe,
237
238
  // Events
238
- onClickFilter: g,
239
- onClickApply: P,
240
- onClickSecondaryAction: B,
241
- onClickOutside: p,
242
- closePopover: h,
239
+ onClickFilter: S,
240
+ onClickApply: T,
241
+ onClickSecondaryAction: g,
242
+ onClickOutside: v,
243
+ closePopover: F,
243
244
  // Refs
244
245
  filterButtonRef: o,
245
246
  popoverRef: s
246
247
  };
247
248
  }
248
249
  });
249
- var Pt = function() {
250
+ var It = function() {
250
251
  var e = this, t = e._self._c;
251
252
  return e._self._setupProxy, e.onlySlot ? t("div", [e._t("default")], 2) : t("div", { staticClass: "b-base-filter" }, [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) {
252
253
  return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
253
254
  } } }, [e._v(" " + e._s(e.computedButtonText) + " ")]), 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) {
254
255
  return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
255
256
  } } }, [e._t("default")], 2)]) : e._e()], 1) : e._e()], 1);
256
- }, It = [], Et = /* @__PURE__ */ R(
257
- Tt,
257
+ }, Et = [], Ut = /* @__PURE__ */ x(
258
258
  Pt,
259
259
  It,
260
+ Et,
260
261
  !1,
261
262
  null,
262
263
  "16bfaad0"
263
264
  );
264
- const ee = Et.exports, Ut = (a) => a instanceof Array, Be = (a) => Ut(a) ? a.length === 0 || a.every((e) => e === "") : !a, ge = (a, e) => JSON.stringify(a) === JSON.stringify(e), Z = (a, e) => {
265
+ const ee = Ut.exports, Rt = (a) => a instanceof Array, Be = (a) => Rt(a) ? a.length === 0 || a.every((e) => e === "") : !a, ge = (a, e) => JSON.stringify(a) === JSON.stringify(e), Z = (a, e) => {
265
266
  const t = E(a.value);
266
267
  z(
267
268
  () => a.value,
@@ -277,105 +278,76 @@ const ee = Et.exports, Ut = (a) => a instanceof Array, Be = (a) => Ut(a) ? a.len
277
278
  isSecondaryButtonDisabled: n,
278
279
  isApplyButtonDisabled: o
279
280
  };
280
- }, Rt = x({
281
- name: "bento-input-filter",
282
- components: {
283
- BentoBaseFilter: ee,
284
- BentoInputField: be
285
- },
281
+ }, xt = {
282
+ name: "bento-input-filter"
283
+ }, Lt = /* @__PURE__ */ L({
284
+ ...xt,
286
285
  props: {
287
- /**
288
- * Disables the filter from being interacted with.
289
- */
286
+ defaultValue: { default: null },
290
287
  disabled: { type: Boolean, default: !1 },
291
- /**
292
- * Default value of the filter to reset to.
293
- */
294
- defaultValue: { type: String, default: null },
295
- /**
296
- * Filter name/key referencing the actual property name in the data set.
297
- * Should be unique per filter bar.
298
- */
299
- field: { type: String, required: !0 },
300
- /**
301
- * Label text to be displayed
302
- */
303
- label: { type: String, required: !0 },
304
- /**
305
- * Current value of the filter.
306
- * If the options.variant is equal to 'dropdown', the value should be of type `{ inputValue: string | null; dropdownValue?: string }`.
307
- */
308
- value: { type: [String, Object], default: null },
309
- /**
310
- * Renders the base filter's slot content only - leaving out the button and the popover.
311
- * Used for the allFiltersModal component.
312
- */
288
+ field: null,
289
+ label: null,
313
290
  onlySlot: { type: Boolean, default: !1 },
314
- /**
315
- * List of options that are needed to setup the filter
316
- * Available options:
317
- * - dropdown: all the dropdown properties that can be set in the inner dropdown of the input field. @see BentoDropdown for more info.
318
- * - dropdownPosition: allow the user to set the dropdown on the left or right side. Accepts the `start` or `end` values.
319
- */
320
- options: {
321
- type: Object,
322
- default: void 0
323
- }
291
+ options: { default: void 0 },
292
+ value: { default: null }
324
293
  },
325
- emits: [c.INPUT, c.UPDATE],
294
+ emits: ["input", "update"],
326
295
  setup(a, { emit: e }) {
327
- var v, m;
328
- const t = E(null), l = E((m = (v = a == null ? void 0 : a.options) == null ? void 0 : v.dropdown) == null ? void 0 : m.value), n = r(
296
+ var _, y;
297
+ const t = a, l = E(null), n = E((y = (_ = t == null ? void 0 : t.options) == null ? void 0 : _.dropdown) == null ? void 0 : y.value), o = r(
329
298
  () => {
330
- var i, I;
331
- return ((i = a == null ? void 0 : a.options) == null ? void 0 : i.variant) === "dropdown" && ((I = a == null ? void 0 : a.options) == null ? void 0 : I.dropdown) !== void 0;
299
+ var i, P;
300
+ return ((i = t == null ? void 0 : t.options) == null ? void 0 : i.variant) === "dropdown" && ((P = t == null ? void 0 : t.options) == null ? void 0 : P.dropdown) !== void 0;
332
301
  }
333
- ), o = r(
302
+ ), s = r(
334
303
  () => {
335
304
  var i;
336
- return n.value ? { ...(i = a == null ? void 0 : a.options) == null ? void 0 : i.dropdown, value: l.value } : void 0;
305
+ return o.value ? { ...(i = t == null ? void 0 : t.options) == null ? void 0 : i.dropdown, value: n.value } : void 0;
337
306
  }
338
- ), s = r(() => {
307
+ ), b = r(() => {
339
308
  var i;
340
- return ((i = a == null ? void 0 : a.options) == null ? void 0 : i.variant) === "dropdown" ? "dropdown" : "default";
341
- }), f = r(
309
+ return ((i = t == null ? void 0 : t.options) == null ? void 0 : i.variant) === "dropdown" ? "dropdown" : "default";
310
+ }), c = r(
342
311
  () => {
343
312
  var i;
344
- return n.value ? (i = a.value) == null ? void 0 : i.inputValue : a == null ? void 0 : a.value;
313
+ return o.value ? (i = t.value) == null ? void 0 : i.inputValue : t == null ? void 0 : t.value;
345
314
  }
346
- ), { internalFilterValue: u, isSecondaryButtonDisabled: y, isApplyButtonDisabled: h } = Z(
347
- f,
348
- V(a, "defaultValue")
349
- ), B = r(() => a.label), p = r(() => ae(f.value, 12)), g = r(() => ({
350
- "b-input-filter--only-slot": a.onlySlot
315
+ ), { internalFilterValue: d, isSecondaryButtonDisabled: F, isApplyButtonDisabled: g } = Z(
316
+ c,
317
+ $(t, "defaultValue")
318
+ ), v = r(() => t.label), S = r(() => ae(c.value, 12)), T = r(() => ({
319
+ "b-input-filter--only-slot": t.onlySlot
351
320
  }));
352
- ce(() => {
353
- u.value === "" && (u.value = null);
354
- }), z(t, () => {
321
+ ue(() => {
322
+ d.value === "" && (d.value = null);
323
+ }), z(l, () => {
355
324
  var i;
356
- (i = t.value) == null || i.focusInput();
325
+ (i = l.value) == null || i.focusInput();
357
326
  });
358
- const P = () => {
359
- u.value = f.value;
360
- }, A = () => {
361
- !u.value && a.defaultValue !== null && (u.value = a.defaultValue), e(c.UPDATE, {
362
- ...a,
363
- value: n.value ? { inputValue: u.value, dropdownValue: l.value } : u.value
327
+ const I = () => {
328
+ d.value = c.value;
329
+ }, B = () => {
330
+ !d.value && t.defaultValue !== null && (d.value = t.defaultValue), e("update", {
331
+ ...t,
332
+ value: o.value ? {
333
+ inputValue: d.value,
334
+ dropdownValue: n.value
335
+ } : d.value
364
336
  });
365
- }, T = () => e(c.UPDATE, { ...a, value: a.defaultValue }), C = () => {
366
- u.value = null, A();
367
- }, S = () => {
368
- e(c.INPUT, { ...a, value: u.value });
369
- }, d = (i) => {
370
- u.value = i;
337
+ }, C = () => e("update", { ...t, value: t.defaultValue }), D = () => {
338
+ d.value = null, B();
339
+ }, u = () => {
340
+ e("input", { ...t, value: d.value });
371
341
  }, U = (i) => {
372
- l.value = i;
342
+ d.value = i;
343
+ }, R = (i) => {
344
+ n.value = i;
373
345
  };
374
- return De(Ke, n.value), z(
375
- () => a.options,
346
+ return Ae(Ke, o.value), z(
347
+ () => t.options,
376
348
  () => {
377
- var i, I, w;
378
- ((i = a.options) != null && i.dropdown || (I = a.options) != null && I.dropdownPosition || (w = a.options) != null && w.variant) && pe(
349
+ var i, P, M;
350
+ ((i = t.options) != null && i.dropdown || (P = t.options) != null && P.dropdownPosition || (M = t.options) != null && M.variant) && pe(
379
351
  'BentoInputFilter "options" property',
380
352
  `BentoInputFilter "options" no longer supports "dropdown", "dropdownPosition" or "variant" attributes.
381
353
  Use the "BentoFilterItemType.INPUT_DROPDOWN" instead of "BentoFilterItemType.INPUT"
@@ -391,48 +363,27 @@ const ee = Et.exports, Ut = (a) => a instanceof Array, Be = (a) => Ut(a) ? a.len
391
363
  );
392
364
  },
393
365
  { immediate: !0 }
394
- ), {
395
- // Values
396
- buttonLabel: B,
397
- buttonSecondaryLabel: p,
398
- conditionalClasses: g,
399
- dropdownProp: o,
400
- inputVariant: s,
401
- internalFilterValue: u,
402
- isApplyButtonDisabled: h,
403
- isDropdownVariant: n,
404
- isSecondaryButtonDisabled: y,
405
- // Refs
406
- inputTextRef: t,
407
- // Events
408
- updateFilter: A,
409
- clearFilter: C,
410
- openFilter: P,
411
- resetFilter: T,
412
- onDropdownInput: U,
413
- onInput: S,
414
- setInternalFilterValue: d
415
- };
366
+ ), { __sfc: !0, props: t, emit: e, inputTextRef: l, dropdownValue: n, isDropdownVariant: o, dropdownProp: s, inputVariant: b, valueProp: c, internalFilterValue: d, isSecondaryButtonDisabled: F, isApplyButtonDisabled: g, buttonLabel: v, buttonSecondaryLabel: S, conditionalClasses: T, openFilter: I, updateFilter: B, resetFilter: C, clearFilter: D, onInput: u, setInternalFilterValue: U, onDropdownInput: R, BentoBaseFilter: ee, BentoInputField: be };
416
367
  }
417
368
  });
418
- var xt = function() {
419
- var l;
420
- var e = this, t = e._self._c;
421
- return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "popover-overflow-visible": e.isDropdownVariant }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-filter", class: e.conditionalClasses, on: { keydown: function(n) {
422
- return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
423
- }, input: e.onInput } }, [t("bento-input-field", { ref: "inputTextRef", attrs: { dropdown: e.dropdownProp, "dropdown-position": (l = e.options) == null ? void 0 : l.dropdownPosition, variant: e.inputVariant, value: e.internalFilterValue }, on: { input: e.setInternalFilterValue, "dropdown-input": e.onDropdownInput } })], 1)]);
424
- }, Ot = [], Vt = /* @__PURE__ */ R(
425
- Rt,
426
- xt,
427
- Ot,
369
+ var Vt = function() {
370
+ var n, o;
371
+ var e = this, t = e._self._c, l = e._self._setupProxy;
372
+ 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) {
373
+ return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
374
+ }, 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)]);
375
+ }, $t = [], kt = /* @__PURE__ */ x(
376
+ Lt,
377
+ Vt,
378
+ $t,
428
379
  !1,
429
380
  null,
430
- "50081efc"
381
+ "84f6bd65"
431
382
  );
432
- const $e = Vt.exports, $t = {
383
+ const $e = kt.exports, Ot = {
433
384
  name: "bento-input-with-dropdown-filter"
434
- }, kt = /* @__PURE__ */ x({
435
- ...$t,
385
+ }, wt = /* @__PURE__ */ L({
386
+ ...Ot,
436
387
  props: {
437
388
  disabled: { type: Boolean },
438
389
  defaultValue: { default: void 0 },
@@ -442,71 +393,71 @@ const $e = Vt.exports, $t = {
442
393
  options: { default: void 0 },
443
394
  value: { default: void 0 }
444
395
  },
445
- emits: [c.INPUT, c.UPDATE],
396
+ emits: [p.INPUT, p.UPDATE],
446
397
  setup(a, { emit: e }) {
447
- const t = a, l = E(null), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = Z(V(t, "value"), V(t, "defaultValue")), f = r(() => t.label), u = r(() => {
448
- var d;
449
- return ae((d = t.value) == null ? void 0 : d.inputValue, 12);
450
- }), y = r(() => {
451
- var d, U;
398
+ const t = a, l = E(null), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = Z($(t, "value"), $(t, "defaultValue")), b = r(() => t.label), c = r(() => {
399
+ var u;
400
+ return ae((u = t.value) == null ? void 0 : u.inputValue, 12);
401
+ }), d = r(() => {
402
+ var u, U;
452
403
  return {
453
- ...((d = t.options) == null ? void 0 : d.dropdown) || {},
404
+ ...((u = t.options) == null ? void 0 : u.dropdown) || {},
454
405
  value: (U = n.value) == null ? void 0 : U.dropdownValue
455
406
  };
456
- }), h = r(() => ({
407
+ }), F = r(() => ({
457
408
  "b-input-with-dropdown-filter--only-slot": t.onlySlot
458
- })), B = r(() => {
459
- var U, v;
460
- return !(!!((U = n.value) != null && U.inputValue) && !!((v = n.value) != null && v.dropdownValue)) || s.value;
409
+ })), g = r(() => {
410
+ var U, R;
411
+ return !(!!((U = n.value) != null && U.inputValue) && !!((R = n.value) != null && R.dropdownValue)) || s.value;
461
412
  });
462
- ce(() => {
463
- var d;
464
- ((d = n.value) == null ? void 0 : d.inputValue) === "" && (n.value = { ...n.value, inputValue: void 0 });
413
+ ue(() => {
414
+ var u;
415
+ ((u = n.value) == null ? void 0 : u.inputValue) === "" && (n.value = { ...n.value, inputValue: void 0 });
465
416
  }), z(l, () => {
466
- var d;
467
- (d = l.value) == null || d.focusInput();
417
+ var u;
418
+ (u = l.value) == null || u.focusInput();
468
419
  });
469
- const p = () => {
420
+ const v = () => {
470
421
  n.value = t.value;
471
- }, g = () => {
472
- var d;
473
- !((d = n.value) != null && d.inputValue) && t.defaultValue !== null && (n.value = { ...t.defaultValue }), e(c.UPDATE, {
422
+ }, S = () => {
423
+ var u;
424
+ !((u = n.value) != null && u.inputValue) && t.defaultValue !== null && (n.value = { ...t.defaultValue }), e(p.UPDATE, {
474
425
  ...t,
475
426
  value: n.value
476
427
  });
477
- }, P = () => e(c.UPDATE, { ...t, value: t.defaultValue }), A = () => {
478
- n.value = null, g();
479
- }, T = () => {
480
- e(c.INPUT, { ...t, value: n.value });
481
- }, C = (d) => {
482
- n.value = { ...n.value, inputValue: d };
483
- }, S = (d) => {
484
- n.value = { ...n.value, dropdownValue: d };
428
+ }, T = () => e(p.UPDATE, { ...t, value: t.defaultValue }), I = () => {
429
+ n.value = null, S();
430
+ }, B = () => {
431
+ e(p.INPUT, { ...t, value: n.value });
432
+ }, C = (u) => {
433
+ n.value = { ...n.value, inputValue: u };
434
+ }, D = (u) => {
435
+ n.value = { ...n.value, dropdownValue: u };
485
436
  };
486
- return De(ze, !0), { __sfc: !0, props: t, emit: e, inputTextRef: l, internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s, buttonLabel: f, buttonSecondaryLabel: u, dropdownOptions: y, conditionalClasses: h, shouldDisableApply: B, openFilter: p, updateFilter: g, resetFilter: P, clearFilter: A, onInput: T, setInternalFilterValue: C, onDropdownInput: S, BentoBaseFilter: ee, BentoInputField: be };
437
+ return Ae(ze, !0), { __sfc: !0, props: t, emit: e, inputTextRef: l, internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s, buttonLabel: b, buttonSecondaryLabel: c, dropdownOptions: d, conditionalClasses: F, shouldDisableApply: g, openFilter: v, updateFilter: S, resetFilter: T, clearFilter: I, onInput: B, setInternalFilterValue: C, onDropdownInput: D, BentoBaseFilter: ee, BentoInputField: be };
487
438
  }
488
439
  });
489
- var Lt = function() {
440
+ var Nt = function() {
490
441
  var n, o;
491
442
  var e = this, t = e._self._c, l = e._self._setupProxy;
492
443
  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) {
493
444
  return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
494
445
  }, 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)]);
495
- }, wt = [], Nt = /* @__PURE__ */ R(
496
- kt,
497
- Lt,
446
+ }, Mt = [], Ht = /* @__PURE__ */ x(
498
447
  wt,
448
+ Nt,
449
+ Mt,
499
450
  !1,
500
451
  null,
501
452
  "0406187f"
502
453
  );
503
- const Mt = Nt.exports, Ht = x({
454
+ const jt = Ht.exports, qt = L({
504
455
  name: "bento-date-filter",
505
456
  components: {
506
457
  BentoBaseFilter: ee,
507
- BentoDatePicker: yt,
508
- BentoDivider: ve,
509
- Calendar: bt
458
+ BentoDatePicker: mt,
459
+ BentoDivider: _e,
460
+ Calendar: vt
510
461
  },
511
462
  props: {
512
463
  /**
@@ -547,58 +498,58 @@ const Mt = Nt.exports, Ht = x({
547
498
  */
548
499
  value: { type: Date, default: void 0 }
549
500
  },
550
- emits: [c.INPUT, c.UPDATE],
501
+ emits: [p.INPUT, p.UPDATE],
551
502
  setup(a, { emit: e }) {
552
503
  const { locale: t } = G(void 0, !0), l = Ve(), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = Z(
553
- V(a, "value"),
554
- V(a, "defaultValue")
555
- ), f = r(
504
+ $(a, "value"),
505
+ $(a, "defaultValue")
506
+ ), b = r(
556
507
  () => a.value ? X(a.value, "dd MMM, yyyy", {
557
508
  locale: l[t.value.substring(0, 2)] || l.enUS
558
509
  }) : null
559
- ), u = r(() => a.label), y = r(() => f.value), h = () => {
560
- e(c.UPDATE, { ...a, value: n.value });
561
- }, B = () => {
562
- n.value = null, h();
563
- }, p = () => {
564
- n.value = a.defaultValue, h();
510
+ ), c = r(() => a.label), d = r(() => b.value), F = () => {
511
+ e(p.UPDATE, { ...a, value: n.value });
565
512
  }, g = () => {
513
+ n.value = null, F();
514
+ }, v = () => {
515
+ n.value = a.defaultValue, F();
516
+ }, S = () => {
566
517
  n.value = a.value;
567
- }, P = (T) => {
568
- n.value = T, e(c.INPUT, { ...a, value: n.value });
518
+ }, T = (B) => {
519
+ n.value = B, e(p.INPUT, { ...a, value: n.value });
569
520
  };
570
521
  return {
571
522
  // Values
572
523
  internalFilterValue: n,
573
524
  isApplyButtonDisabled: s,
574
525
  isSecondaryButtonDisabled: o,
575
- buttonLabel: u,
576
- buttonSecondaryLabel: y,
526
+ buttonLabel: c,
527
+ buttonSecondaryLabel: d,
577
528
  // Events
578
- clearFilter: B,
579
- onDateSelected: P,
580
- openFilter: g,
581
- updateFilter: h,
582
- resetFilter: p,
583
- onDateInputSelected: (T) => {
584
- n.value = T, P(T), h();
529
+ clearFilter: g,
530
+ onDateSelected: T,
531
+ openFilter: S,
532
+ updateFilter: F,
533
+ resetFilter: v,
534
+ onDateInputSelected: (B) => {
535
+ n.value = B, T(B), F();
585
536
  }
586
537
  };
587
538
  }
588
539
  });
589
- var jt = function() {
540
+ var Jt = function() {
590
541
  var l, n, o, s;
591
542
  var e = this, t = e._self._c;
592
543
  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 }, 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": (o = e.options) == null ? void 0 : o.firstDayOfWeek, "is-date-disabled": (s = e.options) == null ? void 0 : s.isDateDisabled, "number-of-months": 1, value: e.internalFilterValue }, on: { input: e.onDateSelected } })], 1)]], 2);
593
- }, qt = [], Jt = /* @__PURE__ */ R(
594
- Ht,
595
- jt,
544
+ }, Yt = [], Wt = /* @__PURE__ */ x(
596
545
  qt,
546
+ Jt,
547
+ Yt,
597
548
  !1,
598
549
  null,
599
550
  "eeb380bc"
600
551
  );
601
- const ke = Jt.exports, Yt = {
552
+ const ke = Wt.exports, Kt = {
602
553
  "en-US": {
603
554
  apply: "Apply",
604
555
  clear: "Clear",
@@ -614,15 +565,15 @@ const ke = Jt.exports, Yt = {
614
565
  clear: "Limpar",
615
566
  reset: "Reiniciar"
616
567
  }
617
- }, Wt = x({
618
- i18n: { messages: Yt },
568
+ }, zt = L({
569
+ i18n: { messages: Kt },
619
570
  name: "bento-date-range-filter",
620
571
  components: {
621
572
  BentoBaseFilter: ee,
622
- BentoButtonActions: _t,
573
+ BentoButtonActions: yt,
623
574
  BentoDateRangePicker: pt,
624
- BentoTypography: re,
625
- BentoDivider: ve,
575
+ BentoTypography: se,
576
+ BentoDivider: _e,
626
577
  DateRangePickerCalendar: ft
627
578
  },
628
579
  props: {
@@ -671,37 +622,42 @@ const ke = Jt.exports, Yt = {
671
622
  default: () => ({ startDate: void 0, endDate: void 0 })
672
623
  }
673
624
  },
674
- emits: [c.INPUT, c.UPDATE],
625
+ emits: [p.INPUT, p.UPDATE],
675
626
  setup(a, { emit: e }) {
676
- var J, $, M, N;
677
- const { locale: t, t: l } = G(), n = Ve(), { internalFilterValue: o, isSecondaryButtonDisabled: s, isApplyButtonDisabled: f } = Z(
678
- V(a, "value"),
679
- V(a, "defaultValue")
680
- ), u = E(!1), y = (_) => _ ? X(_, Se.NUMERIC_DATE_YEAR_FIRST, {
627
+ var q, W, k, H;
628
+ const { locale: t, t: l } = G(), n = Ve(), { internalFilterValue: o, isSecondaryButtonDisabled: s, isApplyButtonDisabled: b } = Z(
629
+ $(a, "value"),
630
+ $(a, "defaultValue")
631
+ ), c = E(!1), d = (m) => m ? X(m, Se.NUMERIC_DATE_YEAR_FIRST, {
681
632
  locale: n[t.value.substring(0, 2)] || n.enUS
682
- }) : void 0, h = (_) => _ ? X(_, Se.HOUR_MINUTE_SECONDS, {
633
+ }) : void 0, F = (m) => m ? X(m, Se.HOUR_MINUTE_SECONDS, {
683
634
  locale: n[t.value.substring(0, 2)] || n.enUS
684
- }) : "", B = E(null), p = E(!1), g = Te({
685
- startDate: y((J = a.value) == null ? void 0 : J.startDate),
686
- endDate: y(($ = a.value) == null ? void 0 : $.endDate),
687
- startTime: h((M = a.value) == null ? void 0 : M.startDate),
688
- endTime: h((N = a.value) == null ? void 0 : N.endDate)
635
+ }) : "", g = E(null), v = E(!1), S = Te({
636
+ startDate: d((q = a.value) == null ? void 0 : q.startDate),
637
+ endDate: d((W = a.value) == null ? void 0 : W.endDate),
638
+ startTime: F((k = a.value) == null ? void 0 : k.startDate),
639
+ endTime: F((H = a.value) == null ? void 0 : H.endDate)
689
640
  });
690
- function P(_) {
691
- return (_ == null ? void 0 : _.length) !== void 0;
641
+ function T(m) {
642
+ return (m == null ? void 0 : m.length) !== void 0;
692
643
  }
693
- const A = r(() => {
694
- var _, k, L, F, b, D, O, Y, Q;
695
- if (!((_ = a.value) != null && _.startDate) && !a.value.endDate)
644
+ const I = r(() => {
645
+ var m, O, j, w, h, f, A, V, K;
646
+ if (!((m = a.value) != null && m.startDate) && !a.value.endDate)
696
647
  return null;
697
- if (P((k = a.options) == null ? void 0 : k.quickSelectRanges) && ((F = (L = a.options) == null ? void 0 : L.quickSelectRanges) == null ? void 0 : F.length) > 0) {
698
- const oe = (D = (b = a.options) == null ? void 0 : b.quickSelectRanges) == null ? void 0 : D.find(
699
- ({ data: K }) => he(K == null ? void 0 : K.startDate, a.value.startDate) && he(K == null ? void 0 : K.endDate, a.value.endDate)
700
- );
701
- if (oe)
702
- return oe.label;
648
+ if (T((O = a.options) == null ? void 0 : O.quickSelectRanges) && ((w = (j = a.options) == null ? void 0 : j.quickSelectRanges) == null ? void 0 : w.length) > 0) {
649
+ const Q = (f = (h = a.options) == null ? void 0 : h.quickSelectRanges) == null ? void 0 : f.find(({ value: re, data: N }) => {
650
+ if (o.value.range)
651
+ return re === o.value.range;
652
+ if (!(N != null && N.endDate))
653
+ ce(N == null ? void 0 : N.startDate, o.value.startDate) && bt(o.value.endDate);
654
+ else
655
+ return ce(N == null ? void 0 : N.startDate, o.value.startDate) && ce(N == null ? void 0 : N.endDate, o.value.endDate);
656
+ });
657
+ if (Q)
658
+ return Q.label;
703
659
  }
704
- return vt((O = a.value) == null ? void 0 : O.startDate, (Y = a.value) == null ? void 0 : Y.endDate) && ((Q = a == null ? void 0 : a.options) != null && Q.allowTimeInput) ? `${X(a.value.startDate, "dd MMM, yyyy HH:mm:ss", {
660
+ return _t((A = a.value) == null ? void 0 : A.startDate, (V = a.value) == null ? void 0 : V.endDate) && ((K = a == null ? void 0 : a.options) != null && K.allowTimeInput) ? `${X(a.value.startDate, "dd MMM, yyyy HH:mm:ss", {
705
661
  locale: n[t.value.substring(0, 2)] || n.enUS
706
662
  })} - ${X(a.value.endDate, "HH:mm:ss", {
707
663
  locale: n[t.value.substring(0, 2)] || n.enUS
@@ -710,82 +666,82 @@ const ke = Jt.exports, Yt = {
710
666
  })} - ${X(a.value.endDate, "dd MMM, yyyy", {
711
667
  locale: n[t.value.substring(0, 2)] || n.enUS
712
668
  })}`;
713
- }), T = r(() => a.label), C = r(() => A.value), S = () => {
714
- B.value.closePopover();
715
- const { onlySlot: _, ...k } = a;
716
- e(c.UPDATE, { ...k, value: o.value });
717
- }, d = () => {
718
- o.value = void 0, S();
669
+ }), B = r(() => a.label), C = () => {
670
+ g.value.closePopover();
671
+ const { onlySlot: m, ...O } = a;
672
+ e(p.UPDATE, { ...O, value: o.value });
673
+ }, D = () => {
674
+ o.value = void 0, C();
675
+ }, u = () => {
676
+ o.value = a.defaultValue, C();
719
677
  }, U = () => {
720
- o.value = a.defaultValue, S();
721
- }, v = () => {
722
678
  o.value = a.value;
723
- }, m = (_) => {
724
- u.value = !1, o.value = _, g.startDate = y(_.startDate), g.endDate = y(_.endDate), e(c.INPUT, { ...a, value: o.value });
725
- }, i = (_) => {
726
- _ != null && _.startDate && (_ != null && _.endDate) && (o.value = _, g.startDate = y(_.startDate), g.endDate = y(_.endDate), e(c.INPUT, { ...a, value: o.value }));
727
- }, I = (_) => {
728
- m(_), e(c.INPUT, { ...a, value: o.value });
729
- }, w = r(
679
+ }, R = (m) => {
680
+ c.value = !1, o.value = m, S.startDate = d(m.startDate), S.endDate = d(m.endDate), e(p.INPUT, { ...a, value: o.value });
681
+ }, _ = (m) => {
682
+ m != null && m.startDate && (m != null && m.endDate) && (o.value = m, S.startDate = d(m.startDate), S.endDate = d(m.endDate), e(p.INPUT, { ...a, value: o.value }));
683
+ }, y = (m) => {
684
+ R(m), e(p.INPUT, { ...a, value: o.value });
685
+ }, i = r(
730
686
  () => [
731
687
  {
732
688
  title: l("apply"),
733
- event: S,
734
- disabled: u.value || p.value || f.value
689
+ event: C,
690
+ disabled: c.value || v.value || b.value
735
691
  },
736
692
  {
737
693
  title: a.defaultValue ? l("reset") : l("clear"),
738
- event: a.defaultValue ? U : d,
739
- disabled: p.value && s.value
694
+ event: a.defaultValue ? u : D,
695
+ disabled: v.value && s.value
740
696
  }
741
697
  ]
742
698
  );
743
699
  return {
744
700
  // Refs
745
- baseFilter: B,
701
+ baseFilter: g,
746
702
  // Values
747
- actions: w,
748
- formData: g,
703
+ actions: i,
704
+ formData: S,
749
705
  internalFilterValue: o,
750
- isApplyButtonDisabled: f,
706
+ isApplyButtonDisabled: b,
751
707
  isSecondaryButtonDisabled: s,
752
- isSelectingDate: u,
753
- buttonLabel: T,
754
- buttonSecondaryLabel: C,
708
+ isSelectingDate: c,
709
+ buttonLabel: B,
710
+ buttonSecondaryLabel: I,
755
711
  // Events
756
- onDateSelected: m,
757
- openFilter: v,
758
- updateFilter: S,
712
+ onDateSelected: R,
713
+ openFilter: U,
714
+ updateFilter: C,
759
715
  onDatePickerRangeError: () => {
760
- p.value = !0, o.value = { startDate: void 0, endDate: void 0 }, e(c.INPUT, { ...a, value: o.value });
716
+ v.value = !0, o.value = { startDate: void 0, endDate: void 0 }, e(p.INPUT, { ...a, value: o.value });
761
717
  },
762
- onDatePickerRangeFormDateInputUpdate: (_) => {
763
- p.value = !1, _.startTime && (g.startTime = _.startTime), _.endTime && (g.endTime = _.endTime);
718
+ onDatePickerRangeFormDateInputUpdate: (m) => {
719
+ v.value = !1, m.startTime && (S.startTime = m.startTime), m.endTime && (S.endTime = m.endTime);
764
720
  },
765
- onDateInputSelected: I,
766
- onRangeSelectorInput: i
721
+ onDateInputSelected: y,
722
+ onRangeSelectorInput: _
767
723
  };
768
724
  }
769
725
  });
770
- var Kt = function() {
771
- var l, n, o, s, f, u, y, h, B, p, g, P, A, T, C;
726
+ var Gt = function() {
727
+ var l, n, o, s, b, c, d, F, g, v, S, T, I, B, C;
772
728
  var e = this, t = e._self._c;
773
- 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 } }, [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": (f = e.options) == null ? void 0 : f.quickSelectRanges }, on: { input: e.onDateInputSelected } }) : [t("div", { staticClass: "b-date-range-filter" }, [t("date-range-picker-calendar", { attrs: { "allow-time-input": (u = e.options) == null ? void 0 : u.allowTimeInput, "first-day-of-week": (y = e.options) == null ? void 0 : y.firstDayOfWeek, "is-date-disabled": (h = e.options) == null ? void 0 : h.isDateDisabled, granularities: (B = e.options) == null ? void 0 : B.granularities, "max-range": (p = e.options) == null ? void 0 : p.maxRange, min: (g = e.options) == null ? void 0 : g.min, max: (P = e.options) == null ? void 0 : P.max, "number-of-months": (A = e.options) == null ? void 0 : A.numberOfMonths, "quick-select-ranges": (T = e.options) == null ? void 0 : T.quickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData, "show-end-date-on-open": (C = e.options) == null ? void 0 : C.showEndDateOnOpen }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(S) {
729
+ 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 } }, [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": (b = e.options) == null ? void 0 : b.quickSelectRanges }, on: { input: e.onDateInputSelected } }) : [t("div", { staticClass: "b-date-range-filter" }, [t("date-range-picker-calendar", { attrs: { "allow-time-input": (c = e.options) == null ? void 0 : c.allowTimeInput, "first-day-of-week": (d = e.options) == null ? void 0 : d.firstDayOfWeek, "is-date-disabled": (F = e.options) == null ? void 0 : F.isDateDisabled, granularities: (g = e.options) == null ? void 0 : g.granularities, "max-range": (v = e.options) == null ? void 0 : v.maxRange, min: (S = e.options) == null ? void 0 : S.min, max: (T = e.options) == null ? void 0 : T.max, "number-of-months": (I = e.options) == null ? void 0 : I.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": (C = e.options) == null ? void 0 : C.showEndDateOnOpen }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(D) {
774
730
  e.isSelectingDate = !0;
775
731
  } }, scopedSlots: e._u([{ key: "title", fn: function() {
776
732
  return [t("bento-typography", { attrs: { strongest: "", variant: "body", el: "span" } }, [e._v(" " + e._s(e.label) + " ")])];
777
733
  }, proxy: !0 }, { key: "actions", fn: function() {
778
734
  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" } })];
779
735
  }, proxy: !0 }]) })], 1)]], 2);
780
- }, zt = [], Gt = /* @__PURE__ */ R(
781
- Wt,
782
- Kt,
736
+ }, Zt = [], Qt = /* @__PURE__ */ x(
783
737
  zt,
738
+ Gt,
739
+ Zt,
784
740
  !1,
785
741
  null,
786
- "13f04d6b"
742
+ "b965dc1e"
787
743
  );
788
- const Le = Gt.exports, Zt = {
744
+ const Oe = Qt.exports, Xt = {
789
745
  "en-US": {
790
746
  all: "All",
791
747
  noFiltersMatchThisSearch: "No filters match this search",
@@ -797,10 +753,10 @@ const Le = Gt.exports, Zt = {
797
753
  "pt-BR": {
798
754
  all: "Todos"
799
755
  }
800
- }, Qt = {
801
- i18n: { messages: Zt }
802
- }, Xt = /* @__PURE__ */ x({
803
- ...Qt,
756
+ }, el = {
757
+ i18n: { messages: Xt }
758
+ }, tl = /* @__PURE__ */ L({
759
+ ...el,
804
760
  __name: "select-filter-button",
805
761
  props: {
806
762
  /**
@@ -853,111 +809,111 @@ const Le = Gt.exports, Zt = {
853
809
  },
854
810
  emits: ["input", "update"],
855
811
  setup(a, { emit: e }) {
856
- var W, J;
857
- const t = a, l = ue(), { t: n } = G(), o = E(""), s = V(t, "options"), f = E(t.options.listboxItems ?? []), { cachedSelectedListboxOptions: u, setCachedValues: y, resetCache: h } = Fe(
858
- f,
859
- V(t, "value"),
860
- V(s.value, "multiple")
861
- ), { cachedSelectedListboxOptions: B } = Fe(
862
- f,
863
- V(t, "defaultValue"),
864
- V(s.value, "multiple")
865
- ), { internalFilterValue: p, isSecondaryButtonDisabled: g, isApplyButtonDisabled: P } = Z(u, B);
812
+ var q, W;
813
+ const t = a, l = ie(), { t: n } = G(), o = E(""), s = $(t, "options"), b = E(t.options.listboxItems ?? []), { cachedSelectedListboxOptions: c, setCachedValues: d, resetCache: F } = he(
814
+ b,
815
+ $(t, "value"),
816
+ $(s.value, "multiple")
817
+ ), { cachedSelectedListboxOptions: g } = he(
818
+ b,
819
+ $(t, "defaultValue"),
820
+ $(s.value, "multiple")
821
+ ), { internalFilterValue: v, isSecondaryButtonDisabled: S, isApplyButtonDisabled: T } = Z(c, g);
866
822
  z(s, () => {
867
- f.value = s.value.listboxItems ?? [];
823
+ b.value = s.value.listboxItems ?? [];
868
824
  });
869
- const A = xe(
825
+ const I = xe(
870
826
  o,
871
- f,
872
- (J = (W = t.options) == null ? void 0 : W.search) == null ? void 0 : J.searchEvent
873
- ), T = r(() => n("noFiltersMatchThisSearch")), C = r(() => t.label), S = r(() => {
874
- var N, _, k, L;
875
- const $ = !((N = t == null ? void 0 : t.options) != null && N.multiple) && (t == null ? void 0 : t.value), M = ((k = ((_ = t == null ? void 0 : t.options) == null ? void 0 : _.multiple) && t.value) == null ? void 0 : k.length) === 1;
876
- if ($ || M) {
877
- let b = (L = t.options.listboxItems.flatMap((D) => D.items ? D.items : D).find(
878
- ({ value: D }) => {
879
- var O;
880
- return Array.isArray(t.value) ? (O = t == null ? void 0 : t.value) == null ? void 0 : O.includes(D) : D === t.value;
827
+ b,
828
+ (W = (q = t.options) == null ? void 0 : q.search) == null ? void 0 : W.searchEvent
829
+ ), B = r(() => n("noFiltersMatchThisSearch")), C = r(() => t.label), D = r(() => {
830
+ var m, O, j, w;
831
+ const k = !((m = t == null ? void 0 : t.options) != null && m.multiple) && (t == null ? void 0 : t.value), H = ((j = ((O = t == null ? void 0 : t.options) == null ? void 0 : O.multiple) && t.value) == null ? void 0 : j.length) === 1;
832
+ if (k || H) {
833
+ let f = (w = t.options.listboxItems.flatMap((A) => A.items ? A.items : A).find(
834
+ ({ value: A }) => {
835
+ var V;
836
+ return Array.isArray(t.value) ? (V = t == null ? void 0 : t.value) == null ? void 0 : V.includes(A) : A === t.value;
881
837
  }
882
- )) == null ? void 0 : L.label;
883
- return !b && t.value && (b = t.value[0]), ae(b, 12);
838
+ )) == null ? void 0 : w.label;
839
+ return !f && t.value && (f = t.value[0]), ae(f, 12);
884
840
  }
885
841
  return null;
886
- }), d = r(() => fe(`filter-listbox-${t.field}`)), U = ($) => {
887
- p.value = $;
888
- const { onlySlot: M, ...N } = t;
842
+ }), u = r(() => fe(`filter-listbox-${t.field}`)), U = (k) => {
843
+ v.value = k;
844
+ const { onlySlot: H, ...m } = t;
889
845
  if (t.options.multiple) {
890
- const k = $.length ? p.value.map(({ value: L }) => L) : null;
891
- e(c.INPUT, { ...N, value: k });
846
+ const j = k.length ? v.value.map(({ value: w }) => w) : null;
847
+ e(p.INPUT, { ...m, value: j });
892
848
  return;
893
849
  }
894
- const _ = $.length ? $[0].value : null;
895
- e(c.INPUT, { ...N, value: _ });
896
- }, v = () => {
897
- var _, k, L;
898
- const { onlySlot: $, ...M } = t;
850
+ const O = k.length ? k[0].value : null;
851
+ e(p.INPUT, { ...m, value: O });
852
+ }, R = () => {
853
+ var O, j, w;
854
+ const { onlySlot: k, ...H } = t;
899
855
  if (t.options.multiple) {
900
- p.value && ((_ = p.value) == null ? void 0 : _.length) === 0 && (p.value = t.defaultValue !== null ? B.value : void 0);
901
- const F = (k = p.value) != null && k.length ? (L = p.value) == null ? void 0 : L.map(({ value: b }) => b) : null;
902
- e(c.UPDATE, {
903
- ...M,
904
- value: F
856
+ v.value && ((O = v.value) == null ? void 0 : O.length) === 0 && (v.value = t.defaultValue !== null ? g.value : void 0);
857
+ const h = (j = v.value) != null && j.length ? (w = v.value) == null ? void 0 : w.map(({ value: f }) => f) : null;
858
+ e(p.UPDATE, {
859
+ ...H,
860
+ value: h
905
861
  });
906
862
  return;
907
863
  }
908
- const N = p.value.length ? p.value[0].value : void 0;
909
- e(c.UPDATE, { ...M, value: N });
910
- }, m = () => {
911
- p.value = u.value;
912
- }, i = () => {
864
+ const m = v.value.length ? v.value[0].value : void 0;
865
+ e(p.UPDATE, { ...H, value: m });
866
+ }, _ = () => {
867
+ v.value = c.value;
868
+ }, y = () => {
913
869
  o.value && (o.value = "");
914
- }, I = () => {
915
- y(B.value), p.value = B.value, v();
916
- }, w = () => {
917
- h(), p.value = [], v();
918
- }, q = r(() => {
919
- var N, _;
870
+ }, i = () => {
871
+ d(g.value), v.value = g.value, R();
872
+ }, P = () => {
873
+ F(), v.value = [], R();
874
+ }, M = r(() => {
875
+ var m, O;
920
876
  if (t.value == null || !t.options.multiple)
921
877
  return null;
922
- const $ = (N = t.options.listboxItems) == null ? void 0 : N.reduce((k, L) => {
923
- var F;
924
- return k += (F = L == null ? void 0 : L.items) != null && F.length ? L.items.length : 1, k;
925
- }, 0), M = (_ = t.value) == null ? void 0 : _.length;
926
- return M === 1 ? null : M === $ ? n("all") : M;
878
+ const k = (m = t.options.listboxItems) == null ? void 0 : m.reduce((j, w) => {
879
+ var h;
880
+ return j += (h = w == null ? void 0 : w.items) != null && h.length ? w.items.length : 1, j;
881
+ }, 0), H = (O = t.value) == null ? void 0 : O.length;
882
+ return H === 1 ? null : H === k ? n("all") : H;
927
883
  });
928
- return { __sfc: !0, slots: l, emit: e, props: t, t: n, searchTerm: o, optionsRef: s, itemsRef: f, cachedSelectedListboxOptions: u, setCachedValues: y, resetCache: h, cachedDefaultSelectedListboxOptions: B, internalFilterValue: p, isSecondaryButtonDisabled: g, isApplyButtonDisabled: P, filteredItems: A, noResultsMessage: T, buttonLabel: C, buttonSecondaryLabel: S, listboxFilterId: d, onOptionSelected: U, updateFilter: v, openFilter: m, closeFilter: i, resetFilter: I, clearFilter: w, appliedFiltersCount: q, BentoSearchBar: ie, BentoDivider: ve, BentoListbox: it, BentoBaseFilter: ee };
884
+ return { __sfc: !0, slots: l, emit: e, props: t, t: n, searchTerm: o, optionsRef: s, itemsRef: b, cachedSelectedListboxOptions: c, setCachedValues: d, resetCache: F, cachedDefaultSelectedListboxOptions: g, internalFilterValue: v, isSecondaryButtonDisabled: S, isApplyButtonDisabled: T, filteredItems: I, noResultsMessage: B, buttonLabel: C, buttonSecondaryLabel: D, listboxFilterId: u, onOptionSelected: U, updateFilter: R, openFilter: _, closeFilter: y, resetFilter: i, clearFilter: P, appliedFiltersCount: M, BentoSearchBar: ve, BentoDivider: _e, BentoListbox: it, BentoBaseFilter: ee };
929
885
  }
930
886
  });
931
- var el = function() {
932
- var n, o, s, f, u, y, h, B, p, g, P, A, T;
887
+ var ll = function() {
888
+ var n, o, s, b, c, d, F, g, v, S, T, I, B;
933
889
  var e = this, t = e._self._c, l = e._self._setupProxy;
934
890
  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 }, 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(C) {
935
891
  l.searchTerm = C;
936
- } } })], 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, "empty-state": (s = e.options) == null ? void 0 : s.emptyState, "has-more-items": (u = (f = e.options) == null ? void 0 : f.lazy) == null ? void 0 : u.hasMoreItems, items: l.filteredItems, "is-option-disabled": (y = e.options) == null ? void 0 : y.isOptionDisabled, "lazy-load-type": (B = (h = e.options) == null ? void 0 : h.lazy) == null ? void 0 : B.lazyLoadType, loading: (g = (p = e.options) == null ? void 0 : p.lazy) == null ? void 0 : g.loading, multiple: (P = e.options) == null ? void 0 : P.multiple, "static-categories": (A = e.options) == null ? void 0 : A.staticCategories, "no-results-message": l.noResultsMessage, searching: !!l.searchTerm, "selected-value": l.internalFilterValue, "virtual-scroll": (T = e.options) == null ? void 0 : T.virtualScroll }, on: { select: l.onOptionSelected, "space-pressed": l.onOptionSelected, "enter-pressed": l.onOptionSelected, "show-more": function(C) {
937
- var S, d;
938
- (d = (S = e.options) == null ? void 0 : S.lazy) == null || d.showMoreEvent();
939
- } }, scopedSlots: e._u([e._l(l.slots, function(C, S) {
940
- return { key: S, fn: function(d) {
941
- return [e._t(S, null, null, d)];
892
+ } } })], 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, "empty-state": (s = e.options) == null ? void 0 : s.emptyState, "has-more-items": (c = (b = e.options) == null ? void 0 : b.lazy) == null ? void 0 : c.hasMoreItems, items: l.filteredItems, "is-option-disabled": (d = e.options) == null ? void 0 : d.isOptionDisabled, "lazy-load-type": (g = (F = e.options) == null ? void 0 : F.lazy) == null ? void 0 : g.lazyLoadType, loading: (S = (v = e.options) == null ? void 0 : v.lazy) == null ? void 0 : S.loading, multiple: (T = e.options) == null ? void 0 : T.multiple, "static-categories": (I = e.options) == null ? void 0 : I.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(C) {
893
+ var D, u;
894
+ (u = (D = e.options) == null ? void 0 : D.lazy) == null || u.showMoreEvent();
895
+ } }, scopedSlots: e._u([e._l(l.slots, function(C, D) {
896
+ return { key: D, fn: function(u) {
897
+ return [e._t(D, null, null, u)];
942
898
  } };
943
899
  })], null, !0) })], 1);
944
- }, tl = [], ll = /* @__PURE__ */ R(
945
- Xt,
946
- el,
900
+ }, al = [], nl = /* @__PURE__ */ x(
947
901
  tl,
902
+ ll,
903
+ al,
948
904
  !1,
949
905
  null,
950
906
  "d19bf8a6"
951
907
  );
952
- const al = ll.exports, nl = {
908
+ const ol = nl.exports, sl = {
953
909
  "en-US": {
954
910
  noFiltersMatchThisSearch: "No filters match this search"
955
911
  }
956
- }, ol = {
957
- i18n: { messages: nl },
912
+ }, rl = {
913
+ i18n: { messages: sl },
958
914
  name: "select-filter-dropdown"
959
- }, sl = /* @__PURE__ */ x({
960
- ...ol,
915
+ }, il = /* @__PURE__ */ L({
916
+ ...rl,
961
917
  props: {
962
918
  /**
963
919
  * Disables the filter from being interacted with.
@@ -1010,35 +966,35 @@ const al = ll.exports, nl = {
1010
966
  },
1011
967
  emits: ["input", "update"],
1012
968
  setup(a, { emit: e }) {
1013
- const t = a, { t: l } = G(), n = ue(), { internalFilterValue: o } = Z(V(t, "value"), V(t, "defaultValue")), s = E(""), f = V(t, "options"), u = E(t.options.listboxItems);
1014
- z(f, () => {
1015
- u.value = f.value.listboxItems;
969
+ const t = a, { t: l } = G(), n = ie(), { internalFilterValue: o } = Z($(t, "value"), $(t, "defaultValue")), s = E(""), b = $(t, "options"), c = E(t.options.listboxItems);
970
+ z(b, () => {
971
+ c.value = b.value.listboxItems;
1016
972
  });
1017
- const y = r(() => l("noFiltersMatchThisSearch"));
1018
- return { __sfc: !0, t: l, slots: n, emit: e, props: t, internalFilterValue: o, searchTerm: s, optionsRef: f, itemsRef: u, noResultsMessage: y, onOptionSelected: (B) => {
1019
- o.value = B;
1020
- const { onlySlot: p, ...g } = t;
1021
- e(c.INPUT, { ...g, value: o.value });
973
+ const d = r(() => l("noFiltersMatchThisSearch"));
974
+ return { __sfc: !0, t: l, slots: n, emit: e, props: t, internalFilterValue: o, searchTerm: s, optionsRef: b, itemsRef: c, noResultsMessage: d, onOptionSelected: (g) => {
975
+ o.value = g;
976
+ const { onlySlot: v, ...S } = t;
977
+ e(p.INPUT, { ...S, value: o.value });
1022
978
  }, BentoDropdown: nt };
1023
979
  }
1024
980
  });
1025
- var rl = function() {
981
+ var ul = function() {
1026
982
  var n, o, s;
1027
983
  var e = this, t = e._self._c, l = e._self._setupProxy;
1028
- return t(l.BentoDropdown, { attrs: { value: l.internalFilterValue, items: e.options.listboxItems, multiple: (n = e.options) == null ? void 0 : n.multiple, "static-categories": (o = e.options) == null ? void 0 : o.staticCategories, "no-results-message": l.noResultsMessage, searching: !!l.searchTerm, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0, "empty-state": (s = e.options) == null ? void 0 : s.emptyState, disabled: e.disabled }, on: { input: l.onOptionSelected }, scopedSlots: e._u([e._l(l.slots, function(f, u) {
1029
- return { key: u, fn: function(y) {
1030
- return [e._t(u, null, null, y)];
984
+ return t(l.BentoDropdown, { attrs: { value: l.internalFilterValue, items: e.options.listboxItems, multiple: (n = e.options) == null ? void 0 : n.multiple, "static-categories": (o = e.options) == null ? void 0 : o.staticCategories, "no-results-message": l.noResultsMessage, searching: !!l.searchTerm, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0, "empty-state": (s = e.options) == null ? void 0 : s.emptyState, disabled: e.disabled }, on: { input: l.onOptionSelected }, scopedSlots: e._u([e._l(l.slots, function(b, c) {
985
+ return { key: c, fn: function(d) {
986
+ return [e._t(c, null, null, d)];
1031
987
  } };
1032
988
  })], null, !0) });
1033
- }, il = [], ul = /* @__PURE__ */ R(
1034
- sl,
1035
- rl,
989
+ }, cl = [], dl = /* @__PURE__ */ x(
1036
990
  il,
991
+ ul,
992
+ cl,
1037
993
  !1,
1038
994
  null,
1039
995
  null
1040
996
  );
1041
- const cl = ul.exports, ne = {
997
+ const fl = dl.exports, ne = {
1042
998
  /**
1043
999
  * Disables the filter from being interacted with.
1044
1000
  */
@@ -1087,13 +1043,13 @@ const cl = ul.exports, ne = {
1087
1043
  type: [String, Number, Array],
1088
1044
  default: void 0
1089
1045
  }
1090
- }, dl = {}, fl = /* @__PURE__ */ x({
1091
- ...dl,
1046
+ }, pl = {}, bl = /* @__PURE__ */ L({
1047
+ ...pl,
1092
1048
  __name: "select-filter",
1093
1049
  props: ne,
1094
1050
  emits: ["input", "update"],
1095
1051
  setup(a, { emit: e }) {
1096
- const t = a, l = ue(), n = (s) => e("input", s), o = (s) => e("update", s);
1052
+ const t = a, l = ie(), n = (s) => e("input", s), o = (s) => e("update", s);
1097
1053
  return Pe(() => {
1098
1054
  var s;
1099
1055
  (s = t == null ? void 0 : t.options) != null && s.messages && pe(
@@ -1102,10 +1058,10 @@ const cl = ul.exports, ne = {
1102
1058
  This will be the default behavior in the v2 and "options.messages" will be removed.`,
1103
1059
  "2.0.0"
1104
1060
  );
1105
- }), { __sfc: !0, slots: l, emit: e, props: t, onInput: n, onUpdate: o, SelectFilterButton: al, SelectFilterDropdown: cl };
1061
+ }), { __sfc: !0, slots: l, emit: e, props: t, onInput: n, onUpdate: o, SelectFilterButton: ol, SelectFilterDropdown: fl };
1106
1062
  }
1107
1063
  });
1108
- var pl = function() {
1064
+ var vl = function() {
1109
1065
  var e = this, t = e._self._c, l = e._self._setupProxy;
1110
1066
  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) {
1111
1067
  return { key: o, fn: function(s) {
@@ -1116,15 +1072,15 @@ var pl = function() {
1116
1072
  return [e._t(o, null, null, s)];
1117
1073
  } };
1118
1074
  })], null, !0) });
1119
- }, bl = [], vl = /* @__PURE__ */ R(
1120
- fl,
1121
- pl,
1075
+ }, _l = [], yl = /* @__PURE__ */ x(
1122
1076
  bl,
1077
+ vl,
1078
+ _l,
1123
1079
  !1,
1124
1080
  null,
1125
1081
  null
1126
1082
  );
1127
- const te = vl.exports, _l = x({
1083
+ const te = yl.exports, ml = L({
1128
1084
  name: "bento-select-avatar-filter",
1129
1085
  components: {
1130
1086
  BentoSelectFilter: te,
@@ -1143,34 +1099,34 @@ const te = vl.exports, _l = x({
1143
1099
  default: void 0
1144
1100
  }
1145
1101
  },
1146
- emits: [c.INPUT, c.UPDATE],
1102
+ emits: [p.INPUT, p.UPDATE],
1147
1103
  setup(a, { emit: e }) {
1148
1104
  return {
1149
1105
  // Enums
1150
- BentoFilterEvent: c,
1106
+ BentoFilterEvent: p,
1151
1107
  // Methods
1152
- onUpdate: (l) => e(c.UPDATE, l)
1108
+ onUpdate: (l) => e(p.UPDATE, l)
1153
1109
  };
1154
1110
  }
1155
1111
  });
1156
- var yl = function() {
1112
+ var Fl = function() {
1157
1113
  var e = this, t = e._self._c;
1158
1114
  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 }) {
1159
1115
  return [t("bento-avatar", { attrs: { username: l, src: n } })];
1160
1116
  } }]) }, "bento-select-filter", e.$props, !1));
1161
- }, ml = [], Fl = /* @__PURE__ */ R(
1162
- _l,
1163
- yl,
1117
+ }, hl = [], Sl = /* @__PURE__ */ x(
1164
1118
  ml,
1119
+ Fl,
1120
+ hl,
1165
1121
  !1,
1166
1122
  null,
1167
1123
  null
1168
1124
  );
1169
- const we = Fl.exports, hl = x({
1125
+ const we = Sl.exports, Bl = L({
1170
1126
  name: "bento-select-country-filter",
1171
1127
  components: {
1172
1128
  BentoSelectFilter: te,
1173
- ListboxOptionTag: Oe
1129
+ ListboxOptionTag: Le
1174
1130
  },
1175
1131
  props: {
1176
1132
  ...ne,
@@ -1185,35 +1141,35 @@ const we = Fl.exports, hl = x({
1185
1141
  default: void 0
1186
1142
  }
1187
1143
  },
1188
- emits: [c.INPUT, c.UPDATE],
1144
+ emits: [p.INPUT, p.UPDATE],
1189
1145
  setup(a, { emit: e }) {
1190
1146
  return {
1191
1147
  // Enums
1192
- BentoFilterEvent: c,
1148
+ BentoFilterEvent: p,
1193
1149
  // Methods
1194
1150
  onUpdate: (l) => {
1195
- e(c.UPDATE, l);
1151
+ e(p.UPDATE, l);
1196
1152
  }
1197
1153
  };
1198
1154
  }
1199
1155
  });
1200
- var Sl = function() {
1156
+ var gl = function() {
1201
1157
  var e = this, t = e._self._c;
1202
1158
  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) {
1203
1159
  return [t("listbox-option-tag", { attrs: { option: l } })];
1204
1160
  } }]) }, "bento-select-filter", e.$props, !1));
1205
- }, Bl = [], gl = /* @__PURE__ */ R(
1206
- hl,
1207
- Sl,
1161
+ }, Cl = [], Dl = /* @__PURE__ */ x(
1208
1162
  Bl,
1163
+ gl,
1164
+ Cl,
1209
1165
  !1,
1210
1166
  null,
1211
1167
  null
1212
1168
  );
1213
- const Ne = gl.exports, Cl = {
1169
+ const Ne = Dl.exports, Al = {
1214
1170
  name: "bento-select-country-filter"
1215
- }, Al = /* @__PURE__ */ x({
1216
- ...Cl,
1171
+ }, Tl = /* @__PURE__ */ L({
1172
+ ...Al,
1217
1173
  props: {
1218
1174
  ...ne,
1219
1175
  /**
@@ -1228,13 +1184,13 @@ const Ne = gl.exports, Cl = {
1228
1184
  default: void 0
1229
1185
  }
1230
1186
  },
1231
- emits: [c.INPUT, c.UPDATE],
1187
+ emits: [p.INPUT, p.UPDATE],
1232
1188
  setup(a, { emit: e }) {
1233
1189
  const t = a, l = E(t.options.variant), n = E(t.options.listboxItems);
1234
1190
  z([() => t.options.variant, () => t.options.listboxItems], () => {
1235
1191
  l.value = t.options.variant, n.value = t.options.listboxItems;
1236
1192
  });
1237
- const o = (u) => e(c.UPDATE, u), s = ct(l, n), f = r(() => ({
1193
+ const o = (c) => e(p.UPDATE, c), s = ct(l, n), b = r(() => ({
1238
1194
  ...t != null && t.options ? t.options : {},
1239
1195
  listboxItems: s.value
1240
1196
  }));
@@ -1242,23 +1198,23 @@ const Ne = gl.exports, Cl = {
1242
1198
  'BentoSelectCountryFilter type with `options.variant==="custom"`',
1243
1199
  "Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
1244
1200
  "2.0.0"
1245
- ), { __sfc: !0, props: t, emit: e, variant: l, listboxItems: n, onUpdate: o, countryItems: s, countryOptions: f, BentoFilterEvent: c, BentoTypography: re, BentoSelectFilter: te };
1201
+ ), { __sfc: !0, props: t, emit: e, variant: l, listboxItems: n, onUpdate: o, countryItems: s, countryOptions: b, BentoFilterEvent: p, BentoTypography: se, BentoSelectFilter: te };
1246
1202
  }
1247
1203
  });
1248
- var Dl = function() {
1204
+ var Pl = function() {
1249
1205
  var e = this, t = e._self._c, l = e._self._setupProxy;
1250
1206
  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 }) {
1251
1207
  return [t(l.BentoTypography, { attrs: { el: "span" } }, [e._v(e._s(n))])];
1252
1208
  } }]) }, "bento-select-filter", l.props, !1));
1253
- }, Tl = [], Pl = /* @__PURE__ */ R(
1254
- Al,
1255
- Dl,
1209
+ }, Il = [], El = /* @__PURE__ */ x(
1256
1210
  Tl,
1211
+ Pl,
1212
+ Il,
1257
1213
  !1,
1258
1214
  null,
1259
1215
  null
1260
1216
  );
1261
- const Me = Pl.exports, Il = x({
1217
+ const Me = El.exports, Ul = L({
1262
1218
  name: "bento-select-payment-method-filter",
1263
1219
  components: {
1264
1220
  BentoSelectFilter: te,
@@ -1277,34 +1233,34 @@ const Me = Pl.exports, Il = x({
1277
1233
  default: void 0
1278
1234
  }
1279
1235
  },
1280
- emits: [c.INPUT, c.UPDATE],
1236
+ emits: [p.INPUT, p.UPDATE],
1281
1237
  setup(a, { emit: e }) {
1282
1238
  return {
1283
1239
  // Enums
1284
- BentoFilterEvent: c,
1240
+ BentoFilterEvent: p,
1285
1241
  // Methods
1286
- onUpdate: (l) => e(c.UPDATE, l)
1242
+ onUpdate: (l) => e(p.UPDATE, l)
1287
1243
  };
1288
1244
  }
1289
1245
  });
1290
- var El = function() {
1246
+ var Rl = function() {
1291
1247
  var e = this, t = e._self._c;
1292
1248
  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 }) {
1293
1249
  return [t("bento-payment-method", { attrs: { type: l, label: n } })];
1294
1250
  } }]) }, "bento-select-filter", e.$props, !1));
1295
- }, Ul = [], Rl = /* @__PURE__ */ R(
1296
- Il,
1297
- El,
1251
+ }, xl = [], Ll = /* @__PURE__ */ x(
1298
1252
  Ul,
1253
+ Rl,
1254
+ xl,
1299
1255
  !1,
1300
1256
  null,
1301
1257
  null
1302
1258
  );
1303
- const He = Rl.exports, xl = x({
1259
+ const He = Ll.exports, Vl = L({
1304
1260
  name: "bento-select-country-filter",
1305
1261
  components: {
1306
1262
  BentoSelectFilter: te,
1307
- ListboxOptionTag: Oe
1263
+ ListboxOptionTag: Le
1308
1264
  },
1309
1265
  props: {
1310
1266
  ...ne,
@@ -1319,12 +1275,12 @@ const He = Rl.exports, xl = x({
1319
1275
  default: void 0
1320
1276
  }
1321
1277
  },
1322
- emits: [c.INPUT, c.UPDATE],
1278
+ emits: [p.INPUT, p.UPDATE],
1323
1279
  setup(a, { emit: e }) {
1324
- const t = (o) => e(c.UPDATE, o), l = r(
1280
+ const t = (o) => e(p.UPDATE, o), l = r(
1325
1281
  () => {
1326
1282
  var o, s;
1327
- return (s = (o = a == null ? void 0 : a.options) == null ? void 0 : o.listboxItems) == null ? void 0 : s.map(({ label: f, value: u, variant: y }) => ({ label: f, value: u, data: y }));
1283
+ return (s = (o = a == null ? void 0 : a.options) == null ? void 0 : o.listboxItems) == null ? void 0 : s.map(({ label: b, value: c, variant: d }) => ({ label: b, value: c, data: d }));
1328
1284
  }
1329
1285
  );
1330
1286
  return {
@@ -1336,24 +1292,24 @@ const He = Rl.exports, xl = x({
1336
1292
  // Methods
1337
1293
  onUpdate: t,
1338
1294
  // Enums
1339
- BentoFilterEvent: c
1295
+ BentoFilterEvent: p
1340
1296
  };
1341
1297
  }
1342
1298
  });
1343
- var Ol = function() {
1299
+ var $l = function() {
1344
1300
  var e = this, t = e._self._c;
1345
1301
  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 }) {
1346
1302
  return [t("listbox-option-tag", { attrs: { option: { value: l, data: n, label: "" } } })];
1347
1303
  } }]) }, "bento-select-filter", e.$props, !1));
1348
- }, Vl = [], $l = /* @__PURE__ */ R(
1349
- xl,
1350
- Ol,
1304
+ }, kl = [], Ol = /* @__PURE__ */ x(
1351
1305
  Vl,
1306
+ $l,
1307
+ kl,
1352
1308
  !1,
1353
1309
  null,
1354
1310
  null
1355
1311
  );
1356
- const je = $l.exports, kl = {
1312
+ const je = Ol.exports, wl = {
1357
1313
  "en-US": {
1358
1314
  no: "No",
1359
1315
  yes: "Yes"
@@ -1366,9 +1322,9 @@ const je = $l.exports, kl = {
1366
1322
  no: "Não",
1367
1323
  yes: "Sim"
1368
1324
  }
1369
- }, Ll = x({
1325
+ }, Nl = L({
1370
1326
  name: "bento-boolean-filter",
1371
- i18n: { messages: kl },
1327
+ i18n: { messages: wl },
1372
1328
  components: { BentoBaseFilter: ee, BentoRadioGroup: et },
1373
1329
  props: {
1374
1330
  /**
@@ -1407,12 +1363,12 @@ const je = $l.exports, kl = {
1407
1363
  default: void 0
1408
1364
  }
1409
1365
  },
1410
- emits: [c.INPUT, c.UPDATE],
1366
+ emits: [p.INPUT, p.UPDATE],
1411
1367
  setup(a, { emit: e }) {
1412
- const { t } = G(), l = (d) => typeof d == "boolean" ? d == null ? void 0 : d.toString() : d, n = (d) => {
1413
- var U, v, m, i;
1414
- return ((v = (U = a == null ? void 0 : a.options) == null ? void 0 : U.positiveOption) == null ? void 0 : v.value) !== void 0 && ((i = (m = a == null ? void 0 : a.options) == null ? void 0 : m.negativeOption) == null ? void 0 : i.value) !== void 0 && typeof a.options.positiveOption.value == "boolean" && typeof a.options.negativeOption.value == "boolean" && typeof d == "string" ? d === "true" : d;
1415
- }, o = r(() => l(a.defaultValue)), s = r(() => l(a.value)), f = r(() => a.options && a.options.positiveOption && a.options.negativeOption ? [
1368
+ const { t } = G(), l = (u) => typeof u == "boolean" ? u == null ? void 0 : u.toString() : u, n = (u) => {
1369
+ var U, R, _, y;
1370
+ return ((R = (U = a == null ? void 0 : a.options) == null ? void 0 : U.positiveOption) == null ? void 0 : R.value) !== void 0 && ((y = (_ = a == null ? void 0 : a.options) == null ? void 0 : _.negativeOption) == null ? void 0 : y.value) !== void 0 && typeof a.options.positiveOption.value == "boolean" && typeof a.options.negativeOption.value == "boolean" && typeof u == "string" ? u === "true" : u;
1371
+ }, o = r(() => l(a.defaultValue)), s = r(() => l(a.value)), b = r(() => a.options && a.options.positiveOption && a.options.negativeOption ? [
1416
1372
  {
1417
1373
  ...a.options.positiveOption,
1418
1374
  value: l(a.options.positiveOption.value)
@@ -1424,76 +1380,76 @@ const je = $l.exports, kl = {
1424
1380
  ] : [
1425
1381
  { value: "yes", label: t("yes") },
1426
1382
  { value: "no", label: t("no") }
1427
- ]), { internalFilterValue: u, isSecondaryButtonDisabled: y, isApplyButtonDisabled: h } = Z(
1383
+ ]), { internalFilterValue: c, isSecondaryButtonDisabled: d, isApplyButtonDisabled: F } = Z(
1428
1384
  s,
1429
1385
  o
1430
- ), B = r(() => a.label), p = r(
1386
+ ), g = r(() => a.label), v = r(
1431
1387
  () => {
1432
- var d;
1433
- return ae((d = f.value.find(({ value: U }) => U === s.value)) == null ? void 0 : d.label, 12);
1388
+ var u;
1389
+ return ae((u = b.value.find(({ value: U }) => U === s.value)) == null ? void 0 : u.label, 12);
1434
1390
  }
1435
- ), g = r(() => ({
1391
+ ), S = r(() => ({
1436
1392
  "b-boolean-filter--only-slot": a.onlySlot
1437
1393
  }));
1438
- ce(() => {
1439
- u.value || (u.value = null);
1394
+ ue(() => {
1395
+ c.value || (c.value = null);
1440
1396
  });
1441
- const P = (d) => {
1442
- u.value = d, e(c.INPUT, {
1397
+ const T = (u) => {
1398
+ c.value = u, e(p.INPUT, {
1443
1399
  ...a,
1444
- value: n(u.value)
1400
+ value: n(c.value)
1445
1401
  });
1446
- }, A = () => {
1447
- u.value = s.value;
1448
- }, T = () => {
1449
- e(c.UPDATE, {
1402
+ }, I = () => {
1403
+ c.value = s.value;
1404
+ }, B = () => {
1405
+ e(p.UPDATE, {
1450
1406
  ...a,
1451
- value: n(u.value)
1407
+ value: n(c.value)
1452
1408
  });
1453
1409
  };
1454
1410
  return {
1455
1411
  // Values
1456
- items: f,
1457
- conditionalClasses: g,
1458
- buttonLabel: B,
1459
- buttonSecondaryLabel: p,
1460
- internalFilterValue: u,
1461
- isApplyButtonDisabled: h,
1462
- isSecondaryButtonDisabled: y,
1412
+ items: b,
1413
+ conditionalClasses: S,
1414
+ buttonLabel: g,
1415
+ buttonSecondaryLabel: v,
1416
+ internalFilterValue: c,
1417
+ isApplyButtonDisabled: F,
1418
+ isSecondaryButtonDisabled: d,
1463
1419
  translatedValue: s,
1464
1420
  translatedDefaultValue: o,
1465
1421
  // Events
1466
- onInput: P,
1467
- updateFilter: T,
1422
+ onInput: T,
1423
+ updateFilter: B,
1468
1424
  clearFilter: () => {
1469
- u.value = null, T();
1425
+ c.value = null, B();
1470
1426
  },
1471
- openFilter: A,
1472
- resetFilter: () => e(c.UPDATE, { ...a, value: a.defaultValue })
1427
+ openFilter: I,
1428
+ resetFilter: () => e(p.UPDATE, { ...a, value: a.defaultValue })
1473
1429
  };
1474
1430
  }
1475
1431
  });
1476
- var wl = function() {
1432
+ var Ml = function() {
1477
1433
  var e = this, t = e._self._c;
1478
1434
  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) {
1479
1435
  return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1480
1436
  } } }, [t("bento-radio-group", { attrs: { items: e.items, label: e.label, "model-value": e.internalFilterValue, "hide-label": "" }, on: { "update:model-value": e.onInput } })], 1)]);
1481
- }, Nl = [], Ml = /* @__PURE__ */ R(
1482
- Ll,
1483
- wl,
1437
+ }, Hl = [], jl = /* @__PURE__ */ x(
1484
1438
  Nl,
1439
+ Ml,
1440
+ Hl,
1485
1441
  !1,
1486
1442
  null,
1487
1443
  "c8af6e48"
1488
1444
  );
1489
- const qe = Ml.exports, Hl = {
1445
+ const qe = jl.exports, ql = {
1490
1446
  "en-US": {
1491
1447
  from: "From",
1492
1448
  to: "To"
1493
1449
  }
1494
- }, jl = x({
1450
+ }, Jl = L({
1495
1451
  name: "bento-range-filter",
1496
- i18n: { messages: Hl },
1452
+ i18n: { messages: ql },
1497
1453
  components: { BentoBaseFilter: ee, BentoInputField: be },
1498
1454
  props: {
1499
1455
  /**
@@ -1523,31 +1479,31 @@ const qe = Ml.exports, Hl = {
1523
1479
  */
1524
1480
  onlySlot: { type: Boolean, default: !1 }
1525
1481
  },
1526
- emits: [c.INPUT, c.UPDATE],
1482
+ emits: [p.INPUT, p.UPDATE],
1527
1483
  setup(a, { emit: e }) {
1528
1484
  const { t } = G(), l = E(null), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = Z(
1529
- V(a, "value"),
1530
- V(a, "defaultValue")
1531
- ), f = r(() => {
1532
- var m, i, I, w, q, W, J, $;
1533
- if (!((m = a.value) != null && m[0]) && !((i = a.value) != null && i[1]))
1485
+ $(a, "value"),
1486
+ $(a, "defaultValue")
1487
+ ), b = r(() => {
1488
+ var _, y, i, P, M, q, W, k;
1489
+ if (!((_ = a.value) != null && _[0]) && !((y = a.value) != null && y[1]))
1534
1490
  return null;
1535
- let S = "";
1536
- (I = a.value) != null && I[0] ? (w = a.value) != null && w[1] || (S = "≥") : S = "≤";
1537
- const d = (q = a.value) != null && q[0] ? `${ae(a.value[0], 5)}` : "", U = (W = a.value) != null && W[0] && ((J = a.value) != null && J[1]) ? " - " : "", v = ($ = a.value) != null && $[1] ? `${ae(a.value[1], 5)}` : "";
1538
- return `${S}${d}${U}${v}`;
1539
- }), u = r(() => a.label), y = r(() => f.value), h = r(() => ({
1491
+ let D = "";
1492
+ (i = a.value) != null && i[0] ? (P = a.value) != null && P[1] || (D = "≥") : D = "≤";
1493
+ const u = (M = a.value) != null && M[0] ? `${ae(a.value[0], 5)}` : "", U = (q = a.value) != null && q[0] && ((W = a.value) != null && W[1]) ? " - " : "", R = (k = a.value) != null && k[1] ? `${ae(a.value[1], 5)}` : "";
1494
+ return `${D}${u}${U}${R}`;
1495
+ }), c = r(() => a.label), d = r(() => b.value), F = r(() => ({
1540
1496
  "b-range-filter--only-slot": a.onlySlot
1541
- })), B = () => {
1542
- n.value = a.value, Ae(() => l.value.focusInput());
1543
- }, p = () => {
1544
- e(c.INPUT, { ...a, value: n.value });
1545
- }, g = (S) => {
1546
- n.value = [S, n.value[1]], p();
1547
- }, P = (S) => {
1548
- n.value = [n.value[0], S], p();
1549
- }, A = () => {
1550
- n.value.some((S) => S) || (n.value = a.defaultValue !== null ? a.defaultValue : void 0), e(c.UPDATE, {
1497
+ })), g = () => {
1498
+ n.value = a.value, De(() => l.value.focusInput());
1499
+ }, v = () => {
1500
+ e(p.INPUT, { ...a, value: n.value });
1501
+ }, S = (D) => {
1502
+ n.value = [D, n.value[1]], v();
1503
+ }, T = (D) => {
1504
+ n.value = [n.value[0], D], v();
1505
+ }, I = () => {
1506
+ n.value.some((D) => D) || (n.value = a.defaultValue !== null ? a.defaultValue : void 0), e(p.UPDATE, {
1551
1507
  ...a,
1552
1508
  value: n.value
1553
1509
  });
@@ -1555,44 +1511,44 @@ const qe = Ml.exports, Hl = {
1555
1511
  return {
1556
1512
  // Values
1557
1513
  inputTextRef: l,
1558
- conditionalClasses: h,
1514
+ conditionalClasses: F,
1559
1515
  internalFilterValue: n,
1560
1516
  isApplyButtonDisabled: s,
1561
1517
  isSecondaryButtonDisabled: o,
1562
- buttonLabel: u,
1563
- buttonSecondaryLabel: y,
1518
+ buttonLabel: c,
1519
+ buttonSecondaryLabel: d,
1564
1520
  // Events
1565
- updateFrom: g,
1566
- updateTo: P,
1567
- updateFilter: A,
1521
+ updateFrom: S,
1522
+ updateTo: T,
1523
+ updateFilter: I,
1568
1524
  clearFilter: () => {
1569
- n.value = ["", ""], A();
1525
+ n.value = ["", ""], I();
1570
1526
  },
1571
- openFilter: B,
1572
- resetFilter: () => e(c.UPDATE, { ...a, value: a.defaultValue }),
1527
+ openFilter: g,
1528
+ resetFilter: () => e(p.UPDATE, { ...a, value: a.defaultValue }),
1573
1529
  // Translations
1574
1530
  t
1575
1531
  };
1576
1532
  }
1577
1533
  });
1578
- var ql = function() {
1534
+ var Yl = function() {
1579
1535
  var e = this, t = e._self._c;
1580
1536
  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) {
1581
1537
  return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1582
1538
  } } }, [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)]);
1583
- }, Jl = [], Yl = /* @__PURE__ */ R(
1584
- jl,
1585
- ql,
1539
+ }, Wl = [], Kl = /* @__PURE__ */ x(
1586
1540
  Jl,
1541
+ Yl,
1542
+ Wl,
1587
1543
  !1,
1588
1544
  null,
1589
1545
  "0d8531d1"
1590
1546
  );
1591
- const Je = Yl.exports;
1547
+ const Je = Kl.exports;
1592
1548
  var de = /* @__PURE__ */ ((a) => (a.INPUT = "input", a))(de || {});
1593
- const Wl = x({
1549
+ const zl = L({
1594
1550
  name: "base-filter-button",
1595
- components: { BaseButton: Ee, BentoTypography: re, ChevronUpIcon: rt, ChevronDownIcon: st },
1551
+ components: { BaseButton: Ee, BentoTypography: se, ChevronUpIcon: rt, ChevronDownIcon: st },
1596
1552
  props: {
1597
1553
  /**
1598
1554
  * The number of applies values within the filter.
@@ -1617,25 +1573,25 @@ const Wl = x({
1617
1573
  */
1618
1574
  bold: { type: Boolean, default: !1 }
1619
1575
  },
1620
- emits: [me.CLICK],
1576
+ emits: [Fe.CLICK],
1621
1577
  setup(a, { slots: e, emit: t, attrs: l }) {
1622
- const n = r(() => e.default ? Ue(e)("default") : null), o = Ie({ ariaLabel: n }), s = E(null), f = r(() => {
1623
- var h;
1578
+ const n = r(() => e.default ? Ue(e)("default") : null), o = Ie({ ariaLabel: n }), s = E(null), b = r(() => {
1579
+ var F;
1624
1580
  return {
1625
- "aria-controls": (h = l["aria-controls"]) == null ? void 0 : h.toString()
1581
+ "aria-controls": (F = l["aria-controls"]) == null ? void 0 : F.toString()
1626
1582
  };
1627
- }), u = r(() => ({
1583
+ }), c = r(() => ({
1628
1584
  "b-base-filter-button--with-chevron": a.hasChevron,
1629
1585
  "b-base-filter-button--filter-open": a.isFilterOpen
1630
1586
  }));
1631
1587
  return {
1632
1588
  // Values
1633
- ariaAttributes: f,
1589
+ ariaAttributes: b,
1634
1590
  computedAriaLabel: o,
1635
- conditionalClasses: u,
1591
+ conditionalClasses: c,
1636
1592
  // Methods
1637
1593
  onClickButton: () => {
1638
- a.disabled || t(me.CLICK);
1594
+ a.disabled || t(Fe.CLICK);
1639
1595
  },
1640
1596
  hasSlot: Re(e),
1641
1597
  // Refs
@@ -1643,22 +1599,22 @@ const Wl = x({
1643
1599
  };
1644
1600
  }
1645
1601
  });
1646
- var Kl = function() {
1602
+ var Gl = function() {
1647
1603
  var e = this, t = e._self._c;
1648
1604
  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() {
1649
1605
  return [e.isFilterOpen ? t("chevron-up-icon", { attrs: { "aria-hidden": "true" } }) : t("chevron-down-icon", { attrs: { "aria-hidden": "true" } })];
1650
1606
  }, 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()])]);
1651
- }, zl = [], Gl = /* @__PURE__ */ R(
1652
- Wl,
1653
- Kl,
1607
+ }, Zl = [], Ql = /* @__PURE__ */ x(
1654
1608
  zl,
1609
+ Gl,
1610
+ Zl,
1655
1611
  !1,
1656
1612
  null,
1657
1613
  "66b170d4"
1658
1614
  );
1659
- const Zl = Gl.exports, Ql = x({
1615
+ const Xl = Ql.exports, ea = L({
1660
1616
  name: "all-filters-modal-button",
1661
- components: { BaseFilterButton: Zl },
1617
+ components: { BaseFilterButton: Xl },
1662
1618
  props: {
1663
1619
  /**
1664
1620
  * Button label to be displayed
@@ -1690,36 +1646,36 @@ const Zl = Gl.exports, Ql = x({
1690
1646
  };
1691
1647
  }
1692
1648
  });
1693
- var Xl = function() {
1649
+ var ta = function() {
1694
1650
  var e = this, t = e._self._c;
1695
1651
  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) + " ")]);
1696
- }, ea = [], ta = /* @__PURE__ */ R(
1697
- Ql,
1698
- Xl,
1652
+ }, la = [], aa = /* @__PURE__ */ x(
1699
1653
  ea,
1654
+ ta,
1655
+ la,
1700
1656
  !1,
1701
1657
  null,
1702
1658
  "4c415ac7"
1703
1659
  );
1704
- const la = ta.exports;
1660
+ const na = aa.exports;
1705
1661
  let Ce = 0;
1706
- const aa = {
1662
+ const oa = {
1707
1663
  beforeCreate() {
1708
1664
  this.uuid = Ce.toString(), Ce += 1;
1709
1665
  }
1710
1666
  };
1711
- var na = function() {
1667
+ var sa = function() {
1712
1668
  var e = this, t = e._self._c;
1713
1669
  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" } })]);
1714
- }, oa = [], sa = /* @__PURE__ */ R(
1715
- aa,
1716
- na,
1670
+ }, ra = [], ia = /* @__PURE__ */ x(
1717
1671
  oa,
1672
+ sa,
1673
+ ra,
1718
1674
  !1,
1719
1675
  null,
1720
1676
  null
1721
1677
  );
1722
- const ra = sa.exports, ia = {
1678
+ const ua = ia.exports, ca = {
1723
1679
  "en-US": {
1724
1680
  activeFilters: "Active filters",
1725
1681
  all: "All",
@@ -1744,28 +1700,28 @@ const ra = sa.exports, ia = {
1744
1700
  clear: "Limpar",
1745
1701
  clearAll: "Limpar tudo"
1746
1702
  }
1747
- }, ua = x({
1748
- i18n: { messages: ia },
1703
+ }, da = L({
1704
+ i18n: { messages: ca },
1749
1705
  name: "all-filters-modal",
1750
1706
  components: {
1751
- AllFiltersModalButton: la,
1707
+ AllFiltersModalButton: na,
1752
1708
  BentoBooleanFilter: qe,
1753
1709
  BentoButton: at,
1754
1710
  BentoDateFilter: ke,
1755
- BentoDateRangeFilter: Le,
1711
+ BentoDateRangeFilter: Oe,
1756
1712
  BentoInputFilter: $e,
1757
1713
  BentoModal: tt,
1758
1714
  BentoRangeFilter: Je,
1759
- BentoSearchBar: ie,
1715
+ BentoSearchBar: ve,
1760
1716
  BentoSelectAvatarFilter: we,
1761
1717
  BentoSelectCurrencyFilter: Ne,
1762
1718
  BentoSelectCountryFilter: Me,
1763
1719
  BentoSelectFilter: te,
1764
1720
  BentoSelectPaymentMethodFilter: He,
1765
1721
  BentoSelectTagFilter: je,
1766
- BentoTypography: re,
1767
- FilterBarButton: _e,
1768
- SlidersIcon: ra
1722
+ BentoTypography: se,
1723
+ FilterBarButton: ye,
1724
+ SlidersIcon: ua
1769
1725
  },
1770
1726
  props: {
1771
1727
  /**
@@ -1795,150 +1751,150 @@ const ra = sa.exports, ia = {
1795
1751
  },
1796
1752
  emits: [de.INPUT],
1797
1753
  setup(a, { emit: e }) {
1798
- const t = Te({ value: a.value }), l = E(t.value), n = fe("all-filters-modal"), o = E([]), s = E(!1), f = E(0), u = E(null), y = E(""), { t: h } = G(), B = xe(y, V(l, "value")), p = E({});
1799
- ce(() => {
1800
- p.value = [];
1754
+ const t = Te({ value: a.value }), l = E(t.value), n = fe("all-filters-modal"), o = E([]), s = E(!1), b = E(0), c = E(null), d = E(""), { t: F } = G(), g = xe(d, $(l, "value")), v = E({});
1755
+ ue(() => {
1756
+ v.value = [];
1801
1757
  }), z(
1802
1758
  () => a.value,
1803
1759
  () => {
1804
1760
  t.value = a.value, l.value = a.value;
1805
1761
  }
1806
1762
  );
1807
- const g = (F) => (
1763
+ const S = (h) => (
1808
1764
  /* eslint-disable-next-line no-nested-ternary */
1809
- F.sort((b, D) => b.label > D.label ? 1 : D.label > b.label ? -1 : 0)
1810
- ), P = r(
1811
- () => g(
1812
- B.value.filter(
1813
- (F) => {
1814
- var b, D;
1815
- return Array.isArray(F.value) ? ((b = F.value) == null ? void 0 : b.length) && ((D = F.value) == null ? void 0 : D.find((O) => O !== "")) : F.value;
1765
+ h.sort((f, A) => f.label > A.label ? 1 : A.label > f.label ? -1 : 0)
1766
+ ), T = r(
1767
+ () => S(
1768
+ g.value.filter(
1769
+ (h) => {
1770
+ var f, A;
1771
+ return Array.isArray(h.value) ? ((f = h.value) == null ? void 0 : f.length) && ((A = h.value) == null ? void 0 : A.find((V) => V !== "")) : h.value;
1816
1772
  }
1817
1773
  )
1818
1774
  )
1819
- ), A = r(
1820
- () => g(
1821
- B.value.filter(
1822
- (F) => {
1823
- var b, D;
1824
- return Array.isArray(F.value) ? ((b = F.value) == null ? void 0 : b.length) === 0 || ((D = F.value) == null ? void 0 : D.every((O) => O === "")) : !F.value;
1775
+ ), I = r(
1776
+ () => S(
1777
+ g.value.filter(
1778
+ (h) => {
1779
+ var f, A;
1780
+ return Array.isArray(h.value) ? ((f = h.value) == null ? void 0 : f.length) === 0 || ((A = h.value) == null ? void 0 : A.every((V) => V === "")) : !h.value;
1825
1781
  }
1826
1782
  )
1827
1783
  )
1828
- ), T = r(() => {
1829
- var F;
1830
- return y.value && ((F = B.value) == null ? void 0 : F.length) === 0;
1831
- }), C = r(() => l.value[f.value]), S = () => {
1832
- const F = P.value.length ? P.value[0] : A.value[0], b = l.value.findIndex(
1833
- (D) => D.label === F.label && D.field === F.field
1784
+ ), B = r(() => {
1785
+ var h;
1786
+ return d.value && ((h = g.value) == null ? void 0 : h.length) === 0;
1787
+ }), C = r(() => l.value[b.value]), D = () => {
1788
+ const h = T.value.length ? T.value[0] : I.value[0], f = l.value.findIndex(
1789
+ (A) => A.label === h.label && A.field === h.field
1834
1790
  );
1835
- f.value = b;
1791
+ b.value = f;
1836
1792
  };
1837
1793
  Pe(() => {
1838
- S();
1794
+ D();
1839
1795
  });
1840
- const d = (F) => F.map((b) => {
1841
- var D, O, Y, Q, oe, K;
1842
- switch (b.type) {
1843
- case H.SELECT:
1844
- case H.SELECT_AVATAR:
1845
- case H.SELECT_COUNTRY:
1846
- case H.SELECT_CURRENCY:
1847
- case H.SELECT_PAYMENT_METHOD:
1848
- case H.SELECT_TAG:
1849
- switch ((D = b.options) == null ? void 0 : D.multiple) {
1796
+ const u = (h) => h.map((f) => {
1797
+ var A, V, K, Q, re, N;
1798
+ switch (f.type) {
1799
+ case J.SELECT:
1800
+ case J.SELECT_AVATAR:
1801
+ case J.SELECT_COUNTRY:
1802
+ case J.SELECT_CURRENCY:
1803
+ case J.SELECT_PAYMENT_METHOD:
1804
+ case J.SELECT_TAG:
1805
+ switch ((A = f.options) == null ? void 0 : A.multiple) {
1850
1806
  case !0:
1851
1807
  return {
1852
- label: b.label,
1853
- field: b.field,
1854
- count: (O = b.value) != null && O.length ? (Y = b.value) == null ? void 0 : Y.length : null
1808
+ label: f.label,
1809
+ field: f.field,
1810
+ count: (V = f.value) != null && V.length ? (K = f.value) == null ? void 0 : K.length : null
1855
1811
  };
1856
1812
  default:
1857
1813
  return {
1858
- label: b.label,
1859
- field: b.field,
1860
- count: b.value == null ? null : 1
1814
+ label: f.label,
1815
+ field: f.field,
1816
+ count: f.value == null ? null : 1
1861
1817
  };
1862
1818
  }
1863
- case H.DATE_RANGE:
1819
+ case J.DATE_RANGE:
1864
1820
  return {
1865
- label: b.label,
1866
- field: b.field,
1867
- count: ((Q = b.value) == null ? void 0 : Q.startDate) != null && ((oe = b.value) == null ? void 0 : oe.endDate) != null ? 1 : null
1821
+ label: f.label,
1822
+ field: f.field,
1823
+ count: ((Q = f.value) == null ? void 0 : Q.startDate) != null && ((re = f.value) == null ? void 0 : re.endDate) != null ? 1 : null
1868
1824
  };
1869
- case H.RANGE:
1825
+ case J.RANGE:
1870
1826
  return {
1871
- label: b.label,
1872
- field: b.field,
1873
- count: (K = b.value) != null && K.find((Ye) => Ye !== "") ? 1 : null
1827
+ label: f.label,
1828
+ field: f.field,
1829
+ count: (N = f.value) != null && N.find((Ye) => Ye !== "") ? 1 : null
1874
1830
  };
1875
- case H.INPUT:
1876
- case H.BOOLEAN:
1877
- case H.DATE:
1831
+ case J.INPUT:
1832
+ case J.BOOLEAN:
1833
+ case J.DATE:
1878
1834
  default:
1879
1835
  return {
1880
- label: b.label,
1881
- field: b.field,
1882
- count: b.value != null ? 1 : null
1836
+ label: f.label,
1837
+ field: f.field,
1838
+ count: f.value != null ? 1 : null
1883
1839
  };
1884
1840
  }
1885
1841
  }), U = r(
1886
1842
  () => {
1887
- var F;
1888
- return Array.isArray(C.value.value) ? ((F = C.value) == null ? void 0 : F.value.length) && C.value.value.find((b) => b !== "") : !!l.value[f.value].value;
1843
+ var h;
1844
+ return Array.isArray(C.value.value) ? ((h = C.value) == null ? void 0 : h.value.length) && C.value.value.find((f) => f !== "") : !!l.value[b.value].value;
1889
1845
  }
1890
- ), v = r(
1846
+ ), R = r(
1891
1847
  () => {
1892
- var F;
1893
- return (F = d(t.value)) == null ? void 0 : F.filter(({ count: b }) => !!b).length;
1848
+ var h;
1849
+ return (h = u(t.value)) == null ? void 0 : h.filter(({ count: f }) => !!f).length;
1894
1850
  }
1895
- ), m = () => {
1851
+ ), _ = () => {
1896
1852
  s.value ? s.value = !1 : s.value = !0;
1897
- }, i = (F) => {
1898
- var D, O, Y;
1899
- const b = d(l.value).find((Q) => Q.field === F.field).count;
1900
- return F.type.includes("BentoSelect") && ((D = F.options) != null && D.multiple) && b === ((Y = (O = F.options) == null ? void 0 : O.listboxItems) == null ? void 0 : Y.length) ? h("all") : b;
1901
- }, I = (F, b) => {
1902
- f.value = l.value.findIndex(
1903
- (D) => D.label === F && D.field === b
1853
+ }, y = (h) => {
1854
+ var A, V, K;
1855
+ const f = u(l.value).find((Q) => Q.field === h.field).count;
1856
+ return h.type.includes("BentoSelect") && ((A = h.options) != null && A.multiple) && f === ((K = (V = h.options) == null ? void 0 : V.listboxItems) == null ? void 0 : K.length) ? F("all") : f;
1857
+ }, i = (h, f) => {
1858
+ b.value = l.value.findIndex(
1859
+ (A) => A.label === h && A.field === f
1904
1860
  );
1905
- }, w = () => {
1906
- y.value = "";
1907
- }, q = () => {
1908
- s.value = !1, t.value = a.value, l.value = a.value, w(), S();
1909
- }, W = (F) => {
1910
- const b = l.value.map(({ value: D, ...O }, Y) => Y === f.value ? { value: F.value, ...O } : { value: D, ...O });
1911
- l.value = b;
1912
- }, J = () => {
1913
- W({
1861
+ }, P = () => {
1862
+ d.value = "";
1863
+ }, M = () => {
1864
+ s.value = !1, t.value = a.value, l.value = a.value, P(), D();
1865
+ }, q = (h) => {
1866
+ const f = l.value.map(({ value: A, ...V }, K) => K === b.value ? { value: h.value, ...V } : { value: A, ...V });
1867
+ l.value = f;
1868
+ }, W = () => {
1869
+ q({
1914
1870
  field: C.value.field,
1915
1871
  label: C.value.label,
1916
1872
  type: C.value.type,
1917
1873
  value: void 0
1918
1874
  });
1919
- }, $ = () => {
1920
- l.value = t.value.map(({ value: F, ...b }) => ({
1921
- ...b,
1875
+ }, k = () => {
1876
+ l.value = t.value.map(({ value: h, ...f }) => ({
1877
+ ...f,
1922
1878
  value: void 0
1923
1879
  }));
1924
- }, M = () => {
1880
+ }, H = () => {
1925
1881
  e(de.INPUT, l.value), s.value = !1;
1926
- }, N = r(
1882
+ }, m = r(
1927
1883
  () => JSON.stringify(l.value) === JSON.stringify(a.value)
1928
- ), _ = r(() => [
1884
+ ), O = r(() => [
1929
1885
  {
1930
- title: h("applyAll"),
1931
- disabled: N.value,
1932
- event: M
1886
+ title: F("applyAll"),
1887
+ disabled: m.value,
1888
+ event: H
1933
1889
  },
1934
1890
  {
1935
- title: h("cancel"),
1936
- event: q
1891
+ title: F("cancel"),
1892
+ event: M
1937
1893
  },
1938
1894
  {
1939
- title: h("clearAll"),
1940
- disabled: !v.value,
1941
- event: $
1895
+ title: F("clearAll"),
1896
+ disabled: !R.value,
1897
+ event: k
1942
1898
  }
1943
1899
  ]);
1944
1900
  return {
@@ -1947,38 +1903,38 @@ const ra = sa.exports, ia = {
1947
1903
  // Values
1948
1904
  allFiltersModalUniqueId: n,
1949
1905
  allFiltersModalFiltersSection: o,
1950
- allFiltersModalFilterButtons: p,
1951
- numberOfActiveFilters: v,
1952
- isEmptyResultForSearchFilter: T,
1906
+ allFiltersModalFilterButtons: v,
1907
+ numberOfActiveFilters: R,
1908
+ isEmptyResultForSearchFilter: B,
1953
1909
  isModalOpen: s,
1954
1910
  isClearButtonEnabled: U,
1955
- activeFilters: P,
1956
- otherFilters: A,
1957
- modalActions: _,
1911
+ activeFilters: T,
1912
+ otherFilters: I,
1913
+ modalActions: O,
1958
1914
  selectedFilter: C,
1959
- selectedFilterRef: u,
1915
+ selectedFilterRef: c,
1960
1916
  filters: t,
1961
- searchTerm: y,
1917
+ searchTerm: d,
1962
1918
  // Methods
1963
- onClickAllFiltersModal: m,
1964
- getFilterCount: i,
1965
- cancel: q,
1966
- selectFilter: I,
1967
- clearFilter: J,
1968
- updateFilter: W,
1969
- onSearchbarClear: w,
1919
+ onClickAllFiltersModal: _,
1920
+ getFilterCount: y,
1921
+ cancel: M,
1922
+ selectFilter: i,
1923
+ clearFilter: W,
1924
+ updateFilter: q,
1925
+ onSearchbarClear: P,
1970
1926
  onKeydownRight: () => {
1971
- ot(1, u.value.$el).focus();
1927
+ ot(1, c.value.$el).focus();
1972
1928
  },
1973
1929
  onKeydownLeft: () => {
1974
- p.value[C.value.label].$el.focus();
1930
+ v.value[C.value.label].$el.focus();
1975
1931
  },
1976
1932
  // Translations
1977
- t: h
1933
+ t: F
1978
1934
  };
1979
1935
  }
1980
1936
  });
1981
- var ca = function() {
1937
+ var fa = function() {
1982
1938
  var e = this, t = e._self._c;
1983
1939
  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 }, on: { click: e.onClickAllFiltersModal }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1984
1940
  return [t("sliders-icon", { attrs: { "aria-hidden": "true" } })];
@@ -2003,15 +1959,15 @@ var ca = function() {
2003
1959
  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);
2004
1960
  } } }, [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)])];
2005
1961
  }, proxy: !0 }]) })], 1);
2006
- }, da = [], fa = /* @__PURE__ */ R(
2007
- ua,
2008
- ca,
1962
+ }, pa = [], ba = /* @__PURE__ */ x(
2009
1963
  da,
1964
+ fa,
1965
+ pa,
2010
1966
  !1,
2011
1967
  null,
2012
1968
  "d7f1c1e5"
2013
1969
  );
2014
- const pa = fa.exports, ba = {
1970
+ const va = ba.exports, _a = {
2015
1971
  "en-US": {
2016
1972
  clearFilters: "Clear filters",
2017
1973
  filtersHaveBeenCleared: "Filters have been cleared.",
@@ -2032,15 +1988,15 @@ const pa = fa.exports, ba = {
2032
1988
  resetFilters: "Redefinir filtros",
2033
1989
  undo: "Desfazer"
2034
1990
  }
2035
- }, va = {
2036
- i18n: { messages: ba },
1991
+ }, ya = {
1992
+ i18n: { messages: _a },
2037
1993
  name: "bento-filter-bar",
2038
1994
  components: {
2039
1995
  BentoBooleanFilter: qe,
2040
1996
  BentoDateFilter: ke,
2041
- BentoDateRangeFilter: Le,
1997
+ BentoDateRangeFilter: Oe,
2042
1998
  BentoInputFilter: $e,
2043
- BentoInputWithDropdownFilter: Mt,
1999
+ BentoInputWithDropdownFilter: jt,
2044
2000
  BentoRangeFilter: Je,
2045
2001
  BentoSelectAvatarFilter: we,
2046
2002
  BentoSelectCountryFilter: Me,
@@ -2049,92 +2005,19 @@ const pa = fa.exports, ba = {
2049
2005
  BentoSelectPaymentMethodFilter: He,
2050
2006
  BentoSelectTagFilter: je
2051
2007
  }
2052
- }, _a = /* @__PURE__ */ x({
2053
- ...va,
2008
+ }, ma = /* @__PURE__ */ L({
2009
+ ...ya,
2054
2010
  props: {
2055
- /**
2056
- * Array of filters based on {@see BentoFilterBarModel}.
2057
- * Each one of the elements in the array correspond to a filter that will
2058
- * be created and rendered in the FilterBar.
2059
- *
2060
- * @example
2061
- * [{
2062
- * field: 'company',
2063
- * label: 'Company',
2064
- * type: FilterType.TEXT,
2065
- * }, {
2066
- * field: 'name',
2067
- * label: 'Name',
2068
- * type: FilterType.TEXT,
2069
- * }]
2070
- */
2071
- config: {
2072
- type: Array,
2073
- default: () => []
2074
- },
2075
- /**
2076
- * Search term useful to filter all the data by text.
2077
- * If the value is non-existant (null or undefined) the search bar won't be enabled.
2078
- */
2079
- searchTerm: {
2080
- type: ie.props.value.type,
2081
- default: void 0
2082
- },
2083
- /**
2084
- * @deprecated from version 2.0.0. Use the config property instead.
2085
- */
2086
- /**
2087
- * Array of filters based on {@see BentoFilterBarModel}.
2088
- * Each one of the elements in the array correspond to a filter that will
2089
- * be created and rendered in the FilterBar.
2090
- *
2091
- * Can be used with v-model or independently with the @input event.
2092
- *
2093
- * @example
2094
- * [{
2095
- * field: 'company',
2096
- * label: 'Company',
2097
- * value: '200',
2098
- * type: FilterType.TEXT,
2099
- * }, {
2100
- * field: 'name',
2101
- * label: 'Name',
2102
- * value: null,
2103
- * type: FilterType.TEXT,
2104
- * }]
2105
- */
2106
- value: {
2107
- type: Array,
2108
- default: () => []
2109
- },
2110
- /**
2111
- * An array of the values for each filter in the filter bar.
2112
- * {@see BentoFilterValues}
2113
- *
2114
- * @example
2115
- * [{
2116
- * field: 'company',
2117
- * value: '200',
2118
- * }, {
2119
- * field: 'name',
2120
- * value: 'some text',
2121
- * }]
2122
- */
2123
- filterValues: {
2124
- type: Array,
2125
- default: () => []
2126
- },
2127
- /**
2128
- * Will show all applied filters even if their visibility is set to false.
2129
- */
2130
- showAppliedHiddenFilters: {
2131
- type: Boolean,
2132
- default: !1
2133
- }
2011
+ config: { default: () => [] },
2012
+ filterValues: { default: () => [] },
2013
+ search: { default: void 0 },
2014
+ searchTerm: { default: void 0 },
2015
+ showAppliedHiddenFilters: { type: Boolean, default: !1 },
2016
+ value: { default: () => [] }
2134
2017
  },
2135
2018
  emits: [
2136
- se.INPUT,
2137
- se.UPDATE_FILTER_VALUES,
2019
+ oe.INPUT,
2020
+ oe.UPDATE_FILTER_VALUES,
2138
2021
  le.CLEAR,
2139
2022
  le.INPUT,
2140
2023
  le.UPDATE
@@ -2142,71 +2025,79 @@ const pa = fa.exports, ba = {
2142
2025
  setup(a, { expose: e, emit: t }) {
2143
2026
  const l = a, { t: n } = G(), o = r(
2144
2027
  () => {
2145
- var v, m;
2146
- return (m = ((v = l.config) == null ? void 0 : v.length) > 0 ? l.config : l.value) == null ? void 0 : m.map((i) => {
2147
- var w;
2148
- let I = (w = l.filterValues.find(({ field: q }) => q === i.field)) == null ? void 0 : w.value;
2149
- return I === void 0 && (I = (i == null ? void 0 : i.value) === void 0 && (i == null ? void 0 : i.defaultValue) !== void 0 ? i == null ? void 0 : i.defaultValue : i == null ? void 0 : i.value), { ...i, value: I !== void 0 ? I : i == null ? void 0 : i.value };
2028
+ var _, y;
2029
+ return (y = ((_ = l.config) == null ? void 0 : _.length) > 0 ? l.config : l.value) == null ? void 0 : y.map((i) => {
2030
+ var M;
2031
+ let P = (M = l.filterValues.find(({ field: q }) => q === i.field)) == null ? void 0 : M.value;
2032
+ return P === void 0 && (P = (i == null ? void 0 : i.value) === void 0 && (i == null ? void 0 : i.defaultValue) !== void 0 ? i == null ? void 0 : i.defaultValue : i == null ? void 0 : i.value), { ...i, value: P !== void 0 ? P : i == null ? void 0 : i.value };
2150
2033
  });
2151
2034
  }
2152
- ), { addToast: s } = Ft(), f = r(() => n("searchBar")), u = r(() => o.value.some(
2153
- ({ visible: m }) => m != null
2154
- ) ? o.value.some(({ visible: m }) => !m) : !1), y = r(
2155
- () => o.value.filter(({ defaultValue: v }) => v !== void 0)
2156
- ), h = r(() => o.value.some(
2157
- ({ visible: m }) => m != null
2035
+ ), { addToast: s } = ht(), b = r(() => {
2036
+ var _;
2037
+ return ((_ = l.search) == null ? void 0 : _.inputFieldAriaLabel) || n("searchBar");
2038
+ }), c = r(() => {
2039
+ if (!l.search)
2040
+ return;
2041
+ const { hint: _, inputFieldAriaLabel: y, debounceTime: i, placeholder: P } = l.search;
2042
+ return { hint: _, inputFieldAriaLabel: y, debounceTime: i, placeholder: P };
2043
+ }), d = r(() => o.value.some(
2044
+ ({ visible: y }) => y != null
2045
+ ) ? o.value.some(({ visible: y }) => !y) : !1), F = r(
2046
+ () => o.value.filter(({ defaultValue: _ }) => _ !== void 0)
2047
+ ), g = r(() => o.value.some(
2048
+ ({ visible: y }) => y != null
2158
2049
  ) ? o.value.filter(
2159
- ({ defaultValue: m, visible: i, value: I }) => m === void 0 && i || l.showAppliedHiddenFilters && I != null
2050
+ ({ defaultValue: y, visible: i, value: P }) => y === void 0 && i || l.showAppliedHiddenFilters && P != null
2160
2051
  ) : o.value.filter(
2161
- ({ defaultValue: m, value: i }) => m === void 0 || l.showAppliedHiddenFilters && i != null
2162
- )), B = r(() => l.searchTerm != null), p = r(
2163
- () => o.value.filter(({ defaultValue: v }) => v == null).some(({ value: v }) => v != null)
2164
- ), g = r(() => y.value.length === 0 && p.value), P = r(() => y.value.length === 0 ? !1 : !o.value.filter(({ defaultValue: m }) => m !== void 0 || m !== null).every(({ value: m, defaultValue: i }) => JSON.stringify(m) === JSON.stringify(i)) || p.value), A = (v) => {
2165
- t(se.INPUT, v), t(
2166
- se.UPDATE_FILTER_VALUES,
2167
- v == null ? void 0 : v.filter(({ value: m }) => m !== null || m !== void 0).map(({ field: m, value: i }) => ({ field: m, value: i }))
2052
+ ({ defaultValue: y, value: i }) => y === void 0 || l.showAppliedHiddenFilters && i != null
2053
+ )), v = r(() => l.searchTerm != null), S = r(
2054
+ () => o.value.filter(({ defaultValue: _ }) => _ == null).some(({ value: _ }) => _ != null)
2055
+ ), T = r(() => F.value.length === 0 && S.value), I = r(() => F.value.length === 0 ? !1 : !o.value.filter(({ defaultValue: y }) => y !== void 0 || y !== null).every(({ value: y, defaultValue: i }) => JSON.stringify(y) === JSON.stringify(i)) || S.value), B = (_) => {
2056
+ t(oe.INPUT, _), t(
2057
+ oe.UPDATE_FILTER_VALUES,
2058
+ _ == null ? void 0 : _.filter(({ value: y }) => y !== null || y !== void 0).map(({ field: y, value: i }) => ({ field: y, value: i }))
2168
2059
  );
2169
- }, T = (v) => {
2170
- const m = o.value.findIndex(
2171
- (I) => I.field === v.field
2060
+ }, C = (_) => {
2061
+ const y = o.value.findIndex(
2062
+ (P) => P.field === _.field
2172
2063
  ), i = o.value.slice();
2173
- i[m].value = v.value, A(i);
2174
- }, C = () => {
2175
- const v = o.value.slice(), m = o.value.map(({ value: i, ...I }) => ({
2176
- ...I,
2064
+ i[y].value = _.value, B(i);
2065
+ }, D = () => {
2066
+ const _ = o.value.slice(), y = o.value.map(({ value: i, ...P }) => ({
2067
+ ...P,
2177
2068
  value: void 0
2178
2069
  }));
2179
2070
  s({
2180
2071
  text: n("filtersHaveBeenCleared"),
2181
2072
  action: {
2182
- handler: () => A(v),
2073
+ handler: () => B(_),
2183
2074
  text: n("undo")
2184
2075
  }
2185
- }), A(m);
2186
- }, S = () => {
2187
- const v = o.value.slice(), m = o.value.map(({ defaultValue: i, ...I }) => ({
2188
- ...I,
2076
+ }), B(y);
2077
+ }, u = () => {
2078
+ const _ = o.value.slice(), y = o.value.map(({ defaultValue: i, ...P }) => ({
2079
+ ...P,
2189
2080
  defaultValue: i,
2190
2081
  value: i
2191
2082
  }));
2192
2083
  s({
2193
2084
  text: n("filtersHaveBeenReset"),
2194
2085
  action: {
2195
- handler: () => A(v),
2086
+ handler: () => B(_),
2196
2087
  text: n("undo")
2197
2088
  }
2198
- }), A(m);
2199
- }, d = (v) => {
2200
- t(le.INPUT, v), t(le.UPDATE, v);
2201
- }, U = () => {
2089
+ }), B(y);
2090
+ }, U = (_) => {
2091
+ t(le.INPUT, _), t(le.UPDATE, _);
2092
+ }, R = () => {
2202
2093
  t(le.CLEAR);
2203
2094
  };
2204
- return e({ isClearAllVisible: g, clearAllFilters: C, isResetAllVisible: P, resetAllFilters: S }), { __sfc: !0, props: l, emit: t, t: n, valueAndFilterValuesPropsMerged: o, addToast: s, searchBarAriaLabel: f, hasHiddenFilters: u, persistentFilters: y, regularFilters: h, isSearchBarEnabled: B, hasActiveFilters: p, isClearAllVisible: g, isResetAllVisible: P, updateAllFilters: A, updateFilterHandler: T, clearAllFilters: C, resetAllFilters: S, onSearchbarInput: d, onSearchbarClear: U, FilterBarButton: _e, BentoSearchBar: ie, FixedScroller: ht, AllFiltersModal: pa, RefreshIcon: mt };
2095
+ return e({ isClearAllVisible: T, clearAllFilters: D, isResetAllVisible: I, resetAllFilters: u }), { __sfc: !0, props: l, emit: t, t: n, valueAndFilterValuesPropsMerged: o, addToast: s, searchBarAriaLabel: b, searchBarProps: c, hasHiddenFilters: d, persistentFilters: F, regularFilters: g, isSearchBarEnabled: v, hasActiveFilters: S, isClearAllVisible: T, isResetAllVisible: I, updateAllFilters: B, updateFilterHandler: C, clearAllFilters: D, resetAllFilters: u, onSearchbarInput: U, onSearchbarClear: R, FilterBarButton: ye, BentoSearchBar: ve, FixedScroller: St, AllFiltersModal: va, RefreshIcon: Ft };
2205
2096
  }
2206
2097
  });
2207
- var ya = function() {
2098
+ var Fa = function() {
2208
2099
  var e = this, t = e._self._c, l = e._self._setupProxy;
2209
- return t("div", { staticClass: "b-filter-bar" }, [t("div", { staticClass: "b-filter-bar__container" }, [t("div", { staticClass: "b-filter-bar__filters" }, [t(l.FixedScroller, { staticClass: "b-filter-bar__fixed-scroller", attrs: { condensed: "" } }, [t("div", { staticClass: "b-filter-bar__scroller-content" }, [l.isSearchBarEnabled ? t(l.BentoSearchBar, { staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": l.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: l.onSearchbarInput, clear: l.onSearchbarClear } }) : e._e(), l.persistentFilters.length ? e._l(l.persistentFilters, function(n) {
2100
+ return t("div", { staticClass: "b-filter-bar" }, [t("div", { staticClass: "b-filter-bar__container" }, [t("div", { staticClass: "b-filter-bar__filters" }, [t(l.FixedScroller, { staticClass: "b-filter-bar__fixed-scroller", attrs: { condensed: "" } }, [t("div", { staticClass: "b-filter-bar__scroller-content" }, [l.isSearchBarEnabled ? 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)) : e._e(), l.persistentFilters.length ? e._l(l.persistentFilters, function(n) {
2210
2101
  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 } });
2211
2102
  }) : e._e(), e._l(l.regularFilters, function(n) {
2212
2103
  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 }, on: { update: l.updateFilterHandler } });
@@ -2215,19 +2106,19 @@ var ya = function() {
2215
2106
  }, proxy: !0 }], null, !1, 4046500904) }, [e._v(" " + e._s(l.t("clearFilters")) + " ")]), t(l.FilterBarButton, { directives: [{ name: "show", rawName: "v-show", value: l.isResetAllVisible, expression: "isResetAllVisible" }], staticClass: "b-filter-bar__reset-all", on: { click: l.resetAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
2216
2107
  return [t(l.RefreshIcon, { attrs: { "aria-hidden": "true" } })];
2217
2108
  }, proxy: !0 }], null, !1, 4046500904) }, [e._v(" " + e._s(l.t("resetFilters")) + " ")])], 1) : e._e()])]);
2218
- }, ma = [], Fa = /* @__PURE__ */ R(
2219
- _a,
2220
- ya,
2109
+ }, ha = [], Sa = /* @__PURE__ */ x(
2221
2110
  ma,
2111
+ Fa,
2112
+ ha,
2222
2113
  !1,
2223
2114
  null,
2224
- "c9c7821b"
2115
+ "60bb44da"
2225
2116
  );
2226
- const sn = Fa.exports;
2117
+ const cn = Sa.exports;
2227
2118
  export {
2228
- sn as B,
2229
- c as a,
2230
- se as b,
2231
- H as c
2119
+ cn as B,
2120
+ p as a,
2121
+ oe as b,
2122
+ J as c
2232
2123
  };
2233
- //# sourceMappingURL=filter-bar.gj9sdW5T.js.map
2124
+ //# sourceMappingURL=filter-bar.CwqoJGiK.js.map