@adyen/bento-vue3 1.82.0 → 1.83.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 (329) hide show
  1. package/dist/@types/index.d.ts +13674 -13806
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/filter-bar.css +1 -1
  14. package/dist/assets/inspector.css +1 -1
  15. package/dist/assets/modal-fullscreen.css +1 -1
  16. package/dist/assets/selection-card-group.css +1 -1
  17. package/dist/assets/sidepanel.css +1 -1
  18. package/dist/assets/tab.css +1 -1
  19. package/dist/assets/typography.css +1 -1
  20. package/dist/avatar.js +1 -1
  21. package/dist/button.js +3 -3
  22. package/dist/card.js +1 -1
  23. package/dist/checkbox.js +2 -2
  24. package/dist/chip.js +1 -1
  25. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  26. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  27. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  28. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  29. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  30. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  31. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  32. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  33. package/dist/chunks/{accordion-item.DHyAfeAu.js → accordion-item.yRlQj4VF.js} +2 -2
  34. package/dist/chunks/{accordion-item.DHyAfeAu.js.map → accordion-item.yRlQj4VF.js.map} +1 -1
  35. package/dist/chunks/{action-bar.BsLU4Bp3.js → action-bar.D5y9JWnT.js} +5 -5
  36. package/dist/chunks/{action-bar.BsLU4Bp3.js.map → action-bar.D5y9JWnT.js.map} +1 -1
  37. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  38. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  39. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  40. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  41. package/dist/chunks/{ai-button.DaRuea3x.js → ai-button.CDRPf7IY.js} +3 -3
  42. package/dist/chunks/{ai-button.DaRuea3x.js.map → ai-button.CDRPf7IY.js.map} +1 -1
  43. package/dist/chunks/{alert.C2pusd-_.js → alert.CYaIUaUn.js} +3 -3
  44. package/dist/chunks/{alert.C2pusd-_.js.map → alert.CYaIUaUn.js.map} +1 -1
  45. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  46. package/dist/chunks/{avatar.P2Fkz2I6.js → avatar.CNGMjwg3.js} +2 -2
  47. package/dist/chunks/{avatar.P2Fkz2I6.js.map → avatar.CNGMjwg3.js.map} +1 -1
  48. package/dist/chunks/{base-button.BSLpAs8A.js → base-button.CUd03aA2.js} +2 -2
  49. package/dist/chunks/{base-button.BSLpAs8A.js.map → base-button.CUd03aA2.js.map} +1 -1
  50. package/dist/chunks/{base-modal.Bt3mQ_5Y.js → base-modal.B8HZItVN.js} +6 -6
  51. package/dist/chunks/{base-modal.Bt3mQ_5Y.js.map → base-modal.B8HZItVN.js.map} +1 -1
  52. package/dist/chunks/bin.DuHlEQBO.js.map +1 -1
  53. package/dist/chunks/{button-actions-with-menu.D2GU8abn.js → button-actions-with-menu.LlNWeD3B.js} +2 -2
  54. package/dist/chunks/{button-actions-with-menu.D2GU8abn.js.map → button-actions-with-menu.LlNWeD3B.js.map} +1 -1
  55. package/dist/chunks/{button-actions.CbEoQYUV.js → button-actions.O0cnu1_g.js} +4 -4
  56. package/dist/chunks/{button-actions.CbEoQYUV.js.map → button-actions.O0cnu1_g.js.map} +1 -1
  57. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  58. package/dist/chunks/{button.DhcxX2GJ.js → button.CSp48LJt.js} +3 -3
  59. package/dist/chunks/{button.DhcxX2GJ.js.map → button.CSp48LJt.js.map} +1 -1
  60. package/dist/chunks/{calendar.CyJXcMz2.js → calendar.NVmCgJrJ.js} +4 -4
  61. package/dist/chunks/{calendar.CyJXcMz2.js.map → calendar.NVmCgJrJ.js.map} +1 -1
  62. package/dist/chunks/{card.s3fBTh55.js → card.Dqt_BOMI.js} +3 -3
  63. package/dist/chunks/{card.s3fBTh55.js.map → card.Dqt_BOMI.js.map} +1 -1
  64. package/dist/chunks/{checkbox-group.tnj89uhH.js → checkbox-group.S0FqSg9s.js} +5 -5
  65. package/dist/chunks/{checkbox-group.tnj89uhH.js.map → checkbox-group.S0FqSg9s.js.map} +1 -1
  66. package/dist/chunks/{checkbox.Wqhh2aRA.js → checkbox.B_WaHSop.js} +19 -19
  67. package/dist/chunks/{checkbox.Wqhh2aRA.js.map → checkbox.B_WaHSop.js.map} +1 -1
  68. package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -1
  69. package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -1
  70. package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -1
  71. package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -1
  72. package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -1
  73. package/dist/chunks/{chip.CoV28mKv.js → chip.eefnwpgE.js} +3 -3
  74. package/dist/chunks/{chip.CoV28mKv.js.map → chip.eefnwpgE.js.map} +1 -1
  75. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
  76. package/dist/chunks/{code-snippet.LRw3jGjV.js → code-snippet.Bfq5pgmE.js} +6 -6
  77. package/dist/chunks/{code-snippet.LRw3jGjV.js.map → code-snippet.Bfq5pgmE.js.map} +1 -1
  78. package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
  79. package/dist/chunks/{controls-group.B2Qci77U.js → controls-group.CdnMYv1j.js} +3 -3
  80. package/dist/chunks/{controls-group.B2Qci77U.js.map → controls-group.CdnMYv1j.js.map} +1 -1
  81. package/dist/chunks/{copy.D5CBHqUB.js → copy.Cg-VyVQ4.js} +3 -3
  82. package/dist/chunks/{copy.D5CBHqUB.js.map → copy.Cg-VyVQ4.js.map} +1 -1
  83. package/dist/chunks/{country.D484ezGU.js → country.CPGT2RsT.js} +2 -2
  84. package/dist/chunks/{country.D484ezGU.js.map → country.CPGT2RsT.js.map} +1 -1
  85. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  86. package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -1
  87. package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -1
  88. package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -1
  89. package/dist/chunks/cross.B92GxFTY.js.map +1 -1
  90. package/dist/chunks/{currency.WmvQjX7l.js → currency.DijmAkAB.js} +2 -2
  91. package/dist/chunks/{currency.WmvQjX7l.js.map → currency.DijmAkAB.js.map} +1 -1
  92. package/dist/chunks/{dashboard-section.DlokD9Rf.js → dashboard-section.CGS38Swm.js} +3 -3
  93. package/dist/chunks/{dashboard-section.DlokD9Rf.js.map → dashboard-section.CGS38Swm.js.map} +1 -1
  94. package/dist/chunks/{dashed-underline.Dw1Iqk0l.js → dashed-underline.DV3p60Ne.js} +4 -4
  95. package/dist/chunks/{dashed-underline.Dw1Iqk0l.js.map → dashed-underline.DV3p60Ne.js.map} +1 -1
  96. package/dist/chunks/{data-grid-template.BwTVHbpB.js → data-grid-template.D2g9KHSZ.js} +4 -4
  97. package/dist/chunks/{data-grid-template.BwTVHbpB.js.map → data-grid-template.D2g9KHSZ.js.map} +1 -1
  98. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  99. package/dist/chunks/{data-grid.Be6Ao4He.js → data-grid.ChGEI-jV.js} +820 -818
  100. package/dist/chunks/{data-grid.Be6Ao4He.js.map → data-grid.ChGEI-jV.js.map} +1 -1
  101. package/dist/chunks/date-format.B8RU7D42.js.map +1 -1
  102. package/dist/chunks/{date-picker.CYBx1TS_.js → date-picker.BIdfeL7b.js} +6 -6
  103. package/dist/chunks/{date-picker.CYBx1TS_.js.map → date-picker.BIdfeL7b.js.map} +1 -1
  104. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  105. package/dist/chunks/{date-range-picker.BgEM0fyZ.js → date-range-picker.BT3I5M44.js} +9 -9
  106. package/dist/chunks/{date-range-picker.BgEM0fyZ.js.map → date-range-picker.BT3I5M44.js.map} +1 -1
  107. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  108. package/dist/chunks/{date.DZvVL-uz.js → date.CL55prL0.js} +2 -2
  109. package/dist/chunks/{date.DZvVL-uz.js.map → date.CL55prL0.js.map} +1 -1
  110. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  111. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  112. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  113. package/dist/chunks/{dialog-page.BY6T1jYZ.js → dialog-page.CTEyyZ_R.js} +3 -3
  114. package/dist/chunks/{dialog-page.BY6T1jYZ.js.map → dialog-page.CTEyyZ_R.js.map} +1 -1
  115. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +1 -1
  116. package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
  117. package/dist/chunks/divider.Dho4_hQ7.js.map +1 -1
  118. package/dist/chunks/dot.ob6N-5Um.js.map +1 -1
  119. package/dist/chunks/{dropdown-default-textbox.CNrsjXUU.js → dropdown-default-textbox.DFtFMu5G.js} +2 -2
  120. package/dist/chunks/{dropdown-default-textbox.CNrsjXUU.js.map → dropdown-default-textbox.DFtFMu5G.js.map} +1 -1
  121. package/dist/chunks/{dropdown-tag.DmIHi3i-.js → dropdown-tag.BWnAPzEN.js} +6 -6
  122. package/dist/chunks/{dropdown-tag.DmIHi3i-.js.map → dropdown-tag.BWnAPzEN.js.map} +1 -1
  123. package/dist/chunks/{dropdown.Be6ses6k.js → dropdown.CtP9keJ4.js} +6 -6
  124. package/dist/chunks/{dropdown.Be6ses6k.js.map → dropdown.CtP9keJ4.js.map} +1 -1
  125. package/dist/chunks/{empty-state.Be6M8ivH.js → empty-state.D_ifpeU-.js} +3 -3
  126. package/dist/chunks/{empty-state.Be6M8ivH.js.map → empty-state.D_ifpeU-.js.map} +1 -1
  127. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  128. package/dist/chunks/expand.C9IAqYYL.js.map +1 -1
  129. package/dist/chunks/{field-label.Cu6X9V0_.js → field-label.CfizwLcQ.js} +3 -3
  130. package/dist/chunks/{field-label.Cu6X9V0_.js.map → field-label.CfizwLcQ.js.map} +1 -1
  131. package/dist/chunks/{file-uploader.Bdhm4TVh.js → file-uploader.C9qXXyin.js} +7 -7
  132. package/dist/chunks/{file-uploader.Bdhm4TVh.js.map → file-uploader.C9qXXyin.js.map} +1 -1
  133. package/dist/chunks/{filter-bar.CLNU1Ixm.js → filter-bar.DnfdHnSL.js} +22 -22
  134. package/dist/chunks/filter-bar.DnfdHnSL.js.map +1 -0
  135. package/dist/chunks/{fixed-scroller.Dmg8r9QP.js → fixed-scroller.DCjtCzKy.js} +2 -2
  136. package/dist/chunks/{fixed-scroller.Dmg8r9QP.js.map → fixed-scroller.DCjtCzKy.js.map} +1 -1
  137. package/dist/chunks/focus-trap.BaHvK7aT.js.map +1 -1
  138. package/dist/chunks/{footer-actions.C_EniPHo.js → footer-actions.CTCV-SW-.js} +4 -4
  139. package/dist/chunks/{footer-actions.C_EniPHo.js.map → footer-actions.CTCV-SW-.js.map} +1 -1
  140. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  141. package/dist/chunks/{form-layout-title.sxPU_lB_.js → form-layout-title.Dvlo-2z_.js} +3 -3
  142. package/dist/chunks/{form-layout-title.sxPU_lB_.js.map → form-layout-title.Dvlo-2z_.js.map} +1 -1
  143. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  144. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  145. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  146. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +1 -1
  147. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -1
  148. package/dist/chunks/{header-meta.DMjERxW-.js → header-meta.C2W1eMZc.js} +3 -3
  149. package/dist/chunks/{header-meta.DMjERxW-.js.map → header-meta.C2W1eMZc.js.map} +1 -1
  150. package/dist/chunks/{header-with-views.CVgISUVn.js → header-with-views.CHObq1kM.js} +11 -11
  151. package/dist/chunks/{header-with-views.CVgISUVn.js.map → header-with-views.CHObq1kM.js.map} +1 -1
  152. package/dist/chunks/{header.Dq5aBp9l.js → header.BMTf9s8L.js} +4 -4
  153. package/dist/chunks/{header.Dq5aBp9l.js.map → header.BMTf9s8L.js.map} +1 -1
  154. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
  155. package/dist/chunks/index.E60QniEu.js.map +1 -1
  156. package/dist/chunks/index.pdBj0KQU.js.map +1 -1
  157. package/dist/chunks/{info-icon.C7RAAeQQ.js → info-icon.BQDGteil.js} +2 -2
  158. package/dist/chunks/{info-icon.C7RAAeQQ.js.map → info-icon.BQDGteil.js.map} +1 -1
  159. package/dist/chunks/info.BKwey1HA.js.map +1 -1
  160. package/dist/chunks/{input-field-password.BhksIaXB.js → input-field-password.CTdUPz2y.js} +7 -7
  161. package/dist/chunks/{input-field-password.BhksIaXB.js.map → input-field-password.CTdUPz2y.js.map} +1 -1
  162. package/dist/chunks/{input-field-phone-number.jW5pH96y.js → input-field-phone-number.Bp57oBMS.js} +4 -4
  163. package/dist/chunks/{input-field-phone-number.jW5pH96y.js.map → input-field-phone-number.Bp57oBMS.js.map} +1 -1
  164. package/dist/chunks/{input-field.CYBjHzVA.js → input-field.DzNDGqBP.js} +4 -4
  165. package/dist/chunks/{input-field.CYBjHzVA.js.map → input-field.DzNDGqBP.js.map} +1 -1
  166. package/dist/chunks/{inspector.BBhrSgO6.js → inspector.p4ukEAWH.js} +3 -3
  167. package/dist/chunks/{inspector.BBhrSgO6.js.map → inspector.p4ukEAWH.js.map} +1 -1
  168. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  169. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  170. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  171. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  172. package/dist/chunks/{layout-row.BxP9SxrL.js → layout-row.CX8kV_w0.js} +2 -2
  173. package/dist/chunks/{layout-row.BxP9SxrL.js.map → layout-row.CX8kV_w0.js.map} +1 -1
  174. package/dist/chunks/{link.cwPmWlsk.js → link.BLCQlEZU.js} +2 -2
  175. package/dist/chunks/{link.cwPmWlsk.js.map → link.BLCQlEZU.js.map} +1 -1
  176. package/dist/chunks/{listbox-option-tag.VRGb_04i.js → listbox-option-tag.BQZJF00q.js} +3 -3
  177. package/dist/chunks/{listbox-option-tag.VRGb_04i.js.map → listbox-option-tag.BQZJF00q.js.map} +1 -1
  178. package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -1
  179. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
  180. package/dist/chunks/{modal-fullscreen.hOTnlB9T.js → modal-fullscreen.DYDW-zC0.js} +6 -6
  181. package/dist/chunks/{modal-fullscreen.hOTnlB9T.js.map → modal-fullscreen.DYDW-zC0.js.map} +1 -1
  182. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DFCZG9Zc.js → modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js} +6 -6
  183. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DFCZG9Zc.js.map → modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js.map} +1 -1
  184. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  185. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  186. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  187. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  188. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  189. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  190. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  191. package/dist/chunks/{pagination.Cj_FYHm-.js → pagination.0cHVUbmR.js} +4 -4
  192. package/dist/chunks/{pagination.Cj_FYHm-.js.map → pagination.0cHVUbmR.js.map} +1 -1
  193. package/dist/chunks/{payment-method.CExDsirg.js → payment-method.BGEBaa4w.js} +2 -2
  194. package/dist/chunks/{payment-method.CExDsirg.js.map → payment-method.BGEBaa4w.js.map} +1 -1
  195. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  196. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  197. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  198. package/dist/chunks/popover.types.DgfeurkF.js.map +1 -1
  199. package/dist/chunks/popper-container.I9gzp1NR.js.map +1 -1
  200. package/dist/chunks/{promo-banner.B-TLTLEd.js → promo-banner.BIRH5sVX.js} +3 -3
  201. package/dist/chunks/{promo-banner.B-TLTLEd.js.map → promo-banner.BIRH5sVX.js.map} +1 -1
  202. package/dist/chunks/{radio-group.C0qJThJ2.js → radio-group.B2JLD8_2.js} +5 -5
  203. package/dist/chunks/{radio-group.C0qJThJ2.js.map → radio-group.B2JLD8_2.js.map} +1 -1
  204. package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -1
  205. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  206. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  207. package/dist/chunks/refresh.BB4ouvz_.js.map +1 -1
  208. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  209. package/dist/chunks/{rich-text-editor.CDcfVhGv.js → rich-text-editor.Dw01KOhU.js} +7 -7
  210. package/dist/chunks/{rich-text-editor.CDcfVhGv.js.map → rich-text-editor.Dw01KOhU.js.map} +1 -1
  211. package/dist/chunks/{search-bar.CIi1zffn.js → search-bar.fCnPv83a.js} +3 -3
  212. package/dist/chunks/{search-bar.CIi1zffn.js.map → search-bar.fCnPv83a.js.map} +1 -1
  213. package/dist/chunks/search.PczW-onY.js.map +1 -1
  214. package/dist/chunks/{secondary-nav.C9ApoJ-J.js → secondary-nav.D1y_GiqG.js} +3 -3
  215. package/dist/chunks/{secondary-nav.C9ApoJ-J.js.map → secondary-nav.D1y_GiqG.js.map} +1 -1
  216. package/dist/chunks/{segmented-control.PlGfqyxH.js → segmented-control.CFlHfj3N.js} +3 -3
  217. package/dist/chunks/{segmented-control.PlGfqyxH.js.map → segmented-control.CFlHfj3N.js.map} +1 -1
  218. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  219. package/dist/chunks/{selection-card-group.DjlLf4oi.js → selection-card-group.DYklb2t2.js} +38 -37
  220. package/dist/chunks/selection-card-group.DYklb2t2.js.map +1 -0
  221. package/dist/chunks/show.CT4Augxb.js.map +1 -1
  222. package/dist/chunks/{sidepanel.CiyGOtAx.js → sidepanel.1WPpJp8O.js} +6 -6
  223. package/dist/chunks/{sidepanel.CiyGOtAx.js.map → sidepanel.1WPpJp8O.js.map} +1 -1
  224. package/dist/chunks/{status.types.-l2qJxLn.js → status.types.ChOI6XGU.js} +2 -2
  225. package/dist/chunks/{status.types.-l2qJxLn.js.map → status.types.ChOI6XGU.js.map} +1 -1
  226. package/dist/chunks/{step.rYLkDMZ0.js → step._8f9kwI5.js} +3 -3
  227. package/dist/chunks/{step.rYLkDMZ0.js.map → step._8f9kwI5.js.map} +1 -1
  228. package/dist/chunks/{structured-list-item.CsUD3M_V.js → structured-list-item.C4Fnc7sX.js} +6 -6
  229. package/dist/chunks/{structured-list-item.CsUD3M_V.js.map → structured-list-item.C4Fnc7sX.js.map} +1 -1
  230. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  231. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  232. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  233. package/dist/chunks/{summary-grid.types.BzPSYDUX.js → summary-grid.types.CbROj1cf.js} +6 -6
  234. package/dist/chunks/{summary-grid.types.BzPSYDUX.js.map → summary-grid.types.CbROj1cf.js.map} +1 -1
  235. package/dist/chunks/{tab.BAwuVDsV.js → tab.C-kmkQiE.js} +88 -67
  236. package/dist/chunks/tab.C-kmkQiE.js.map +1 -0
  237. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  238. package/dist/chunks/{tag.EDED27n5.js → tag.DFJIvNLs.js} +3 -3
  239. package/dist/chunks/{tag.EDED27n5.js.map → tag.DFJIvNLs.js.map} +1 -1
  240. package/dist/chunks/{textarea.7MePsezm.js → textarea.C0tLoH2I.js} +4 -4
  241. package/dist/chunks/{textarea.7MePsezm.js.map → textarea.C0tLoH2I.js.map} +1 -1
  242. package/dist/chunks/{timeline-item.D6SeOiVe.js → timeline-item.-IGN2sbj.js} +9 -9
  243. package/dist/chunks/{timeline-item.D6SeOiVe.js.map → timeline-item.-IGN2sbj.js.map} +1 -1
  244. package/dist/chunks/{toast.BFw86uEp.js → toast.DiIIrX7h.js} +4 -4
  245. package/dist/chunks/{toast.BFw86uEp.js.map → toast.DiIIrX7h.js.map} +1 -1
  246. package/dist/chunks/{toggle.BHCUjMpp.js → toggle.vl0ZwLhN.js} +2 -2
  247. package/dist/chunks/{toggle.BHCUjMpp.js.map → toggle.vl0ZwLhN.js.map} +1 -1
  248. package/dist/chunks/{tooltip.B76ucISL.js → tooltip.Nn3o8_vO.js} +2 -2
  249. package/dist/chunks/{tooltip.B76ucISL.js.map → tooltip.Nn3o8_vO.js.map} +1 -1
  250. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  251. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CyO3qbAU.js → tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js} +27 -27
  252. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CyO3qbAU.js.map → tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js.map} +1 -1
  253. package/dist/chunks/{typography.yBEME_Gu.js → typography.6Oo5TOMP.js} +25 -25
  254. package/dist/chunks/typography.6Oo5TOMP.js.map +1 -0
  255. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  256. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  257. package/dist/chunks/{use-bento-toast-controller.DK1PV3YW.js → use-bento-toast-controller.V61h7XzI.js} +2 -2
  258. package/dist/chunks/{use-bento-toast-controller.DK1PV3YW.js.map → use-bento-toast-controller.V61h7XzI.js.map} +1 -1
  259. package/dist/chunks/{use-cached-selected-values.DimYI3lv.js → use-cached-selected-values.u6wcYuin.js} +5 -5
  260. package/dist/chunks/{use-cached-selected-values.DimYI3lv.js.map → use-cached-selected-values.u6wcYuin.js.map} +1 -1
  261. package/dist/chunks/use-country-items.Dzbl2UsO.js.map +1 -1
  262. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  263. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
  264. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  265. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  266. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  267. package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -1
  268. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  269. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  270. package/dist/code-snippet.js +1 -1
  271. package/dist/country.js +1 -1
  272. package/dist/currency.js +1 -1
  273. package/dist/dashboard-template.js +1 -1
  274. package/dist/dashed-underline.js +1 -1
  275. package/dist/data-grid-template.js +1 -1
  276. package/dist/data-grid.js +1 -1
  277. package/dist/date-picker.js +2 -2
  278. package/dist/date-range-picker.js +2 -2
  279. package/dist/date.js +1 -1
  280. package/dist/dropdown.js +4 -4
  281. package/dist/empty-state.js +1 -1
  282. package/dist/file-uploader.js +1 -1
  283. package/dist/filter-bar.js +1 -1
  284. package/dist/form-layout.js +1 -1
  285. package/dist/header-with-views.js +1 -1
  286. package/dist/header.js +1 -1
  287. package/dist/index.js +68 -68
  288. package/dist/index.js.map +1 -1
  289. package/dist/info-icon.js +1 -1
  290. package/dist/input-field-password.js +1 -1
  291. package/dist/input-field-phone-number.js +1 -1
  292. package/dist/input-field.js +1 -1
  293. package/dist/inspector.js +1 -1
  294. package/dist/internal.js +12 -12
  295. package/dist/layout.js +1 -1
  296. package/dist/link.js +1 -1
  297. package/dist/menu.js +1 -1
  298. package/dist/modal-fullscreen.js +1 -1
  299. package/dist/modal.js +2 -2
  300. package/dist/pagination.js +1 -1
  301. package/dist/payment-method.js +1 -1
  302. package/dist/popover.js +1 -1
  303. package/dist/promo-banner.js +1 -1
  304. package/dist/radio-group.js +1 -1
  305. package/dist/rich-text-editor.js +1 -1
  306. package/dist/search-bar.js +2 -2
  307. package/dist/secondary-nav.js +1 -1
  308. package/dist/segmented-control.js +1 -1
  309. package/dist/selection-card.js +1 -1
  310. package/dist/sidepanel.js +1 -1
  311. package/dist/status.js +1 -1
  312. package/dist/stepper.js +1 -1
  313. package/dist/structured-list.js +1 -1
  314. package/dist/summary-grid.js +1 -1
  315. package/dist/tabs.js +1 -1
  316. package/dist/tag.js +1 -1
  317. package/dist/textarea.js +1 -1
  318. package/dist/timeline.js +1 -1
  319. package/dist/toast.js +1 -1
  320. package/dist/toggle.js +1 -1
  321. package/dist/tutorial.js +1 -1
  322. package/dist/typography.js +1 -1
  323. package/dist/use-form-v4.js.map +1 -1
  324. package/dist/web-types.json +1 -1
  325. package/package.json +7 -7
  326. package/dist/chunks/filter-bar.CLNU1Ixm.js.map +0 -1
  327. package/dist/chunks/selection-card-group.DjlLf4oi.js.map +0 -1
  328. package/dist/chunks/tab.BAwuVDsV.js.map +0 -1
  329. package/dist/chunks/typography.yBEME_Gu.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.B76ucISL.js","sources":["../../../vue2/src/directives/tooltip/tooltip.types.ts","../../../vue2/src/types/utils-events.ts","../../../vue2/src/components/internal/tooltip/tooltip.types.ts","../../../vue2/src/components/internal/tooltip/tooltip.vue","../../../vue2/src/directives/tooltip/tooltip.ts"],"sourcesContent":["import type { DirectiveBinding } from 'vue/types/options';\nimport { PopperContainerPositionBasic } from '../../components/popper-container/popper-container.types';\n\nexport interface BentoTooltipDirectiveBinding extends Readonly<DirectiveBinding> {\n readonly value: string;\n}\n\nexport const BentoTooltipPosition = { ...PopperContainerPositionBasic };\nexport type BentoTooltipPosition = PopperContainerPositionBasic;\n\nexport enum BentoTooltipState {\n HIDDEN = 'hidden',\n}\n","import type { Vue } from 'vue-demi';\n\nexport interface ListenOptions {\n capture?: boolean;\n passive?: boolean;\n once?: boolean;\n self?: boolean;\n vm?: Vue;\n onCleanup?: () => void;\n}\n\nexport enum EventKey {\n ESCAPE = 'Escape',\n ENTER = 'Enter',\n ARROW_LEFT = 'ArrowLeft',\n ARROW_UP = 'ArrowUp',\n ARROW_RIGHT = 'ArrowRight',\n ARROW_DOWN = 'ArrowDown',\n PAGE_UP = 'PageUp',\n PAGE_DOWN = 'PageDown',\n END = 'End',\n HOME = 'Home',\n TAB = 'Tab',\n}\n\n/**\n * @deprecated `Event.keyCode` is deprecated. Use `EventKey` instead\n */\nexport enum KeyCode {\n ESCAPE = 27,\n ENTER = 13,\n ARROW_LEFT = 37,\n ARROW_UP = 38,\n ARROW_RIGHT = 39,\n ARROW_DOWN = 40,\n PAGE_UP = 33,\n PAGE_DOWN = 34,\n END = 35,\n HOME = 36,\n}\n","import { PopperContainerPositionBasic } from '../../popper-container/popper-container.types';\n\nexport const BentoTooltipPosition = { ...PopperContainerPositionBasic };\nexport type BentoTooltipPosition = PopperContainerPositionBasic;\n\nexport enum BentoTooltipState {\n HIDDEN = 'hidden',\n}\n","<template>\n <popper-container\n :id=\"id\"\n :aria-role=\"PopperContainerAriaRole.TOOLTIP\"\n :arrow=\"{ classes: ['b-tooltip__arrow'] }\"\n :class=\"conditionalClasses\"\n :fallback-position=\"fallbackPosition\"\n :is-hidden=\"!isShown\"\n :offset=\"[0, 4]\"\n :position=\"position\"\n :target-element=\"targetElement\"\n :disabled-focus-trap=\"disabledFocusTrap\"\n class=\"b-tooltip\"\n >\n <bento-typography el=\"span\" variant=\"caption\">\n {{ content }}\n </bento-typography>\n </popper-container>\n</template>\n\n<script setup lang=\"ts\">\n import type {} from '@floating-ui/vue';\n import { computed, type PropType } from 'vue';\n import { BentoTooltipPosition, BentoTooltipState } from './tooltip.types';\n import { type FallbackPositionProp, PopperContainer, PopperContainerAriaRole } from '@/components/popper-container';\n import { BentoTypography } from '@/components/typography';\n import { type VueNodeElement } from '@/types/elements';\n\n const props = defineProps({\n /**\n * The tooltip's id. Necessary for accessibility purposes.\n */\n id: { type: String, default: null },\n /**\n * Tooltip's target reference to the DOM element or Vue component.\n * The tooltip will position itself relatively to target element, in the specified position.\n */\n targetElement: { type: [Element, Object] as PropType<VueNodeElement>, required: true },\n /**\n * Tooltip's position relative to the target element.\n * Possible values are: 'top', 'bottom', 'left' and 'right'.\n */\n position: {\n type: String as PropType<BentoTooltipPosition>,\n default: BentoTooltipPosition.TOP,\n validator: value => Object.values(BentoTooltipPosition).includes(value as BentoTooltipPosition),\n },\n /**\n * Tooltip's offset.\n * If specified, the tooltip will have an offset in pixels between it and the target element\n * in specified position.\n */\n offset: { type: Number, default: 0 },\n /**\n * Tooltip's text content.\n */\n content: { type: String, required: true },\n /**\n * Shows / Hides the Tooltip component\n */\n isShown: { type: Boolean, default: false },\n\n /**\n * Allows to configure to fallback position to the one specified, it could be 'auto' or ['right', 'top', ...].\n * Useful when not using auto as starting placement.\n * @see {@link https://floating-ui.com/docs/flip#fallbackplacements}\n */\n fallbackPosition: {\n type: [Array, String] as PropType<FallbackPositionProp>,\n default: () => ['top', 'bottom', 'right', 'left'],\n },\n\n /**\n * Disables focus-trap for tooltip.\n * Useful for maintaining focus on the target element.\n */\n disabledFocusTrap: { type: Boolean, default: false },\n });\n\n const conditionalClasses = computed(() => ({\n [`b-tooltip--${BentoTooltipState.HIDDEN}`]: !props.isShown,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Tooltip container, to be used internally to render the tooltip container where the text is shown.\n */\n export default {\n name: 'tooltip',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./tooltip.scss\" />\n","import { nextTick, reactive } from 'vue';\nimport { listen } from '@/utils/ts/events';\nimport { generateUid } from '@/core/utils/ts';\nimport { EventKey } from '@/types/utils-events';\nimport { BentoTooltipPosition } from './tooltip.types';\nimport { type BentoTooltipDirectiveBinding } from './tooltip.types';\nimport { createApp, h, isVue2, isVue3, Vue2 } from 'vue-demi';\nimport Tooltip from '@/internal/tooltip/tooltip.vue';\n\ninterface TooltipInstance {\n target: HTMLElement;\n content: string;\n position: BentoTooltipPosition;\n removeListeners: Array<() => void>;\n}\n\n/**\n * Tooltip directive to render a tooltip on a given HTML element or component.\n *\n * @usage\n * import { BentoTooltipDirective, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltipDirective },\n * template: `\n * <bento-button\n * v-bento-tooltip-directive:BentoTooltipPosition.BOTTOM=\"refToTextContent\"\n * >\n * Button text\n * </bento-button>\n * `,\n * }\n */\nconst tooltipInstances: Array<TooltipInstance> = [];\nconst ariaDescribedByAttr = 'aria-describedby';\nconst tooltipId = generateUid('tooltip');\n\nlet tooltipVNode;\n\n// Reusable Tooltip component instance.\nlet tooltip;\n// Global visibility state to prevent tooltips from showing after it being instructed to hide\nlet open = false;\n\nconst tooltipProps = reactive({\n targetElement: null,\n content: 'START_MESSAGE',\n id: tooltipId,\n position: undefined,\n isShown: false,\n});\n\n/**\n * Creates a new Tooltip component instance and inserts it into DOM.\n * @param {HTMLElement} el the target element for the Tooltip\n * @internal\n */\nconst createTooltip = (el: HTMLElement) => {\n // Sets the target's tabindex so as to make the tooltip interactive via keyboard navigation\n el.setAttribute('tabindex', '0');\n\n if (isVue2) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for Vue method in Vue 3 but this code only executes in vue 2 so ignoring.\n const TooltipComponent = Vue2.extend(Tooltip);\n tooltip = new TooltipComponent({ propsData: { targetElement: el, content: '', id: tooltipId } }).$mount();\n document.body.appendChild(tooltip.$el);\n } else {\n tooltipProps.targetElement = el;\n tooltip = createApp({\n components: { Tooltip },\n setup() {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for h method in Vue 2 but this code only executes in vue 3 so ignoring.\n return () => h(Tooltip, { ...tooltipProps }, '');\n },\n });\n tooltipVNode = document.createElement('div');\n tooltipVNode.id = 'tooltip-parent';\n document.body.appendChild(tooltipVNode);\n tooltip.mount('#tooltip-parent');\n }\n};\n\n/**\n * Removes Tooltip component instance from the DOM and destroys it.\n * @internal\n */\nconst destroyTooltip = () => {\n if (isVue2) {\n if (document.contains(tooltip.$el)) {\n document.body.removeChild(tooltip.$el);\n }\n tooltip.$destroy();\n } else {\n tooltip.unmount();\n if (document.contains(tooltipVNode)) {\n document.body.removeChild(tooltipVNode);\n }\n }\n\n tooltip = undefined;\n};\n\n/**\n * Returns tooltip position based on the specified argument.\n * By default returns 'top' if no argument is specified.\n * @param {BentoTooltipDirectiveBinding} binding Directive binding object.\n * @returns {string} Tooltip position.\n * @internal\n */\nconst getTooltipPosition = (binding: BentoTooltipDirectiveBinding): BentoTooltipPosition =>\n Object.values(BentoTooltipPosition).includes(binding.arg as BentoTooltipPosition)\n ? (binding.arg as BentoTooltipPosition)\n : BentoTooltipPosition.TOP;\n\n/**\n * Get the correct Tooltip instance for the given target element\n * @param {HTMLElement} el the target element for the Tooltip\n * @returns\n */\nconst getTooltipInstanceForTarget = (el: HTMLElement): TooltipInstance =>\n tooltipInstances.find(\n ctx =>\n // isEqualNode doesn't work correct for svg element, hence the second check here\n ctx.target.isEqualNode(el) && ctx.target === el\n );\n\n/**\n * On mouse enter event updates tooltip with correct content and position, and shows tooltip.\n * @param {?HTMLElement} el - Target element\n * @internal\n */\nconst showTooltip = (el?: HTMLElement) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n\n // If tooltip content is empty – do not show the tooltip\n if (!tooltipInstance.content || !el) {\n return;\n }\n\n if (el) {\n el.setAttribute(ariaDescribedByAttr, tooltipId);\n }\n\n // If the Tooltip is inside a dialog, move tooltip element inside of it\n // It gets restored to <body> when it gets hidden\n let isDialogOpen = false;\n document.querySelectorAll('dialog').forEach(node => {\n isDialogOpen = node?.open || isDialogOpen;\n });\n\n if (isDialogOpen) {\n if (isVue2) {\n el.after(tooltip.$el);\n // eslint-disable-next-line no-underscore-dangle\n } else if (tooltip?._instance?.vnode?.el) {\n // eslint-disable-next-line no-underscore-dangle\n el.after(tooltip?._instance?.vnode?.el);\n }\n isDialogOpen = false;\n }\n\n open = true;\n\n tooltip.content = tooltipInstance.content;\n tooltip.position = tooltipInstance.position;\n\n tooltipProps.content = tooltipInstance.content;\n tooltipProps.position = tooltipInstance.position;\n\n // Do calculations on a next tick, otherwise tooltip position calculations will be wrong\n nextTick(() => {\n // Do not open tooltip if it has been instructed to hide in process\n if (!open) {\n return;\n }\n tooltip.targetElement = el;\n tooltip.isShown = true;\n\n tooltipProps.targetElement = el;\n tooltipProps.isShown = true;\n });\n};\n\n/**\n * On mouse leave event hides the tooltip.\n * @internal\n */\nconst hideTooltip = (el?: HTMLElement) => {\n // Restore the tooltip element to body if it got move out of <body>\n if (tooltip.$el?.parentElement?.tagName && tooltip.$el?.parentElement?.tagName !== 'BODY') {\n document.body.appendChild(tooltip.$el);\n }\n\n open = false;\n tooltip.isShown = false;\n tooltipProps.isShown = false;\n if (el) {\n el.removeAttribute(ariaDescribedByAttr);\n }\n};\n\nconst tooltipBind = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n // eslint-disable-next-line no-prototype-builtins\n if (!binding.hasOwnProperty('value') || binding.value) {\n // Create Tooltip component singleton instance\n if (tooltipInstances.length === 0) {\n createTooltip(el);\n }\n\n const show = () => showTooltip(el);\n const hide = () => hideTooltip(el);\n\n // Create and store context object, which has directive related handlers and content.\n const tooltipInstance: TooltipInstance = {\n target: el,\n content: binding.value,\n position: getTooltipPosition(binding),\n removeListeners: [\n listen(el, 'mouseenter', show),\n listen(el, 'mouseleave', hide),\n listen(el, 'focus', () => {\n if (el.matches(':focus-visible')) {\n show();\n }\n }),\n listen(el, 'blur', evt => {\n const focusEvent = <FocusEvent>evt;\n\n // when blurred and it transitions to the tooltip via screenreader, it should not close\n if ((focusEvent.relatedTarget as Element)?.getAttribute('role') !== 'tooltip') {\n hide();\n }\n }),\n listen(el, 'keydown', evt => {\n const keyboardEvent = <KeyboardEvent>evt;\n if (keyboardEvent.key === EventKey.ESCAPE) {\n hide();\n }\n }),\n ],\n };\n\n tooltipInstances.push(tooltipInstance);\n }\n};\n\nconst tooltipUpdate = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n if (tooltipInstance) {\n // Update tooltip content value if it is changed\n if (tooltipInstance?.content !== binding.value) {\n tooltipInstance.content = binding.value;\n // If tooltip is currently shown for current element – update tooltip's content value\n if (tooltip.isShown && tooltip.targetElement.isEqualNode(el)) {\n if (!tooltipInstance.content) {\n tooltip.isShown = false;\n } else {\n tooltip.content = binding.value;\n }\n\n // This forces the tooltip to refresh and update content in Vue3\n if (isVue3) {\n hideTooltip(el);\n showTooltip(el);\n }\n }\n }\n // Update tooltip position if it is changed\n if (tooltipInstance.position !== binding.arg) {\n const position = getTooltipPosition(binding);\n tooltipInstance.position = position;\n tooltip.position = position;\n }\n } else if (!tooltipInstance && binding.value) {\n // If I don't have a tooltip instance yet but the value passed was updated\n tooltipBind(el, binding);\n }\n};\n\nconst tooltipUnbind = (el: HTMLElement) => {\n const context = getTooltipInstanceForTarget(el);\n\n // Prevent unbinding/removing when there's nothing to unbind, leads to stack overflow errors\n if (!context) {\n return;\n }\n\n context.removeListeners.forEach(removeListener => {\n removeListener();\n });\n\n // If el is removed while tooltip is displayed, the tooltip doesnt hide as\n // there is no el to trigger mouseleave/blur.\n hideTooltip();\n\n tooltipInstances.splice(tooltipInstances.indexOf(context), 1);\n\n // If all the elements using the directive are removed, then no point having\n // the component on the page.\n if (tooltipInstances.length === 0) {\n destroyTooltip();\n }\n};\n\n/**\n * This directive allows you to bind a tooltip to an element.\n * Tooltip can be configured to be shown in one of four positions: 'top', 'left', 'right' and 'bottom'.\n *\n * @example\n * import { BentoTooltipDirective as BentoTooltip, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltip },\n * methods: {\n * contentExpression() {\n * return 'tooltip content';\n * },\n * },\n * template: `<div>\n * <div v-bento-tooltip:left=\"refToTooltipContent\"></div>\n * <div v-bento-tooltip:[TooltipPosition.BOTTOM]=\"refToTooltipContent\"></div>\n *\n * <!-- If you don't specify the position then by default it's `TooltipPosition.TOP` -->\n * <div v-bento-tooltip=\"refToTooltipContent\"></div>\n *\n * <!-- Tooltip content can also be a data property or a method or a computed property as well -->\n * <div v-bento-tooltip=\"contentExpression()\"></div>\n * </div>`,\n * };\n */\nexport const BentoTooltipDirective = {\n // Vue 2 Directive hooks\n bind(el, binding) {\n tooltipBind(el, binding);\n },\n update(el, binding) {\n tooltipUpdate(el, binding);\n },\n unbind(el) {\n tooltipUnbind(el);\n },\n // Vue 3 Directive hooks\n beforeMount(el, binding) {\n tooltipBind(el, binding);\n },\n mounted(el, binding) {\n tooltipUpdate(el, binding);\n },\n updated(el, binding) {\n tooltipUpdate(el, binding);\n },\n unmounted(el) {\n tooltipUnbind(el);\n },\n};\n"],"names":["BentoTooltipPosition$1","PopperContainerPositionBasic","BentoTooltipState$1","BentoTooltipState2","EventKey","EventKey2","BentoTooltipPosition","BentoTooltipState","__default__","props","__props","conditionalClasses","computed","tooltipInstances","ariaDescribedByAttr","tooltipId","generateUid","tooltipVNode","tooltip","open","tooltipProps","reactive","createTooltip","el","createApp","Tooltip","h","destroyTooltip","getTooltipPosition","binding","getTooltipInstanceForTarget","ctx","showTooltip","tooltipInstance","isDialogOpen","node","_b","_a","_d","_c","nextTick","hideTooltip","tooltipBind","show","hide","listen","evt","tooltipUpdate","position","tooltipUnbind","context","removeListener","BentoTooltipDirective"],"mappings":";;;;;;;AAOa,MAAAA,IAAA,EAAA,GAAAC,EAAA;AAGD,IAAAC,IAAA,kBAAAC,OACRA,EAAA,SAAA,UADQA,IAAAD,KAAA,CAAA,CAAA,GCCAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,QAAA,SACAA,EAAA,aAAA,aACAA,EAAA,WAAA,WACAA,EAAA,cAAA,cACAA,EAAA,aAAA,aACAA,EAAA,UAAA,UACAA,EAAA,YAAA,YACAA,EAAA,MAAA,OACAA,EAAA,OAAA,QACAA,EAAA,MAAA,OAXQA,IAAAD,KAAA,CAAA,CAAA;ACTC,MAAAE,IAAA,EAAA,GAAAL,EAAA;AAGD,IAAAM,IAAA,kBAAAJ,OACRA,EAAA,SAAA,UADQA,IAAAI,KAAA,CAAA,CAAA;ACmFR,MAAAC,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA9DA,UAAAC,IAAAC,GAmDAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,cAAAL,EAAA,MAAA,EAAA,GAAA,CAAAE,EAAA;AAAA,IACY,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;kEC/C3DI,IAAA,CAAA,GACAC,IAAA,oBACAC,IAAAC,EAAA,SAAA;AAEA,IAAAC,GAGAC,GAEAC,IAAA;AAEA,MAA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OAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAAA;AAAA,EACpB,YAAAA,GAAAM,GAAA;AAGI,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,UAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAExB;"}
1
+ {"version":3,"file":"tooltip.Nn3o8_vO.js","sources":["../../../vue2/src/directives/tooltip/tooltip.types.ts","../../../vue2/src/types/utils-events.ts","../../../vue2/src/components/internal/tooltip/tooltip.types.ts","../../../vue2/src/components/internal/tooltip/tooltip.vue","../../../vue2/src/directives/tooltip/tooltip.ts"],"sourcesContent":["import type { DirectiveBinding } from 'vue/types/options';\nimport { PopperContainerPositionBasic } from '../../components/popper-container/popper-container.types';\n\nexport interface BentoTooltipDirectiveBinding extends Readonly<DirectiveBinding> {\n readonly value: string;\n}\n\nexport const BentoTooltipPosition = { ...PopperContainerPositionBasic };\nexport type BentoTooltipPosition = PopperContainerPositionBasic;\n\nexport enum BentoTooltipState {\n HIDDEN = 'hidden',\n}\n","import type { Vue } from 'vue-demi';\n\nexport interface ListenOptions {\n capture?: boolean;\n passive?: boolean;\n once?: boolean;\n self?: boolean;\n vm?: Vue;\n onCleanup?: () => void;\n}\n\nexport enum EventKey {\n ESCAPE = 'Escape',\n ENTER = 'Enter',\n ARROW_LEFT = 'ArrowLeft',\n ARROW_UP = 'ArrowUp',\n ARROW_RIGHT = 'ArrowRight',\n ARROW_DOWN = 'ArrowDown',\n PAGE_UP = 'PageUp',\n PAGE_DOWN = 'PageDown',\n END = 'End',\n HOME = 'Home',\n TAB = 'Tab',\n}\n\n/**\n * @deprecated `Event.keyCode` is deprecated. Use `EventKey` instead\n */\nexport enum KeyCode {\n ESCAPE = 27,\n ENTER = 13,\n ARROW_LEFT = 37,\n ARROW_UP = 38,\n ARROW_RIGHT = 39,\n ARROW_DOWN = 40,\n PAGE_UP = 33,\n PAGE_DOWN = 34,\n END = 35,\n HOME = 36,\n}\n","import { PopperContainerPositionBasic } from '../../popper-container/popper-container.types';\n\nexport const BentoTooltipPosition = { ...PopperContainerPositionBasic };\nexport type BentoTooltipPosition = PopperContainerPositionBasic;\n\nexport enum BentoTooltipState {\n HIDDEN = 'hidden',\n}\n","<template>\n <popper-container\n :id=\"id\"\n :aria-role=\"PopperContainerAriaRole.TOOLTIP\"\n :arrow=\"{ classes: ['b-tooltip__arrow'] }\"\n :class=\"conditionalClasses\"\n :fallback-position=\"fallbackPosition\"\n :is-hidden=\"!isShown\"\n :offset=\"[0, 4]\"\n :position=\"position\"\n :target-element=\"targetElement\"\n :disabled-focus-trap=\"disabledFocusTrap\"\n class=\"b-tooltip\"\n >\n <bento-typography el=\"span\" variant=\"caption\">\n {{ content }}\n </bento-typography>\n </popper-container>\n</template>\n\n<script setup lang=\"ts\">\n import type {} from '@floating-ui/vue';\n import { computed, type PropType } from 'vue';\n import { BentoTooltipPosition, BentoTooltipState } from './tooltip.types';\n import { type FallbackPositionProp, PopperContainer, PopperContainerAriaRole } from '@/components/popper-container';\n import { BentoTypography } from '@/components/typography';\n import { type VueNodeElement } from '@/types/elements';\n\n const props = defineProps({\n /**\n * The tooltip's id. Necessary for accessibility purposes.\n */\n id: { type: String, default: null },\n /**\n * Tooltip's target reference to the DOM element or Vue component.\n * The tooltip will position itself relatively to target element, in the specified position.\n */\n targetElement: { type: [Element, Object] as PropType<VueNodeElement>, required: true },\n /**\n * Tooltip's position relative to the target element.\n * Possible values are: 'top', 'bottom', 'left' and 'right'.\n */\n position: {\n type: String as PropType<BentoTooltipPosition>,\n default: BentoTooltipPosition.TOP,\n validator: value => Object.values(BentoTooltipPosition).includes(value as BentoTooltipPosition),\n },\n /**\n * Tooltip's offset.\n * If specified, the tooltip will have an offset in pixels between it and the target element\n * in specified position.\n */\n offset: { type: Number, default: 0 },\n /**\n * Tooltip's text content.\n */\n content: { type: String, required: true },\n /**\n * Shows / Hides the Tooltip component\n */\n isShown: { type: Boolean, default: false },\n\n /**\n * Allows to configure to fallback position to the one specified, it could be 'auto' or ['right', 'top', ...].\n * Useful when not using auto as starting placement.\n * @see {@link https://floating-ui.com/docs/flip#fallbackplacements}\n */\n fallbackPosition: {\n type: [Array, String] as PropType<FallbackPositionProp>,\n default: () => ['top', 'bottom', 'right', 'left'],\n },\n\n /**\n * Disables focus-trap for tooltip.\n * Useful for maintaining focus on the target element.\n */\n disabledFocusTrap: { type: Boolean, default: false },\n });\n\n const conditionalClasses = computed(() => ({\n [`b-tooltip--${BentoTooltipState.HIDDEN}`]: !props.isShown,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Tooltip container, to be used internally to render the tooltip container where the text is shown.\n */\n export default {\n name: 'tooltip',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./tooltip.scss\" />\n","import { nextTick, reactive } from 'vue';\nimport { listen } from '@/utils/ts/events';\nimport { generateUid } from '@/core/utils/ts';\nimport { EventKey } from '@/types/utils-events';\nimport { BentoTooltipPosition } from './tooltip.types';\nimport { type BentoTooltipDirectiveBinding } from './tooltip.types';\nimport { createApp, h, isVue2, isVue3, Vue2 } from 'vue-demi';\nimport Tooltip from '@/internal/tooltip/tooltip.vue';\n\ninterface TooltipInstance {\n target: HTMLElement;\n content: string;\n position: BentoTooltipPosition;\n removeListeners: Array<() => void>;\n}\n\n/**\n * Tooltip directive to render a tooltip on a given HTML element or component.\n *\n * @usage\n * import { BentoTooltipDirective, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltipDirective },\n * template: `\n * <bento-button\n * v-bento-tooltip-directive:BentoTooltipPosition.BOTTOM=\"refToTextContent\"\n * >\n * Button text\n * </bento-button>\n * `,\n * }\n */\nconst tooltipInstances: Array<TooltipInstance> = [];\nconst ariaDescribedByAttr = 'aria-describedby';\nconst tooltipId = generateUid('tooltip');\n\nlet tooltipVNode;\n\n// Reusable Tooltip component instance.\nlet tooltip;\n// Global visibility state to prevent tooltips from showing after it being instructed to hide\nlet open = false;\n\nconst tooltipProps = reactive({\n targetElement: null,\n content: 'START_MESSAGE',\n id: tooltipId,\n position: undefined,\n isShown: false,\n});\n\n/**\n * Creates a new Tooltip component instance and inserts it into DOM.\n * @param {HTMLElement} el the target element for the Tooltip\n * @internal\n */\nconst createTooltip = (el: HTMLElement) => {\n // Sets the target's tabindex so as to make the tooltip interactive via keyboard navigation\n el.setAttribute('tabindex', '0');\n\n if (isVue2) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for Vue method in Vue 3 but this code only executes in vue 2 so ignoring.\n const TooltipComponent = Vue2.extend(Tooltip);\n tooltip = new TooltipComponent({ propsData: { targetElement: el, content: '', id: tooltipId } }).$mount();\n document.body.appendChild(tooltip.$el);\n } else {\n tooltipProps.targetElement = el;\n tooltip = createApp({\n components: { Tooltip },\n setup() {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for h method in Vue 2 but this code only executes in vue 3 so ignoring.\n return () => h(Tooltip, { ...tooltipProps }, '');\n },\n });\n tooltipVNode = document.createElement('div');\n tooltipVNode.id = 'tooltip-parent';\n document.body.appendChild(tooltipVNode);\n tooltip.mount('#tooltip-parent');\n }\n};\n\n/**\n * Removes Tooltip component instance from the DOM and destroys it.\n * @internal\n */\nconst destroyTooltip = () => {\n if (isVue2) {\n if (document.contains(tooltip.$el)) {\n document.body.removeChild(tooltip.$el);\n }\n tooltip.$destroy();\n } else {\n tooltip.unmount();\n if (document.contains(tooltipVNode)) {\n document.body.removeChild(tooltipVNode);\n }\n }\n\n tooltip = undefined;\n};\n\n/**\n * Returns tooltip position based on the specified argument.\n * By default returns 'top' if no argument is specified.\n * @param {BentoTooltipDirectiveBinding} binding Directive binding object.\n * @returns {string} Tooltip position.\n * @internal\n */\nconst getTooltipPosition = (binding: BentoTooltipDirectiveBinding): BentoTooltipPosition =>\n Object.values(BentoTooltipPosition).includes(binding.arg as BentoTooltipPosition)\n ? (binding.arg as BentoTooltipPosition)\n : BentoTooltipPosition.TOP;\n\n/**\n * Get the correct Tooltip instance for the given target element\n * @param {HTMLElement} el the target element for the Tooltip\n * @returns\n */\nconst getTooltipInstanceForTarget = (el: HTMLElement): TooltipInstance =>\n tooltipInstances.find(\n ctx =>\n // isEqualNode doesn't work correct for svg element, hence the second check here\n ctx.target.isEqualNode(el) && ctx.target === el\n );\n\n/**\n * On mouse enter event updates tooltip with correct content and position, and shows tooltip.\n * @param {?HTMLElement} el - Target element\n * @internal\n */\nconst showTooltip = (el?: HTMLElement) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n\n // If tooltip content is empty – do not show the tooltip\n if (!tooltipInstance.content || !el) {\n return;\n }\n\n if (el) {\n el.setAttribute(ariaDescribedByAttr, tooltipId);\n }\n\n // If the Tooltip is inside a dialog, move tooltip element inside of it\n // It gets restored to <body> when it gets hidden\n let isDialogOpen = false;\n document.querySelectorAll('dialog').forEach(node => {\n isDialogOpen = node?.open || isDialogOpen;\n });\n\n if (isDialogOpen) {\n if (isVue2) {\n el.after(tooltip.$el);\n // eslint-disable-next-line no-underscore-dangle\n } else if (tooltip?._instance?.vnode?.el) {\n // eslint-disable-next-line no-underscore-dangle\n el.after(tooltip?._instance?.vnode?.el);\n }\n isDialogOpen = false;\n }\n\n open = true;\n\n tooltip.content = tooltipInstance.content;\n tooltip.position = tooltipInstance.position;\n\n tooltipProps.content = tooltipInstance.content;\n tooltipProps.position = tooltipInstance.position;\n\n // Do calculations on a next tick, otherwise tooltip position calculations will be wrong\n nextTick(() => {\n // Do not open tooltip if it has been instructed to hide in process\n if (!open) {\n return;\n }\n tooltip.targetElement = el;\n tooltip.isShown = true;\n\n tooltipProps.targetElement = el;\n tooltipProps.isShown = true;\n });\n};\n\n/**\n * On mouse leave event hides the tooltip.\n * @internal\n */\nconst hideTooltip = (el?: HTMLElement) => {\n // Restore the tooltip element to body if it got move out of <body>\n if (tooltip.$el?.parentElement?.tagName && tooltip.$el?.parentElement?.tagName !== 'BODY') {\n document.body.appendChild(tooltip.$el);\n }\n\n open = false;\n tooltip.isShown = false;\n tooltipProps.isShown = false;\n if (el) {\n el.removeAttribute(ariaDescribedByAttr);\n }\n};\n\nconst tooltipBind = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n // eslint-disable-next-line no-prototype-builtins\n if (!binding.hasOwnProperty('value') || binding.value) {\n // Create Tooltip component singleton instance\n if (tooltipInstances.length === 0) {\n createTooltip(el);\n }\n\n const show = () => showTooltip(el);\n const hide = () => hideTooltip(el);\n\n // Create and store context object, which has directive related handlers and content.\n const tooltipInstance: TooltipInstance = {\n target: el,\n content: binding.value,\n position: getTooltipPosition(binding),\n removeListeners: [\n listen(el, 'mouseenter', show),\n listen(el, 'mouseleave', hide),\n listen(el, 'focus', () => {\n if (el.matches(':focus-visible')) {\n show();\n }\n }),\n listen(el, 'blur', evt => {\n const focusEvent = <FocusEvent>evt;\n\n // when blurred and it transitions to the tooltip via screenreader, it should not close\n if ((focusEvent.relatedTarget as Element)?.getAttribute('role') !== 'tooltip') {\n hide();\n }\n }),\n listen(el, 'keydown', evt => {\n const keyboardEvent = <KeyboardEvent>evt;\n if (keyboardEvent.key === EventKey.ESCAPE) {\n hide();\n }\n }),\n ],\n };\n\n tooltipInstances.push(tooltipInstance);\n }\n};\n\nconst tooltipUpdate = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n if (tooltipInstance) {\n // Update tooltip content value if it is changed\n if (tooltipInstance?.content !== binding.value) {\n tooltipInstance.content = binding.value;\n // If tooltip is currently shown for current element – update tooltip's content value\n if (tooltip.isShown && tooltip.targetElement.isEqualNode(el)) {\n if (!tooltipInstance.content) {\n tooltip.isShown = false;\n } else {\n tooltip.content = binding.value;\n }\n\n // This forces the tooltip to refresh and update content in Vue3\n if (isVue3) {\n hideTooltip(el);\n showTooltip(el);\n }\n }\n }\n // Update tooltip position if it is changed\n if (tooltipInstance.position !== binding.arg) {\n const position = getTooltipPosition(binding);\n tooltipInstance.position = position;\n tooltip.position = position;\n }\n } else if (!tooltipInstance && binding.value) {\n // If I don't have a tooltip instance yet but the value passed was updated\n tooltipBind(el, binding);\n }\n};\n\nconst tooltipUnbind = (el: HTMLElement) => {\n const context = getTooltipInstanceForTarget(el);\n\n // Prevent unbinding/removing when there's nothing to unbind, leads to stack overflow errors\n if (!context) {\n return;\n }\n\n context.removeListeners.forEach(removeListener => {\n removeListener();\n });\n\n // If el is removed while tooltip is displayed, the tooltip doesnt hide as\n // there is no el to trigger mouseleave/blur.\n hideTooltip();\n\n tooltipInstances.splice(tooltipInstances.indexOf(context), 1);\n\n // If all the elements using the directive are removed, then no point having\n // the component on the page.\n if (tooltipInstances.length === 0) {\n destroyTooltip();\n }\n};\n\n/**\n * This directive allows you to bind a tooltip to an element.\n * Tooltip can be configured to be shown in one of four positions: 'top', 'left', 'right' and 'bottom'.\n *\n * @example\n * import { BentoTooltipDirective as BentoTooltip, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltip },\n * methods: {\n * contentExpression() {\n * return 'tooltip content';\n * },\n * },\n * template: `<div>\n * <div v-bento-tooltip:left=\"refToTooltipContent\"></div>\n * <div v-bento-tooltip:[TooltipPosition.BOTTOM]=\"refToTooltipContent\"></div>\n *\n * <!-- If you don't specify the position then by default it's `TooltipPosition.TOP` -->\n * <div v-bento-tooltip=\"refToTooltipContent\"></div>\n *\n * <!-- Tooltip content can also be a data property or a method or a computed property as well -->\n * <div v-bento-tooltip=\"contentExpression()\"></div>\n * </div>`,\n * };\n */\nexport const BentoTooltipDirective = {\n // Vue 2 Directive hooks\n bind(el, binding) {\n tooltipBind(el, binding);\n },\n update(el, binding) {\n tooltipUpdate(el, binding);\n },\n unbind(el) {\n tooltipUnbind(el);\n },\n // Vue 3 Directive hooks\n beforeMount(el, binding) {\n tooltipBind(el, binding);\n },\n mounted(el, binding) {\n tooltipUpdate(el, binding);\n },\n updated(el, binding) {\n tooltipUpdate(el, binding);\n },\n unmounted(el) {\n tooltipUnbind(el);\n },\n};\n"],"names":["BentoTooltipPosition$1","PopperContainerPositionBasic","BentoTooltipState$1","BentoTooltipState2","EventKey","EventKey2","BentoTooltipPosition","BentoTooltipState","__default__","props","__props","conditionalClasses","computed","tooltipInstances","ariaDescribedByAttr","tooltipId","generateUid","tooltipVNode","tooltip","open","tooltipProps","reactive","createTooltip","el","createApp","Tooltip","h","destroyTooltip","getTooltipPosition","binding","getTooltipInstanceForTarget","ctx","showTooltip","tooltipInstance","isDialogOpen","node","_b","_a","_d","_c","nextTick","hideTooltip","tooltipBind","show","hide","listen","evt","tooltipUpdate","position","tooltipUnbind","context","removeListener","BentoTooltipDirective"],"mappings":";;;;;;;AAOO,MAAAA,IAAA,EAAA,GAAAC,EAAA;AAGA,IAAAC,IAAA,kBAAAC,OACHA,EAAA,SAAA,UADQA,IAAAD,KAAA,CAAA,CAAA,GCCLE,IAAA,kBAAAC,OACHA,EAAA,SAAA,UACAA,EAAA,QAAA,SACAA,EAAA,aAAA,aACAA,EAAA,WAAA,WACAA,EAAA,cAAA,cACAA,EAAA,aAAA,aACAA,EAAA,UAAA,UACAA,EAAA,YAAA,YACAA,EAAA,MAAA,OACAA,EAAA,OAAA,QACAA,EAAA,MAAA,OAXQA,IAAAD,KAAA,CAAA,CAAA;ACTL,MAAAE,IAAA,EAAA,GAAAL,EAAA;AAGA,IAAAM,IAAA,kBAAAJ,OACHA,EAAA,SAAA,UADQA,IAAAI,KAAA,CAAA,CAAA;ACmFR,MAAAC,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA9DA,UAAAC,IAAA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A,CAAA,GAIArC,EAAA,WAAA,KACIc,EAAA;AAER,GA4BOyB,KAAA;AAAA;AAAA,EAA8B,KAAA7B,GAAAM,GAAA;AAG7B,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,OAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,OAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAAA;AAAA,EACpB,YAAAA,GAAAM,GAAA;AAGI,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,UAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAExB;"}
@@ -1 +1 @@
1
- {"version":3,"file":"truncate.BfIl_-71.js","sources":["../../../vue2/src/utils/ts/truncate.ts"],"sourcesContent":["/**\n * Trunctes a string if it goes over a certain character limit.\n * @param aString the string or number to truncate.\n * @param characterLimit the character limit to start truncating at.\n * @returns a string that is truncated if it's length is over the limit.\n */\nexport const truncate = (aStringOrNumber: string | number, characterLimit: number) => {\n const aString = aStringOrNumber?.toString();\n return aString?.length > characterLimit ? `${aString?.slice(0, characterLimit)}...` : aString;\n};\n"],"names":["truncate","aStringOrNumber","characterLimit","aString"],"mappings":"AAMa,MAAAA,IAAW,CAACC,GAAkCC,MAA2B;AAC5E,QAAAC,IAAUF,KAAA,gBAAAA,EAAiB;AAC1B,UAAAE,KAAA,gBAAAA,EAAS,UAASD,IAAiB,GAAGC,KAAA,gBAAAA,EAAS,MAAM,GAAGD,EAAe,QAAQC;AAC1F;"}
1
+ {"version":3,"file":"truncate.BfIl_-71.js","sources":["../../../vue2/src/utils/ts/truncate.ts"],"sourcesContent":["/**\n * Trunctes a string if it goes over a certain character limit.\n * @param aString the string or number to truncate.\n * @param characterLimit the character limit to start truncating at.\n * @returns a string that is truncated if it's length is over the limit.\n */\nexport const truncate = (aStringOrNumber: string | number, characterLimit: number) => {\n const aString = aStringOrNumber?.toString();\n return aString?.length > characterLimit ? `${aString?.slice(0, characterLimit)}...` : aString;\n};\n"],"names":["truncate","aStringOrNumber","characterLimit","aString"],"mappings":"AAMO,MAAMA,IAAW,CAACC,GAAkCC,MAA2B;AAClF,QAAMC,IAAUF,KAAA,gBAAAA,EAAiB;AACjC,UAAOE,KAAA,gBAAAA,EAAS,UAASD,IAAiB,GAAGC,KAAA,gBAAAA,EAAS,MAAM,GAAGD,EAAe,QAAQC;AAC1F;"}
@@ -1,7 +1,7 @@
1
- import { defineComponent as P, ref as k, createBlock as T, openBlock as c, unref as p, withCtx as v, createElementVNode as d, normalizeStyle as z, createElementBlock as S, mergeProps as R, createCommentVNode as C, toDisplayString as B, computed as l, isRef as H, watch as E, nextTick as U, createVNode as b, withKeys as J, createSlots as W, createTextVNode as w, renderSlot as X, Fragment as G, renderList as Q } from "vue";
2
- import { h as Y, f as tt, B as et } from "./button-actions.CbEoQYUV.js";
1
+ import { defineComponent as P, ref as k, createBlock as S, openBlock as c, unref as p, withCtx as v, createElementVNode as d, normalizeStyle as z, createElementBlock as O, mergeProps as R, createCommentVNode as T, toDisplayString as B, computed as l, isRef as H, watch as E, nextTick as U, createVNode as b, withKeys as J, createSlots as W, createTextVNode as w, renderSlot as X, Fragment as G, renderList as Q } from "vue";
2
+ import { h as Y, f as tt, B as et } from "./button-actions.O0cnu1_g.js";
3
3
  import { B as V } from "./popover.types.DgfeurkF.js";
4
- import { B as I } from "./typography.yBEME_Gu.js";
4
+ import { B as I } from "./typography.6Oo5TOMP.js";
5
5
  import { _ as ot } from "./image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js";
6
6
  import { u as it } from "./index.pdBj0KQU.js";
7
7
  import { R as at } from "./refresh.BB4ouvz_.js";
@@ -9,7 +9,7 @@ import { R as at } from "./refresh.BB4ouvz_.js";
9
9
  import { _ as A } from "./_plugin-vue_export-helper.CHgC5LLL.js";
10
10
  import { P as j, h as nt, o as st } from "./popper-container.I9gzp1NR.js";
11
11
  import "../assets/tutorial.css";
12
- const $ = 2;
12
+ const C = 2;
13
13
  var L;
14
14
  const lt = /* @__PURE__ */ P({
15
15
  __name: "tutorial-indicator",
@@ -32,7 +32,7 @@ const lt = /* @__PURE__ */ P({
32
32
  function f(e) {
33
33
  try {
34
34
  const i = parseFloat(getComputedStyle(e).getPropertyValue("border-radius"));
35
- return Number.isNaN(i) ? "" : `${i + 2 * $}px`;
35
+ return Number.isNaN(i) ? "" : `${i + 2 * C}px`;
36
36
  } catch {
37
37
  return "";
38
38
  }
@@ -40,18 +40,18 @@ const lt = /* @__PURE__ */ P({
40
40
  const o = [
41
41
  nt(),
42
42
  st({
43
- mainAxis: $,
44
- alignmentAxis: -2
43
+ mainAxis: C,
44
+ alignmentAxis: -C
45
45
  }),
46
46
  {
47
47
  name: "updateIndicatorSize",
48
48
  fn: ({ x: e, y: i, elements: _ }) => {
49
49
  const m = _.reference;
50
- return n.value.width = `${m.offsetWidth + 4 * $}px`, n.value.height = `${m.offsetHeight + 4 * $}px`, n.value.borderRadius = f(m), { x: e, y: i };
50
+ return n.value.width = `${m.offsetWidth + 4 * C}px`, n.value.height = `${m.offsetHeight + 4 * C}px`, n.value.borderRadius = f(m), { x: e, y: i };
51
51
  }
52
52
  }
53
53
  ];
54
- return (e, i) => (c(), T(p(j), {
54
+ return (e, i) => (c(), S(p(j), {
55
55
  "target-element": t.targetElement,
56
56
  middleware: o,
57
57
  position: "top-start",
@@ -77,14 +77,14 @@ const ut = {
77
77
  }
78
78
  }, pt = { key: 0 }, dt = ["clip-path"], ct = ["id"];
79
79
  function ft(t, n, f, o, e, i) {
80
- return c(), S("svg", R({ role: "img" }, t.$attrs, {
80
+ return c(), O("svg", R({ role: "img" }, t.$attrs, {
81
81
  class: "ui-assets-icons-16",
82
82
  xmlns: "http://www.w3.org/2000/svg",
83
83
  width: "16",
84
84
  height: "16",
85
85
  fill: "none"
86
86
  }), [
87
- t.$attrs["svg-title"] ? (c(), S("title", pt, B(t.$attrs["svg-title"]), 1)) : C("", !0),
87
+ t.$attrs["svg-title"] ? (c(), O("title", pt, B(t.$attrs["svg-title"]), 1)) : T("", !0),
88
88
  d("g", {
89
89
  "clip-path": "url(#uia-ui-assets/icons-16-blocked__a" + t.uuid + ")"
90
90
  }, n[0] || (n[0] = [
@@ -237,10 +237,10 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
237
237
  })), h = l(() => ({
238
238
  title: e("ok"),
239
239
  event: () => i("finish")
240
- })), O = k(!1), y = k(!1), g = l(() => {
240
+ })), x = k(!1), y = k(!1), g = l(() => {
241
241
  var s;
242
242
  return H(o.targetElement) ? ((s = o.targetElement.value) == null ? void 0 : s.$el) || o.targetElement.value : o.targetElement.$el || o.targetElement;
243
- }), x = l(() => o.step === 0), F = l(() => o.step === o.totalSteps), q = l(() => !x.value), D = l(() => [
243
+ }), $ = l(() => o.step === 0), F = l(() => o.step === o.totalSteps), q = l(() => !$.value), D = l(() => [
244
244
  {
245
245
  text: e("restartTour"),
246
246
  handler: () => i("restart"),
@@ -255,9 +255,9 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
255
255
  ]
256
256
  ]), Z = l(() => {
257
257
  let s;
258
- x.value ? s = o.single ? h.value : m.value : F.value ? s = r.value : s = a.value;
258
+ $.value ? s = o.single ? h.value : m.value : F.value ? s = r.value : s = a.value;
259
259
  const u = [s];
260
- return x.value && !o.single ? u.push(_.value) : o.action && u.push(o.action), u;
260
+ return $.value && !o.single ? u.push(_.value) : o.action && u.push(o.action), u;
261
261
  });
262
262
  return E(
263
263
  () => o.active,
@@ -265,18 +265,18 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
265
265
  var u, N;
266
266
  s && ((u = g.value) != null && u.scrollIntoView) && ((N = g.value) == null || N.scrollIntoView(
267
267
  o.scrollOptions != null ? o.scrollOptions : f
268
- ), await U()), O.value = s, y.value = s;
268
+ ), await U()), x.value = s, y.value = s;
269
269
  },
270
270
  { immediate: !0 }
271
- ), (s, u) => t.active && g.value ? (c(), S("div", vt, [
272
- y.value && g.value ? (c(), T(p(rt), {
271
+ ), (s, u) => t.active && g.value ? (c(), O("div", vt, [
272
+ y.value && g.value ? (c(), S(p(rt), {
273
273
  key: 0,
274
274
  "target-element": g.value
275
- }, null, 8, ["target-element"])) : C("", !0),
275
+ }, null, 8, ["target-element"])) : T("", !0),
276
276
  b(p(Y), {
277
277
  "target-element": g.value,
278
278
  position: t.position,
279
- open: O.value,
279
+ open: x.value,
280
280
  "aria-label": t.title,
281
281
  "fixed-positioning": "",
282
282
  class: "b-tutorial-popover",
@@ -297,7 +297,7 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
297
297
  ]),
298
298
  _: 1
299
299
  }),
300
- q.value ? (c(), T(p(I), {
300
+ q.value ? (c(), S(p(I), {
301
301
  key: 0,
302
302
  el: "span",
303
303
  class: "b-tutorial-popover__steps"
@@ -306,7 +306,7 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
306
306
  w(B(p(e)("stepsOfTotal", { step: t.step, totalSteps: t.totalSteps })), 1)
307
307
  ]),
308
308
  _: 1
309
- })) : C("", !0)
309
+ })) : T("", !0)
310
310
  ]),
311
311
  b(p(I), null, {
312
312
  default: v(() => [
@@ -315,7 +315,7 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
315
315
  _: 3
316
316
  }),
317
317
  d("div", _t, [
318
- x.value ? C("", !0) : (c(), T(p(tt), {
318
+ $.value ? T("", !0) : (c(), S(p(tt), {
319
319
  key: 0,
320
320
  data: D.value,
321
321
  class: "b-tutorial-popover__menu",
@@ -342,7 +342,7 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
342
342
  key: "0"
343
343
  } : void 0
344
344
  ]), 1032, ["target-element", "position", "open", "aria-label"])
345
- ])) : C("", !0);
345
+ ])) : T("", !0);
346
346
  }
347
347
  }), Ct = /* @__PURE__ */ A(bt, [["__scopeId", "data-v-27309751"]]), Tt = { class: "b-tutorial" }, St = {}, Rt = /* @__PURE__ */ P({
348
348
  ...St,
@@ -400,8 +400,8 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
400
400
  (a) => {
401
401
  a >= -1 && a <= i.value && (e.value = a);
402
402
  }
403
- ), (a, r) => (c(), S("div", Tt, [
404
- (c(!0), S(G, null, Q(t.steps, (h, O) => (c(), T(p(Ct), R({ ref_for: !0 }, m(h, O), {
403
+ ), (a, r) => (c(), O("div", Tt, [
404
+ (c(!0), O(G, null, Q(t.steps, (h, x) => (c(), S(p(Ct), R({ ref_for: !0 }, m(h, x), {
405
405
  key: h.title,
406
406
  onFinish: r[0] || (r[0] = (y) => e.value = -1),
407
407
  onNext: r[1] || (r[1] = (y) => e.value += 1),
@@ -418,4 +418,4 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
418
418
  export {
419
419
  Rt as _
420
420
  };
421
- //# sourceMappingURL=tutorial.vue_vue_type_script_setup_true_lang.CyO3qbAU.js.map
421
+ //# sourceMappingURL=tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tutorial.vue_vue_type_script_setup_true_lang.CyO3qbAU.js","sources":["../../../vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue","../../../ui-assets/icons-16/dist/vue/blocked.vue","../../../vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue","../../../vue2/src/components/tutorial/tutorial.vue"],"sourcesContent":["<template>\n <popper-container\n :target-element=\"targetElement\"\n :middleware=\"middleware\"\n position=\"top-start\"\n fixed-positioning\n disabled-focus-trap\n class=\"b-tutorial-indicator\"\n data-testid=\"tutorial-indicator\"\n >\n <div class=\"b-tutorial-indicator__highlight\" :style=\"computedStyles\"></div>\n </popper-container>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { hide, type Middleware, offset } from '@floating-ui/vue';\n import { PopperContainer } from '@/components/popper-container';\n\n const BORDER_OFFSET = 2;\n\n defineProps({\n /**\n * Tutorial indicator's target element.\n * The indicator will position itself around the target element.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n });\n\n const computedStyles = ref({\n width: '0',\n height: '0',\n borderRadius: '0',\n });\n\n function getBorderRadius(element: HTMLElement) {\n try {\n const radius = parseFloat(getComputedStyle(element).getPropertyValue('border-radius'));\n return Number.isNaN(radius) ? '' : `${radius + 2 * BORDER_OFFSET}px`;\n } catch {\n return '';\n }\n }\n\n const middleware = [\n hide(),\n offset({\n mainAxis: BORDER_OFFSET,\n alignmentAxis: -BORDER_OFFSET,\n }),\n {\n name: 'updateIndicatorSize',\n fn: ({ x, y, elements }) => {\n const target = elements.reference as HTMLElement;\n computedStyles.value.width = `${target.offsetWidth + 4 * BORDER_OFFSET}px`;\n computedStyles.value.height = `${target.offsetHeight + 4 * BORDER_OFFSET}px`;\n computedStyles.value.borderRadius = getBorderRadius(target);\n return { x, y };\n },\n } as Middleware,\n ];\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-indicator.scss\" />\n","\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 :clip-path=\"'url(#uia-ui-assets/icons-16-blocked__a' + uuid + ')'\"><path fill=\"#001222\" d=\"M9.51195 0.398918C8.00859 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.5555 10.9198 13.2667 11.4124 12.9177 11.8573L4.14271 3.0823C4.58761 2.73333 5.08018 2.44448 5.60823 2.22576ZM3.08208 4.14298L11.857 12.9179C11.7327 13.0154 11.6044 13.1085 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.52769C2.89155 4.39564 2.98456 4.26733 3.08208 4.14298Z\"/></g><defs><clipPath :id=\"'uia-ui-assets/icons-16-blocked__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","<template>\n <div v-if=\"active && targetElement\">\n <tutorial-indicator v-if=\"isIndicatorVisible && targetElement\" :target-element=\"targetElement\" />\n\n <bento-popover\n :target-element=\"targetElement\"\n :position=\"position\"\n :open=\"isPopoverOpen\"\n :aria-label=\"title\"\n fixed-positioning\n class=\"b-tutorial-popover\"\n @keydown.esc.native=\"emit('finish')\"\n >\n <template v-if=\"image\" #image>\n <bento-image v-bind=\"image\" aspect-ratio=\"landscape\" class=\"b-tutorial-popover__image\" />\n </template>\n\n <div aria-hidden=\"true\" class=\"b-tutorial-popover__ripple\"></div>\n\n <div class=\"b-tutorial-popover__header\">\n <bento-typography variant=\"title\" el=\"span\"> {{ title }} </bento-typography>\n\n <bento-typography v-if=\"showSteps\" el=\"span\" class=\"b-tutorial-popover__steps\">\n {{ t('stepsOfTotal', { step, totalSteps }) }}\n </bento-typography>\n </div>\n\n <bento-typography>\n <slot />\n </bento-typography>\n\n <div class=\"b-tutorial-popover__footer\">\n <bento-menu\n v-if=\"!isFirstStep\"\n :data=\"menuData\"\n class=\"b-tutorial-popover__menu\"\n data-testid=\"menu-button\"\n />\n <div class=\"b-tutorial-popover__actions\">\n <bento-button-actions :actions=\"computedActions\" layout=\"buttons-end\" />\n </div>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, isRef, nextTick, type PropType, ref, type default as Vue, watch } from 'vue';\n import { BentoMenu } from '@/components/menu';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { type BentoButtonActionObject, BentoButtonActions } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { TutorialIndicator } from './components/tutorial-indicator';\n import { useI18n } from '@/utils/ts/i18n';\n import type { BentoMenuItem } from '@/components/menu/components';\n import type { VueNodeElement } from '@/types/elements';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from '../../tutorial.types';\n import RefreshIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import BlockedIcon from '@adyen/ui-assets-icons-16/vue/blocked';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_SCROLL_OPTIONS: BentoTutorialScrollOptions = { behavior: 'smooth' };\n\n const props = defineProps({\n /**\n * Optional configuration for the secondary action.\n * In tour tutorials, this is ignored for the introductory step.\n */\n action: {\n type: Object as PropType<BentoButtonActionObject>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is the active step (and should be visible).\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Optional illustration to display at the top of the popover.\n */\n image: {\n type: Object as PropType<BentoTutorialStep['image']>,\n default: null,\n },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<`${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is a single tutorial or a tour.\n */\n single: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The tutorial step number.\n * In tour tutorials, `0` is the introductory step, and is displayed next\n * to the title.\n */\n step: {\n type: Number,\n default: null,\n },\n\n /**\n * Tutorial popover's target element.\n * The popover will position itself relatively to target element.\n */\n targetElement: {\n type: [Element, Object] as PropType<VueNodeElement>,\n required: true,\n },\n\n /**\n * The tutorial step title.\n */\n title: {\n type: String,\n required: true,\n },\n\n /**\n * Total count of steps.\n * In tour tutorials, this does not include the introductory step, and is\n * displayed next to the title.\n */\n totalSteps: {\n type: Number,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const emit = defineEmits<{\n /**\n * Emitted when the user clicks the primary action in popovers during introductory or intermediate steps of tour tutorials\n */\n (e: 'next'): void;\n\n /**\n * Emitted when the user clicks the primary action in a single tutorial, the last step of a tour, or skips the tutorial\n */\n (e: 'finish'): void;\n\n /**\n * Emitted when the user selects the restart tour option\n */\n (e: 'restart'): void;\n }>();\n\n const ACTION_SKIP = computed<BentoButtonActionObject>(() => ({\n title: t('skipTour') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_START = computed<BentoButtonActionObject>(() => ({\n title: t('startTour') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_NEXT = computed<BentoButtonActionObject>(() => ({\n title: t('next') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_FINISH = computed<BentoButtonActionObject>(() => ({\n title: t('finish') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_OK = computed<BentoButtonActionObject>(() => ({\n title: t('ok') as string,\n event: () => emit('finish'),\n }));\n\n const isPopoverOpen = ref(false);\n const isIndicatorVisible = ref(false);\n\n const targetElement = computed(() => {\n if (isRef(props.targetElement)) {\n return ((props.targetElement.value as Vue)?.$el || props.targetElement.value) as HTMLElement;\n }\n return ((props.targetElement as Vue).$el || props.targetElement) as HTMLElement;\n });\n\n const isFirstStep = computed(() => props.step === 0);\n const isLastStep = computed(() => props.step === props.totalSteps);\n\n const showSteps = computed(() => !isFirstStep.value);\n\n const menuData = computed<Array<BentoMenuItem>>(() => [\n {\n text: t('restartTour'),\n handler: () => emit('restart'),\n icon: RefreshIcon,\n },\n ...(isLastStep.value\n ? []\n : [\n {\n text: t('skipTour'),\n handler: () => emit('finish'),\n icon: BlockedIcon,\n },\n ]),\n ]);\n\n const computedActions = computed(() => {\n let primaryAction: BentoButtonActionObject;\n if (isFirstStep.value) {\n primaryAction = props.single ? ACTION_OK.value : ACTION_START.value;\n } else if (isLastStep.value) {\n primaryAction = ACTION_FINISH.value;\n } else {\n primaryAction = ACTION_NEXT.value;\n }\n\n const actions = [primaryAction];\n if (isFirstStep.value && !props.single) {\n actions.push(ACTION_SKIP.value);\n } else if (props.action) {\n actions.push(props.action);\n }\n\n return actions;\n });\n\n watch(\n () => props.active,\n async isActive => {\n if (isActive && targetElement.value?.scrollIntoView) {\n targetElement.value?.scrollIntoView(\n props.scrollOptions != null ? props.scrollOptions : DEFAULT_SCROLL_OPTIONS\n );\n\n // Skip to next tick to preserve popover appear animation\n await nextTick();\n }\n\n isPopoverOpen.value = isActive;\n isIndicatorVisible.value = isActive;\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-popover.scss\" />\n","<template>\n <div class=\"b-tutorial\">\n <tutorial-popover\n v-for=\"(step, i) in steps\"\n v-bind=\"getPopoverProps(step, i)\"\n :key=\"step.title\"\n @finish=\"currentStep = -1\"\n @next=\"currentStep += 1\"\n @restart=\"currentStep = 0\"\n >\n {{ step.description }}\n </tutorial-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType, ref, watch } from 'vue';\n import { TutorialPopover } from './components/tutorial-popover';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from './tutorial.types';\n\n const props = defineProps({\n /**\n * The current step index. If provided, will start the tutorial in that step.\n */\n index: {\n type: Number,\n default: null,\n },\n\n /**\n * The steps configuration for the tutorial.\n *\n */\n steps: {\n type: Array as PropType<Array<BentoTutorialStep>>,\n required: true,\n validator: (value: Array<BentoTutorialStep>) => value.length > 0,\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Fired every time the step index is changed. `-1` value means the tutorial is finished/skipped.\n */\n (e: 'update:index', value: number);\n }>();\n\n const currentStep = ref(props.index || 0);\n\n const totalSteps = computed(() => props.steps.length - 1);\n const isSingleTutorial = computed(() => totalSteps.value === 0);\n\n function getPopoverProps(step: BentoTutorialStep, index: number) {\n return {\n // Visual\n targetElement: step.target,\n image: step.image,\n title: step.title,\n step: index,\n totalSteps: totalSteps.value,\n action: step.action,\n scrollOptions: props.scrollOptions,\n\n // Config\n active: index === currentStep.value,\n single: isSingleTutorial.value,\n position: step.position,\n };\n }\n\n watch(currentStep, step => {\n emit('update:index', step);\n });\n\n watch(\n () => props.index,\n value => {\n if (value >= -1 && value <= totalSteps.value) {\n currentStep.value = value;\n }\n }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * The Tutorial is a temporary popover that should be used to educate users about\n * new or unfamiliar features or experiences.\n *\n * You can use single tutorial or chain them into a tour.\n *\n * Only use this component for new features/experiences that are not obvious and\n * self-explanatory on their own.\n *\n * @example\n * import { BentoTutorial } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTutorial },\n * template: `\n * <bento-tutorial\n * :steps=\"[\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * image: { src: imageSource, alt: 'Alt text' }\n * },\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * action: { title: 'Action label', event: () => {} }\n * },\n * ]\"\n * />\n * `\n * }\n */\n export default {};\n</script>\n"],"names":["BORDER_OFFSET","computedStyles","ref","getBorderRadius","element","radius","middleware","hide","offset","x","y","elements","target","uuid","_hoisted_2$1","_hoisted_3$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","__default__$1","messages","DEFAULT_SCROLL_OPTIONS","props","__props","t","useI18n","emit","__emit","ACTION_SKIP","computed","ACTION_START","ACTION_NEXT","ACTION_FINISH","ACTION_OK","isPopoverOpen","isIndicatorVisible","targetElement","isRef","_a","isFirstStep","isLastStep","showSteps","menuData","RefreshIcon","BlockedIcon","computedActions","primaryAction","actions","watch","isActive","_b","nextTick","__default__","currentStep","totalSteps","isSingleTutorial","getPopoverProps","step","index","value"],"mappings":";;;;;;;;;;;AAmBI,MAAAA,IAAA;;;;;;;;;;;;;;;AAaA,UAAAC,IAAAC,EAAA;AAAA,MAA2B,OAAA;AAAA,MAChB,QAAA;AAAA,MACC,cAAA;AAAA,IACM,CAAA;AAGlB,aAAAC,EAAAC,GAAA;AACI,UAAA;AACI,cAAAC,IAAA,WAAA,iBAAAD,CAAA,EAAA,iBAAA,eAAA,CAAA;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,EAAA,SAAA,CAAA,GAEAgC,IAAAzB,EAAA,MAAAP,EAAA,MAAA,SAAA,CAAA,GACAiC,IAAA1B,EAAA,MAAAyB,EAAA,UAAA,CAAA;AAEA,aAAAE,EAAAC,GAAAC,GAAA;AACI,aAAA;AAAA;AAAA,QAAO,eAAAD,EAAA;AAAA,QAEiB,OAAAA,EAAA;AAAA,QACR,OAAAA,EAAA;AAAA,QACA,MAAAC;AAAA,QACN,YAAAJ,EAAA;AAAA,QACiB,QAAAG,EAAA;AAAA,QACV,eAAAnC,EAAA;AAAA;AAAA,QACQ,QAAAoC,MAAAL,EAAA;AAAA,QAGS,QAAAE,EAAA;AAAA,QACL,UAAAE,EAAA;AAAA,MACV;AAAA,IACnB;AAGJ,WAAAT,EAAAK,GAAA,CAAAI,MAAA;AACI,MAAA/B,EAAA,gBAAA+B,CAAA;AAAA,IAAyB,CAAA,GAG7BT;AAAA,MAAA,MAAA1B,EAAA;AAAA,MACgB,CAAAqC,MAAA;AAER,QAAAA,KAAA,MAAAA,KAAAL,EAAA,UACID,EAAA,QAAAM;AAAA,MACJ;AAAA,IACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js","sources":["../../../vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue","../../../ui-assets/icons-16/dist/vue/blocked.vue","../../../vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue","../../../vue2/src/components/tutorial/tutorial.vue"],"sourcesContent":["<template>\n <popper-container\n :target-element=\"targetElement\"\n :middleware=\"middleware\"\n position=\"top-start\"\n fixed-positioning\n disabled-focus-trap\n class=\"b-tutorial-indicator\"\n data-testid=\"tutorial-indicator\"\n >\n <div class=\"b-tutorial-indicator__highlight\" :style=\"computedStyles\"></div>\n </popper-container>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { hide, type Middleware, offset } from '@floating-ui/vue';\n import { PopperContainer } from '@/components/popper-container';\n\n const BORDER_OFFSET = 2;\n\n defineProps({\n /**\n * Tutorial indicator's target element.\n * The indicator will position itself around the target element.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n });\n\n const computedStyles = ref({\n width: '0',\n height: '0',\n borderRadius: '0',\n });\n\n function getBorderRadius(element: HTMLElement) {\n try {\n const radius = parseFloat(getComputedStyle(element).getPropertyValue('border-radius'));\n return Number.isNaN(radius) ? '' : `${radius + 2 * BORDER_OFFSET}px`;\n } catch {\n return '';\n }\n }\n\n const middleware = [\n hide(),\n offset({\n mainAxis: BORDER_OFFSET,\n alignmentAxis: -BORDER_OFFSET,\n }),\n {\n name: 'updateIndicatorSize',\n fn: ({ x, y, elements }) => {\n const target = elements.reference as HTMLElement;\n computedStyles.value.width = `${target.offsetWidth + 4 * BORDER_OFFSET}px`;\n computedStyles.value.height = `${target.offsetHeight + 4 * BORDER_OFFSET}px`;\n computedStyles.value.borderRadius = getBorderRadius(target);\n return { x, y };\n },\n } as Middleware,\n ];\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-indicator.scss\" />\n","\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 :clip-path=\"'url(#uia-ui-assets/icons-16-blocked__a' + uuid + ')'\"><path fill=\"#001222\" d=\"M9.51195 0.398918C8.00859 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.5555 10.9198 13.2667 11.4124 12.9177 11.8573L4.14271 3.0823C4.58761 2.73333 5.08018 2.44448 5.60823 2.22576ZM3.08208 4.14298L11.857 12.9179C11.7327 13.0154 11.6044 13.1085 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.52769C2.89155 4.39564 2.98456 4.26733 3.08208 4.14298Z\"/></g><defs><clipPath :id=\"'uia-ui-assets/icons-16-blocked__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","<template>\n <div v-if=\"active && targetElement\">\n <tutorial-indicator v-if=\"isIndicatorVisible && targetElement\" :target-element=\"targetElement\" />\n\n <bento-popover\n :target-element=\"targetElement\"\n :position=\"position\"\n :open=\"isPopoverOpen\"\n :aria-label=\"title\"\n fixed-positioning\n class=\"b-tutorial-popover\"\n @keydown.esc.native=\"emit('finish')\"\n >\n <template v-if=\"image\" #image>\n <bento-image v-bind=\"image\" aspect-ratio=\"landscape\" class=\"b-tutorial-popover__image\" />\n </template>\n\n <div aria-hidden=\"true\" class=\"b-tutorial-popover__ripple\"></div>\n\n <div class=\"b-tutorial-popover__header\">\n <bento-typography variant=\"title\" el=\"span\"> {{ title }} </bento-typography>\n\n <bento-typography v-if=\"showSteps\" el=\"span\" class=\"b-tutorial-popover__steps\">\n {{ t('stepsOfTotal', { step, totalSteps }) }}\n </bento-typography>\n </div>\n\n <bento-typography>\n <slot />\n </bento-typography>\n\n <div class=\"b-tutorial-popover__footer\">\n <bento-menu\n v-if=\"!isFirstStep\"\n :data=\"menuData\"\n class=\"b-tutorial-popover__menu\"\n data-testid=\"menu-button\"\n />\n <div class=\"b-tutorial-popover__actions\">\n <bento-button-actions :actions=\"computedActions\" layout=\"buttons-end\" />\n </div>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, isRef, nextTick, type PropType, ref, type default as Vue, watch } from 'vue';\n import { BentoMenu } from '@/components/menu';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { type BentoButtonActionObject, BentoButtonActions } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { TutorialIndicator } from './components/tutorial-indicator';\n import { useI18n } from '@/utils/ts/i18n';\n import type { BentoMenuItem } from '@/components/menu/components';\n import type { VueNodeElement } from '@/types/elements';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from '../../tutorial.types';\n import RefreshIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import BlockedIcon from '@adyen/ui-assets-icons-16/vue/blocked';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_SCROLL_OPTIONS: BentoTutorialScrollOptions = { behavior: 'smooth' };\n\n const props = defineProps({\n /**\n * Optional configuration for the secondary action.\n * In tour tutorials, this is ignored for the introductory step.\n */\n action: {\n type: Object as PropType<BentoButtonActionObject>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is the active step (and should be visible).\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Optional illustration to display at the top of the popover.\n */\n image: {\n type: Object as PropType<BentoTutorialStep['image']>,\n default: null,\n },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<`${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is a single tutorial or a tour.\n */\n single: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The tutorial step number.\n * In tour tutorials, `0` is the introductory step, and is displayed next\n * to the title.\n */\n step: {\n type: Number,\n default: null,\n },\n\n /**\n * Tutorial popover's target element.\n * The popover will position itself relatively to target element.\n */\n targetElement: {\n type: [Element, Object] as PropType<VueNodeElement>,\n required: true,\n },\n\n /**\n * The tutorial step title.\n */\n title: {\n type: String,\n required: true,\n },\n\n /**\n * Total count of steps.\n * In tour tutorials, this does not include the introductory step, and is\n * displayed next to the title.\n */\n totalSteps: {\n type: Number,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const emit = defineEmits<{\n /**\n * Emitted when the user clicks the primary action in popovers during introductory or intermediate steps of tour tutorials\n */\n (e: 'next'): void;\n\n /**\n * Emitted when the user clicks the primary action in a single tutorial, the last step of a tour, or skips the tutorial\n */\n (e: 'finish'): void;\n\n /**\n * Emitted when the user selects the restart tour option\n */\n (e: 'restart'): void;\n }>();\n\n const ACTION_SKIP = computed<BentoButtonActionObject>(() => ({\n title: t('skipTour') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_START = computed<BentoButtonActionObject>(() => ({\n title: t('startTour') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_NEXT = computed<BentoButtonActionObject>(() => ({\n title: t('next') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_FINISH = computed<BentoButtonActionObject>(() => ({\n title: t('finish') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_OK = computed<BentoButtonActionObject>(() => ({\n title: t('ok') as string,\n event: () => emit('finish'),\n }));\n\n const isPopoverOpen = ref(false);\n const isIndicatorVisible = ref(false);\n\n const targetElement = computed(() => {\n if (isRef(props.targetElement)) {\n return ((props.targetElement.value as Vue)?.$el || props.targetElement.value) as HTMLElement;\n }\n return ((props.targetElement as Vue).$el || props.targetElement) as HTMLElement;\n });\n\n const isFirstStep = computed(() => props.step === 0);\n const isLastStep = computed(() => props.step === props.totalSteps);\n\n const showSteps = computed(() => !isFirstStep.value);\n\n const menuData = computed<Array<BentoMenuItem>>(() => [\n {\n text: t('restartTour'),\n handler: () => emit('restart'),\n icon: RefreshIcon,\n },\n ...(isLastStep.value\n ? []\n : [\n {\n text: t('skipTour'),\n handler: () => emit('finish'),\n icon: BlockedIcon,\n },\n ]),\n ]);\n\n const computedActions = computed(() => {\n let primaryAction: BentoButtonActionObject;\n if (isFirstStep.value) {\n primaryAction = props.single ? ACTION_OK.value : ACTION_START.value;\n } else if (isLastStep.value) {\n primaryAction = ACTION_FINISH.value;\n } else {\n primaryAction = ACTION_NEXT.value;\n }\n\n const actions = [primaryAction];\n if (isFirstStep.value && !props.single) {\n actions.push(ACTION_SKIP.value);\n } else if (props.action) {\n actions.push(props.action);\n }\n\n return actions;\n });\n\n watch(\n () => props.active,\n async isActive => {\n if (isActive && targetElement.value?.scrollIntoView) {\n targetElement.value?.scrollIntoView(\n props.scrollOptions != null ? props.scrollOptions : DEFAULT_SCROLL_OPTIONS\n );\n\n // Skip to next tick to preserve popover appear animation\n await nextTick();\n }\n\n isPopoverOpen.value = isActive;\n isIndicatorVisible.value = isActive;\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-popover.scss\" />\n","<template>\n <div class=\"b-tutorial\">\n <tutorial-popover\n v-for=\"(step, i) in steps\"\n v-bind=\"getPopoverProps(step, i)\"\n :key=\"step.title\"\n @finish=\"currentStep = -1\"\n @next=\"currentStep += 1\"\n @restart=\"currentStep = 0\"\n >\n {{ step.description }}\n </tutorial-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType, ref, watch } from 'vue';\n import { TutorialPopover } from './components/tutorial-popover';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from './tutorial.types';\n\n const props = defineProps({\n /**\n * The current step index. If provided, will start the tutorial in that step.\n */\n index: {\n type: Number,\n default: null,\n },\n\n /**\n * The steps configuration for the tutorial.\n *\n */\n steps: {\n type: Array as PropType<Array<BentoTutorialStep>>,\n required: true,\n validator: (value: Array<BentoTutorialStep>) => value.length > 0,\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Fired every time the step index is changed. `-1` value means the tutorial is finished/skipped.\n */\n (e: 'update:index', value: number);\n }>();\n\n const currentStep = ref(props.index || 0);\n\n const totalSteps = computed(() => props.steps.length - 1);\n const isSingleTutorial = computed(() => totalSteps.value === 0);\n\n function getPopoverProps(step: BentoTutorialStep, index: number) {\n return {\n // Visual\n targetElement: step.target,\n image: step.image,\n title: step.title,\n step: index,\n totalSteps: totalSteps.value,\n action: step.action,\n scrollOptions: props.scrollOptions,\n\n // Config\n active: index === currentStep.value,\n single: isSingleTutorial.value,\n position: step.position,\n };\n }\n\n watch(currentStep, step => {\n emit('update:index', step);\n });\n\n watch(\n () => props.index,\n value => {\n if (value >= -1 && value <= totalSteps.value) {\n currentStep.value = value;\n }\n }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * The Tutorial is a temporary popover that should be used to educate users about\n * new or unfamiliar features or experiences.\n *\n * You can use single tutorial or chain them into a tour.\n *\n * Only use this component for new features/experiences that are not obvious and\n * self-explanatory on their own.\n *\n * @example\n * import { BentoTutorial } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTutorial },\n * template: `\n * <bento-tutorial\n * :steps=\"[\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * image: { src: imageSource, alt: 'Alt text' }\n * },\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * action: { title: 'Action label', event: () => {} }\n * },\n * ]\"\n * />\n * `\n * }\n */\n export default {};\n</script>\n"],"names":["BORDER_OFFSET","computedStyles","ref","getBorderRadius","element","radius","middleware","hide","offset","x","y","elements","target","uuid","_hoisted_2$1","_hoisted_3$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","__default__$1","messages","DEFAULT_SCROLL_OPTIONS","props","__props","t","useI18n","emit","__emit","ACTION_SKIP","computed","ACTION_START","ACTION_NEXT","ACTION_FINISH","ACTION_OK","isPopoverOpen","isIndicatorVisible","targetElement","isRef","_a","isFirstStep","isLastStep","showSteps","menuData","RefreshIcon","BlockedIcon","computedActions","primaryAction","actions","watch","isActive","_b","nextTick","__default__","currentStep","totalSteps","isSingleTutorial","getPopoverProps","step","index","value"],"mappings":";;;;;;;;;;;AAmBI,MAAAA,IAAA;;;;;;;;;;;;;;;AAaA,UAAAC,IAAAC,EAAA;AAAA,MAA2B,OAAA;AAAA,MAChB,QAAA;AAAA,MACC,cAAA;AAAA,IACM,CAAA;AAGlB,aAAAC,EAAAC,GAAA;AACI,UAAA;AACI,cAAAC,IAAA,WAAA,iBAAAD,CAAA,EAAA,iBAAA,eAAA,CAAA;AACA,eAAA,OAAA,MAAAC,CAAA,IAAA,KAAA,GAAAA,IAAA,IAAAL,CAAA;AAAA,MAAgE,QAAA;AAEhE,eAAA;AAAA,MAAO;AAAA,IACX;AAGJ,UAAAM,IAAA;AAAA,MAAmBC,GAAA;AAA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AAA;AAAA;AAAA,QAAO,eAAAD,EAAA;AAAA,QAEiB,OAAAA,EAAA;AAAA,QACR,OAAAA,EAAA;AAAA,QACA,MAAAC;AAAA,QACN,YAAAJ,EAAA;AAAA,QACiB,QAAAG,EAAA;AAAA,QACV,eAAAnC,EAAA;AAAA;AAAA,QACQ,QAAAoC,MAAAL,EAAA;AAAA,QAGS,QAAAE,EAAA;AAAA,QACL,UAAAE,EAAA;AAAA,MACV;AAAA,IACnB;AAGJ,WAAAT,EAAAK,GAAA,CAAAI,MAAA;AACI,MAAA/B,EAAA,gBAAA+B,CAAA;AAAA,IAAyB,CAAA,GAG7BT;AAAA,MAAA,MAAA1B,EAAA;AAAA,MACgB,CAAAqC,MAAA;AAER,QAAAA,KAAA,MAAAA,KAAAL,EAAA,UACID,EAAA,QAAAM;AAAA,MACJ;AAAA,IACJ;;;;;;;;;;;;;;;"}
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as p, computed as T, onMounted as E, createBlock as d, openBlock as u, resolveDynamicComponent as v, normalizeClass as I, withCtx as h, renderSlot as b } from "vue";
2
2
  import { _ as O } from "./_plugin-vue_export-helper.CHgC5LLL.js";
3
3
  import "../assets/typography.css";
4
- var e = /* @__PURE__ */ ((t) => (t.CAPTION = "caption", t.BODY = "body", t.SUBTITLE = "subtitle", t.TITLE = "title", t))(e || {}), r = /* @__PURE__ */ ((t) => (t.WIDE = "wide", t.STRONGER = "stronger", t.STRONGER_WIDE = "stronger-wide", t.STRONGEST = "strongest", t.STRONGEST_WIDE = "strongest-wide", t.MEDIUM = "m", t.LARGE = "l", t.MOBILE = "mobile", t))(r || {}), c = /* @__PURE__ */ ((t) => (t.H1 = "h1", t.H2 = "h2", t.H3 = "h3", t.H4 = "h4", t.H5 = "h5", t.H6 = "h6", t.DIV = "div", t.PARAGRAPH = "p", t.SPAN = "span", t))(c || {});
5
4
  const D = ["development", "DEVELOPMENT", "dev", "DEV"], m = () => D.includes(process.env.NODE_ENV);
6
5
  function o(...t) {
7
6
  m() && console.warn(...t);
8
7
  }
9
8
  const i = ["color: red", "background: yellow"].join(";"), l = /* @__PURE__ */ new Set();
10
- function R(t, a, n) {
11
- l.has(t) || (o(`%cDEPRECATED:\x1B[0m ${t}`, i), o(`${a.replaceAll(" ", "").trim()}`), o(`To be removed in: %c${n}`, i), l.add(t));
9
+ function R(t, e, n) {
10
+ l.has(t) || (o(`%cDEPRECATED:\x1B[0m ${t}`, i), o(`${e.replaceAll(" ", "").trim()}`), o(`To be removed in: %c${n}`, i), l.add(t));
12
11
  }
12
+ var a = /* @__PURE__ */ ((t) => (t.CAPTION = "caption", t.BODY = "body", t.SUBTITLE = "subtitle", t.TITLE = "title", t))(a || {}), r = /* @__PURE__ */ ((t) => (t.WIDE = "wide", t.STRONGER = "stronger", t.STRONGER_WIDE = "stronger-wide", t.STRONGEST = "strongest", t.STRONGEST_WIDE = "strongest-wide", t.MEDIUM = "m", t.LARGE = "l", t.MOBILE = "mobile", t))(r || {}), c = /* @__PURE__ */ ((t) => (t.H1 = "h1", t.H2 = "h2", t.H3 = "h3", t.H4 = "h4", t.H5 = "h5", t.H6 = "h6", t.DIV = "div", t.PARAGRAPH = "p", t.SPAN = "span", t))(c || {});
13
13
  const S = {
14
14
  name: "bento-typography",
15
15
  inheritAttrs: !0
@@ -22,12 +22,12 @@ const S = {
22
22
  richText: { type: Boolean },
23
23
  stronger: { type: Boolean, default: !1 },
24
24
  strongest: { type: Boolean, default: !1 },
25
- variant: { default: e.BODY },
25
+ variant: { default: a.BODY },
26
26
  wide: { type: Boolean, default: !1 }
27
27
  },
28
28
  setup(t) {
29
- const a = t;
30
- a.variant === e.SUBTITLE && R(
29
+ const e = t;
30
+ e.variant === a.SUBTITLE && R(
31
31
  'BentoTypography "subtitle" variant (BentoTypographyVariant.SUBTITLE)',
32
32
  `Use the "title" or "BentoTypographyVariant.TITLE" variant and (optionally) combine it with a size property. e.g. medium / large.
33
33
  <bento-typography :variant="BentoTypographyVariant.TITLE" medium>`,
@@ -35,30 +35,30 @@ const S = {
35
35
  );
36
36
  const n = T(() => ({
37
37
  // Rich text
38
- "b-typography--rich-text": a.richText,
38
+ "b-typography--rich-text": e.richText,
39
39
  // Caption
40
- [`b-typography--${e.CAPTION}`]: a.variant === e.CAPTION,
41
- [`b-typography--${e.CAPTION}-${r.WIDE}`]: a.variant === e.CAPTION && a.wide,
42
- [`b-typography--${e.CAPTION}-${r.STRONGER}`]: a.variant === e.CAPTION && a.stronger,
40
+ [`b-typography--${a.CAPTION}`]: e.variant === a.CAPTION,
41
+ [`b-typography--${a.CAPTION}-${r.WIDE}`]: e.variant === a.CAPTION && e.wide,
42
+ [`b-typography--${a.CAPTION}-${r.STRONGER}`]: e.variant === a.CAPTION && e.stronger,
43
43
  // Body
44
- [`b-typography--${e.BODY}`]: a.variant === e.BODY,
45
- [`b-typography--${e.BODY}-${r.WIDE}`]: a.variant === e.BODY && a.wide,
46
- [`b-typography--${e.BODY}-${r.STRONGER}`]: a.variant === e.BODY && a.stronger,
47
- [`b-typography--${e.BODY}-${r.STRONGEST}`]: a.variant === e.BODY && a.strongest,
44
+ [`b-typography--${a.BODY}`]: e.variant === a.BODY,
45
+ [`b-typography--${a.BODY}-${r.WIDE}`]: e.variant === a.BODY && e.wide,
46
+ [`b-typography--${a.BODY}-${r.STRONGER}`]: e.variant === a.BODY && e.stronger,
47
+ [`b-typography--${a.BODY}-${r.STRONGEST}`]: e.variant === a.BODY && e.strongest,
48
48
  // Subtitle
49
- [`b-typography--${e.SUBTITLE}`]: a.variant === e.SUBTITLE,
50
- [`b-typography--${e.SUBTITLE}-${r.STRONGER}`]: a.variant === e.SUBTITLE && a.stronger,
49
+ [`b-typography--${a.SUBTITLE}`]: e.variant === a.SUBTITLE,
50
+ [`b-typography--${a.SUBTITLE}-${r.STRONGER}`]: e.variant === a.SUBTITLE && e.stronger,
51
51
  // Title
52
- [`b-typography--${e.TITLE}`]: a.variant === e.TITLE && !a.medium && !a.large,
53
- [`b-typography--${e.TITLE}-${r.MEDIUM}`]: a.variant === e.TITLE && a.medium,
54
- [`b-typography--${e.TITLE}-${r.LARGE}`]: a.variant === e.TITLE && a.large
52
+ [`b-typography--${a.TITLE}`]: e.variant === a.TITLE && !e.medium && !e.large,
53
+ [`b-typography--${a.TITLE}-${r.MEDIUM}`]: e.variant === a.TITLE && e.medium,
54
+ [`b-typography--${a.TITLE}-${r.LARGE}`]: e.variant === a.TITLE && e.large
55
55
  }));
56
56
  return E(() => {
57
- if (a.richText && a.el !== "div")
57
+ if (e.richText && e.el !== "div")
58
58
  throw new Error('Rich-text prop must be used with el="div" for correct HTML semantics');
59
- if (a.richText && a.variant === "title")
59
+ if (e.richText && e.variant === "title")
60
60
  throw new Error("Rich-text prop cannot be used with the title variant.");
61
- if (a.richText && a.variant === "subtitle")
61
+ if (e.richText && e.variant === "subtitle")
62
62
  throw new Error("Rich-text prop cannot be used with the subtitle variant.");
63
63
  }), (s, N) => (u(), d(v(s.el), {
64
64
  class: I(["b-typography", n.value]),
@@ -70,14 +70,14 @@ const S = {
70
70
  _: 3
71
71
  }, 8, ["class"]));
72
72
  }
73
- }), L = /* @__PURE__ */ O($, [["__scopeId", "data-v-1baa123a"]]);
73
+ }), L = /* @__PURE__ */ O($, [["__scopeId", "data-v-dd2b6e94"]]);
74
74
  export {
75
75
  L as B,
76
- e as a,
76
+ a,
77
77
  r as b,
78
78
  c,
79
79
  R as d,
80
80
  m as i,
81
81
  o as p
82
82
  };
83
- //# sourceMappingURL=typography.yBEME_Gu.js.map
83
+ //# sourceMappingURL=typography.6Oo5TOMP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.6Oo5TOMP.js","sources":["../../../vue2/src/utils/ts/dev-environment.ts","../../../vue2/src/utils/ts/print-development-warning.ts","../../../vue2/src/utils/ts/deprecate.ts","../../../vue2/src/components/typography/typography.types.ts","../../../vue2/src/components/typography/typography.vue"],"sourcesContent":["const DEV_ENVIROMENT_NAMES = ['development', 'DEVELOPMENT', 'dev', 'DEV'];\n\nexport const isDevelopmentEnviroment = () => DEV_ENVIROMENT_NAMES.includes(process.env.NODE_ENV);\n","import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n/**\n * Prints console.warn messages in development mode only.\n *\n * @see console.warn for what parameters you can use\n */\n\nexport function printDevelopmentWarning(...args: Parameters<typeof console.warn>) {\n if (isDevelopmentEnviroment()) {\n // eslint-disable-next-line no-console\n console.warn(...args);\n }\n}\n","import { printDevelopmentWarning } from './print-development-warning';\n\nconst DEPRECATION_STYLES = ['color: red', 'background: yellow'].join(';');\nconst shownMessages = new Set<string>();\n\n/**\n * Informs users about the deprecations in development mode only.\n *\n * @param title Indicates what is being deprecated.\n * @param deprecationMessage How to avoid the deprecation by giving an example of the alternatives. Backticks can be used to multi-line the message.\n * @param toBeRemovedInVersion The version it will be removed. Must be in X.Y.Z format.\n */\nexport function deprecate(title: string, deprecationMessage: string, toBeRemovedInVersion: string) {\n // If the message is already showing, don't show it again\n if (!shownMessages.has(title)) {\n printDevelopmentWarning(`%cDEPRECATED:\\x1b[0m ${title}`, DEPRECATION_STYLES);\n // Format multi-line descriptions with the backtick\n printDevelopmentWarning(`${deprecationMessage.replaceAll(' ', '').trim()}`);\n printDevelopmentWarning(`To be removed in: %c${toBeRemovedInVersion}`, DEPRECATION_STYLES);\n shownMessages.add(title);\n }\n}\n\n/**\n * Reset shownMessages set\n *\n * @deprecated For testing purposes only. Do not use.\n */\nexport function resetShownMessages() {\n shownMessages.clear();\n}\n","/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyVariant {\n CAPTION = 'caption',\n BODY = 'body',\n /** @deprecated Use \"TITLE\" instead. */\n SUBTITLE = 'subtitle',\n TITLE = 'title',\n}\n\nexport enum BentoTypographyModifier {\n WIDE = 'wide',\n STRONGER = 'stronger',\n STRONGER_WIDE = 'stronger-wide',\n STRONGEST = 'strongest',\n STRONGEST_WIDE = 'strongest-wide',\n MEDIUM = 'm',\n LARGE = 'l',\n MOBILE = 'mobile',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyElement {\n H1 = 'h1',\n H2 = 'h2',\n H3 = 'h3',\n H4 = 'h4',\n H5 = 'h5',\n H6 = 'h6',\n DIV = 'div',\n PARAGRAPH = 'p',\n SPAN = 'span',\n}\n\nexport interface BentoTypographyProps {\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el?: BentoTypographyElement | `${BentoTypographyElement}`;\n\n /**\n * Adds the large class modifier.\n * Applicable to the Title variant.\n */\n large?: boolean;\n\n /**\n * Adds the medium class modifier.\n * Applicable to the Title variant.\n */\n medium?: boolean;\n\n /**\n * Adds the rich-text modifier, which allows for the use of HTML tags inside typography.\n */\n richText?: boolean;\n\n /**\n * Adds the stronger class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n stronger?: boolean;\n\n /**\n * Adds the strongest class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n strongest?: boolean;\n\n /**\n * Sets the type of typography variant.\n * @values caption, body, title.\n */\n variant?: BentoTypographyVariant | `${BentoTypographyVariant}`;\n\n /**\n * Adds the medium class modifier.\n * Applicable to the Body variant.\n */\n wide?: boolean;\n}\n","<template>\n <component :is=\"el\" class=\"b-typography\" :class=\"conditionalClasses\" data-testid=\"typography\">\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted } from 'vue';\n import { deprecate } from '@/utils/ts/deprecate';\n import {\n BentoTypographyElement,\n BentoTypographyModifier,\n type BentoTypographyProps,\n BentoTypographyVariant,\n } from './typography.types';\n\n const props = withDefaults(defineProps<BentoTypographyProps>(), {\n el: BentoTypographyElement.PARAGRAPH,\n large: false,\n medium: false,\n stronger: false,\n strongest: false,\n variant: BentoTypographyVariant.BODY,\n wide: false,\n });\n\n if (props.variant === BentoTypographyVariant.SUBTITLE) {\n deprecate(\n 'BentoTypography \"subtitle\" variant (BentoTypographyVariant.SUBTITLE)',\n `Use the \"title\" or \"BentoTypographyVariant.TITLE\" variant and (optionally) combine it with a size property. e.g. medium / large.\n <bento-typography :variant=\"BentoTypographyVariant.TITLE\" medium>`,\n '2.0.0'\n );\n }\n\n const conditionalClasses = computed(() => ({\n // Rich text\n ['b-typography--rich-text']: props.richText,\n // Caption\n [`b-typography--${BentoTypographyVariant.CAPTION}`]: props.variant === BentoTypographyVariant.CAPTION,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.wide,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.stronger,\n\n // Body\n [`b-typography--${BentoTypographyVariant.BODY}`]: props.variant === BentoTypographyVariant.BODY,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.BODY && props.wide,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.BODY && props.stronger,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGEST}`]:\n props.variant === BentoTypographyVariant.BODY && props.strongest,\n\n // Subtitle\n [`b-typography--${BentoTypographyVariant.SUBTITLE}`]: props.variant === BentoTypographyVariant.SUBTITLE,\n [`b-typography--${BentoTypographyVariant.SUBTITLE}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.SUBTITLE && props.stronger,\n\n // Title\n [`b-typography--${BentoTypographyVariant.TITLE}`]:\n props.variant === BentoTypographyVariant.TITLE && !props.medium && !props.large,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.MEDIUM}`]:\n props.variant === BentoTypographyVariant.TITLE && props.medium,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.LARGE}`]:\n props.variant === BentoTypographyVariant.TITLE && props.large,\n }));\n\n onMounted(() => {\n if (props.richText && props.el !== 'div') {\n throw new Error('Rich-text prop must be used with el=\"div\" for correct HTML semantics');\n }\n\n if (props.richText && props.variant === 'title') {\n throw new Error('Rich-text prop cannot be used with the title variant.');\n }\n\n if (props.richText && props.variant === 'subtitle') {\n throw new Error('Rich-text prop cannot be used with the subtitle variant.');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * The Typography component makes it easy to apply a default set of font weights, sizes and other text styles\n * easily to text. The variants and properties match with those found in Figma.\n *\n * For example, seeing text with the typography styling of\n *\n * @example\n * import { BentoTypography } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTypography },\n * template: `\n * <bento-typography>\n * ... text content\n * </bento-typography>\n * `\n * }\n */\n export default {\n name: 'bento-typography',\n inheritAttrs: true,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./typography.scss\" />\n"],"names":["DEV_ENVIROMENT_NAMES","isDevelopmentEnviroment","printDevelopmentWarning","args","DEPRECATION_STYLES","shownMessages","deprecate","title","deprecationMessage","toBeRemovedInVersion","BentoTypographyVariant","BentoTypographyVariant2","BentoTypographyModifier","BentoTypographyModifier2","BentoTypographyElement","BentoTypographyElement2","__default__","props","__props","conditionalClasses","computed","onMounted"],"mappings":";;;AAAA,MAAAA,IAAA,CAAA,eAAA,eAAA,OAAA,KAAA,GAEOC,IAAA,MAAAD,EAAA,SAAA,QAAA,IAAA,QAAA;ACMA,SAAAE,KAAAC,GAAA;AACH,EAAAF,EAAA,KAEI,QAAA,KAAA,GAAAE,CAAA;AAER;ACXA,MAAAC,IAAA,CAAA,cAAA,oBAAA,EAAA,KAAA,GAAA,GACAC,IAAA,oBAAA,IAAA;AASO,SAAAC,EAAAC,GAAAC,GAAAC,GAAA;AAEH,EAAAJ,EAAA,IAAAE,CAAA,MACIL,EAAA,wBAAAK,CAAA,IAAAH,CAAA,GAEAF,EAAA,GAAAM,EAAA,WAAA,MAAA,EAAA,EAAA,KAAA,CAAA,EAAA,GAC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AAA;AAAA,MAG6B,CAAA,iBAAAA,EAAA,IAAA,IAAAE,EAAA,IAAA,EAAA,GAAAK,EAAA,YAAAP,EAAA,QAAAO,EAAA;AAAA,MAEhC,CAAA,iBAAAP,EAAA,IAAA,IAAAE,EAAA,QAAA,EAAA,GAAAK,EAAA,YAAAP,EAAA,QAAAO,EAAA;AAAA,MAEA,CAAA,iBAAAP,EAAA,IAAA,IAAAE,EAAA,SAAA,EAAA,GAAAK,EAAA,YAAAP,EAAA,QAAAO,EAAA;AAAA;AAAA,MAEA,CAAA,iBAAAP,EAAA,QAAA,EAAA,GAAAO,EAAA,YAAAP,EAAA;AAAA,MAGoC,CAAA,iBAAAA,EAAA,QAAA,IAAAE,EAAA,QAAA,EAAA,GAAAK,EAAA,YAAAP,EAAA,YAAAO,EAAA;AAAA;AAAA,MAEhC,CAAA,iBAAAP,EAAA,KAAA,EAAA,GAAAO,EAAA,YAAAP,EAAA,SAAA,CAAAO,EAAA,UAAA,CAAAA,EAAA;AAAA,MAIe,CAAA,iBAAAP,EAAA,KAAA,IAAAE,EAAA,MAAA,EAAA,GAAAK,EAAA,YAAAP,EAAA,SAAAO,EAAA;AAAA,MAElB,CAAA,iBAAAP,EAAA,KAAA,IAAAE,EAAA,KAAA,EAAA,GAAAK,EAAA,YAAAP,EAAA,SAAAO,EAAA;AAAA,IAEA,EAAA;AAGhE,WAAAI,EAAA,MAAA;AACI,UAAAJ,EAAA,YAAAA,EAAA,OAAA;AACI,cAAA,IAAA,MAAA,sEAAA;AAGJ,UAAAA,EAAA,YAAAA,EAAA,YAAA;AACI,cAAA,IAAA,MAAA,uDAAA;AAGJ,UAAAA,EAAA,YAAAA,EAAA,YAAA;AACI,cAAA,IAAA,MAAA,0DAAA;AAAA,IACJ,CAAA;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"upload-files.5wQwbfkp.js","sources":["../../../vue2/src/components/empty-state/assets/large/upload-files.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_69_698)'%3e%3cpath%20d='M274.644%2053.2879H106.437V257.832H274.644V53.2879Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-dasharray='4.71%204.71'/%3e%3cpath%20d='M110.981%2042.4709L99.6461%2058.7553L83.4088%2047.4485L46.2676%20108.659L147.416%20174.663L195.897%2097.1682L110.981%2042.4709Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.4089%2047.4485L95.1584%2059.5747L98.2617%2054.7666L83.4089%2047.4485Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.4089%2047.4485L110.981%2042.4709L99.6462%2058.7553L83.4089%2047.4485Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M194.894%20164.952L207.232%20216.598L222.509%20203.775L234.72%20218.326L240.541%20213.443L228.33%20198.891L243.611%20186.073L194.894%20164.952Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M200.555%2081.5855C199.528%2081.7644%20198.845%2082.7439%20199.029%2083.7658L202.217%20101.854L203.361%20108.348C203.945%20111.673%20201.718%20114.851%20198.393%20115.44C195.068%20116.024%20191.885%20113.796%20191.301%20110.476L190.566%20106.304L190.157%20103.987L186.969%2085.8991L186.587%2083.7282L186.399%2082.6545C185.994%2080.3517%20187.534%2078.1525%20189.837%2077.7428C192.139%2077.3378%20194.339%2078.8777%20194.748%2081.1805L198.511%20102.513C198.737%20103.794%20197.88%20105.014%20196.599%20105.24C195.318%20105.466%20194.098%20104.609%20193.872%20103.328L190.684%2085.2398C190.505%2084.2132%20189.526%2083.5304%20188.504%2083.714C187.482%2083.8977%20186.794%2084.8725%20186.978%2085.8944L190.166%20103.982C190.75%20107.307%20193.934%20109.535%20197.258%20108.951C200.583%20108.367%20202.81%20105.183%20202.226%20101.859L199.038%2083.7705L198.464%2080.5259C197.696%2076.1793%20193.538%2073.2643%20189.191%2074.0319C184.845%2074.7995%20181.93%2078.9578%20182.697%2083.3043L187.604%20111.131C188.551%20116.499%20193.689%20120.097%20199.062%20119.151C204.43%20118.204%20208.033%20113.066%20207.082%20107.693L202.749%2083.1113C202.57%2082.0847%20201.591%2081.4018%20200.569%2081.5855H200.555Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M190.957%20225.946L33.275%20198.143C28.1514%20197.239%2024.7325%20192.355%2025.6367%20187.232L46.8987%2066.6526C47.8029%2061.529%2052.6863%2058.1102%2057.8099%2059.0143L89.1493%2064.5382C92.8414%2065.1881%2096.1189%2067.2789%2098.271%2070.3493L99.1988%2071.6726C101.346%2074.743%20104.628%2076.8339%20108.32%2077.4838L213.863%2096.0945C218.987%2096.9987%20222.405%20101.882%20221.501%20107.006L201.873%20218.307C200.969%20223.431%20196.086%20226.85%20190.962%20225.946H190.957Z'%20fill='%23D5F3E1'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M212.216%20105.367L54.5365%2077.5637C49.4139%2076.6605%2044.529%2080.0809%2043.6257%2085.2035L25.6354%20187.232C24.7321%20192.355%2028.1526%20197.24%2033.2752%20198.143L190.955%20225.946C196.078%20226.849%20200.963%20223.429%20201.866%20218.306L219.857%20116.278C220.76%20111.155%20217.339%20106.27%20212.216%20105.367Z'%20fill='%2385DFA9'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M105.005%20189.337L151.075%2078.4209L230.731%20107.415L184.656%20218.326L105.005%20189.337Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M192.074%20213.616L230.73%20107.412L151.076%2078.4202L112.421%20184.625L192.074%20213.616Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M118.459%20181.814L189.262%20207.584L224.696%20110.23L153.893%2084.4599L118.459%20181.814Z'%20fill='%230ABF53'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M200.23%20166.464L144.577%20176.278C147.284%20191.644%20161.939%20201.905%20177.31%20199.198C192.676%20196.49%20202.938%20181.835%20200.23%20166.464Z'%20fill='%23D5F3E1'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M155.921%20145.734L138.926%20142.739L127.835%20155.958L133.736%20172.176L150.732%20175.171L161.826%20161.953L155.921%20145.734Z'%20fill='%230ABF53'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M148.651%20117.385L138.99%20125.491L176.816%20170.57L186.477%20162.464L148.651%20117.385Z'%20fill='%23067934'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M195.874%20167.029C202.319%20167.029%20207.543%20161.805%20207.543%20155.36C207.543%20148.915%20202.319%20143.69%20195.874%20143.69C189.429%20143.69%20184.204%20148.915%20184.204%20155.36C184.204%20161.805%20189.429%20167.029%20195.874%20167.029Z'%20fill='%2385DFA9'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M179.382%20153.881L176.114%20135.331L172.841%20116.782L190.543%20123.224L208.245%20129.666L193.811%20141.774L179.382%20153.881Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M182.688%2083.3043L187.595%20111.131C188.542%20116.499%20193.679%20120.097%20199.052%20119.151C204.421%20118.204%20208.023%20113.066%20207.072%20107.693L202.74%2083.1113C202.561%2082.0847%20201.581%2081.4018%20200.559%2081.5855C199.537%2081.7691%20198.85%2082.7439%20199.034%2083.7658L203.366%20108.348C203.95%20111.673%20201.723%20114.851%20198.398%20115.44C195.073%20116.024%20191.89%20113.796%20191.306%20110.476L190.571%20106.304L186.399%2082.6498'%20fill='white'/%3e%3cpath%20d='M182.688%2083.3043L187.595%20111.131C188.542%20116.499%20193.679%20120.097%20199.052%20119.151C204.421%20118.204%20208.023%20113.066%20207.072%20107.693L202.74%2083.1113C202.561%2082.0847%20201.581%2081.4018%20200.559%2081.5855C199.537%2081.7691%20198.85%2082.7439%20199.034%2083.7658L203.366%20108.348C203.95%20111.673%20201.723%20114.851%20198.398%20115.44C195.073%20116.024%20191.89%20113.796%20191.306%20110.476L190.571%20106.304L186.399%2082.6498'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M196.848%2093.0947L200.621%2093.7587L200.272%2091.8515L196.533%2091.3194L196.848%2093.0947Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M200.103%20154.733L212.441%20206.379L227.722%20193.556L239.933%20208.107L245.753%20203.224L233.543%20188.673L248.819%20175.849L200.103%20154.733Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_69_698'%3e%3crect%20width='251'%20height='216.623'%20fill='white'%20transform='translate(24%2042)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\""],"names":["uploadFiles"],"mappings":"AAAA,MAAeA,IAAA;"}
1
+ {"version":3,"file":"upload-files.5wQwbfkp.js","sources":["../../../vue2/src/components/empty-state/assets/large/upload-files.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_69_698)'%3e%3cpath%20d='M274.644%2053.2879H106.437V257.832H274.644V53.2879Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-dasharray='4.71%204.71'/%3e%3cpath%20d='M110.981%2042.4709L99.6461%2058.7553L83.4088%2047.4485L46.2676%20108.659L147.416%20174.663L195.897%2097.1682L110.981%2042.4709Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.4089%2047.4485L95.1584%2059.5747L98.2617%2054.7666L83.4089%2047.4485Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.4089%2047.4485L110.981%2042.4709L99.6462%2058.7553L83.4089%2047.4485Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M194.894%20164.952L207.232%20216.598L222.509%20203.775L234.72%20218.326L240.541%20213.443L228.33%20198.891L243.611%20186.073L194.894%20164.952Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M200.555%2081.5855C199.528%2081.7644%20198.845%2082.7439%20199.029%2083.7658L202.217%20101.854L203.361%20108.348C203.945%20111.673%20201.718%20114.851%20198.393%20115.44C195.068%20116.024%20191.885%20113.796%20191.301%20110.476L190.566%20106.304L190.157%20103.987L186.969%2085.8991L186.587%2083.7282L186.399%2082.6545C185.994%2080.3517%20187.534%2078.1525%20189.837%2077.7428C192.139%2077.3378%20194.339%2078.8777%20194.748%2081.1805L198.511%20102.513C198.737%20103.794%20197.88%20105.014%20196.599%20105.24C195.318%20105.466%20194.098%20104.609%20193.872%20103.328L190.684%2085.2398C190.505%2084.2132%20189.526%2083.5304%20188.504%2083.714C187.482%2083.8977%20186.794%2084.8725%20186.978%2085.8944L190.166%20103.982C190.75%20107.307%20193.934%20109.535%20197.258%20108.951C200.583%20108.367%20202.81%20105.183%20202.226%20101.859L199.038%2083.7705L198.464%2080.5259C197.696%2076.1793%20193.538%2073.2643%20189.191%2074.0319C184.845%2074.7995%20181.93%2078.9578%20182.697%2083.3043L187.604%20111.131C188.551%20116.499%20193.689%20120.097%20199.062%20119.151C204.43%20118.204%20208.033%20113.066%20207.082%20107.693L202.749%2083.1113C202.57%2082.0847%20201.591%2081.4018%20200.569%2081.5855H200.555Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M190.957%20225.946L33.275%20198.143C28.1514%20197.239%2024.7325%20192.355%2025.6367%20187.232L46.8987%2066.6526C47.8029%2061.529%2052.6863%2058.1102%2057.8099%2059.0143L89.1493%2064.5382C92.8414%2065.1881%2096.1189%2067.2789%2098.271%2070.3493L99.1988%2071.6726C101.346%2074.743%20104.628%2076.8339%20108.32%2077.4838L213.863%2096.0945C218.987%2096.9987%20222.405%20101.882%20221.501%20107.006L201.873%20218.307C200.969%20223.431%20196.086%20226.85%20190.962%20225.946H190.957Z'%20fill='%23D5F3E1'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M212.216%20105.367L54.5365%2077.5637C49.4139%2076.6605%2044.529%2080.0809%2043.6257%2085.2035L25.6354%20187.232C24.7321%20192.355%2028.1526%20197.24%2033.2752%20198.143L190.955%20225.946C196.078%20226.849%20200.963%20223.429%20201.866%20218.306L219.857%20116.278C220.76%20111.155%20217.339%20106.27%20212.216%20105.367Z'%20fill='%2385DFA9'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M105.005%20189.337L151.075%2078.4209L230.731%20107.415L184.656%20218.326L105.005%20189.337Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M192.074%20213.616L230.73%20107.412L151.076%2078.4202L112.421%20184.625L192.074%20213.616Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M118.459%20181.814L189.262%20207.584L224.696%20110.23L153.893%2084.4599L118.459%20181.814Z'%20fill='%230ABF53'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M200.23%20166.464L144.577%20176.278C147.284%20191.644%20161.939%20201.905%20177.31%20199.198C192.676%20196.49%20202.938%20181.835%20200.23%20166.464Z'%20fill='%23D5F3E1'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M155.921%20145.734L138.926%20142.739L127.835%20155.958L133.736%20172.176L150.732%20175.171L161.826%20161.953L155.921%20145.734Z'%20fill='%230ABF53'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M148.651%20117.385L138.99%20125.491L176.816%20170.57L186.477%20162.464L148.651%20117.385Z'%20fill='%23067934'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M195.874%20167.029C202.319%20167.029%20207.543%20161.805%20207.543%20155.36C207.543%20148.915%20202.319%20143.69%20195.874%20143.69C189.429%20143.69%20184.204%20148.915%20184.204%20155.36C184.204%20161.805%20189.429%20167.029%20195.874%20167.029Z'%20fill='%2385DFA9'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M179.382%20153.881L176.114%20135.331L172.841%20116.782L190.543%20123.224L208.245%20129.666L193.811%20141.774L179.382%20153.881Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M182.688%2083.3043L187.595%20111.131C188.542%20116.499%20193.679%20120.097%20199.052%20119.151C204.421%20118.204%20208.023%20113.066%20207.072%20107.693L202.74%2083.1113C202.561%2082.0847%20201.581%2081.4018%20200.559%2081.5855C199.537%2081.7691%20198.85%2082.7439%20199.034%2083.7658L203.366%20108.348C203.95%20111.673%20201.723%20114.851%20198.398%20115.44C195.073%20116.024%20191.89%20113.796%20191.306%20110.476L190.571%20106.304L186.399%2082.6498'%20fill='white'/%3e%3cpath%20d='M182.688%2083.3043L187.595%20111.131C188.542%20116.499%20193.679%20120.097%20199.052%20119.151C204.421%20118.204%20208.023%20113.066%20207.072%20107.693L202.74%2083.1113C202.561%2082.0847%20201.581%2081.4018%20200.559%2081.5855C199.537%2081.7691%20198.85%2082.7439%20199.034%2083.7658L203.366%20108.348C203.95%20111.673%20201.723%20114.851%20198.398%20115.44C195.073%20116.024%20191.89%20113.796%20191.306%20110.476L190.571%20106.304L186.399%2082.6498'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M196.848%2093.0947L200.621%2093.7587L200.272%2091.8515L196.533%2091.3194L196.848%2093.0947Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M200.103%20154.733L212.441%20206.379L227.722%20193.556L239.933%20208.107L245.753%20203.224L233.543%20188.673L248.819%20175.849L200.103%20154.733Z'%20fill='white'%20stroke='%2300112C'%20stroke-width='0.706379'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_69_698'%3e%3crect%20width='251'%20height='216.623'%20fill='white'%20transform='translate(24%2042)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\""],"names":["uploadFiles"],"mappings":"AAAA,MAAAA,IAAe;"}