@adyen/bento-vue2 1.51.0 → 1.53.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 (283) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +583 -79
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions-with-menu.css +1 -1
  9. package/dist/assets/calendar.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox-input.css +1 -1
  12. package/dist/assets/checkbox.css +1 -1
  13. package/dist/assets/dashed-underline.css +1 -1
  14. package/dist/assets/data-grid.css +1 -1
  15. package/dist/assets/date-picker.css +1 -1
  16. package/dist/assets/date-range-picker.css +1 -1
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/form-layout-title.css +1 -1
  22. package/dist/assets/header-with-views.css +1 -0
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/input-field-phone-number.css +1 -1
  25. package/dist/assets/input-field.css +1 -1
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/menu.css +1 -1
  28. package/dist/assets/modal-fullscreen.css +1 -1
  29. package/dist/assets/popover.css +1 -1
  30. package/dist/assets/sidepanel.css +1 -1
  31. package/dist/assets/summary-grid-item-custom.css +1 -1
  32. package/dist/assets/use-cached-selected-values.css +1 -1
  33. package/dist/button.js +1 -1
  34. package/dist/card.js +1 -1
  35. package/dist/checkbox.js +3 -3
  36. package/dist/chunks/{action-bar.DGhojWpe.js → action-bar.Cuktzrp5.js} +5 -5
  37. package/dist/chunks/{action-bar.DGhojWpe.js.map → action-bar.Cuktzrp5.js.map} +1 -1
  38. package/dist/chunks/{alert.BSBLkXkM.js → alert.BkMKX9wD.js} +9 -9
  39. package/dist/chunks/alert.BkMKX9wD.js.map +1 -0
  40. package/dist/chunks/{base-modal.Dan5WQin.js → base-modal.DnaWOvaM.js} +4 -4
  41. package/dist/chunks/{base-modal.Dan5WQin.js.map → base-modal.DnaWOvaM.js.map} +1 -1
  42. package/dist/chunks/bin.DuebwJYu.js +24 -0
  43. package/dist/chunks/bin.DuebwJYu.js.map +1 -0
  44. package/dist/chunks/button-actions-with-menu.twMFsb82.js +166 -0
  45. package/dist/chunks/button-actions-with-menu.twMFsb82.js.map +1 -0
  46. package/dist/chunks/{button-actions.GhdYBSwt.js → button-actions.DAvSJtOB.js} +3 -3
  47. package/dist/chunks/{button-actions.GhdYBSwt.js.map → button-actions.DAvSJtOB.js.map} +1 -1
  48. package/dist/chunks/calendar.CJToU_uI.js +1130 -0
  49. package/dist/chunks/calendar.CJToU_uI.js.map +1 -0
  50. package/dist/chunks/{card.Csazj5Qz.js → card.AQO_BjGb.js} +2 -2
  51. package/dist/chunks/{card.Csazj5Qz.js.map → card.AQO_BjGb.js.map} +1 -1
  52. package/dist/chunks/{checkbox-group.DcJ31aLq.js → checkbox-group.DkM6n3JR.js} +4 -4
  53. package/dist/chunks/{checkbox-group.DcJ31aLq.js.map → checkbox-group.DkM6n3JR.js.map} +1 -1
  54. package/dist/chunks/checkbox-input.CMhyJDdo.js +129 -0
  55. package/dist/chunks/checkbox-input.CMhyJDdo.js.map +1 -0
  56. package/dist/chunks/checkbox.l7h6GYew.js +176 -0
  57. package/dist/chunks/checkbox.l7h6GYew.js.map +1 -0
  58. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
  59. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
  60. package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
  61. package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
  62. package/dist/chunks/{code-snippet.z_G2UXVT.js → code-snippet.BsEe6nml.js} +5 -5
  63. package/dist/chunks/{code-snippet.z_G2UXVT.js.map → code-snippet.BsEe6nml.js.map} +1 -1
  64. package/dist/chunks/{controls-group.ghJ7a8PY.js → controls-group.vFyThDMU.js} +2 -2
  65. package/dist/chunks/{controls-group.ghJ7a8PY.js.map → controls-group.vFyThDMU.js.map} +1 -1
  66. package/dist/chunks/{copy.BNOiinIt.js → copy.DD_Yfyn_.js} +3 -3
  67. package/dist/chunks/{copy.BNOiinIt.js.map → copy.DD_Yfyn_.js.map} +1 -1
  68. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
  69. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
  70. package/dist/chunks/{dashboard-section.Db_E382r.js → dashboard-section.z-Rnv5E-.js} +3 -3
  71. package/dist/chunks/{dashboard-section.Db_E382r.js.map → dashboard-section.z-Rnv5E-.js.map} +1 -1
  72. package/dist/chunks/{dashed-underline.CAhDrAG_.js → dashed-underline.CfQuYKV9.js} +8 -8
  73. package/dist/chunks/{dashed-underline.CAhDrAG_.js.map → dashed-underline.CfQuYKV9.js.map} +1 -1
  74. package/dist/chunks/{data-grid-template.DG5IWdLG.js → data-grid-template.73mazFER.js} +2 -2
  75. package/dist/chunks/{data-grid-template.DG5IWdLG.js.map → data-grid-template.73mazFER.js.map} +1 -1
  76. package/dist/chunks/{data-grid.CHV-FvBB.js → data-grid.C_Xoz-GC.js} +38 -28
  77. package/dist/chunks/data-grid.C_Xoz-GC.js.map +1 -0
  78. package/dist/chunks/date-picker.bgk9aymW.js +235 -0
  79. package/dist/chunks/date-picker.bgk9aymW.js.map +1 -0
  80. package/dist/chunks/date-range-picker.-s05jOQA.js +903 -0
  81. package/dist/chunks/date-range-picker.-s05jOQA.js.map +1 -0
  82. package/dist/chunks/{date.YLIcAerL.js → date.dYFFEunA.js} +12 -12
  83. package/dist/chunks/{date.YLIcAerL.js.map → date.dYFFEunA.js.map} +1 -1
  84. package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
  85. package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
  86. package/dist/chunks/{dropdown-default-textbox.DzPBw4CV.js → dropdown-default-textbox.CDTdHfTv.js} +2 -2
  87. package/dist/chunks/{dropdown-default-textbox.DzPBw4CV.js.map → dropdown-default-textbox.CDTdHfTv.js.map} +1 -1
  88. package/dist/chunks/{dropdown-tag.K4idCLeu.js → dropdown-tag.8qh8J-NE.js} +4 -4
  89. package/dist/chunks/{dropdown-tag.K4idCLeu.js.map → dropdown-tag.8qh8J-NE.js.map} +1 -1
  90. package/dist/chunks/{dropdown.DFEGHxjw.js → dropdown.DzWXcJyF.js} +141 -132
  91. package/dist/chunks/dropdown.DzWXcJyF.js.map +1 -0
  92. package/dist/chunks/{error-message.B3oWB_HM.js → error-message.CzQf7YOD.js} +3 -3
  93. package/dist/chunks/{error-message.B3oWB_HM.js.map → error-message.CzQf7YOD.js.map} +1 -1
  94. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  95. package/dist/chunks/{file-uploader.DaBMZSsB.js → file-uploader.CcZPr-jD.js} +329 -328
  96. package/dist/chunks/file-uploader.CcZPr-jD.js.map +1 -0
  97. package/dist/chunks/{filter-bar.DClIG9aP.js → filter-bar.BdGtQC7p.js} +619 -668
  98. package/dist/chunks/filter-bar.BdGtQC7p.js.map +1 -0
  99. package/dist/chunks/{focus-trap._RrLaKlq.js → focus-trap.CIUzScHc.js} +2 -2
  100. package/dist/chunks/{focus-trap._RrLaKlq.js.map → focus-trap.CIUzScHc.js.map} +1 -1
  101. package/dist/chunks/{footer-actions.D0SuJroc.js → footer-actions.BkHpWa7A.js} +2 -2
  102. package/dist/chunks/{footer-actions.D0SuJroc.js.map → footer-actions.BkHpWa7A.js.map} +1 -1
  103. package/dist/chunks/{form-layout-title.C1n2S73_.js → form-layout-title.DK1-01RH.js} +50 -47
  104. package/dist/chunks/form-layout-title.DK1-01RH.js.map +1 -0
  105. package/dist/chunks/header-with-views.ChEgH2tn.js +1536 -0
  106. package/dist/chunks/header-with-views.ChEgH2tn.js.map +1 -0
  107. package/dist/chunks/header.0hX8OYwM.js +183 -0
  108. package/dist/chunks/header.0hX8OYwM.js.map +1 -0
  109. package/dist/chunks/index.BCUiAdb6.js +387 -0
  110. package/dist/chunks/{index.CU8GKq4C.js.map → index.BCUiAdb6.js.map} +1 -1
  111. package/dist/chunks/index.BDuTpjD8.js +40 -0
  112. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  113. package/dist/chunks/index.BxBB1rsx.js +15 -0
  114. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  115. package/dist/chunks/index.DD7TppDb.js +10 -0
  116. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  117. package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js → info-icon-with-popover.w6MpKOWh.js} +3 -3
  118. package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js.map → info-icon-with-popover.w6MpKOWh.js.map} +1 -1
  119. package/dist/chunks/{info-icon.bXR5eo6I.js → info-icon.C1ReXurF.js} +4 -4
  120. package/dist/chunks/{info-icon.bXR5eo6I.js.map → info-icon.C1ReXurF.js.map} +1 -1
  121. package/dist/chunks/info.4d_mJHvT.js +24 -0
  122. package/dist/chunks/info.4d_mJHvT.js.map +1 -0
  123. package/dist/chunks/input-field-password.CZn4kW8v.js +198 -0
  124. package/dist/chunks/input-field-password.CZn4kW8v.js.map +1 -0
  125. package/dist/chunks/{input-field-phone-number.Bmugk7fI.js → input-field-phone-number.C8WTJ1W-.js} +324 -321
  126. package/dist/chunks/{input-field-phone-number.Bmugk7fI.js.map → input-field-phone-number.C8WTJ1W-.js.map} +1 -1
  127. package/dist/chunks/input-field.tP3Eupoo.js +152 -0
  128. package/dist/chunks/input-field.tP3Eupoo.js.map +1 -0
  129. package/dist/chunks/{inspector.types.C9Oc8FgA.js → inspector.types.A0b4jNO3.js} +3 -3
  130. package/dist/chunks/{inspector.types.C9Oc8FgA.js.map → inspector.types.A0b4jNO3.js.map} +1 -1
  131. package/dist/chunks/{layout-row.CHwDU8yK.js → layout-row.BgBazwnM.js} +2 -2
  132. package/dist/chunks/{layout-row.CHwDU8yK.js.map → layout-row.BgBazwnM.js.map} +1 -1
  133. package/dist/chunks/{listbox-option-tag.bPRcATJK.js → listbox-option-tag.T9cfTst7.js} +2 -2
  134. package/dist/chunks/{listbox-option-tag.bPRcATJK.js.map → listbox-option-tag.T9cfTst7.js.map} +1 -1
  135. package/dist/chunks/{menu.CzbkunwY.js → menu.CY7ceslP.js} +88 -87
  136. package/dist/chunks/menu.CY7ceslP.js.map +1 -0
  137. package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js → modal-fullscreen.Dz5w250z.js} +3 -3
  138. package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js.map → modal-fullscreen.Dz5w250z.js.map} +1 -1
  139. package/dist/chunks/{modal.DgCmKjQC.js → modal.CnmRkXZM.js} +4 -4
  140. package/dist/chunks/{modal.DgCmKjQC.js.map → modal.CnmRkXZM.js.map} +1 -1
  141. package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
  142. package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
  143. package/dist/chunks/{pagination.CdOxfZW2.js → pagination.CvGOUwd8.js} +2 -2
  144. package/dist/chunks/{pagination.CdOxfZW2.js.map → pagination.CvGOUwd8.js.map} +1 -1
  145. package/dist/chunks/payment-method.NZKiNOmM.js +76 -0
  146. package/dist/chunks/payment-method.NZKiNOmM.js.map +1 -0
  147. package/dist/chunks/{popover.3sHql3nd.js → popover.BvsqsZQ1.js} +3 -3
  148. package/dist/chunks/{popover.3sHql3nd.js.map → popover.BvsqsZQ1.js.map} +1 -1
  149. package/dist/chunks/{popper-container.Bqy3oVj6.js → popper-container.LRQgzjRf.js} +2 -2
  150. package/dist/chunks/{popper-container.Bqy3oVj6.js.map → popper-container.LRQgzjRf.js.map} +1 -1
  151. package/dist/chunks/{promo-banner.BIICM7FC.js → promo-banner.DDnJwMDC.js} +2 -2
  152. package/dist/chunks/{promo-banner.BIICM7FC.js.map → promo-banner.DDnJwMDC.js.map} +1 -1
  153. package/dist/chunks/{radio-group.L-XokgwC.js → radio-group.BvswbJa8.js} +4 -4
  154. package/dist/chunks/{radio-group.L-XokgwC.js.map → radio-group.BvswbJa8.js.map} +1 -1
  155. package/dist/chunks/{search-bar.CDTWPjG1.js → search-bar.kKLreEXo.js} +5 -5
  156. package/dist/chunks/{search-bar.CDTWPjG1.js.map → search-bar.kKLreEXo.js.map} +1 -1
  157. package/dist/chunks/search.DLtglc02.js +24 -0
  158. package/dist/chunks/search.DLtglc02.js.map +1 -0
  159. package/dist/chunks/{secondary-nav.BwmBTvl5.js → secondary-nav.C6bfsK2p.js} +3 -3
  160. package/dist/chunks/{secondary-nav.BwmBTvl5.js.map → secondary-nav.C6bfsK2p.js.map} +1 -1
  161. package/dist/chunks/{segmented-control.CW6v1rDg.js → segmented-control.BywW3ont.js} +2 -2
  162. package/dist/chunks/{segmented-control.CW6v1rDg.js.map → segmented-control.BywW3ont.js.map} +1 -1
  163. package/dist/chunks/{selection-card-group.CURxGbd9.js → selection-card-group.Ca4G00h5.js} +5 -5
  164. package/dist/chunks/{selection-card-group.CURxGbd9.js.map → selection-card-group.Ca4G00h5.js.map} +1 -1
  165. package/dist/chunks/{sidepanel.MBArfd4a.js → sidepanel.D4H3Vu0m.js} +4 -4
  166. package/dist/chunks/{sidepanel.MBArfd4a.js.map → sidepanel.D4H3Vu0m.js.map} +1 -1
  167. package/dist/chunks/{structured-list-item.CYYZ1Fil.js → structured-list-item.Bv8reTz2.js} +5 -5
  168. package/dist/chunks/{structured-list-item.CYYZ1Fil.js.map → structured-list-item.Bv8reTz2.js.map} +1 -1
  169. package/dist/chunks/{summary-grid-item-custom.CVEhwKNM.js → summary-grid-item-custom.Bbdie4EL.js} +188 -135
  170. package/dist/chunks/summary-grid-item-custom.Bbdie4EL.js.map +1 -0
  171. package/dist/chunks/{tag.BxmageRW.js → tag.IyMxowGc.js} +2 -2
  172. package/dist/chunks/{tag.BxmageRW.js.map → tag.IyMxowGc.js.map} +1 -1
  173. package/dist/chunks/{teleport.B5fwsT5y.js → teleport.BHfrns33.js} +2 -2
  174. package/dist/chunks/{teleport.B5fwsT5y.js.map → teleport.BHfrns33.js.map} +1 -1
  175. package/dist/chunks/{textarea.DmjhRupr.js → textarea.B9HjT5LH.js} +2 -2
  176. package/dist/chunks/{textarea.DmjhRupr.js.map → textarea.B9HjT5LH.js.map} +1 -1
  177. package/dist/chunks/{timeline-item.CLbS-cEf.js → timeline-item.BIwk0vqM.js} +12 -11
  178. package/dist/chunks/{timeline-item.CLbS-cEf.js.map → timeline-item.BIwk0vqM.js.map} +1 -1
  179. package/dist/chunks/{tooltip.Vgoc41cI.js → tooltip.DShIiBiY.js} +2 -2
  180. package/dist/chunks/{tooltip.Vgoc41cI.js.map → tooltip.DShIiBiY.js.map} +1 -1
  181. package/dist/chunks/{tutorial.CmLMgXDK.js → tutorial.DDlXTjAO.js} +42 -42
  182. package/dist/chunks/tutorial.DDlXTjAO.js.map +1 -0
  183. package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js → use-cached-selected-values.LVldNial.js} +13 -9
  184. package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js.map → use-cached-selected-values.LVldNial.js.map} +1 -1
  185. package/dist/click-outside.js +1 -1
  186. package/dist/code-snippet.js +1 -1
  187. package/dist/dashboard-template.js +1 -1
  188. package/dist/dashed-underline.js +2 -2
  189. package/dist/data-grid-template.js +1 -1
  190. package/dist/data-grid.js +1 -1
  191. package/dist/date-picker.js +2 -2
  192. package/dist/date-range-picker.js +2 -2
  193. package/dist/date.js +1 -1
  194. package/dist/dropdown.js +4 -4
  195. package/dist/file-uploader.js +1 -1
  196. package/dist/filter-bar.js +1 -1
  197. package/dist/focus-trap.js +1 -1
  198. package/dist/form-layout.js +1 -1
  199. package/dist/header-with-views.js +5 -0
  200. package/dist/header-with-views.js.map +1 -0
  201. package/dist/header.js +1 -1
  202. package/dist/index.js +200 -198
  203. package/dist/index.js.map +1 -1
  204. package/dist/info-icon.js +1 -1
  205. package/dist/input-field-password.js +1 -1
  206. package/dist/input-field-phone-number.js +1 -1
  207. package/dist/input-field.js +1 -1
  208. package/dist/inspector.js +1 -1
  209. package/dist/internal.js +35 -33
  210. package/dist/layout.js +1 -1
  211. package/dist/menu.js +1 -1
  212. package/dist/modal-fullscreen.js +1 -1
  213. package/dist/modal.js +2 -2
  214. package/dist/pagination.js +1 -1
  215. package/dist/payment-method.js +1 -1
  216. package/dist/popover.js +1 -1
  217. package/dist/popper-container.js +1 -1
  218. package/dist/promo-banner.js +1 -1
  219. package/dist/radio-group.js +1 -1
  220. package/dist/search-bar.js +2 -2
  221. package/dist/secondary-nav.js +1 -1
  222. package/dist/segmented-control.js +1 -1
  223. package/dist/selection-card.js +1 -1
  224. package/dist/sidepanel.js +1 -1
  225. package/dist/structured-list.js +1 -1
  226. package/dist/styles/bento-dark.css +73 -1
  227. package/dist/styles/bento-light.css +73 -1
  228. package/dist/styles/bento.css +73 -1
  229. package/dist/styles/legacy.css +75 -3
  230. package/dist/styles/styleguide.css +73 -1
  231. package/dist/summary-grid.js +1 -1
  232. package/dist/tag.js +1 -1
  233. package/dist/textarea.js +1 -1
  234. package/dist/timeline.js +1 -1
  235. package/dist/tutorial.js +1 -1
  236. package/dist/use-form-v4.js +8300 -0
  237. package/dist/use-form-v4.js.map +1 -0
  238. package/dist/web-types.json +1005 -206
  239. package/package.json +9 -8
  240. package/dist/chunks/alert.BSBLkXkM.js.map +0 -1
  241. package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js +0 -112
  242. package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js.map +0 -1
  243. package/dist/chunks/calendar.YJTNpmzh.js +0 -888
  244. package/dist/chunks/calendar.YJTNpmzh.js.map +0 -1
  245. package/dist/chunks/checkbox-input.B4A_gL2b.js +0 -128
  246. package/dist/chunks/checkbox-input.B4A_gL2b.js.map +0 -1
  247. package/dist/chunks/checkbox.BpF0HY7C.js +0 -162
  248. package/dist/chunks/checkbox.BpF0HY7C.js.map +0 -1
  249. package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js +0 -24
  250. package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js.map +0 -1
  251. package/dist/chunks/cross-circle-fill.BawVYNw7.js +0 -24
  252. package/dist/chunks/cross-circle-fill.BawVYNw7.js.map +0 -1
  253. package/dist/chunks/data-grid.CHV-FvBB.js.map +0 -1
  254. package/dist/chunks/date-picker.CMj5-RQl.js +0 -213
  255. package/dist/chunks/date-picker.CMj5-RQl.js.map +0 -1
  256. package/dist/chunks/date-range-picker.Jysfo6h3.js +0 -885
  257. package/dist/chunks/date-range-picker.Jysfo6h3.js.map +0 -1
  258. package/dist/chunks/dropdown.DFEGHxjw.js.map +0 -1
  259. package/dist/chunks/file-uploader.DaBMZSsB.js.map +0 -1
  260. package/dist/chunks/filter-bar.DClIG9aP.js.map +0 -1
  261. package/dist/chunks/form-layout-title.C1n2S73_.js.map +0 -1
  262. package/dist/chunks/header.CRlxEGHb.js +0 -205
  263. package/dist/chunks/header.CRlxEGHb.js.map +0 -1
  264. package/dist/chunks/index.CU8GKq4C.js +0 -369
  265. package/dist/chunks/index.CrhTVr5J.js +0 -10
  266. package/dist/chunks/index.CrhTVr5J.js.map +0 -1
  267. package/dist/chunks/index.DDnf1O9p.js +0 -22
  268. package/dist/chunks/index.DDnf1O9p.js.map +0 -1
  269. package/dist/chunks/index.DPafeRJa.js +0 -10
  270. package/dist/chunks/index.DPafeRJa.js.map +0 -1
  271. package/dist/chunks/info.D4SG-AIm.js +0 -24
  272. package/dist/chunks/info.D4SG-AIm.js.map +0 -1
  273. package/dist/chunks/input-field-password.DsIpkc_9.js +0 -191
  274. package/dist/chunks/input-field-password.DsIpkc_9.js.map +0 -1
  275. package/dist/chunks/input-field.Dl2lXZda.js +0 -146
  276. package/dist/chunks/input-field.Dl2lXZda.js.map +0 -1
  277. package/dist/chunks/menu.CzbkunwY.js.map +0 -1
  278. package/dist/chunks/payment-method.BudFG3aC.js +0 -76
  279. package/dist/chunks/payment-method.BudFG3aC.js.map +0 -1
  280. package/dist/chunks/search.pVu-JVAN.js +0 -24
  281. package/dist/chunks/search.pVu-JVAN.js.map +0 -1
  282. package/dist/chunks/summary-grid-item-custom.CVEhwKNM.js.map +0 -1
  283. package/dist/chunks/tutorial.CmLMgXDK.js.map +0 -1
@@ -0,0 +1,40 @@
1
+ import { r as o, t as a } from "./get-date-locale.BN8xEjY0.js";
2
+ import { c as g } from "./index.DD7TppDb.js";
3
+ function m(r, e) {
4
+ o(2, arguments);
5
+ var t = a(r), n = a(e), f = t.getFullYear() - n.getFullYear(), s = t.getMonth() - n.getMonth();
6
+ return f * 12 + s;
7
+ }
8
+ function h(r) {
9
+ o(1, arguments);
10
+ var e = a(r);
11
+ return e.setHours(23, 59, 59, 999), e;
12
+ }
13
+ function v(r) {
14
+ o(1, arguments);
15
+ var e = a(r), t = e.getMonth();
16
+ return e.setFullYear(e.getFullYear(), t + 1, 0), e.setHours(23, 59, 59, 999), e;
17
+ }
18
+ function d(r) {
19
+ o(1, arguments);
20
+ var e = a(r);
21
+ return h(e).getTime() === v(e).getTime();
22
+ }
23
+ function M(r, e) {
24
+ o(2, arguments);
25
+ var t = a(r), n = a(e), f = g(t, n), s = Math.abs(m(t, n)), u;
26
+ if (s < 1)
27
+ u = 0;
28
+ else {
29
+ t.getMonth() === 1 && t.getDate() > 27 && t.setDate(30), t.setMonth(t.getMonth() - f * s);
30
+ var i = g(t, n) === -f;
31
+ d(a(r)) && s === 1 && g(r, n) === 1 && (i = !1), u = f * (s - Number(i));
32
+ }
33
+ return u === 0 ? 0 : u;
34
+ }
35
+ export {
36
+ v as a,
37
+ M as d,
38
+ h as e
39
+ };
40
+ //# sourceMappingURL=index.BDuTpjD8.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.BDuTpjD8.js","sources":["../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/differenceInCalendarMonths/index.js","../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/endOfDay/index.js","../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/endOfMonth/index.js","../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/isLastDayOfMonth/index.js","../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/differenceInMonths/index.js"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\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 * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * var result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\n\nexport default function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();\n var monthDiff = dateLeft.getMonth() - dateRight.getMonth();\n return yearDiff * 12 + monthDiff;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\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 * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a day\n * @throws {TypeError} 1 argument required\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 */\n\nexport default function endOfDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setHours(23, 59, 59, 999);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\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 * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a month\n * @throws {TypeError} 1 argument required\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 */\n\nexport default function endOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear(), month + 1, 0);\n date.setHours(23, 59, 59, 999);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport endOfDay from \"../endOfDay/index.js\";\nimport endOfMonth from \"../endOfMonth/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\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 * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is the last day of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * var result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\n\nexport default function isLastDayOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n return endOfDay(date).getTime() === endOfMonth(date).getTime();\n}","import toDate from \"../toDate/index.js\";\nimport differenceInCalendarMonths from \"../differenceInCalendarMonths/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport isLastDayOfMonth from \"../isLastDayOfMonth/index.js\";\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @description\n * Get the number of full months between the given dates using trunc as a default rounding method.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full months\n * @throws {TypeError} 2 arguments required\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 */\n\nexport default function differenceInMonths(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var sign = compareAsc(dateLeft, dateRight);\n var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));\n var result; // Check for the difference of less than month\n\n if (difference < 1) {\n result = 0;\n } else {\n if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {\n // This will check if the date is end of Feb and assign a higher end of month date\n // to compare it with Jan\n dateLeft.setDate(30);\n }\n\n dateLeft.setMonth(dateLeft.getMonth() - sign * difference); // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full\n // If so, result must be decreased by 1 in absolute value\n\n var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign; // Check for cases of one full calendar month\n\n if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {\n isLastMonthNotFull = false;\n }\n\n result = sign * (difference - Number(isLastMonthNotFull));\n } // Prevent negative zero\n\n\n return result === 0 ? 0 : result;\n}"],"names":["differenceInCalendarMonths","dirtyDateLeft","dirtyDateRight","requiredArgs","dateLeft","toDate","dateRight","yearDiff","monthDiff","endOfDay","dirtyDate","date","endOfMonth","month","isLastDayOfMonth","differenceInMonths","sign","compareAsc","difference","result","isLastMonthNotFull"],"mappings":";;AA4Be,SAASA,EAA2BC,GAAeC,GAAgB;AAChF,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAWC,EAAOJ,CAAa,GAC/BK,IAAYD,EAAOH,CAAc,GACjCK,IAAWH,EAAS,YAAW,IAAKE,EAAU,YAAa,GAC3DE,IAAYJ,EAAS,SAAQ,IAAKE,EAAU,SAAU;AAC1D,SAAOC,IAAW,KAAKC;AACzB;ACVe,SAASC,EAASC,GAAW;AAC1C,EAAAP,EAAa,GAAG,SAAS;AACzB,MAAIQ,IAAON,EAAOK,CAAS;AAC3B,SAAAC,EAAK,SAAS,IAAI,IAAI,IAAI,GAAG,GACtBA;AACT;ACLe,SAASC,EAAWF,GAAW;AAC5C,EAAAP,EAAa,GAAG,SAAS;AACzB,MAAIQ,IAAON,EAAOK,CAAS,GACvBG,IAAQF,EAAK,SAAU;AAC3B,SAAAA,EAAK,YAAYA,EAAK,YAAa,GAAEE,IAAQ,GAAG,CAAC,GACjDF,EAAK,SAAS,IAAI,IAAI,IAAI,GAAG,GACtBA;AACT;ACNe,SAASG,EAAiBJ,GAAW;AAClD,EAAAP,EAAa,GAAG,SAAS;AACzB,MAAIQ,IAAON,EAAOK,CAAS;AAC3B,SAAOD,EAASE,CAAI,EAAE,QAAS,MAAKC,EAAWD,CAAI,EAAE,QAAS;AAChE;ACFe,SAASI,EAAmBd,GAAeC,GAAgB;AACxE,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAWC,EAAOJ,CAAa,GAC/BK,IAAYD,EAAOH,CAAc,GACjCc,IAAOC,EAAWb,GAAUE,CAAS,GACrCY,IAAa,KAAK,IAAIlB,EAA2BI,GAAUE,CAAS,CAAC,GACrEa;AAEJ,MAAID,IAAa;AACf,IAAAC,IAAS;AAAA,OACJ;AACL,IAAIf,EAAS,eAAe,KAAKA,EAAS,QAAS,IAAG,MAGpDA,EAAS,QAAQ,EAAE,GAGrBA,EAAS,SAASA,EAAS,SAAQ,IAAKY,IAAOE,CAAU;AAGzD,QAAIE,IAAqBH,EAAWb,GAAUE,CAAS,MAAM,CAACU;AAE9D,IAAIF,EAAiBT,EAAOJ,CAAa,CAAC,KAAKiB,MAAe,KAAKD,EAAWhB,GAAeK,CAAS,MAAM,MAC1Gc,IAAqB,KAGvBD,IAASH,KAAQE,IAAa,OAAOE,CAAkB;AAAA,EACxD;AAGD,SAAOD,MAAW,IAAI,IAAIA;AAC5B;","x_google_ignoreList":[0,1,2,3,4]}
@@ -0,0 +1,15 @@
1
+ function r(n, o) {
2
+ if (n == null)
3
+ throw new TypeError("assign requires that input parameter not be null or undefined");
4
+ o = o || {};
5
+ for (var e in o)
6
+ Object.prototype.hasOwnProperty.call(o, e) && (n[e] = o[e]);
7
+ return n;
8
+ }
9
+ function u(n) {
10
+ return r({}, n);
11
+ }
12
+ export {
13
+ u as c
14
+ };
15
+ //# sourceMappingURL=index.BxBB1rsx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.BxBB1rsx.js","sources":["../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/assign/index.js","../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/cloneObject/index.js"],"sourcesContent":["export default function assign(target, dirtyObject) {\n if (target == null) {\n throw new TypeError('assign requires that input parameter not be null or undefined');\n }\n\n dirtyObject = dirtyObject || {};\n\n for (var property in dirtyObject) {\n if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {\n target[property] = dirtyObject[property];\n }\n }\n\n return target;\n}","import assign from \"../assign/index.js\";\nexport default function cloneObject(dirtyObject) {\n return assign({}, dirtyObject);\n}"],"names":["assign","target","dirtyObject","property","cloneObject"],"mappings":"AAAe,SAASA,EAAOC,GAAQC,GAAa;AAClD,MAAID,KAAU;AACZ,UAAM,IAAI,UAAU,+DAA+D;AAGrF,EAAAC,IAAcA,KAAe,CAAE;AAE/B,WAASC,KAAYD;AACnB,IAAI,OAAO,UAAU,eAAe,KAAKA,GAAaC,CAAQ,MAC5DF,EAAOE,CAAQ,IAAID,EAAYC,CAAQ;AAI3C,SAAOF;AACT;ACbe,SAASG,EAAYF,GAAa;AAC/C,SAAOF,EAAO,CAAE,GAAEE,CAAW;AAC/B;","x_google_ignoreList":[0,1]}
@@ -0,0 +1,10 @@
1
+ import { r as f, t as r } from "./get-date-locale.BN8xEjY0.js";
2
+ function n(t, a) {
3
+ f(2, arguments);
4
+ var i = r(t), s = r(a), e = i.getTime() - s.getTime();
5
+ return e < 0 ? -1 : e > 0 ? 1 : e;
6
+ }
7
+ export {
8
+ n as c
9
+ };
10
+ //# sourceMappingURL=index.DD7TppDb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.DD7TppDb.js","sources":["../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/compareAsc/index.js"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * // Wed Feb 11 1987 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Sun Jul 02 1995 00:00:00\n * // ]\n */\n\nexport default function compareAsc(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1; // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}"],"names":["compareAsc","dirtyDateLeft","dirtyDateRight","requiredArgs","dateLeft","toDate","dateRight","diff"],"mappings":";AAuCe,SAASA,EAAWC,GAAeC,GAAgB;AAChE,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAWC,EAAOJ,CAAa,GAC/BK,IAAYD,EAAOH,CAAc,GACjCK,IAAOH,EAAS,QAAO,IAAKE,EAAU,QAAS;AAEnD,SAAIC,IAAO,IACF,KACEA,IAAO,IACT,IAEAA;AAEX;","x_google_ignoreList":[0]}
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as l, ref as s } from "vue";
2
- import { B as i } from "./popover.3sHql3nd.js";
2
+ import { B as i } from "./popover.BvsqsZQ1.js";
3
3
  import { B as _ } from "./typography.J1v_SPG3.js";
4
4
  import { u as v } from "./i18n.BQkEbtPM.js";
5
5
  import { g as d } from "./generate-uid.NJ8tVoha.js";
6
- import { I } from "./info.D4SG-AIm.js";
6
+ import { I } from "./info.4d_mJHvT.js";
7
7
  import { n as O } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
8
8
  import "../assets/info-icon-with-popover.css";
9
9
  const P = {
@@ -68,4 +68,4 @@ const M = h.exports;
68
68
  export {
69
69
  M as I
70
70
  };
71
- //# sourceMappingURL=info-icon-with-popover.C29aZ1Vh.js.map
71
+ //# sourceMappingURL=info-icon-with-popover.w6MpKOWh.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"info-icon-with-popover.C29aZ1Vh.js","sources":["../../src/components/internal/info-icon-with-popover/info-icon-with-popover.vue"],"sourcesContent":["<template>\n <div\n ref=\"infoIconRef\"\n class=\"b-info-icon-with-popover\"\n tabindex=\"0\"\n data-testid=\"info-icon-with-popover\"\n @mouseenter=\"openPopover\"\n @mouseleave=\"closePopover\"\n @focus=\"infoIconOnFocus\"\n @focusout=\"infoIconOnFocusOut\"\n >\n <info-icon\n ref=\"targetElement\"\n class=\"b-info-icon-with-popover__svg\"\n :aria-expanded=\"isOpen\"\n :aria-describedby=\"popoverId\"\n :svg-title=\"t('moreInformation')\"\n />\n <bento-popover\n v-if=\"targetElement\"\n :open=\"isOpen\"\n :target-element=\"targetElement\"\n :position=\"popoverPosition\"\n role=\"tooltip\"\n fit-content\n disable-focus-trap\n >\n <bento-typography>\n <slot>\n <div v-if=\"popoverText\">\n {{ popoverText }}\n </div>\n </slot>\n </bento-typography>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/core/utils/ts';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const CLOSING_POPOVER_DELAY_MS = 200;\n\n defineProps({\n /**\n * Text showed in the popover on hover\n */\n popoverText: { type: String, default: null },\n\n /**\n * Position the popover should take if space is available\n */\n popoverPosition: {\n type: BentoPopover.props.position.type,\n default: BentoPopover.props.position.default,\n validator: BentoPopover.props.position.validator,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const infoIconRef = ref<HTMLDivElement>();\n const targetElement = ref(null);\n const popoverId = generateUid('bento-info-icon-with-popover');\n const isOpen = ref();\n const closingTimeOutId = ref();\n\n const openPopover = () => {\n isOpen.value = true;\n if (closingTimeOutId.value) {\n clearTimeout(closingTimeOutId.value);\n }\n };\n const closePopover = () => {\n // We want to delay closing for a couple of seconds so\n // it doesn't flicker if a user hovers over the icon and then inside the popover.\n const timeOutId = setTimeout(() => {\n isOpen.value = false;\n }, CLOSING_POPOVER_DELAY_MS);\n closingTimeOutId.value = timeOutId;\n };\n\n const infoIconOnFocus = () => {\n openPopover();\n };\n\n /**\n * Only close popover on blur if the newly focus element is not a child of this element\n * @param e - the event that contains the newly focused element\n */\n const infoIconOnFocusOut = (e: FocusEvent) => {\n if (\n !infoIconRef.value ||\n !(e?.relatedTarget instanceof Element) ||\n !infoIconRef.value.contains(e.relatedTarget)\n ) {\n closePopover();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to be used whenever an info icon needs to be rendered with a popover instead of a tooltip.\n *\n * @example\n * import { BentoInfoIconWithPopover } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInfoIconWithPopover },\n * template: `\n * <info-icon-with-popover popover-text=\"Content can be passed as a string like\" :popover-position=\"position\">\n * Content can also be rendered as a slot\n * </info-icon-with-popover>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./info-icon-with-popover.scss\" />\n"],"names":["__default__","messages","useI18n","infoIconRef","ref","targetElement","popoverId","generateUid","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","e"],"mappings":";;;;;;;;;;;;;;;;;;GA6HIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;AA5DA,UAAA,EAAA,EAAA,IAAAC,EAAA,GAEAC,IAAAC,EAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAC,EAAA,8BAAA,GACAC,IAAAJ,EAAA,GACAK,IAAAL,EAAA,GAEAM,IAAA,MAAA;AACI,MAAAF,EAAA,QAAA,IACAC,EAAA,SACI,aAAAA,EAAA,KAAA;AAAA,IACJ,GAEJE,IAAA,MAAA;AAGI,YAAAC,IAAA,WAAA,MAAA;AACI,QAAAJ,EAAA,QAAA;AAAA,MAAe,GAAA,GAAA;AAEnB,MAAAC,EAAA,QAAAG;AAAA,IAAyB;4LAG7B,MAAA;AACI,MAAAF,EAAA;AAAA,IAAY,uBAOhB,CAAAG,MAAA;AACI,OAAA,CAAAV,EAAA,SAAA,GAAAU,KAAA,gBAAAA,EAAA,0BAAA,YAAA,CAAAV,EAAA,MAAA,SAAAU,EAAA,aAAA,MAKIF,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"info-icon-with-popover.w6MpKOWh.js","sources":["../../src/components/internal/info-icon-with-popover/info-icon-with-popover.vue"],"sourcesContent":["<template>\n <div\n ref=\"infoIconRef\"\n class=\"b-info-icon-with-popover\"\n tabindex=\"0\"\n data-testid=\"info-icon-with-popover\"\n @mouseenter=\"openPopover\"\n @mouseleave=\"closePopover\"\n @focus=\"infoIconOnFocus\"\n @focusout=\"infoIconOnFocusOut\"\n >\n <info-icon\n ref=\"targetElement\"\n class=\"b-info-icon-with-popover__svg\"\n :aria-expanded=\"isOpen\"\n :aria-describedby=\"popoverId\"\n :svg-title=\"t('moreInformation')\"\n />\n <bento-popover\n v-if=\"targetElement\"\n :open=\"isOpen\"\n :target-element=\"targetElement\"\n :position=\"popoverPosition\"\n role=\"tooltip\"\n fit-content\n disable-focus-trap\n >\n <bento-typography>\n <slot>\n <div v-if=\"popoverText\">\n {{ popoverText }}\n </div>\n </slot>\n </bento-typography>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/core/utils/ts';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const CLOSING_POPOVER_DELAY_MS = 200;\n\n defineProps({\n /**\n * Text showed in the popover on hover\n */\n popoverText: { type: String, default: null },\n\n /**\n * Position the popover should take if space is available\n */\n popoverPosition: {\n type: BentoPopover.props.position.type,\n default: BentoPopover.props.position.default,\n validator: BentoPopover.props.position.validator,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const infoIconRef = ref<HTMLDivElement>();\n const targetElement = ref(null);\n const popoverId = generateUid('bento-info-icon-with-popover');\n const isOpen = ref();\n const closingTimeOutId = ref();\n\n const openPopover = () => {\n isOpen.value = true;\n if (closingTimeOutId.value) {\n clearTimeout(closingTimeOutId.value);\n }\n };\n const closePopover = () => {\n // We want to delay closing for a couple of seconds so\n // it doesn't flicker if a user hovers over the icon and then inside the popover.\n const timeOutId = setTimeout(() => {\n isOpen.value = false;\n }, CLOSING_POPOVER_DELAY_MS);\n closingTimeOutId.value = timeOutId;\n };\n\n const infoIconOnFocus = () => {\n openPopover();\n };\n\n /**\n * Only close popover on blur if the newly focus element is not a child of this element\n * @param e - the event that contains the newly focused element\n */\n const infoIconOnFocusOut = (e: FocusEvent) => {\n if (\n !infoIconRef.value ||\n !(e?.relatedTarget instanceof Element) ||\n !infoIconRef.value.contains(e.relatedTarget)\n ) {\n closePopover();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to be used whenever an info icon needs to be rendered with a popover instead of a tooltip.\n *\n * @example\n * import { BentoInfoIconWithPopover } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInfoIconWithPopover },\n * template: `\n * <info-icon-with-popover popover-text=\"Content can be passed as a string like\" :popover-position=\"position\">\n * Content can also be rendered as a slot\n * </info-icon-with-popover>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./info-icon-with-popover.scss\" />\n"],"names":["__default__","messages","useI18n","infoIconRef","ref","targetElement","popoverId","generateUid","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","e"],"mappings":";;;;;;;;;;;;;;;;;;GA6HIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;AA5DA,UAAA,EAAA,EAAA,IAAAC,EAAA,GAEAC,IAAAC,EAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAC,EAAA,8BAAA,GACAC,IAAAJ,EAAA,GACAK,IAAAL,EAAA,GAEAM,IAAA,MAAA;AACI,MAAAF,EAAA,QAAA,IACAC,EAAA,SACI,aAAAA,EAAA,KAAA;AAAA,IACJ,GAEJE,IAAA,MAAA;AAGI,YAAAC,IAAA,WAAA,MAAA;AACI,QAAAJ,EAAA,QAAA;AAAA,MAAe,GAAA,GAAA;AAEnB,MAAAC,EAAA,QAAAG;AAAA,IAAyB;4LAG7B,MAAA;AACI,MAAAF,EAAA;AAAA,IAAY,uBAOhB,CAAAG,MAAA;AACI,OAAA,CAAAV,EAAA,SAAA,GAAAU,KAAA,gBAAAA,EAAA,0BAAA,YAAA,CAAAV,EAAA,MAAA,SAAAU,EAAA,aAAA,MAKIF,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as n } from "vue";
2
- import { d as i } from "./popper-container.Bqy3oVj6.js";
3
- import { I as r } from "./info.D4SG-AIm.js";
4
- import { B as s } from "./tooltip.Vgoc41cI.js";
2
+ import { d as i } from "./popper-container.LRQgzjRf.js";
3
+ import { I as r } from "./info.4d_mJHvT.js";
4
+ import { B as s } from "./tooltip.DShIiBiY.js";
5
5
  import { n as a } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
6
  import "../assets/info-icon.css";
7
7
  const p = n({
@@ -38,4 +38,4 @@ const x = m.exports;
38
38
  export {
39
39
  x as B
40
40
  };
41
- //# sourceMappingURL=info-icon.bXR5eo6I.js.map
41
+ //# sourceMappingURL=info-icon.C1ReXurF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"info-icon.bXR5eo6I.js","sources":["../../src/components/info-icon/info-icon.vue"],"sourcesContent":["<template>\n <span v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\" :aria-label=\"tooltipText\" class=\"b-info-icon\">\n <info-icon :svg-title=\"tooltipText\" class=\"b-info-icon__svg\" />\n </span>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective } from '@/directives';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n\n /**\n * @example\n * import { BentoInfoIcon } from '@adyen/adl-vue-components';\n *\n * export default {\n * components: { BentoInfoIcon },\n * template: `\n * <bento-info-icon tooltip-text=\"Text on hover\" />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-info-icon',\n components: { InfoIcon },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Text showed in the info-icon tooltip on hover\n */\n tooltipText: { type: String, required: true },\n\n /**\n * Position the tooltip should take if space is available. Defaults to 'auto'\n */\n tooltipPosition: {\n type: String as PropType<PopperContainerPosition | `${PopperContainerPosition}`>,\n default: PopperContainerPosition.AUTO,\n validator: (value: PopperContainerPosition) => Object.values(PopperContainerPosition).includes(value),\n },\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/info-icon/info-icon.scss\" />\n"],"names":["_sfc_main","defineComponent","InfoIcon","BentoTooltipDirective","PopperContainerPosition","value"],"mappings":";;;;;;AAuBA,MAAAA,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,UAAAC,EAAA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,aAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAAC,EAAA;AAAA,MACA,WAAA,CAAAC,MAAA,OAAA,OAAAD,CAAA,EAAA,SAAAC,CAAA;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"info-icon.C1ReXurF.js","sources":["../../src/components/info-icon/info-icon.vue"],"sourcesContent":["<template>\n <span v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\" :aria-label=\"tooltipText\" class=\"b-info-icon\">\n <info-icon :svg-title=\"tooltipText\" class=\"b-info-icon__svg\" />\n </span>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective } from '@/directives';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n\n /**\n * @example\n * import { BentoInfoIcon } from '@adyen/adl-vue-components';\n *\n * export default {\n * components: { BentoInfoIcon },\n * template: `\n * <bento-info-icon tooltip-text=\"Text on hover\" />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-info-icon',\n components: { InfoIcon },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Text showed in the info-icon tooltip on hover\n */\n tooltipText: { type: String, required: true },\n\n /**\n * Position the tooltip should take if space is available. Defaults to 'auto'\n */\n tooltipPosition: {\n type: String as PropType<PopperContainerPosition | `${PopperContainerPosition}`>,\n default: PopperContainerPosition.AUTO,\n validator: (value: PopperContainerPosition) => Object.values(PopperContainerPosition).includes(value),\n },\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/info-icon/info-icon.scss\" />\n"],"names":["_sfc_main","defineComponent","InfoIcon","BentoTooltipDirective","PopperContainerPosition","value"],"mappings":";;;;;;AAuBA,MAAAA,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,UAAAC,EAAA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,aAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAAC,EAAA;AAAA,MACA,WAAA,CAAAC,MAAA,OAAA,OAAAD,CAAA,EAAA,SAAAC,CAAA;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;"}
@@ -0,0 +1,24 @@
1
+ /* empty css */
2
+ import { n as a } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
3
+ let i = 0;
4
+ const r = {
5
+ beforeCreate() {
6
+ this.uuid = i.toString(), i += 1;
7
+ }
8
+ };
9
+ var C = function() {
10
+ var t = this, s = t._self._c;
11
+ return s("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? s("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), s("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-info__a" + t.uuid + ")" } }, [s("path", { attrs: { d: "M8.58147 5.05557C8.69135 4.89112 8.75 4.69778 8.75 4.5C8.75 4.23478 8.64464 3.98043 8.45711 3.79289C8.26957 3.60536 8.01522 3.5 7.75 3.5C7.55222 3.5 7.35888 3.55865 7.19443 3.66853C7.02998 3.77841 6.90181 3.93459 6.82612 4.11732C6.75043 4.30004 6.73063 4.50111 6.76921 4.69509C6.8078 4.88907 6.90304 5.06725 7.04289 5.20711C7.18275 5.34696 7.36093 5.4422 7.55491 5.48079C7.74889 5.51937 7.94996 5.49957 8.13268 5.42388C8.31541 5.34819 8.47159 5.22002 8.58147 5.05557Z" } }), s("path", { attrs: { d: "M6.25 6.25H8.75V10.25H9.75V11.75H6.25V10.25H7.25V7.75H6.25V6.25Z" } }), s("path", { attrs: { d: "M9.51195 0.398918C8.0086 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.3012 11.5338 12.5001 12.5099 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C3.49007 3.49988 4.46619 2.6988 5.60823 2.22576Z" } })]), s("defs", [s("clipPath", { attrs: { id: "uia-ui-assets/icons-16-info__a" + t.uuid } }, [s("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
12
+ }, e = [], n = /* @__PURE__ */ a(
13
+ r,
14
+ C,
15
+ e,
16
+ !1,
17
+ null,
18
+ null
19
+ );
20
+ const f = n.exports;
21
+ export {
22
+ f as I
23
+ };
24
+ //# sourceMappingURL=info.4d_mJHvT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.4d_mJHvT.js","sources":["../../../ui-assets/icons-16/dist/vue/info.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g fill=\"#00112C\" :clip-path=\"'url(#uia-ui-assets/icons-16-info__a' + uuid + ')'\"><path d=\"M8.58147 5.05557C8.69135 4.89112 8.75 4.69778 8.75 4.5C8.75 4.23478 8.64464 3.98043 8.45711 3.79289C8.26957 3.60536 8.01522 3.5 7.75 3.5C7.55222 3.5 7.35888 3.55865 7.19443 3.66853C7.02998 3.77841 6.90181 3.93459 6.82612 4.11732C6.75043 4.30004 6.73063 4.50111 6.76921 4.69509C6.8078 4.88907 6.90304 5.06725 7.04289 5.20711C7.18275 5.34696 7.36093 5.4422 7.55491 5.48079C7.74889 5.51937 7.94996 5.49957 8.13268 5.42388C8.31541 5.34819 8.47159 5.22002 8.58147 5.05557Z\"/><path d=\"M6.25 6.25H8.75V10.25H9.75V11.75H6.25V10.25H7.25V7.75H6.25V6.25Z\"/><path d=\"M9.51195 0.398918C8.0086 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.3012 11.5338 12.5001 12.5099 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C3.49007 3.49988 4.46619 2.6988 5.60823 2.22576Z\"/></g><defs><clipPath :id=\"'uia-ui-assets/icons-16-info__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main"],"mappings":";;AAOA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;"}
@@ -0,0 +1,198 @@
1
+ import { defineComponent as X, useAttrs as J, ref as s, provide as j, computed as n, watch as q } from "vue";
2
+ import { B as K } from "./button.D-3uUhuG.js";
3
+ import { B as Y } from "./image.C2D2hKat.js";
4
+ import { B as G } from "./input-field.tP3Eupoo.js";
5
+ import { B as Q } from "./popover.BvsqsZQ1.js";
6
+ import { B as $ } from "./typography.J1v_SPG3.js";
7
+ import { C as aa } from "./checkmark-circle-fill.DZBl7CeY.js";
8
+ import { D as ea } from "./dot.CnkXzRn3.js";
9
+ import { S as ta, H as ia } from "./show.e4LEpZKG.js";
10
+ import { d as oa, w as sa } from "./index.BCUiAdb6.js";
11
+ import { u as la } from "./i18n.BQkEbtPM.js";
12
+ import { g as A } from "./generate-uid.NJ8tVoha.js";
13
+ import { b as na } from "./dropdown.DzWXcJyF.js";
14
+ import { T as ra } from "./tooltip.DShIiBiY.js";
15
+ import { n as da } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
16
+ import "../assets/input-field-password.css";
17
+ var f = /* @__PURE__ */ ((o) => (o.TEXT = "text", o.PASSWORD = "password", o))(f || {});
18
+ const ca = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
19
+ function m(o) {
20
+ return (o == null ? void 0 : o.toString()) ?? "";
21
+ }
22
+ function ua(o, t = 8) {
23
+ return m(o).length >= t;
24
+ }
25
+ function pa(o) {
26
+ return /[a-z]/.test(m(o));
27
+ }
28
+ function va(o) {
29
+ return /[A-Z]/.test(m(o));
30
+ }
31
+ function fa(o) {
32
+ return /\d/.test(m(o));
33
+ }
34
+ function ma(o) {
35
+ return /[^a-zA-Z0-9]/.test(m(o));
36
+ }
37
+ const _a = {
38
+ "en-US": {
39
+ capsLockEnabled: "Caps lock on",
40
+ hidePassword: "Hide",
41
+ showPassword: "Show",
42
+ validationChecked: "Checked",
43
+ validationMinLength: "8 characters",
44
+ validationRequireLowercase: "1 lowercase (a-z)",
45
+ validationRequireNumeric: "1 numerical (0-9)",
46
+ validationRequireSpecialCharacter: "1 special character",
47
+ validationRequireUppercase: "1 uppercase (A-Z)",
48
+ validationSuggestion: "Avoid using currency symbols or accented letters.",
49
+ validationTitle: "Password must contain at least:",
50
+ validationUnchecked: "Unchecked",
51
+ validationValid: "Input is valid"
52
+ },
53
+ "ja-JP": {
54
+ capsLockEnabled: "Caps lockオン",
55
+ hidePassword: "非表示",
56
+ showPassword: "表示",
57
+ validationMinLength: "8字",
58
+ validationRequireLowercase: "小文字1字 (a-z)",
59
+ validationRequireNumeric: "数字1字 (0-9)",
60
+ validationRequireSpecialCharacter: "特殊文字1字",
61
+ validationRequireUppercase: "大文字1字 (A-Z)",
62
+ validationSuggestion: "通貨記号やアクセント付き文字は避けてください。",
63
+ validationTitle: "パスワードには少なくとも次のものを含める必要があります :"
64
+ },
65
+ "pt-BR": {
66
+ capsLockEnabled: "Caps lock ativado",
67
+ hidePassword: "Ocultar",
68
+ showPassword: "Exibir",
69
+ validationMinLength: "8 caracteres",
70
+ validationRequireLowercase: "1 minúscula (a-z)",
71
+ validationRequireNumeric: "1 numérico (0-9)",
72
+ validationRequireSpecialCharacter: "1 caractere especial",
73
+ validationRequireUppercase: "1 maiúscula (A-Z)",
74
+ validationSuggestion: "Evite símbolos de moeda ou letras acentuadas.",
75
+ validationTitle: "A senha deve conter pelo menos:"
76
+ }
77
+ }, ha = {
78
+ i18n: { messages: _a },
79
+ name: "bento-input-field-password"
80
+ }, ga = /* @__PURE__ */ X({
81
+ ...ha,
82
+ props: {
83
+ condensed: { default: !1 },
84
+ disabled: { default: !1 },
85
+ disableValidation: { type: Boolean, default: !1 },
86
+ errorMessage: { default: null },
87
+ placeholder: { default: "" },
88
+ readonly: { default: !1 },
89
+ value: { default: void 0 },
90
+ label: { default: null },
91
+ validation: { default: void 0 },
92
+ withHint: { type: Boolean, default: !0 }
93
+ },
94
+ emits: ["input:valid", "input"],
95
+ setup(o, { emit: t }) {
96
+ const e = o, a = 500, _ = 2e3, c = 2e3, { t: l } = la(), L = J(), v = s(f.PASSWORD), u = s(e.value), I = s(!1), g = s(!1), h = s([]), r = s(null), p = s(!1), T = s(null), R = s(null), F = s(null), w = s(!1);
97
+ j(na, "bento-input-field-password");
98
+ const { focused: P } = oa(T), H = A("validationListId"), V = A("validationPopoverId"), E = n(() => v.value === f.TEXT), B = n(() => {
99
+ const i = g.value && C.value, d = e.disableValidation && e.errorMessage;
100
+ return i || d ? e.errorMessage : "";
101
+ }), D = n(
102
+ () => h.value.map(
103
+ (i) => i ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
104
+ )
105
+ ), U = n(
106
+ () => r.value ? "b-input-field-password__input-tooltip--timed" : ""
107
+ ), O = n(() => ({
108
+ ariaHidden: !1,
109
+ condensed: e.condensed,
110
+ disabled: e.disabled,
111
+ errorMessage: B.value,
112
+ placeholder: e.placeholder,
113
+ readonly: e.readonly,
114
+ type: v.value,
115
+ value: u.value,
116
+ "aria-haspopup": k.value ? "dialog" : !1,
117
+ "aria-describedby": k.value ? V : "",
118
+ ...L
119
+ })), b = n(
120
+ () => e.validation === void 0 ? {
121
+ title: l("validationTitle"),
122
+ suggestion: l("validationSuggestion"),
123
+ list: [
124
+ { label: l("validationMinLength"), validate: ua },
125
+ { label: l("validationRequireLowercase"), validate: pa },
126
+ { label: l("validationRequireUppercase"), validate: va },
127
+ { label: l("validationRequireNumeric"), validate: fa },
128
+ { label: l("validationRequireSpecialCharacter"), validate: ma }
129
+ ]
130
+ } : e.validation
131
+ ), C = n(() => h.value.some((i) => !i)), k = n(
132
+ () => {
133
+ var i, d;
134
+ return R.value && ((d = (i = b.value) == null ? void 0 : i.list) == null ? void 0 : d.length) > 0;
135
+ }
136
+ ), N = (i) => {
137
+ typeof i.getModifierState == "function" && (w.value = i.getModifierState("CapsLock"));
138
+ }, x = () => {
139
+ E.value ? v.value = f.PASSWORD : v.value = f.TEXT;
140
+ }, Z = (i) => {
141
+ e.disabled || (u.value = i, t("input", u.value));
142
+ }, y = (i) => {
143
+ var d, S;
144
+ h.value = ((S = (d = b.value) == null ? void 0 : d.list) == null ? void 0 : S.map(
145
+ (M) => M.validate(i, M.additionalArgs)
146
+ )) ?? [];
147
+ }, z = () => {
148
+ p.value = !1, r.value = null;
149
+ }, W = () => {
150
+ p.value = !0;
151
+ };
152
+ return q(P, (i) => {
153
+ i || (g.value = !0), e.disableValidation || (e.withHint && (I.value = i), y(u.value));
154
+ }), q(w, (i) => {
155
+ i ? (p.value = !0, r.value = setTimeout(() => {
156
+ r.value = null, p.value = !1;
157
+ }, c)) : (clearTimeout(r.value), r.value = null, p.value = !1);
158
+ }), sa(
159
+ u,
160
+ (i) => {
161
+ y(i), C.value || t("input:valid");
162
+ },
163
+ // wait for 0.5s before checking validity OR 2s of continuous typing
164
+ { debounce: a, maxWait: _ }
165
+ ), { __sfc: !0, DEBOUNCE_DURATION: a, DEBOUNCE_MAX_WAIT: _, TOOLTIP_TIMEOUT: c, t: l, props: e, emit: t, attrs: L, inputType: v, inputValue: u, isHintDisplayed: I, isTouched: g, passwordValidity: h, capsLockTooltipTimeoutID: r, isTooltipDisplayed: p, inputFieldPasswordRef: T, inputFieldPasswordInputRef: R, inputFieldPasswordCapsLockIconRef: F, isCapsLockOn: w, focused: P, validationListId: H, validationPopoverId: V, isPasswordReadable: E, computedErrorMessage: B, passwordValidityConditionalClass: D, tooltipConditionalClass: U, inputFieldArgs: O, computedValidations: b, hasErrors: C, hasValidations: k, checkCapsLock: N, toggleInputType: x, onInput: Z, checkValidity: y, handleCapsLockMouseLeave: z, handleCapsLockMouseEnter: W, BentoButton: K, BentoImage: Y, BentoInputField: G, BentoPopover: Q, BentoTypography: $, Tooltip: ra, CheckmarkCircleFillIcon: aa, DotIcon: ea, HideIcon: ia, ShowIcon: ta, CapsLockIcon: ca };
166
+ }
167
+ });
168
+ var wa = function() {
169
+ var t = this, e = t._self._c, a = t._self._setupProxy;
170
+ return e("div", { ref: "inputFieldPasswordRef" }, [e(a.BentoInputField, t._b({ ref: "inputFieldPasswordInputRef", staticClass: "b-input-field-password__input", attrs: { spellcheck: "false" }, on: { input: a.onInput, keydown: a.checkCapsLock, keyup: a.checkCapsLock }, scopedSlots: t._u([{ key: "default", fn: function() {
171
+ return [t._v(t._s(t.label))];
172
+ }, proxy: !0 }, a.isCapsLockOn ? { key: "iconBefore", fn: function() {
173
+ return [e("div", { staticClass: "b-input-field-password__caps-lock-indicator", on: { mouseenter: a.handleCapsLockMouseEnter, mouseleave: a.handleCapsLockMouseLeave } }, [e(a.BentoImage, { ref: "inputFieldPasswordCapsLockIconRef", attrs: { src: a.CapsLockIcon, alt: a.t("capsLockEnabled") } })], 1), a.inputFieldPasswordCapsLockIconRef ? e(a.Tooltip, { class: a.tooltipConditionalClass, attrs: { content: a.t("capsLockEnabled"), "disabled-focus-trap": !0, "fallback-position": ["top", "bottom"], "is-shown": a.isTooltipDisplayed, "target-element": a.inputFieldPasswordCapsLockIconRef } }) : t._e()];
174
+ }, proxy: !0 } : null, t.disabled ? null : { key: "iconAfter", fn: function() {
175
+ return [e(a.BentoButton, { attrs: { variant: "tertiary" }, on: { click: a.toggleInputType }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
176
+ return [a.isPasswordReadable ? t._e() : e(a.ShowIcon, { attrs: { "svg-title": a.t("showPassword") } }), a.isPasswordReadable ? e(a.HideIcon, { attrs: { "svg-title": a.t("hidePassword") } }) : t._e()];
177
+ }, proxy: !0 }], null, !1, 956294632) })];
178
+ }, proxy: !0 }], null, !0) }, "bento-input-field", a.inputFieldArgs, !1)), a.hasValidations ? e(a.BentoPopover, { attrs: { open: a.isHintDisplayed, "target-element": a.inputFieldPasswordInputRef, "disable-focus-trap": !0, "aria-label": a.computedValidations.title, "aria-describedby": a.validationListId, position: "right-start" } }, [e("div", { attrs: { id: a.validationPopoverId } }, [a.computedValidations.title ? e(a.BentoTypography, { staticClass: "b-input-field-password__validation-title" }, [t._v(" " + t._s(a.computedValidations.title) + " ")]) : t._e(), a.hasErrors ? t._e() : e("p", { staticClass: "b-input-field-password__validation-status--valid", attrs: { role: "alert" } }, [t._v(" " + t._s(a.t("validationValid")) + " ")]), e("ul", { staticClass: "b-input-field-password__validation-list", attrs: { id: a.validationListId } }, t._l(a.computedValidations.list, function(_, c) {
179
+ return e("li", { key: c, class: a.passwordValidityConditionalClass[c], attrs: { "aria-live": "polite", "aria-atomic": "true" } }, [e("span", { staticClass: "b-input-field-password__validation-list-icon" }, [a.passwordValidity[c] ? e(a.CheckmarkCircleFillIcon, { attrs: { "svg-title": a.t("validationChecked") } }) : e(a.DotIcon, { attrs: { "svg-title": a.t("validationUnchecked") } })], 1), e(a.BentoTypography, { staticClass: "b-input-field-password__validation-list-text", attrs: { el: "span" } }, [t._v(" " + t._s(_.label) + " ")])], 1);
180
+ }), 0), a.computedValidations.suggestion ? e(a.BentoTypography, { staticClass: "b-input-field-password__validation-suggestion" }, [t._v(" " + t._s(a.computedValidations.suggestion) + " ")]) : t._e()], 1)]) : t._e()], 1);
181
+ }, ba = [], Ca = /* @__PURE__ */ da(
182
+ ga,
183
+ wa,
184
+ ba,
185
+ !1,
186
+ null,
187
+ "e06b79ff"
188
+ );
189
+ const Ha = Ca.exports;
190
+ export {
191
+ va as a,
192
+ fa as b,
193
+ ma as c,
194
+ Ha as i,
195
+ ua as m,
196
+ pa as r
197
+ };
198
+ //# sourceMappingURL=input-field-password.CZn4kW8v.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-field-password.CZn4kW8v.js","sources":["../../src/components/input-field-password/input-field-password.types.ts","../../src/components/input-field-password/assets/capslock.svg","../../src/components/input-field-password/utilities/input-field-password.validation.ts","../../src/components/input-field-password/input-field-password.vue"],"sourcesContent":["import type { BentoInputFieldProps, BentoInputFieldValue } from '@/components/input-field/input-field.types';\n\n/**\n * Public\n */\n\nexport interface BentoInputFieldPasswordValidationListItem {\n label: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n validate: (value: BentoInputFieldValue, ...args: any[]) => boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n additionalArgs?: any[];\n}\n\nexport interface BentoInputFieldPasswordValidation {\n title?: string;\n suggestion?: string;\n list: BentoInputFieldPasswordValidationListItem[];\n}\n\nexport interface BentoInputFieldPasswordProps {\n /**\n * Reduces height of the input\n */\n condensed?: BentoInputFieldProps['condensed'];\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled?: BentoInputFieldProps['disabled'];\n\n /**\n * Performs real-time validations over the input value. Default: `false`.\n * Disabling the option (set to `true`) will not run pre-defined validations or custom validations defined in the `validation` field.\n */\n disableValidation?: boolean;\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage?: BentoInputFieldProps['errorMessage'];\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder?: BentoInputFieldProps['placeholder'];\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly?: BentoInputFieldProps['readonly'];\n\n /**\n * Text displayed as the value of the input-field\n */\n value?: BentoInputFieldProps['value'];\n\n /**\n * Label to be shown with the input field\n */\n label?: string;\n\n /**\n * Configuration object for password field validation.\n *\n * This object defines the validation criteria and associated messages for a password field.\n * It includes the following properties:\n *\n * - `title`: The title displayed at the top of the validation hint.\n * - `suggestion`: The message displayed at the bottom of the validation hint, providing additional guidance.\n * - `list`: An array of callback functions to be executed on the value after each user input, validating the password against the specified rules.\n *\n * By default, the validation checks that:\n *\n * - The value has a minimum length of 8 characters.\n * - The value contains at least one lowercase letter.\n * - The value contains at least one uppercase letter.\n * - The value contains at least one numeric digit.\n * - The value contains at least one special character.\n *\n *\n */\n validation?: BentoInputFieldPasswordValidation;\n\n /**\n * Whether the password validation hint is displayed when the input field is activated via focus or input\n */\n withHint?: boolean;\n}\n\n/**\n * Private\n */\n\nexport enum BentoInputFieldPasswordType {\n TEXT = 'text',\n PASSWORD = 'password',\n}\n","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e\"","import { BentoInputFieldValue } from '@/components/input-field';\n\nfunction stringifyValue(value: BentoInputFieldValue): string {\n return value?.toString() ?? '';\n}\n\n/**\n * Validates if the length of the provided value is greater than or equal to the specified length.\n *\n * @param value - The input value to check.\n * @param length - The minimum required length of the value. Defaults to 8.\n * @returns `true` if the length of the value is greater than or equal to the specified length, `false` otherwise.\n */\nexport function minLength(value: BentoInputFieldValue, length = 8): boolean {\n return stringifyValue(value).length >= length;\n}\n\n/**\n * Validates if the provided value contains at least one lowercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one lowercase letter, `false` otherwise.\n */\nexport function requireLowercase(value: BentoInputFieldValue): boolean {\n return /[a-z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one uppercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one uppercase letter, `false` otherwise.\n */\nexport function requireUppercase(value: BentoInputFieldValue): boolean {\n return /[A-Z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one numerical digit.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one numerical digit, `false` otherwise.\n */\nexport function requireNumeric(value: BentoInputFieldValue): boolean {\n return /\\d/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one special character (non-alphanumeric).\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one special character, `false` otherwise.\n */\nexport function requireSpecialCharacter(value: BentoInputFieldValue): boolean {\n return /[^a-zA-Z0-9]/.test(stringifyValue(value));\n}\n","<template>\n <div ref=\"inputFieldPasswordRef\">\n <bento-input-field\n ref=\"inputFieldPasswordInputRef\"\n v-bind=\"inputFieldArgs\"\n class=\"b-input-field-password__input\"\n spellcheck=\"false\"\n @input=\"onInput\"\n @keydown=\"checkCapsLock\"\n @keyup=\"checkCapsLock\"\n >\n <template #default>{{ label }}</template>\n\n <template v-if=\"isCapsLockOn\" #iconBefore>\n <div\n class=\"b-input-field-password__caps-lock-indicator\"\n @mouseenter=\"handleCapsLockMouseEnter\"\n @mouseleave=\"handleCapsLockMouseLeave\"\n >\n <bento-image\n ref=\"inputFieldPasswordCapsLockIconRef\"\n :src=\"CapsLockIcon\"\n :alt=\"t('capsLockEnabled')\"\n ></bento-image>\n </div>\n\n <tooltip\n v-if=\"inputFieldPasswordCapsLockIconRef\"\n :class=\"tooltipConditionalClass\"\n :content=\"t('capsLockEnabled')\"\n :disabled-focus-trap=\"true\"\n :fallback-position=\"['top', 'bottom']\"\n :is-shown=\"isTooltipDisplayed\"\n :target-element=\"inputFieldPasswordCapsLockIconRef\"\n ></tooltip>\n </template>\n\n <template v-if=\"!disabled\" #iconAfter>\n <bento-button variant=\"tertiary\" @click=\"toggleInputType\">\n <template #iconLeft>\n <show-icon v-if=\"!isPasswordReadable\" :svg-title=\"t('showPassword')\" />\n\n <hide-icon v-if=\"isPasswordReadable\" :svg-title=\"t('hidePassword')\" />\n </template>\n </bento-button>\n </template>\n </bento-input-field>\n\n <bento-popover\n v-if=\"hasValidations\"\n :open=\"isHintDisplayed\"\n :target-element=\"inputFieldPasswordInputRef\"\n :disable-focus-trap=\"true\"\n :aria-label=\"computedValidations.title\"\n :aria-describedby=\"validationListId\"\n position=\"right-start\"\n >\n <div :id=\"validationPopoverId\">\n <bento-typography v-if=\"computedValidations.title\" class=\"b-input-field-password__validation-title\">\n {{ computedValidations.title }}\n </bento-typography>\n\n <p v-if=\"!hasErrors\" class=\"b-input-field-password__validation-status--valid\" role=\"alert\">\n {{ t('validationValid') }}\n </p>\n\n <ul :id=\"validationListId\" class=\"b-input-field-password__validation-list\">\n <li\n v-for=\"(validation, index) in computedValidations.list\"\n :key=\"index\"\n :class=\"passwordValidityConditionalClass[index]\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n <span class=\"b-input-field-password__validation-list-icon\">\n <checkmark-circle-fill-icon\n v-if=\"passwordValidity[index]\"\n :svg-title=\"t('validationChecked')\"\n />\n\n <dot-icon v-else :svg-title=\"t('validationUnchecked')\" />\n </span>\n\n <bento-typography class=\"b-input-field-password__validation-list-text\" el=\"span\">\n {{ validation.label }}\n </bento-typography>\n </li>\n </ul>\n\n <bento-typography\n v-if=\"computedValidations.suggestion\"\n class=\"b-input-field-password__validation-suggestion\"\n >\n {{ computedValidations.suggestion }}\n </bento-typography>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoButton } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { BentoInputField } from '@/components/input-field';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { Tooltip } from '@/internal';\n import type { BentoInputFieldProps } from '@/components/input-field/input-field.types';\n import { type BentoInputFieldPasswordProps, BentoInputFieldPasswordType } from './input-field-password.types';\n import CheckmarkCircleFillIcon from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n import HideIcon from '@adyen/ui-assets-icons-16/vue/hide';\n import ShowIcon from '@adyen/ui-assets-icons-16/vue/show';\n import CapsLockIcon from './assets/capslock.svg';\n\n import { useFocusWithin, watchDebounced } from '@vueuse/core';\n import { computed, provide, ref, SetupContext, useAttrs, watch } from 'vue';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import {\n minLength,\n requireLowercase,\n requireNumeric,\n requireSpecialCharacter,\n requireUppercase,\n } from '@/components/input-field-password/utilities/input-field-password.validation';\n import { generateUid } from '@/core/utils/ts';\n import messages from './messages.json';\n import { INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEBOUNCE_DURATION = 500;\n const DEBOUNCE_MAX_WAIT = 2000;\n const TOOLTIP_TIMEOUT = 2000;\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n condensed: { default: false },\n disabled: { default: false },\n disableValidation: { type: Boolean, default: false },\n errorMessage: { default: null },\n placeholder: { default: '' },\n readonly: { default: false },\n value: { default: undefined },\n label: { default: null },\n validation: { default: undefined },\n withHint: { type: Boolean, default: true }\n});\n\n const emit = defineEmits([\"input:valid\", \"input\"]);\n\n const attrs = useAttrs();\n\n const inputType = ref(BentoInputFieldPasswordType.PASSWORD);\n const inputValue = ref(props.value);\n const isHintDisplayed = ref(false);\n const isTouched = ref(false);\n const passwordValidity = ref<boolean[]>([]);\n const capsLockTooltipTimeoutID = ref<ReturnType<typeof setTimeout>>(null);\n const isTooltipDisplayed = ref(false);\n const inputFieldPasswordRef = ref(null);\n const inputFieldPasswordInputRef = ref(null);\n const inputFieldPasswordCapsLockIconRef = ref(null);\n const isCapsLockOn = ref(false);\n\n provide(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, 'bento-input-field-password');\n\n const { focused } = useFocusWithin(inputFieldPasswordRef);\n\n const validationListId = generateUid('validationListId');\n const validationPopoverId = generateUid('validationPopoverId');\n\n const isPasswordReadable = computed(() => inputType.value === BentoInputFieldPasswordType.TEXT);\n const computedErrorMessage = computed(() => {\n const hasRealTimeValidationErrors = isTouched.value && hasErrors.value;\n const hasAsyncValidationErrors = props.disableValidation && props.errorMessage;\n\n return hasRealTimeValidationErrors || hasAsyncValidationErrors ? props.errorMessage : '';\n });\n\n const passwordValidityConditionalClass = computed(() =>\n passwordValidity.value.map(validity =>\n validity\n ? 'b-input-field-password__validation-list--valid'\n : 'b-input-field-password__validation-list--invalid'\n )\n );\n\n const tooltipConditionalClass = computed(() =>\n capsLockTooltipTimeoutID.value ? 'b-input-field-password__input-tooltip--timed' : ''\n );\n\n const inputFieldArgs = computed<BentoInputFieldProps & SetupContext['attrs']>(() => ({\n ariaHidden: false,\n condensed: props.condensed,\n disabled: props.disabled,\n errorMessage: computedErrorMessage.value,\n placeholder: props.placeholder,\n readonly: props.readonly,\n type: inputType.value,\n value: inputValue.value,\n\n 'aria-haspopup': hasValidations.value ? 'dialog' : false,\n 'aria-describedby': hasValidations.value ? validationPopoverId : '',\n\n ...attrs,\n }));\n\n const computedValidations = computed(() =>\n props.validation === undefined\n ? {\n title: t('validationTitle'),\n suggestion: t('validationSuggestion'),\n list: [\n { label: t('validationMinLength'), validate: minLength },\n { label: t('validationRequireLowercase'), validate: requireLowercase },\n { label: t('validationRequireUppercase'), validate: requireUppercase },\n { label: t('validationRequireNumeric'), validate: requireNumeric },\n { label: t('validationRequireSpecialCharacter'), validate: requireSpecialCharacter },\n ],\n }\n : props.validation\n );\n\n const hasErrors = computed(() => passwordValidity.value.some(validation => !validation));\n const hasValidations = computed(\n () => inputFieldPasswordInputRef.value && computedValidations.value?.list?.length > 0\n );\n\n const checkCapsLock = (e: KeyboardEvent) => {\n // Check if getModifierState exists and is a function in case the user's browser is autofilling\n if (typeof e.getModifierState === 'function') {\n isCapsLockOn.value = e.getModifierState('CapsLock');\n }\n };\n\n const toggleInputType = () => {\n if (isPasswordReadable.value) {\n inputType.value = BentoInputFieldPasswordType.PASSWORD;\n } else {\n inputType.value = BentoInputFieldPasswordType.TEXT;\n }\n };\n\n const onInput = (value: string) => {\n if (props.disabled) {\n return;\n }\n\n inputValue.value = value;\n\n emit('input', inputValue.value);\n };\n\n const checkValidity = (value: BentoInputFieldPasswordProps['value']) => {\n passwordValidity.value =\n computedValidations.value?.list?.map(validationItem =>\n validationItem.validate(value, validationItem.additionalArgs)\n ) ?? [];\n };\n\n const handleCapsLockMouseLeave = () => {\n isTooltipDisplayed.value = false;\n capsLockTooltipTimeoutID.value = null;\n };\n\n const handleCapsLockMouseEnter = () => {\n isTooltipDisplayed.value = true;\n };\n\n watch(focused, focused => {\n // Always set dirty to true when blur occurs\n if (!focused) {\n isTouched.value = true;\n }\n\n // Disable validations & hint if \"disableValidation\" is \"true\"\n if (!props.disableValidation) {\n if (props.withHint) {\n isHintDisplayed.value = focused;\n }\n\n checkValidity(inputValue.value);\n }\n });\n\n watch(isCapsLockOn, isCapsLockOn => {\n if (!isCapsLockOn) {\n clearTimeout(capsLockTooltipTimeoutID.value);\n\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n } else {\n isTooltipDisplayed.value = true;\n\n capsLockTooltipTimeoutID.value = setTimeout(() => {\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n }, TOOLTIP_TIMEOUT);\n }\n });\n\n watchDebounced(\n inputValue,\n inputValue => {\n checkValidity(inputValue);\n\n if (!hasErrors.value) {\n emit('input:valid');\n }\n },\n // wait for 0.5s before checking validity OR 2s of continuous typing\n { debounce: DEBOUNCE_DURATION, maxWait: DEBOUNCE_MAX_WAIT }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * The input field password is a component designed to support users' preference for entering values securely.\n * This is an extension of the `bento-input-field` component.\n *\n * @example\n * import { BentoInputFieldPassword } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInputFieldPassword },\n * template: `\n * <bento-input-field-password\n * label=\"Label\"\n * error-message=\"Error\"\n * :validation=\"{\n * title: 'Password must contain at least:',\n * suggestion: 'Avoid using currency symbols or accented letters.',\n * list: [\n * { label: '8 characters', validate: minLength, additionalArgs: [8] },\n * { label: '1 lowercase (a-z)', validate: requireLowercase },\n * { label: '1 uppercase (A-Z)', validate: requireUppercase },\n * { label: '1 numerical (0-9)', validate: requireNumeric },\n * { label: '1 special character', validate: requireSpecialCharacter },\n * {\n * label: 'Always true',\n * validate: () => {\n * const example = 'Example';\n *\n * return () => example.length > 1;\n * },\n * },\n * ],\n * }\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-input-field-password',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field-password.scss\" />\n"],"names":["BentoInputFieldPasswordType","BentoInputFieldPasswordType2","CapsLockIcon","stringifyValue","value","minLength","length","requireLowercase","requireUppercase","requireNumeric","requireSpecialCharacter","__default__","messages","DEBOUNCE_DURATION","DEBOUNCE_MAX_WAIT","TOOLTIP_TIMEOUT","t","useI18n","attrs","useAttrs","inputType","ref","inputValue","props","isHintDisplayed","isTouched","passwordValidity","capsLockTooltipTimeoutID","isTooltipDisplayed","inputFieldPasswordRef","inputFieldPasswordInputRef","inputFieldPasswordCapsLockIconRef","isCapsLockOn","provide","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","focused","useFocusWithin","validationListId","generateUid","validationPopoverId","isPasswordReadable","computed","computedErrorMessage","hasRealTimeValidationErrors","hasErrors","hasAsyncValidationErrors","passwordValidityConditionalClass","validity","tooltipConditionalClass","inputFieldArgs","hasValidations","computedValidations","validation","_b","_a","checkCapsLock","e","toggleInputType","onInput","emit","checkValidity","validationItem","handleCapsLockMouseLeave","handleCapsLockMouseEnter","watch","focused2","isCapsLockOn2","watchDebounced","inputValue2"],"mappings":";;;;;;;;;;;;;;;;AA8FY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;AC9FZ,MAAAE,KAAA;ACEA,SAAAC,EAAAC,GAAA;AACI,UAAAA,KAAA,gBAAAA,EAAA,eAAA;AACJ;AASgB,SAAAC,GAAAD,GAAAE,IAAA,GAAA;AACZ,SAAAH,EAAAC,CAAA,EAAA,UAAAE;AACJ;AAQO,SAAAC,GAAAH,GAAA;AACH,SAAA,QAAA,KAAAD,EAAAC,CAAA,CAAA;AACJ;AAQO,SAAAI,GAAAJ,GAAA;AACH,SAAA,QAAA,KAAAD,EAAAC,CAAA,CAAA;AACJ;AAQO,SAAAK,GAAAL,GAAA;AACH,SAAA,KAAA,KAAAD,EAAAC,CAAA,CAAA;AACJ;AAQO,SAAAM,GAAAN,GAAA;AACH,SAAA,eAAA,KAAAD,EAAAC,CAAA,CAAA;AACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GC6SIO,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,GAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;;;;;;;;;iBAlOAC,IAAA,KACAC,IAAA,KACAC,IAAA,KAEA,EAAA,GAAAC,EAAA,IAAAC,GAAA,GAiBAC,IAAAC,EAAA,GAEAC,IAAAC,EAAArB,EAAA,QAAA,GACAsB,IAAAD,EAAAE,EAAA,KAAA,GACAC,IAAAH,EAAA,EAAA,GACAI,IAAAJ,EAAA,EAAA,GACAK,IAAAL,EAAA,CAAA,CAAA,GACAM,IAAAN,EAAA,IAAA,GACAO,IAAAP,EAAA,EAAA,GACAQ,IAAAR,EAAA,IAAA,GACAS,IAAAT,EAAA,IAAA,GACAU,IAAAV,EAAA,IAAA,GACAW,IAAAX,EAAA,EAAA;AAEA,IAAAY,EAAAC,IAAA,4BAAA;AAEA,UAAA,EAAA,SAAAC,EAAA,IAAAC,GAAAP,CAAA,GAEAQ,IAAAC,EAAA,kBAAA,GACAC,IAAAD,EAAA,qBAAA,GAEAE,IAAAC,EAAA,MAAArB,EAAA,UAAApB,EAAA,IAAA,GACA0C,IAAAD,EAAA,MAAA;AACI,YAAAE,IAAAlB,EAAA,SAAAmB,EAAA,OACAC,IAAAtB,EAAA,qBAAAA,EAAA;AAEA,aAAAoB,KAAAE,IAAAtB,EAAA,eAAA;AAAA,IAAsF,CAAA,GAG1FuB,IAAAL;AAAA,MAAyC,MAAAf,EAAA,MAAA;AAAA,QACd,CAAAqB,MAAAA,IAAA,mDAAA;AAAA,MAGb;AAAA,IACV,GAGJC,IAAAP;AAAA,MAAgC,MAAAd,EAAA,QAAA,iDAAA;AAAA,IACsD,GAGtFsB,IAAAR,EAAA,OAAA;AAAA,MAAqF,YAAA;AAAA,MACrE,WAAAlB,EAAA;AAAA,MACK,UAAAA,EAAA;AAAA,MACD,cAAAmB,EAAA;AAAA,MACmB,aAAAnB,EAAA;AAAA,MAChB,UAAAA,EAAA;AAAA,MACH,MAAAH,EAAA;AAAA,MACA,OAAAE,EAAA;AAAA,MACE,iBAAA4B,EAAA,QAAA,WAAA;AAAA,MAEiC,oBAAAA,EAAA,QAAAX,IAAA;AAAA,MACc,GAAArB;AAAA,IAE9D,EAAA,GAGPiC,IAAAV;AAAA,MAA4B,MAAAlB,EAAA,eAAA,SAAA;AAAA,QAElB,OAAAP,EAAA,iBAAA;AAAA,QAC8B,YAAAA,EAAA,sBAAA;AAAA,QACU,MAAA;AAAA,UAC9B,EAAA,OAAAA,EAAA,qBAAA,GAAA,UAAAX,GAAA;AAAA,UACqD,EAAA,OAAAW,EAAA,4BAAA,GAAA,UAAAT,GAAA;AAAA,UACc,EAAA,OAAAS,EAAA,4BAAA,GAAA,UAAAR,GAAA;AAAA,UACA,EAAA,OAAAQ,EAAA,0BAAA,GAAA,UAAAP,GAAA;AAAA,UACJ,EAAA,OAAAO,EAAA,mCAAA,GAAA,UAAAN,GAAA;AAAA,QACkB;AAAA,MACvF,IAAAa,EAAA;AAAA,IAEE,GAGhBqB,IAAAH,EAAA,MAAAf,EAAA,MAAA,KAAA,CAAA0B,MAAA,CAAAA,CAAA,CAAA,GACAF,IAAAT;AAAA,MAAuB,MAAA;;AAAA,eAAAX,EAAA,WAAAuB,KAAAC,IAAAH,EAAA,UAAA,gBAAAG,EAAA,SAAA,gBAAAD,EAAA,UAAA;AAAA;AAAA,IACiE,GAGxFE,IAAA,CAAAC,MAAA;AAEI,MAAA,OAAAA,EAAA,oBAAA,eACIxB,EAAA,QAAAwB,EAAA,iBAAA,UAAA;AAAA,IACJ,GAGJC,IAAA,MAAA;AACI,MAAAjB,EAAA,QACIpB,EAAA,QAAApB,EAAA,WAEAoB,EAAA,QAAApB,EAAA;AAAA,IACJ,GAGJ0D,IAAA,CAAAtD,MAAA;AACI,MAAAmB,EAAA,aAIAD,EAAA,QAAAlB,GAEAuD,EAAA,SAAArC,EAAA,KAAA;AAAA,IAA8B,GAGlCsC,IAAA,CAAAxD,MAAA;;AACI,MAAAsB,EAAA,UAAA2B,KAAAC,IAAAH,EAAA,UAAA,gBAAAG,EAAA,SAAA,gBAAAD,EAAA;AAAA,QACqC,CAAAQ,MAAAA,EAAA,SAAAzD,GAAAyD,EAAA,cAAA;AAAA,YAC+B,CAAA;AAAA,IAC1D,GAGdC,IAAA,MAAA;AACI,MAAAlC,EAAA,QAAA,IACAD,EAAA,QAAA;AAAA,IAAiC,GAGrCoC,IAAA,MAAA;AACI,MAAAnC,EAAA,QAAA;AAAA,IAA2B;AAG/B,WAAAoC,EAAA7B,GAAA,CAAA8B,MAAA;AAEI,MAAAA,MACIxC,EAAA,QAAA,KAIJF,EAAA,sBACIA,EAAA,aACIC,EAAA,QAAAyC,IAGJL,EAAAtC,EAAA,KAAA;AAAA,IACJ,CAAA,GAGJ0C,EAAAhC,GAAA,CAAAkC,MAAA;AACI,MAAAA,KAMItC,EAAA,QAAA,IAEAD,EAAA,QAAA,WAAA,MAAA;AACI,QAAAA,EAAA,QAAA,MACAC,EAAA,QAAA;AAAA,MAA2B,GAAAb,CAAA,MAT/B,aAAAY,EAAA,KAAA,GAEAA,EAAA,QAAA,MACAC,EAAA,QAAA;AAAA,IAQJ,CAAA,GAGJuC;AAAA,MAAA7C;AAAA,MACI,CAAA8C,MAAA;AAEI,QAAAR,EAAAQ,CAAA,GAEAxB,EAAA,SACIe,EAAA,aAAA;AAAA,MACJ;AAAA;AAAA,MACJ,EAAA,UAAA9C,GAAA,SAAAC,EAAA;AAAA,IAE0D;;;;;;;;;;;;;;;;;;;;;;;;;"}