@adyen/bento-vue2 1.84.2 → 1.86.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 (422) hide show
  1. package/dist/@types/components.d.ts +6 -0
  2. package/dist/@types/index.d.ts +480 -268
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +5 -0
  6. package/dist/ai-tag.js.map +1 -0
  7. package/dist/alert.js +1 -1
  8. package/dist/anchor-scroller.js +5 -0
  9. package/dist/anchor-scroller.js.map +1 -0
  10. package/dist/assets/accordion-item.css +1 -1
  11. package/dist/assets/action-bar.css +1 -1
  12. package/dist/assets/ai-tag.css +1 -0
  13. package/dist/assets/anchor-scroller.css +1 -0
  14. package/dist/assets/base-modal.css +1 -1
  15. package/dist/assets/button-actions.css +1 -1
  16. package/dist/assets/card.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-picker.css +1 -1
  20. package/dist/assets/date-range-picker.css +1 -1
  21. package/dist/assets/dialog-page.css +1 -1
  22. package/dist/assets/draggable-handle.css +1 -0
  23. package/dist/assets/dropdown-default-textbox.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/error-message.css +1 -0
  26. package/dist/assets/file-uploader.css +1 -1
  27. package/dist/assets/filter-bar.css +1 -1
  28. package/dist/assets/fixed-scroller.css +1 -1
  29. package/dist/assets/form-layout-title.css +1 -1
  30. package/dist/assets/inspector.css +1 -1
  31. package/dist/assets/layout-row.css +1 -1
  32. package/dist/assets/modal-fullscreen.css +1 -1
  33. package/dist/assets/radio-group.css +1 -1
  34. package/dist/assets/secondary-nav.css +1 -1
  35. package/dist/assets/sidepanel.css +1 -1
  36. package/dist/assets/use-cached-selected-values.css +1 -1
  37. package/dist/avatar.js +1 -1
  38. package/dist/button.js +3 -3
  39. package/dist/card.js +1 -1
  40. package/dist/checkbox.js +6 -6
  41. package/dist/chip.js +1 -1
  42. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  43. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  44. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  45. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  46. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  47. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  48. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  49. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  50. package/dist/chunks/{accordion-item.DeV8s0oW.js → accordion-item.Cv6kG2N3.js} +2 -2
  51. package/dist/chunks/{accordion-item.DeV8s0oW.js.map → accordion-item.Cv6kG2N3.js.map} +1 -1
  52. package/dist/chunks/action-bar.Dnkt4yn7.js +163 -0
  53. package/dist/chunks/action-bar.Dnkt4yn7.js.map +1 -0
  54. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  55. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  56. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  57. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  58. package/dist/chunks/ai-button.BTi18ipD.js +50 -0
  59. package/dist/chunks/ai-button.BTi18ipD.js.map +1 -0
  60. package/dist/chunks/ai-tag.s8TECgn_.js +82 -0
  61. package/dist/chunks/ai-tag.s8TECgn_.js.map +1 -0
  62. package/dist/chunks/{alert.B3Pdp02a.js → alert.BESCd8iS.js} +5 -5
  63. package/dist/chunks/{alert.B3Pdp02a.js.map → alert.BESCd8iS.js.map} +1 -1
  64. package/dist/chunks/anchor-scroller.3_idPubO.js +178 -0
  65. package/dist/chunks/anchor-scroller.3_idPubO.js.map +1 -0
  66. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  67. package/dist/chunks/arrow-left.CRREfabP.js +24 -0
  68. package/dist/chunks/arrow-left.CRREfabP.js.map +1 -0
  69. package/dist/chunks/arrow-right.Dn3AYpUP.js +24 -0
  70. package/dist/chunks/arrow-right.Dn3AYpUP.js.map +1 -0
  71. package/dist/chunks/artificial-intelligence-ai-filled.C6TMsiHK.js +24 -0
  72. package/dist/chunks/artificial-intelligence-ai-filled.C6TMsiHK.js.map +1 -0
  73. package/dist/chunks/{avatar.CUCH3CTc.js → avatar.rwWPYJnt.js} +2 -2
  74. package/dist/chunks/{avatar.CUCH3CTc.js.map → avatar.rwWPYJnt.js.map} +1 -1
  75. package/dist/chunks/{base-button.IN4bpcds.js → base-button.BPRPrO0p.js} +2 -2
  76. package/dist/chunks/{base-button.IN4bpcds.js.map → base-button.BPRPrO0p.js.map} +1 -1
  77. package/dist/chunks/{base-modal.KYkLKswF.js → base-modal.09nAcnF_.js} +41 -41
  78. package/dist/chunks/{base-modal.KYkLKswF.js.map → base-modal.09nAcnF_.js.map} +1 -1
  79. package/dist/chunks/{button-actions-with-menu.B5mKwc-F.js → button-actions-with-menu.C8tSTxrm.js} +3 -3
  80. package/dist/chunks/{button-actions-with-menu.B5mKwc-F.js.map → button-actions-with-menu.C8tSTxrm.js.map} +1 -1
  81. package/dist/chunks/{button-actions.D9n7MxWe.js → button-actions.VSc47LLH.js} +8 -8
  82. package/dist/chunks/{button-actions.D9n7MxWe.js.map → button-actions.VSc47LLH.js.map} +1 -1
  83. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  84. package/dist/chunks/{button.DIU6m9wD.js → button.Ctj3rkxw.js} +5 -5
  85. package/dist/chunks/{button.DIU6m9wD.js.map → button.Ctj3rkxw.js.map} +1 -1
  86. package/dist/chunks/{calendar.C8DpZ4Sr.js → calendar.DiXkjQDP.js} +100 -94
  87. package/dist/chunks/{calendar.C8DpZ4Sr.js.map → calendar.DiXkjQDP.js.map} +1 -1
  88. package/dist/chunks/{card.CLX0RGG6.js → card.BdjdBN36.js} +3 -3
  89. package/dist/chunks/{card.CLX0RGG6.js.map → card.BdjdBN36.js.map} +1 -1
  90. package/dist/chunks/{checkbox-group.BCnhjQie.js → checkbox-group.d6VQvZL7.js} +5 -5
  91. package/dist/chunks/{checkbox-group.BCnhjQie.js.map → checkbox-group.d6VQvZL7.js.map} +1 -1
  92. package/dist/chunks/{checkbox.CU5ierOq.js → checkbox.ClFNfhNh.js} +4 -4
  93. package/dist/chunks/{checkbox.CU5ierOq.js.map → checkbox.ClFNfhNh.js.map} +1 -1
  94. package/dist/chunks/{chip.C6DRfdJ8.js → chip.D_XQ8ReC.js} +3 -3
  95. package/dist/chunks/{chip.C6DRfdJ8.js.map → chip.D_XQ8ReC.js.map} +1 -1
  96. package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
  97. package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
  98. package/dist/chunks/{code-snippet.9MwDHp50.js → code-snippet.DBNJgt1j.js} +11 -11
  99. package/dist/chunks/{code-snippet.9MwDHp50.js.map → code-snippet.DBNJgt1j.js.map} +1 -1
  100. package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
  101. package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
  102. package/dist/chunks/constructNow.B8T1ljs6.js +8 -0
  103. package/dist/chunks/{constructNow.DuaJst0D.js.map → constructNow.B8T1ljs6.js.map} +1 -1
  104. package/dist/chunks/{controls-group.D4eW9DtP.js → controls-group.HUWlAOhG.js} +3 -3
  105. package/dist/chunks/{controls-group.D4eW9DtP.js.map → controls-group.HUWlAOhG.js.map} +1 -1
  106. package/dist/chunks/{copy.C0q7xgXs.js → copy.BXykYfg0.js} +7 -7
  107. package/dist/chunks/{copy.C0q7xgXs.js.map → copy.BXykYfg0.js.map} +1 -1
  108. package/dist/chunks/{country.DyrDj95W.js → country.BywHth0L.js} +3 -3
  109. package/dist/chunks/{country.DyrDj95W.js.map → country.BywHth0L.js.map} +1 -1
  110. package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
  111. package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
  112. package/dist/chunks/{currency.DYZr_RDk.js → currency.Ciyxfmg1.js} +2 -2
  113. package/dist/chunks/{currency.DYZr_RDk.js.map → currency.Ciyxfmg1.js.map} +1 -1
  114. package/dist/chunks/{dashboard-section.B83FdC0Z.js → dashboard-section.Cw2Ima3U.js} +6 -6
  115. package/dist/chunks/{dashboard-section.B83FdC0Z.js.map → dashboard-section.Cw2Ima3U.js.map} +1 -1
  116. package/dist/chunks/{dashed-underline.DQGVy5T2.js → dashed-underline.Dfw7cJ-9.js} +9 -9
  117. package/dist/chunks/{dashed-underline.DQGVy5T2.js.map → dashed-underline.Dfw7cJ-9.js.map} +1 -1
  118. package/dist/chunks/{data-grid-template.BTEFoEwf.js → data-grid-template.6LR2Jqka.js} +4 -4
  119. package/dist/chunks/{data-grid-template.BTEFoEwf.js.map → data-grid-template.6LR2Jqka.js.map} +1 -1
  120. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  121. package/dist/chunks/{data-grid.Bk7_6Z0F.js → data-grid.B_uZEPDW.js} +449 -442
  122. package/dist/chunks/data-grid.B_uZEPDW.js.map +1 -0
  123. package/dist/chunks/date-input.etw_pFpA.js +20 -0
  124. package/dist/chunks/date-input.etw_pFpA.js.map +1 -0
  125. package/dist/chunks/{date-picker.CnsC_UMG.js → date-picker.CITeN8WH.js} +56 -56
  126. package/dist/chunks/date-picker.CITeN8WH.js.map +1 -0
  127. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  128. package/dist/chunks/date-range-picker.DxVjXxap.js +897 -0
  129. package/dist/chunks/date-range-picker.DxVjXxap.js.map +1 -0
  130. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  131. package/dist/chunks/{date.DBWzp0So.js → date.B0m0sFP6.js} +2 -2
  132. package/dist/chunks/{date.DBWzp0So.js.map → date.B0m0sFP6.js.map} +1 -1
  133. package/dist/chunks/de.DvtL0g75.js.map +1 -1
  134. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  135. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  136. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  137. package/dist/chunks/dialog-page.DA6E6qma.js +122 -0
  138. package/dist/chunks/dialog-page.DA6E6qma.js.map +1 -0
  139. package/dist/chunks/{differenceInMonths.DcFDl4eH.js → differenceInMonths.BR4Z2HIa.js} +2 -2
  140. package/dist/chunks/{differenceInMonths.DcFDl4eH.js.map → differenceInMonths.BR4Z2HIa.js.map} +1 -1
  141. package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
  142. package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
  143. package/dist/chunks/divider.DX5gwN7p.js.map +1 -1
  144. package/dist/chunks/{dropdown-default-textbox.Cq68tN9F.js → dropdown-default-textbox.5WjhJWdh.js} +71 -80
  145. package/dist/chunks/dropdown-default-textbox.5WjhJWdh.js.map +1 -0
  146. package/dist/chunks/{dropdown-tag.HBM0wrEV.js → dropdown-tag.BnMuMIDk.js} +8 -8
  147. package/dist/chunks/{dropdown-tag.HBM0wrEV.js.map → dropdown-tag.BnMuMIDk.js.map} +1 -1
  148. package/dist/chunks/{dropdown.C2pXf8Li.js → dropdown.DDPfKc74.js} +227 -225
  149. package/dist/chunks/dropdown.DDPfKc74.js.map +1 -0
  150. package/dist/chunks/{empty-state.DpBnqAxu.js → empty-state.IiG1LXa2.js} +6 -6
  151. package/dist/chunks/{empty-state.DpBnqAxu.js.map → empty-state.IiG1LXa2.js.map} +1 -1
  152. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -1
  153. package/dist/chunks/en-US.BZii9jNW.js.map +1 -1
  154. package/dist/chunks/{field-label.CEkJnsiL.js → error-message.VenUl2OK.js} +54 -54
  155. package/dist/chunks/error-message.VenUl2OK.js.map +1 -0
  156. package/dist/chunks/es.bz0mzkMq.js.map +1 -1
  157. package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
  158. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  159. package/dist/chunks/{file-uploader.CnOqfuI-.js → file-uploader.BU1V40qK.js} +10 -10
  160. package/dist/chunks/file-uploader.BU1V40qK.js.map +1 -0
  161. package/dist/chunks/filter-bar.UdXQf_RN.js +3321 -0
  162. package/dist/chunks/filter-bar.UdXQf_RN.js.map +1 -0
  163. package/dist/chunks/fixed-scroller.BueAsyGk.js +120 -0
  164. package/dist/chunks/{fixed-scroller.Bp4-iO80.js.map → fixed-scroller.BueAsyGk.js.map} +1 -1
  165. package/dist/chunks/{focus-trap.CNIU5jOz.js → focus-trap.DMc1wL3A.js} +312 -295
  166. package/dist/chunks/focus-trap.DMc1wL3A.js.map +1 -0
  167. package/dist/chunks/{footer-actions.BOiN47Xd.js → footer-actions.z-api8J_.js} +4 -4
  168. package/dist/chunks/{footer-actions.BOiN47Xd.js.map → footer-actions.z-api8J_.js.map} +1 -1
  169. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  170. package/dist/chunks/{form-layout-title.CdC1T4gs.js → form-layout-title.Bbq05nMT.js} +6 -6
  171. package/dist/chunks/{form-layout-title.CdC1T4gs.js.map → form-layout-title.Bbq05nMT.js.map} +1 -1
  172. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  173. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -1
  174. package/dist/chunks/fr.Dj7wEToe.js.map +1 -1
  175. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  176. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  177. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js} +3 -3
  178. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map} +1 -1
  179. package/dist/chunks/grab.BxiVZ1RZ.js +24 -0
  180. package/dist/chunks/grab.BxiVZ1RZ.js.map +1 -0
  181. package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -1
  182. package/dist/chunks/{header-meta.D_oAu2S9.js → header-meta.CuMQSsOm.js} +11 -11
  183. package/dist/chunks/{header-meta.D_oAu2S9.js.map → header-meta.CuMQSsOm.js.map} +1 -1
  184. package/dist/chunks/{header-with-views.Dc9LUYNY.js → header-with-views.DX8EXLMJ.js} +383 -400
  185. package/dist/chunks/header-with-views.DX8EXLMJ.js.map +1 -0
  186. package/dist/chunks/{header.BmtlQmPs.js → header.YECm2GAh.js} +4 -4
  187. package/dist/chunks/{header.BmtlQmPs.js.map → header.YECm2GAh.js.map} +1 -1
  188. package/dist/chunks/image.C2D2hKat.js.map +1 -1
  189. package/dist/chunks/index.B6WW_F-J.js.map +1 -1
  190. package/dist/chunks/index.BkJqgYF1.js +692 -0
  191. package/dist/chunks/{index.BDK4hwK_.js.map → index.BkJqgYF1.js.map} +1 -1
  192. package/dist/chunks/{info-icon.BEyxQgD6.js → info-icon.DS9ax8ZD.js} +3 -3
  193. package/dist/chunks/{info-icon.BEyxQgD6.js.map → info-icon.DS9ax8ZD.js.map} +1 -1
  194. package/dist/chunks/{input-field-password.D23H_RvO.js → input-field-password.DrI6eF5u.js} +11 -11
  195. package/dist/chunks/{input-field-password.D23H_RvO.js.map → input-field-password.DrI6eF5u.js.map} +1 -1
  196. package/dist/chunks/{input-field-phone-number.Bvk2Pvec.js → input-field-phone-number.Buh4x3pJ.js} +4 -4
  197. package/dist/chunks/{input-field-phone-number.Bvk2Pvec.js.map → input-field-phone-number.Buh4x3pJ.js.map} +1 -1
  198. package/dist/chunks/{input-field.hf0_ALq0.js → input-field.NEKXqT4R.js} +7 -7
  199. package/dist/chunks/{input-field.hf0_ALq0.js.map → input-field.NEKXqT4R.js.map} +1 -1
  200. package/dist/chunks/{inspector.C0iAxxoz.js → inspector.BomNgVb-.js} +5 -5
  201. package/dist/chunks/{inspector.C0iAxxoz.js.map → inspector.BomNgVb-.js.map} +1 -1
  202. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  203. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  204. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  205. package/dist/chunks/isSameWeek.DjeUtLwI.js +14 -0
  206. package/dist/chunks/{isSameWeek.CUD7czUN.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
  207. package/dist/chunks/{it.Oaj6BklL.js → it.DIafuXtH.js} +2 -2
  208. package/dist/chunks/{it.Oaj6BklL.js.map → it.DIafuXtH.js.map} +1 -1
  209. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -1
  210. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  211. package/dist/chunks/ko.Ceaof6EP.js.map +1 -1
  212. package/dist/chunks/{layout-row.BPX00mio.js → layout-row.BxuMJU4E.js} +4 -4
  213. package/dist/chunks/layout-row.BxuMJU4E.js.map +1 -0
  214. package/dist/chunks/{link.PsTSQjK3.js → link.DKimL08z.js} +2 -2
  215. package/dist/chunks/{link.PsTSQjK3.js.map → link.DKimL08z.js.map} +1 -1
  216. package/dist/chunks/{listbox-option-tag.BlDz7oXK.js → listbox-option-tag.Cv3y0TvQ.js} +3 -3
  217. package/dist/chunks/{listbox-option-tag.BlDz7oXK.js.map → listbox-option-tag.Cv3y0TvQ.js.map} +1 -1
  218. package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -1
  219. package/dist/chunks/match.CMBZxEs9.js.map +1 -1
  220. package/dist/chunks/minus-small.DJacLGTw.js.map +1 -1
  221. package/dist/chunks/{modal-fullscreen.B1gltlxA.js → modal-fullscreen.6bAjPENL.js} +73 -69
  222. package/dist/chunks/modal-fullscreen.6bAjPENL.js.map +1 -0
  223. package/dist/chunks/{modal.e3EQ6Kex.js → modal.DOR8c0gy.js} +6 -6
  224. package/dist/chunks/{modal.e3EQ6Kex.js.map → modal.DOR8c0gy.js.map} +1 -1
  225. package/dist/chunks/nl.B6vCf2B9.js.map +1 -1
  226. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  227. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  228. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  229. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  230. package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
  231. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
  232. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  233. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  234. package/dist/chunks/{pagination.BcFt2FqK.js → pagination.wuEIlDcq.js} +4 -4
  235. package/dist/chunks/{pagination.BcFt2FqK.js.map → pagination.wuEIlDcq.js.map} +1 -1
  236. package/dist/chunks/{payment-method.BKXLPDC9.js → payment-method.B3CkgsAY.js} +2 -2
  237. package/dist/chunks/{payment-method.BKXLPDC9.js.map → payment-method.B3CkgsAY.js.map} +1 -1
  238. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  239. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  240. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  241. package/dist/chunks/popover.types.DkiRUQ4Z.js +6 -0
  242. package/dist/chunks/{popover.types.WDh5ggr3.js.map → popover.types.DkiRUQ4Z.js.map} +1 -1
  243. package/dist/chunks/popper-container.D4dworD4.js +1423 -0
  244. package/dist/chunks/popper-container.D4dworD4.js.map +1 -0
  245. package/dist/chunks/{promo-banner.yfBorKj7.js → promo-banner.bjMDm76T.js} +4 -4
  246. package/dist/chunks/{promo-banner.yfBorKj7.js.map → promo-banner.bjMDm76T.js.map} +1 -1
  247. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -1
  248. package/dist/chunks/{radio-group.CtTnfkYg.js → radio-group.DKRxfGtE.js} +8 -8
  249. package/dist/chunks/{radio-group.CtTnfkYg.js.map → radio-group.DKRxfGtE.js.map} +1 -1
  250. package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -1
  251. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  252. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  253. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  254. package/dist/chunks/{rich-text-editor.Dq2CFGOu.js → rich-text-editor.DiuS9alD.js} +9 -13
  255. package/dist/chunks/rich-text-editor.DiuS9alD.js.map +1 -0
  256. package/dist/chunks/{search-bar.B0SdQBnY.js → search-bar.UVSaoX0h.js} +5 -5
  257. package/dist/chunks/{search-bar.B0SdQBnY.js.map → search-bar.UVSaoX0h.js.map} +1 -1
  258. package/dist/chunks/{secondary-nav.BPGpxd0p.js → secondary-nav.C6ldQMZ2.js} +18 -18
  259. package/dist/chunks/secondary-nav.C6ldQMZ2.js.map +1 -0
  260. package/dist/chunks/{segmented-control.BtWFda0P.js → segmented-control.BLnuxgnJ.js} +3 -3
  261. package/dist/chunks/{segmented-control.BtWFda0P.js.map → segmented-control.BLnuxgnJ.js.map} +1 -1
  262. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  263. package/dist/chunks/{selection-card-group.BryV14qP.js → selection-card-group.CqGYskmS.js} +5 -5
  264. package/dist/chunks/{selection-card-group.BryV14qP.js.map → selection-card-group.CqGYskmS.js.map} +1 -1
  265. package/dist/chunks/{sidepanel.NFyZGE57.js → sidepanel.BKE87Uef.js} +71 -67
  266. package/dist/chunks/sidepanel.BKE87Uef.js.map +1 -0
  267. package/dist/chunks/{startOfWeek.Dxw2MhGp.js → startOfWeek.D8Yh4c0G.js} +3 -3
  268. package/dist/chunks/{startOfWeek.Dxw2MhGp.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
  269. package/dist/chunks/{status.types.Cv5XN4zL.js → status.types.BTsaLHQ6.js} +2 -2
  270. package/dist/chunks/{status.types.Cv5XN4zL.js.map → status.types.BTsaLHQ6.js.map} +1 -1
  271. package/dist/chunks/{step.BLFXvHL6.js → step.BEbWkprZ.js} +5 -5
  272. package/dist/chunks/{step.BLFXvHL6.js.map → step.BEbWkprZ.js.map} +1 -1
  273. package/dist/chunks/{structured-list-item.CptOCpHP.js → structured-list-item.DRFRap_S.js} +6 -6
  274. package/dist/chunks/{structured-list-item.CptOCpHP.js.map → structured-list-item.DRFRap_S.js.map} +1 -1
  275. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  276. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  277. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  278. package/dist/chunks/{summary-grid.types.B1T8_k1m.js → summary-grid.types.OldkhD7S.js} +10 -10
  279. package/dist/chunks/{summary-grid.types.B1T8_k1m.js.map → summary-grid.types.OldkhD7S.js.map} +1 -1
  280. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -1
  281. package/dist/chunks/{tab.FUMpPsBP.js → tab.BqSNoefU.js} +5 -5
  282. package/dist/chunks/{tab.FUMpPsBP.js.map → tab.BqSNoefU.js.map} +1 -1
  283. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  284. package/dist/chunks/{tag.B1Ywhgvc.js → tag.Cy3XkSDQ.js} +3 -3
  285. package/dist/chunks/{tag.B1Ywhgvc.js.map → tag.Cy3XkSDQ.js.map} +1 -1
  286. package/dist/chunks/{textarea.riUt0BiI.js → textarea.Bm9MZb_W.js} +4 -4
  287. package/dist/chunks/{textarea.riUt0BiI.js.map → textarea.Bm9MZb_W.js.map} +1 -1
  288. package/dist/chunks/{timeline-item.CFfW1DoD.js → timeline-item.Cpbm8IUw.js} +15 -15
  289. package/dist/chunks/{timeline-item.CFfW1DoD.js.map → timeline-item.Cpbm8IUw.js.map} +1 -1
  290. package/dist/chunks/{toast.Csv6tMyT.js → toast.Wuy6VuOT.js} +4 -4
  291. package/dist/chunks/{toast.Csv6tMyT.js.map → toast.Wuy6VuOT.js.map} +1 -1
  292. package/dist/chunks/{toggle.227XgEc7.js → toggle.B1z1YPe_.js} +4 -4
  293. package/dist/chunks/{toggle.227XgEc7.js.map → toggle.B1z1YPe_.js.map} +1 -1
  294. package/dist/chunks/{tooltip.C6YCavPw.js → tooltip.DF11J3k3.js} +50 -50
  295. package/dist/chunks/{tooltip.C6YCavPw.js.map → tooltip.DF11J3k3.js.map} +1 -1
  296. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  297. package/dist/chunks/{tutorial.D18LwXVy.js → tutorial.D5xtZ1Pt.js} +8 -8
  298. package/dist/chunks/{tutorial.D18LwXVy.js.map → tutorial.D5xtZ1Pt.js.map} +1 -1
  299. package/dist/chunks/{typography.Bq-EGj9y.js → typography.C8lPlsbD.js} +3 -3
  300. package/dist/chunks/{typography.Bq-EGj9y.js.map → typography.C8lPlsbD.js.map} +1 -1
  301. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  302. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  303. package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js → use-bento-toast-controller.CB6Qbf3R.js} +2 -2
  304. package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js.map → use-bento-toast-controller.CB6Qbf3R.js.map} +1 -1
  305. package/dist/chunks/{use-cached-selected-values.gDWGi5Nk.js → use-cached-selected-values.wn2xnwYG.js} +23 -23
  306. package/dist/chunks/use-cached-selected-values.wn2xnwYG.js.map +1 -0
  307. package/dist/chunks/{use-country-items.ClS_So5N.js → use-country-items.CQnldpqM.js} +11 -11
  308. package/dist/chunks/{use-country-items.ClS_So5N.js.map → use-country-items.CQnldpqM.js.map} +1 -1
  309. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  310. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
  311. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  312. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  313. package/dist/chunks/utils.BzUwtTXc.js +21 -0
  314. package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
  315. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  316. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  317. package/dist/chunks/{zh-CN.BzH0fIXr.js → zh-CN.Bw_6j9Cd.js} +2 -2
  318. package/dist/chunks/{zh-CN.BzH0fIXr.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
  319. package/dist/click-outside.js +1 -1
  320. package/dist/code-snippet.js +1 -1
  321. package/dist/country.js +2 -2
  322. package/dist/currency.js +1 -1
  323. package/dist/dashboard-template.js +1 -1
  324. package/dist/dashed-underline.js +1 -1
  325. package/dist/data-grid-template.js +1 -1
  326. package/dist/data-grid.js +6 -5
  327. package/dist/date-picker.js +2 -2
  328. package/dist/date-range-picker.js +2 -2
  329. package/dist/date.js +1 -1
  330. package/dist/draggable-handle.js +173 -0
  331. package/dist/draggable-handle.js.map +1 -0
  332. package/dist/dropdown.js +11 -11
  333. package/dist/empty-state.js +1 -1
  334. package/dist/file-uploader.js +1 -1
  335. package/dist/filter-bar.js +1 -1
  336. package/dist/focus-trap.js +1 -1
  337. package/dist/form-layout.js +1 -1
  338. package/dist/header-with-views.js +1 -1
  339. package/dist/header.js +1 -1
  340. package/dist/index.js +341 -335
  341. package/dist/index.js.map +1 -1
  342. package/dist/info-icon.js +1 -1
  343. package/dist/input-field-password.js +1 -1
  344. package/dist/input-field-phone-number.js +1 -1
  345. package/dist/input-field.js +1 -1
  346. package/dist/inspector.js +1 -1
  347. package/dist/internal.js +42 -42
  348. package/dist/layout.js +1 -1
  349. package/dist/link.js +1 -1
  350. package/dist/menu.js +1 -1
  351. package/dist/modal-fullscreen.js +1 -1
  352. package/dist/modal.js +2 -2
  353. package/dist/pagination.js +1 -1
  354. package/dist/payment-method.js +1 -1
  355. package/dist/popover.js +2 -2
  356. package/dist/popper-container.js +1 -1
  357. package/dist/promo-banner.js +1 -1
  358. package/dist/radio-group.js +1 -1
  359. package/dist/rich-text-editor.js +1 -1
  360. package/dist/search-bar.js +2 -2
  361. package/dist/secondary-nav.js +1 -1
  362. package/dist/segmented-control.js +1 -1
  363. package/dist/selection-card.js +1 -1
  364. package/dist/sidepanel.js +1 -1
  365. package/dist/status.js +1 -1
  366. package/dist/stepper.js +1 -1
  367. package/dist/structured-list.js +1 -1
  368. package/dist/styles/bento-dark.css +5 -0
  369. package/dist/styles/bento-light.css +5 -0
  370. package/dist/styles/bento.css +5 -0
  371. package/dist/styles/legacy.css +5 -0
  372. package/dist/styles/styleguide.css +5 -0
  373. package/dist/summary-grid.js +1 -1
  374. package/dist/tabs.js +1 -1
  375. package/dist/tag.js +1 -1
  376. package/dist/textarea.js +1 -1
  377. package/dist/timeline.js +1 -1
  378. package/dist/toast.js +1 -1
  379. package/dist/toggle.js +1 -1
  380. package/dist/tutorial.js +1 -1
  381. package/dist/typography.js +1 -1
  382. package/dist/use-form-v4.js +756 -7787
  383. package/dist/use-form-v4.js.map +1 -1
  384. package/dist/web-types.json +339 -35
  385. package/package.json +9 -9
  386. package/dist/assets/field-label.css +0 -1
  387. package/dist/chunks/action-bar.y4tcdk7R.js +0 -162
  388. package/dist/chunks/action-bar.y4tcdk7R.js.map +0 -1
  389. package/dist/chunks/ai-button.BEy4Gly-.js +0 -67
  390. package/dist/chunks/ai-button.BEy4Gly-.js.map +0 -1
  391. package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
  392. package/dist/chunks/constructNow.DuaJst0D.js +0 -8
  393. package/dist/chunks/data-grid.Bk7_6Z0F.js.map +0 -1
  394. package/dist/chunks/date-input.BbZqj10S.js +0 -15
  395. package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
  396. package/dist/chunks/date-picker.CnsC_UMG.js.map +0 -1
  397. package/dist/chunks/date-range-picker.B6GSRjjK.js +0 -1693
  398. package/dist/chunks/date-range-picker.B6GSRjjK.js.map +0 -1
  399. package/dist/chunks/dialog-page.QpRiNPyx.js +0 -137
  400. package/dist/chunks/dialog-page.QpRiNPyx.js.map +0 -1
  401. package/dist/chunks/dropdown-default-textbox.Cq68tN9F.js.map +0 -1
  402. package/dist/chunks/dropdown.C2pXf8Li.js.map +0 -1
  403. package/dist/chunks/field-label.CEkJnsiL.js.map +0 -1
  404. package/dist/chunks/file-uploader.CnOqfuI-.js.map +0 -1
  405. package/dist/chunks/filter-bar.CnJAxz9B.js +0 -2559
  406. package/dist/chunks/filter-bar.CnJAxz9B.js.map +0 -1
  407. package/dist/chunks/fixed-scroller.Bp4-iO80.js +0 -114
  408. package/dist/chunks/focus-trap.CNIU5jOz.js.map +0 -1
  409. package/dist/chunks/header-with-views.Dc9LUYNY.js.map +0 -1
  410. package/dist/chunks/index.BDK4hwK_.js +0 -593
  411. package/dist/chunks/isSameWeek.CUD7czUN.js +0 -14
  412. package/dist/chunks/layout-row.BPX00mio.js.map +0 -1
  413. package/dist/chunks/modal-fullscreen.B1gltlxA.js.map +0 -1
  414. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  415. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  416. package/dist/chunks/popover.types.WDh5ggr3.js +0 -6
  417. package/dist/chunks/popper-container.Cdokz_NE.js +0 -1404
  418. package/dist/chunks/popper-container.Cdokz_NE.js.map +0 -1
  419. package/dist/chunks/rich-text-editor.Dq2CFGOu.js.map +0 -1
  420. package/dist/chunks/secondary-nav.BPGpxd0p.js.map +0 -1
  421. package/dist/chunks/sidepanel.NFyZGE57.js.map +0 -1
  422. package/dist/chunks/use-cached-selected-values.gDWGi5Nk.js.map +0 -1
@@ -0,0 +1,122 @@
1
+ import { defineComponent as U, useSlots as H, ref as P, computed as n, inject as N, watch as h, nextTick as S, onMounted as J, onUnmounted as F } from "vue";
2
+ import { B as K } from "./button.Ctj3rkxw.js";
3
+ import { A as M } from "./arrow-left.CRREfabP.js";
4
+ import { u as Y } from "./use-has-slot.C9lQZ6nz.js";
5
+ import { u as $ } from "./index.B6WW_F-J.js";
6
+ import { i as z } from "./typography.C8lPlsbD.js";
7
+ import { c as q } from "./index.BkJqgYF1.js";
8
+ import { n as Q } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
+ import "../assets/dialog-page.css";
10
+ var E = /* @__PURE__ */ ((l) => (l.TRANSITION_LEVEL_DEEPER = "b-dialog-page__animation--level-deeper", l.TRANSITION_LEVEL_UPPER = "b-dialog-page__animation--level-upper", l))(E || {});
11
+ const W = /* @__PURE__ */ Symbol("dialog registerPage injection key"), X = /* @__PURE__ */ Symbol("dialog page config data injection key"), Z = {
12
+ "en-US": {
13
+ goToPreviousPage: "Go to previous page"
14
+ },
15
+ "ja-JP": {
16
+ goToPreviousPage: "前のページに移動"
17
+ },
18
+ "pt-BR": {
19
+ goToPreviousPage: "Ir para a página anterior"
20
+ }
21
+ }, ee = {
22
+ i18n: { messages: Z }
23
+ }, ae = /* @__PURE__ */ U({
24
+ ...ee,
25
+ __name: "dialog-page",
26
+ props: {
27
+ /**
28
+ * Identifier of the page, used with activePage prop to handle navigation
29
+ */
30
+ pageId: {
31
+ type: String,
32
+ default: void 0
33
+ },
34
+ /**
35
+ * Show header and actions border
36
+ */
37
+ alwaysShowBorder: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ /**
42
+ * Pass custom styling to the back button to position it correctly with the header slot
43
+ */
44
+ backButtonStyling: { type: Object, default: null },
45
+ /**
46
+ * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior
47
+ * Used when the back button should not take the user to the natural previous page
48
+ * Set to `null` to hide back button in the page
49
+ */
50
+ previousPage: {
51
+ type: String,
52
+ default: void 0
53
+ }
54
+ },
55
+ emits: ["animationend"],
56
+ setup(l, { emit: t }) {
57
+ const a = l, e = H(), b = Y(e), { t: O } = $(), r = P(null), d = P(!1), u = P(!1), { arrivedState: c } = q(r), g = n(() => s.value ? s.value === a.pageId : !0), L = n(() => ({
58
+ "b-dialog-page__header--with-border": a.alwaysShowBorder || d.value && !c.top
59
+ })), R = n(() => ({
60
+ "b-dialog-page__footer--with-border": a.alwaysShowBorder || d.value && !c.bottom
61
+ })), k = n(() => !(c.bottom && c.top)), G = () => {
62
+ r.value;
63
+ }, _ = async (i) => {
64
+ i && (await S(), u.value && (d.value = r.value && r.value.scrollHeight > r.value.clientHeight));
65
+ }, { activePage: s, animation: p, isAnimationActive: v, isOpen: f, pages: I, previousPages: o, updatePage: y } = N(X);
66
+ h(() => f.value, _, { immediate: !0 }), h(() => g.value, _, { immediate: !0 });
67
+ const x = n(() => a.previousPage ? !0 : a.previousPage === null ? !1 : T.value && g.value), D = () => {
68
+ p.value = E.TRANSITION_LEVEL_DEEPER, v && (v.value = !1), t("animationend");
69
+ }, j = () => {
70
+ v && (v.value = !0);
71
+ }, T = n(() => o.value.length > 1), m = n(() => o.value[o.value.length - 1]), w = n(() => I.value.some((i) => i === s.value)), V = async (i) => {
72
+ if (i) {
73
+ const B = o.value.indexOf(i);
74
+ B !== -1 ? o.value = o.value.slice(0, B + 1) : o.value = [i];
75
+ } else
76
+ o.value.pop();
77
+ p.value = E.TRANSITION_LEVEL_UPPER, await S(), u.value && y(m.value);
78
+ };
79
+ h(
80
+ () => s.value,
81
+ async () => {
82
+ if (await S(), !(!u.value || !f.value)) {
83
+ if (s.value && !w.value && z) {
84
+ console.error(
85
+ `The activePage passed "${s.value}" does not match the id of any of the pages`
86
+ );
87
+ return;
88
+ }
89
+ s.value !== m.value && o.value.push(s.value);
90
+ }
91
+ },
92
+ { immediate: !0 }
93
+ );
94
+ const A = N(W), { unregisterPage: C } = A(a.pageId);
95
+ return J(() => {
96
+ u.value = !0;
97
+ }), F(() => {
98
+ u.value = !1, C();
99
+ }), { __sfc: !0, props: a, emit: t, slots: e, hasSlot: b, t: O, contentElement: r, hasScroll: d, isMounted: u, arrivedState: c, showPage: g, headerConditionalClasses: L, footerConditionalClasses: R, isScrollable: k, onScroll: G, calculateScroll: _, activePage: s, animation: p, isAnimationActive: v, isOpen: f, pages: I, previousPages: o, updatePage: y, showBackButton: x, updateAnimation: D, startAnimation: j, hasPreviousPages: T, lastPage: m, isActivePageValid: w, goToPreviousPage: V, registerPage: A, unregisterPage: C, BentoButton: K, ArrowLeftIcon: M };
100
+ }
101
+ });
102
+ var te = function() {
103
+ var t = this, a = t._self._c, e = t._self._setupProxy;
104
+ return a("Transition", { attrs: { name: e.animation, mode: "out-in" }, on: { "after-leave": e.updateAnimation, leave: e.startAnimation } }, [e.isOpen && e.showPage ? a("div", { staticClass: "b-dialog-page" }, [e.hasSlot("header") ? a("div", { staticClass: "b-dialog-page__header", class: e.headerConditionalClasses }, [e.showBackButton ? a("div", { staticClass: "b-dialog-page__back-button", style: t.backButtonStyling, attrs: { "data-testid": "back-button" } }, [a(e.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(b) {
105
+ return e.goToPreviousPage(t.previousPage);
106
+ } } }, [a(e.ArrowLeftIcon, { attrs: { "svg-title": e.t("goToPreviousPage") } })], 1)], 1) : t._e(), t._t("header")], 2) : t._e(), e.hasSlot("content") ? a("div", { ref: "contentElement", staticClass: "b-dialog-page__content", attrs: { tabindex: e.isScrollable ? 0 : null }, on: { scroll: e.onScroll } }, [t._t("content")], 2) : t._e(), e.hasSlot("footer") ? a("div", { staticClass: "b-dialog-page__footer", class: e.footerConditionalClasses }, [t._t("footer")], 2) : t._e()]) : t._e()]);
107
+ }, oe = [], se = /* @__PURE__ */ Q(
108
+ ae,
109
+ te,
110
+ oe,
111
+ !1,
112
+ null,
113
+ "5bc2711d"
114
+ );
115
+ const ge = se.exports;
116
+ export {
117
+ E as B,
118
+ X as D,
119
+ W as a,
120
+ ge as b
121
+ };
122
+ //# sourceMappingURL=dialog-page.DA6E6qma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-page.DA6E6qma.js","sources":["../../src/components/internal/dialog-page/dialog-page.types.ts","../../src/components/internal/dialog-page/dialog-page.keys.ts","../../src/components/internal/dialog-page/dialog-page.vue"],"sourcesContent":["import { type Ref } from 'vue';\n\nexport enum BentoDialogPageAnimation {\n TRANSITION_LEVEL_DEEPER = 'b-dialog-page__animation--level-deeper',\n TRANSITION_LEVEL_UPPER = 'b-dialog-page__animation--level-upper',\n}\n\nexport interface BentoDialogPageConfigData {\n activePage: Ref<string>;\n animation: Ref<string>;\n isAnimationActive?: Ref<boolean>;\n isOpen: Ref<boolean>;\n pages: Ref<Array<string>>;\n previousPages: Ref<Array<string>>;\n updatePage: (page: string) => void;\n}\n\nexport type BentoDialogPageRegisterPage = (pageId: string) => { unregisterPage: () => void };\n","export const DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY = Symbol('dialog registerPage injection key');\nexport const DIALOG_PAGE_CONFIG_INJECTION_KEY = Symbol('dialog page config data injection key');\n","<template>\n <Transition :name=\"animation\" mode=\"out-in\" @after-leave=\"updateAnimation\" @leave=\"startAnimation\">\n <div v-if=\"isOpen && showPage\" class=\"b-dialog-page\">\n <div v-if=\"hasSlot('header')\" class=\"b-dialog-page__header\" :class=\"headerConditionalClasses\">\n <div\n v-if=\"showBackButton\"\n class=\"b-dialog-page__back-button\"\n :style=\"backButtonStyling\"\n data-testid=\"back-button\"\n >\n <bento-button variant=\"tertiary\" @click=\"goToPreviousPage(previousPage)\">\n <arrow-left-icon :svg-title=\"t('goToPreviousPage')\" />\n </bento-button>\n </div>\n <slot name=\"header\"></slot>\n </div>\n <div\n v-if=\"hasSlot('content')\"\n ref=\"contentElement\"\n class=\"b-dialog-page__content\"\n :tabindex=\"isScrollable ? 0 : null\"\n @scroll=\"onScroll\"\n >\n <slot name=\"content\" />\n </div>\n <div v-if=\"hasSlot('footer')\" class=\"b-dialog-page__footer\" :class=\"footerConditionalClasses\">\n <slot name=\"footer\" />\n </div>\n </div>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, nextTick, onMounted, onUnmounted, type PropType, ref, useSlots, watch } from 'vue';\n\n import { BentoButton } from '@/components/button';\n import ArrowLeftIcon from '@adyen/ui-assets-icons-16/vue/arrow-left';\n\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { useI18n } from '@/utils/ts/i18n';\n import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n import {\n BentoDialogPageAnimation,\n type BentoDialogPageConfigData,\n type BentoDialogPageRegisterPage,\n } from './dialog-page.types';\n import type { CSSProperties } from 'vue/types/jsx.d.ts';\n\n import { DIALOG_PAGE_CONFIG_INJECTION_KEY, DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY } from './dialog-page.keys';\n\n import messages from './messages.json';\n import { useScroll } from '@vueuse/core';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * Identifier of the page, used with activePage prop to handle navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Show header and actions border\n */\n alwaysShowBorder: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Pass custom styling to the back button to position it correctly with the header slot\n */\n backButtonStyling: { type: Object as PropType<CSSProperties>, default: null },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n });\n\n const emit = defineEmits([\"animationend\"]);\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n // Refs\n const contentElement = ref<HTMLDivElement>(null);\n const hasScroll = ref(false);\n const isMounted = ref(false);\n\n const { arrivedState } = useScroll(contentElement);\n\n // Logic to choose which page is active/shown\n const showPage = computed(() => (activePage.value ? activePage.value === props.pageId : true));\n\n // Scrolling styling logic\n const headerConditionalClasses = computed(() => ({\n 'b-dialog-page__header--with-border': props.alwaysShowBorder || (hasScroll.value && !arrivedState.top),\n }));\n\n const footerConditionalClasses = computed(() => ({\n 'b-dialog-page__footer--with-border': props.alwaysShowBorder || (hasScroll.value && !arrivedState.bottom),\n }));\n\n const isScrollable = computed(() => !(arrivedState.bottom && arrivedState.top));\n\n const onScroll = () => {\n if (!contentElement.value) {\n return;\n }\n };\n\n const calculateScroll = async watchedValue => {\n if (!watchedValue) {\n return;\n }\n // Wait for content to be rendered to be able to calculate the height\n await nextTick();\n if (!isMounted.value) {\n return;\n }\n hasScroll.value = contentElement.value && contentElement.value.scrollHeight > contentElement.value.clientHeight;\n };\n\n const { activePage, animation, isAnimationActive, isOpen, pages, previousPages, updatePage } =\n inject<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY);\n\n watch(() => isOpen.value, calculateScroll, { immediate: true });\n watch(() => showPage.value, calculateScroll, { immediate: true });\n\n // Logic to determine whether the back button should be shown on the page\n const showBackButton = computed(() => {\n if (props.previousPage) {\n return true;\n }\n if (props.previousPage === null) {\n return false;\n }\n return hasPreviousPages.value && showPage.value;\n });\n\n // Animation\n const updateAnimation = () => {\n animation.value = BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER;\n if (isAnimationActive) {\n isAnimationActive.value = false;\n }\n\n emit('animationend');\n };\n\n const startAnimation = () => {\n if (isAnimationActive) {\n isAnimationActive.value = true;\n }\n };\n\n // Previous page logic\n const hasPreviousPages = computed(() => previousPages.value.length > 1);\n const lastPage = computed(() => previousPages.value[previousPages.value.length - 1]);\n const isActivePageValid = computed(() => pages.value.some(page => page === activePage.value));\n\n const goToPreviousPage = async (page: string) => {\n if (page) {\n const index = previousPages.value.indexOf(page);\n if (index !== -1) {\n previousPages.value = previousPages.value.slice(0, index + 1);\n } else {\n previousPages.value = [page];\n }\n } else {\n previousPages.value.pop();\n }\n\n animation.value = BentoDialogPageAnimation.TRANSITION_LEVEL_UPPER;\n await nextTick();\n if (!isMounted.value) {\n return;\n }\n updatePage(lastPage.value);\n };\n\n // Add new page to the previousPage array to keep track of user navigation\n watch(\n () => activePage.value,\n async () => {\n await nextTick();\n if (!isMounted.value || !isOpen.value) {\n return;\n }\n\n if (!!activePage.value && !isActivePageValid.value) {\n if (isDevelopmentEnviroment) {\n // eslint-disable-next-line no-console\n console.error(\n `The activePage passed \"${activePage.value}\" does not match the id of any of the pages`\n );\n return;\n }\n }\n\n if (activePage.value !== lastPage.value) {\n previousPages.value.push(activePage.value);\n }\n },\n { immediate: true }\n );\n\n // Register page to parent component and inject data from parent component\n const registerPage = inject<BentoDialogPageRegisterPage>(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY);\n const { unregisterPage } = registerPage(props.pageId);\n\n onMounted(() => {\n isMounted.value = true;\n });\n\n // Unregister page on unmounting the page\n onUnmounted(() => {\n isMounted.value = false;\n unregisterPage();\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * DialogPage is an internal component used to render different pages of dialog components (Modal, ModalFullscreen and Sidepanel)\n *\n * @example\n * import { DialogPage } from '@/internal';\n *\n * export default {\n * components: { DialogPage },\n * template: `\n * <dialog-page pageId='step1' always-show-border>\n * <template #header>Header</template>\n * <template #content>Content</template>\n * <template #footer>Footer</template>\n * </dialog-page>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./dialog-page.scss\" />\n"],"names":["BentoDialogPageAnimation","BentoDialogPageAnimation2","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY","DIALOG_PAGE_CONFIG_INJECTION_KEY","__default__","messages","slots","useSlots","hasSlot","useHasSlot","t","useI18n","contentElement","ref","hasScroll","isMounted","arrivedState","useScroll","showPage","computed","activePage","props","headerConditionalClasses","footerConditionalClasses","isScrollable","onScroll","calculateScroll","watchedValue","nextTick","animation","isAnimationActive","isOpen","pages","previousPages","updatePage","inject","watch","showBackButton","hasPreviousPages","updateAnimation","emit","startAnimation","lastPage","isActivePageValid","page","goToPreviousPage","index","isDevelopmentEnviroment","registerPage","unregisterPage","onMounted","onUnmounted"],"mappings":";;;;;;;;;AAEO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,0BAAA,0CACAA,EAAA,yBAAA,yCAFQA,IAAAD,KAAA,CAAA,CAAA;ACFL,MAAAE,IAAA,uBAAA,mCAAA,GACAC,IAAA,uBAAA,uCAAA;;;;;;;;;;GC0PHC,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAlKAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GACA,EAAA,GAAAI,EAAA,IAAAC,EAAA,GAGAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,EAAA,GACAE,IAAAF,EAAA,EAAA,GAEA,EAAA,cAAAG,EAAA,IAAAC,EAAAL,CAAA,GAGAM,IAAAC,EAAA,MAAAC,EAAA,QAAAA,EAAA,UAAAC,EAAA,SAAA,EAAA,GAGAC,IAAAH,EAAA,OAAA;AAAA,MAAiD,sCAAAE,EAAA,oBAAAP,EAAA,SAAA,CAAAE,EAAA;AAAA,IACqD,EAAA,GAGtGO,IAAAJ,EAAA,OAAA;AAAA,MAAiD,sCAAAE,EAAA,oBAAAP,EAAA,SAAA,CAAAE,EAAA;AAAA,IACqD,EAAA,GAGtGQ,IAAAL,EAAA,MAAA,EAAAH,EAAA,UAAAA,EAAA,IAAA,GAEAS,IAAA,MAAA;AACI,MAAAb,EAAA;AAAA,IAEA,GAGJc,IAAA,OAAAC,MAAA;AACI,MAAAA,MAIA,MAAAC,EAAA,GACAb,EAAA,UAGAD,EAAA,QAAAF,EAAA,SAAAA,EAAA,MAAA,eAAAA,EAAA,MAAA;AAAA,IAAmG,GAGvG,EAAA,YAAAQ,GAAA,WAAAS,GAAA,mBAAAC,GAAA,QAAAC,GAAA,OAAAC,GAAA,eAAAC,GAAA,YAAAC,EAAA,IAAAC,EAAAhC,CAAA;AAGA,IAAAiC,EAAA,MAAAL,EAAA,OAAAL,GAAA,EAAA,WAAA,GAAA,CAAA,GACAU,EAAA,MAAAlB,EAAA,OAAAQ,GAAA,EAAA,WAAA,GAAA,CAAA;AAGA,UAAAW,IAAAlB,EAAA,MACIE,EAAA,eACI,KAEJA,EAAA,iBAAA,OACI,KAEJiB,EAAA,SAAApB,EAAA,KAA0C,GAI9CqB,IAAA,MAAA;AACI,MAAAV,EAAA,QAAA7B,EAAA,yBACA8B,MACIA,EAAA,QAAA,KAGJU,EAAA,cAAA;AAAA,IAAmB,GAGvBC,IAAA,MAAA;AACI,MAAAX,MACIA,EAAA,QAAA;AAAA,IACJ,GAIJQ,IAAAnB,EAAA,MAAAc,EAAA,MAAA,SAAA,CAAA,GACAS,IAAAvB,EAAA,MAAAc,EAAA,MAAAA,EAAA,MAAA,SAAA,CAAA,CAAA,GACAU,IAAAxB,EAAA,MAAAa,EAAA,MAAA,KAAA,CAAAY,MAAAA,MAAAxB,EAAA,KAAA,CAAA,GAEAyB,IAAA,OAAAD,MAAA;AACI,UAAAA,GAAA;AACI,cAAAE,IAAAb,EAAA,MAAA,QAAAW,CAAA;AACA,QAAAE,MAAA,KACIb,EAAA,QAAAA,EAAA,MAAA,MAAA,GAAAa,IAAA,CAAA,IAEAb,EAAA,QAAA,CAAAW,CAAA;AAAA,MACJ;AAEA,QAAAX,EAAA,MAAA,IAAA;AAKJ,MAFAJ,EAAA,QAAA7B,EAAA,wBACA,MAAA4B,EAAA,GACAb,EAAA,SAGAmB,EAAAQ,EAAA,KAAA;AAAA,IAAyB;AAI7B,IAAAN;AAAA,MAAA,MAAAhB,EAAA;AAAA,MACqB,YAAA;AAGb,YADA,MAAAQ,EAAA,GACA,GAAAb,EAAA,SAAA,CAAAgB,EAAA,QAIA;AAAA,cAAAX,EAAA,SAAA,CAAAuB,EAAA,SACII,GAAA;AAEI,oBAAA;AAAA,cAAQ,0BAAA3B,EAAA,KAAA;AAAA,YACsC;AAE9C;AAAA,UAAA;AAIR,UAAAA,EAAA,UAAAsB,EAAA,SACIT,EAAA,MAAA,KAAAb,EAAA,KAAA;AAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;AAItB,UAAA4B,IAAAb,EAAAjC,CAAA,GACA,EAAA,gBAAA+C,EAAA,IAAAD,EAAA3B,EAAA,MAAA;AAEA,WAAA6B,EAAA,MAAA;AACI,MAAAnC,EAAA,QAAA;AAAA,IAAkB,CAAA,GAItBoC,EAAA,MAAA;AACI,MAAApC,EAAA,QAAA,IACAkC,EAAA;AAAA,IAAe,CAAA;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { n as M, t as s, a as l } from "./getTimezoneOffsetInMilliseconds.C-aIpRfB.js";
1
+ import { n as M, t as s, a as l } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
2
2
  function g(r, t, e) {
3
3
  const [n, a] = M(
4
4
  e == null ? void 0 : e.in,
@@ -40,4 +40,4 @@ export {
40
40
  i as d,
41
41
  d as e
42
42
  };
43
- //# sourceMappingURL=differenceInMonths.DcFDl4eH.js.map
43
+ //# sourceMappingURL=differenceInMonths.BR4Z2HIa.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"differenceInMonths.DcFDl4eH.js","sources":["../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarMonths.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfDay.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isLastDayOfMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMonths.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link differenceInCalendarMonths} function options.\n */\n\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of calendar months\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\nexport function differenceInCalendarMonths(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();\n const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();\n\n return yearsDiff * 12 + monthsDiff;\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarMonths;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfDay} function options.\n */\n\n/**\n * @name endOfDay\n * @category Day Helpers\n * @summary Return the end of a day for the given date.\n *\n * @description\n * Return the end of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a day\n *\n * @example\n * // The end of a day for 2 September 2014 11:55:00:\n * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 23:59:59.999\n */\nexport function endOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfDay;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfMonth} function options.\n */\n\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a month\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport function endOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n const month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfMonth;\n","import { endOfDay } from \"./endOfDay.js\";\nimport { endOfMonth } from \"./endOfMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isLastDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the last day of a month?\n *\n * @description\n * Is the given date the last day of a month?\n *\n * @param date - The date to check\n * @param options - An object with options\n *\n * @returns The date is the last day of a month\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * const result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\nexport function isLastDayOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n return +endOfDay(_date, options) === +endOfMonth(_date, options);\n}\n\n// Fallback for modularized imports:\nexport default isLastDayOfMonth;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport { differenceInCalendarMonths } from \"./differenceInCalendarMonths.js\";\nimport { isLastDayOfMonth } from \"./isLastDayOfMonth.js\";\n\n/**\n * The {@link differenceInMonths} function options.\n */\n\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of full months\n *\n * @example\n * // How many full months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))\n * //=> 7\n */\nexport function differenceInMonths(laterDate, earlierDate, options) {\n const [laterDate_, workingLaterDate, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n laterDate,\n earlierDate,\n );\n\n const sign = compareAsc(workingLaterDate, earlierDate_);\n const difference = Math.abs(\n differenceInCalendarMonths(workingLaterDate, earlierDate_),\n );\n\n if (difference < 1) return 0;\n\n if (workingLaterDate.getMonth() === 1 && workingLaterDate.getDate() > 27)\n workingLaterDate.setDate(30);\n\n workingLaterDate.setMonth(workingLaterDate.getMonth() - sign * difference);\n\n let isLastMonthNotFull = compareAsc(workingLaterDate, earlierDate_) === -sign;\n\n if (\n isLastDayOfMonth(laterDate_) &&\n difference === 1 &&\n compareAsc(laterDate_, earlierDate_) === 1\n ) {\n isLastMonthNotFull = false;\n }\n\n const result = sign * (difference - +isLastMonthNotFull);\n return result === 0 ? 0 : result;\n}\n\n// Fallback for modularized imports:\nexport default differenceInMonths;\n"],"names":["differenceInCalendarMonths","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates","yearsDiff","monthsDiff","endOfDay","date","_date","toDate","endOfMonth","month","isLastDayOfMonth","differenceInMonths","workingLaterDate","sign","compareAsc","difference","isLastMonthNotFull","result"],"mappings":";AA4BO,SAASA,EAA2BC,GAAWC,GAAaC,GAAS;AAC1E,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,KAAA,gBAAAA,EAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACD,GAEKK,IAAYH,EAAW,YAAW,IAAKC,EAAa,YAAa,GACjEG,IAAaJ,EAAW,SAAQ,IAAKC,EAAa,SAAU;AAElE,SAAOE,IAAY,KAAKC;AAC1B;ACXO,SAASC,EAASC,GAAMP,GAAS;AACtC,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE;AACtC,SAAAQ,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;ACJO,SAASE,EAAWH,GAAMP,GAAS;AACxC,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE,GAChCW,IAAQH,EAAM,SAAU;AAC9B,SAAAA,EAAM,YAAYA,EAAM,YAAa,GAAEG,IAAQ,GAAG,CAAC,GACnDH,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;ACZO,SAASI,EAAiBL,GAAMP,GAAS;AAC9C,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE;AACtC,SAAO,CAACM,EAASE,GAAOR,CAAO,KAAM,CAACU,EAAWF,GAAOR,CAAO;AACjE;ACAO,SAASa,EAAmBf,GAAWC,GAAaC,GAAS;AAClE,QAAM,CAACC,GAAYa,GAAkBZ,CAAY,IAAIC;AAAA,IACnDH,KAAA,gBAAAA,EAAS;AAAA,IACTF;AAAA,IACAA;AAAA,IACAC;AAAA,EACD,GAEKgB,IAAOC,EAAWF,GAAkBZ,CAAY,GAChDe,IAAa,KAAK;AAAA,IACtBpB,EAA2BiB,GAAkBZ,CAAY;AAAA,EAC1D;AAED,MAAIe,IAAa,EAAG,QAAO;AAE3B,EAAIH,EAAiB,SAAU,MAAK,KAAKA,EAAiB,QAAO,IAAK,MACpEA,EAAiB,QAAQ,EAAE,GAE7BA,EAAiB,SAASA,EAAiB,SAAQ,IAAKC,IAAOE,CAAU;AAEzE,MAAIC,IAAqBF,EAAWF,GAAkBZ,CAAY,MAAM,CAACa;AAEzE,EACEH,EAAiBX,CAAU,KAC3BgB,MAAe,KACfD,EAAWf,GAAYC,CAAY,MAAM,MAEzCgB,IAAqB;AAGvB,QAAMC,IAASJ,KAAQE,IAAa,CAACC;AACrC,SAAOC,MAAW,IAAI,IAAIA;AAC5B;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"differenceInMonths.BR4Z2HIa.js","sources":["../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarMonths.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfDay.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isLastDayOfMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMonths.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link differenceInCalendarMonths} function options.\n */\n\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of calendar months\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\nexport function differenceInCalendarMonths(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();\n const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();\n\n return yearsDiff * 12 + monthsDiff;\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarMonths;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfDay} function options.\n */\n\n/**\n * @name endOfDay\n * @category Day Helpers\n * @summary Return the end of a day for the given date.\n *\n * @description\n * Return the end of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a day\n *\n * @example\n * // The end of a day for 2 September 2014 11:55:00:\n * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 23:59:59.999\n */\nexport function endOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfDay;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfMonth} function options.\n */\n\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a month\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport function endOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n const month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfMonth;\n","import { endOfDay } from \"./endOfDay.js\";\nimport { endOfMonth } from \"./endOfMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isLastDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the last day of a month?\n *\n * @description\n * Is the given date the last day of a month?\n *\n * @param date - The date to check\n * @param options - An object with options\n *\n * @returns The date is the last day of a month\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * const result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\nexport function isLastDayOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n return +endOfDay(_date, options) === +endOfMonth(_date, options);\n}\n\n// Fallback for modularized imports:\nexport default isLastDayOfMonth;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport { differenceInCalendarMonths } from \"./differenceInCalendarMonths.js\";\nimport { isLastDayOfMonth } from \"./isLastDayOfMonth.js\";\n\n/**\n * The {@link differenceInMonths} function options.\n */\n\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of full months\n *\n * @example\n * // How many full months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))\n * //=> 7\n */\nexport function differenceInMonths(laterDate, earlierDate, options) {\n const [laterDate_, workingLaterDate, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n laterDate,\n earlierDate,\n );\n\n const sign = compareAsc(workingLaterDate, earlierDate_);\n const difference = Math.abs(\n differenceInCalendarMonths(workingLaterDate, earlierDate_),\n );\n\n if (difference < 1) return 0;\n\n if (workingLaterDate.getMonth() === 1 && workingLaterDate.getDate() > 27)\n workingLaterDate.setDate(30);\n\n workingLaterDate.setMonth(workingLaterDate.getMonth() - sign * difference);\n\n let isLastMonthNotFull = compareAsc(workingLaterDate, earlierDate_) === -sign;\n\n if (\n isLastDayOfMonth(laterDate_) &&\n difference === 1 &&\n compareAsc(laterDate_, earlierDate_) === 1\n ) {\n isLastMonthNotFull = false;\n }\n\n const result = sign * (difference - +isLastMonthNotFull);\n return result === 0 ? 0 : result;\n}\n\n// Fallback for modularized imports:\nexport default differenceInMonths;\n"],"names":["differenceInCalendarMonths","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates","yearsDiff","monthsDiff","endOfDay","date","_date","toDate","endOfMonth","month","isLastDayOfMonth","differenceInMonths","workingLaterDate","sign","compareAsc","difference","isLastMonthNotFull","result"],"mappings":";AA4BO,SAASA,EAA2BC,GAAWC,GAAaC,GAAS;AAC1E,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,KAAA,gBAAAA,EAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACJ,GAEQK,IAAYH,EAAW,YAAW,IAAKC,EAAa,YAAW,GAC/DG,IAAaJ,EAAW,SAAQ,IAAKC,EAAa,SAAQ;AAEhE,SAAOE,IAAY,KAAKC;AAC1B;ACXO,SAASC,EAASC,GAAMP,GAAS;AACtC,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE;AACtC,SAAAQ,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;ACJO,SAASE,EAAWH,GAAMP,GAAS;AACxC,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE,GAChCW,IAAQH,EAAM,SAAQ;AAC5B,SAAAA,EAAM,YAAYA,EAAM,YAAW,GAAIG,IAAQ,GAAG,CAAC,GACnDH,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;ACZO,SAASI,EAAiBL,GAAMP,GAAS;AAC9C,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE;AACtC,SAAO,CAACM,EAASE,GAAOR,CAAO,KAAM,CAACU,EAAWF,GAAOR,CAAO;AACjE;ACAO,SAASa,EAAmBf,GAAWC,GAAaC,GAAS;AAClE,QAAM,CAACC,GAAYa,GAAkBZ,CAAY,IAAIC;AAAA,IACnDH,KAAA,gBAAAA,EAAS;AAAA,IACTF;AAAA,IACAA;AAAA,IACAC;AAAA,EACJ,GAEQgB,IAAOC,EAAWF,GAAkBZ,CAAY,GAChDe,IAAa,KAAK;AAAA,IACtBpB,EAA2BiB,GAAkBZ,CAAY;AAAA,EAC7D;AAEE,MAAIe,IAAa,EAAG,QAAO;AAE3B,EAAIH,EAAiB,SAAQ,MAAO,KAAKA,EAAiB,QAAO,IAAK,MACpEA,EAAiB,QAAQ,EAAE,GAE7BA,EAAiB,SAASA,EAAiB,SAAQ,IAAKC,IAAOE,CAAU;AAEzE,MAAIC,IAAqBF,EAAWF,GAAkBZ,CAAY,MAAM,CAACa;AAEzE,EACEH,EAAiBX,CAAU,KAC3BgB,MAAe,KACfD,EAAWf,GAAYC,CAAY,MAAM,MAEzCgB,IAAqB;AAGvB,QAAMC,IAASJ,KAAQE,IAAa,CAACC;AACrC,SAAOC,MAAW,IAAI,IAAIA;AAC5B;","x_google_ignoreList":[0,1,2,3,4]}
@@ -1,4 +1,4 @@
1
- import { o as s } from "./on-click-outside.D9aY9g8G.js";
1
+ import { o as s } from "./on-click-outside.BW4rkhzG.js";
2
2
  const t = (o, i) => {
3
3
  const e = !i.modifiers.bubble;
4
4
  if (typeof i.value == "function")
@@ -20,4 +20,4 @@ const t = (o, i) => {
20
20
  export {
21
21
  _ as B
22
22
  };
23
- //# sourceMappingURL=directive.Cbdox5VL.js.map
23
+ //# sourceMappingURL=directive.rXUeDb8p.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"directive.Cbdox5VL.js","sources":["../../src/directives/click-outside/directive.ts"],"sourcesContent":["import { onClickOutside } from './on-click-outside';\nimport type { DirectiveHook } from 'vue';\n\ntype Element = HTMLElement & { __onClickOutside_stop?: () => void };\n\n/**\n * Attaches the click outside listener to target element to register clicks outside the element.\n * @param targetElement Element to attach listener to.\n * @param binding\n */\nconst bindDirective: DirectiveHook<Element> = (targetElement, binding) => {\n const capture = !binding.modifiers.bubble;\n if (typeof binding.value === 'function') {\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, binding.value, { capture });\n } else {\n const [handler, options] = binding.value;\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, handler, { capture, ...options });\n }\n};\n\n/**\n * Removes click outside listener from the target element.\n * @param targetElement Element to detach listener from.\n */\nconst unbindDirective: DirectiveHook<Element> = targetElement => {\n // eslint-disable-next-line no-underscore-dangle\n targetElement.__onClickOutside_stop();\n};\n\nexport const BentoClickOutsideDirective = {\n // Vue 2 Directive hooks\n inserted: bindDirective,\n unbind: unbindDirective,\n\n // Vue 3 Directive hooks\n beforeMount: bindDirective,\n unmounted: unbindDirective,\n};\n"],"names":["bindDirective","targetElement","binding","capture","onClickOutside","handler","options","unbindDirective","BentoClickOutsideDirective"],"mappings":";AAUA,MAAMA,IAAwC,CAACC,GAAeC,MAAY;AAChE,QAAAC,IAAU,CAACD,EAAQ,UAAU;AAC/B,MAAA,OAAOA,EAAQ,SAAU;AAEzB,IAAAD,EAAc,wBAAwBG,EAAeH,GAAeC,EAAQ,OAAO,EAAE,SAAAC,GAAS;AAAA,OAC3F;AACH,UAAM,CAACE,GAASC,CAAO,IAAIJ,EAAQ;AAErB,IAAAD,EAAA,wBAAwBG,EAAeH,GAAeI,GAAS,EAAE,SAAAF,GAAS,GAAGG,GAAS;AAAA,EAAA;AAE5G,GAMMC,IAA0C,CAAiBN,MAAA;AAE7D,EAAAA,EAAc,sBAAsB;AACxC,GAEaO,IAA6B;AAAA;AAAA,EAEtC,UAAUR;AAAA,EACV,QAAQO;AAAA;AAAA,EAGR,aAAaP;AAAA,EACb,WAAWO;AACf;"}
1
+ {"version":3,"file":"directive.rXUeDb8p.js","sources":["../../src/directives/click-outside/directive.ts"],"sourcesContent":["import { onClickOutside } from './on-click-outside';\nimport type { DirectiveHook } from 'vue';\n\ntype Element = HTMLElement & { __onClickOutside_stop?: () => void };\n\n/**\n * Attaches the click outside listener to target element to register clicks outside the element.\n * @param targetElement Element to attach listener to.\n * @param binding\n */\nconst bindDirective: DirectiveHook<Element> = (targetElement, binding) => {\n const capture = !binding.modifiers.bubble;\n if (typeof binding.value === 'function') {\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, binding.value, { capture });\n } else {\n const [handler, options] = binding.value;\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, handler, { capture, ...options });\n }\n};\n\n/**\n * Removes click outside listener from the target element.\n * @param targetElement Element to detach listener from.\n */\nconst unbindDirective: DirectiveHook<Element> = targetElement => {\n // eslint-disable-next-line no-underscore-dangle\n targetElement.__onClickOutside_stop();\n};\n\nexport const BentoClickOutsideDirective = {\n // Vue 2 Directive hooks\n inserted: bindDirective,\n unbind: unbindDirective,\n\n // Vue 3 Directive hooks\n beforeMount: bindDirective,\n unmounted: unbindDirective,\n};\n"],"names":["bindDirective","targetElement","binding","capture","onClickOutside","handler","options","unbindDirective","BentoClickOutsideDirective"],"mappings":";AAUA,MAAMA,IAAwC,CAACC,GAAeC,MAAY;AACtE,QAAMC,IAAU,CAACD,EAAQ,UAAU;AACnC,MAAI,OAAOA,EAAQ,SAAU;AAEzB,IAAAD,EAAc,wBAAwBG,EAAeH,GAAeC,EAAQ,OAAO,EAAE,SAAAC,GAAS;AAAA,OAC3F;AACH,UAAM,CAACE,GAASC,CAAO,IAAIJ,EAAQ;AAEnC,IAAAD,EAAc,wBAAwBG,EAAeH,GAAeI,GAAS,EAAE,SAAAF,GAAS,GAAGG,GAAS;AAAA,EACxG;AACJ,GAMMC,IAA0C,CAAAN,MAAiB;AAE7D,EAAAA,EAAc,sBAAA;AAClB,GAEaO,IAA6B;AAAA;AAAA,EAEtC,UAAUR;AAAA,EACV,QAAQO;AAAA;AAAA,EAGR,aAAaP;AAAA,EACb,WAAWO;AACf;"}
@@ -1 +1 @@
1
- {"version":3,"file":"divider.DX5gwN7p.js","sources":["../../src/components/divider/divider.keys.ts","../../src/components/divider/divider.types.ts","../../src/components/divider/divider.vue"],"sourcesContent":["export const DIVIDER_INVERSE_INJECTION_KEY = Symbol('divider inverse style injection key');\n","/**\n * Private types\n */\nexport enum BentoDividerVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\n/**\n * Public types\n */\nexport interface BentoDividerProps {\n /**\n * Renders the divider in a horizontal or vertical variant\n */\n variant?: `${BentoDividerVariant}`;\n}\n","<template>\n <div class=\"b-divider\">\n <div\n v-if=\"isVerticalVariant\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n class=\"b-divider__rule b-divider__rule--vertical\"\n :class=\"conditionalClasses\"\n ></div>\n <hr v-else class=\"b-divider__rule b-divider__rule--horizontal\" :class=\"conditionalClasses\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref } from 'vue';\n import { DIVIDER_INVERSE_INJECTION_KEY } from './divider.keys';\n import { type BentoDividerProps, BentoDividerVariant } from './divider.types';\n\n const props = defineProps({\n variant: { default: BentoDividerVariant.HORIZONTAL }\n});\n\n const isInverseColorSet = inject(DIVIDER_INVERSE_INJECTION_KEY, ref(false));\n\n const isVerticalVariant = computed(() => props.variant === BentoDividerVariant.VERTICAL);\n\n const conditionalClasses = computed(() => ({\n 'b-divider--inverse': isInverseColorSet.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Divider component is a thin line that helps separate content and group them visually into sections.\n *\n * @example\n * import { BentoDivider } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDivider },\n * template: `<bento-divider />`\n * }\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./divider.scss\" />\n"],"names":["DIVIDER_INVERSE_INJECTION_KEY","BentoDividerVariant","BentoDividerVariant2","__default__","isInverseColorSet","inject","ref","isVerticalVariant","computed","props","conditionalClasses"],"mappings":";;;AAAa,MAAAA,IAAA,uBAAA,qCAAA;ACGD,IAAAC,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;ACyCR,MAAAE,IAAA,CAAA;;;;;;;iBAtBAC,IAAAC,EAAAL,GAAAM,EAAA,EAAA,CAAA,GAEAC,IAAAC,EAAA,MAAAC,EAAA,YAAAR,EAAA,QAAA,GAEAS,IAAAF,EAAA,OAAA;AAAA,MAA2C,sBAAAJ,EAAA;AAAA,IACC,EAAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"divider.DX5gwN7p.js","sources":["../../src/components/divider/divider.keys.ts","../../src/components/divider/divider.types.ts","../../src/components/divider/divider.vue"],"sourcesContent":["export const DIVIDER_INVERSE_INJECTION_KEY = Symbol('divider inverse style injection key');\n","/**\n * Private types\n */\nexport enum BentoDividerVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\n/**\n * Public types\n */\nexport interface BentoDividerProps {\n /**\n * Renders the divider in a horizontal or vertical variant\n */\n variant?: `${BentoDividerVariant}`;\n}\n","<template>\n <div class=\"b-divider\">\n <div\n v-if=\"isVerticalVariant\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n class=\"b-divider__rule b-divider__rule--vertical\"\n :class=\"conditionalClasses\"\n ></div>\n <hr v-else class=\"b-divider__rule b-divider__rule--horizontal\" :class=\"conditionalClasses\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref } from 'vue';\n import { DIVIDER_INVERSE_INJECTION_KEY } from './divider.keys';\n import { type BentoDividerProps, BentoDividerVariant } from './divider.types';\n\n const props = defineProps({\n variant: { default: BentoDividerVariant.HORIZONTAL }\n});\n\n const isInverseColorSet = inject(DIVIDER_INVERSE_INJECTION_KEY, ref(false));\n\n const isVerticalVariant = computed(() => props.variant === BentoDividerVariant.VERTICAL);\n\n const conditionalClasses = computed(() => ({\n 'b-divider--inverse': isInverseColorSet.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Divider component is a thin line that helps separate content and group them visually into sections.\n *\n * @example\n * import { BentoDivider } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDivider },\n * template: `<bento-divider />`\n * }\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./divider.scss\" />\n"],"names":["DIVIDER_INVERSE_INJECTION_KEY","BentoDividerVariant","BentoDividerVariant2","__default__","isInverseColorSet","inject","ref","isVerticalVariant","computed","props","conditionalClasses"],"mappings":";;;AAAO,MAAAA,IAAA,uBAAA,qCAAA;ACGA,IAAAC,IAAA,kBAAAC,OACHA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;ACyCR,MAAAE,IAAA,CAAA;;;;;;;iBAtBAC,IAAAC,EAAAL,GAAAM,EAAA,EAAA,CAAA,GAEAC,IAAAC,EAAA,MAAAC,EAAA,YAAAR,EAAA,QAAA,GAEAS,IAAAF,EAAA,OAAA;AAAA,MAA2C,sBAAAJ,EAAA;AAAA,IACC,EAAA;;;;;;;;;;;;;;;;"}
@@ -2,17 +2,16 @@ import { defineComponent as w, useAttrs as R, useSlots as E, ref as k, computed
2
2
  import { g as T } from "./generate-uid.NJ8tVoha.js";
3
3
  import { u as U } from "./index.B6WW_F-J.js";
4
4
  import { u as q } from "./use-has-slot.C9lQZ6nz.js";
5
- import { B as M } from "./typography.Bq-EGj9y.js";
6
- import { d as $ } from "./debounce.DUTu11PS.js";
7
- import { C as Y } from "./cross-circle-fill.DTDtgLMf.js";
8
- import { C as z } from "./cross-circle-fill-small.DfxDedRr.js";
5
+ import { B as M } from "./typography.C8lPlsbD.js";
6
+ import { C as $ } from "./cross-circle-fill.DTDtgLMf.js";
7
+ import { C as Y } from "./cross-circle-fill-small.DfxDedRr.js";
9
8
  import { n as O } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
10
9
  import { s as v } from "./events.BQOQSSb7.js";
11
- import { C as K } from "./chevron-down.eYtgv5ly.js";
12
- import { C as j } from "./chevron-up.d8cwIlA_.js";
10
+ import { C as z } from "./chevron-down.eYtgv5ly.js";
11
+ import { C as K } from "./chevron-up.d8cwIlA_.js";
13
12
  import "../assets/dropdown-default-textbox.css";
14
13
  var L = /* @__PURE__ */ ((l) => (l.DEFAULT = "DropdownInputDefault", l.SMALL = "DropdownInputSmall", l))(L || {}), p = /* @__PURE__ */ ((l) => (l.DISABLED = "disabled", l.READONLY = "readonly", l.HAS_ITEMS = "has-items", l.OPENED = "opened", l.ERROR = "error", l))(p || {}), s = /* @__PURE__ */ ((l) => (l.OPEN = "dropdown-base-open", l.KEYDOWN = "dropdown-base-keydown", l.CLOSE = "dropdown-base-close", l.INPUT = "dropdown-base-input", l.CLEAR = "dropdown-base-clear", l))(s || {});
15
- const H = {
14
+ const j = {
16
15
  "en-US": {
17
16
  clearSearch: "Clear search"
18
17
  },
@@ -22,12 +21,12 @@ const H = {
22
21
  "pt-BR": {
23
22
  clearSearch: "Limpar busca"
24
23
  }
25
- }, W = w({
26
- i18n: { messages: H },
24
+ }, H = w({
25
+ i18n: { messages: j },
27
26
  name: "dropdown-base-textbox",
28
27
  inheritAttrs: !1
29
- }), J = /* @__PURE__ */ w({
30
- ...W,
28
+ }), W = /* @__PURE__ */ w({
29
+ ...H,
31
30
  props: {
32
31
  /**
33
32
  * The number of additional items that have been selected in the dropdown.
@@ -59,10 +58,6 @@ const H = {
59
58
  * Corresponds to the label's id that labels the textbox element.
60
59
  */
61
60
  ariaLabelledby: { type: String, default: null },
62
- /**
63
- * Custom debounce time for the user type event.
64
- */
65
- debounceTime: { type: Number, default: 300 },
66
61
  /**
67
62
  * Disables any textbox functionality
68
63
  */
@@ -116,14 +111,14 @@ const H = {
116
111
  }
117
112
  },
118
113
  emits: [],
119
- setup(l, { expose: t, emit: o }) {
120
- const e = l, { t: a } = U(), d = R(), c = E(), C = q(c), i = k(null), f = T("textbox"), y = r(() => ({
114
+ setup(l, { expose: t, emit: a }) {
115
+ const e = l, { t: o } = U(), d = R(), c = E(), C = q(c), i = k(null), f = T("textbox"), y = r(() => ({
121
116
  [`b-dropdown-base-textbox--${p.DISABLED}`]: e.disabled,
122
117
  [`b-dropdown-base-textbox--${p.READONLY}`]: e.readonly,
123
118
  [`b-dropdown-base-textbox--${p.HAS_ITEMS}`]: !!e.additionalItemsSelected
124
119
  })), b = r(() => d.required), _ = r(() => ({
125
120
  "b-dropdown-base-textbox__input--dynamic-filtering": e.dynamicFiltering
126
- })), S = r(() => e.dynamicFiltering && !!e.value && e.open), m = r(
121
+ })), S = r(() => e.dynamicFiltering && !!e.value && e.open), x = r(
127
122
  () => {
128
123
  var u;
129
124
  return {
@@ -135,72 +130,72 @@ const H = {
135
130
  "aria-label": e.ariaLabelledby ? null : e.ariaLabel,
136
131
  "aria-invalid": e.isInvalid,
137
132
  "aria-disabled": e.disabled ? !0 : null,
138
- "aria-required": x.value ? null : b.value
133
+ "aria-required": m.value ? null : b.value
139
134
  };
140
135
  }
141
136
  ), n = r(
142
137
  () => e.multiple ? e.selectedValueItem : []
143
- ), x = r(() => e.dynamicFiltering && (e.open || e.alwaysComboboxIsInput)), N = r(() => e.selectedValueItem && !e.multiple), A = r(
138
+ ), m = r(() => e.dynamicFiltering && (e.open || e.alwaysComboboxIsInput)), A = r(() => e.selectedValueItem && !e.multiple), B = r(
144
139
  () => e.multiple && e.selectedValueItem && n.value.length > 0 && e.showSlotContentInMultiple
145
140
  );
146
141
  V(
147
- () => x.value,
142
+ () => m.value,
148
143
  () => {
149
- x.value && !e.alwaysComboboxIsInput && D(() => {
144
+ m.value && !e.alwaysComboboxIsInput && D(() => {
150
145
  i.value.focus();
151
146
  });
152
147
  }
153
148
  );
154
149
  const I = async () => {
155
- !e.disabled && !e.readonly && (o(s.OPEN), await D(), i.value.focus());
150
+ !e.disabled && !e.readonly && (a(s.OPEN), await D(), i.value.focus());
156
151
  }, g = () => {
157
- e.open && (i.value.focus(), o(s.CLOSE));
158
- }, B = (u) => e.open && u.target.tagName === "INPUT" ? null : e.open ? g() : I(), P = () => {
159
- o(s.CLEAR), o(s.INPUT, ""), i.value.focus();
160
- }, F = $((u) => {
161
- !e.readonly && !e.disabled ? o(s.INPUT, u.target.value) : (u.preventDefault(), u.stopPropagation());
162
- }, e.debounceTime), h = () => {
152
+ e.open && (i.value.focus(), a(s.CLOSE));
153
+ }, N = (u) => e.open && u.target.tagName === "INPUT" ? null : e.open ? g() : I(), P = () => {
154
+ a(s.CLEAR), a(s.INPUT, ""), i.value.focus();
155
+ }, F = (u) => {
156
+ !e.readonly && !e.disabled ? a(s.INPUT, u.target.value) : (u.preventDefault(), u.stopPropagation());
157
+ }, h = () => {
163
158
  i.value.focus();
164
159
  };
165
160
  return t({
166
161
  focus: h
167
- }), { __sfc: !0, t: a, attrs: d, slots: c, hasSlot: C, props: e, emit: o, textbox: i, textboxId: f, conditionalClasses: y, isRequired: b, comboboxConditionalClasses: _, isFiltering: S, ariaAttributes: m, selectedValueItems: n, shouldShowInput: x, shouldShowSingleSelectSlot: N, shouldShowMultipleSlot: A, onOpenDropdown: I, onCloseDropdown: g, onToggleDropdown: B, onClearSearch: P, onInputEvent: F, focus: h, BentoTypography: M, DropdownBaseTextboxEvent: s, CrossCircleFillIcon: Y, CrossCircleFillSmallIcon: z, BentoDropdownSize: L };
162
+ }), { __sfc: !0, t: o, attrs: d, slots: c, hasSlot: C, props: e, emit: a, textbox: i, textboxId: f, conditionalClasses: y, isRequired: b, comboboxConditionalClasses: _, isFiltering: S, ariaAttributes: x, selectedValueItems: n, shouldShowInput: m, shouldShowSingleSelectSlot: A, shouldShowMultipleSlot: B, onOpenDropdown: I, onCloseDropdown: g, onToggleDropdown: N, onClearSearch: P, onInputEvent: F, focus: h, BentoTypography: M, DropdownBaseTextboxEvent: s, CrossCircleFillIcon: $, CrossCircleFillSmallIcon: Y, BentoDropdownSize: L };
168
163
  }
169
164
  });
170
- var G = function() {
171
- var t = this, o = t._self._c, e = t._self._setupProxy;
172
- return o("div", { class: t.$attrs.class, attrs: { "data-testid": "textbox-wrapper" }, on: { click: e.onToggleDropdown, keydown: function(a) {
173
- return !a.type.indexOf("key") && t._k(a.keyCode, "escape", void 0, a.key, void 0) ? null : e.onCloseDropdown.apply(null, arguments);
174
- } } }, [o(e.BentoTypography, { staticClass: "b-dropdown-base-textbox", class: e.conditionalClasses, attrs: { el: "div", "data-testid": "base-textbox" } }, [e.shouldShowInput ? o("input", t._b({ ref: "textbox", staticClass: "b-dropdown-base-textbox__input", attrs: { id: e.textboxId, role: "combobox", type: "text", "aria-autocomplete": "list", size: "1", disabled: t.disabled ? !0 : null, readonly: t.readonly, required: e.isRequired }, domProps: { value: t.open ? t.value : t.displayValue }, on: { keydown: [function(a) {
175
- return t.$emit(e.DropdownBaseTextboxEvent.KEYDOWN, a);
176
- }, function(a) {
177
- return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.onToggleDropdown.apply(null, arguments);
178
- }], input: e.onInputEvent } }, "input", e.ariaAttributes, !1)) : o("div", t._b({ ref: "textbox", staticClass: "b-dropdown-base-textbox__input", class: e.comboboxConditionalClasses, attrs: { id: e.textboxId, "aria-readonly": t.readonly ? "true" : null, role: "combobox", tabindex: t.disabled ? -1 : 0 } }, "div", e.ariaAttributes, !1), [e.shouldShowSingleSelectSlot ? [e.hasSlot("display-value") ? t._t("display-value", null, null, t.selectedValueItem) : t._t("default", function() {
165
+ var J = function() {
166
+ var t = this, a = t._self._c, e = t._self._setupProxy;
167
+ return a("div", { class: t.$attrs.class, attrs: { "data-testid": "textbox-wrapper" }, on: { click: e.onToggleDropdown, keydown: function(o) {
168
+ return !o.type.indexOf("key") && t._k(o.keyCode, "escape", void 0, o.key, void 0) ? null : e.onCloseDropdown.apply(null, arguments);
169
+ } } }, [a(e.BentoTypography, { staticClass: "b-dropdown-base-textbox", class: e.conditionalClasses, attrs: { el: "div", "data-testid": "base-textbox" } }, [e.shouldShowInput ? a("input", t._b({ ref: "textbox", staticClass: "b-dropdown-base-textbox__input", attrs: { id: e.textboxId, role: "combobox", type: "text", "aria-autocomplete": "list", size: "1", disabled: t.disabled ? !0 : null, readonly: t.readonly, required: e.isRequired }, domProps: { value: t.open ? t.value : t.displayValue }, on: { keydown: [function(o) {
170
+ return t.$emit(e.DropdownBaseTextboxEvent.KEYDOWN, o);
171
+ }, function(o) {
172
+ return !o.type.indexOf("key") && t._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.onToggleDropdown.apply(null, arguments);
173
+ }], input: e.onInputEvent } }, "input", e.ariaAttributes, !1)) : a("div", t._b({ ref: "textbox", staticClass: "b-dropdown-base-textbox__input", class: e.comboboxConditionalClasses, attrs: { id: e.textboxId, "aria-readonly": t.readonly ? "true" : null, role: "combobox", tabindex: t.disabled ? -1 : 0 } }, "div", e.ariaAttributes, !1), [e.shouldShowSingleSelectSlot ? [e.hasSlot("display-value") ? t._t("display-value", null, null, t.selectedValueItem) : t._t("default", function() {
179
174
  return [t._v(" " + t._s(t.displayValue) + " ")];
180
- }, null, t.selectedValueItem)] : e.shouldShowMultipleSlot ? [o("div", { staticClass: "b-dropdown-base-textbox__input-multiple-selected" }, t._l(e.selectedValueItems, function(a) {
181
- return o("div", { key: a.value }, [o("div", { staticClass: "b-dropdown-base-textbox__input-selected-element" }, [t._t("default", function() {
175
+ }, null, t.selectedValueItem)] : e.shouldShowMultipleSlot ? [a("div", { staticClass: "b-dropdown-base-textbox__input-multiple-selected" }, t._l(e.selectedValueItems, function(o) {
176
+ return a("div", { key: o.value }, [a("div", { staticClass: "b-dropdown-base-textbox__input-selected-element" }, [t._t("default", function() {
182
177
  return [t._v(" " + t._s(t.displayValue) + " ")];
183
- }, null, a)], 2)]);
184
- }), 0)] : [t._v(t._s(t.displayValue))]], 2), t.additionalItemsSelected ? o("span", { staticClass: "b-dropdown-base-textbox__additional-items" }, [t._v(" " + t._s(t.additionalItemsSelected) + " ")]) : t._e(), e.hasSlot("icon") && !e.isFiltering ? o("span", { staticClass: "b-dropdown-base-textbox__icon", attrs: { "aria-hidden": "true" } }, [t._t("icon")], 2) : t._e(), e.isFiltering ? o("span", { staticClass: "b-dropdown-base-textbox__clear-search", attrs: { tabindex: t.disabled ? -1 : 0, "data-testid": "clear-search-button" }, on: { click: function(a) {
185
- return a.stopPropagation(), e.onClearSearch.apply(null, arguments);
186
- }, keydown: function(a) {
187
- return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : (a.stopPropagation(), e.onClearSearch.apply(null, arguments));
188
- }, keyup: function(a) {
189
- return !a.type.indexOf("key") && t._k(a.keyCode, "space", 32, a.key, [" ", "Spacebar"]) ? null : e.onClearSearch.apply(null, arguments);
190
- } } }, [t.size === e.BentoDropdownSize.SMALL ? o(e.CrossCircleFillSmallIcon, { attrs: { "svg-title": e.t("clearSearch") } }) : o(e.CrossCircleFillIcon, { attrs: { "svg-title": e.t("clearSearch") } })], 1) : t._e()])], 1);
191
- }, Q = [], X = /* @__PURE__ */ O(
178
+ }, null, o)], 2)]);
179
+ }), 0)] : [t._v(t._s(t.displayValue))]], 2), t.additionalItemsSelected ? a("span", { staticClass: "b-dropdown-base-textbox__additional-items" }, [t._v(" " + t._s(t.additionalItemsSelected) + " ")]) : t._e(), e.hasSlot("icon") && !e.isFiltering ? a("span", { staticClass: "b-dropdown-base-textbox__icon", attrs: { "aria-hidden": "true" } }, [t._t("icon")], 2) : t._e(), e.isFiltering ? a("span", { staticClass: "b-dropdown-base-textbox__clear-search", attrs: { tabindex: t.disabled ? -1 : 0, "data-testid": "clear-search-button" }, on: { click: function(o) {
180
+ return o.stopPropagation(), e.onClearSearch.apply(null, arguments);
181
+ }, keydown: function(o) {
182
+ return !o.type.indexOf("key") && t._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : (o.stopPropagation(), e.onClearSearch.apply(null, arguments));
183
+ }, keyup: function(o) {
184
+ return !o.type.indexOf("key") && t._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : e.onClearSearch.apply(null, arguments);
185
+ } } }, [t.size === e.BentoDropdownSize.SMALL ? a(e.CrossCircleFillSmallIcon, { attrs: { "svg-title": e.t("clearSearch") } }) : a(e.CrossCircleFillIcon, { attrs: { "svg-title": e.t("clearSearch") } })], 1) : t._e()])], 1);
186
+ }, G = [], Q = /* @__PURE__ */ O(
187
+ W,
192
188
  J,
193
189
  G,
194
- Q,
195
190
  !1,
196
191
  null,
197
- "37a35d30"
192
+ "213214b2"
198
193
  );
199
- const Z = X.exports, ee = w({
194
+ const X = Q.exports, Z = w({
200
195
  name: "dropdown-default-textbox",
201
196
  inheritAttrs: !1
202
- }), te = /* @__PURE__ */ w({
203
- ...ee,
197
+ }), ee = /* @__PURE__ */ w({
198
+ ...Z,
204
199
  props: {
205
200
  /**
206
201
  * The number of additional items that have been selected in the dropdown.
@@ -238,10 +233,6 @@ const Z = X.exports, ee = w({
238
233
  * Renders the dropdown with a condensed style.
239
234
  */
240
235
  condensed: { type: Boolean, default: !1 },
241
- /**
242
- * Custom debounce time. Default: 300
243
- */
244
- debounceTime: { type: Number, default: 300 },
245
236
  /**
246
237
  * Disables any textbox functionality
247
238
  */
@@ -291,60 +282,60 @@ const Z = X.exports, ee = w({
291
282
  multiple: { type: Boolean, default: !1 }
292
283
  },
293
284
  emits: ["clear", "close", "input", "keydown", "open"],
294
- setup(l, { expose: t, emit: o }) {
295
- const e = l, a = E(), d = k(null), c = r(() => ({
285
+ setup(l, { expose: t, emit: a }) {
286
+ const e = l, o = E(), d = k(null), c = r(() => ({
296
287
  [`b-dropdown-default-textbox--${p.ERROR}`]: !e.disabled && !e.readonly && e.isInvalid,
297
288
  [`b-dropdown-default-textbox--${p.DISABLED}`]: e.disabled,
298
289
  [`b-dropdown-default-textbox--${p.READONLY}`]: e.readonly,
299
290
  [`b-dropdown-default-textbox--${p.OPENED}`]: e.open,
300
291
  "b-dropdown-default-textbox--condensed": e.condensed
301
292
  })), C = r(() => e.open && !e.disabled && !e.readonly), i = (n) => {
302
- o("input", n);
293
+ a("input", n);
303
294
  }, f = (n) => {
304
- o("keydown", n);
295
+ a("keydown", n);
305
296
  }, y = (n) => {
306
- v(n), o("open");
297
+ v(n), a("open");
307
298
  }, b = (n) => {
308
- v(n), o("close");
299
+ v(n), a("close");
309
300
  }, _ = (n) => {
310
- v(n), o("clear");
301
+ v(n), a("clear");
311
302
  }, S = {
312
303
  [s.INPUT]: i,
313
304
  [s.OPEN]: y,
314
305
  [s.CLOSE]: b,
315
306
  [s.CLEAR]: _,
316
307
  [s.KEYDOWN]: f
317
- }, m = () => {
308
+ }, x = () => {
318
309
  d.value.focus();
319
310
  };
320
311
  return t({
321
- focus: m
322
- }), { __sfc: !0, emit: o, slots: a, props: e, baseTextbox: d, conditionalClasses: c, isDropdownOpen: C, onInput: i, onKeyDown: f, openDropdown: y, closeDropdown: b, clearValue: _, listeners: S, focus: m, DropdownBaseTextbox: Z, ChevronDownIcon: K, ChevronUpIcon: j };
312
+ focus: x
313
+ }), { __sfc: !0, emit: a, slots: o, props: e, baseTextbox: d, conditionalClasses: c, isDropdownOpen: C, onInput: i, onKeyDown: f, openDropdown: y, closeDropdown: b, clearValue: _, listeners: S, focus: x, DropdownBaseTextbox: X, ChevronDownIcon: z, ChevronUpIcon: K };
323
314
  }
324
315
  });
325
- var oe = function() {
326
- var t = this, o = t._self._c, e = t._self._setupProxy;
327
- return o("div", { staticClass: "b-dropdown-default-textbox", class: e.conditionalClasses, attrs: { "data-testid": "default-textbox" } }, [o(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-default-textbox__textbox", attrs: { value: t.value }, scopedSlots: t._u([t._l(e.slots, function(a, d) {
316
+ var te = function() {
317
+ var t = this, a = t._self._c, e = t._self._setupProxy;
318
+ return a("div", { staticClass: "b-dropdown-default-textbox", class: e.conditionalClasses, attrs: { "data-testid": "default-textbox" } }, [a(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-default-textbox__textbox", attrs: { value: t.value }, scopedSlots: t._u([t._l(e.slots, function(o, d) {
328
319
  return { key: d, fn: function(c) {
329
320
  return [t._t(d, null, null, c ?? {})];
330
321
  } };
331
322
  }), { key: "icon", fn: function() {
332
- return [o("div", { staticClass: "b-dropdown-default-textbox__chevron" }, [o(e.ChevronUpIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
323
+ return [a("div", { staticClass: "b-dropdown-default-textbox__chevron" }, [a(e.ChevronUpIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), a(e.ChevronDownIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
333
324
  }, proxy: !0 }], null, !0) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
334
- }, ae = [], le = /* @__PURE__ */ O(
325
+ }, ae = [], oe = /* @__PURE__ */ O(
326
+ ee,
335
327
  te,
336
- oe,
337
328
  ae,
338
329
  !1,
339
330
  null,
340
- "ec45fa90"
331
+ "bf2d43b0"
341
332
  );
342
- const xe = le.exports;
333
+ const _e = oe.exports;
343
334
  export {
344
335
  L as B,
345
- xe as D,
336
+ _e as D,
346
337
  p as a,
347
338
  s as b,
348
- Z as c
339
+ X as c
349
340
  };
350
- //# sourceMappingURL=dropdown-default-textbox.Cq68tN9F.js.map
341
+ //# sourceMappingURL=dropdown-default-textbox.5WjhJWdh.js.map