@adyen/bento-vue3 2.1.1 → 2.2.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 (258) hide show
  1. package/dist/@types/bento-translation-keys.generated.d.ts +10 -0
  2. package/dist/@types/index.d.ts +67 -10
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/anchor-scroller.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/alert.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/card.css +1 -1
  14. package/dist/assets/checkbox-input.css +1 -1
  15. package/dist/assets/dashboard-section.css +1 -1
  16. package/dist/assets/data-grid.css +1 -1
  17. package/dist/assets/date-filter.css +1 -0
  18. package/dist/assets/date-range-filter.css +1 -0
  19. package/dist/assets/dialog-page.css +1 -1
  20. package/dist/assets/draggable-handle.css +1 -1
  21. package/dist/assets/dropdown.css +1 -1
  22. package/dist/assets/file-uploader.css +1 -1
  23. package/dist/assets/filter-bar.css +1 -1
  24. package/dist/assets/fixed-scroller.css +1 -1
  25. package/dist/assets/form-layout-title.css +1 -1
  26. package/dist/assets/grid-layout.css +1 -1
  27. package/dist/assets/input-field.css +1 -1
  28. package/dist/assets/input-with-dropdown-filter.css +1 -0
  29. package/dist/assets/inspector.css +1 -1
  30. package/dist/assets/modal-fullscreen.css +1 -1
  31. package/dist/assets/navigation-menu-group.css +1 -1
  32. package/dist/assets/pagination.css +1 -1
  33. package/dist/assets/secondary-nav.css +1 -1
  34. package/dist/assets/sidepanel.css +1 -1
  35. package/dist/assets/table-of-contents.css +1 -1
  36. package/dist/assets/textarea.css +1 -1
  37. package/dist/assets/timeline-item.css +1 -1
  38. package/dist/assets/toggle.css +1 -1
  39. package/dist/button.js +1 -1
  40. package/dist/card.js +1 -1
  41. package/dist/checkbox.js +2 -2
  42. package/dist/chunks/{action-bar.C6XFuiE0.js → action-bar.BIidNGlt.js} +3 -3
  43. package/dist/chunks/{action-bar.C6XFuiE0.js.map → action-bar.BIidNGlt.js.map} +1 -1
  44. package/dist/chunks/{ai-tag.BLDTP7fs.js → ai-tag.B1YHMfAh.js} +2 -2
  45. package/dist/chunks/{ai-tag.BLDTP7fs.js.map → ai-tag.B1YHMfAh.js.map} +1 -1
  46. package/dist/chunks/{alert.BYmn1ewo.js → alert.PGzfyHZI.js} +80 -98
  47. package/dist/chunks/alert.PGzfyHZI.js.map +1 -0
  48. package/dist/chunks/{anchor-scroller.B35-JMuH.js → anchor-scroller.CSOg3htL.js} +2 -2
  49. package/dist/chunks/{anchor-scroller.B35-JMuH.js.map → anchor-scroller.CSOg3htL.js.map} +1 -1
  50. package/dist/chunks/{base-modal.CulokESn.js → base-modal.A52tojyk.js} +5 -5
  51. package/dist/chunks/{base-modal.CulokESn.js.map → base-modal.A52tojyk.js.map} +1 -1
  52. package/dist/chunks/{button-actions-with-menu.BsCmJeKU.js → button-actions-with-menu.DkPSfKO9.js} +2 -2
  53. package/dist/chunks/{button-actions-with-menu.BsCmJeKU.js.map → button-actions-with-menu.DkPSfKO9.js.map} +1 -1
  54. package/dist/chunks/{button-actions.DvuGEQxM.js → button-actions.BYoctIth.js} +2 -2
  55. package/dist/chunks/button-actions.BYoctIth.js.map +1 -0
  56. package/dist/chunks/{calendar.CycKx_P3.js → calendar.BhoyTBN1.js} +18 -18
  57. package/dist/chunks/{calendar.CycKx_P3.js.map → calendar.BhoyTBN1.js.map} +1 -1
  58. package/dist/chunks/{card.OErI_R47.js → card.DL3-xIH9.js} +3 -3
  59. package/dist/chunks/{card.OErI_R47.js.map → card.DL3-xIH9.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.Bcy98dh8.js → checkbox-group.993HE54c.js} +3 -3
  61. package/dist/chunks/{checkbox-group.Bcy98dh8.js.map → checkbox-group.993HE54c.js.map} +1 -1
  62. package/dist/chunks/{checkbox.BN7ttBqd.js → checkbox.DpT4DfSl.js} +14 -14
  63. package/dist/chunks/{checkbox.BN7ttBqd.js.map → checkbox.DpT4DfSl.js.map} +1 -1
  64. package/dist/chunks/{code-snippet.3u22Ij2R.js → code-snippet.8XinCILe.js} +4 -4
  65. package/dist/chunks/{code-snippet.3u22Ij2R.js.map → code-snippet.8XinCILe.js.map} +1 -1
  66. package/dist/chunks/{controls-group.CC3yZiTT.js → controls-group.BcbFbqr-.js} +2 -2
  67. package/dist/chunks/{controls-group.CC3yZiTT.js.map → controls-group.BcbFbqr-.js.map} +1 -1
  68. package/dist/chunks/{copy.YBeE8V9S.js → copy.DrHbwkFX.js} +3 -3
  69. package/dist/chunks/{copy.YBeE8V9S.js.map → copy.DrHbwkFX.js.map} +1 -1
  70. package/dist/chunks/{dashboard-section.CjC3fVU6.js → dashboard-section.CVDLs9xL.js} +4 -4
  71. package/dist/chunks/dashboard-section.CVDLs9xL.js.map +1 -0
  72. package/dist/chunks/{dashed-underline.DAtZOaad.js → dashed-underline.BH4vfrBh.js} +3 -3
  73. package/dist/chunks/{dashed-underline.DAtZOaad.js.map → dashed-underline.BH4vfrBh.js.map} +1 -1
  74. package/dist/chunks/{data-grid-template.bPjGSga2.js → data-grid-template.5keqokzt.js} +4 -4
  75. package/dist/chunks/{data-grid-template.bPjGSga2.js.map → data-grid-template.5keqokzt.js.map} +1 -1
  76. package/dist/chunks/{data-grid.DYNep9mz.js → data-grid.DP4VPyjR.js} +20 -20
  77. package/dist/chunks/{data-grid.DYNep9mz.js.map → data-grid.DP4VPyjR.js.map} +1 -1
  78. package/dist/chunks/date-filter.EysjbedJ.js +156 -0
  79. package/dist/chunks/date-filter.EysjbedJ.js.map +1 -0
  80. package/dist/chunks/{date-picker.DjLNf7fF.js → date-picker.CQ3eoDIo.js} +10 -10
  81. package/dist/chunks/{date-picker.DjLNf7fF.js.map → date-picker.CQ3eoDIo.js.map} +1 -1
  82. package/dist/chunks/date-range-filter.DwNzkqTo.js +949 -0
  83. package/dist/chunks/date-range-filter.DwNzkqTo.js.map +1 -0
  84. package/dist/chunks/{date-range-picker.CI5hBzgs.js → date-range-picker.BYGk8uh-.js} +60 -60
  85. package/dist/chunks/{date-range-picker.CI5hBzgs.js.map → date-range-picker.BYGk8uh-.js.map} +1 -1
  86. package/dist/chunks/{draggable-handle.CKkSJP0K.js → draggable-handle.D6rFbf1V.js} +2 -2
  87. package/dist/chunks/{draggable-handle.CKkSJP0K.js.map → draggable-handle.D6rFbf1V.js.map} +1 -1
  88. package/dist/chunks/{draggable.jzTSFcM7.js → draggable.DH-Wc8GI.js} +2 -2
  89. package/dist/chunks/{draggable.jzTSFcM7.js.map → draggable.DH-Wc8GI.js.map} +1 -1
  90. package/dist/chunks/{dropdown-tag.GOcJPx20.js → dropdown-tag.DQ_BcUK7.js} +3 -3
  91. package/dist/chunks/{dropdown-tag.GOcJPx20.js.map → dropdown-tag.DQ_BcUK7.js.map} +1 -1
  92. package/dist/chunks/{dropdown.BvrZG8Za.js → dropdown.BJ0cJ9Ea.js} +1471 -1384
  93. package/dist/chunks/dropdown.BJ0cJ9Ea.js.map +1 -0
  94. package/dist/chunks/{empty-state.BuK12EGe.js → empty-state.CECdMida.js} +2 -2
  95. package/dist/chunks/{empty-state.BuK12EGe.js.map → empty-state.CECdMida.js.map} +1 -1
  96. package/dist/chunks/{field-label.vrUwhoOg.js → field-label.Dm9I8IDI.js} +2 -2
  97. package/dist/chunks/{field-label.vrUwhoOg.js.map → field-label.Dm9I8IDI.js.map} +1 -1
  98. package/dist/chunks/{file-uploader.Cv8sm0Jd.js → file-uploader.B8c3MlBD.js} +7 -6
  99. package/dist/chunks/{file-uploader.Cv8sm0Jd.js.map → file-uploader.B8c3MlBD.js.map} +1 -1
  100. package/dist/chunks/filter-bar.BPPxuT_w.js +2552 -0
  101. package/dist/chunks/filter-bar.BPPxuT_w.js.map +1 -0
  102. package/dist/chunks/{fixed-scroller.C0nVzRBU.js → fixed-scroller.nECGGyOp.js} +15 -15
  103. package/dist/chunks/{fixed-scroller.C0nVzRBU.js.map → fixed-scroller.nECGGyOp.js.map} +1 -1
  104. package/dist/chunks/{focus-trap.Co-S6goa.js → focus-trap.BgyHTR_3.js} +1 -2
  105. package/dist/chunks/{focus-trap.Co-S6goa.js.map → focus-trap.BgyHTR_3.js.map} +1 -1
  106. package/dist/chunks/{footer-actions.BJif4sIk.js → footer-actions.B2dxp-b_.js} +2 -2
  107. package/dist/chunks/{footer-actions.BJif4sIk.js.map → footer-actions.B2dxp-b_.js.map} +1 -1
  108. package/dist/chunks/{form-layout-title.C7f1ByNh.js → form-layout-title.h-7dMAq7.js} +2 -2
  109. package/dist/chunks/{form-layout-title.C7f1ByNh.js.map → form-layout-title.h-7dMAq7.js.map} +1 -1
  110. package/dist/chunks/grid-layout.BuhsC4WZ.js +115 -0
  111. package/dist/chunks/grid-layout.BuhsC4WZ.js.map +1 -0
  112. package/dist/chunks/{header-with-views.LJ3oCsMN.js → header-with-views.Bux_-bM4.js} +308 -308
  113. package/dist/chunks/{header-with-views.LJ3oCsMN.js.map → header-with-views.Bux_-bM4.js.map} +1 -1
  114. package/dist/chunks/{header.E-KFjIG7.js → header.BEnZbxIA.js} +4 -4
  115. package/dist/chunks/{header.E-KFjIG7.js.map → header.BEnZbxIA.js.map} +1 -1
  116. package/dist/chunks/{info-icon-with-popover.DqnQnwMI.js → info-icon-with-popover.BRl6sC0B.js} +3 -3
  117. package/dist/chunks/{info-icon-with-popover.DqnQnwMI.js.map → info-icon-with-popover.BRl6sC0B.js.map} +1 -1
  118. package/dist/chunks/{info-icon.D_zu5SYT.js → info-icon.CcM7z-CY.js} +3 -3
  119. package/dist/chunks/{info-icon.D_zu5SYT.js.map → info-icon.CcM7z-CY.js.map} +1 -1
  120. package/dist/chunks/{input-field-password.CFBPscot.js → input-field-password.0W7vePC4.js} +4 -4
  121. package/dist/chunks/{input-field-password.CFBPscot.js.map → input-field-password.0W7vePC4.js.map} +1 -1
  122. package/dist/chunks/{input-field-phone-number.BNAKRBLr.js → input-field-phone-number.RblgK9OP.js} +2 -2
  123. package/dist/chunks/{input-field-phone-number.BNAKRBLr.js.map → input-field-phone-number.RblgK9OP.js.map} +1 -1
  124. package/dist/chunks/{input-field.BBSr4o-k.js → input-field.B-Nta-en.js} +3 -3
  125. package/dist/chunks/{input-field.BBSr4o-k.js.map → input-field.B-Nta-en.js.map} +1 -1
  126. package/dist/chunks/{input-time.Cdz9Jb-1.js → input-time.CMKTGRcV.js} +3 -3
  127. package/dist/chunks/{input-time.Cdz9Jb-1.js.map → input-time.CMKTGRcV.js.map} +1 -1
  128. package/dist/chunks/input-with-dropdown-filter.DXnJOBf6.js +100 -0
  129. package/dist/chunks/input-with-dropdown-filter.DXnJOBf6.js.map +1 -0
  130. package/dist/chunks/{inspector-page.DNsc0lK1.js → inspector-page.Bd39LxR2.js} +2 -2
  131. package/dist/chunks/{inspector-page.DNsc0lK1.js.map → inspector-page.Bd39LxR2.js.map} +1 -1
  132. package/dist/chunks/{inspector.BLAqbhmV.js → inspector.SmoWfjqp.js} +2 -2
  133. package/dist/chunks/{inspector.BLAqbhmV.js.map → inspector.SmoWfjqp.js.map} +1 -1
  134. package/dist/chunks/{list-item.RuGQ8Y4T.js → list-item.CoDag_QY.js} +3 -3
  135. package/dist/chunks/{list-item.RuGQ8Y4T.js.map → list-item.CoDag_QY.js.map} +1 -1
  136. package/dist/chunks/{listbox-option-tag.71rmQvG8.js → listbox-option-tag.Bhyu9LpW.js} +2 -2
  137. package/dist/chunks/{listbox-option-tag.71rmQvG8.js.map → listbox-option-tag.Bhyu9LpW.js.map} +1 -1
  138. package/dist/chunks/{modal-fullscreen.jXJnaueu.js → modal-fullscreen.D-ws4648.js} +3 -3
  139. package/dist/chunks/{modal-fullscreen.jXJnaueu.js.map → modal-fullscreen.D-ws4648.js.map} +1 -1
  140. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BwmYlzFm.js → modal.vue_vue_type_script_setup_true_lang.DkjMGIP8.js} +4 -4
  141. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BwmYlzFm.js.map → modal.vue_vue_type_script_setup_true_lang.DkjMGIP8.js.map} +1 -1
  142. package/dist/chunks/{navigation-menu-group.BnS0isK8.js → navigation-menu-group.BlkhBGX3.js} +2 -2
  143. package/dist/chunks/{navigation-menu-group.BnS0isK8.js.map → navigation-menu-group.BlkhBGX3.js.map} +1 -1
  144. package/dist/chunks/{pagination.DbGaudSO.js → pagination.CyqfmV_-.js} +4 -4
  145. package/dist/chunks/{pagination.DbGaudSO.js.map → pagination.CyqfmV_-.js.map} +1 -1
  146. package/dist/chunks/popover.types.CXIAfp1m.js +6 -0
  147. package/dist/chunks/{popover.types.dhllh3NP.js.map → popover.types.CXIAfp1m.js.map} +1 -1
  148. package/dist/chunks/{popper-container.Rfj8UdMD.js → popper-container.lfk_dyZi.js} +2 -2
  149. package/dist/chunks/{popper-container.Rfj8UdMD.js.map → popper-container.lfk_dyZi.js.map} +1 -1
  150. package/dist/chunks/promo-banner.3d1DHWas.js.map +1 -1
  151. package/dist/chunks/{radio-group.BTI_2U11.js → radio-group.DGwM-ijw.js} +3 -3
  152. package/dist/chunks/{radio-group.BTI_2U11.js.map → radio-group.DGwM-ijw.js.map} +1 -1
  153. package/dist/chunks/{rich-text-editor.CjbYg6ee.js → rich-text-editor.7qlWY3xz.js} +5 -5
  154. package/dist/chunks/{rich-text-editor.CjbYg6ee.js.map → rich-text-editor.7qlWY3xz.js.map} +1 -1
  155. package/dist/chunks/{search-bar.D8LwiALL.js → search-bar.BRMyMzkF.js} +3 -3
  156. package/dist/chunks/{search-bar.D8LwiALL.js.map → search-bar.BRMyMzkF.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.CWZFULKD.js → secondary-nav.BbBhe7QI.js} +3 -3
  158. package/dist/chunks/{secondary-nav.CWZFULKD.js.map → secondary-nav.BbBhe7QI.js.map} +1 -1
  159. package/dist/chunks/{segmented-control.CarI0i3p.js → segmented-control.BTILFbBW.js} +2 -2
  160. package/dist/chunks/{segmented-control.CarI0i3p.js.map → segmented-control.BTILFbBW.js.map} +1 -1
  161. package/dist/chunks/select-avatar-filter.DdOdBb0C.js +55 -0
  162. package/dist/chunks/select-avatar-filter.DdOdBb0C.js.map +1 -0
  163. package/dist/chunks/select-country-filter.D-zpTtKe.js +56 -0
  164. package/dist/chunks/select-country-filter.D-zpTtKe.js.map +1 -0
  165. package/dist/chunks/select-currency-filter.BitX4BCE.js +91 -0
  166. package/dist/chunks/select-currency-filter.BitX4BCE.js.map +1 -0
  167. package/dist/chunks/select-payment-method-filter.BiZuCZOa.js +55 -0
  168. package/dist/chunks/select-payment-method-filter.BiZuCZOa.js.map +1 -0
  169. package/dist/chunks/select-tag-filter.BUIIqK0l.js +63 -0
  170. package/dist/chunks/select-tag-filter.BUIIqK0l.js.map +1 -0
  171. package/dist/chunks/{selection-card-group.Covrf9mH.js → selection-card-group.mCAfzxrB.js} +11 -11
  172. package/dist/chunks/{selection-card-group.Covrf9mH.js.map → selection-card-group.mCAfzxrB.js.map} +1 -1
  173. package/dist/chunks/{sidepanel.CYWPV9dE.js → sidepanel.amz6_quV.js} +12 -12
  174. package/dist/chunks/sidepanel.amz6_quV.js.map +1 -0
  175. package/dist/chunks/{structured-list-item.C6SAUS9a.js → structured-list-item.Br6cAwZk.js} +4 -4
  176. package/dist/chunks/{structured-list-item.C6SAUS9a.js.map → structured-list-item.Br6cAwZk.js.map} +1 -1
  177. package/dist/chunks/{summary-grid.types.FTWeUNFh.js → summary-grid.types.DUEiCht4.js} +6 -6
  178. package/dist/chunks/{summary-grid.types.FTWeUNFh.js.map → summary-grid.types.DUEiCht4.js.map} +1 -1
  179. package/dist/chunks/{tab.CwXAsp9E.js → tab.Df1c3HPX.js} +3 -3
  180. package/dist/chunks/{tab.CwXAsp9E.js.map → tab.Df1c3HPX.js.map} +1 -1
  181. package/dist/chunks/{tag.BYxa556o.js → tag.Cg3joxK_.js} +2 -2
  182. package/dist/chunks/{tag.BYxa556o.js.map → tag.Cg3joxK_.js.map} +1 -1
  183. package/dist/chunks/{textarea.D4aMdmDx.js → textarea.ClWTwdJT.js} +2 -2
  184. package/dist/chunks/{textarea.D4aMdmDx.js.map → textarea.ClWTwdJT.js.map} +1 -1
  185. package/dist/chunks/{timeline-item.De8HCoYw.js → timeline-item.CdOFw-Jn.js} +144 -132
  186. package/dist/chunks/timeline-item.CdOFw-Jn.js.map +1 -0
  187. package/dist/chunks/{title-details.8cyCeaLf.js → title-details.Ccs_ltkI.js} +2 -2
  188. package/dist/chunks/{title-details.8cyCeaLf.js.map → title-details.Ccs_ltkI.js.map} +1 -1
  189. package/dist/chunks/{tooltip.0QqJo2sa.js → tooltip.B8LTTssT.js} +3 -3
  190. package/dist/chunks/{tooltip.0QqJo2sa.js.map → tooltip.B8LTTssT.js.map} +1 -1
  191. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dn4toWHY.js → tutorial.vue_vue_type_script_setup_true_lang.CpzGxsmy.js} +4 -4
  192. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dn4toWHY.js.map → tutorial.vue_vue_type_script_setup_true_lang.CpzGxsmy.js.map} +1 -1
  193. package/dist/chunks/typography.B6elnWpr.js.map +1 -1
  194. package/dist/chunks/{use-date-input-formatter.deZ3kB0L.js → use-date-input-formatter.COZBxMaZ.js} +2 -2
  195. package/dist/chunks/{use-date-input-formatter.deZ3kB0L.js.map → use-date-input-formatter.COZBxMaZ.js.map} +1 -1
  196. package/dist/chunks/warning-filled.Bzh3ib0x.js +25 -0
  197. package/dist/chunks/warning-filled.Bzh3ib0x.js.map +1 -0
  198. package/dist/code-snippet.js +1 -1
  199. package/dist/dashboard-template.js +1 -1
  200. package/dist/dashed-underline.js +1 -1
  201. package/dist/data-grid-template.js +1 -1
  202. package/dist/data-grid.js +1 -1
  203. package/dist/date-picker.js +2 -2
  204. package/dist/date-range-picker.js +2 -2
  205. package/dist/date-time-picker.js +4 -4
  206. package/dist/draggable.js +2 -2
  207. package/dist/dropdown.js +2 -2
  208. package/dist/empty-state.js +1 -1
  209. package/dist/file-uploader.js +1 -1
  210. package/dist/filter-bar.js +1 -1
  211. package/dist/focus-trap.js +1 -1
  212. package/dist/form-layout.js +1 -1
  213. package/dist/header-with-views.js +1 -1
  214. package/dist/header.js +1 -1
  215. package/dist/index.js +257 -257
  216. package/dist/info-icon.js +1 -1
  217. package/dist/input-field-password.js +1 -1
  218. package/dist/input-field-phone-number.js +1 -1
  219. package/dist/input-field.js +1 -1
  220. package/dist/input-time.js +1 -1
  221. package/dist/inspector.js +2 -2
  222. package/dist/internal.js +13 -13
  223. package/dist/list.js +1 -1
  224. package/dist/menu.js +1 -1
  225. package/dist/modal-fullscreen.js +1 -1
  226. package/dist/modal.js +2 -2
  227. package/dist/navigation-menu.js +1 -1
  228. package/dist/pagination.js +1 -1
  229. package/dist/popover.js +2 -2
  230. package/dist/popper-container.js +1 -1
  231. package/dist/progress-bar.js +1 -1
  232. package/dist/radio-group.js +1 -1
  233. package/dist/rich-text-editor.js +1 -1
  234. package/dist/search-bar.js +2 -2
  235. package/dist/secondary-nav.js +1 -1
  236. package/dist/segmented-control.js +1 -1
  237. package/dist/selection-card.js +1 -1
  238. package/dist/sidepanel.js +1 -1
  239. package/dist/structured-list.js +1 -1
  240. package/dist/summary-grid.js +1 -1
  241. package/dist/tabs.js +1 -1
  242. package/dist/tag.js +1 -1
  243. package/dist/textarea.js +1 -1
  244. package/dist/timeline.js +1 -1
  245. package/dist/tutorial.js +1 -1
  246. package/dist/web-types.json +1 -1
  247. package/package.json +4 -4
  248. package/dist/chunks/alert.BYmn1ewo.js.map +0 -1
  249. package/dist/chunks/button-actions.DvuGEQxM.js.map +0 -1
  250. package/dist/chunks/dashboard-section.CjC3fVU6.js.map +0 -1
  251. package/dist/chunks/dropdown.BvrZG8Za.js.map +0 -1
  252. package/dist/chunks/filter-bar.DrOXGxUc.js +0 -3974
  253. package/dist/chunks/filter-bar.DrOXGxUc.js.map +0 -1
  254. package/dist/chunks/grid-layout.CCWNscU_.js +0 -113
  255. package/dist/chunks/grid-layout.CCWNscU_.js.map +0 -1
  256. package/dist/chunks/popover.types.dhllh3NP.js +0 -6
  257. package/dist/chunks/sidepanel.CYWPV9dE.js.map +0 -1
  258. package/dist/chunks/timeline-item.De8HCoYw.js.map +0 -1
@@ -0,0 +1,2552 @@
1
+ import { ref as k, onMounted as Ve, watch as le, computed as r, defineComponent as K, useSlots as Pe, useAttrs as kl, openBlock as m, createBlock as O, unref as a, mergeProps as be, withCtx as A, createElementVNode as q, renderSlot as fe, createCommentVNode as H, createVNode as E, createTextVNode as G, toDisplayString as z, shallowRef as Vl, resolveComponent as ge, normalizeClass as ee, createSlots as Re, createElementBlock as w, onBeforeUpdate as qe, withKeys as me, Fragment as Oe, renderList as he, withDirectives as Ue, nextTick as Ge, toRef as X, isRef as Pl, normalizeProps as $e, guardReactiveProps as Ne, vShow as Dl, defineAsyncComponent as Ml, resolveDynamicComponent as Ee, getCurrentInstance as Ul, normalizeStyle as wl } from "vue";
2
+ import { B as ke, a as Be } from "./search-bar.BRMyMzkF.js";
3
+ import { u as Hl } from "./use-bento-toast-controller.CkpBtweL.js";
4
+ import { u as pe } from "./index.CGBfMQdv.js";
5
+ import { m as ql, l as Gl, f as zl, k as jl } from "./index.DCpihRYV.js";
6
+ import { F as ol } from "./fixed-scroller.nECGGyOp.js";
7
+ import { B as Jl, a as ze } from "./modal-fullscreen.D-ws4648.js";
8
+ import { _ as Kl } from "./modal.vue_vue_type_script_setup_true_lang.DkjMGIP8.js";
9
+ import { u as je, f as nl, d as Yl, B as Xl, _ as Wl } from "./dropdown.BJ0cJ9Ea.js";
10
+ import { g as Ae } from "./generate-uid.DBWe4g6T.js";
11
+ import { B as ie, d as Zl, p as Ql } from "./typography.B6elnWpr.js";
12
+ import { u as il } from "./aria-label.CaUURpnB.js";
13
+ import { u as rl } from "./use-has-slot.CyMiImRQ.js";
14
+ import { B as ul, a as Je } from "./base-button.Dg_u0f2_.js";
15
+ import { g as cl } from "./get-slot-text.8Fbl1GOr.js";
16
+ import { _ as xl } from "./chevron-up.CE9uVcoS.js";
17
+ import { _ as et } from "./chevron-down.DDkuHzKj.js";
18
+ import { _ as Z } from "./_plugin-vue_export-helper.CHgC5LLL.js";
19
+ import { B as dl, u as lt, e as fl, h as tt } from "./button-actions.BYoctIth.js";
20
+ import { B as at } from "./button.DAcwNdtP.js";
21
+ import { a as st } from "./focus-trap.BgyHTR_3.js";
22
+ import { B as ot } from "./loading-indicator.BPol9I84.js";
23
+ import { a as pl } from "./radio-group.DGwM-ijw.js";
24
+ import { t as ye } from "./truncate.DmCXQmeb.js";
25
+ import { b as bl } from "./tooltip.B8LTTssT.js";
26
+ import { _ as vl } from "./cross-small.B6P0qFHF.js";
27
+ import { B as nt } from "./checkbox-group.993HE54c.js";
28
+ import { B as we } from "./input-field.B-Nta-en.js";
29
+ import { B as it } from "./divider.BlxQCxkM.js";
30
+ import { C as rt } from "./checkbox-input.Bv_GjPU8.js";
31
+ /* empty css */
32
+ import { _ as Ke } from "./refresh.DjN1EulV.js";
33
+ import "../assets/filter-bar.css";
34
+ const ml = (e) => e === null || typeof e != "object" ? !1 : Object.prototype.toString.call(e) === "[object Object]", hl = (e) => Array.isArray(e), Ye = (e) => hl(e) ? e.length === 0 || e.every((d) => d === "") : !e, Me = (e, d) => JSON.stringify(e) === JSON.stringify(d), Ce = (e) => ml(e) ? e instanceof Date ? new Date(e.getTime()) : hl(e) ? e.map((d) => Ce(d)) : Object.keys(e).reduce((d, l) => (d[l] = Ce(e[l]), d), {}) : e, ut = (e) => ml(e) ? Object.fromEntries(Object.keys(e).map((d) => [d, void 0])) : void 0;
35
+ function yl(e, d) {
36
+ const l = k(), i = k();
37
+ Ve(() => {
38
+ e.value != null && (i.value = ut(e.value));
39
+ }), le(
40
+ () => e.value,
41
+ (s) => {
42
+ l.value = Ce(s);
43
+ },
44
+ { immediate: !0 }
45
+ );
46
+ const t = r(
47
+ () => Ye(e.value) || Me(e.value, i.value)
48
+ ), u = r(
49
+ () => d.value != null ? Me(d.value, e.value) : t.value
50
+ ), n = r(() => Me(l.value, e.value) || Ye(l.value) && t.value);
51
+ function c(s) {
52
+ l.value = Ce(i.value), s && s(l.value);
53
+ }
54
+ function o(s) {
55
+ l.value = Ce(d.value), s && s(l.value);
56
+ }
57
+ function p(s) {
58
+ l.value = Ce(e.value), s && s(l.value);
59
+ }
60
+ return {
61
+ // Values
62
+ internalFilterValue: l,
63
+ isSecondaryButtonDisabled: u,
64
+ isApplyButtonDisabled: n,
65
+ // Methods
66
+ clearFilter: c,
67
+ resetFilter: o,
68
+ openFilter: p
69
+ };
70
+ }
71
+ const ct = { class: "b-filter-bar-button__container" }, dt = { class: "b-filter-bar-button__label-container" }, ft = {}, pt = /* @__PURE__ */ K({
72
+ ...ft,
73
+ __name: "filter-bar-button",
74
+ props: {
75
+ /**
76
+ * Allows to set the button as active without setting a "secondaryLabel"
77
+ */
78
+ active: { type: Boolean, default: !1 },
79
+ /**
80
+ * The number of applied values within the filter.
81
+ * Text can also be applied here such as 'All'.
82
+ * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
83
+ */
84
+ appliedFiltersCount: { type: [String, Number], default: null },
85
+ /**
86
+ * Disables button functionality.
87
+ */
88
+ disabled: { type: Boolean, default: !1 },
89
+ /**
90
+ * Signifies if the filter is open or closed.
91
+ */
92
+ isFilterOpen: { type: Boolean, default: !1 },
93
+ /**
94
+ * Signifies if the filter is a persistent filter
95
+ */
96
+ isPersistentFilter: { type: Boolean, default: !1 },
97
+ /**
98
+ * Renders the button without the applied state styles
99
+ */
100
+ noAppliedStateStyles: { type: Boolean, default: !1 },
101
+ /**
102
+ * A secondary label to be added next to the primary for additional filtering information.
103
+ * i.e. Can be used to show the set value for said filter.
104
+ */
105
+ secondaryLabel: { type: String, default: null }
106
+ },
107
+ emits: ["click"],
108
+ setup(e, { emit: d }) {
109
+ const l = e, i = d, t = Pe(), u = kl(), n = rl(t), c = r(() => t.default ? cl(t)("default") : null), o = r(() => !n("default") && n("iconLeft")), p = il({ ariaLabel: c }), s = k(null), v = r(() => ({
110
+ "aria-controls": u["aria-controls"]?.toString()
111
+ })), F = r(
112
+ () => (l.appliedFiltersCount || l.secondaryLabel || l.isPersistentFilter) && !l.noAppliedStateStyles
113
+ ), b = r(() => ({
114
+ "b-filter-bar-button--applied": F.value || l.active,
115
+ "b-filter-bar-button--filter-open": l.isFilterOpen && !F.value,
116
+ "b-filter-bar-button--filter-open-applied": l.isFilterOpen && F.value,
117
+ "b-filter-bar-button--with-secondary-label": l.secondaryLabel,
118
+ "b-filter-bar-button--with-counter": l.appliedFiltersCount,
119
+ "b-filter-bar-button--icon-only": o.value
120
+ })), B = ($) => {
121
+ $.preventDefault(), l.disabled || i("click", $);
122
+ };
123
+ return ($, D) => (m(), O(a(ul), be({
124
+ ref_key: "filterBarButtonRef",
125
+ ref: s
126
+ }, $.$attrs, {
127
+ class: ["b-filter-bar-button", b.value],
128
+ disabled: e.disabled,
129
+ "aria-label": a(p),
130
+ "aria-controls": v.value["aria-controls"],
131
+ type: "button",
132
+ onClick: B
133
+ }), {
134
+ default: A(() => [
135
+ q("div", ct, [
136
+ a(n)("iconLeft") ? fe($.$slots, "iconLeft", { key: 0 }, void 0, !0) : H("", !0),
137
+ q("div", dt, [
138
+ E(a(ie), {
139
+ el: "span",
140
+ variant: "body",
141
+ stronger: "",
142
+ class: "b-filter-bar-button__label"
143
+ }, {
144
+ default: A(() => [
145
+ q("span", null, [
146
+ fe($.$slots, "default", {}, void 0, !0)
147
+ ]),
148
+ e.secondaryLabel && !o.value ? (m(), O(a(ie), {
149
+ key: 0,
150
+ el: "span",
151
+ variant: "body",
152
+ stronger: "",
153
+ class: "b-filter-bar-button__label"
154
+ }, {
155
+ default: A(() => D[0] || (D[0] = [
156
+ G(":")
157
+ ])),
158
+ _: 1
159
+ })) : H("", !0)
160
+ ]),
161
+ _: 3
162
+ }),
163
+ e.appliedFiltersCount && !o.value ? (m(), O(a(ie), {
164
+ key: 0,
165
+ class: "b-filter-bar-button__counter",
166
+ el: "span",
167
+ variant: "body",
168
+ stronger: ""
169
+ }, {
170
+ default: A(() => [
171
+ G(z(e.appliedFiltersCount), 1)
172
+ ]),
173
+ _: 1
174
+ })) : H("", !0),
175
+ e.secondaryLabel && !o.value ? (m(), O(a(ie), {
176
+ key: 1,
177
+ el: "span",
178
+ variant: "body",
179
+ stronger: "",
180
+ class: "b-filter-bar-button__secondary-label"
181
+ }, {
182
+ default: A(() => [
183
+ G(z(e.secondaryLabel), 1)
184
+ ]),
185
+ _: 1
186
+ })) : H("", !0)
187
+ ])
188
+ ])
189
+ ]),
190
+ _: 3
191
+ }, 16, ["class", "disabled", "aria-label", "aria-controls"]));
192
+ }
193
+ }), Se = /* @__PURE__ */ Z(pt, [["__scopeId", "data-v-d33bd141"]]);
194
+ var W = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.UPDATE = "update", e))(W || {}), Fe = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.UPDATE_FILTER_VALUES_OBJECT = "update:filter-values-object", e.UPDATE_FILTER_VALUES_ARRAY = "update:filter-values", e))(Fe || {}), Y = /* @__PURE__ */ ((e) => (e.BOOLEAN = "BentoBooleanFilter", e.RANGE = "BentoRangeFilter", e.INPUT = "BentoInputFilter", e.INPUT_DROPDOWN = "BentoInputWithDropdownFilter", e.SELECT = "BentoSelectFilter", e.SELECT_AVATAR = "BentoSelectAvatarFilter", e.SELECT_COUNTRY = "BentoSelectCountryFilter", e.SELECT_CURRENCY = "BentoSelectCurrencyFilter", e.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", e.SELECT_TAG = "BentoSelectTagFilter", e.DATE = "BentoDateFilter", e.DATE_RANGE = "BentoDateRangeFilter", e.RADIO_GROUP = "BentoRadioGroupFilter", e.CHECKBOX_GROUP = "BentoCheckboxGroupFilter", e.TOGGLE = "BentoToggleFilter", e))(Y || {});
195
+ const Xe = 430, We = 700;
196
+ function bt(e, d) {
197
+ const l = Vl("div"), i = k(!1), t = k(0), u = r(() => !(t.value < Xe && d.value.small === "multi-line"));
198
+ function n() {
199
+ i.value = !1, l.value = "div";
200
+ }
201
+ function c() {
202
+ i.value = !0, l.value = ol;
203
+ }
204
+ function o() {
205
+ t.value >= We ? d.value?.large === "one-line" ? c() : n() : t.value >= Xe && d.value?.medium === "multi-line" ? n() : c();
206
+ }
207
+ le(() => d.value, o), ql(e, (v) => {
208
+ t.value = v[0].contentRect.width, o();
209
+ });
210
+ const p = r(() => t.value >= We), s = r(() => ({ "b-filter-bar--large-layout": p.value }));
211
+ return {
212
+ screenLayoutComponent: l,
213
+ showSearchbarInsideContainer: u,
214
+ isOneLineLayout: i,
215
+ isLargeLayout: p,
216
+ rootElementConditionalClasses: s
217
+ };
218
+ }
219
+ var He = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(He || {});
220
+ const vt = K({
221
+ name: "base-filter-button",
222
+ components: { BaseButton: ul, BentoTypography: ie, ChevronUpIcon: xl, ChevronDownIcon: et },
223
+ props: {
224
+ /**
225
+ * The number of applies values within the filter.
226
+ * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
227
+ */
228
+ amountAppliedValues: { type: [Number, String], default: null },
229
+ /**
230
+ * Disables button functionality.
231
+ */
232
+ disabled: { type: Boolean, default: !1 },
233
+ /**
234
+ * Signifies if the filter is open or closed.
235
+ */
236
+ isFilterOpen: { type: Boolean, default: !1 },
237
+ /**
238
+ * Toggles if a chevron icon should be displayed in the button.
239
+ * The chevron will change depending on the open state of the filter.
240
+ */
241
+ hasChevron: { type: Boolean, default: !1 },
242
+ /**
243
+ * Renders the text in a stronger variant.
244
+ */
245
+ bold: { type: Boolean, default: !1 }
246
+ },
247
+ emits: [Je.CLICK],
248
+ setup(e, { slots: d, emit: l, attrs: i }) {
249
+ const t = r(() => d.default ? cl(d)("default") : null), u = il({ ariaLabel: t }), n = k(null), c = r(() => ({
250
+ "aria-controls": i["aria-controls"]?.toString()
251
+ })), o = r(() => ({
252
+ "b-base-filter-button--with-chevron": e.hasChevron,
253
+ "b-base-filter-button--filter-open": e.isFilterOpen
254
+ }));
255
+ return {
256
+ // Values
257
+ ariaAttributes: c,
258
+ computedAriaLabel: u,
259
+ conditionalClasses: o,
260
+ // Methods
261
+ onClickButton: () => {
262
+ e.disabled || l(Je.CLICK);
263
+ },
264
+ hasSlot: rl(d),
265
+ // Refs
266
+ baseFilterButtonRef: n
267
+ };
268
+ }
269
+ }), mt = { class: "b-base-filter-button__default-container" }, ht = { class: "b-base-filter-button__label-container" }, yt = {
270
+ key: 0,
271
+ class: "b-base-filter-button__counter-wrapper"
272
+ };
273
+ function Ft(e, d, l, i, t, u) {
274
+ const n = ge("bento-typography"), c = ge("chevron-up-icon"), o = ge("chevron-down-icon"), p = ge("base-button");
275
+ return m(), O(p, {
276
+ ref: "baseFilterButtonRef",
277
+ class: ee(["b-base-filter-button", e.conditionalClasses]),
278
+ disabled: e.disabled,
279
+ "aria-label": e.computedAriaLabel,
280
+ "aria-controls": e.ariaAttributes["aria-controls"],
281
+ type: "button",
282
+ onClick: e.onClickButton
283
+ }, Re({
284
+ default: A(() => [
285
+ q("div", mt, [
286
+ q("div", ht, [
287
+ E(n, {
288
+ el: "span",
289
+ variant: "body",
290
+ stronger: e.bold,
291
+ class: "b-base-filter-button__label"
292
+ }, {
293
+ default: A(() => [
294
+ fe(e.$slots, "default", {}, void 0, !0)
295
+ ]),
296
+ _: 3
297
+ }, 8, ["stronger"])
298
+ ]),
299
+ e.amountAppliedValues && !e.hasChevron ? (m(), w("div", yt, [
300
+ E(n, {
301
+ class: "b-base-filter-button__counter",
302
+ el: "span",
303
+ variant: "body",
304
+ stronger: ""
305
+ }, {
306
+ default: A(() => [
307
+ G(z(e.amountAppliedValues), 1)
308
+ ]),
309
+ _: 1
310
+ })
311
+ ])) : H("", !0)
312
+ ])
313
+ ]),
314
+ _: 2
315
+ }, [
316
+ e.hasChevron ? {
317
+ name: "iconRight",
318
+ fn: A(() => [
319
+ e.isFilterOpen ? (m(), O(c, {
320
+ key: 0,
321
+ "aria-hidden": "true"
322
+ })) : (m(), O(o, {
323
+ key: 1,
324
+ "aria-hidden": "true"
325
+ }))
326
+ ]),
327
+ key: "0"
328
+ } : void 0
329
+ ]), 1032, ["class", "disabled", "aria-label", "aria-controls", "onClick"]);
330
+ }
331
+ const gt = /* @__PURE__ */ Z(vt, [["render", Ft], ["__scopeId", "data-v-af9efc73"]]), St = K({
332
+ name: "all-filters-modal-button",
333
+ components: { BaseFilterButton: gt },
334
+ props: {
335
+ /**
336
+ * Button label to be displayed
337
+ */
338
+ label: { type: String, required: !0 },
339
+ /**
340
+ * Total count of applied filters
341
+ */
342
+ appliedFiltersCount: { type: [Number, String], default: null },
343
+ /**
344
+ * Indicates whether the filter popover tied to this button is showing
345
+ */
346
+ isFilterOpen: { type: Boolean, default: !1 },
347
+ /**
348
+ * Disables button functionality.
349
+ */
350
+ disabled: { type: Boolean, default: !1 }
351
+ },
352
+ emits: ["click"],
353
+ setup(e, { emit: d }) {
354
+ return {
355
+ conditionalClasses: r(() => ({
356
+ "b-all-filters-modal-button--with-counter": e.appliedFiltersCount,
357
+ "b-all-filters-modal-button--filter-open": e.isFilterOpen
358
+ })),
359
+ onClick: () => {
360
+ d("click");
361
+ }
362
+ };
363
+ }
364
+ });
365
+ function Bt(e, d, l, i, t, u) {
366
+ const n = ge("base-filter-button");
367
+ return m(), O(n, {
368
+ class: ee(["b-all-filters-modal-button", e.conditionalClasses]),
369
+ "amount-applied-values": e.appliedFiltersCount,
370
+ "is-filter-open": e.isFilterOpen,
371
+ disabled: e.disabled,
372
+ onClick: e.onClick
373
+ }, {
374
+ default: A(() => [
375
+ G(z(e.label), 1)
376
+ ]),
377
+ _: 1
378
+ }, 8, ["class", "amount-applied-values", "is-filter-open", "disabled", "onClick"]);
379
+ }
380
+ const Ze = /* @__PURE__ */ Z(St, [["render", Bt], ["__scopeId", "data-v-b96a672f"]]), Ct = {
381
+ key: 0,
382
+ class: "b-all-filters-modal-filter-selection__empty-search-message"
383
+ }, At = {
384
+ key: 1,
385
+ class: "b-all-filters-modal-filter-selection__filters-section"
386
+ }, Tt = ["aria-labelledby"], _t = {
387
+ key: 2,
388
+ class: "b-all-filters-modal-filter-selection__filters-section"
389
+ }, Rt = ["aria-labelledby"], It = {
390
+ name: "all-filters-modal-filter-selection"
391
+ }, Lt = /* @__PURE__ */ K({
392
+ ...It,
393
+ props: {
394
+ activeFilters: {},
395
+ actions: { default: () => [] },
396
+ activeFiltersLabel: {},
397
+ emptySearchMessage: { default: "" },
398
+ getFilterCount: {},
399
+ otherFilters: {},
400
+ otherFiltersLabel: {},
401
+ selectedFilterLabel: {},
402
+ searchBarAriaLabel: {},
403
+ searchTerm: {},
404
+ smallScreen: { type: Boolean, default: !1 },
405
+ uniqueId: {}
406
+ },
407
+ emits: ["clear-search", "keydown-right", "select-filter", "update:search-term"],
408
+ setup(e, { expose: d }) {
409
+ const l = e, i = r(() => ({
410
+ "b-all-filters-modal-filter-selection--small-screen": l.smallScreen
411
+ })), t = k({}), u = r(() => l.smallScreen ? "small-screen-" : "");
412
+ qe(() => {
413
+ t.value = {};
414
+ });
415
+ const n = (o, p) => {
416
+ o && (t.value[p] = o);
417
+ };
418
+ return d({ focusFilter: (o) => {
419
+ t.value[o]?.$el?.focus();
420
+ } }), (o, p) => (m(), w("div", {
421
+ class: ee(["b-all-filters-modal-filter-selection", i.value]),
422
+ onKeydown: p[2] || (p[2] = me((s) => o.$emit("keydown-right"), ["right"]))
423
+ }, [
424
+ E(ke, {
425
+ class: "b-all-filters-modal-filter-selection__search-bar",
426
+ value: o.searchTerm,
427
+ "input-field-aria-label": o.searchBarAriaLabel,
428
+ onInput: p[0] || (p[0] = (s) => o.$emit("update:search-term", s)),
429
+ onClear: p[1] || (p[1] = (s) => o.$emit("clear-search"))
430
+ }, null, 8, ["value", "input-field-aria-label"]),
431
+ o.emptySearchMessage ? (m(), w("div", Ct, [
432
+ E(a(ie), { el: "span" }, {
433
+ default: A(() => [
434
+ G(z(o.emptySearchMessage), 1)
435
+ ]),
436
+ _: 1
437
+ })
438
+ ])) : H("", !0),
439
+ o.activeFilters.length ? (m(), w("div", At, [
440
+ E(a(ie), {
441
+ id: `active-filters-${u.value}${o.uniqueId}`,
442
+ class: "b-all-filters-modal-filter-selection__filters-section-title",
443
+ el: "span",
444
+ variant: "caption"
445
+ }, {
446
+ default: A(() => [
447
+ G(z(o.activeFiltersLabel), 1)
448
+ ]),
449
+ _: 1
450
+ }, 8, ["id"]),
451
+ q("ul", {
452
+ class: "b-all-filters-modal-filter-selection__filters-list",
453
+ "aria-labelledby": `active-filters-${u.value}${o.uniqueId}`
454
+ }, [
455
+ (m(!0), w(Oe, null, he(o.activeFilters, (s) => (m(), w("li", {
456
+ key: `${s.label}-${s.field}`
457
+ }, [
458
+ E(Ze, {
459
+ ref_for: !0,
460
+ ref: (v) => n(v, s.label),
461
+ label: s.label,
462
+ "applied-filters-count": o.getFilterCount(s),
463
+ "is-filter-open": !o.smallScreen && o.selectedFilterLabel === s.label,
464
+ disabled: s.disabled,
465
+ onClick: (v) => o.$emit("select-filter", s.label, s.field)
466
+ }, null, 8, ["label", "applied-filters-count", "is-filter-open", "disabled", "onClick"])
467
+ ]))), 128))
468
+ ], 8, Tt)
469
+ ])) : H("", !0),
470
+ o.otherFilters.length ? (m(), w("div", _t, [
471
+ o.activeFilters.length ? (m(), O(a(ie), {
472
+ key: 0,
473
+ id: `other-filters-${u.value}${o.uniqueId}`,
474
+ class: "b-all-filters-modal-filter-selection__filters-section-title",
475
+ el: "span",
476
+ variant: "caption"
477
+ }, {
478
+ default: A(() => [
479
+ G(z(o.otherFiltersLabel), 1)
480
+ ]),
481
+ _: 1
482
+ }, 8, ["id"])) : H("", !0),
483
+ q("ul", {
484
+ class: "b-all-filters-modal-filter-selection__filters-list",
485
+ "aria-labelledby": `other-filters-${u.value}${o.uniqueId}`
486
+ }, [
487
+ (m(!0), w(Oe, null, he(o.otherFilters, (s) => (m(), w("li", {
488
+ key: `${s.label}-${s.field}`
489
+ }, [
490
+ E(Ze, {
491
+ ref_for: !0,
492
+ ref: (v) => n(v, s.label),
493
+ label: s.label,
494
+ disabled: s.disabled,
495
+ "applied-filters-count": o.getFilterCount(s),
496
+ "is-filter-open": !o.smallScreen && o.selectedFilterLabel === s.label,
497
+ onClick: (v) => o.$emit("select-filter", s.label, s.field)
498
+ }, null, 8, ["label", "disabled", "applied-filters-count", "is-filter-open", "onClick"])
499
+ ]))), 128))
500
+ ], 8, Rt)
501
+ ])) : H("", !0),
502
+ o.smallScreen ? (m(), O(a(dl), {
503
+ key: 3,
504
+ class: "b-all-filters-modal-filter-selection__actions",
505
+ actions: o.actions,
506
+ layout: "vertical-stack"
507
+ }, null, 8, ["actions"])) : H("", !0)
508
+ ], 34));
509
+ }
510
+ }), Qe = /* @__PURE__ */ Z(Lt, [["__scopeId", "data-v-7a0f5687"]]), Et = {}, Ot = /* @__PURE__ */ K({
511
+ ...Et,
512
+ __name: "filter-bar-button-group",
513
+ props: {
514
+ isActive: { type: Boolean, default: !1 },
515
+ skipGrouping: { type: Boolean, default: !1 }
516
+ },
517
+ setup(e) {
518
+ const d = e, l = r(() => ({
519
+ "b-filter-bar-button-group--active": d.isActive,
520
+ "b-filter-bar-button-group--grouped": !d.skipGrouping
521
+ }));
522
+ return (i, t) => (m(), w("div", {
523
+ class: ee(["b-filter-bar-button-group", l.value])
524
+ }, [
525
+ fe(i.$slots, "default", {}, void 0, !0)
526
+ ], 2));
527
+ }
528
+ }), Fl = /* @__PURE__ */ Z(Ot, [["__scopeId", "data-v-9ce16194"]]);
529
+ var se = /* @__PURE__ */ ((e) => (e.APPLY = "apply", e.CLEAR = "clear", e.OPEN = "open", e.CLOSE = "close", e.RESET = "reset", e.CANCEL = "cancel", e))(se || {});
530
+ const gl = {
531
+ "de-DE": { apply: "Anwenden", clear: "Löschen", clearFilter: "Filter löschen {function}", filtersHaveBeenCleared: "Filter wurden gelöscht", numberSelected: "{numberOfItemsSelected} ausgewählt", reset: "Zurücksetzen", resetFilter: "Filter zurücksetzen {function}" },
532
+ "en-GB": { apply: "Apply", clear: "Clear", clearFilter: "Clear filter {function}", filtersHaveBeenCleared: "Filters have been cleared", numberSelected: "{numberOfItemsSelected} selected", reset: "Reset", resetFilter: "Reset filter {function}" },
533
+ "en-US": { apply: "Apply", clear: "Clear", clearFilter: "Clear filter {function}", filtersHaveBeenCleared: "Filters have been cleared", numberSelected: "{numberOfItemsSelected} selected", reset: "Reset", resetFilter: "Reset filter {function}" },
534
+ "es-419": { apply: "Aplicar", clear: "Borrar", clearFilter: "Borrar filtro {function}", filtersHaveBeenCleared: "Se borraron los filtros", numberSelected: "{numberOfItemsSelected} seleccionados", reset: "Restablecer", resetFilter: "Restablecer filtro {function}" },
535
+ "es-ES": { apply: "Aplicar", clear: "Borrar", clearFilter: "Borrar filtro {function}", filtersHaveBeenCleared: "Se han borrado los filtros", numberSelected: "{numberOfItemsSelected} seleccionado(s)", reset: "Reiniciar", resetFilter: "Restablecer filtro {function}" },
536
+ "es-MX": { apply: "Aplicar", clear: "Borrar", clearFilter: "Borrar filtro {function}", filtersHaveBeenCleared: "Se limpiaron los filtros", numberSelected: "{numberOfItemsSelected} seleccionado", reset: "Restablecer", resetFilter: "Restablecer filtro {function}" },
537
+ "fr-FR": { apply: "Appliquer", clear: "Effacer", clearFilter: "Effacer le filtre {function}", filtersHaveBeenCleared: "Les filtres ont été effacés", numberSelected: "{numberOfItemsSelected} sélectionné(s)", reset: "Réinitialiser", resetFilter: "Réinitialiser le filtre {function}" },
538
+ "it-IT": { apply: "Applica", clear: "Cancella", clearFilter: "Cancella filtro {function}", filtersHaveBeenCleared: "I filtri sono stati cancellati", numberSelected: "{numberOfItemsSelected} selezionati", reset: "Resetta", resetFilter: "Resetta filtro {function}" },
539
+ "ja-JP": { apply: "適用", clear: "クリア", clearFilter: "フィルター{function}をクリア", filtersHaveBeenCleared: "フィルターをクリアしました", numberSelected: "{numberOfItemsSelected}件選択済み", reset: "リセット", resetFilter: "フィルター{function}をリセット" },
540
+ "pt-BR": { apply: "Aplicar", clear: "Apagar", clearFilter: "Limpar filtro {function}", filtersHaveBeenCleared: "Os filtros foram apagados", numberSelected: "{numberOfItemsSelected} selecionados", reset: "Redefinir", resetFilter: "Limpar filtro {function}" },
541
+ "zh-CN": { apply: "应用", clear: "清除", clearFilter: "清除筛选器 {function}", filtersHaveBeenCleared: "筛选器已清除", numberSelected: "{numberOfItemsSelected} 已选择", reset: "重置", resetFilter: "重置过滤器 {function}" }
542
+ }, $t = { key: 0 }, Nt = {
543
+ key: 1,
544
+ class: "b-base-filter"
545
+ }, kt = {
546
+ i18n: { messages: gl },
547
+ name: "bento-base-filter"
548
+ }, Vt = /* @__PURE__ */ K({
549
+ ...kt,
550
+ props: {
551
+ appliedFiltersCount: { default: null },
552
+ buttonLabel: { default: void 0 },
553
+ buttonSecondaryLabel: { default: void 0 },
554
+ disabled: { type: Boolean, default: !1 },
555
+ defaultValue: { type: [String, null, Object, Number, Array, Date, Boolean], default: null },
556
+ onlySlot: { type: Boolean, default: !1 },
557
+ controlled: { type: Boolean, default: !1 },
558
+ disableApplyButton: { type: Boolean, default: !1 },
559
+ disableSecondaryButton: { type: Boolean, default: !1 },
560
+ field: {},
561
+ label: {},
562
+ fitContent: { type: Boolean, default: void 0 },
563
+ tooltipText: { default: void 0 },
564
+ tooltipPosition: { default: void 0 },
565
+ value: { type: [String, null, Object, Number, Array, Date, Boolean], default: void 0 }
566
+ },
567
+ emits: [
568
+ se.APPLY,
569
+ se.CLEAR,
570
+ se.OPEN,
571
+ se.CLOSE,
572
+ se.RESET,
573
+ se.CANCEL
574
+ ],
575
+ setup(e, { expose: d, emit: l }) {
576
+ const i = l, t = e, { t: u } = pe({ messages: gl }), n = Ae("base-filter-popover"), c = k(!1), o = k(null), p = k(null), s = r(() => o.value?.$el ?? null), v = (P) => {
577
+ p.value = P ?? null;
578
+ }, F = r(() => t.defaultValue !== null), b = r(() => F.value ? JSON.stringify(t.value) !== JSON.stringify(t.defaultValue) : t.appliedFiltersCount || t.buttonSecondaryLabel), B = r(() => {
579
+ let P = t.buttonSecondaryLabel ? `: ${t.buttonSecondaryLabel}` : "";
580
+ return t.appliedFiltersCount && (P = `: ${u("numberSelected", { numberOfItemsSelected: t.appliedFiltersCount })}`), (F.value ? t.label : D.value) + P;
581
+ }), $ = r(
582
+ () => F.value ? u("resetFilter", {
583
+ function: D.value
584
+ }) : u("clearFilter", {
585
+ function: D.value
586
+ })
587
+ ), D = r(() => t.buttonLabel || t.label), M = async () => {
588
+ await Ge(), o.value?.$el?.focus();
589
+ }, I = () => {
590
+ c.value && (c.value = !1, M(), i(se.CLOSE));
591
+ }, L = () => {
592
+ F.value ? i(se.RESET) : i(se.CLEAR), M();
593
+ }, J = () => {
594
+ I(), L();
595
+ }, Q = () => {
596
+ c.value ? I() : (c.value = !0, i(se.OPEN));
597
+ }, U = () => {
598
+ I(), i(se.APPLY);
599
+ }, te = () => {
600
+ I(), i(se.CANCEL);
601
+ }, oe = () => te(), x = r(() => [
602
+ {
603
+ title: u("apply"),
604
+ event: U,
605
+ disabled: t.disableApplyButton
606
+ },
607
+ {
608
+ title: F.value ? u("reset") : u("clear"),
609
+ event: J,
610
+ disabled: t.disableSecondaryButton
611
+ }
612
+ ]);
613
+ return le(
614
+ () => c.value,
615
+ (P, g) => {
616
+ !P && g && o.value?.filterBarButtonRef?.bentoBaseButtonRef && o.value.filterBarButtonRef.bentoBaseButtonRef.focus();
617
+ }
618
+ ), lt(p, oe, { ignore: [o] }), d({
619
+ closePopover: I
620
+ }), (P, g) => P.onlySlot ? (m(), w("div", $t, [
621
+ fe(P.$slots, "default", {}, void 0, !0)
622
+ ])) : (m(), w("div", Nt, [
623
+ Ue((m(), O(Fl, {
624
+ "is-active": c.value,
625
+ "skip-grouping": !b.value
626
+ }, {
627
+ default: A(() => [
628
+ E(a(Se), {
629
+ ref_key: "filterButtonRef",
630
+ ref: o,
631
+ "aria-label": B.value,
632
+ "aria-controls": c.value ? a(n) : null,
633
+ "applied-filters-count": P.appliedFiltersCount,
634
+ disabled: P.disabled,
635
+ "is-persistent-filter": F.value,
636
+ "is-filter-open": c.value,
637
+ "secondary-label": P.buttonSecondaryLabel,
638
+ onClick: Q,
639
+ onKeydown: me(I, ["esc"])
640
+ }, {
641
+ default: A(() => [
642
+ G(z(D.value), 1)
643
+ ]),
644
+ _: 1
645
+ }, 8, ["aria-label", "aria-controls", "applied-filters-count", "disabled", "is-persistent-filter", "is-filter-open", "secondary-label"]),
646
+ b.value ? (m(), O(a(Se), {
647
+ key: 0,
648
+ "applied-filters-count": P.appliedFiltersCount,
649
+ disabled: P.disabled,
650
+ "is-persistent-filter": F.value,
651
+ "is-filter-open": c.value,
652
+ "secondary-label": P.buttonSecondaryLabel,
653
+ onClick: L
654
+ }, {
655
+ iconLeft: A(() => [
656
+ E(a(vl), { "svg-title": $.value }, null, 8, ["svg-title"])
657
+ ]),
658
+ _: 1
659
+ }, 8, ["applied-filters-count", "disabled", "is-persistent-filter", "is-filter-open", "secondary-label"])) : H("", !0)
660
+ ]),
661
+ _: 1
662
+ }, 8, ["is-active", "skip-grouping"])), [
663
+ [a(bl), P.tooltipText, P.tooltipPosition]
664
+ ]),
665
+ s.value ? (m(), O(fl, { key: 0 }, {
666
+ default: A(() => [
667
+ E(tt, {
668
+ id: a(n),
669
+ ref: v,
670
+ class: "b-base-filter__popover",
671
+ divider: "",
672
+ "aria-label": P.label,
673
+ open: c.value,
674
+ actions: P.controlled ? null : x.value,
675
+ "actions-layout": "space-between",
676
+ "target-element": s.value,
677
+ title: P.controlled ? null : P.label,
678
+ "fit-content": P.fitContent,
679
+ position: "bottom-start",
680
+ "without-space": P.controlled,
681
+ "fallback-position": ["bottom-end"],
682
+ "overflow-visible": ""
683
+ }, {
684
+ default: A(() => [
685
+ q("div", {
686
+ onKeydown: me(te, ["esc"])
687
+ }, [
688
+ fe(P.$slots, "default", {}, void 0, !0)
689
+ ], 32)
690
+ ]),
691
+ _: 3
692
+ }, 8, ["id", "aria-label", "open", "actions", "target-element", "title", "fit-content", "without-space"])
693
+ ]),
694
+ _: 3
695
+ })) : H("", !0)
696
+ ]));
697
+ }
698
+ }), Te = /* @__PURE__ */ Z(Vt, [["__scopeId", "data-v-1ad6ef5f"]]), Pt = (e) => e instanceof Array, xe = (e) => Pt(e) ? e.length === 0 || e.every((d) => d === "") : !e, el = (e, d) => JSON.stringify(e) === JSON.stringify(d), Ie = (e, d) => {
699
+ const l = k(e.value);
700
+ le(
701
+ () => e.value,
702
+ () => {
703
+ l.value = e.value;
704
+ }
705
+ );
706
+ const i = r(() => xe(e.value)), t = r(
707
+ () => d.value !== null ? el(d.value, e.value) : i.value
708
+ ), u = r(() => el(l.value, e.value) || xe(l.value) && i.value);
709
+ return {
710
+ internalFilterValue: l,
711
+ isSecondaryButtonDisabled: t,
712
+ isApplyButtonDisabled: u
713
+ };
714
+ }, ll = {
715
+ "de-DE": { no: "Nein", yes: "Ja" },
716
+ "en-GB": { no: "No", yes: "Yes" },
717
+ "en-US": { no: "No", yes: "Yes" },
718
+ "es-419": { no: "No", yes: "Sí" },
719
+ "es-ES": { no: "No", yes: "Sí" },
720
+ "es-MX": { no: "No", yes: "Sí" },
721
+ "fr-FR": { no: "Non", yes: "Oui" },
722
+ "it-IT": { no: "No", yes: "Sì" },
723
+ "ja-JP": { no: "いいえ", yes: "はい" },
724
+ "pt-BR": { no: "Não", yes: "Sim" },
725
+ "zh-CN": { no: "不", yes: "是" }
726
+ }, Dt = K({
727
+ name: "bento-boolean-filter",
728
+ i18n: { messages: ll },
729
+ components: { BentoBaseFilter: Te, BentoRadioGroup: pl },
730
+ props: {
731
+ /**
732
+ * Disables the filter from being interacted with.
733
+ */
734
+ disabled: { type: Boolean, default: !1 },
735
+ /**
736
+ * Default value of the filter to reset to.
737
+ */
738
+ defaultValue: { type: [String, Boolean], default: null },
739
+ /**
740
+ * Filter name/key referencing the actual property name in the data set.
741
+ * Should be unique per filter bar.
742
+ */
743
+ field: { type: String, required: !0 },
744
+ /**
745
+ * Label text to be displayed
746
+ */
747
+ label: { type: String, required: !0 },
748
+ /**
749
+ * Current value of the filter
750
+ */
751
+ value: { type: [String, Boolean], default: null },
752
+ /**
753
+ * Renders the base filter's slot content only - leaving out the button and the popover.
754
+ * Used for the allFiltersModal component.
755
+ */
756
+ onlySlot: { type: Boolean, default: !1 },
757
+ /**
758
+ * List of options that are needed to setup the filter
759
+ * Available options:
760
+ * - positiveOption: The positive option label/value
761
+ * - negativeOption: The positive option label/value
762
+ * - tooltipPosition: The position of the tooltip attached to the filter button
763
+ * - tooltipText: The content of the tooltip attached to the filter button
764
+ */
765
+ options: {
766
+ type: Object,
767
+ default: void 0
768
+ }
769
+ },
770
+ emits: [W.INPUT, W.UPDATE],
771
+ setup(e, { emit: d }) {
772
+ const { t: l } = pe({ messages: ll }), i = (L) => typeof L == "boolean" ? L?.toString() : L, t = (L) => e?.options?.positiveOption?.value !== void 0 && e?.options?.negativeOption?.value !== void 0 && typeof e.options.positiveOption.value == "boolean" && typeof e.options.negativeOption.value == "boolean" && typeof L == "string" ? L === "true" : L, u = r(() => i(e.defaultValue)), n = r(() => i(e.value)), c = r(() => e.options && e.options.positiveOption && e.options.negativeOption ? [
773
+ {
774
+ ...e.options.positiveOption,
775
+ value: i(e.options.positiveOption.value)
776
+ },
777
+ {
778
+ ...e.options.negativeOption,
779
+ value: i(e.options.negativeOption.value)
780
+ }
781
+ ] : [
782
+ { value: "yes", label: l("yes") },
783
+ { value: "no", label: l("no") }
784
+ ]), { internalFilterValue: o, isSecondaryButtonDisabled: p, isApplyButtonDisabled: s } = Ie(
785
+ n,
786
+ u
787
+ ), v = r(() => e.label), F = r(
788
+ () => ye(c.value.find(({ value: L }) => L === n.value)?.label, 12)
789
+ ), b = r(() => ({
790
+ "b-boolean-filter--only-slot": e.onlySlot
791
+ }));
792
+ qe(() => {
793
+ o.value || (o.value = null);
794
+ });
795
+ const B = (L) => {
796
+ o.value = L, d(W.INPUT, {
797
+ ...e,
798
+ value: t(o.value)
799
+ });
800
+ }, $ = () => {
801
+ o.value = n.value;
802
+ }, D = () => {
803
+ d(W.UPDATE, {
804
+ ...e,
805
+ value: t(o.value)
806
+ });
807
+ }, M = () => d(W.UPDATE, { ...e, value: e.defaultValue }), I = () => {
808
+ o.value = null, D();
809
+ };
810
+ return Ve(() => {
811
+ Zl(
812
+ 'Boolean filter "BentoFilterItemType.BOOLEAN"',
813
+ 'Use the Radio group filter type "BentoFilterItemType.RADIO_GROUP" instead.',
814
+ "3.0.0"
815
+ );
816
+ }), {
817
+ // Values
818
+ items: c,
819
+ conditionalClasses: b,
820
+ buttonLabel: v,
821
+ buttonSecondaryLabel: F,
822
+ internalFilterValue: o,
823
+ isApplyButtonDisabled: s,
824
+ isSecondaryButtonDisabled: p,
825
+ translatedValue: n,
826
+ translatedDefaultValue: u,
827
+ // Events
828
+ onInput: B,
829
+ updateFilter: D,
830
+ clearFilter: I,
831
+ openFilter: $,
832
+ resetFilter: M
833
+ };
834
+ }
835
+ });
836
+ function Mt(e, d, l, i, t, u) {
837
+ const n = ge("bento-radio-group"), c = ge("bento-base-filter");
838
+ return m(), O(c, be(e.$props, {
839
+ value: e.translatedValue,
840
+ "default-value": e.translatedDefaultValue,
841
+ "button-label": e.buttonLabel,
842
+ "button-secondary-label": e.buttonSecondaryLabel,
843
+ "disable-apply-button": e.isApplyButtonDisabled,
844
+ "disable-secondary-button": e.isSecondaryButtonDisabled,
845
+ "only-slot": e.onlySlot,
846
+ "tooltip-position": e.options?.tooltipPosition,
847
+ "tooltip-text": e.options?.tooltipText,
848
+ onApply: e.updateFilter,
849
+ onClear: e.clearFilter,
850
+ onOpen: e.openFilter,
851
+ onReset: e.resetFilter
852
+ }), {
853
+ default: A(() => [
854
+ q("div", {
855
+ class: ee(["b-boolean-filter", e.conditionalClasses]),
856
+ onKeydown: d[0] || (d[0] = me((...o) => e.updateFilter && e.updateFilter(...o), ["enter"]))
857
+ }, [
858
+ E(n, {
859
+ items: e.items,
860
+ label: e.label,
861
+ "model-value": e.internalFilterValue,
862
+ disabled: e.disabled,
863
+ "hide-label": "",
864
+ "onUpdate:modelValue": e.onInput
865
+ }, null, 8, ["items", "label", "model-value", "disabled", "onUpdate:modelValue"])
866
+ ], 34)
867
+ ]),
868
+ _: 1
869
+ }, 16, ["value", "default-value", "button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot", "tooltip-position", "tooltip-text", "onApply", "onClear", "onOpen", "onReset"]);
870
+ }
871
+ const Ut = /* @__PURE__ */ Z(Dt, [["render", Mt], ["__scopeId", "data-v-b2ca3c97"]]), Sl = {
872
+ "de-DE": { all: "Alle" },
873
+ "en-GB": { all: "All" },
874
+ "en-US": { all: "All" },
875
+ "es-419": { all: "Todos" },
876
+ "es-ES": { all: "Todos" },
877
+ "es-MX": { all: "Todos" },
878
+ "fr-FR": { all: "Tout" },
879
+ "it-IT": { all: "Tutti" },
880
+ "ja-JP": { all: "すべて" },
881
+ "pt-BR": { all: "Todos os" },
882
+ "zh-CN": { all: "全部" }
883
+ }, wt = {
884
+ name: "bento-checkbox-group-filter",
885
+ i18n: { messages: Sl }
886
+ }, Ht = /* @__PURE__ */ K({
887
+ ...wt,
888
+ props: {
889
+ disabled: { type: Boolean, default: !1 },
890
+ defaultValue: { default: void 0 },
891
+ field: {},
892
+ label: {},
893
+ onlySlot: { type: Boolean, default: !1 },
894
+ options: { default: void 0 },
895
+ value: { default: void 0 }
896
+ },
897
+ emits: ["input", "update"],
898
+ setup(e, { emit: d }) {
899
+ const l = e, i = d, { t } = pe({ messages: Sl }), {
900
+ internalFilterValue: u,
901
+ isSecondaryButtonDisabled: n,
902
+ isApplyButtonDisabled: c,
903
+ clearFilter: o,
904
+ resetFilter: p,
905
+ openFilter: s
906
+ } = yl(X(l, "value"), X(l, "defaultValue")), v = k(u.value ?? []);
907
+ le(
908
+ () => l.value,
909
+ (I) => {
910
+ v.value = I ?? [];
911
+ }
912
+ );
913
+ const F = r(() => ({
914
+ "b-checkbox-group-filter--only-slot": l.onlySlot
915
+ })), b = r(() => l.label), B = r(
916
+ () => v.value.length === 1 ? ye(
917
+ l.options?.checkboxItems.find((I) => v.value[0] === I.value)?.label ?? "",
918
+ 12
919
+ ) : null
920
+ ), $ = r(() => !v.value.length || B.value ? null : v.value.length === l.options?.checkboxItems.length ? t("all") : v.value.length), D = (I) => {
921
+ v.value = I ?? [], i("update", { ...l, value: I });
922
+ }, M = (I) => {
923
+ u.value = I, i("input", { ...l, value: u.value });
924
+ };
925
+ return (I, L) => (m(), O(a(Te), be(I.$props, {
926
+ "applied-filters-count": $.value,
927
+ "button-label": b.value,
928
+ "button-secondary-label": B.value,
929
+ "disable-apply-button": a(c),
930
+ "disable-secondary-button": a(n),
931
+ "tooltip-position": I.options?.tooltipPosition,
932
+ "tooltip-text": I.options?.tooltipText,
933
+ onApply: L[1] || (L[1] = (J) => D(a(u))),
934
+ onClear: L[2] || (L[2] = (J) => a(o)(D)),
935
+ onOpen: a(s),
936
+ onReset: L[3] || (L[3] = (J) => a(p)(D))
937
+ }), {
938
+ default: A(() => [
939
+ q("div", {
940
+ class: ee(["b-checkbox-group-filter", F.value]),
941
+ onKeydown: L[0] || (L[0] = me((J) => D(a(u)), ["enter"]))
942
+ }, [
943
+ E(nt, {
944
+ "model-value": a(u),
945
+ items: I.options?.checkboxItems,
946
+ label: I.label,
947
+ disabled: I.disabled,
948
+ "hide-label": "",
949
+ "onUpdate:modelValue": M
950
+ }, null, 8, ["model-value", "items", "label", "disabled"])
951
+ ], 34)
952
+ ]),
953
+ _: 1
954
+ }, 16, ["applied-filters-count", "button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "tooltip-position", "tooltip-text", "onOpen"]));
955
+ }
956
+ }), qt = /* @__PURE__ */ Z(Ht, [["__scopeId", "data-v-54301bd9"]]), Gt = {
957
+ name: "bento-input-filter"
958
+ }, zt = /* @__PURE__ */ K({
959
+ ...Gt,
960
+ props: {
961
+ defaultValue: { default: null },
962
+ disabled: { type: Boolean, default: !1 },
963
+ field: {},
964
+ label: {},
965
+ onlySlot: { type: Boolean, default: !1 },
966
+ options: { default: void 0 },
967
+ value: { default: null }
968
+ },
969
+ emits: ["input", "update"],
970
+ setup(e, { emit: d }) {
971
+ const l = e, i = d, t = k(null), { internalFilterValue: u, isSecondaryButtonDisabled: n, isApplyButtonDisabled: c } = Ie(
972
+ X(l, "value"),
973
+ X(l, "defaultValue")
974
+ ), o = r(() => l.label), p = r(() => ye(l.value, 12)), s = r(() => ({
975
+ "b-input-filter--only-slot": l.onlySlot
976
+ }));
977
+ qe(() => {
978
+ u.value === "" && (u.value = null);
979
+ }), le(t, () => {
980
+ t.value?.focusInput();
981
+ });
982
+ const v = () => {
983
+ u.value = l.value;
984
+ }, F = () => {
985
+ !u.value && l.defaultValue !== null && (u.value = l.defaultValue), i("update", {
986
+ ...l,
987
+ value: u.value
988
+ });
989
+ }, b = () => i("update", { ...l, value: l.defaultValue }), B = () => {
990
+ u.value = null, F();
991
+ }, $ = () => {
992
+ i("input", { ...l, value: u.value });
993
+ }, D = (M) => {
994
+ u.value = M;
995
+ };
996
+ return (M, I) => (m(), O(a(Te), be(M.$props, {
997
+ "button-label": o.value,
998
+ "button-secondary-label": p.value,
999
+ "disable-apply-button": a(c),
1000
+ "disable-secondary-button": a(n),
1001
+ "only-slot": M.onlySlot,
1002
+ "tooltip-position": M.options?.tooltipPosition,
1003
+ "tooltip-text": M.options?.tooltipText,
1004
+ onApply: F,
1005
+ onClear: B,
1006
+ onOpen: v,
1007
+ onReset: b
1008
+ }), {
1009
+ default: A(() => [
1010
+ q("div", {
1011
+ class: ee(["b-input-filter", s.value]),
1012
+ onKeydown: me(F, ["enter"]),
1013
+ onInput: $
1014
+ }, [
1015
+ E(a(we), {
1016
+ ref_key: "inputTextRef",
1017
+ ref: t,
1018
+ placeholder: M.options?.placeholder,
1019
+ "model-value": a(u),
1020
+ disabled: M.disabled,
1021
+ "onUpdate:modelValue": D
1022
+ }, null, 8, ["placeholder", "model-value", "disabled"])
1023
+ ], 34)
1024
+ ]),
1025
+ _: 1
1026
+ }, 16, ["button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot", "tooltip-position", "tooltip-text"]));
1027
+ }
1028
+ }), jt = /* @__PURE__ */ Z(zt, [["__scopeId", "data-v-65d6cbab"]]), Jt = {
1029
+ name: "bento-radio-group-filter"
1030
+ }, Kt = /* @__PURE__ */ K({
1031
+ ...Jt,
1032
+ props: {
1033
+ disabled: { type: Boolean },
1034
+ defaultValue: { default: void 0 },
1035
+ field: {},
1036
+ label: {},
1037
+ options: { default: () => ({
1038
+ items: []
1039
+ }) },
1040
+ onlySlot: { type: Boolean },
1041
+ value: { default: void 0 }
1042
+ },
1043
+ emits: ["input", "update"],
1044
+ setup(e, { emit: d }) {
1045
+ const l = e, i = d, {
1046
+ // Fields
1047
+ internalFilterValue: t,
1048
+ isSecondaryButtonDisabled: u,
1049
+ isApplyButtonDisabled: n,
1050
+ // Methods
1051
+ clearFilter: c,
1052
+ openFilter: o,
1053
+ resetFilter: p
1054
+ } = yl(X(l, "value"), X(l, "defaultValue")), s = r(() => {
1055
+ const B = l.options.items.find(($) => $.value === l.value)?.label || "";
1056
+ return ye(B, 12);
1057
+ }), v = r(() => ({
1058
+ "b-radio-group-filter--only-slot": l.onlySlot
1059
+ }));
1060
+ function F(B) {
1061
+ t.value = B, i("input", { ...l, value: t.value });
1062
+ }
1063
+ function b() {
1064
+ i("update", { ...l, value: t.value });
1065
+ }
1066
+ return (B, $) => (m(), O(a(Te), be(B.$props, {
1067
+ "button-label": B.label,
1068
+ "button-secondary-label": s.value,
1069
+ "disable-apply-button": a(n),
1070
+ "disable-secondary-button": a(u),
1071
+ "only-slot": B.onlySlot,
1072
+ onApply: b,
1073
+ onClear: $[1] || ($[1] = (D) => a(c)(b)),
1074
+ onOpen: a(o),
1075
+ onReset: $[2] || ($[2] = (D) => a(p)(b))
1076
+ }), {
1077
+ default: A(() => [
1078
+ q("div", {
1079
+ class: ee(["b-radio-group-filter", v.value])
1080
+ }, [
1081
+ E(a(pl), {
1082
+ modelValue: a(t),
1083
+ "onUpdate:modelValue": [
1084
+ $[0] || ($[0] = (D) => Pl(t) ? t.value = D : null),
1085
+ F
1086
+ ],
1087
+ items: B.options?.items,
1088
+ label: B.label,
1089
+ disabled: B.disabled,
1090
+ "hide-label": "",
1091
+ variant: "vertical"
1092
+ }, null, 8, ["modelValue", "items", "label", "disabled"])
1093
+ ], 2)
1094
+ ]),
1095
+ _: 1
1096
+ }, 16, ["button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot", "onOpen"]));
1097
+ }
1098
+ }), Yt = /* @__PURE__ */ Z(Kt, [["__scopeId", "data-v-b1a70e21"]]), tl = (e) => /^\d$/.test(e);
1099
+ function al(e) {
1100
+ const { value: d, onInput: l } = e, i = r(() => a(e.prettyOutput) ?? !1), { n: t, locale: u } = pe(), n = k(null), c = k(!1), o = k(!1), p = k(null), s = k(null), v = r(() => new Intl.NumberFormat(u.value, { style: "decimal" }).formatToParts(0.1).find((y) => y.type === "decimal")?.value || "."), F = r(() => new Intl.NumberFormat(u.value, { style: "decimal" }).resolvedOptions().maximumFractionDigits), b = r(() => new RegExp(`[^\\d${v.value}]`, "g")), B = (g) => typeof g == "string" ? g.trim() : g.target?.value?.trim() ?? "", $ = (g) => {
1101
+ const y = g.startsWith("-"), _ = g.slice(y ? 1 : 0).replace(b.value, ""), T = _.indexOf(v.value), N = T !== -1 && T === _.lastIndexOf(v.value), V = N ? _.slice(T + v.value.length) : null, ne = i.value && c.value && p.value !== null && V !== null ? V.slice(0, F.value) : V, ce = ne !== null ? `${_.slice(0, T)}${v.value}${ne}` : _, de = v.value === "." ? ce : ce.split(v.value).join("."), f = de.length > 0 ? Number(de) : null, C = y && (Number.isFinite(f) || _.length === 0 || N && _.slice(0, T).length === 0);
1102
+ return {
1103
+ decimalPart: ne,
1104
+ isNegative: C,
1105
+ numberValue: Number.isFinite(f) ? f : null
1106
+ };
1107
+ }, D = (g) => i.value ? t(g, { style: "decimal" }) : String(g), M = (g) => {
1108
+ const y = Math.trunc(g);
1109
+ return `${i.value ? t(y, { style: "decimal" }) : String(y)}${v.value}${p.value}`;
1110
+ }, I = r(() => {
1111
+ if (s.value === null)
1112
+ return c.value && o.value ? p.value !== null ? `-${v.value}${p.value}` : "-" : "";
1113
+ const g = c.value && p.value !== null ? M(s.value) : D(s.value);
1114
+ return o.value ? `-${g}` : g;
1115
+ }), L = (g) => {
1116
+ const { decimalPart: y, isNegative: _, numberValue: T } = $(g);
1117
+ if (o.value = _, p.value = y, T !== null) {
1118
+ s.value = T;
1119
+ const N = o.value ? -T : T;
1120
+ l?.(N);
1121
+ } else
1122
+ s.value = null, l?.(null);
1123
+ };
1124
+ le(
1125
+ d,
1126
+ (g) => {
1127
+ const y = typeof g == "number", _ = y && (g < 0 || Object.is(g, -0)), T = y ? Math.abs(g) : null;
1128
+ (s.value !== T || o.value !== _) && (o.value = _, p.value = null, s.value = T);
1129
+ },
1130
+ { immediate: !0 }
1131
+ );
1132
+ const J = () => n.value?.selectionStart || 0, Q = (g) => {
1133
+ n.value && n.value.setSelectionRange(g, g);
1134
+ }, U = (g, y) => {
1135
+ let _ = 0;
1136
+ for (let T = 0; T < y; T++)
1137
+ tl(g[T]) && _++;
1138
+ return _;
1139
+ }, te = (g) => {
1140
+ let y = 0, _ = 0;
1141
+ const T = I.value;
1142
+ if (T.length)
1143
+ for (; y < g && _ < T.length; )
1144
+ tl(T[_]) && y++, _++;
1145
+ Q(_);
1146
+ }, oe = async (g) => {
1147
+ const y = J();
1148
+ if (y === g.length)
1149
+ L(g);
1150
+ else {
1151
+ const T = U(g, y);
1152
+ L(g), await Ge(), te(T);
1153
+ }
1154
+ };
1155
+ return {
1156
+ inputRef: n,
1157
+ displayValue: I,
1158
+ isFocused: c,
1159
+ handleInput: (g) => {
1160
+ const y = B(g);
1161
+ i.value && c.value ? oe(y) : L(y), n.value && n.value.value !== I.value && (n.value.value = I.value);
1162
+ },
1163
+ handleKeyDown: (g) => {
1164
+ const y = g.target;
1165
+ if (y && g.key === v.value) {
1166
+ const _ = y.selectionStart ?? 0, T = y.selectionEnd ?? 0, N = y.value ?? "", V = N.slice(0, _) + N.slice(T);
1167
+ (!V || V.includes(v.value)) && g.preventDefault?.();
1168
+ }
1169
+ },
1170
+ onFocus: () => {
1171
+ c.value = !0;
1172
+ },
1173
+ onBlur: () => {
1174
+ c.value = !1, p.value = null;
1175
+ }
1176
+ };
1177
+ }
1178
+ const Bl = {
1179
+ "de-DE": { from: "Von", to: "Bis" },
1180
+ "en-GB": { from: "From", to: "To" },
1181
+ "en-US": { from: "From", to: "To" },
1182
+ "es-419": { from: "Desde", to: "A" },
1183
+ "es-ES": { from: "Desde", to: "Hasta" },
1184
+ "es-MX": { from: "De", to: "A" },
1185
+ "fr-FR": { from: "De", to: "À" },
1186
+ "it-IT": { from: "Da", to: "A" },
1187
+ "ja-JP": { from: "下限", to: "上限" },
1188
+ "pt-BR": { from: "De", to: "Para" },
1189
+ "zh-CN": { from: "自", to: "至" }
1190
+ }, Xt = {
1191
+ name: "bento-range-filter",
1192
+ i18n: { messages: Bl }
1193
+ }, Wt = /* @__PURE__ */ K({
1194
+ ...Xt,
1195
+ props: {
1196
+ disabled: { type: Boolean, default: !1 },
1197
+ defaultValue: { default: null },
1198
+ field: {},
1199
+ label: {},
1200
+ value: { default: () => ["", ""] },
1201
+ onlySlot: { type: Boolean, default: !1 },
1202
+ options: { default: void 0 }
1203
+ },
1204
+ emits: [W.INPUT, W.UPDATE],
1205
+ setup(e, { emit: d }) {
1206
+ const l = e, i = d, { t, n: u } = pe({ messages: Bl }), n = k(null), c = k(null), { internalFilterValue: o, isSecondaryButtonDisabled: p, isApplyButtonDisabled: s } = Ie(X(l, "value"), X(l, "defaultValue")), v = k(null), F = k(null), b = (f) => f !== null ? Object.is(f, -0) ? "-0" : f.toString() : "", {
1207
+ displayValue: B,
1208
+ handleInput: $,
1209
+ handleKeyDown: D,
1210
+ onFocus: M,
1211
+ onBlur: I,
1212
+ inputRef: L
1213
+ } = al({
1214
+ value: v,
1215
+ prettyOutput: !0,
1216
+ onInput: (f) => {
1217
+ const C = o.value ?? ["", ""];
1218
+ o.value = [b(f), C[1]], ue();
1219
+ }
1220
+ }), J = (f) => $(String(f)), {
1221
+ displayValue: Q,
1222
+ handleInput: U,
1223
+ handleKeyDown: te,
1224
+ onFocus: oe,
1225
+ onBlur: x,
1226
+ inputRef: P
1227
+ } = al({
1228
+ value: F,
1229
+ prettyOutput: !0,
1230
+ onInput: (f) => {
1231
+ const C = o.value ?? ["", ""];
1232
+ o.value = [C[0], b(f)], ue();
1233
+ }
1234
+ }), g = (f) => U(String(f));
1235
+ Ve(() => {
1236
+ L.value = n.value?.inputFieldElement ?? null, P.value = c.value?.inputFieldElement ?? null;
1237
+ }), le(
1238
+ () => o.value,
1239
+ (f) => {
1240
+ const C = f?.[0] ? parseFloat(f[0]) : null, R = f?.[1] ? parseFloat(f[1]) : null;
1241
+ v.value !== C && (v.value = C), F.value !== R && (F.value = R);
1242
+ },
1243
+ { immediate: !0 }
1244
+ );
1245
+ const y = r(() => {
1246
+ if (!l.value?.[0] && !l.value?.[1])
1247
+ return null;
1248
+ let f = "";
1249
+ l.value?.[0] ? l.value?.[1] || (f = "≥") : f = "≤";
1250
+ const C = l.value?.[0] ? parseFloat(l.value[0]) : null, R = l.value?.[1] ? parseFloat(l.value[1]) : null, re = C !== null ? u(C, { style: "decimal" }) : "", ae = l.value?.[0] && l.value?.[1] ? " - " : "", De = R !== null ? u(R, { style: "decimal" }) : "";
1251
+ return `${f}${ye(re, 10)}${ae}${ye(De, 10)}`;
1252
+ }), _ = r(() => l.label), T = r(() => y.value), N = r(() => ({
1253
+ "b-range-filter--only-slot": l.onlySlot
1254
+ })), V = () => {
1255
+ o.value = l.value, Ge(() => n.value?.focusInput());
1256
+ }, ue = () => {
1257
+ i(W.INPUT, { ...l, value: o.value });
1258
+ }, ne = () => {
1259
+ o.value?.some((f) => f) || (o.value = l.defaultValue !== null ? l.defaultValue : void 0), i(W.UPDATE, {
1260
+ ...l,
1261
+ value: o.value
1262
+ });
1263
+ }, ce = () => i(W.UPDATE, { ...l, value: l.defaultValue }), de = () => {
1264
+ o.value = ["", ""], ne();
1265
+ };
1266
+ return (f, C) => (m(), O(a(Te), be(l, {
1267
+ "disable-apply-button": a(s),
1268
+ "disable-secondary-button": a(p),
1269
+ "button-label": _.value,
1270
+ "button-secondary-label": T.value,
1271
+ "only-slot": l.onlySlot,
1272
+ "tooltip-position": l.options?.tooltipPosition,
1273
+ "tooltip-text": l.options?.tooltipText,
1274
+ onApply: ne,
1275
+ onClear: de,
1276
+ onOpen: V,
1277
+ onReset: ce
1278
+ }), {
1279
+ default: A(() => [
1280
+ q("div", {
1281
+ class: ee(["b-range-filter", N.value]),
1282
+ onKeydown: me(ne, ["enter"])
1283
+ }, [
1284
+ E(a(we), {
1285
+ ref_key: "fromFieldRef",
1286
+ ref: n,
1287
+ "model-value": a(B),
1288
+ type: "text",
1289
+ inputmode: "numeric",
1290
+ "aria-label": a(t)("from").toString(),
1291
+ disabled: l.disabled,
1292
+ "onUpdate:modelValue": J,
1293
+ onKeydown: a(D),
1294
+ onFocus: a(M),
1295
+ onBlur: a(I)
1296
+ }, {
1297
+ default: A(() => [
1298
+ G(z(a(t)("from")), 1)
1299
+ ]),
1300
+ _: 1
1301
+ }, 8, ["model-value", "aria-label", "disabled", "onKeydown", "onFocus", "onBlur"]),
1302
+ E(a(we), {
1303
+ ref_key: "toFieldRef",
1304
+ ref: c,
1305
+ class: "b-range-filter__input-field",
1306
+ "model-value": a(Q),
1307
+ type: "text",
1308
+ inputmode: "numeric",
1309
+ "aria-label": a(t)("to"),
1310
+ disabled: l.disabled,
1311
+ "onUpdate:modelValue": g,
1312
+ onKeydown: a(te),
1313
+ onFocus: a(oe),
1314
+ onBlur: a(x)
1315
+ }, {
1316
+ default: A(() => [
1317
+ G(z(a(t)("to")), 1)
1318
+ ]),
1319
+ _: 1
1320
+ }, 8, ["model-value", "aria-label", "disabled", "onKeydown", "onFocus", "onBlur"])
1321
+ ], 34)
1322
+ ]),
1323
+ _: 1
1324
+ }, 16, ["disable-apply-button", "disable-secondary-button", "button-label", "button-secondary-label", "only-slot", "tooltip-position", "tooltip-text"]));
1325
+ }
1326
+ }), Zt = /* @__PURE__ */ Z(Wt, [["__scopeId", "data-v-757e0012"]]), Cl = {
1327
+ "de-DE": { all: "Alle", noFiltersMatchThisSearch: "Keine Filter entsprechen dieser Suche.", searchFilter: "Suche {filter}" },
1328
+ "en-GB": { all: "All", noFiltersMatchThisSearch: "No filters match this search", searchFilter: "Search {filter}" },
1329
+ "en-US": { all: "All", noFiltersMatchThisSearch: "No filters match this search", searchFilter: "Search {filter}" },
1330
+ "es-419": { all: "Todos", noFiltersMatchThisSearch: "No hay filtros que coincidan con esta búsqueda", searchFilter: "Buscar {filter}" },
1331
+ "es-ES": { all: "Todos", noFiltersMatchThisSearch: "Ningún filtro coincide con esta búsqueda", searchFilter: "Buscar {filter}" },
1332
+ "es-MX": { all: "Todos", noFiltersMatchThisSearch: "No hay filtros que coincidan con esta búsqueda", searchFilter: "Buscar {filter}" },
1333
+ "fr-FR": { all: "Tous", noFiltersMatchThisSearch: "Aucun filtre ne correspond à cette recherche", searchFilter: "Rechercher {filter}" },
1334
+ "it-IT": { all: "Tutti", noFiltersMatchThisSearch: "Nessun filtro corrisponde a questa ricerca", searchFilter: "Cerca {filter}" },
1335
+ "ja-JP": { all: "すべて", noFiltersMatchThisSearch: "この検索に一致するフィルターはありません", searchFilter: "{filter}を検索" },
1336
+ "pt-BR": { all: "Todos", noFiltersMatchThisSearch: "Nenhum filtro corresponde a esta busca", searchFilter: "Procurar {filter}" },
1337
+ "zh-CN": { all: "全部", noFiltersMatchThisSearch: "没有符合此搜索条件的筛选器", searchFilter: "搜索 {filter}" }
1338
+ }, Qt = { class: "b-select-filter-button__search-bar-wrapper" }, xt = {
1339
+ key: 0,
1340
+ class: "b-select-filter-button__search-bar"
1341
+ }, ea = { class: "b-select-filter-button__divider" }, la = {
1342
+ i18n: { messages: Cl }
1343
+ }, ta = /* @__PURE__ */ K({
1344
+ ...la,
1345
+ __name: "select-filter-button",
1346
+ props: {
1347
+ /**
1348
+ * Disables the filter from being interacted with.
1349
+ */
1350
+ disabled: { type: Boolean, default: !1 },
1351
+ /**
1352
+ * Default value of the filter to reset to.
1353
+ *
1354
+ */
1355
+ defaultValue: {
1356
+ type: [String, Number, Array],
1357
+ default: null
1358
+ },
1359
+ /**
1360
+ * Filter name/key referencing the actual property name in the data set.
1361
+ * Should be unique per filter bar.
1362
+ */
1363
+ field: { type: String, required: !0 },
1364
+ /**
1365
+ * Label text to be displayed
1366
+ */
1367
+ label: { type: String, required: !0 },
1368
+ /**
1369
+ * Renders the base filter's slot content only - leaving out the button and the popover.
1370
+ * Used for the allFiltersModal component.
1371
+ */
1372
+ onlySlot: { type: Boolean, default: !1 },
1373
+ /**
1374
+ * List of options that are needed to setup the filter
1375
+ * Available options:
1376
+ * - multiple: If "true", the user will be able to select multiple items.
1377
+ * - listboxItems: The option elements to populate the filter with.
1378
+ *
1379
+ * @default undefined
1380
+ */
1381
+ options: {
1382
+ type: Object,
1383
+ default: void 0
1384
+ },
1385
+ /**
1386
+ * Current value of the filter
1387
+ *
1388
+ * @default undefined
1389
+ */
1390
+ value: {
1391
+ type: [String, Number, Array, Object],
1392
+ default: void 0
1393
+ }
1394
+ },
1395
+ emits: ["input", "update"],
1396
+ setup(e, { emit: d }) {
1397
+ const l = Pe(), i = d, t = e, { t: u } = pe({ messages: Cl }), n = k(""), c = X(t, "options"), o = k(t.options.listboxItems ?? []), { cachedSelectedListboxOptions: p, setCachedValues: s, resetCache: v } = je(
1398
+ o,
1399
+ X(t, "value"),
1400
+ X(c.value, "multiple")
1401
+ ), { cachedSelectedListboxOptions: F } = je(
1402
+ o,
1403
+ X(t, "defaultValue"),
1404
+ X(c.value, "multiple")
1405
+ ), { internalFilterValue: b, isSecondaryButtonDisabled: B, isApplyButtonDisabled: $ } = Ie(p, F);
1406
+ le(c, () => {
1407
+ o.value = c.value.listboxItems ?? [];
1408
+ });
1409
+ const D = nl(
1410
+ n,
1411
+ o,
1412
+ t.options?.search?.searchEvent
1413
+ ), M = r(() => u("noFiltersMatchThisSearch")), I = r(() => t.label), L = r(() => {
1414
+ const y = !t?.options?.multiple && t.value != null, _ = t?.options?.multiple && Array.isArray(t.value) && t.value.length === 1;
1415
+ if (y || _) {
1416
+ if (t.options?.enableValueLabelPair) {
1417
+ let V = t.value?.length > 0 ? t.value[0].label : t.value.label;
1418
+ return V || (V = t.value, Ql(
1419
+ 'BentoFilterBar Select filter (single & multi): The "value" provided is incorrect. The "value" must be of type "BentoListboxSelectedValueLabelPair" or "Array<BentoListboxSelectedValueLabelPair>" when "enableValueLabelPair" is set to true'
1420
+ )), ye(V, 12);
1421
+ }
1422
+ let N = t.options.listboxItems.flatMap((V) => V.items ? V.items : V).find(
1423
+ ({ value: V }) => Array.isArray(t.value) ? t?.value?.includes(V) : V === t.value
1424
+ )?.label;
1425
+ return !N && t.value && (N = t.value[0]), ye(N, 12);
1426
+ }
1427
+ return null;
1428
+ }), J = r(() => Ae(`filter-listbox-${t.field}`)), Q = (y) => {
1429
+ b.value = y;
1430
+ const { onlySlot: _, ...T } = t;
1431
+ if (t.options?.multiple) {
1432
+ let V;
1433
+ t.options?.enableValueLabelPair ? V = y.length ? b.value : null : V = y.length ? b.value.map(({ value: ue }) => ue) : null, i(W.INPUT, { ...T, value: V });
1434
+ return;
1435
+ }
1436
+ let N;
1437
+ t.options?.enableValueLabelPair ? N = y.length ? y[0] : null : N = y.length ? y[0].value : null, i(W.INPUT, { ...T, value: N });
1438
+ }, U = () => {
1439
+ const { onlySlot: y, ..._ } = t;
1440
+ if (t.options.multiple) {
1441
+ b.value && b.value?.length === 0 && (b.value = t.defaultValue !== null ? F.value : void 0);
1442
+ let N;
1443
+ t.options?.enableValueLabelPair ? N = b.value?.length ? b.value : null : N = b.value?.length ? b.value?.map(({ value: V }) => V) : null, i(W.UPDATE, {
1444
+ ..._,
1445
+ value: N
1446
+ });
1447
+ return;
1448
+ }
1449
+ let T;
1450
+ t.options?.enableValueLabelPair ? T = b.value.length ? b.value[0] : void 0 : T = b.value.length ? b.value[0].value : void 0, i(W.UPDATE, { ..._, value: T });
1451
+ }, te = () => {
1452
+ b.value = p.value, t.options?.onOpen?.();
1453
+ }, oe = () => {
1454
+ n.value && (n.value = "");
1455
+ }, x = () => {
1456
+ s(F.value), b.value = F.value, U();
1457
+ }, P = () => {
1458
+ v(), b.value = [], U();
1459
+ }, g = r(() => {
1460
+ if (t.value == null || !t.options.multiple)
1461
+ return null;
1462
+ const y = t.options.listboxItems?.reduce((T, N) => (T += N?.items?.length ? N.items.length : 1, T), 0), _ = t.value?.length;
1463
+ return _ === 1 ? null : _ === y ? u("all") : _;
1464
+ });
1465
+ return (y, _) => (m(), O(a(Te), {
1466
+ "applied-filters-count": g.value,
1467
+ "button-label": I.value,
1468
+ "button-secondary-label": L.value,
1469
+ disabled: e.disabled,
1470
+ "disable-apply-button": a($),
1471
+ "disable-secondary-button": a(B),
1472
+ "default-value": e.defaultValue,
1473
+ label: e.label,
1474
+ field: e.field,
1475
+ "only-slot": !1,
1476
+ "tooltip-position": e.options?.tooltipPosition,
1477
+ "tooltip-text": e.options?.tooltipText,
1478
+ value: e.value,
1479
+ onApply: U,
1480
+ onClear: P,
1481
+ onReset: x,
1482
+ onOpen: te,
1483
+ onClose: oe
1484
+ }, {
1485
+ default: A(() => [
1486
+ q("div", Qt, [
1487
+ e.options?.dynamicFiltering ?? !0 ? (m(), w("div", xt, [
1488
+ E(ke, {
1489
+ "debounce-time": e.options?.search?.debounceTime,
1490
+ value: n.value,
1491
+ "input-field-aria-label": a(u)("searchFilter", { filter: e.label.toLocaleLowerCase() }),
1492
+ onInput: _[0] || (_[0] = (T) => n.value = T)
1493
+ }, null, 8, ["debounce-time", "value", "input-field-aria-label"])
1494
+ ])) : H("", !0),
1495
+ q("div", ea, [
1496
+ E(a(it))
1497
+ ])
1498
+ ]),
1499
+ E(a(Yl), {
1500
+ id: J.value,
1501
+ "aria-label": e.label,
1502
+ class: "b-select-filter-button__wrapper",
1503
+ "component-loading": e.options?.loading,
1504
+ "empty-state": e.options?.emptyState,
1505
+ "has-more-items": e.options?.lazy?.hasMoreItems,
1506
+ items: a(D),
1507
+ "is-option-disabled": e.options?.isOptionDisabled,
1508
+ "lazy-load-type": e.options?.lazy?.lazyLoadType,
1509
+ loading: e.options?.lazy?.loading,
1510
+ multiple: e.options?.multiple,
1511
+ "static-categories": e.options?.staticCategories,
1512
+ "no-results-message": M.value,
1513
+ searching: !!n.value,
1514
+ "selected-value": a(b),
1515
+ "virtual-scroll": e.options?.virtualScroll,
1516
+ onSelect: Q,
1517
+ onSpacePressed: Q,
1518
+ onEnterPressed: Q,
1519
+ onShowMore: _[1] || (_[1] = (T) => e.options?.lazy?.showMoreEvent())
1520
+ }, Re({ _: 2 }, [
1521
+ he(a(l), (T, N) => ({
1522
+ name: N,
1523
+ fn: A((V) => [
1524
+ fe(y.$slots, N, $e(Ne(V)), void 0, !0)
1525
+ ])
1526
+ }))
1527
+ ]), 1032, ["id", "aria-label", "component-loading", "empty-state", "has-more-items", "items", "is-option-disabled", "lazy-load-type", "loading", "multiple", "static-categories", "no-results-message", "searching", "selected-value", "virtual-scroll"])
1528
+ ]),
1529
+ _: 3
1530
+ }, 8, ["applied-filters-count", "button-label", "button-secondary-label", "disabled", "disable-apply-button", "disable-secondary-button", "default-value", "label", "field", "tooltip-position", "tooltip-text", "value"]));
1531
+ }
1532
+ }), aa = /* @__PURE__ */ Z(ta, [["__scopeId", "data-v-81199686"]]), Al = {
1533
+ "de-DE": { noFiltersMatchThisSearch: "Keine Filter entsprechen dieser Suche." },
1534
+ "en-GB": { noFiltersMatchThisSearch: "No filters match this search" },
1535
+ "en-US": { noFiltersMatchThisSearch: "No filters match this search" },
1536
+ "es-419": { noFiltersMatchThisSearch: "No hay filtros que coincidan con esta búsqueda" },
1537
+ "es-ES": { noFiltersMatchThisSearch: "Ningún filtro coincide con esta búsqueda" },
1538
+ "es-MX": { noFiltersMatchThisSearch: "No hay filtros que coincidan con esta búsqueda" },
1539
+ "fr-FR": { noFiltersMatchThisSearch: "Aucun filtre ne correspond à cette recherche" },
1540
+ "it-IT": { noFiltersMatchThisSearch: "Nessun filtro corrisponde a questa ricerca" },
1541
+ "ja-JP": { noFiltersMatchThisSearch: "この検索に一致するフィルターはありません" },
1542
+ "pt-BR": { noFiltersMatchThisSearch: "Nenhum filtro corresponde a esta busca" },
1543
+ "zh-CN": { noFiltersMatchThisSearch: "没有符合此搜索条件的筛选器" }
1544
+ }, sa = {
1545
+ i18n: { messages: Al },
1546
+ name: "select-filter-dropdown"
1547
+ }, oa = /* @__PURE__ */ K({
1548
+ ...sa,
1549
+ props: {
1550
+ /**
1551
+ * Disables the filter from being interacted with.
1552
+ */
1553
+ disabled: { type: Boolean, default: !1 },
1554
+ /**
1555
+ * Default value of the filter to reset to.
1556
+ *
1557
+ */
1558
+ defaultValue: {
1559
+ type: [String, Number, Array],
1560
+ default: null
1561
+ },
1562
+ /**
1563
+ * Filter name/key referencing the actual property name in the data set.
1564
+ * Should be unique per filter bar.
1565
+ */
1566
+ field: { type: String, required: !0 },
1567
+ /**
1568
+ * Label text to be displayed
1569
+ */
1570
+ label: { type: String, required: !0 },
1571
+ /**
1572
+ * Renders the base filter's slot content only - leaving out the button and the popover.
1573
+ * Used for the allFiltersModal component.
1574
+ *
1575
+ */
1576
+ onlySlot: { type: Boolean, default: !1 },
1577
+ /**
1578
+ * List of options that are needed to setup the filter
1579
+ * Available options:
1580
+ * - multiple: If "true", the user will be able to select multiple items.
1581
+ * - listboxItems: The option elements to populate the filter with.
1582
+ *
1583
+ * @default undefined
1584
+ */
1585
+ options: {
1586
+ type: Object,
1587
+ default: void 0
1588
+ },
1589
+ /**
1590
+ * Current value of the filter
1591
+ *
1592
+ * @default undefined
1593
+ */
1594
+ value: {
1595
+ type: [String, Number, Array],
1596
+ default: void 0
1597
+ }
1598
+ },
1599
+ emits: ["input", "update"],
1600
+ setup(e, { emit: d }) {
1601
+ const { t: l } = pe({ messages: Al }), i = Pe(), t = d, u = e, { internalFilterValue: n } = Ie(X(u, "value"), X(u, "defaultValue")), c = X(u, "options"), o = k(u.options.listboxItems);
1602
+ le(c, () => {
1603
+ o.value = c.value.listboxItems;
1604
+ });
1605
+ const p = r(() => l("noFiltersMatchThisSearch")), s = (v) => {
1606
+ n.value = v;
1607
+ const { onlySlot: F, ...b } = u;
1608
+ t(W.INPUT, { ...b, value: n.value });
1609
+ };
1610
+ return (v, F) => (m(), O(a(Xl), {
1611
+ "model-value": a(n),
1612
+ items: e.options.listboxItems,
1613
+ search: e.options?.search,
1614
+ multiple: e.options?.multiple,
1615
+ "static-categories": e.options?.staticCategories,
1616
+ "no-results-message": p.value,
1617
+ "is-option-disabled": e.options.isOptionDisabled,
1618
+ "dynamic-filtering": e.options?.dynamicFiltering ?? !0,
1619
+ "component-loading": e.options?.loading,
1620
+ "empty-state": e.options?.emptyState,
1621
+ disabled: e.disabled,
1622
+ "enable-value-label-pair": e.options?.enableValueLabelPair,
1623
+ "onUpdate:modelValue": s,
1624
+ onOpen: F[0] || (F[0] = () => e.options?.onOpen?.())
1625
+ }, Re({ _: 2 }, [
1626
+ he(a(i), (b, B) => ({
1627
+ name: B,
1628
+ fn: A(($) => [
1629
+ fe(v.$slots, B, $e(Ne($)))
1630
+ ])
1631
+ }))
1632
+ ]), 1032, ["model-value", "items", "search", "multiple", "static-categories", "no-results-message", "is-option-disabled", "dynamic-filtering", "component-loading", "empty-state", "disabled", "enable-value-label-pair"]));
1633
+ }
1634
+ }), na = {
1635
+ /**
1636
+ * Disables the filter from being interacted with.
1637
+ */
1638
+ disabled: { type: Boolean, default: !1 },
1639
+ /**
1640
+ * Default value of the filter to reset to.
1641
+ *
1642
+ */
1643
+ defaultValue: {
1644
+ type: [String, Number, Array, Object],
1645
+ default: null
1646
+ },
1647
+ /**
1648
+ * Filter name/key referencing the actual property name in the data set.
1649
+ * Should be unique per filter bar.
1650
+ */
1651
+ field: { type: String, required: !0 },
1652
+ /**
1653
+ * Label text to be displayed
1654
+ */
1655
+ label: { type: String, required: !0 },
1656
+ /**
1657
+ * Renders the base filter's slot content only - leaving out the button and the popover.
1658
+ * Used for the allFiltersModal component.
1659
+ *
1660
+ */
1661
+ onlySlot: { type: Boolean, default: !1 },
1662
+ /**
1663
+ * List of options that are needed to setup the filter
1664
+ * Available options:
1665
+ * - multiple: If "true", the user will be able to select multiple items.
1666
+ * - listboxItems: The option elements to populate the filter with.
1667
+ * - tooltipPosition: The position of the tooltip attached to the filter button
1668
+ * - tooltipText: The content of the tooltip attached to the filter button
1669
+ *
1670
+ * @default undefined
1671
+ */
1672
+ options: {
1673
+ type: Object,
1674
+ default: void 0
1675
+ },
1676
+ /**
1677
+ * Current value of the filter
1678
+ *
1679
+ * @default undefined
1680
+ */
1681
+ value: {
1682
+ type: [String, Number, Array, Object],
1683
+ default: void 0
1684
+ }
1685
+ }, ia = {}, ra = /* @__PURE__ */ K({
1686
+ ...ia,
1687
+ __name: "select-filter",
1688
+ props: na,
1689
+ emits: ["input", "update"],
1690
+ setup(e, { emit: d }) {
1691
+ const l = Pe(), i = d, t = (n) => i("input", n), u = (n) => i("update", n);
1692
+ return (n, c) => n.onlySlot ? (m(), O(a(oa), {
1693
+ key: 0,
1694
+ disabled: n.disabled,
1695
+ "default-value": n.defaultValue,
1696
+ field: n.field,
1697
+ label: n.label,
1698
+ options: n.options,
1699
+ value: n.value,
1700
+ onInput: t,
1701
+ onUpdate: u
1702
+ }, Re({ _: 2 }, [
1703
+ he(a(l), (o, p) => ({
1704
+ name: p,
1705
+ fn: A((s) => [
1706
+ fe(n.$slots, p, $e(Ne(s)))
1707
+ ])
1708
+ }))
1709
+ ]), 1032, ["disabled", "default-value", "field", "label", "options", "value"])) : (m(), O(a(aa), {
1710
+ key: 1,
1711
+ disabled: n.disabled,
1712
+ "default-value": n.defaultValue,
1713
+ field: n.field,
1714
+ label: n.label,
1715
+ options: n.options,
1716
+ value: n.value,
1717
+ onInput: t,
1718
+ onUpdate: u
1719
+ }, Re({ _: 2 }, [
1720
+ he(a(l), (o, p) => ({
1721
+ name: p,
1722
+ fn: A((s) => [
1723
+ fe(n.$slots, p, $e(Ne(s)))
1724
+ ])
1725
+ }))
1726
+ ]), 1032, ["disabled", "default-value", "field", "label", "options", "value"]));
1727
+ }
1728
+ }), Tl = {
1729
+ "de-DE": { filter: "Mein Filter", resetFilter: "Filter zurücksetzen {filterName}" },
1730
+ "en-GB": { filter: "My filter", resetFilter: "Reset filter {filterName}" },
1731
+ "en-US": { filter: "My filter", resetFilter: "Reset filter {filterName}" },
1732
+ "es-419": { filter: "Mi filtro", resetFilter: "Resetear el filtro {filterName}" },
1733
+ "es-ES": { filter: "Mi filtro", resetFilter: "Reiniciar el filtro {filterName}" },
1734
+ "es-MX": { filter: "Mi filtro", resetFilter: "Resetear el filtro {filterName}" },
1735
+ "fr-FR": { filter: "Mon filtre", resetFilter: "Réinitialiser le filtre {filterName}" },
1736
+ "it-IT": { filter: "Il mio filtro", resetFilter: "Reimposta il filtro {filterName}" },
1737
+ "ja-JP": { filter: "フィルター", resetFilter: "フィルター{filterName}をリセット" },
1738
+ "pt-BR": { filter: "Meu filtro", resetFilter: "Limpar filtro {filterName}" },
1739
+ "zh-CN": { filter: "我的筛选器", resetFilter: "重置筛选器 {filterName}" }
1740
+ }, ua = { class: "b-toggle-filter" }, ca = { class: "b-toggle-filter__content" }, da = {
1741
+ i18n: { messages: Tl },
1742
+ name: "bento-toggle-filter"
1743
+ }, fa = /* @__PURE__ */ K({
1744
+ ...da,
1745
+ props: {
1746
+ description: {},
1747
+ disabled: { type: Boolean, default: !1 },
1748
+ field: {},
1749
+ label: {},
1750
+ onlySlot: { type: Boolean, default: !1 },
1751
+ options: { default: void 0 },
1752
+ value: { type: Boolean, default: !1 }
1753
+ },
1754
+ emits: ["input", "update"],
1755
+ setup(e, { emit: d }) {
1756
+ const { t: l } = pe({ messages: Tl }), i = Ae("toggle-filter-checkbox-label"), t = Ae("toggle-filter-checkbox-description"), u = e, n = d, c = k(u.value);
1757
+ le(
1758
+ () => u.value,
1759
+ (b) => {
1760
+ c.value = b;
1761
+ }
1762
+ );
1763
+ const o = r(() => ({
1764
+ "b-toggle-filter__only-slot--disabled": u.disabled
1765
+ })), p = (b) => {
1766
+ c.value = b, n("input", { ...u, value: b });
1767
+ }, s = () => {
1768
+ n("update", { ...u, value: c.value });
1769
+ }, v = () => {
1770
+ c.value = !c.value, s();
1771
+ }, F = () => {
1772
+ c.value = !1, s();
1773
+ };
1774
+ return (b, B) => b.onlySlot ? (m(), w("label", {
1775
+ key: 1,
1776
+ class: ee(["b-toggle-filter__only-slot", o.value])
1777
+ }, [
1778
+ E(a(rt), {
1779
+ "aria-labelledby": a(i),
1780
+ "aria-describedby": a(t),
1781
+ disabled: b.disabled,
1782
+ class: "b-toggle-filter__checkbox",
1783
+ "model-value": c.value,
1784
+ "onUpdate:modelValue": p
1785
+ }, null, 8, ["aria-labelledby", "aria-describedby", "disabled", "model-value"]),
1786
+ q("div", ca, [
1787
+ E(a(ie), {
1788
+ id: a(i),
1789
+ variant: "title",
1790
+ medium: ""
1791
+ }, {
1792
+ default: A(() => [
1793
+ G(z(b.label), 1)
1794
+ ]),
1795
+ _: 1
1796
+ }, 8, ["id"]),
1797
+ b.description ? (m(), O(a(ie), {
1798
+ key: 0,
1799
+ id: a(t)
1800
+ }, {
1801
+ default: A(() => [
1802
+ G(z(b.description), 1)
1803
+ ]),
1804
+ _: 1
1805
+ }, 8, ["id"])) : H("", !0)
1806
+ ])
1807
+ ], 2)) : Ue((m(), O(a(Fl), {
1808
+ key: 0,
1809
+ "skip-grouping": !c.value
1810
+ }, {
1811
+ default: A(() => [
1812
+ E(a(Se), {
1813
+ "aria-pressed": c.value ? "true" : "false",
1814
+ active: c.value,
1815
+ disabled: b.disabled,
1816
+ onClick: v
1817
+ }, {
1818
+ default: A(() => [
1819
+ q("div", ua, [
1820
+ G(z(b.label) + " ", 1),
1821
+ Ue(E(a(Wl), {
1822
+ "aria-hidden": "true",
1823
+ class: "b-toggle-filter__checkmark"
1824
+ }, null, 512), [
1825
+ [Dl, c.value]
1826
+ ])
1827
+ ])
1828
+ ]),
1829
+ _: 1
1830
+ }, 8, ["aria-pressed", "active", "disabled"]),
1831
+ c.value ? (m(), O(a(Se), {
1832
+ key: 0,
1833
+ "aria-label": a(l)("resetFilter", { filterName: b.label }),
1834
+ disabled: b.disabled,
1835
+ active: c.value,
1836
+ onClick: F
1837
+ }, {
1838
+ iconLeft: A(() => [
1839
+ E(a(vl), { "aria-hidden": "true" })
1840
+ ]),
1841
+ _: 1
1842
+ }, 8, ["aria-label", "disabled", "active"])) : H("", !0)
1843
+ ]),
1844
+ _: 1
1845
+ }, 8, ["skip-grouping"])), [
1846
+ [a(bl), b.options?.tooltipText, b.options?.tooltipPosition]
1847
+ ]);
1848
+ }
1849
+ }), pa = /* @__PURE__ */ Z(fa, [["__scopeId", "data-v-ab8af6c9"]]), ve = (e) => Ml({
1850
+ loader: e,
1851
+ loadingComponent: ot,
1852
+ delay: 200,
1853
+ timeout: 3e4,
1854
+ onError: (d, l, i, t) => t <= 2 ? l() : i()
1855
+ }), _l = {
1856
+ BentoBooleanFilter: Ut,
1857
+ BentoCheckboxGroupFilter: qt,
1858
+ BentoDateFilter: ve(() => import("./date-filter.EysjbedJ.js")),
1859
+ BentoDateRangeFilter: ve(() => import("./date-range-filter.DwNzkqTo.js")),
1860
+ BentoInputFilter: jt,
1861
+ BentoInputWithDropdownFilter: ve(
1862
+ () => import("./input-with-dropdown-filter.DXnJOBf6.js")
1863
+ ),
1864
+ BentoRadioGroupFilter: Yt,
1865
+ BentoRangeFilter: Zt,
1866
+ BentoSelectAvatarFilter: ve(
1867
+ () => import("./select-avatar-filter.DdOdBb0C.js")
1868
+ ),
1869
+ BentoSelectCountryFilter: ve(
1870
+ () => import("./select-country-filter.D-zpTtKe.js")
1871
+ ),
1872
+ BentoSelectCurrencyFilter: ve(
1873
+ () => import("./select-currency-filter.BitX4BCE.js")
1874
+ ),
1875
+ BentoSelectFilter: ra,
1876
+ BentoSelectPaymentMethodFilter: ve(
1877
+ () => import("./select-payment-method-filter.BiZuCZOa.js")
1878
+ ),
1879
+ BentoSelectTagFilter: ve(
1880
+ () => import("./select-tag-filter.BUIIqK0l.js")
1881
+ ),
1882
+ BentoToggleFilter: pa
1883
+ }, ba = {
1884
+ key: 0,
1885
+ class: "b-all-filters-modal-selected-filter__text"
1886
+ }, va = {
1887
+ key: 2,
1888
+ class: "b-all-filters-modal-selected-filter__clear-button"
1889
+ }, ma = {
1890
+ name: "all-filters-modal-selected-filter",
1891
+ components: _l
1892
+ }, ha = /* @__PURE__ */ K({
1893
+ ...ma,
1894
+ props: {
1895
+ actions: { default: () => [] },
1896
+ clearButtonLabel: {},
1897
+ isClearButtonDisabled: { type: Boolean },
1898
+ selectedFilter: {},
1899
+ smallScreen: { type: Boolean, default: !1 },
1900
+ shouldShowFilterTitle: { type: Boolean }
1901
+ },
1902
+ emits: ["clear", "input", "keydown-left"],
1903
+ setup(e, { expose: d }) {
1904
+ const l = e, i = r(() => ({
1905
+ "b-all-filters-modal-selected-filter--small-screen": l.smallScreen
1906
+ })), t = k(null);
1907
+ let u = null;
1908
+ const n = () => {
1909
+ const s = t.value;
1910
+ return s ? st(s).find(({ node: v }) => v !== s) : void 0;
1911
+ }, c = () => {
1912
+ if (!u || u !== document.activeElement)
1913
+ return;
1914
+ const s = n();
1915
+ s && (u = null, s.node.focus());
1916
+ }, o = () => {
1917
+ const s = n();
1918
+ u = s ? null : document.activeElement, s?.node.focus();
1919
+ }, p = () => {
1920
+ u = null;
1921
+ };
1922
+ return Ve(() => Gl(t, c, { childList: !0, subtree: !0 })), zl(document, "focusin", () => {
1923
+ document.activeElement !== u && p();
1924
+ }), le(() => l.selectedFilter.field, p), d({ focusFirstInput: o }), (s, v) => (m(), w("div", {
1925
+ class: ee(["b-all-filters-modal-selected-filter", i.value]),
1926
+ onKeydown: v[2] || (v[2] = me((F) => s.$emit("keydown-left"), ["left"]))
1927
+ }, [
1928
+ s.smallScreen || s.shouldShowFilterTitle ? (m(), w("div", ba, [
1929
+ E(a(ie), {
1930
+ id: s.selectedFilter.labelId,
1931
+ el: "div",
1932
+ variant: "title",
1933
+ medium: ""
1934
+ }, {
1935
+ default: A(() => [
1936
+ G(z(s.selectedFilter.label), 1)
1937
+ ]),
1938
+ _: 1
1939
+ }, 8, ["id"]),
1940
+ s.selectedFilter.description ? (m(), O(a(ie), {
1941
+ key: 0,
1942
+ el: "div",
1943
+ variant: "body",
1944
+ wide: ""
1945
+ }, {
1946
+ default: A(() => [
1947
+ G(z(s.selectedFilter.description), 1)
1948
+ ]),
1949
+ _: 1
1950
+ })) : H("", !0)
1951
+ ])) : H("", !0),
1952
+ q("div", {
1953
+ ref_key: "selectedFilterRef",
1954
+ ref: t,
1955
+ class: "b-all-filters-modal-selected-filter__component"
1956
+ }, [
1957
+ (m(), O(Ee(s.selectedFilter.type), {
1958
+ key: s.selectedFilter.field,
1959
+ description: s.selectedFilter.description,
1960
+ field: s.selectedFilter.field,
1961
+ label: s.selectedFilter.label,
1962
+ options: s.selectedFilter.options,
1963
+ value: s.selectedFilter.value,
1964
+ "default-value": s.selectedFilter.defaultValue,
1965
+ "only-slot": !0,
1966
+ disabled: s.selectedFilter.disabled,
1967
+ "aria-labelledby": s.selectedFilter.labelId,
1968
+ onInput: v[0] || (v[0] = (F) => s.$emit("input", F))
1969
+ }, null, 40, ["description", "field", "label", "options", "value", "default-value", "disabled", "aria-labelledby"]))
1970
+ ], 512),
1971
+ s.smallScreen ? (m(), O(a(dl), {
1972
+ key: 1,
1973
+ class: "b-all-filters-modal-selected-filter__actions",
1974
+ actions: s.actions,
1975
+ layout: "vertical-stack"
1976
+ }, null, 8, ["actions"])) : (m(), w("div", va, [
1977
+ E(a(at), {
1978
+ variant: "secondary",
1979
+ disabled: s.isClearButtonDisabled,
1980
+ onClick: v[1] || (v[1] = (F) => s.$emit("clear"))
1981
+ }, {
1982
+ default: A(() => [
1983
+ G(z(s.clearButtonLabel), 1)
1984
+ ]),
1985
+ _: 1
1986
+ }, 8, ["disabled"])
1987
+ ]))
1988
+ ], 34));
1989
+ }
1990
+ }), sl = /* @__PURE__ */ Z(ha, [["__scopeId", "data-v-3293549b"]]), ya = { key: 0 }, Fa = {
1991
+ __name: "sliders-1",
1992
+ setup(e) {
1993
+ const d = Ul();
1994
+ return String(d?.uid ?? d?.proxy?._uid), (l, i) => (m(), w("svg", be({ role: "img" }, l.$attrs, {
1995
+ class: "ui-assets-icons-16",
1996
+ xmlns: "http://www.w3.org/2000/svg",
1997
+ width: "16",
1998
+ height: "16",
1999
+ fill: "none"
2000
+ }), [
2001
+ l.$attrs["svg-title"] ? (m(), w("title", ya, z(l.$attrs["svg-title"]), 1)) : H("", !0),
2002
+ i[0] || (i[0] = q("path", {
2003
+ fill: "#001222",
2004
+ 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"
2005
+ }, null, -1)),
2006
+ i[1] || (i[1] = q("path", {
2007
+ fill: "#001222",
2008
+ 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"
2009
+ }, null, -1))
2010
+ ], 16));
2011
+ }
2012
+ }, Rl = {
2013
+ "de-DE": { activeFilters: "Aktive Filter", all: "Alle", allFilters: "Alle Filter", applyAll: "Alle anwenden", cancel: "Abbrechen", clear: "Löschen", clearAll: "Alle löschen", noFiltersMatchThisSearch: "Keine Filter entsprechen dieser Suche.", otherFilters: "Andere Filter", reset: "Zurücksetzen", resetAll: "Alle zurücksetzen", searchBar: "Suchleiste" },
2014
+ "en-GB": { activeFilters: "Active filters", all: "All", allFilters: "All filters", applyAll: "Apply all", cancel: "Cancel", clear: "Clear", clearAll: "Clear all", noFiltersMatchThisSearch: "No filters match this search", otherFilters: "Other filters", reset: "Reset", resetAll: "Reset all", searchBar: "Search bar" },
2015
+ "en-US": { activeFilters: "Active filters", all: "All", allFilters: "All filters", applyAll: "Apply all", cancel: "Cancel", clear: "Clear", clearAll: "Clear all", noFiltersMatchThisSearch: "No filters match this search", otherFilters: "Other filters", reset: "Reset", resetAll: "Reset all", searchBar: "Search bar" },
2016
+ "es-419": { activeFilters: "Filtros activos", all: "Todos", allFilters: "Todos los filtros", applyAll: "Aplicar todo", cancel: "Cancelar", clear: "Borrar", clearAll: "Borrar todo", noFiltersMatchThisSearch: "No hay filtros que coincidan con esta búsqueda", otherFilters: "Otros filtros", reset: "Restablecer", resetAll: "Restablecer todo", searchBar: "Barra de búsqueda" },
2017
+ "es-ES": { activeFilters: "Filtros activos", all: "Todos", allFilters: "Todos los filtros", applyAll: "Aplicar todo", cancel: "Cancelar", clear: "Borrar", clearAll: "Borrar todo", noFiltersMatchThisSearch: "Ningún filtro coincide con esta búsqueda", otherFilters: "Otros filtros", reset: "Reiniciar", resetAll: "Restablecer todo", searchBar: "Barra de búsqueda" },
2018
+ "es-MX": { activeFilters: "Filtros activos", all: "Todos", allFilters: "Todos los filtros", applyAll: "Aplicar todo", cancel: "Cancelar", clear: "Claro", clearAll: "Borrar todo", noFiltersMatchThisSearch: "No hay filtros que coincidan con esta búsqueda", otherFilters: "Otros filtros", searchBar: "Barra de búsqueda" },
2019
+ "fr-FR": { activeFilters: "Filtres actifs", all: "Tous", allFilters: "Tous les filtres", applyAll: "Tout appliquer", cancel: "Annuler", clear: "Effacer", clearAll: "Tout effacer", noFiltersMatchThisSearch: "Aucun filtre ne correspond à cette recherche", otherFilters: "Autres filtres", reset: "Réinitialiser", resetAll: "Tout réinitialiser", searchBar: "Barre de recherche" },
2020
+ "it-IT": { activeFilters: "Filtri attivi", all: "Tutti", allFilters: "Tutti i filtri", applyAll: "Applica tutto", cancel: "Annulla", clear: "Cancella", clearAll: "Cancella tutto", noFiltersMatchThisSearch: "Nessun filtro corrisponde a questa ricerca", otherFilters: "Altri filtri", reset: "Resetta", resetAll: "Resetta tutto", searchBar: "Barra di ricerca" },
2021
+ "ja-JP": { activeFilters: "適用中のフィルター", all: "すべて", allFilters: "すべてのフィルター", applyAll: "すべて適用", cancel: "キャンセル", clear: "クリア", clearAll: "すべてクリア", noFiltersMatchThisSearch: "この検索に一致するフィルターはありません", otherFilters: "他のフィルター", reset: "リセット", resetAll: "すべてリセット", searchBar: "検索バー" },
2022
+ "pt-BR": { activeFilters: "Filtros ativos", all: "Todos", allFilters: "Todos os filtros", applyAll: "Aplicar tudo", cancel: "Cancelar", clear: "Limpar", clearAll: "Limpar tudo", noFiltersMatchThisSearch: "Nenhum filtro corresponde a esta busca", otherFilters: "Outros filtros", reset: "Limpar", resetAll: "Limpar tudo", searchBar: "Barra de busca" },
2023
+ "zh-CN": { activeFilters: "有效筛选器", all: "全部", allFilters: "所有筛选器", applyAll: "全部应用", cancel: "取消", clear: "清除", clearAll: "全部清除", noFiltersMatchThisSearch: "没有符合此搜索条件的筛选器", otherFilters: "其他筛选器", reset: "重置", resetAll: "全部重置", searchBar: "搜索栏" }
2024
+ }, ga = { class: "b-all-filters-modal" }, Sa = {
2025
+ name: "all-filters-modal",
2026
+ i18n: { messages: Rl }
2027
+ }, Ba = /* @__PURE__ */ K({
2028
+ ...Sa,
2029
+ props: {
2030
+ value: { default: () => [] }
2031
+ },
2032
+ emits: [He.INPUT],
2033
+ setup(e, { emit: d }) {
2034
+ const l = "filter-selection", i = "filter-application", t = e, u = d, n = k(t.value), c = Ae("all-filters-modal"), o = k(null), p = k(!1), s = k(0), v = k(null), F = k(""), b = k(l), { t: B, n: $ } = pe({ messages: Rl }), D = jl("(max-width: 599px)"), M = nl(F, X(n, "value"));
2035
+ le(
2036
+ () => t.value,
2037
+ () => {
2038
+ p.value ? n.value = t.value.map((S, h) => ({ ...S, value: n.value[h].value })) : n.value = t.value;
2039
+ }
2040
+ );
2041
+ const I = (S) => S.sort((h, j) => h.label > j.label ? 1 : j.label > h.label ? -1 : 0), L = r(
2042
+ () => I(
2043
+ M.value.filter(
2044
+ (S) => Array.isArray(S.value) ? S.value?.length && S.value?.find((h) => h !== "") : S.value
2045
+ )
2046
+ )
2047
+ ), J = r(
2048
+ () => I(
2049
+ M.value.filter(
2050
+ (S) => Array.isArray(S.value) ? S.value?.length === 0 || S.value?.every((h) => h === "") : !S.value
2051
+ )
2052
+ )
2053
+ ), Q = r(() => F.value && M.value?.length === 0), U = r(() => ({
2054
+ ...n.value[s.value],
2055
+ labelId: Ae(n.value[s.value]?.field)
2056
+ })), te = () => {
2057
+ const S = L.value.length ? L.value[0] : J.value[0], h = n.value.findIndex(
2058
+ (j) => j.label === S.label && j.field === S.field
2059
+ );
2060
+ s.value = h;
2061
+ };
2062
+ le(
2063
+ () => p.value,
2064
+ (S) => {
2065
+ S && te();
2066
+ }
2067
+ );
2068
+ const oe = (S) => S.map((h) => {
2069
+ switch (h.type) {
2070
+ case Y.SELECT:
2071
+ case Y.SELECT_AVATAR:
2072
+ case Y.SELECT_COUNTRY:
2073
+ case Y.SELECT_CURRENCY:
2074
+ case Y.SELECT_PAYMENT_METHOD:
2075
+ case Y.SELECT_TAG:
2076
+ return h.options?.multiple === !0 ? {
2077
+ label: h.label,
2078
+ field: h.field,
2079
+ count: h.value?.length ? h.value?.length : null
2080
+ } : {
2081
+ label: h.label,
2082
+ field: h.field,
2083
+ count: h.value == null ? null : 1
2084
+ };
2085
+ case Y.DATE_RANGE:
2086
+ return {
2087
+ label: h.label,
2088
+ field: h.field,
2089
+ count: h.value?.startDate != null && h.value?.endDate != null ? 1 : null
2090
+ };
2091
+ case Y.RANGE:
2092
+ return {
2093
+ label: h.label,
2094
+ field: h.field,
2095
+ count: h.value?.find((j) => j !== "") ? 1 : null
2096
+ };
2097
+ case Y.CHECKBOX_GROUP:
2098
+ return {
2099
+ label: h.label,
2100
+ field: h.field,
2101
+ count: h.value?.length ? h.value?.length : null
2102
+ };
2103
+ case Y.TOGGLE:
2104
+ return {
2105
+ label: h.label,
2106
+ field: h.field,
2107
+ count: h.value ? 1 : null
2108
+ };
2109
+ case Y.INPUT:
2110
+ case Y.BOOLEAN:
2111
+ case Y.DATE:
2112
+ case Y.RADIO_GROUP:
2113
+ default:
2114
+ return {
2115
+ label: h.label,
2116
+ field: h.field,
2117
+ count: h.value != null ? 1 : null
2118
+ };
2119
+ }
2120
+ }), x = r(() => U.value.value), P = r(
2121
+ () => Array.isArray(x.value) ? x.value.length && x.value.find((S) => S !== "") : !!x.value
2122
+ ), g = r(
2123
+ () => n.value.some(({ defaultValue: S }) => S !== void 0)
2124
+ ), y = r(() => U.value.defaultValue !== void 0), _ = r(() => U.value.type !== Y.TOGGLE), T = r(
2125
+ () => U.value.disabled || (y.value ? JSON.stringify(U.value.value) === JSON.stringify(U.value.defaultValue) : !P.value)
2126
+ ), N = r(
2127
+ () => t.value.filter(
2128
+ (S) => S.defaultValue === void 0 || S.visible === !1 && JSON.stringify(S.value) !== JSON.stringify(S.defaultValue)
2129
+ )
2130
+ ), V = r(
2131
+ () => oe(N.value)?.filter(({ count: S }) => !!S).length
2132
+ ), ue = () => {
2133
+ p.value ? p.value = !1 : (b.value = l, p.value = !0);
2134
+ }, ne = r(
2135
+ () => new Map(oe(n.value).map(({ field: S, count: h }) => [S, h]))
2136
+ ), ce = (S) => {
2137
+ const h = ne.value.get(S.field), j = typeof S.type == "string" && // Type guard to avoid casting
2138
+ S.type.includes("BentoSelect") && S.options?.multiple && h === S.options?.listboxItems?.length, Le = typeof S.type == "string" && S.type === Y.CHECKBOX_GROUP && h === S.options?.checkboxItems?.length;
2139
+ return j || Le ? B("all") : h == null ? null : $(h);
2140
+ }, de = (S, h) => {
2141
+ s.value = n.value.findIndex(
2142
+ (j) => j.label === S && j.field === h
2143
+ ), D.value && (b.value = i);
2144
+ }, f = () => {
2145
+ F.value = "";
2146
+ }, C = () => {
2147
+ p.value = !1, n.value = t.value, f();
2148
+ }, R = (S) => {
2149
+ const h = n.value.map(({ value: j, ...Le }, Nl) => Nl === s.value ? { value: S.value, ...Le } : { value: j, ...Le });
2150
+ n.value = h;
2151
+ }, re = () => {
2152
+ R({
2153
+ field: U.value.field,
2154
+ label: U.value.label,
2155
+ type: U.value.type,
2156
+ value: y.value ? U.value.defaultValue : void 0
2157
+ });
2158
+ }, ae = () => {
2159
+ n.value = t.value.map((S) => ({
2160
+ ...S,
2161
+ value: S.defaultValue
2162
+ }));
2163
+ }, De = () => {
2164
+ u(He.INPUT, n.value), p.value = !1, b.value = l;
2165
+ }, Ll = r(
2166
+ () => JSON.stringify(n.value) === JSON.stringify(t.value)
2167
+ ), El = r(
2168
+ () => g.value ? n.value.every((S) => JSON.stringify(S.value) === JSON.stringify(S.defaultValue)) : !V.value
2169
+ ), _e = r(() => [
2170
+ {
2171
+ title: B("applyAll"),
2172
+ disabled: Ll.value,
2173
+ event: De
2174
+ },
2175
+ {
2176
+ title: B("cancel"),
2177
+ event: C
2178
+ },
2179
+ {
2180
+ title: B(g.value ? "resetAll" : "clearAll"),
2181
+ disabled: El.value,
2182
+ event: ae
2183
+ }
2184
+ ]), Ol = () => {
2185
+ v.value?.focusFirstInput();
2186
+ }, $l = () => {
2187
+ o.value?.focusFilter(U.value.label);
2188
+ };
2189
+ return (S, h) => (m(), w("div", ga, [
2190
+ E(a(Se), {
2191
+ "is-filter-open": p.value,
2192
+ "applied-filters-count": V.value,
2193
+ "no-applied-state-styles": "",
2194
+ onClick: ue
2195
+ }, {
2196
+ iconLeft: A(() => [
2197
+ E(a(Fa), { "aria-hidden": "true" })
2198
+ ]),
2199
+ default: A(() => [
2200
+ G(z(a(B)("allFilters")) + " ", 1)
2201
+ ]),
2202
+ _: 1
2203
+ }, 8, ["is-filter-open", "applied-filters-count"]),
2204
+ a(D) ? (m(), O(a(Jl), {
2205
+ key: 1,
2206
+ class: "b-all-filters-modal__modal b-all-filters-modal__modal--small-screen",
2207
+ "active-page": b.value,
2208
+ "is-open": p.value,
2209
+ onBeforeClose: C,
2210
+ "onUpdate:activePage": h[2] || (h[2] = (j) => b.value = j)
2211
+ }, {
2212
+ default: A(() => [
2213
+ E(a(ze), {
2214
+ "page-id": l,
2215
+ "previous-page": null,
2216
+ title: a(B)("allFilters")
2217
+ }, {
2218
+ default: A(() => [
2219
+ E(Qe, {
2220
+ "active-filters": L.value,
2221
+ actions: _e.value,
2222
+ "active-filters-label": a(B)("activeFilters"),
2223
+ "empty-search-message": Q.value ? a(B)("noFiltersMatchThisSearch") : "",
2224
+ "get-filter-count": ce,
2225
+ "other-filters": J.value,
2226
+ "other-filters-label": a(B)("otherFilters"),
2227
+ "search-bar-aria-label": a(B)("searchBar"),
2228
+ "search-term": F.value,
2229
+ "selected-filter-label": U.value.label,
2230
+ "unique-id": a(c),
2231
+ "small-screen": "",
2232
+ onClearSearch: f,
2233
+ onSelectFilter: de,
2234
+ "onUpdate:searchTerm": h[1] || (h[1] = (j) => F.value = j)
2235
+ }, null, 8, ["active-filters", "actions", "active-filters-label", "empty-search-message", "other-filters", "other-filters-label", "search-bar-aria-label", "search-term", "selected-filter-label", "unique-id"])
2236
+ ]),
2237
+ _: 1
2238
+ }, 8, ["title"]),
2239
+ E(a(ze), {
2240
+ "page-id": i,
2241
+ "previous-page": l,
2242
+ title: a(B)("allFilters")
2243
+ }, {
2244
+ default: A(() => [
2245
+ E(sl, {
2246
+ actions: _e.value,
2247
+ "clear-button-label": a(B)(y.value ? "reset" : "clear"),
2248
+ "is-clear-button-disabled": T.value,
2249
+ "selected-filter": U.value,
2250
+ "should-show-filter-title": _.value,
2251
+ "small-screen": "",
2252
+ onInput: R
2253
+ }, null, 8, ["actions", "clear-button-label", "is-clear-button-disabled", "selected-filter", "should-show-filter-title"])
2254
+ ]),
2255
+ _: 1
2256
+ }, 8, ["title"])
2257
+ ]),
2258
+ _: 1
2259
+ }, 8, ["active-page", "is-open"])) : (m(), O(Kl, {
2260
+ key: 0,
2261
+ class: "b-all-filters-modal__modal",
2262
+ "is-open": p.value,
2263
+ "with-column-layout": !0,
2264
+ size: "large",
2265
+ actions: _e.value,
2266
+ "is-dismissible": !1,
2267
+ "hide-close-button": "",
2268
+ onCloseModal: C
2269
+ }, {
2270
+ default: A(() => [
2271
+ G(z(a(B)("allFilters")), 1)
2272
+ ]),
2273
+ "content-col-1": A(() => [
2274
+ E(Qe, {
2275
+ ref_key: "filterSelectionRef",
2276
+ ref: o,
2277
+ "active-filters": L.value,
2278
+ actions: _e.value,
2279
+ "active-filters-label": a(B)("activeFilters"),
2280
+ "empty-search-message": Q.value ? a(B)("noFiltersMatchThisSearch") : "",
2281
+ "get-filter-count": ce,
2282
+ "other-filters": J.value,
2283
+ "other-filters-label": a(B)("otherFilters"),
2284
+ "search-bar-aria-label": a(B)("searchBar"),
2285
+ "search-term": F.value,
2286
+ "selected-filter-label": U.value.label,
2287
+ "unique-id": a(c),
2288
+ onClearSearch: f,
2289
+ onKeydownRight: Ol,
2290
+ onSelectFilter: de,
2291
+ "onUpdate:searchTerm": h[0] || (h[0] = (j) => F.value = j)
2292
+ }, null, 8, ["active-filters", "actions", "active-filters-label", "empty-search-message", "other-filters", "other-filters-label", "search-bar-aria-label", "search-term", "selected-filter-label", "unique-id"])
2293
+ ]),
2294
+ "content-col-2": A(() => [
2295
+ E(sl, {
2296
+ ref_key: "selectedFilterContentRef",
2297
+ ref: v,
2298
+ actions: _e.value,
2299
+ "clear-button-label": a(B)(y.value ? "reset" : "clear"),
2300
+ "is-clear-button-disabled": T.value,
2301
+ "selected-filter": U.value,
2302
+ "should-show-filter-title": _.value,
2303
+ onClear: re,
2304
+ onInput: R,
2305
+ onKeydownLeft: $l
2306
+ }, null, 8, ["actions", "clear-button-label", "is-clear-button-disabled", "selected-filter", "should-show-filter-title"])
2307
+ ]),
2308
+ _: 1
2309
+ }, 8, ["is-open", "actions"]))
2310
+ ]));
2311
+ }
2312
+ }), Ca = /* @__PURE__ */ Z(Ba, [["__scopeId", "data-v-12fc2053"]]), Il = {
2313
+ "de-DE": { clearFilters: "Filter löschen", filtersHaveBeenCleared: "Filter wurden gelöscht.", filtersHaveBeenReset: "Die Filter wurden zurückgesetzt.", resetFilters: "Filter zurücksetzen", searchBar: "Suchleiste", undo: "Rückgängig machen" },
2314
+ "en-GB": { clearFilters: "Clear filters", filtersHaveBeenCleared: "Filters have been cleared.", filtersHaveBeenReset: "Filters have been reset.", resetFilters: "Reset filters", searchBar: "Search bar", undo: "Undo" },
2315
+ "en-US": { clearFilters: "Clear filters", filtersHaveBeenCleared: "Filters have been cleared.", filtersHaveBeenReset: "Filters have been reset.", resetFilters: "Reset filters", searchBar: "Search bar", undo: "Undo" },
2316
+ "es-419": { clearFilters: "Borrar filtros", filtersHaveBeenCleared: "Se han borrado los filtros.", filtersHaveBeenReset: "Se han restablecido los filtros.", resetFilters: "Restablecer filtros", searchBar: "Barra de búsqueda", undo: "Deshacer" },
2317
+ "es-ES": { clearFilters: "Borrar filtros", filtersHaveBeenCleared: "Se han borrado los filtros.", filtersHaveBeenReset: "Los filtros se han restablecido.", resetFilters: "Reiniciar filtros", searchBar: "Barra de búsqueda", undo: "Deshacer" },
2318
+ "es-MX": { clearFilters: "Borrar filtros", filtersHaveBeenCleared: "Se borraron los filtros.", filtersHaveBeenReset: "Se restablecieron los filtros.", resetFilters: "Restablecer filtros", searchBar: "Barra de búsqueda", undo: "Deshacer" },
2319
+ "fr-FR": { clearFilters: "Effacer les filtres", filtersHaveBeenCleared: "Les filtres ont été effacés.", filtersHaveBeenReset: "Les filtres ont été réinitialisés.", resetFilters: "Réinitialiser les filtres", searchBar: "Barre de recherche", undo: "Annuler" },
2320
+ "it-IT": { clearFilters: "Cancella filtri", filtersHaveBeenCleared: "I filtri sono stati cancellati.", filtersHaveBeenReset: "I filtri sono stati resettati.", resetFilters: "Resetta filtri", searchBar: "Barra di ricerca", undo: "Annulla" },
2321
+ "ja-JP": { clearFilters: "フィルターをクリア", filtersHaveBeenCleared: "フィルターをクリアしました。", filtersHaveBeenReset: "フィルターがリセットされました。", resetFilters: "フィルターをリセット", searchBar: "検索バー", undo: "元に戻す" },
2322
+ "pt-BR": { clearFilters: "Limpar filtros", filtersHaveBeenCleared: "Os filtros foram apagados.", filtersHaveBeenReset: "Os filtros foram limpos.", resetFilters: "Limpar filtros", searchBar: "Barra de busca", undo: "Desfazer" },
2323
+ "zh-CN": { clearFilters: "清除筛选器", filtersHaveBeenCleared: "筛选器已清除。", filtersHaveBeenReset: "筛选器已重置。", resetFilters: "重置筛选器", searchBar: "搜索栏", undo: "撤销" }
2324
+ }, Aa = {
2325
+ key: 0,
2326
+ class: "b-filter-bar__search-external-container"
2327
+ }, Ta = {
2328
+ i18n: { messages: Il },
2329
+ name: "bento-filter-bar",
2330
+ components: {
2331
+ ..._l,
2332
+ BentoTeleport: fl,
2333
+ FixedScroller: ol
2334
+ }
2335
+ }, _a = /* @__PURE__ */ K({
2336
+ ...Ta,
2337
+ props: {
2338
+ config: { default: () => [] },
2339
+ filterValues: { default: () => [] },
2340
+ containerSizeLayout: { default: null },
2341
+ search: { default: void 0 },
2342
+ searchTerm: { default: void 0 },
2343
+ showAppliedHiddenFilters: { type: Boolean, default: !1 },
2344
+ filterValuesObject: { default: void 0 }
2345
+ },
2346
+ emits: [
2347
+ Fe.INPUT,
2348
+ Fe.UPDATE_FILTER_VALUES_OBJECT,
2349
+ Fe.UPDATE_FILTER_VALUES_ARRAY,
2350
+ Be.CLEAR,
2351
+ Be.INPUT,
2352
+ Be.UPDATE
2353
+ ],
2354
+ setup(e, { expose: d, emit: l }) {
2355
+ const i = e, t = l, { t: u } = pe({ messages: Il }), n = k(null), c = r(
2356
+ () => i.config?.map((f) => {
2357
+ let C = i.filterValues.find(({ field: R }) => R === f.field)?.value;
2358
+ return i.filterValuesObject && f.field in i.filterValuesObject && (C = i.filterValuesObject[f.field]), C === void 0 && (C = f?.defaultValue), { ...f, value: C };
2359
+ })
2360
+ ), { addToast: o } = Hl(), p = {
2361
+ large: "multi-line",
2362
+ medium: "one-line",
2363
+ small: "multi-line"
2364
+ }, s = r(() => ({
2365
+ ...p,
2366
+ ...i.containerSizeLayout
2367
+ })), {
2368
+ screenLayoutComponent: v,
2369
+ showSearchbarInsideContainer: F,
2370
+ isOneLineLayout: b,
2371
+ isLargeLayout: B,
2372
+ rootElementConditionalClasses: $
2373
+ } = bt(n, s), D = r(() => ({
2374
+ "b-filter-bar__fixed-scroller": b.value,
2375
+ "b-filter-bar__container": !b.value
2376
+ // Multi-line
2377
+ })), M = r(() => ({
2378
+ "b-filter-bar__scroller-content": b.value,
2379
+ "b-filter-bar__filters": !b.value
2380
+ // Multi-line
2381
+ })), I = r(() => i.search?.inputFieldAriaLabel || u("searchBar")), L = r(() => {
2382
+ if (!i.search)
2383
+ return;
2384
+ const { debounceTime: f, disabled: C, inputFieldAriaLabel: R, hint: re, placeholder: ae } = i.search;
2385
+ return { debounceTime: f, disabled: C, inputFieldAriaLabel: R, hint: re, placeholder: ae };
2386
+ }), J = r(
2387
+ () => i.search?.width && B.value ? { flexBasis: i.search.width, maxWidth: i.search.width } : void 0
2388
+ ), Q = r(
2389
+ () => c.value.some(({ visible: f }) => f != null)
2390
+ ), U = r(
2391
+ () => Q.value ? c.value.some(({ visible: f }) => !f) : !1
2392
+ ), te = r(
2393
+ () => c.value.filter(
2394
+ ({ defaultValue: f, visible: C }) => f !== void 0 && C !== !1
2395
+ )
2396
+ ), oe = r(
2397
+ () => c.value.filter(
2398
+ ({ defaultValue: f, visible: C }) => f === void 0 || C === !1
2399
+ )
2400
+ ), x = r(
2401
+ () => c.value.some(({ defaultValue: f }) => f !== void 0)
2402
+ ), P = r(() => Q.value ? c.value.filter(
2403
+ ({ defaultValue: f, visible: C, value: R }) => f === void 0 && (C || i.showAppliedHiddenFilters && R !== void 0 && R !== null)
2404
+ ) : c.value.filter(({ defaultValue: f }) => f === void 0)), g = r(() => i.searchTerm != null), y = r(
2405
+ () => c.value.filter(({ defaultValue: f }) => f == null).some(({ value: f }) => f != null)
2406
+ ), _ = r(() => !x.value && y.value), T = r(() => x.value ? !c.value.filter(({ defaultValue: C }) => C !== void 0 || C !== null).every(({ value: C, defaultValue: R }) => JSON.stringify(C) === JSON.stringify(R)) || y.value : !1), N = (f) => {
2407
+ t(Fe.INPUT, f), t(
2408
+ Fe.UPDATE_FILTER_VALUES_ARRAY,
2409
+ f?.filter(({ value: C }) => C !== null || C !== void 0).map(({ field: C, value: R }) => ({ field: C, value: R }))
2410
+ ), t(
2411
+ Fe.UPDATE_FILTER_VALUES_OBJECT,
2412
+ f?.filter(({ value: C }) => C !== null || C !== void 0).reduce((C, R) => (C[R.field] = R.value, C), {})
2413
+ );
2414
+ }, V = (f) => {
2415
+ const C = Array.isArray(f) ? f : [f], R = new Map(C.map((ae) => [ae.field, ae.value])), re = c.value.map((ae) => R.has(ae.field) ? { ...ae, value: R.get(ae.field) } : ae);
2416
+ N(re);
2417
+ }, ue = () => {
2418
+ const f = c.value.slice(), C = c.value.map(({ value: R, ...re }) => ({
2419
+ ...re,
2420
+ value: void 0
2421
+ }));
2422
+ o({
2423
+ text: u("filtersHaveBeenCleared"),
2424
+ action: {
2425
+ handler: () => N(f),
2426
+ text: u("undo")
2427
+ }
2428
+ }), N(C);
2429
+ }, ne = () => {
2430
+ const f = c.value.slice(), C = c.value.map(({ defaultValue: R, ...re }) => ({
2431
+ ...re,
2432
+ defaultValue: R,
2433
+ value: R
2434
+ }));
2435
+ o({
2436
+ text: u("filtersHaveBeenReset"),
2437
+ action: {
2438
+ handler: () => N(f),
2439
+ text: u("undo")
2440
+ }
2441
+ }), N(C);
2442
+ }, ce = (f) => {
2443
+ t(Be.INPUT, f), t(Be.UPDATE, f);
2444
+ }, de = () => {
2445
+ t(Be.CLEAR);
2446
+ };
2447
+ return d({ isClearAllVisible: _, clearAllFilters: ue, isResetAllVisible: T, resetAllFilters: ne }), (f, C) => (m(), w("div", {
2448
+ ref_key: "filterBarRef",
2449
+ ref: n,
2450
+ class: ee(["b-filter-bar", a($)])
2451
+ }, [
2452
+ !a(F) && g.value ? (m(), w("div", Aa, [
2453
+ E(ke, be({ class: "b-filter-bar__search-bar" }, L.value, {
2454
+ "input-field-aria-label": I.value,
2455
+ value: f.searchTerm,
2456
+ condensed: "",
2457
+ style: J.value,
2458
+ onInput: ce,
2459
+ onClear: de
2460
+ }), null, 16, ["input-field-aria-label", "value", "style"])
2461
+ ])) : H("", !0),
2462
+ (m(), O(Ee(a(v)), {
2463
+ class: ee(D.value),
2464
+ condensed: ""
2465
+ }, {
2466
+ default: A(() => [
2467
+ q("div", {
2468
+ class: ee(M.value)
2469
+ }, [
2470
+ a(F) && g.value ? (m(), w("div", {
2471
+ key: 0,
2472
+ class: "b-filter-bar__search-bar-container",
2473
+ style: wl(J.value)
2474
+ }, [
2475
+ E(ke, be({ class: "b-filter-bar__search-bar" }, L.value, {
2476
+ "input-field-aria-label": I.value,
2477
+ value: f.searchTerm,
2478
+ condensed: "",
2479
+ onInput: ce,
2480
+ onClear: de
2481
+ }), null, 16, ["input-field-aria-label", "value"])
2482
+ ], 4)) : H("", !0),
2483
+ te.value.length ? (m(!0), w(Oe, { key: 1 }, he(te.value, (R) => (m(), O(Ee(R.type), {
2484
+ key: R.field,
2485
+ field: R.field,
2486
+ label: R.label,
2487
+ disabled: R?.disabled,
2488
+ options: R.options,
2489
+ value: R.value,
2490
+ "default-value": R.defaultValue,
2491
+ onUpdate: V
2492
+ }, null, 40, ["field", "label", "disabled", "options", "value", "default-value"]))), 128)) : H("", !0),
2493
+ (m(!0), w(Oe, null, he(P.value, (R) => (m(), O(Ee(R.type), {
2494
+ key: R.field,
2495
+ field: R.field,
2496
+ label: R.label,
2497
+ disabled: R?.disabled,
2498
+ options: R.options,
2499
+ value: R.value,
2500
+ onUpdate: V
2501
+ }, null, 40, ["field", "label", "disabled", "options", "value"]))), 128)),
2502
+ U.value ? (m(), O(Ca, {
2503
+ key: 2,
2504
+ class: "b-filter-bar__all-filters-modal",
2505
+ value: oe.value,
2506
+ onInput: V
2507
+ }, null, 8, ["value"])) : H("", !0),
2508
+ _.value ? (m(), O(a(Se), {
2509
+ key: 3,
2510
+ class: "b-filter-bar__clear-all",
2511
+ onClick: ue
2512
+ }, {
2513
+ iconLeft: A(() => [
2514
+ E(a(Ke), { "aria-hidden": "true" })
2515
+ ]),
2516
+ default: A(() => [
2517
+ G(z(a(u)("clearFilters")) + " ", 1)
2518
+ ]),
2519
+ _: 1
2520
+ })) : H("", !0),
2521
+ T.value ? (m(), O(a(Se), {
2522
+ key: 4,
2523
+ class: "b-filter-bar__reset-all",
2524
+ onClick: ne
2525
+ }, {
2526
+ iconLeft: A(() => [
2527
+ E(a(Ke), { "aria-hidden": "true" })
2528
+ ]),
2529
+ default: A(() => [
2530
+ G(z(a(u)("resetFilters")) + " ", 1)
2531
+ ]),
2532
+ _: 1
2533
+ })) : H("", !0)
2534
+ ], 2)
2535
+ ]),
2536
+ _: 1
2537
+ }, 8, ["class"]))
2538
+ ], 2));
2539
+ }
2540
+ }), os = /* @__PURE__ */ Z(_a, [["__scopeId", "data-v-04ac5745"]]);
2541
+ export {
2542
+ Te as B,
2543
+ na as S,
2544
+ ra as _,
2545
+ os as a,
2546
+ Fe as b,
2547
+ W as c,
2548
+ Y as d,
2549
+ yl as e,
2550
+ Ie as u
2551
+ };
2552
+ //# sourceMappingURL=filter-bar.BPPxuT_w.js.map