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

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 (661) hide show
  1. package/dist/cjs/{Api-c8NBCwu4.js → Api-eP0XeJLd.js} +1 -1
  2. package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-D4OLnOkg.js} +8 -0
  3. package/dist/cjs/{Refund-Dt1CMUjx.js → Refund-08OcZkXX.js} +148 -1
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -1
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +8 -8
  6. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  7. package/dist/cjs/{business.service-W2PRAU9J.js → business.service--Zv-Xtu4.js} +3 -4
  8. package/dist/cjs/card-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{check-pkg-version-DmONJMn1.js → check-pkg-version-Bp51QhAR.js} +4 -5
  10. package/dist/cjs/{checkout.service-XwOh98gt.js → checkout.service-BBD6v0cl.js} +3 -4
  11. package/dist/cjs/{checkout.store--pVCO0L1.js → checkout.store-B58bewb_.js} +2 -1
  12. package/dist/cjs/checkouts-list-core.cjs.entry.js +6 -6
  13. package/dist/cjs/{checkouts-table-CrpOOe_e.js → checkouts-table-Cp7rNkNd.js} +1 -1
  14. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  15. package/dist/cjs/dinero-J-SRFKIR.js +1673 -0
  16. package/dist/cjs/{dispute.service-Dh82Wru1.js → dispute.service-BHApwZdH.js} +3 -4
  17. package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
  18. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  21. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-monetary.cjs.entry.js +4 -3
  23. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
  24. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  25. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  26. package/dist/cjs/form-control-select_3.cjs.entry.js +4 -4
  27. package/dist/cjs/{get-business-BiEc-jdH.js → get-business-o5jPq_ME.js} +2 -2
  28. package/dist/cjs/{get-payment-details-W4PgTPkL.js → get-payment-details-7PreAOdF.js} +5 -6
  29. package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-DE_D9y08.js} +2 -2
  30. package/dist/cjs/{get-subaccounts-D4woaGSs.js → get-subaccounts-CtelAONX.js} +5 -6
  31. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -2
  32. package/dist/cjs/header-2-BXQLJn1q.js +10 -0
  33. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  34. package/dist/cjs/insurance-state-B3CYpJWi.js +45 -0
  35. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -4
  36. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -17
  37. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  38. package/dist/cjs/{justifi-bank-account-form_5.cjs.entry.js → justifi-bank-account-form_7.cjs.entry.js} +66 -23
  39. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +52 -0
  40. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
  41. package/dist/cjs/justifi-business-form.cjs.entry.js +10 -10
  42. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  43. package/dist/cjs/{justifi-button_5.cjs.entry.js → justifi-checkout-summary_5.cjs.entry.js} +162 -56
  44. package/dist/cjs/justifi-checkout.cjs.entry.js +14 -14
  45. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +5 -5
  46. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
  47. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  48. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  49. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -13
  50. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
  51. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  52. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -12
  53. package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -11
  54. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -11
  56. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  57. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -3
  58. package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -12
  59. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  60. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  61. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -3
  62. package/dist/cjs/justifi-payouts-list.cjs.entry.js +13 -13
  63. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
  64. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
  65. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +5 -3
  66. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
  67. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  68. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -6
  69. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
  70. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
  71. package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -12
  72. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +216 -34
  73. package/dist/cjs/loader.cjs.js +1 -1
  74. package/dist/cjs/{package-oywezDpy.js → package-BMSb1ui9.js} +1 -1
  75. package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
  76. package/dist/cjs/{payment-method-option-utils-imuSE7KV.js → payment-method-option-utils-QODgEWhU.js} +1 -11
  77. package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-CZVlnRA0.js} +2 -2
  78. package/dist/cjs/{payment.service-BrvtS3F7.js → payment.service-C9qxqaJk.js} +3 -4
  79. package/dist/cjs/payments-list-core.cjs.entry.js +6 -6
  80. package/dist/cjs/{payments-table-BqxFc71K.js → payments-table-DaW6SvdL.js} +1 -1
  81. package/dist/cjs/payout-details-core.cjs.entry.js +5 -4
  82. package/dist/cjs/{payout.service-DNH6gRrP.js → payout.service-DiSYeR_q.js} +3 -4
  83. package/dist/cjs/payouts-list-core.cjs.entry.js +6 -6
  84. package/dist/cjs/{payouts-table-iT2IauEa.js → payouts-table-D5hMHcaY.js} +1 -1
  85. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  86. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +6 -6
  87. package/dist/cjs/{terminal-orders-table-xi_a-EnM.js → terminal-orders-table-DnZjcbSQ.js} +3 -4
  88. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  89. package/dist/cjs/{terminal.service-CdzmTRQE.js → terminal.service-DEIY9toR.js} +3 -4
  90. package/dist/cjs/terminals-list-core.cjs.entry.js +6 -6
  91. package/dist/cjs/{terminals-table-sf-s5v6D.js → terminals-table-DOqVeHM1.js} +1 -1
  92. package/dist/cjs/{utils-qOon0GWm.js → utils-DqlrBltg.js} +2 -1676
  93. package/dist/cjs/{utils-IGCnjtqc.js → utils-DvUQQLmR.js} +1 -1
  94. package/dist/cjs/webcomponents.cjs.js +1 -1
  95. package/dist/collection/actions/checkout/checkout-actions.js +2 -1
  96. package/dist/collection/api/ComponentError.js +8 -0
  97. package/dist/collection/collection-manifest.json +7 -8
  98. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  99. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  100. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  101. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  102. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  103. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  104. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  105. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  106. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  107. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  110. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  111. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  112. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  113. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  114. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  115. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  116. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  117. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  119. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  121. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  122. package/dist/collection/components/checkout/billing-form/billing-form.js +13 -37
  123. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  124. package/dist/collection/components/checkout/checkout.js +1 -1
  125. package/dist/collection/components/checkout/payment-method-option-utils.js +0 -1
  126. package/dist/collection/components/checkout/save-new-payment-method.js +7 -5
  127. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  128. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  129. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  130. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  134. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  135. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  136. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  137. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  138. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  139. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  140. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  141. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  142. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  143. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  144. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  145. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  146. package/dist/collection/components/insurance/insurance-state.js +18 -1
  147. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  148. package/dist/collection/components/modular-checkout/modular-checkout.js +43 -9
  149. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  150. package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +36 -5
  151. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  152. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  153. package/dist/collection/components/modular-checkout/sub-components/postal-code-form.js +5 -4
  154. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  155. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  156. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  157. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  158. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  159. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  160. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  161. package/dist/collection/components/payments-list/payments-list.js +1 -1
  162. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  163. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  164. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  165. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  166. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  167. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  168. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  169. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  170. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  171. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  172. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  173. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +291 -87
  174. package/dist/collection/store/checkout.store.js +2 -1
  175. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  176. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  177. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  178. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  179. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  180. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  181. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  182. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  183. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  184. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  185. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  186. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  187. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  188. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  189. package/dist/collection/ui-components/index.js +1 -0
  190. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  191. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  192. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +155 -0
  193. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  194. package/dist/docs.json +727 -1331
  195. package/dist/esm/{Api-C3T8XYbb.js → Api-BCeKXDaf.js} +1 -1
  196. package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-Cjcsf8ku.js} +9 -1
  197. package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
  198. package/dist/esm/{Refund-0aZtuMmz.js → Refund-DBHZkemk.js} +148 -2
  199. package/dist/esm/additional-questions-details_5.entry.js +4 -3
  200. package/dist/esm/{badge-Dr7gkD2I.js → badge-BrapPg3R.js} +1 -1
  201. package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -12
  202. package/dist/esm/bank-account-form.entry.js +4 -4
  203. package/dist/esm/business-details-core.entry.js +3 -3
  204. package/dist/esm/{business.service-C5vrjgZf.js → business.service-ArD_uRLb.js} +4 -5
  205. package/dist/esm/{button-xfPDSpPt.js → button-BB-N4vit.js} +1 -1
  206. package/dist/esm/card-form.entry.js +4 -4
  207. package/dist/esm/{check-pkg-version-DqhSXPRt.js → check-pkg-version-CwPXpnQZ.js} +5 -6
  208. package/dist/esm/{checkout.service-CW2_CEte.js → checkout.service-BgDCPjQU.js} +4 -5
  209. package/dist/esm/{checkout.store-GXtlf5-4.js → checkout.store-td03RV8y.js} +2 -1
  210. package/dist/esm/checkouts-list-core.entry.js +11 -11
  211. package/dist/esm/{checkouts-table-BHhaS5bv.js → checkouts-table-COpCngi0.js} +3 -3
  212. package/dist/esm/custom-popper.entry.js +2 -2
  213. package/dist/esm/dinero-DizZAUMY.js +1671 -0
  214. package/dist/esm/{dispute.service-C3bmfjsZ.js → dispute.service-C2dMLW9w.js} +4 -5
  215. package/dist/esm/form-alert_5.entry.js +5 -5
  216. package/dist/esm/form-control-checkbox.entry.js +5 -5
  217. package/dist/esm/form-control-date.entry.js +4 -4
  218. package/dist/esm/{form-control-error-text-Cn0aPzHx.js → form-control-error-text-Bk3yfpFX.js} +1 -1
  219. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  220. package/dist/esm/{form-control-help-text-C91TeHXs.js → form-control-help-text-mOLCXs00.js} +1 -1
  221. package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
  222. package/dist/esm/form-control-monetary.entry.js +7 -6
  223. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  224. package/dist/esm/form-control-number.entry.js +5 -5
  225. package/dist/esm/form-control-radio.entry.js +3 -3
  226. package/dist/esm/form-control-select_3.entry.js +6 -6
  227. package/dist/esm/{get-business-BSRtbTh7.js → get-business-Crb6P-iI.js} +2 -2
  228. package/dist/esm/{get-payment-details-BdPvFl1W.js → get-payment-details-BN-K_5Ry.js} +5 -6
  229. package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D-Lnooki.js} +2 -2
  230. package/dist/esm/{get-subaccounts-BqqR44dV.js → get-subaccounts-DrFpGKDV.js} +6 -7
  231. package/dist/esm/gross-payment-chart-core.entry.js +6 -5
  232. package/dist/esm/{header-1-noRVFQY9.js → header-1-DYuf6mkF.js} +1 -1
  233. package/dist/esm/header-2-C4ZCdZwi.js +8 -0
  234. package/dist/esm/hidden-input_2.entry.js +7 -7
  235. package/dist/esm/insurance-state-BQks6cMA.js +39 -0
  236. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
  237. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +20 -20
  238. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  239. package/dist/esm/{justifi-bank-account-form_5.entry.js → justifi-bank-account-form_7.entry.js} +67 -26
  240. package/dist/esm/justifi-billing-form_2.entry.js +49 -0
  241. package/dist/esm/justifi-business-details.entry.js +13 -13
  242. package/dist/esm/justifi-business-form.entry.js +15 -15
  243. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  244. package/dist/esm/{justifi-button_5.entry.js → justifi-checkout-summary_5.entry.js} +161 -55
  245. package/dist/esm/justifi-checkout.entry.js +11 -11
  246. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
  247. package/dist/esm/justifi-checkouts-list.entry.js +15 -15
  248. package/dist/esm/justifi-details.entry.js +2 -2
  249. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  250. package/dist/esm/justifi-dispute-management.entry.js +11 -11
  251. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
  252. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  253. package/dist/esm/justifi-order-terminals.entry.js +15 -15
  254. package/dist/esm/justifi-owner-form_3.entry.js +14 -14
  255. package/dist/esm/justifi-payment-details.entry.js +13 -13
  256. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  257. package/dist/esm/justifi-payment-provisioning.entry.js +12 -12
  258. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
  259. package/dist/esm/justifi-payments-list-filters.entry.js +5 -4
  260. package/dist/esm/justifi-payments-list.entry.js +15 -15
  261. package/dist/esm/justifi-payout-details.entry.js +13 -13
  262. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
  263. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -4
  264. package/dist/esm/justifi-payouts-list.entry.js +17 -17
  265. package/dist/esm/justifi-refund-payment.entry.js +14 -14
  266. package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
  267. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -4
  268. package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -11
  269. package/dist/esm/justifi-skeleton.entry.js +3 -3
  270. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
  271. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
  272. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
  273. package/dist/esm/justifi-terminals-list.entry.js +15 -15
  274. package/dist/esm/justifi-tokenize-payment-method.entry.js +218 -36
  275. package/dist/esm/loader.js +1 -1
  276. package/dist/esm/{package-DR0dQ8Fv.js → package-HlNEzyiZ.js} +1 -1
  277. package/dist/esm/pagination-menu.entry.js +1 -1
  278. package/dist/esm/{parts-D3G5aVLy.js → parts-CKg_luIy.js} +1 -1
  279. package/dist/esm/payment-details-core.entry.js +15 -14
  280. package/dist/esm/{payment-method-option-utils-8n_ALxec.js → payment-method-option-utils-zFDtQrgQ.js} +2 -10
  281. package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-ONP8lDnV.js} +2 -2
  282. package/dist/esm/{payment.service-CnQdP32J.js → payment.service-DPsRcwWM.js} +4 -5
  283. package/dist/esm/payments-list-core.entry.js +12 -12
  284. package/dist/esm/{payments-status-DUM0WZkk.js → payments-status-CawBLR48.js} +1 -1
  285. package/dist/esm/{payments-table-DVQzx7MJ.js → payments-table-WQAD1CSz.js} +3 -3
  286. package/dist/esm/payout-details-core.entry.js +11 -10
  287. package/dist/esm/{payout.service-EJuPNpfs.js → payout.service-CoVFefK5.js} +4 -5
  288. package/dist/esm/payouts-list-core.entry.js +12 -12
  289. package/dist/esm/{payouts-status-7saoFNoA.js → payouts-status-DB_PJap6.js} +1 -1
  290. package/dist/esm/{payouts-table-dca-F2iQ.js → payouts-table-DRISll8u.js} +3 -3
  291. package/dist/esm/{skeleton-C1-JoGFC.js → skeleton-D1Z4a8af.js} +1 -1
  292. package/dist/esm/{spinner-Ca9uu5Nd.js → spinner-BlffecO5.js} +1 -1
  293. package/dist/esm/{table-fsCYq8m9.js → table-BqxKVRry.js} +2 -2
  294. package/dist/esm/table-filters-menu.entry.js +3 -3
  295. package/dist/esm/terminal-orders-list-core.entry.js +11 -11
  296. package/dist/esm/{terminal-orders-table-BNasCnjz.js → terminal-orders-table-Da4IvBtB.js} +6 -7
  297. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  298. package/dist/esm/{terminal.service-Cfacmeto.js → terminal.service-CnPV1i9J.js} +4 -5
  299. package/dist/esm/terminals-list-core.entry.js +11 -11
  300. package/dist/esm/{terminals-table-DBk-eg_3.js → terminals-table-BBPQRWja.js} +3 -3
  301. package/dist/esm/{utils-BZvep88z.js → utils-BeQLScSm.js} +1 -1
  302. package/dist/esm/{utils-BjLkBMLe.js → utils-Cu5hITuT.js} +2 -1675
  303. package/dist/esm/{utils-CNwvOLkk.js → utils-sZ_6zOKQ.js} +1 -1
  304. package/dist/esm/webcomponents.js +1 -1
  305. package/dist/module/Analytics.js +0 -1
  306. package/dist/module/Refund.js +210 -1
  307. package/dist/module/additional-questions.js +1 -1
  308. package/dist/module/additional-statement.js +1 -1
  309. package/dist/module/badge.js +1 -1
  310. package/dist/module/bank-account-document-inputs.js +2 -3
  311. package/dist/module/bank-account-form-inputs2.js +1 -1
  312. package/dist/module/bank-account-form.js +2 -2
  313. package/dist/module/bank-account.js +3 -2
  314. package/dist/module/billing-form.js +23 -57
  315. package/dist/module/billing-information-form.js +10 -3
  316. package/dist/module/business-additional-questions-form-step.js +1 -1
  317. package/dist/module/business-bank-account-form-step-core.js +2 -3
  318. package/dist/module/business-bank-account-form-step.js +2 -3
  319. package/dist/module/business-core-info-form-step.js +1 -1
  320. package/dist/module/business-core-info.js +1 -1
  321. package/dist/module/business-details-core2.js +1 -0
  322. package/dist/module/business-documents-on-file2.js +2 -1
  323. package/dist/module/business-owners-form-step-core.js +1 -0
  324. package/dist/module/business-owners-form-step.js +1 -1
  325. package/dist/module/business-representative-form-inputs.js +1 -1
  326. package/dist/module/business-representative-form-step.js +1 -1
  327. package/dist/module/business-representative.js +1 -1
  328. package/dist/module/business-terms-conditions-form-step.js +1 -2
  329. package/dist/module/business.service.js +0 -1
  330. package/dist/module/cancellation-policy.js +1 -1
  331. package/dist/module/card-form.js +2 -2
  332. package/dist/module/card-form2.js +3 -2
  333. package/dist/module/checkout.service.js +0 -1
  334. package/dist/module/checkout.store.js +2 -1
  335. package/dist/module/checkouts-list-core2.js +5 -4
  336. package/dist/module/custom-popper2.js +2 -2
  337. package/dist/module/customer-details.js +1 -1
  338. package/dist/module/dinero.js +1671 -0
  339. package/dist/module/dispute-management-core.js +2 -2
  340. package/dist/module/dispute-notification.js +2 -1
  341. package/dist/module/dispute-response-actions.js +0 -1
  342. package/dist/module/dispute-response-core.js +1 -1
  343. package/dist/module/dispute-response.js +2 -1
  344. package/dist/module/duplicate-charge.js +1 -1
  345. package/dist/module/electronic-evidence.js +1 -1
  346. package/dist/module/form-alert2.js +1 -1
  347. package/dist/module/form-control-checkbox2.js +4 -3
  348. package/dist/module/form-control-date2.js +3 -2
  349. package/dist/module/form-control-file-v22.js +1 -1
  350. package/dist/module/form-control-file2.js +3 -2
  351. package/dist/module/form-control-monetary-provisioning2.js +4 -3
  352. package/dist/module/form-control-monetary2.js +4 -3
  353. package/dist/module/form-control-number-masked2.js +3 -2
  354. package/dist/module/form-control-number.js +4 -3
  355. package/dist/module/form-control-radio2.js +3 -3
  356. package/dist/module/form-control-select2.js +3 -2
  357. package/dist/module/form-control-text2.js +3 -2
  358. package/dist/module/form-control-textarea2.js +3 -3
  359. package/dist/module/get-payment-details.js +2 -3
  360. package/dist/module/get-subaccounts.js +1 -2
  361. package/dist/module/gross-payment-chart-core2.js +2 -2
  362. package/dist/module/hidden-input2.js +2 -2
  363. package/dist/module/identity-address-form.js +1 -1
  364. package/dist/module/iframe-input2.js +4 -4
  365. package/dist/module/insurance-state.js +18 -1
  366. package/dist/module/justifi-business-form.js +2 -2
  367. package/dist/module/justifi-button2.js +1 -1
  368. package/dist/module/justifi-checkout.js +3 -2
  369. package/dist/module/justifi-checkouts-list-filters.js +4 -4
  370. package/dist/module/justifi-checkouts-list.js +4 -4
  371. package/dist/module/justifi-dispute-management.js +2 -3
  372. package/dist/module/justifi-gross-payment-chart.js +0 -1
  373. package/dist/module/justifi-header2.js +7 -3
  374. package/dist/module/justifi-modular-checkout.js +2 -2
  375. package/dist/module/justifi-order-terminals.js +5 -4
  376. package/dist/module/justifi-payment-provisioning.js +1 -2
  377. package/dist/module/justifi-payment-transactions-list.js +6 -5
  378. package/dist/module/justifi-payments-list-filters.js +4 -3
  379. package/dist/module/justifi-payments-list.js +4 -4
  380. package/dist/module/justifi-payout-details.js +2 -3
  381. package/dist/module/justifi-payout-transactions-list.js +6 -5
  382. package/dist/module/justifi-payouts-list-filters.js +4 -3
  383. package/dist/module/justifi-payouts-list.js +4 -4
  384. package/dist/module/justifi-radio-list-item.d.ts +11 -0
  385. package/dist/module/justifi-radio-list-item.js +6 -0
  386. package/dist/module/justifi-radio-list-item2.js +55 -0
  387. package/dist/module/justifi-refund-payment.js +2 -2
  388. package/dist/module/justifi-saved-payment-method.js +2 -2
  389. package/dist/module/justifi-season-interruption-insurance.js +1 -2
  390. package/dist/module/justifi-skeleton.js +1 -1
  391. package/dist/module/justifi-terminal-orders-list-filters.js +5 -5
  392. package/dist/module/justifi-terminal-orders-list.js +4 -4
  393. package/dist/module/justifi-terminals-list-filters.js +4 -4
  394. package/dist/module/justifi-terminals-list.js +4 -4
  395. package/dist/module/justifi-tokenize-payment-method.js +311 -47
  396. package/dist/module/legal-address-form-step.js +1 -1
  397. package/dist/module/legal-address-form.js +1 -1
  398. package/dist/module/modular-checkout.js +47 -14
  399. package/dist/module/owner-form-core2.js +3 -2
  400. package/dist/module/owner-form-inputs2.js +1 -1
  401. package/dist/module/owner-form.js +1 -1
  402. package/dist/module/package.js +1 -1
  403. package/dist/module/pagination-menu2.js +1 -1
  404. package/dist/module/parts.js +1 -1
  405. package/dist/module/payment-details-core2.js +10 -9
  406. package/dist/module/payment-method-option-utils.js +2 -10
  407. package/dist/module/payment-method-option2.js +3 -2
  408. package/dist/module/payment-provisioning-core.js +2 -1
  409. package/dist/module/payment-provisioning-form-buttons.js +2 -1
  410. package/dist/module/payment-provisioning-form-steps.js +1 -1
  411. package/dist/module/payment-provisioning-loading.js +1 -0
  412. package/dist/module/payment.service.js +0 -1
  413. package/dist/module/payments-list-core2.js +5 -4
  414. package/dist/module/payout-details-core2.js +5 -4
  415. package/dist/module/payout.service.js +0 -1
  416. package/dist/module/payouts-list-core2.js +5 -4
  417. package/dist/module/postal-code-form.js +4 -2
  418. package/dist/module/product-or-service.js +1 -1
  419. package/dist/module/refund-policy.js +1 -1
  420. package/dist/module/save-new-payment-method.js +8 -5
  421. package/dist/module/saved-payment-methods.js +2 -1
  422. package/dist/module/season-interruption-insurance-core.js +2 -1
  423. package/dist/module/sezzle-payment-method.js +2 -1
  424. package/dist/module/shipping-details.js +1 -1
  425. package/dist/module/spinner.js +1 -1
  426. package/dist/module/summary.js +2 -1
  427. package/dist/module/table-filters-menu2.js +1 -1
  428. package/dist/module/table.js +1 -1
  429. package/dist/module/terminal-orders-list-core2.js +6 -5
  430. package/dist/module/terminal-quantity-selector2.js +2 -2
  431. package/dist/module/terminal.service.js +0 -1
  432. package/dist/module/terminals-list-core2.js +5 -4
  433. package/dist/module/utils2.js +2 -1675
  434. package/dist/types/api/ComponentError.d.ts +7 -0
  435. package/dist/types/components/checkout/billing-form/billing-form.d.ts +3 -9
  436. package/dist/types/components/checkout/checkout.d.ts +1 -1
  437. package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
  438. package/dist/types/components/insurance/insurance-state.d.ts +2 -1
  439. package/dist/types/components/modular-checkout/modular-checkout.d.ts +2 -1
  440. package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +2 -0
  441. package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +1 -0
  442. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +41 -14
  443. package/dist/types/components.d.ts +70 -114
  444. package/dist/types/store/checkout.store.d.ts +2 -1
  445. package/dist/types/ui-components/index.d.ts +1 -0
  446. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +12 -0
  447. package/dist/webcomponents/p-00c2f5d5.entry.js +1 -0
  448. package/dist/webcomponents/{p-d7f62287.entry.js → p-046fee8c.entry.js} +1 -1
  449. package/dist/webcomponents/{p-30d3d0cd.entry.js → p-0a0ed7a4.entry.js} +1 -1
  450. package/dist/webcomponents/p-0cb64945.entry.js +1 -0
  451. package/dist/webcomponents/{p-70774a5a.entry.js → p-0e44afa7.entry.js} +1 -1
  452. package/dist/webcomponents/p-0e6797c4.entry.js +1 -0
  453. package/dist/webcomponents/p-0fc026aa.entry.js +1 -0
  454. package/dist/webcomponents/p-16583f91.entry.js +1 -0
  455. package/dist/webcomponents/p-195cf5cc.entry.js +1 -0
  456. package/dist/webcomponents/{p-7d2de2d4.entry.js → p-1b1fe3de.entry.js} +1 -1
  457. package/dist/webcomponents/{p-50bfec55.entry.js → p-1b7b7210.entry.js} +1 -1
  458. package/dist/webcomponents/p-1c7d9b90.entry.js +1 -0
  459. package/dist/webcomponents/p-1ce1df1e.entry.js +1 -0
  460. package/dist/webcomponents/p-24e1a686.entry.js +1 -0
  461. package/dist/webcomponents/p-2a5ac7c9.entry.js +1 -0
  462. package/dist/webcomponents/p-2abf1785.entry.js +1 -0
  463. package/dist/webcomponents/p-2dcf196f.entry.js +1 -0
  464. package/dist/webcomponents/{p-7c63d61d.entry.js → p-302f7632.entry.js} +1 -1
  465. package/dist/webcomponents/{p-2f482f5b.entry.js → p-351ffd2a.entry.js} +1 -1
  466. package/dist/webcomponents/{p-cb7c712f.entry.js → p-39ca43e0.entry.js} +1 -1
  467. package/dist/webcomponents/p-3eb5f196.entry.js +1 -0
  468. package/dist/webcomponents/p-4045631f.entry.js +1 -0
  469. package/dist/webcomponents/{p-05c604d2.entry.js → p-429618a4.entry.js} +1 -1
  470. package/dist/webcomponents/{p-a02ce003.entry.js → p-444fb5a6.entry.js} +1 -1
  471. package/dist/webcomponents/{p-ac538ffd.entry.js → p-45b0a91c.entry.js} +1 -1
  472. package/dist/webcomponents/p-4907e95b.entry.js +1 -0
  473. package/dist/webcomponents/p-4a0a4314.entry.js +1 -0
  474. package/dist/webcomponents/p-4aaaa44e.entry.js +1 -0
  475. package/dist/webcomponents/p-4b34b9af.entry.js +1 -0
  476. package/dist/webcomponents/p-55iuf7iW.js +1 -0
  477. package/dist/webcomponents/{p-BxfUcCXo.js → p-5aA7gjr5.js} +1 -1
  478. package/dist/webcomponents/p-5e71f4d4.entry.js +1 -0
  479. package/dist/webcomponents/{p-0e4e662b.entry.js → p-6a06da8a.entry.js} +1 -1
  480. package/dist/webcomponents/p-6bafb4b5.entry.js +1 -0
  481. package/dist/webcomponents/p-6d1f2d57.entry.js +1 -0
  482. package/dist/webcomponents/p-6f397c80.entry.js +1 -0
  483. package/dist/webcomponents/p-75545aec.entry.js +1 -0
  484. package/dist/webcomponents/p-7b07255f.entry.js +1 -0
  485. package/dist/webcomponents/p-7b925204.entry.js +1 -0
  486. package/dist/webcomponents/p-831857dc.entry.js +1 -0
  487. package/dist/webcomponents/p-85c0953d.entry.js +1 -0
  488. package/dist/webcomponents/p-85ebdce5.entry.js +1 -0
  489. package/dist/webcomponents/p-86b166eb.entry.js +1 -0
  490. package/dist/webcomponents/{p-1bddf354.entry.js → p-880718b9.entry.js} +1 -1
  491. package/dist/webcomponents/p-88b6dbdd.entry.js +1 -0
  492. package/dist/webcomponents/p-8e0c6f60.entry.js +1 -0
  493. package/dist/webcomponents/{p-66861ea5.entry.js → p-90edbaa3.entry.js} +1 -1
  494. package/dist/webcomponents/p-97c0d873.entry.js +1 -0
  495. package/dist/webcomponents/p-9e48a264.entry.js +1 -0
  496. package/dist/webcomponents/{p-Dh6FEdp8.js → p-AbSg_vYv.js} +1 -1
  497. package/dist/webcomponents/p-B2uBb14Y.js +1 -0
  498. package/dist/webcomponents/{p-BtT7kqMw.js → p-B3qJZUMy.js} +1 -1
  499. package/dist/webcomponents/p-BF51n3KG.js +1 -0
  500. package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
  501. package/dist/webcomponents/p-BNd9xVOU.js +1 -0
  502. package/dist/webcomponents/p-BQLEjYfZ.js +1 -0
  503. package/dist/webcomponents/p-BZ9YQ3FA.js +1 -0
  504. package/dist/webcomponents/{p-BqK0rIZQ.js → p-BfEOvp9h.js} +1 -1
  505. package/dist/webcomponents/p-Bka75aL-.js +1 -0
  506. package/dist/webcomponents/p-C3e-DgwK.js +1 -0
  507. package/dist/webcomponents/{p-DAVX1-sW.js → p-CDIPkflV.js} +1 -1
  508. package/dist/webcomponents/{p-D3G5aVLy.js → p-CKg_luIy.js} +1 -1
  509. package/dist/webcomponents/{p-DDpc1huF.js → p-Ce8QXyUM.js} +1 -1
  510. package/dist/webcomponents/p-ChzWF0s3.js +1 -0
  511. package/dist/webcomponents/p-CjAMuB2J.js +1 -0
  512. package/dist/webcomponents/p-Cjcsf8ku.js +1 -0
  513. package/dist/webcomponents/{p-DAoffYFW.js → p-D0I-tRSs.js} +1 -1
  514. package/dist/webcomponents/p-D2muobcE.js +1 -0
  515. package/dist/webcomponents/p-DC63XVwu.js +1 -0
  516. package/dist/webcomponents/p-DH8F0bsw.js +1 -0
  517. package/dist/webcomponents/p-DMuY7Dka.js +1 -0
  518. package/dist/webcomponents/p-DPfZxsq9.js +1 -0
  519. package/dist/webcomponents/{p-DHvfrLVU.js → p-DPnS0F0Y.js} +1 -1
  520. package/dist/webcomponents/p-DR0bMp9p.js +1 -0
  521. package/dist/webcomponents/p-DYGIC0QH.js +1 -0
  522. package/dist/webcomponents/p-DgxD9dbc.js +1 -0
  523. package/dist/webcomponents/p-DniBAXrh.js +1 -0
  524. package/dist/webcomponents/p-Do0fsKZk.js +1 -0
  525. package/dist/webcomponents/{p-1adN6FVa.js → p-DpUqxsf5.js} +1 -1
  526. package/dist/webcomponents/p-DxEnw2tJ.js +1 -0
  527. package/dist/webcomponents/{p-fUv1jFAw.js → p-EAEmpCru.js} +1 -1
  528. package/dist/webcomponents/p-HlNEzyiZ.js +1 -0
  529. package/dist/webcomponents/p-O50LiN_p.js +1 -0
  530. package/dist/webcomponents/p-S_UV9-px.js +1 -0
  531. package/dist/webcomponents/p-X2PeOHf5.js +1 -0
  532. package/dist/webcomponents/p-_WsRuUBr.js +1 -0
  533. package/dist/webcomponents/{p-683630d0.entry.js → p-a1c7c873.entry.js} +1 -1
  534. package/dist/webcomponents/p-a3c6c55e.entry.js +1 -0
  535. package/dist/webcomponents/p-af935779.entry.js +1 -0
  536. package/dist/webcomponents/p-b01801a6.entry.js +1 -0
  537. package/dist/webcomponents/p-b47000f7.entry.js +1 -0
  538. package/dist/webcomponents/p-b58fb1b1.entry.js +1 -0
  539. package/dist/webcomponents/{p-f5d12ae3.entry.js → p-b8906c49.entry.js} +1 -1
  540. package/dist/webcomponents/p-c1bf875b.entry.js +1 -0
  541. package/dist/webcomponents/p-c26ef276.entry.js +1 -0
  542. package/dist/webcomponents/p-c5331724.entry.js +1 -0
  543. package/dist/webcomponents/p-c6bd05ef.entry.js +1 -0
  544. package/dist/webcomponents/{p-0890869b.entry.js → p-d5e4e888.entry.js} +4 -4
  545. package/dist/webcomponents/{p-e48a2d25.entry.js → p-e2ee826e.entry.js} +1 -1
  546. package/dist/webcomponents/{p-ae00a6f3.entry.js → p-e9c44dc2.entry.js} +1 -1
  547. package/dist/webcomponents/p-edf9128c.entry.js +1 -0
  548. package/dist/webcomponents/p-f3c2de89.entry.js +1 -0
  549. package/dist/webcomponents/p-f6ff7255.entry.js +1 -0
  550. package/dist/webcomponents/p-f8a0821d.entry.js +1 -0
  551. package/dist/webcomponents/p-fcb6c171.entry.js +1 -0
  552. package/dist/webcomponents/p-fd4d7c7e.entry.js +1 -0
  553. package/dist/webcomponents/p-pMAKJWDL.js +1 -0
  554. package/dist/webcomponents/p-rPeW3G6n.js +1 -0
  555. package/dist/webcomponents/webcomponents.esm.js +1 -1
  556. package/package.json +1 -1
  557. package/dist/cjs/Payment-D5UynU2f.js +0 -151
  558. package/dist/cjs/header-3-BnKbOjvz.js +0 -10
  559. package/dist/cjs/insurance-state-BsGy_svD.js +0 -34
  560. package/dist/cjs/justifi-billing-form.cjs.entry.js +0 -76
  561. package/dist/cjs/justifi-new-payment-method.cjs.entry.js +0 -99
  562. package/dist/cjs/justifi-payment-method-options.cjs.entry.js +0 -76
  563. package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +0 -117
  564. package/dist/collection/components/checkout/new-payment-method.js +0 -378
  565. package/dist/collection/components/checkout/payment-method-options.js +0 -421
  566. package/dist/esm/Payment-00TwhwCx.js +0 -149
  567. package/dist/esm/header-3-Bsi4loU1.js +0 -8
  568. package/dist/esm/insurance-state-pL8MRpxn.js +0 -28
  569. package/dist/esm/justifi-billing-form.entry.js +0 -74
  570. package/dist/esm/justifi-new-payment-method.entry.js +0 -97
  571. package/dist/esm/justifi-payment-method-options.entry.js +0 -74
  572. package/dist/esm/justifi-saved-payment-methods_2.entry.js +0 -114
  573. package/dist/module/Payment.js +0 -204
  574. package/dist/module/header-3.js +0 -8
  575. package/dist/module/justifi-new-payment-method.d.ts +0 -11
  576. package/dist/module/justifi-new-payment-method.js +0 -219
  577. package/dist/module/justifi-payment-method-options.d.ts +0 -11
  578. package/dist/module/justifi-payment-method-options.js +0 -6
  579. package/dist/module/payment-method-options.js +0 -129
  580. package/dist/types/components/checkout/new-payment-method.d.ts +0 -31
  581. package/dist/types/components/checkout/payment-method-options.d.ts +0 -32
  582. package/dist/webcomponents/p-00d7c2e6.entry.js +0 -1
  583. package/dist/webcomponents/p-03e9a98c.entry.js +0 -1
  584. package/dist/webcomponents/p-05fc864a.entry.js +0 -1
  585. package/dist/webcomponents/p-09c24135.entry.js +0 -1
  586. package/dist/webcomponents/p-0f511cc1.entry.js +0 -1
  587. package/dist/webcomponents/p-100008fa.entry.js +0 -1
  588. package/dist/webcomponents/p-17825dfb.entry.js +0 -1
  589. package/dist/webcomponents/p-18b941d3.entry.js +0 -1
  590. package/dist/webcomponents/p-19308a1b.entry.js +0 -1
  591. package/dist/webcomponents/p-1a7942f7.entry.js +0 -1
  592. package/dist/webcomponents/p-1d1d956b.entry.js +0 -1
  593. package/dist/webcomponents/p-26bf2fda.entry.js +0 -1
  594. package/dist/webcomponents/p-2d3949f7.entry.js +0 -1
  595. package/dist/webcomponents/p-326f4860.entry.js +0 -1
  596. package/dist/webcomponents/p-359b8f54.entry.js +0 -1
  597. package/dist/webcomponents/p-37aeeeee.entry.js +0 -1
  598. package/dist/webcomponents/p-4887bcb3.entry.js +0 -1
  599. package/dist/webcomponents/p-54406229.entry.js +0 -1
  600. package/dist/webcomponents/p-56af4fd0.entry.js +0 -1
  601. package/dist/webcomponents/p-59656e08.entry.js +0 -1
  602. package/dist/webcomponents/p-5d145701.entry.js +0 -1
  603. package/dist/webcomponents/p-5e813b93.entry.js +0 -1
  604. package/dist/webcomponents/p-64a46b8a.entry.js +0 -1
  605. package/dist/webcomponents/p-6bd83369.entry.js +0 -1
  606. package/dist/webcomponents/p-6ee2b118.entry.js +0 -1
  607. package/dist/webcomponents/p-73afde1b.entry.js +0 -1
  608. package/dist/webcomponents/p-73bbd71c.entry.js +0 -1
  609. package/dist/webcomponents/p-74f78a4e.entry.js +0 -1
  610. package/dist/webcomponents/p-755a8d9b.entry.js +0 -1
  611. package/dist/webcomponents/p-7c456c10.entry.js +0 -1
  612. package/dist/webcomponents/p-7c6d7283.entry.js +0 -1
  613. package/dist/webcomponents/p-7e9832b3.entry.js +0 -1
  614. package/dist/webcomponents/p-810cad17.entry.js +0 -1
  615. package/dist/webcomponents/p-81478598.entry.js +0 -1
  616. package/dist/webcomponents/p-91a2707a.entry.js +0 -1
  617. package/dist/webcomponents/p-9348a7c8.entry.js +0 -1
  618. package/dist/webcomponents/p-967c3374.entry.js +0 -1
  619. package/dist/webcomponents/p-9REosSLu.js +0 -1
  620. package/dist/webcomponents/p-9c27f87f.entry.js +0 -1
  621. package/dist/webcomponents/p-B9ROmZzw.js +0 -1
  622. package/dist/webcomponents/p-BCPBc18Y.js +0 -1
  623. package/dist/webcomponents/p-BQ5bL1Y5.js +0 -1
  624. package/dist/webcomponents/p-BSW9VS7r.js +0 -1
  625. package/dist/webcomponents/p-BSexQ2qc.js +0 -1
  626. package/dist/webcomponents/p-Bc5u1WjM.js +0 -1
  627. package/dist/webcomponents/p-BhrFjjAs.js +0 -1
  628. package/dist/webcomponents/p-BjQrbohd.js +0 -1
  629. package/dist/webcomponents/p-BxWsrx5h.js +0 -1
  630. package/dist/webcomponents/p-By9Lz2e0.js +0 -1
  631. package/dist/webcomponents/p-CEp46FZK.js +0 -1
  632. package/dist/webcomponents/p-CMNxLEJP.js +0 -1
  633. package/dist/webcomponents/p-CZItg0Yo.js +0 -1
  634. package/dist/webcomponents/p-D7WGjeDy.js +0 -1
  635. package/dist/webcomponents/p-DIDbcp63.js +0 -1
  636. package/dist/webcomponents/p-DKClunJd.js +0 -1
  637. package/dist/webcomponents/p-DR0dQ8Fv.js +0 -1
  638. package/dist/webcomponents/p-DUqRxn4Y.js +0 -1
  639. package/dist/webcomponents/p-DbcOhajT.js +0 -1
  640. package/dist/webcomponents/p-DhAmsAOH.js +0 -1
  641. package/dist/webcomponents/p-DoEkFs2i.js +0 -1
  642. package/dist/webcomponents/p-DvXSA0b0.js +0 -1
  643. package/dist/webcomponents/p-NqdaxjDT.js +0 -1
  644. package/dist/webcomponents/p-a05062d8.entry.js +0 -1
  645. package/dist/webcomponents/p-a27405fb.entry.js +0 -1
  646. package/dist/webcomponents/p-a2f0d61c.entry.js +0 -1
  647. package/dist/webcomponents/p-a95741ee.entry.js +0 -1
  648. package/dist/webcomponents/p-b193bf46.entry.js +0 -1
  649. package/dist/webcomponents/p-b398856f.entry.js +0 -1
  650. package/dist/webcomponents/p-d33baab9.entry.js +0 -1
  651. package/dist/webcomponents/p-d3f438ca.entry.js +0 -1
  652. package/dist/webcomponents/p-d5b3c65c.entry.js +0 -1
  653. package/dist/webcomponents/p-d62e6c16.entry.js +0 -1
  654. package/dist/webcomponents/p-eba620cd.entry.js +0 -1
  655. package/dist/webcomponents/p-ecdda6e6.entry.js +0 -1
  656. package/dist/webcomponents/p-f24e201f.entry.js +0 -1
  657. package/dist/webcomponents/p-m2jmX-Hz.js +0 -1
  658. package/dist/webcomponents/p-pGzabKc7.js +0 -1
  659. package/dist/webcomponents/p-sT4o5vru.js +0 -1
  660. package/dist/webcomponents/p-ys9CWfNG.js +0 -1
  661. package/dist/webcomponents/p-zucQG3cz.js +0 -1
@@ -1,73 +1,252 @@
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.computedHideSubmitButton = 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();
32
+ this.setComputedHideSubmitButton();
21
33
  }
22
34
  disconnectedCallback() {
23
35
  var _a;
24
36
  (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
25
37
  }
26
- ;
38
+ paymentMethodsChanged() {
39
+ this.setDefaultSelectedPaymentMethod();
40
+ }
41
+ handleRadioClick(event) {
42
+ this.selectedPaymentMethodId = event.detail;
43
+ }
44
+ async fillBillingForm(fields) {
45
+ var _a;
46
+ (_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.fill(fields);
47
+ }
27
48
  async tokenizePaymentMethod(event) {
28
- event && event.preventDefault();
49
+ event === null || event === void 0 ? void 0 : event.preventDefault();
29
50
  this.isLoading = true;
30
- let tokenizeResponse;
31
51
  try {
32
- tokenizeResponse = await this.paymentMethodOptionsRef.resolvePaymentMethod({ isValid: true });
33
- if (tokenizeResponse.error) {
52
+ const validation = await this.validate();
53
+ if (!validation.isValid) {
34
54
  this.errorEvent.emit({
55
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
56
+ message: ERROR_MESSAGES.VALIDATION_ERROR,
57
+ });
58
+ this.isLoading = false;
59
+ return;
60
+ }
61
+ const tokenizeResponse = await this.resolvePaymentMethod({ isValid: true });
62
+ if (tokenizeResponse.error) {
63
+ this.emitError({
35
64
  errorCode: tokenizeResponse.error.code,
36
65
  message: tokenizeResponse.error.message,
37
- severity: ComponentErrorSeverity.ERROR,
38
66
  });
39
67
  }
68
+ this.submitEvent.emit({ response: tokenizeResponse });
69
+ return tokenizeResponse;
40
70
  }
41
71
  catch (error) {
42
- const errorData = {
72
+ const errorResponse = this.createErrorResponse(ComponentErrorCodes.TOKENIZE_ERROR, error.message);
73
+ this.emitError({
43
74
  errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
44
75
  message: error.message,
45
- severity: ComponentErrorSeverity.ERROR,
46
- };
47
- this.errorEvent.emit(errorData);
76
+ });
77
+ this.submitEvent.emit({ response: errorResponse });
78
+ return errorResponse;
48
79
  }
49
80
  finally {
50
- this.submitEvent.emit({ response: tokenizeResponse });
51
81
  this.isLoading = false;
52
- return tokenizeResponse;
53
82
  }
54
83
  }
55
- async fillBillingForm(fields) {
56
- this.paymentMethodOptionsRef.fillBillingForm(fields);
57
- }
58
84
  async validate() {
59
- return this.paymentMethodOptionsRef.validate();
85
+ if (!this.areFormsReady()) {
86
+ return { isValid: false, errors: { general: ERROR_MESSAGES.FORM_NOT_READY } };
87
+ }
88
+ const [billingValidation, paymentMethodValidation] = await Promise.all([
89
+ this.billingFormRef.validate(),
90
+ this.paymentMethodFormRef.validate(),
91
+ ]);
92
+ return {
93
+ isValid: billingValidation.isValid && paymentMethodValidation.isValid,
94
+ errors: Object.assign(Object.assign({}, billingValidation.errors), paymentMethodValidation.errors),
95
+ };
96
+ }
97
+ validateRequiredProps() {
98
+ if (!this.authToken && !checkoutStore.authToken) {
99
+ this.emitError({
100
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
101
+ message: ERROR_MESSAGES.AUTH_TOKEN_REQUIRED,
102
+ });
103
+ }
104
+ if (!this.accountId && !checkoutStore.accountId) {
105
+ this.emitError({
106
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
107
+ message: ERROR_MESSAGES.ACCOUNT_ID_REQUIRED,
108
+ });
109
+ }
110
+ }
111
+ setDefaultSelectedPaymentMethod() {
112
+ if (!this.selectedPaymentMethodId) {
113
+ if (!this.disableCreditCard) {
114
+ this.selectedPaymentMethodId = PaymentMethodTypes.card;
115
+ }
116
+ else if (!this.disableBankAccount) {
117
+ this.selectedPaymentMethodId = PaymentMethodTypes.bankAccount;
118
+ }
119
+ }
120
+ }
121
+ setComputedHideSubmitButton() {
122
+ // If hideSubmitButton prop is explicitly set, use that value
123
+ if (this.hideSubmitButton !== undefined) {
124
+ this.computedHideSubmitButton = this.hideSubmitButton;
125
+ return;
126
+ }
127
+ // Otherwise, auto-detect if component is slotted within modular-checkout
128
+ const isWithinModularCheckout = this.isSlottedWithinModularCheckout();
129
+ this.computedHideSubmitButton = isWithinModularCheckout;
130
+ }
131
+ isSlottedWithinModularCheckout() {
132
+ var _a;
133
+ let parent = (_a = this.host) === null || _a === void 0 ? void 0 : _a.parentElement;
134
+ while (parent) {
135
+ if (parent.tagName === 'JUSTIFI-MODULAR-CHECKOUT') {
136
+ return true;
137
+ }
138
+ parent = parent.parentElement;
139
+ }
140
+ return false;
141
+ }
142
+ get availablePaymentMethods() {
143
+ const methods = [];
144
+ if (!this.disableCreditCard) {
145
+ methods.push(PaymentMethodTypes.card);
146
+ }
147
+ if (!this.disableBankAccount) {
148
+ methods.push(PaymentMethodTypes.bankAccount);
149
+ }
150
+ return methods;
151
+ }
152
+ areFormsReady() {
153
+ return !!(this.billingFormRef && this.paymentMethodFormRef);
154
+ }
155
+ emitError(errorData) {
156
+ this.errorEvent.emit(Object.assign(Object.assign({}, errorData), { severity: ComponentErrorSeverity.ERROR }));
157
+ }
158
+ createErrorResponse(code, message) {
159
+ return {
160
+ error: {
161
+ code: code,
162
+ message,
163
+ decline_code: undefined,
164
+ },
165
+ };
166
+ }
167
+ async resolvePaymentMethod(insuranceValidation) {
168
+ if (!this.areFormsReady()) {
169
+ return this.createErrorResponse('form_not_ready', ERROR_MESSAGES.FORM_NOT_READY);
170
+ }
171
+ try {
172
+ const validation = await this.validate();
173
+ if (!validation.isValid || !insuranceValidation.isValid) {
174
+ const errorMessage = Object.values(validation.errors)[0] || ERROR_MESSAGES.VALIDATION_ERROR;
175
+ return {
176
+ validationError: true,
177
+ error: {
178
+ code: 'validation_error',
179
+ message: String(errorMessage),
180
+ decline_code: undefined,
181
+ },
182
+ };
183
+ }
184
+ return await this.performTokenization();
185
+ }
186
+ catch (error) {
187
+ return { error };
188
+ }
189
+ }
190
+ async performTokenization() {
191
+ var _a, _b;
192
+ const tokenizeResponse = await this.tokenize();
193
+ if (tokenizeResponse.error) {
194
+ return { error: tokenizeResponse.error };
195
+ }
196
+ const tokenizeResponseData = tokenizeResponse.data;
197
+ return {
198
+ token: ((_a = tokenizeResponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeResponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
199
+ data: tokenizeResponseData,
200
+ };
201
+ }
202
+ async tokenize() {
203
+ try {
204
+ const billingFormFieldValues = await this.billingFormRef.getValues();
205
+ const config = {
206
+ clientId: this.authToken || checkoutStore.authToken,
207
+ account: this.accountId || checkoutStore.accountId,
208
+ paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
209
+ };
210
+ return await this.paymentMethodFormRef.tokenize(config);
211
+ }
212
+ catch (error) {
213
+ return error;
214
+ }
215
+ }
216
+ buildPaymentMethodMetadata(billingFormFieldValues) {
217
+ return this.shouldSavePaymentMethod
218
+ ? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupID }) : Object.assign({}, billingFormFieldValues);
219
+ }
220
+ get paymentMethodGroupID() {
221
+ return this.paymentMethodGroupId || checkoutStore.paymentMethodGroupId;
222
+ }
223
+ get shouldSavePaymentMethod() {
224
+ return !!(this.paymentMethodGroupId || checkoutStore.savePaymentMethod);
225
+ }
226
+ get shouldHideRadioInput() {
227
+ const showCard = !this.disableCreditCard;
228
+ const showAch = !this.disableBankAccount;
229
+ return !showAch || !showCard;
230
+ }
231
+ renderPaymentMethodOption(paymentMethodType) {
232
+ const isSelected = this.selectedPaymentMethodId === paymentMethodType;
233
+ 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)));
234
+ }
235
+ renderSelectedPaymentMethodForm(paymentMethodId) {
236
+ 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 })));
237
+ }
238
+ renderPaymentMethodForm(paymentMethodId) {
239
+ return paymentMethodId === PaymentMethodTypes.card ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
60
240
  }
61
241
  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)))))));
242
+ return (h(StyledHost, { key: 'b8cf3e66f93bf1b1dd2c3116781ddf0168cbd4e7' }, h("form", { key: '70ad04762a32e930b6b96c2d8609577cd5d1e8d6' }, h("fieldset", { key: 'f7a7d53512b3d034999b18b666381c2df04f082b' }, h("div", { key: '6e5be958e583399ac733aefe4ddf935f5aec98df', class: "row gy-3" }, h("div", { key: '2d81034d2d95532a18bef58cdd1635b1d3b1d735', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'a791aac6520c187fd336012d97c976ece891edeb', class: "col-12" }, h("justifi-button", { key: '9ff1733b1811fea31b1e4dc41694db4eb40be14c', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
63
243
  }
64
244
  static get is() { return "justifi-tokenize-payment-method"; }
65
- static get encapsulation() { return "shadow"; }
66
245
  static get properties() {
67
246
  return {
68
- "authToken": {
247
+ "accountId": {
69
248
  "type": "string",
70
- "attribute": "auth-token",
249
+ "attribute": "account-id",
71
250
  "mutable": false,
72
251
  "complexType": {
73
252
  "original": "string",
@@ -84,9 +263,9 @@ export class TokenizePaymentMethod {
84
263
  "setter": false,
85
264
  "reflect": false
86
265
  },
87
- "accountId": {
266
+ "authToken": {
88
267
  "type": "string",
89
- "attribute": "account-id",
268
+ "attribute": "auth-token",
90
269
  "mutable": false,
91
270
  "complexType": {
92
271
  "original": "string",
@@ -103,17 +282,17 @@ export class TokenizePaymentMethod {
103
282
  "setter": false,
104
283
  "reflect": false
105
284
  },
106
- "paymentMethodGroupId": {
107
- "type": "string",
108
- "attribute": "payment-method-group-id",
285
+ "disableBankAccount": {
286
+ "type": "boolean",
287
+ "attribute": "disable-bank-account",
109
288
  "mutable": false,
110
289
  "complexType": {
111
- "original": "string",
112
- "resolved": "string",
290
+ "original": "boolean",
291
+ "resolved": "boolean",
113
292
  "references": {}
114
293
  },
115
294
  "required": false,
116
- "optional": false,
295
+ "optional": true,
117
296
  "docs": {
118
297
  "tags": [],
119
298
  "text": ""
@@ -122,29 +301,28 @@ export class TokenizePaymentMethod {
122
301
  "setter": false,
123
302
  "reflect": false
124
303
  },
125
- "submitButtonText": {
126
- "type": "string",
127
- "attribute": "submit-button-text",
304
+ "disableCreditCard": {
305
+ "type": "boolean",
306
+ "attribute": "disable-credit-card",
128
307
  "mutable": false,
129
308
  "complexType": {
130
- "original": "string",
131
- "resolved": "string",
309
+ "original": "boolean",
310
+ "resolved": "boolean",
132
311
  "references": {}
133
312
  },
134
313
  "required": false,
135
- "optional": false,
314
+ "optional": true,
136
315
  "docs": {
137
316
  "tags": [],
138
317
  "text": ""
139
318
  },
140
319
  "getter": false,
141
320
  "setter": false,
142
- "reflect": false,
143
- "defaultValue": "'Submit'"
321
+ "reflect": false
144
322
  },
145
- "disableCreditCard": {
323
+ "hideBankAccountBillingForm": {
146
324
  "type": "boolean",
147
- "attribute": "disable-credit-card",
325
+ "attribute": "hide-bank-account-billing-form",
148
326
  "mutable": false,
149
327
  "complexType": {
150
328
  "original": "boolean",
@@ -161,9 +339,9 @@ export class TokenizePaymentMethod {
161
339
  "setter": false,
162
340
  "reflect": false
163
341
  },
164
- "disableBankAccount": {
342
+ "hideCardBillingForm": {
165
343
  "type": "boolean",
166
- "attribute": "disable-bank-account",
344
+ "attribute": "hide-card-billing-form",
167
345
  "mutable": false,
168
346
  "complexType": {
169
347
  "original": "boolean",
@@ -199,13 +377,13 @@ export class TokenizePaymentMethod {
199
377
  "setter": false,
200
378
  "reflect": false
201
379
  },
202
- "hideCardBillingForm": {
203
- "type": "boolean",
204
- "attribute": "hide-card-billing-form",
380
+ "paymentMethodGroupId": {
381
+ "type": "string",
382
+ "attribute": "payment-method-group-id",
205
383
  "mutable": false,
206
384
  "complexType": {
207
- "original": "boolean",
208
- "resolved": "boolean",
385
+ "original": "string",
386
+ "resolved": "string",
209
387
  "references": {}
210
388
  },
211
389
  "required": false,
@@ -218,13 +396,13 @@ export class TokenizePaymentMethod {
218
396
  "setter": false,
219
397
  "reflect": false
220
398
  },
221
- "hideBankAccountBillingForm": {
222
- "type": "boolean",
223
- "attribute": "hide-bank-account-billing-form",
399
+ "submitButtonText": {
400
+ "type": "string",
401
+ "attribute": "submit-button-text",
224
402
  "mutable": false,
225
403
  "complexType": {
226
- "original": "boolean",
227
- "resolved": "boolean",
404
+ "original": "string",
405
+ "resolved": "string",
228
406
  "references": {}
229
407
  },
230
408
  "required": false,
@@ -235,13 +413,16 @@ export class TokenizePaymentMethod {
235
413
  },
236
414
  "getter": false,
237
415
  "setter": false,
238
- "reflect": false
416
+ "reflect": false,
417
+ "defaultValue": "'Submit'"
239
418
  }
240
419
  };
241
420
  }
242
421
  static get states() {
243
422
  return {
244
- "isLoading": {}
423
+ "isLoading": {},
424
+ "selectedPaymentMethodId": {},
425
+ "computedHideSubmitButton": {}
245
426
  };
246
427
  }
247
428
  static get events() {
@@ -291,12 +472,12 @@ export class TokenizePaymentMethod {
291
472
  }
292
473
  static get methods() {
293
474
  return {
294
- "tokenizePaymentMethod": {
475
+ "fillBillingForm": {
295
476
  "complexType": {
296
- "signature": "(event?: CustomEvent) => Promise<PaymentMethodPayload>",
477
+ "signature": "(fields: BillingFormFields) => Promise<void>",
297
478
  "parameters": [{
298
- "name": "event",
299
- "type": "CustomEvent<any>",
479
+ "name": "fields",
480
+ "type": "BillingFormFields",
300
481
  "docs": ""
301
482
  }],
302
483
  "references": {
@@ -304,34 +485,25 @@ export class TokenizePaymentMethod {
304
485
  "location": "global",
305
486
  "id": "global::Promise"
306
487
  },
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": {
488
+ "BillingFormFields": {
317
489
  "location": "import",
318
- "path": "../../api",
319
- "id": "src/api/index.ts::ComponentErrorCodes"
490
+ "path": "../../components",
491
+ "id": "src/components.d.ts::BillingFormFields"
320
492
  }
321
493
  },
322
- "return": "Promise<PaymentMethodPayload>"
494
+ "return": "Promise<void>"
323
495
  },
324
496
  "docs": {
325
497
  "text": "",
326
498
  "tags": []
327
499
  }
328
500
  },
329
- "fillBillingForm": {
501
+ "tokenizePaymentMethod": {
330
502
  "complexType": {
331
- "signature": "(fields: BillingFormFields) => Promise<void>",
503
+ "signature": "(event?: MouseEvent) => Promise<PaymentMethodPayload>",
332
504
  "parameters": [{
333
- "name": "fields",
334
- "type": "BillingFormFields",
505
+ "name": "event",
506
+ "type": "MouseEvent",
335
507
  "docs": ""
336
508
  }],
337
509
  "references": {
@@ -339,13 +511,22 @@ export class TokenizePaymentMethod {
339
511
  "location": "global",
340
512
  "id": "global::Promise"
341
513
  },
342
- "BillingFormFields": {
514
+ "PaymentMethodPayload": {
343
515
  "location": "import",
344
- "path": "../../components",
345
- "id": "src/components.d.ts::BillingFormFields"
516
+ "path": "../checkout/payment-method-payload",
517
+ "id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
518
+ },
519
+ "MouseEvent": {
520
+ "location": "global",
521
+ "id": "global::MouseEvent"
522
+ },
523
+ "ComponentErrorCodes": {
524
+ "location": "import",
525
+ "path": "../../api",
526
+ "id": "src/api/index.ts::ComponentErrorCodes"
346
527
  }
347
528
  },
348
- "return": "Promise<void>"
529
+ "return": "Promise<PaymentMethodPayload>"
349
530
  },
350
531
  "docs": {
351
532
  "text": "",
@@ -354,15 +535,19 @@ export class TokenizePaymentMethod {
354
535
  },
355
536
  "validate": {
356
537
  "complexType": {
357
- "signature": "() => Promise<{ isValid: boolean; errors?: any; }>",
538
+ "signature": "() => Promise<ValidationResult>",
358
539
  "parameters": [],
359
540
  "references": {
360
541
  "Promise": {
361
542
  "location": "global",
362
543
  "id": "global::Promise"
544
+ },
545
+ "ValidationResult": {
546
+ "location": "global",
547
+ "id": "global::ValidationResult"
363
548
  }
364
549
  },
365
- "return": "Promise<{ isValid: boolean; errors?: any; }>"
550
+ "return": "Promise<ValidationResult>"
366
551
  },
367
552
  "docs": {
368
553
  "text": "",
@@ -371,4 +556,23 @@ export class TokenizePaymentMethod {
371
556
  }
372
557
  };
373
558
  }
559
+ static get elementRef() { return "host"; }
560
+ static get watchers() {
561
+ return [{
562
+ "propName": "disableCreditCard",
563
+ "methodName": "paymentMethodsChanged"
564
+ }, {
565
+ "propName": "disableBankAccount",
566
+ "methodName": "paymentMethodsChanged"
567
+ }];
568
+ }
569
+ static get listeners() {
570
+ return [{
571
+ "name": "radio-click",
572
+ "method": "handleRadioClick",
573
+ "target": undefined,
574
+ "capture": false,
575
+ "passive": false
576
+ }];
577
+ }
374
578
  }
@@ -17,8 +17,9 @@ const initialState = {
17
17
  disablePaymentMethodGroup: false,
18
18
  paymentAmount: 0,
19
19
  paymentDescription: '',
20
- paymentMethodGroupId: '',
20
+ paymentMethodGroupId: undefined,
21
21
  paymentMethods: [],
22
+ savePaymentMethod: false,
22
23
  selectedPaymentMethod: '',
23
24
  totalAmount: 0,
24
25
  };
@@ -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: '609efa147a53d357ac11d1d97a2277a518c6ba53' }, h("style", { key: 'ae6f607f454e1038518bd6438b50704fbb5096ce' }, `
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: '4d6fc7f6990bd1f271402146c38d0dd175fad94b', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '509c63e0288098dca22d2d4830ce790271cde6eb' }))));
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: '54f78efeb7d16825cfc08e98dcd37bad7b61f81b' }, h("div", { key: '83fef493e58c3a063cbbfe09700ba786b6242c4f', class: 'form-group d-flex flex-column' }, h("div", { key: '3c0ce3b7eb238a2ed5311f284b7f7422117e77bb', class: "form-check" }, h("input", { key: 'e071a738ff24cfec86f8f8c33c3cbae7261015ac', 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: 'e73b59126ddfd1b4f7c510b6d18e48c66aa9417d', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: 'c69896d9f44b0d9bb12bad10f22f3da5c5a6de52', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '5a8e732e9cb5999ab72769f00f00a4a19def3471', 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: '08bce3cf3be399f5cbc2b83885b42cbc38edb118' }, h("div", { key: '9d7537d093c98aad6ace2bf2e1dff221a94342ae', class: "form-group d-flex flex-column" }, h("div", { key: '4bb572f4060339595df10dd2b33799b926b6efd1', class: "d-flex gap-2" }, h("label", { key: '7ff86ee061e99220d836786304835edb087a513e', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '22506780fb5306be2eea2c8b0982668a57b8ac64', helpText: this.helpText })), h("input", { key: 'a15de1023d46a919caf8f2d4b4bd2fd187c44bc7', 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: '05011a1473a87a9a167a757d1f9387a3da3b9ebe', 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: '326085a82e5ba4a9dfd92d821bbc61ae1226abca', exportparts: "label,input,input-invalid" }, h("div", { key: 'eb08a1c5c9eba7c1589a4088c822d6c877d2ac8f', class: "form-group d-flex flex-column" }, h("div", { key: '214803f34627450d640573a746fff3d10aeb83c8', class: "d-flex align-items-start gap-2" }, h("label", { key: '4c352fd5c0388437bbda2d02b0d5fb7b93b031f4', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '5653524953f91a5de2f10aa1d60014fe47b1e9b9', helpText: this.helpText })), h("input", { key: 'a247246694d393078ff8e3fb391b6232c3ee66c5', 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: 'e3b485d2b5968444f4f0af9c1e4b922f0da58283', 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: '8521437d1faf90d5f3b73f821485560d0ca517a2' }, h("div", { key: 'd803250512feba82aea03c8a8946b024aec2eeae', class: "form-group d-flex flex-column" }, h("div", { key: '8377b86ca9c4b1974a55380d7cc325d6b5149913', class: "d-flex align-items-start gap-2" }, h("label", { key: 'ae69567c041aed85bdde3ea16f829aec96e4b25c', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '78c0ab7de411ca18dcfade80f1bac72b4741fdf9', helpText: this.helpText })), h("input", { key: 'ed1d7c11db1478e0edb90be9d918e119feb478ba', 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: 'b31b790d9c3fc013df2d504be03fb75987779148', errorText: this.errorText, name: this.name }))));
44
44
  }
45
45
  static get is() { return "form-control-file"; }
46
46
  static get properties() {