@justifi/webcomponents 5.7.6-rc-02 → 5.7.6-rc-03

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 (623) hide show
  1. package/dist/cjs/{Api-c8NBCwu4.js → Api-eP0XeJLd.js} +1 -1
  2. package/dist/cjs/{Refund-Dt1CMUjx.js → Refund-08OcZkXX.js} +148 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -1
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
  5. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  6. package/dist/cjs/{business.service-W2PRAU9J.js → business.service-CZrK48lv.js} +2 -3
  7. package/dist/cjs/card-form.cjs.entry.js +2 -2
  8. package/dist/cjs/{check-pkg-version-DmONJMn1.js → check-pkg-version-DBocF2eE.js} +3 -4
  9. package/dist/cjs/{checkout.service-XwOh98gt.js → checkout.service-CllLA9W6.js} +2 -3
  10. package/dist/cjs/checkouts-list-core.cjs.entry.js +5 -5
  11. package/dist/cjs/{checkouts-table-CrpOOe_e.js → checkouts-table-Cp7rNkNd.js} +1 -1
  12. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  13. package/dist/cjs/dinero-J-SRFKIR.js +1673 -0
  14. package/dist/cjs/{dispute.service-Dh82Wru1.js → dispute.service-Chptj-DX.js} +2 -3
  15. package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
  16. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  17. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  19. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-monetary.cjs.entry.js +4 -3
  21. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
  22. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  23. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  24. package/dist/cjs/form-control-select_3.cjs.entry.js +4 -4
  25. package/dist/cjs/{get-payment-details-W4PgTPkL.js → get-payment-details-C3qBZVdv.js} +3 -4
  26. package/dist/cjs/{get-subaccounts-D4woaGSs.js → get-subaccounts-DKyvT-ZF.js} +3 -4
  27. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -2
  28. package/dist/cjs/header-2-BXQLJn1q.js +10 -0
  29. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  30. package/dist/cjs/{insurance-state-BsGy_svD.js → insurance-state-kH0kuTD8.js} +3 -10
  31. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +3 -3
  32. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +14 -14
  33. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  34. package/dist/cjs/{justifi-bank-account-form_5.cjs.entry.js → justifi-bank-account-form_7.cjs.entry.js} +59 -17
  35. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +49 -0
  36. package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
  37. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -7
  38. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  39. package/dist/cjs/{justifi-button_5.cjs.entry.js → justifi-checkout-summary_5.cjs.entry.js} +126 -45
  40. package/dist/cjs/justifi-checkout.cjs.entry.js +12 -12
  41. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
  42. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
  43. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
  45. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +11 -11
  46. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
  47. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
  48. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +9 -9
  49. package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
  50. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  51. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
  52. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
  53. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -3
  54. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  55. package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -7
  56. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
  57. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -3
  58. package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
  59. package/dist/cjs/justifi-refund-payment.cjs.entry.js +8 -8
  60. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
  61. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +5 -3
  62. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
  63. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  64. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  65. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +8 -8
  66. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
  67. package/dist/cjs/justifi-terminals-list.cjs.entry.js +10 -10
  68. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +188 -32
  69. package/dist/cjs/loader.cjs.js +1 -1
  70. package/dist/cjs/{package-oywezDpy.js → package-BM2FCIB8.js} +1 -1
  71. package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
  72. package/dist/cjs/{payment-method-option-utils-imuSE7KV.js → payment-method-option-utils-QODgEWhU.js} +1 -11
  73. package/dist/cjs/{payment.service-BrvtS3F7.js → payment.service-C6kdaQYS.js} +2 -3
  74. package/dist/cjs/payments-list-core.cjs.entry.js +5 -5
  75. package/dist/cjs/{payments-table-BqxFc71K.js → payments-table-DaW6SvdL.js} +1 -1
  76. package/dist/cjs/payout-details-core.cjs.entry.js +5 -4
  77. package/dist/cjs/{payout.service-DNH6gRrP.js → payout.service-CLnAr59x.js} +2 -3
  78. package/dist/cjs/payouts-list-core.cjs.entry.js +5 -5
  79. package/dist/cjs/{payouts-table-iT2IauEa.js → payouts-table-D5hMHcaY.js} +1 -1
  80. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  81. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
  82. package/dist/cjs/{terminal-orders-table-xi_a-EnM.js → terminal-orders-table-DTZUpjkG.js} +2 -3
  83. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  84. package/dist/cjs/{terminal.service-CdzmTRQE.js → terminal.service-CcBCXxNm.js} +2 -3
  85. package/dist/cjs/terminals-list-core.cjs.entry.js +5 -5
  86. package/dist/cjs/{terminals-table-sf-s5v6D.js → terminals-table-DOqVeHM1.js} +1 -1
  87. package/dist/cjs/{utils-qOon0GWm.js → utils-DqlrBltg.js} +2 -1676
  88. package/dist/cjs/webcomponents.cjs.js +1 -1
  89. package/dist/collection/collection-manifest.json +1 -2
  90. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  91. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  92. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  93. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  94. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  95. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  96. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  97. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  98. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  99. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  101. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  102. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  103. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  104. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  105. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  106. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  107. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  110. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  111. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  112. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  113. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  114. package/dist/collection/components/checkout/billing-form/billing-form.js +10 -37
  115. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  116. package/dist/collection/components/checkout/checkout.js +1 -1
  117. package/dist/collection/components/checkout/payment-method-option-utils.js +0 -1
  118. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  119. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  120. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  121. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  122. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  123. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  124. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  134. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  135. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  136. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  137. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  138. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  139. package/dist/collection/components/modular-checkout/modular-checkout.js +8 -1
  140. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  141. package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +36 -5
  142. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  143. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  144. package/dist/collection/components/modular-checkout/sub-components/postal-code-form.js +5 -4
  145. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  146. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  147. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  148. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  149. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  150. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  151. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  152. package/dist/collection/components/payments-list/payments-list.js +1 -1
  153. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  154. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  155. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  156. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  157. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  158. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  159. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  160. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  161. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  162. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  163. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  164. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +273 -89
  165. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  166. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  167. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  168. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  169. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  170. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  171. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  172. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  173. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  174. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  175. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  176. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  177. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  178. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  179. package/dist/collection/ui-components/index.js +1 -0
  180. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  181. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  182. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +155 -0
  183. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  184. package/dist/docs.json +729 -1328
  185. package/dist/esm/{Api-C3T8XYbb.js → Api-BCeKXDaf.js} +1 -1
  186. package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
  187. package/dist/esm/{Refund-0aZtuMmz.js → Refund-DBHZkemk.js} +148 -2
  188. package/dist/esm/additional-questions-details_5.entry.js +4 -3
  189. package/dist/esm/{badge-Dr7gkD2I.js → badge-BrapPg3R.js} +1 -1
  190. package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -11
  191. package/dist/esm/bank-account-form.entry.js +4 -4
  192. package/dist/esm/business-details-core.entry.js +3 -3
  193. package/dist/esm/{business.service-C5vrjgZf.js → business.service-BPBxsb8B.js} +3 -4
  194. package/dist/esm/{button-xfPDSpPt.js → button-BB-N4vit.js} +1 -1
  195. package/dist/esm/card-form.entry.js +4 -4
  196. package/dist/esm/{check-pkg-version-DqhSXPRt.js → check-pkg-version-Cic-MeLf.js} +4 -5
  197. package/dist/esm/{checkout.service-CW2_CEte.js → checkout.service-C1WAmUiU.js} +3 -4
  198. package/dist/esm/checkouts-list-core.entry.js +10 -10
  199. package/dist/esm/{checkouts-table-BHhaS5bv.js → checkouts-table-COpCngi0.js} +3 -3
  200. package/dist/esm/custom-popper.entry.js +2 -2
  201. package/dist/esm/dinero-DizZAUMY.js +1671 -0
  202. package/dist/esm/{dispute.service-C3bmfjsZ.js → dispute.service-bQh-LG0z.js} +3 -4
  203. package/dist/esm/form-alert_5.entry.js +5 -5
  204. package/dist/esm/form-control-checkbox.entry.js +5 -5
  205. package/dist/esm/form-control-date.entry.js +4 -4
  206. package/dist/esm/{form-control-error-text-Cn0aPzHx.js → form-control-error-text-Bk3yfpFX.js} +1 -1
  207. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  208. package/dist/esm/{form-control-help-text-C91TeHXs.js → form-control-help-text-mOLCXs00.js} +1 -1
  209. package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
  210. package/dist/esm/form-control-monetary.entry.js +7 -6
  211. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  212. package/dist/esm/form-control-number.entry.js +5 -5
  213. package/dist/esm/form-control-radio.entry.js +3 -3
  214. package/dist/esm/form-control-select_3.entry.js +6 -6
  215. package/dist/esm/{get-payment-details-BdPvFl1W.js → get-payment-details-B193kh7P.js} +3 -4
  216. package/dist/esm/{get-subaccounts-BqqR44dV.js → get-subaccounts-DcgISPei.js} +4 -5
  217. package/dist/esm/gross-payment-chart-core.entry.js +6 -5
  218. package/dist/esm/{header-1-noRVFQY9.js → header-1-DYuf6mkF.js} +1 -1
  219. package/dist/esm/header-2-C4ZCdZwi.js +8 -0
  220. package/dist/esm/hidden-input_2.entry.js +7 -7
  221. package/dist/esm/{insurance-state-pL8MRpxn.js → insurance-state-DeyYNyas.js} +1 -7
  222. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +7 -7
  223. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +17 -17
  224. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  225. package/dist/esm/{justifi-bank-account-form_5.entry.js → justifi-bank-account-form_7.entry.js} +60 -20
  226. package/dist/esm/justifi-billing-form_2.entry.js +46 -0
  227. package/dist/esm/justifi-business-details.entry.js +10 -10
  228. package/dist/esm/justifi-business-form.entry.js +12 -12
  229. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  230. package/dist/esm/{justifi-button_5.entry.js → justifi-checkout-summary_5.entry.js} +127 -46
  231. package/dist/esm/justifi-checkout.entry.js +9 -9
  232. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  233. package/dist/esm/justifi-checkouts-list.entry.js +13 -13
  234. package/dist/esm/justifi-details.entry.js +2 -2
  235. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  236. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  237. package/dist/esm/justifi-dispute-notification_3.entry.js +14 -14
  238. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
  239. package/dist/esm/justifi-order-terminals.entry.js +12 -12
  240. package/dist/esm/justifi-owner-form_3.entry.js +11 -11
  241. package/dist/esm/justifi-payment-details.entry.js +11 -11
  242. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  243. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  244. package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
  245. package/dist/esm/justifi-payments-list-filters.entry.js +5 -4
  246. package/dist/esm/justifi-payments-list.entry.js +13 -13
  247. package/dist/esm/justifi-payout-details.entry.js +10 -10
  248. package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
  249. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -4
  250. package/dist/esm/justifi-payouts-list.entry.js +14 -14
  251. package/dist/esm/justifi-refund-payment.entry.js +12 -12
  252. package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
  253. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -4
  254. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -8
  255. package/dist/esm/justifi-skeleton.entry.js +3 -3
  256. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
  257. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  258. package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
  259. package/dist/esm/justifi-terminals-list.entry.js +13 -13
  260. package/dist/esm/justifi-tokenize-payment-method.entry.js +190 -34
  261. package/dist/esm/loader.js +1 -1
  262. package/dist/esm/{package-DR0dQ8Fv.js → package-BRJ4FIJH.js} +1 -1
  263. package/dist/esm/pagination-menu.entry.js +1 -1
  264. package/dist/esm/{parts-D3G5aVLy.js → parts-CKg_luIy.js} +1 -1
  265. package/dist/esm/payment-details-core.entry.js +15 -14
  266. package/dist/esm/{payment-method-option-utils-8n_ALxec.js → payment-method-option-utils-zFDtQrgQ.js} +2 -10
  267. package/dist/esm/{payment.service-CnQdP32J.js → payment.service-BTVtIbcY.js} +3 -4
  268. package/dist/esm/payments-list-core.entry.js +11 -11
  269. package/dist/esm/{payments-status-DUM0WZkk.js → payments-status-CawBLR48.js} +1 -1
  270. package/dist/esm/{payments-table-DVQzx7MJ.js → payments-table-WQAD1CSz.js} +3 -3
  271. package/dist/esm/payout-details-core.entry.js +11 -10
  272. package/dist/esm/{payout.service-EJuPNpfs.js → payout.service-j8w34GsW.js} +3 -4
  273. package/dist/esm/payouts-list-core.entry.js +11 -11
  274. package/dist/esm/{payouts-status-7saoFNoA.js → payouts-status-DB_PJap6.js} +1 -1
  275. package/dist/esm/{payouts-table-dca-F2iQ.js → payouts-table-DRISll8u.js} +3 -3
  276. package/dist/esm/{skeleton-C1-JoGFC.js → skeleton-D1Z4a8af.js} +1 -1
  277. package/dist/esm/{spinner-Ca9uu5Nd.js → spinner-BlffecO5.js} +1 -1
  278. package/dist/esm/{table-fsCYq8m9.js → table-BqxKVRry.js} +2 -2
  279. package/dist/esm/table-filters-menu.entry.js +3 -3
  280. package/dist/esm/terminal-orders-list-core.entry.js +10 -10
  281. package/dist/esm/{terminal-orders-table-BNasCnjz.js → terminal-orders-table-BWf9quiN.js} +5 -6
  282. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  283. package/dist/esm/{terminal.service-Cfacmeto.js → terminal.service-BDRGcUj-.js} +3 -4
  284. package/dist/esm/terminals-list-core.entry.js +10 -10
  285. package/dist/esm/{terminals-table-DBk-eg_3.js → terminals-table-BBPQRWja.js} +3 -3
  286. package/dist/esm/{utils-BjLkBMLe.js → utils-Cu5hITuT.js} +2 -1675
  287. package/dist/esm/{utils-CNwvOLkk.js → utils-sZ_6zOKQ.js} +1 -1
  288. package/dist/esm/webcomponents.js +1 -1
  289. package/dist/module/Analytics.js +0 -1
  290. package/dist/module/Refund.js +202 -1
  291. package/dist/module/additional-questions.js +1 -1
  292. package/dist/module/additional-statement.js +1 -1
  293. package/dist/module/badge.js +1 -1
  294. package/dist/module/bank-account-document-inputs.js +2 -3
  295. package/dist/module/bank-account-form-inputs2.js +1 -1
  296. package/dist/module/bank-account-form.js +2 -2
  297. package/dist/module/bank-account.js +3 -2
  298. package/dist/module/billing-form.js +20 -57
  299. package/dist/module/billing-information-form.js +10 -3
  300. package/dist/module/business-additional-questions-form-step.js +1 -1
  301. package/dist/module/business-bank-account-form-step-core.js +2 -3
  302. package/dist/module/business-bank-account-form-step.js +2 -3
  303. package/dist/module/business-core-info-form-step.js +1 -1
  304. package/dist/module/business-core-info.js +1 -1
  305. package/dist/module/business-details-core2.js +1 -0
  306. package/dist/module/business-documents-on-file2.js +2 -1
  307. package/dist/module/business-owners-form-step-core.js +1 -0
  308. package/dist/module/business-owners-form-step.js +1 -1
  309. package/dist/module/business-representative-form-inputs.js +1 -1
  310. package/dist/module/business-representative-form-step.js +1 -1
  311. package/dist/module/business-representative.js +1 -1
  312. package/dist/module/business-terms-conditions-form-step.js +1 -2
  313. package/dist/module/business.service.js +0 -1
  314. package/dist/module/cancellation-policy.js +1 -1
  315. package/dist/module/card-form.js +2 -2
  316. package/dist/module/card-form2.js +3 -2
  317. package/dist/module/checkout.service.js +0 -1
  318. package/dist/module/checkouts-list-core2.js +5 -4
  319. package/dist/module/custom-popper2.js +2 -2
  320. package/dist/module/customer-details.js +1 -1
  321. package/dist/module/dinero.js +1671 -0
  322. package/dist/module/dispute-management-core.js +2 -2
  323. package/dist/module/dispute-notification.js +2 -1
  324. package/dist/module/dispute-response-actions.js +0 -1
  325. package/dist/module/dispute-response-core.js +1 -1
  326. package/dist/module/dispute-response.js +2 -1
  327. package/dist/module/duplicate-charge.js +1 -1
  328. package/dist/module/electronic-evidence.js +1 -1
  329. package/dist/module/form-alert2.js +1 -1
  330. package/dist/module/form-control-checkbox2.js +4 -3
  331. package/dist/module/form-control-date2.js +3 -2
  332. package/dist/module/form-control-file-v22.js +1 -1
  333. package/dist/module/form-control-file2.js +3 -2
  334. package/dist/module/form-control-monetary-provisioning2.js +4 -3
  335. package/dist/module/form-control-monetary2.js +4 -3
  336. package/dist/module/form-control-number-masked2.js +3 -2
  337. package/dist/module/form-control-number.js +4 -3
  338. package/dist/module/form-control-radio2.js +3 -3
  339. package/dist/module/form-control-select2.js +3 -2
  340. package/dist/module/form-control-text2.js +3 -2
  341. package/dist/module/form-control-textarea2.js +3 -3
  342. package/dist/module/get-payment-details.js +2 -3
  343. package/dist/module/get-subaccounts.js +1 -2
  344. package/dist/module/gross-payment-chart-core2.js +2 -2
  345. package/dist/module/hidden-input2.js +2 -2
  346. package/dist/module/identity-address-form.js +1 -1
  347. package/dist/module/iframe-input2.js +4 -4
  348. package/dist/module/justifi-business-form.js +2 -2
  349. package/dist/module/justifi-button2.js +1 -1
  350. package/dist/module/justifi-checkout.js +3 -2
  351. package/dist/module/justifi-checkouts-list-filters.js +4 -4
  352. package/dist/module/justifi-checkouts-list.js +4 -4
  353. package/dist/module/justifi-dispute-management.js +2 -3
  354. package/dist/module/justifi-gross-payment-chart.js +0 -1
  355. package/dist/module/justifi-header2.js +7 -3
  356. package/dist/module/justifi-order-terminals.js +5 -4
  357. package/dist/module/justifi-payment-provisioning.js +1 -2
  358. package/dist/module/justifi-payment-transactions-list.js +6 -5
  359. package/dist/module/justifi-payments-list-filters.js +4 -3
  360. package/dist/module/justifi-payments-list.js +4 -4
  361. package/dist/module/justifi-payout-details.js +2 -3
  362. package/dist/module/justifi-payout-transactions-list.js +6 -5
  363. package/dist/module/justifi-payouts-list-filters.js +4 -3
  364. package/dist/module/justifi-payouts-list.js +4 -4
  365. package/dist/module/justifi-radio-list-item.d.ts +11 -0
  366. package/dist/module/justifi-radio-list-item.js +6 -0
  367. package/dist/module/justifi-radio-list-item2.js +55 -0
  368. package/dist/module/justifi-refund-payment.js +2 -2
  369. package/dist/module/justifi-saved-payment-method.js +2 -2
  370. package/dist/module/justifi-season-interruption-insurance.js +1 -2
  371. package/dist/module/justifi-skeleton.js +1 -1
  372. package/dist/module/justifi-terminal-orders-list-filters.js +5 -5
  373. package/dist/module/justifi-terminal-orders-list.js +4 -4
  374. package/dist/module/justifi-terminals-list-filters.js +4 -4
  375. package/dist/module/justifi-terminals-list.js +4 -4
  376. package/dist/module/justifi-tokenize-payment-method.js +285 -47
  377. package/dist/module/legal-address-form-step.js +1 -1
  378. package/dist/module/legal-address-form.js +1 -1
  379. package/dist/module/modular-checkout.js +9 -3
  380. package/dist/module/owner-form-core2.js +3 -2
  381. package/dist/module/owner-form-inputs2.js +1 -1
  382. package/dist/module/owner-form.js +1 -1
  383. package/dist/module/package.js +1 -1
  384. package/dist/module/pagination-menu2.js +1 -1
  385. package/dist/module/parts.js +1 -1
  386. package/dist/module/payment-details-core2.js +10 -9
  387. package/dist/module/payment-method-option-utils.js +2 -10
  388. package/dist/module/payment-method-option2.js +3 -2
  389. package/dist/module/payment-provisioning-core.js +2 -1
  390. package/dist/module/payment-provisioning-form-buttons.js +2 -1
  391. package/dist/module/payment-provisioning-form-steps.js +1 -1
  392. package/dist/module/payment-provisioning-loading.js +1 -0
  393. package/dist/module/payment.service.js +0 -1
  394. package/dist/module/payments-list-core2.js +5 -4
  395. package/dist/module/payout-details-core2.js +5 -4
  396. package/dist/module/payout.service.js +0 -1
  397. package/dist/module/payouts-list-core2.js +5 -4
  398. package/dist/module/postal-code-form.js +4 -2
  399. package/dist/module/product-or-service.js +1 -1
  400. package/dist/module/refund-policy.js +1 -1
  401. package/dist/module/save-new-payment-method.js +2 -1
  402. package/dist/module/saved-payment-methods.js +2 -1
  403. package/dist/module/season-interruption-insurance-core.js +2 -1
  404. package/dist/module/sezzle-payment-method.js +2 -1
  405. package/dist/module/shipping-details.js +1 -1
  406. package/dist/module/spinner.js +1 -1
  407. package/dist/module/summary.js +2 -1
  408. package/dist/module/table-filters-menu2.js +1 -1
  409. package/dist/module/table.js +1 -1
  410. package/dist/module/terminal-orders-list-core2.js +6 -5
  411. package/dist/module/terminal-quantity-selector2.js +2 -2
  412. package/dist/module/terminal.service.js +0 -1
  413. package/dist/module/terminals-list-core2.js +5 -4
  414. package/dist/module/utils2.js +2 -1675
  415. package/dist/types/components/checkout/billing-form/billing-form.d.ts +3 -9
  416. package/dist/types/components/checkout/checkout.d.ts +1 -1
  417. package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -0
  418. package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +2 -0
  419. package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +1 -0
  420. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +37 -14
  421. package/dist/types/components.d.ts +68 -112
  422. package/dist/types/ui-components/index.d.ts +1 -0
  423. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +12 -0
  424. package/dist/webcomponents/p-072d93c9.entry.js +1 -0
  425. package/dist/webcomponents/{p-ae00a6f3.entry.js → p-0dcc215b.entry.js} +1 -1
  426. package/dist/webcomponents/p-0e6797c4.entry.js +1 -0
  427. package/dist/webcomponents/p-0fc026aa.entry.js +1 -0
  428. package/dist/webcomponents/p-18aa8190.entry.js +1 -0
  429. package/dist/webcomponents/{p-7c63d61d.entry.js → p-19c07145.entry.js} +1 -1
  430. package/dist/webcomponents/p-1Or21UzV.js +1 -0
  431. package/dist/webcomponents/{p-50bfec55.entry.js → p-1b7b7210.entry.js} +1 -1
  432. package/dist/webcomponents/p-1f76ae29.entry.js +1 -0
  433. package/dist/webcomponents/p-20eb7015.entry.js +1 -0
  434. package/dist/webcomponents/{p-0e4e662b.entry.js → p-2437703b.entry.js} +1 -1
  435. package/dist/webcomponents/{p-a95741ee.entry.js → p-24f30623.entry.js} +1 -1
  436. package/dist/webcomponents/p-2a5ac7c9.entry.js +1 -0
  437. package/dist/webcomponents/p-2abae807.entry.js +1 -0
  438. package/dist/webcomponents/{p-2f482f5b.entry.js → p-351ffd2a.entry.js} +1 -1
  439. package/dist/webcomponents/p-35411771.entry.js +1 -0
  440. package/dist/webcomponents/{p-05c604d2.entry.js → p-366dba79.entry.js} +1 -1
  441. package/dist/webcomponents/p-3add112c.entry.js +1 -0
  442. package/dist/webcomponents/p-48e406f1.entry.js +1 -0
  443. package/dist/webcomponents/p-4d0373a7.entry.js +1 -0
  444. package/dist/webcomponents/p-55iuf7iW.js +1 -0
  445. package/dist/webcomponents/p-5cb87816.entry.js +1 -0
  446. package/dist/webcomponents/p-628cf20a.entry.js +1 -0
  447. package/dist/webcomponents/p-66422cbd.entry.js +1 -0
  448. package/dist/webcomponents/p-6f397c80.entry.js +1 -0
  449. package/dist/webcomponents/p-7929bdae.entry.js +1 -0
  450. package/dist/webcomponents/{p-30d3d0cd.entry.js → p-7a52bdb5.entry.js} +1 -1
  451. package/dist/webcomponents/p-7e24a1f7.entry.js +1 -0
  452. package/dist/webcomponents/p-8027e13f.entry.js +1 -0
  453. package/dist/webcomponents/p-86b166eb.entry.js +1 -0
  454. package/dist/webcomponents/p-889e8be8.entry.js +1 -0
  455. package/dist/webcomponents/p-8a1171de.entry.js +1 -0
  456. package/dist/webcomponents/{p-0890869b.entry.js → p-8aefc49f.entry.js} +4 -4
  457. package/dist/webcomponents/p-8b2f81b4.entry.js +1 -0
  458. package/dist/webcomponents/p-97429fb4.entry.js +1 -0
  459. package/dist/webcomponents/{p-a27405fb.entry.js → p-98b6943a.entry.js} +1 -1
  460. package/dist/webcomponents/{p-5d145701.entry.js → p-9bf095d2.entry.js} +1 -1
  461. package/dist/webcomponents/p-9c1e3fb8.entry.js +1 -0
  462. package/dist/webcomponents/{p-Dh6FEdp8.js → p-AbSg_vYv.js} +1 -1
  463. package/dist/webcomponents/p-B2uBb14Y.js +1 -0
  464. package/dist/webcomponents/p-BF51n3KG.js +1 -0
  465. package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
  466. package/dist/webcomponents/p-BJuv5Y2i.js +1 -0
  467. package/dist/webcomponents/p-BQLEjYfZ.js +1 -0
  468. package/dist/webcomponents/p-BRJ4FIJH.js +1 -0
  469. package/dist/webcomponents/p-BeNhCG1Q.js +1 -0
  470. package/dist/webcomponents/{p-BqK0rIZQ.js → p-BfEOvp9h.js} +1 -1
  471. package/dist/webcomponents/p-ButA5T4e.js +1 -0
  472. package/dist/webcomponents/p-C3e-DgwK.js +1 -0
  473. package/dist/webcomponents/{p-DAVX1-sW.js → p-CDIPkflV.js} +1 -1
  474. package/dist/webcomponents/{p-D3G5aVLy.js → p-CKg_luIy.js} +1 -1
  475. package/dist/webcomponents/{p-DDpc1huF.js → p-Ce8QXyUM.js} +1 -1
  476. package/dist/webcomponents/p-ChzWF0s3.js +1 -0
  477. package/dist/webcomponents/p-CjAMuB2J.js +1 -0
  478. package/dist/webcomponents/p-ClSZshaa.js +1 -0
  479. package/dist/webcomponents/{p-DAoffYFW.js → p-D0I-tRSs.js} +1 -1
  480. package/dist/webcomponents/p-D0Ko1H7J.js +1 -0
  481. package/dist/webcomponents/p-DC63XVwu.js +1 -0
  482. package/dist/webcomponents/p-DPfZxsq9.js +1 -0
  483. package/dist/webcomponents/{p-DHvfrLVU.js → p-DPnS0F0Y.js} +1 -1
  484. package/dist/webcomponents/p-DR0bMp9p.js +1 -0
  485. package/dist/webcomponents/p-DZR542ci.js +1 -0
  486. package/dist/webcomponents/p-Dn0KGDtq.js +1 -0
  487. package/dist/webcomponents/p-DniBAXrh.js +1 -0
  488. package/dist/webcomponents/{p-1adN6FVa.js → p-DpUqxsf5.js} +1 -1
  489. package/dist/webcomponents/p-DxEnw2tJ.js +1 -0
  490. package/dist/webcomponents/{p-fUv1jFAw.js → p-EAEmpCru.js} +1 -1
  491. package/dist/webcomponents/p-Ph6Ebeu2.js +1 -0
  492. package/dist/webcomponents/p-RXUoM7A2.js +1 -0
  493. package/dist/webcomponents/{p-683630d0.entry.js → p-a1c7c873.entry.js} +1 -1
  494. package/dist/webcomponents/{p-64a46b8a.entry.js → p-a95db9a6.entry.js} +1 -1
  495. package/dist/webcomponents/{p-ac538ffd.entry.js → p-a9ed792e.entry.js} +1 -1
  496. package/dist/webcomponents/p-acf4c099.entry.js +1 -0
  497. package/dist/webcomponents/p-b47000f7.entry.js +1 -0
  498. package/dist/webcomponents/{p-cb7c712f.entry.js → p-b860ec37.entry.js} +1 -1
  499. package/dist/webcomponents/p-b893d5fa.entry.js +1 -0
  500. package/dist/webcomponents/p-b9d1d9dd.entry.js +1 -0
  501. package/dist/webcomponents/p-baa04544.entry.js +1 -0
  502. package/dist/webcomponents/{p-1bddf354.entry.js → p-bbd0aa4e.entry.js} +1 -1
  503. package/dist/webcomponents/p-bf2ba40d.entry.js +1 -0
  504. package/dist/webcomponents/p-c06bd8ea.entry.js +1 -0
  505. package/dist/webcomponents/p-c0955693.entry.js +1 -0
  506. package/dist/webcomponents/{p-7d2de2d4.entry.js → p-c0bd6405.entry.js} +1 -1
  507. package/dist/webcomponents/p-c6473b9b.entry.js +1 -0
  508. package/dist/webcomponents/p-c70dc6bd.entry.js +1 -0
  509. package/dist/webcomponents/p-ca6d05f9.entry.js +1 -0
  510. package/dist/webcomponents/p-d1c1c642.entry.js +1 -0
  511. package/dist/webcomponents/p-d3c966f4.entry.js +1 -0
  512. package/dist/webcomponents/{p-f5d12ae3.entry.js → p-d49b80b1.entry.js} +1 -1
  513. package/dist/webcomponents/p-d69d09e6.entry.js +1 -0
  514. package/dist/webcomponents/p-dd3749ed.entry.js +1 -0
  515. package/dist/webcomponents/p-dfaf5b14.entry.js +1 -0
  516. package/dist/webcomponents/{p-e48a2d25.entry.js → p-e2ee826e.entry.js} +1 -1
  517. package/dist/webcomponents/p-eccb77fa.entry.js +1 -0
  518. package/dist/webcomponents/p-ede5eb9d.entry.js +1 -0
  519. package/dist/webcomponents/p-eefe4d71.entry.js +1 -0
  520. package/dist/webcomponents/p-f4f3bca9.entry.js +1 -0
  521. package/dist/webcomponents/{p-d7f62287.entry.js → p-f67133f0.entry.js} +1 -1
  522. package/dist/webcomponents/{p-70774a5a.entry.js → p-f6ad1d58.entry.js} +1 -1
  523. package/dist/webcomponents/{p-a02ce003.entry.js → p-f9bddc04.entry.js} +1 -1
  524. package/dist/webcomponents/p-rPeW3G6n.js +1 -0
  525. package/dist/webcomponents/p-xIyLUOJ6.js +1 -0
  526. package/dist/webcomponents/webcomponents.esm.js +1 -1
  527. package/package.json +1 -1
  528. package/dist/cjs/Payment-D5UynU2f.js +0 -151
  529. package/dist/cjs/header-3-BnKbOjvz.js +0 -10
  530. package/dist/cjs/justifi-billing-form.cjs.entry.js +0 -76
  531. package/dist/cjs/justifi-new-payment-method.cjs.entry.js +0 -99
  532. package/dist/cjs/justifi-payment-method-options.cjs.entry.js +0 -76
  533. package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +0 -117
  534. package/dist/collection/components/checkout/new-payment-method.js +0 -378
  535. package/dist/collection/components/checkout/payment-method-options.js +0 -421
  536. package/dist/esm/Payment-00TwhwCx.js +0 -149
  537. package/dist/esm/header-3-Bsi4loU1.js +0 -8
  538. package/dist/esm/justifi-billing-form.entry.js +0 -74
  539. package/dist/esm/justifi-new-payment-method.entry.js +0 -97
  540. package/dist/esm/justifi-payment-method-options.entry.js +0 -74
  541. package/dist/esm/justifi-saved-payment-methods_2.entry.js +0 -114
  542. package/dist/module/Payment.js +0 -204
  543. package/dist/module/header-3.js +0 -8
  544. package/dist/module/justifi-new-payment-method.d.ts +0 -11
  545. package/dist/module/justifi-new-payment-method.js +0 -219
  546. package/dist/module/justifi-payment-method-options.d.ts +0 -11
  547. package/dist/module/justifi-payment-method-options.js +0 -6
  548. package/dist/module/payment-method-options.js +0 -129
  549. package/dist/types/components/checkout/new-payment-method.d.ts +0 -31
  550. package/dist/types/components/checkout/payment-method-options.d.ts +0 -32
  551. package/dist/webcomponents/p-00d7c2e6.entry.js +0 -1
  552. package/dist/webcomponents/p-03e9a98c.entry.js +0 -1
  553. package/dist/webcomponents/p-05fc864a.entry.js +0 -1
  554. package/dist/webcomponents/p-09c24135.entry.js +0 -1
  555. package/dist/webcomponents/p-0f511cc1.entry.js +0 -1
  556. package/dist/webcomponents/p-100008fa.entry.js +0 -1
  557. package/dist/webcomponents/p-17825dfb.entry.js +0 -1
  558. package/dist/webcomponents/p-18b941d3.entry.js +0 -1
  559. package/dist/webcomponents/p-19308a1b.entry.js +0 -1
  560. package/dist/webcomponents/p-1a7942f7.entry.js +0 -1
  561. package/dist/webcomponents/p-1d1d956b.entry.js +0 -1
  562. package/dist/webcomponents/p-26bf2fda.entry.js +0 -1
  563. package/dist/webcomponents/p-2d3949f7.entry.js +0 -1
  564. package/dist/webcomponents/p-326f4860.entry.js +0 -1
  565. package/dist/webcomponents/p-359b8f54.entry.js +0 -1
  566. package/dist/webcomponents/p-37aeeeee.entry.js +0 -1
  567. package/dist/webcomponents/p-4887bcb3.entry.js +0 -1
  568. package/dist/webcomponents/p-54406229.entry.js +0 -1
  569. package/dist/webcomponents/p-56af4fd0.entry.js +0 -1
  570. package/dist/webcomponents/p-59656e08.entry.js +0 -1
  571. package/dist/webcomponents/p-5e813b93.entry.js +0 -1
  572. package/dist/webcomponents/p-66861ea5.entry.js +0 -1
  573. package/dist/webcomponents/p-6bd83369.entry.js +0 -1
  574. package/dist/webcomponents/p-6ee2b118.entry.js +0 -1
  575. package/dist/webcomponents/p-73afde1b.entry.js +0 -1
  576. package/dist/webcomponents/p-73bbd71c.entry.js +0 -1
  577. package/dist/webcomponents/p-74f78a4e.entry.js +0 -1
  578. package/dist/webcomponents/p-755a8d9b.entry.js +0 -1
  579. package/dist/webcomponents/p-7c456c10.entry.js +0 -1
  580. package/dist/webcomponents/p-7c6d7283.entry.js +0 -1
  581. package/dist/webcomponents/p-7e9832b3.entry.js +0 -1
  582. package/dist/webcomponents/p-810cad17.entry.js +0 -1
  583. package/dist/webcomponents/p-81478598.entry.js +0 -1
  584. package/dist/webcomponents/p-91a2707a.entry.js +0 -1
  585. package/dist/webcomponents/p-9348a7c8.entry.js +0 -1
  586. package/dist/webcomponents/p-967c3374.entry.js +0 -1
  587. package/dist/webcomponents/p-9REosSLu.js +0 -1
  588. package/dist/webcomponents/p-9c27f87f.entry.js +0 -1
  589. package/dist/webcomponents/p-B9ROmZzw.js +0 -1
  590. package/dist/webcomponents/p-BCPBc18Y.js +0 -1
  591. package/dist/webcomponents/p-BQ5bL1Y5.js +0 -1
  592. package/dist/webcomponents/p-BSW9VS7r.js +0 -1
  593. package/dist/webcomponents/p-BSexQ2qc.js +0 -1
  594. package/dist/webcomponents/p-Bc5u1WjM.js +0 -1
  595. package/dist/webcomponents/p-BjQrbohd.js +0 -1
  596. package/dist/webcomponents/p-BxWsrx5h.js +0 -1
  597. package/dist/webcomponents/p-By9Lz2e0.js +0 -1
  598. package/dist/webcomponents/p-CEp46FZK.js +0 -1
  599. package/dist/webcomponents/p-CMNxLEJP.js +0 -1
  600. package/dist/webcomponents/p-CZItg0Yo.js +0 -1
  601. package/dist/webcomponents/p-D7WGjeDy.js +0 -1
  602. package/dist/webcomponents/p-DIDbcp63.js +0 -1
  603. package/dist/webcomponents/p-DR0dQ8Fv.js +0 -1
  604. package/dist/webcomponents/p-DUqRxn4Y.js +0 -1
  605. package/dist/webcomponents/p-DbcOhajT.js +0 -1
  606. package/dist/webcomponents/p-DhAmsAOH.js +0 -1
  607. package/dist/webcomponents/p-DoEkFs2i.js +0 -1
  608. package/dist/webcomponents/p-DvXSA0b0.js +0 -1
  609. package/dist/webcomponents/p-a05062d8.entry.js +0 -1
  610. package/dist/webcomponents/p-a2f0d61c.entry.js +0 -1
  611. package/dist/webcomponents/p-b193bf46.entry.js +0 -1
  612. package/dist/webcomponents/p-b398856f.entry.js +0 -1
  613. package/dist/webcomponents/p-d33baab9.entry.js +0 -1
  614. package/dist/webcomponents/p-d3f438ca.entry.js +0 -1
  615. package/dist/webcomponents/p-d5b3c65c.entry.js +0 -1
  616. package/dist/webcomponents/p-d62e6c16.entry.js +0 -1
  617. package/dist/webcomponents/p-eba620cd.entry.js +0 -1
  618. package/dist/webcomponents/p-ecdda6e6.entry.js +0 -1
  619. package/dist/webcomponents/p-f24e201f.entry.js +0 -1
  620. package/dist/webcomponents/p-m2jmX-Hz.js +0 -1
  621. package/dist/webcomponents/p-sT4o5vru.js +0 -1
  622. package/dist/webcomponents/p-ys9CWfNG.js +0 -1
  623. package/dist/webcomponents/p-zucQG3cz.js +0 -1
@@ -1,73 +1,227 @@
1
1
  import { h } from "@stencil/core";
2
- import { Button, StyledHost } from "../../ui-components";
2
+ import { StyledHost } from "../../ui-components";
3
3
  import { checkPkgVersion } from "../../utils/check-pkg-version";
4
4
  import JustifiAnalytics from "../../api/Analytics";
5
+ import { PaymentMethodTypes } from "../../api/Payment";
5
6
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api";
6
7
  import { checkoutStore } from "../../store/checkout.store";
8
+ // Constants
9
+ const PAYMENT_METHOD_TYPE_LABELS = {
10
+ [PaymentMethodTypes.bankAccount]: 'New bank account',
11
+ [PaymentMethodTypes.card]: 'New credit or debit card',
12
+ };
13
+ const ERROR_MESSAGES = {
14
+ AUTH_TOKEN_REQUIRED: 'Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
15
+ ACCOUNT_ID_REQUIRED: 'Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
16
+ FORM_NOT_READY: 'Payment form not ready',
17
+ VALIDATION_ERROR: 'Validation error',
18
+ };
7
19
  export class TokenizePaymentMethod {
8
20
  constructor() {
9
- this.submitButtonText = 'Submit';
10
21
  this.isLoading = false;
22
+ this.saveNewPaymentMethodChecked = false;
23
+ this.submitButtonText = 'Submit';
11
24
  }
12
25
  componentWillLoad() {
13
26
  checkPkgVersion();
14
27
  this.analytics = new JustifiAnalytics(this);
15
- if (!this.authToken) {
16
- this.authToken = checkoutStore.authToken;
17
- }
18
- if (!this.accountId) {
19
- this.accountId = checkoutStore.accountId;
20
- }
28
+ this.validateRequiredProps();
29
+ }
30
+ connectedCallback() {
31
+ this.setDefaultSelectedPaymentMethod();
21
32
  }
22
33
  disconnectedCallback() {
23
34
  var _a;
24
35
  (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
25
36
  }
26
- ;
37
+ paymentMethodsChanged() {
38
+ this.setDefaultSelectedPaymentMethod();
39
+ }
40
+ handleRadioClick(event) {
41
+ this.selectedPaymentMethodId = event.detail;
42
+ }
43
+ handleCheckboxChanged(event) {
44
+ this.saveNewPaymentMethodChecked = event.detail;
45
+ }
46
+ async fillBillingForm(fields) {
47
+ var _a;
48
+ (_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.fill(fields);
49
+ }
27
50
  async tokenizePaymentMethod(event) {
28
- event && event.preventDefault();
51
+ event === null || event === void 0 ? void 0 : event.preventDefault();
29
52
  this.isLoading = true;
30
- let tokenizeResponse;
31
53
  try {
32
- tokenizeResponse = await this.paymentMethodOptionsRef.resolvePaymentMethod({ isValid: true });
33
- if (tokenizeResponse.error) {
54
+ const validation = await this.validate();
55
+ if (!validation.isValid) {
34
56
  this.errorEvent.emit({
57
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
58
+ message: ERROR_MESSAGES.VALIDATION_ERROR,
59
+ });
60
+ this.isLoading = false;
61
+ return;
62
+ }
63
+ const tokenizeResponse = await this.resolvePaymentMethod({ isValid: true });
64
+ if (tokenizeResponse.error) {
65
+ this.emitError({
35
66
  errorCode: tokenizeResponse.error.code,
36
67
  message: tokenizeResponse.error.message,
37
- severity: ComponentErrorSeverity.ERROR,
38
68
  });
39
69
  }
70
+ this.submitEvent.emit({ response: tokenizeResponse });
71
+ return tokenizeResponse;
40
72
  }
41
73
  catch (error) {
42
- const errorData = {
74
+ const errorResponse = this.createErrorResponse(ComponentErrorCodes.TOKENIZE_ERROR, error.message);
75
+ this.emitError({
43
76
  errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
44
77
  message: error.message,
45
- severity: ComponentErrorSeverity.ERROR,
46
- };
47
- this.errorEvent.emit(errorData);
78
+ });
79
+ this.submitEvent.emit({ response: errorResponse });
80
+ return errorResponse;
48
81
  }
49
82
  finally {
50
- this.submitEvent.emit({ response: tokenizeResponse });
51
83
  this.isLoading = false;
52
- return tokenizeResponse;
53
84
  }
54
85
  }
55
- async fillBillingForm(fields) {
56
- this.paymentMethodOptionsRef.fillBillingForm(fields);
57
- }
58
86
  async validate() {
59
- return this.paymentMethodOptionsRef.validate();
87
+ if (!this.areFormsReady()) {
88
+ return { isValid: false, errors: { general: ERROR_MESSAGES.FORM_NOT_READY } };
89
+ }
90
+ const [billingValidation, paymentMethodValidation] = await Promise.all([
91
+ this.billingFormRef.validate(),
92
+ this.paymentMethodFormRef.validate(),
93
+ ]);
94
+ return {
95
+ isValid: billingValidation.isValid && paymentMethodValidation.isValid,
96
+ errors: Object.assign(Object.assign({}, billingValidation.errors), paymentMethodValidation.errors),
97
+ };
98
+ }
99
+ validateRequiredProps() {
100
+ if (!this.authToken && !checkoutStore.authToken) {
101
+ this.emitError({
102
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
103
+ message: ERROR_MESSAGES.AUTH_TOKEN_REQUIRED,
104
+ });
105
+ }
106
+ if (!this.accountId && !checkoutStore.accountId) {
107
+ this.emitError({
108
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
109
+ message: ERROR_MESSAGES.ACCOUNT_ID_REQUIRED,
110
+ });
111
+ }
112
+ }
113
+ setDefaultSelectedPaymentMethod() {
114
+ if (!this.selectedPaymentMethodId) {
115
+ if (!this.disableCreditCard) {
116
+ this.selectedPaymentMethodId = PaymentMethodTypes.card;
117
+ }
118
+ else if (!this.disableBankAccount) {
119
+ this.selectedPaymentMethodId = PaymentMethodTypes.bankAccount;
120
+ }
121
+ }
122
+ }
123
+ get availablePaymentMethods() {
124
+ const methods = [];
125
+ if (!this.disableCreditCard) {
126
+ methods.push(PaymentMethodTypes.card);
127
+ }
128
+ if (!this.disableBankAccount) {
129
+ methods.push(PaymentMethodTypes.bankAccount);
130
+ }
131
+ return methods;
132
+ }
133
+ areFormsReady() {
134
+ return !!(this.billingFormRef && this.paymentMethodFormRef);
135
+ }
136
+ emitError(errorData) {
137
+ this.errorEvent.emit(Object.assign(Object.assign({}, errorData), { severity: ComponentErrorSeverity.ERROR }));
138
+ }
139
+ createErrorResponse(code, message) {
140
+ return {
141
+ error: {
142
+ code: code,
143
+ message,
144
+ decline_code: undefined,
145
+ },
146
+ };
147
+ }
148
+ async resolvePaymentMethod(insuranceValidation) {
149
+ if (!this.areFormsReady()) {
150
+ return this.createErrorResponse('form_not_ready', ERROR_MESSAGES.FORM_NOT_READY);
151
+ }
152
+ try {
153
+ const validation = await this.validate();
154
+ if (!validation.isValid || !insuranceValidation.isValid) {
155
+ const errorMessage = Object.values(validation.errors)[0] || ERROR_MESSAGES.VALIDATION_ERROR;
156
+ return {
157
+ validationError: true,
158
+ error: {
159
+ code: 'validation_error',
160
+ message: String(errorMessage),
161
+ decline_code: undefined,
162
+ },
163
+ };
164
+ }
165
+ return await this.performTokenization();
166
+ }
167
+ catch (error) {
168
+ return { error };
169
+ }
170
+ }
171
+ async performTokenization() {
172
+ var _a, _b;
173
+ const tokenizeResponse = await this.tokenize();
174
+ if (tokenizeResponse.error) {
175
+ return { error: tokenizeResponse.error };
176
+ }
177
+ const tokenizeResponseData = tokenizeResponse.data;
178
+ return {
179
+ token: ((_a = tokenizeResponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeResponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
180
+ data: tokenizeResponseData,
181
+ };
182
+ }
183
+ async tokenize() {
184
+ try {
185
+ const billingFormFieldValues = await this.billingFormRef.getValues();
186
+ const config = {
187
+ clientId: this.authToken || checkoutStore.authToken,
188
+ account: this.accountId || checkoutStore.accountId,
189
+ paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
190
+ };
191
+ return await this.paymentMethodFormRef.tokenize(config);
192
+ }
193
+ catch (error) {
194
+ return error;
195
+ }
196
+ }
197
+ buildPaymentMethodMetadata(billingFormFieldValues) {
198
+ return this.saveNewPaymentMethodChecked
199
+ ? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupId }) : Object.assign({}, billingFormFieldValues);
200
+ }
201
+ get shouldHideRadioInput() {
202
+ const showCard = !this.disableCreditCard;
203
+ const showAch = !this.disableBankAccount;
204
+ return !showAch || !showCard;
205
+ }
206
+ renderPaymentMethodOption(paymentMethodType) {
207
+ const isSelected = this.selectedPaymentMethodId === paymentMethodType;
208
+ return (h("div", { class: "payment-method" }, h("justifi-radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
209
+ }
210
+ renderSelectedPaymentMethodForm(paymentMethodId) {
211
+ return (h("div", { class: "mt-4 pb-4" }, this.renderPaymentMethodForm(paymentMethodId), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodId }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
212
+ }
213
+ renderPaymentMethodForm(paymentMethodId) {
214
+ return paymentMethodId === PaymentMethodTypes.card ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
60
215
  }
61
216
  render() {
62
- return (h(StyledHost, { key: '0eea98bc9927bbd48841728ece5dd19bd23aa2dc' }, h("form", { key: '696040e74f6fe5b776edf8017d400165752e9715' }, h("fieldset", { key: 'af96f0fc95db821ce53c28496aef352416ff8a0e' }, h("div", { key: '68af7be6aac098150edce72a7372ed526e94a212', class: "row gy-3" }, h("div", { key: 'a9f477f7e85dd33c113ab95efd8d03aa7ce84049', class: "col-12" }, h("justifi-payment-method-options", { key: '2ec00aa262d3bceee0768a0a0c6eff499e0295c4', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, authToken: this.authToken, "account-id": this.accountId })), h("div", { key: 'cd878391ee2af083a685daf2322cddc859398a3c', class: "col-12" }, h(Button, { key: '29bf32b687e73c00c1e6519d99b9dcd75dc968e4', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText)))))));
217
+ return (h(StyledHost, { key: 'c3c12d1c58540f7fe794bc999e8cc8f47e9e1f8c' }, h("form", { key: 'aeb7843431a96feb79da49f1c28e0de6dc2d65c4' }, h("fieldset", { key: 'e890fbe8bb05bb6d74f8cabc9f4eb4feee4284ee' }, h("div", { key: '5abfab85b050239deea655dc777ff026b6627b8b', class: "row gy-3" }, h("div", { key: '9bb9dd865d6b2162d19a773ca232934da71bd792', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'aac644f69aa0e68632b850fc0f5c1442e26979e4', class: "col-12" }, h("justifi-button", { key: 'd2a35bd402b0d45dbcb48fefd44a624d4ab27a64', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton })))))));
63
218
  }
64
219
  static get is() { return "justifi-tokenize-payment-method"; }
65
- static get encapsulation() { return "shadow"; }
66
220
  static get properties() {
67
221
  return {
68
- "authToken": {
222
+ "accountId": {
69
223
  "type": "string",
70
- "attribute": "auth-token",
224
+ "attribute": "account-id",
71
225
  "mutable": false,
72
226
  "complexType": {
73
227
  "original": "string",
@@ -84,9 +238,9 @@ export class TokenizePaymentMethod {
84
238
  "setter": false,
85
239
  "reflect": false
86
240
  },
87
- "accountId": {
241
+ "authToken": {
88
242
  "type": "string",
89
- "attribute": "account-id",
243
+ "attribute": "auth-token",
90
244
  "mutable": false,
91
245
  "complexType": {
92
246
  "original": "string",
@@ -103,17 +257,17 @@ export class TokenizePaymentMethod {
103
257
  "setter": false,
104
258
  "reflect": false
105
259
  },
106
- "paymentMethodGroupId": {
107
- "type": "string",
108
- "attribute": "payment-method-group-id",
260
+ "disableBankAccount": {
261
+ "type": "boolean",
262
+ "attribute": "disable-bank-account",
109
263
  "mutable": false,
110
264
  "complexType": {
111
- "original": "string",
112
- "resolved": "string",
265
+ "original": "boolean",
266
+ "resolved": "boolean",
113
267
  "references": {}
114
268
  },
115
269
  "required": false,
116
- "optional": false,
270
+ "optional": true,
117
271
  "docs": {
118
272
  "tags": [],
119
273
  "text": ""
@@ -122,29 +276,28 @@ export class TokenizePaymentMethod {
122
276
  "setter": false,
123
277
  "reflect": false
124
278
  },
125
- "submitButtonText": {
126
- "type": "string",
127
- "attribute": "submit-button-text",
279
+ "disableCreditCard": {
280
+ "type": "boolean",
281
+ "attribute": "disable-credit-card",
128
282
  "mutable": false,
129
283
  "complexType": {
130
- "original": "string",
131
- "resolved": "string",
284
+ "original": "boolean",
285
+ "resolved": "boolean",
132
286
  "references": {}
133
287
  },
134
288
  "required": false,
135
- "optional": false,
289
+ "optional": true,
136
290
  "docs": {
137
291
  "tags": [],
138
292
  "text": ""
139
293
  },
140
294
  "getter": false,
141
295
  "setter": false,
142
- "reflect": false,
143
- "defaultValue": "'Submit'"
296
+ "reflect": false
144
297
  },
145
- "disableCreditCard": {
298
+ "hideBankAccountBillingForm": {
146
299
  "type": "boolean",
147
- "attribute": "disable-credit-card",
300
+ "attribute": "hide-bank-account-billing-form",
148
301
  "mutable": false,
149
302
  "complexType": {
150
303
  "original": "boolean",
@@ -161,9 +314,9 @@ export class TokenizePaymentMethod {
161
314
  "setter": false,
162
315
  "reflect": false
163
316
  },
164
- "disableBankAccount": {
317
+ "hideCardBillingForm": {
165
318
  "type": "boolean",
166
- "attribute": "disable-bank-account",
319
+ "attribute": "hide-card-billing-form",
167
320
  "mutable": false,
168
321
  "complexType": {
169
322
  "original": "boolean",
@@ -199,17 +352,17 @@ export class TokenizePaymentMethod {
199
352
  "setter": false,
200
353
  "reflect": false
201
354
  },
202
- "hideCardBillingForm": {
203
- "type": "boolean",
204
- "attribute": "hide-card-billing-form",
355
+ "paymentMethodGroupId": {
356
+ "type": "string",
357
+ "attribute": "payment-method-group-id",
205
358
  "mutable": false,
206
359
  "complexType": {
207
- "original": "boolean",
208
- "resolved": "boolean",
360
+ "original": "string",
361
+ "resolved": "string",
209
362
  "references": {}
210
363
  },
211
364
  "required": false,
212
- "optional": true,
365
+ "optional": false,
213
366
  "docs": {
214
367
  "tags": [],
215
368
  "text": ""
@@ -218,30 +371,33 @@ export class TokenizePaymentMethod {
218
371
  "setter": false,
219
372
  "reflect": false
220
373
  },
221
- "hideBankAccountBillingForm": {
222
- "type": "boolean",
223
- "attribute": "hide-bank-account-billing-form",
374
+ "submitButtonText": {
375
+ "type": "string",
376
+ "attribute": "submit-button-text",
224
377
  "mutable": false,
225
378
  "complexType": {
226
- "original": "boolean",
227
- "resolved": "boolean",
379
+ "original": "string",
380
+ "resolved": "string",
228
381
  "references": {}
229
382
  },
230
383
  "required": false,
231
- "optional": true,
384
+ "optional": false,
232
385
  "docs": {
233
386
  "tags": [],
234
387
  "text": ""
235
388
  },
236
389
  "getter": false,
237
390
  "setter": false,
238
- "reflect": false
391
+ "reflect": false,
392
+ "defaultValue": "'Submit'"
239
393
  }
240
394
  };
241
395
  }
242
396
  static get states() {
243
397
  return {
244
- "isLoading": {}
398
+ "isLoading": {},
399
+ "selectedPaymentMethodId": {},
400
+ "saveNewPaymentMethodChecked": {}
245
401
  };
246
402
  }
247
403
  static get events() {
@@ -291,12 +447,12 @@ export class TokenizePaymentMethod {
291
447
  }
292
448
  static get methods() {
293
449
  return {
294
- "tokenizePaymentMethod": {
450
+ "fillBillingForm": {
295
451
  "complexType": {
296
- "signature": "(event?: CustomEvent) => Promise<PaymentMethodPayload>",
452
+ "signature": "(fields: BillingFormFields) => Promise<void>",
297
453
  "parameters": [{
298
- "name": "event",
299
- "type": "CustomEvent<any>",
454
+ "name": "fields",
455
+ "type": "BillingFormFields",
300
456
  "docs": ""
301
457
  }],
302
458
  "references": {
@@ -304,34 +460,25 @@ export class TokenizePaymentMethod {
304
460
  "location": "global",
305
461
  "id": "global::Promise"
306
462
  },
307
- "PaymentMethodPayload": {
308
- "location": "import",
309
- "path": "../checkout/payment-method-payload",
310
- "id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
311
- },
312
- "CustomEvent": {
313
- "location": "global",
314
- "id": "global::CustomEvent"
315
- },
316
- "ComponentErrorCodes": {
463
+ "BillingFormFields": {
317
464
  "location": "import",
318
- "path": "../../api",
319
- "id": "src/api/index.ts::ComponentErrorCodes"
465
+ "path": "../../components",
466
+ "id": "src/components.d.ts::BillingFormFields"
320
467
  }
321
468
  },
322
- "return": "Promise<PaymentMethodPayload>"
469
+ "return": "Promise<void>"
323
470
  },
324
471
  "docs": {
325
472
  "text": "",
326
473
  "tags": []
327
474
  }
328
475
  },
329
- "fillBillingForm": {
476
+ "tokenizePaymentMethod": {
330
477
  "complexType": {
331
- "signature": "(fields: BillingFormFields) => Promise<void>",
478
+ "signature": "(event?: MouseEvent) => Promise<PaymentMethodPayload>",
332
479
  "parameters": [{
333
- "name": "fields",
334
- "type": "BillingFormFields",
480
+ "name": "event",
481
+ "type": "MouseEvent",
335
482
  "docs": ""
336
483
  }],
337
484
  "references": {
@@ -339,13 +486,22 @@ export class TokenizePaymentMethod {
339
486
  "location": "global",
340
487
  "id": "global::Promise"
341
488
  },
342
- "BillingFormFields": {
489
+ "PaymentMethodPayload": {
343
490
  "location": "import",
344
- "path": "../../components",
345
- "id": "src/components.d.ts::BillingFormFields"
491
+ "path": "../checkout/payment-method-payload",
492
+ "id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
493
+ },
494
+ "MouseEvent": {
495
+ "location": "global",
496
+ "id": "global::MouseEvent"
497
+ },
498
+ "ComponentErrorCodes": {
499
+ "location": "import",
500
+ "path": "../../api",
501
+ "id": "src/api/index.ts::ComponentErrorCodes"
346
502
  }
347
503
  },
348
- "return": "Promise<void>"
504
+ "return": "Promise<PaymentMethodPayload>"
349
505
  },
350
506
  "docs": {
351
507
  "text": "",
@@ -354,15 +510,19 @@ export class TokenizePaymentMethod {
354
510
  },
355
511
  "validate": {
356
512
  "complexType": {
357
- "signature": "() => Promise<{ isValid: boolean; errors?: any; }>",
513
+ "signature": "() => Promise<ValidationResult>",
358
514
  "parameters": [],
359
515
  "references": {
360
516
  "Promise": {
361
517
  "location": "global",
362
518
  "id": "global::Promise"
519
+ },
520
+ "ValidationResult": {
521
+ "location": "global",
522
+ "id": "global::ValidationResult"
363
523
  }
364
524
  },
365
- "return": "Promise<{ isValid: boolean; errors?: any; }>"
525
+ "return": "Promise<ValidationResult>"
366
526
  },
367
527
  "docs": {
368
528
  "text": "",
@@ -371,4 +531,28 @@ export class TokenizePaymentMethod {
371
531
  }
372
532
  };
373
533
  }
534
+ static get watchers() {
535
+ return [{
536
+ "propName": "disableCreditCard",
537
+ "methodName": "paymentMethodsChanged"
538
+ }, {
539
+ "propName": "disableBankAccount",
540
+ "methodName": "paymentMethodsChanged"
541
+ }];
542
+ }
543
+ static get listeners() {
544
+ return [{
545
+ "name": "radio-click",
546
+ "method": "handleRadioClick",
547
+ "target": undefined,
548
+ "capture": false,
549
+ "passive": false
550
+ }, {
551
+ "name": "checkboxChanged",
552
+ "method": "handleCheckboxChanged",
553
+ "target": undefined,
554
+ "capture": false,
555
+ "passive": false
556
+ }];
557
+ }
374
558
  }
@@ -80,7 +80,7 @@ export class CustomPopper {
80
80
  this.hideEvent.emit();
81
81
  }
82
82
  render() {
83
- return (h("div", { key: 'ef187a8100be9de010408f04e4f2f65fcfdee096' }, h("style", { key: 'c3e6cd76e7db2703a3b6053a9448290d27f47513' }, `
83
+ return (h("div", { key: '00471f914090d5f7c9c4493334e37bc669178f68' }, h("style", { key: 'e4c72e453b7cbfde820a72c93cbcedc3a1c6d3c7' }, `
84
84
  .popper-content {
85
85
  display: none;
86
86
  }
@@ -88,7 +88,7 @@ export class CustomPopper {
88
88
  display: block;
89
89
  z-index: 1030;
90
90
  }
91
- `), h("div", { key: 'c580384fa4e1bedd9c365c2f29b57bd2639e3aaa', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: 'e60f03801976ec3379e4d6e3118a92c18b5c0549' }))));
91
+ `), h("div", { key: '8677d950b63503711e50a2f3d5b14bd7085f319e', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '54c1259606ca9b91d60f175b1d9981d8871fdd50' }))));
92
92
  }
93
93
  static get is() { return "custom-popper"; }
94
94
  static get properties() {
@@ -31,10 +31,10 @@ export class CheckboxInput {
31
31
  return inputCheckbox;
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: 'cb878f1f74f6b677e33e07b61eb39f1b16c567c1' }, h("div", { key: '167df136f1b44f0bf858d2ed4c8cddf67afe05fa', class: 'form-group d-flex flex-column' }, h("div", { key: '74e3a823e0c6c6a64de50ebb68be2241fb6dd8ba', class: "form-check" }, h("input", { key: '65c82ac502370c5b55800c2190fef383368639cf', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
34
+ return (h(Host, { key: 'f574898ffe8a3d666d4b95721cf4f3f3866f8632' }, h("div", { key: '185ac07832d140b467162e2bdacb90ea0640d460', class: 'form-group d-flex flex-column' }, h("div", { key: 'c610e4c989b6c8529253ef73e39d4e58f0efd1e3', class: "form-check" }, h("input", { key: '7abfbfed27e3ad2c0a46a5f30b0681d54673c1fb', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
35
35
  this.isFocused = false;
36
36
  this.formControlBlur.emit();
37
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '69a428f166d8a46f483c72c954ed6e2b17b81584', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: 'a9baa778379ae26189b96983ee9a3279020b2d94', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'e1d9e8d4996777ec30978ece5b03892044e1a95e', errorText: this.errorText, name: this.name }))));
37
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '9c505e1d0926690eb32d2d9621d6c144cfe27f6a', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: 'fc7933d29f06ef533fe45025184d5c8cdd24cdd1', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '29879fd2d7c04a26eb999bb2f9991bc38515994b', errorText: this.errorText, name: this.name }))));
38
38
  }
39
39
  static get is() { return "form-control-checkbox"; }
40
40
  static get properties() {
@@ -42,10 +42,10 @@ export class DateInput {
42
42
  return part;
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: 'aba03d207c431a08d380ac058af828c295b594f7' }, h("div", { key: 'c1a64293005369e2e31fb5ed0e190c5de03d0ea8', class: "form-group d-flex flex-column" }, h("div", { key: '59688afd0b5e558e185e5e0db079b37a20fd86bb', class: "d-flex gap-2" }, h("label", { key: '1523b0e40973eae06b1667ab903f7fa1f4cfcb11', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'ed2a4f5c67e59b9d3161d83c3d128e04b404f6ff', helpText: this.helpText })), h("input", { key: '747544d1efcd84f71ba2cb918919381f3e93a102', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
45
+ return (h(Host, { key: '42d56dc5835b06508f48e7eb8b5dca063d32dd5f' }, h("div", { key: '9a111c9f90604df8c32f66d1f0bcb05ebca9bad5', class: "form-group d-flex flex-column" }, h("div", { key: 'bec15b51e5d0f03cd4a69abcc3f0ee727262479b', class: "d-flex gap-2" }, h("label", { key: 'b57723374131e145d8c1307d7b94a5240ead9b4b', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '2c03597da3e1db9fafd25a3835ee9b72dcb54a6d', helpText: this.helpText })), h("input", { key: 'b5e7e7b38fc6ba6c68cf1773e8ad68f09663a1cd', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
46
46
  this.isFocused = false;
47
47
  this.formControlBlur.emit();
48
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '5e8ae080996677daf725a6ec33078a2f57a93866', errorText: this.errorText, name: this.name }))));
48
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '4ac80bbeaa886a8822b641f3643c6a36d1bbe111', errorText: this.errorText, name: this.name }))));
49
49
  }
50
50
  static get is() { return "form-control-date"; }
51
51
  static get properties() {
@@ -2,7 +2,7 @@ import { Host, h, } from "@stencil/core";
2
2
  import { FormControlErrorText } from "./form-helpers/form-control-error-text";
3
3
  export class FileInput {
4
4
  render() {
5
- return (h(Host, { key: 'f8c95c4ffb51065ab139413a562a2a9a228860ed', exportparts: "label,input,input-invalid" }, h("div", { key: 'dab3e9b8f432ab84d32c479dc5a7c3aff292d4d1', class: "form-group d-flex flex-column" }, h("div", { key: '48af26bf174f393270da0170470e5ad14c401181', class: "d-flex align-items-start gap-2" }, h("label", { key: '6d6c5c6660f6851322a54af80a220c4c37eaa16a', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '3222a9ba3a6b4ffdeede44ccf1dac6fc7a974c1d', helpText: this.helpText })), h("input", { key: '3954f9ca95278ac082ebc5c213fd337eaf65192e', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: '1a391573e3dbe383a4108c32f2f2f4cb0dbbd1c7', errorText: this.errorText, name: this.name }))));
5
+ return (h(Host, { key: '09a00c508e5f8a6760a10596caa60e39650ae3dc', exportparts: "label,input,input-invalid" }, h("div", { key: 'af053f126524dc7dc5f02d5f6ef871012097e1a4', class: "form-group d-flex flex-column" }, h("div", { key: 'e7cbe9ae561c54c14ef4bf1adb4405f93e52a0da', class: "d-flex align-items-start gap-2" }, h("label", { key: '84173f53d2d70e8f3728cd5ed69dff4fa86ee659', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'a5f6fa27696c3cb673c5b10a7cf7049c2be1d113', helpText: this.helpText })), h("input", { key: '8f39d6dfaa711830059c04fcbb0b99600d269000', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: 'f9c61d2900f3a0776895c51d9f1aa42e6aabac4b', errorText: this.errorText, name: this.name }))));
6
6
  }
7
7
  static get is() { return "form-control-file-v2"; }
8
8
  static get properties() {
@@ -37,10 +37,10 @@ export class FileInput {
37
37
  return part;
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: '2f33f18c45bf27b27e3a3a633ba21ba90eee5ceb' }, h("div", { key: 'c749589536322fcc31a2ce7ccf1614c57881da36', class: "form-group d-flex flex-column" }, h("div", { key: 'c30a7d7ab3ade7898d74d0b0c638b7f76b05ad73', class: "d-flex align-items-start gap-2" }, h("label", { key: '62a9d698290f4d02ec06f3c26327f7abfc6bf8dc', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '93636c12615e31be1091dce3a77e29c5b78620af', helpText: this.helpText })), h("input", { key: '0e6430bbf633b6228f09013f6ce60e0810759666', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
40
+ return (h(Host, { key: 'bbf3a7e4cd4dcd5cc0ccefe4ad405dccbe7e3e78' }, h("div", { key: '4cb2c56d8015d1bb78ab08c5499d00ddeb8dd738', class: "form-group d-flex flex-column" }, h("div", { key: 'f72a96162d320c2ec86b0668a0d174065cca15e1', class: "d-flex align-items-start gap-2" }, h("label", { key: 'b99571312c582e453b867888db7499ad5dad69c1', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '014c69076270156f8301ba329bbc779046282e69', helpText: this.helpText })), h("input", { key: '08a71546d4f2c2fc3df64d4f87ac1ffe2dcef6d4', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
41
41
  this.isFocused = false;
42
42
  this.formControlBlur.emit();
43
- } }), h(FormControlErrorText, { key: '90d3406a0417e6073815a2f6e370c14ec614bf6a', errorText: this.errorText, name: this.name }))));
43
+ } }), h(FormControlErrorText, { key: '67496c44c3db670d269394b2667c13776d9ae166', errorText: this.errorText, name: this.name }))));
44
44
  }
45
45
  static get is() { return "form-control-file"; }
46
46
  static get properties() {
@@ -42,10 +42,10 @@ export class MonetaryInput {
42
42
  return input;
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: '3e5d9d316389c408227efc140470919ede9a49f0' }, h("div", { key: '438e75320d0dd82644da5846f35aa00253070b0d', class: "form-group d-flex flex-column" }, h("label", { key: 'ba7f69b961efda039f6faed58571d80320f1e7db', part: label, class: "form-label", htmlFor: this.name }, this.label), h(FormControlHelpText, { key: '70a4dc0fc48a37102f0f1d6bffb259eb6e4a7c6b', name: this.name, helpText: this.helpText }), h("div", { key: '57c943368d8556a00fa8ed94cf34195761416322', class: "input-group" }, h("span", { key: '9c1f65ba1448895aa107c5358ea5200484835639', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: '55910515d5146d078e72d6f4d70cab9c5ad0afe7', ref: el => this.formControl = el, id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
45
+ return (h(Host, { key: '0842196a10a26630b99d9b10149edc52f9197d75' }, h("div", { key: '9195cd13c772720637f9f5c68c3d93ba0b7b2b03', class: "form-group d-flex flex-column" }, h("label", { key: '995e71be182068b0ef4629c4fd6d66539199be5d', part: label, class: "form-label", htmlFor: this.name }, this.label), h(FormControlHelpText, { key: 'b9d3a12f486d808bc9eeb4155ca0c7c8086cdd0b', name: this.name, helpText: this.helpText }), h("div", { key: '00a19cfca58d00169c831f3f138c7ebc4b5afd85', class: "input-group" }, h("span", { key: '36120c616e2eec08cdf4a29fdfc2cb472441bf2b', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: 'dff91515955e4bc2ceb60b48deaa27be8717d95b', ref: el => this.formControl = el, id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
46
46
  this.isFocused = false;
47
47
  this.formControlBlur.emit();
48
- }, onInput: (event) => this.updateInput(event.target.value), onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.inputPart, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled })), h(FormControlErrorText, { key: 'b3b5b2f0e09bf65b8aca2836f1712f9fbc79eb88', errorText: this.errorText, name: this.name }))));
48
+ }, onInput: (event) => this.updateInput(event.target.value), onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.inputPart, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled })), h(FormControlErrorText, { key: '52a89e9a6196eeff1fbc20c7474ce7016be16fe3', errorText: this.errorText, name: this.name }))));
49
49
  }
50
50
  static get is() { return "form-control-monetary"; }
51
51
  static get properties() {