@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
@@ -4,11 +4,11 @@ import { ai as terminalOrdersListFilterMenu, aj as orderStatusTerminalOrdersList
4
4
  import { S as StyledHost } from './styled-host.js';
5
5
  import './details.js';
6
6
  import './event-types.js';
7
+ import './justifi-radio-list-item2.js';
7
8
  import './config-state.js';
8
- import { j as convertToUTC, h as convertToLocal } from './utils2.js';
9
- import { T as TerminalOrderStatus, c as TerminalOrderType } from './Refund.js';
9
+ import { h as convertToUTC, e as convertToLocal } from './utils2.js';
10
+ import { T as TerminalOrderStatus, e as TerminalOrderType } from './Refund.js';
10
11
  import './Pagination.js';
11
- import './Payment.js';
12
12
  import './Business.js';
13
13
  import { d as defineCustomElement$6 } from './custom-popper2.js';
14
14
  import { d as defineCustomElement$5 } from './form-control-date2.js';
@@ -62,8 +62,8 @@ const TerminalOrdersListFilters = /*@__PURE__*/ proxyCustomElement(class Termina
62
62
  }
63
63
  render() {
64
64
  const filterMenuParams = Object.assign({}, filterParams);
65
- return (h(StyledHost, { key: '9455a8028d5a2363ae8e95bbdc382886b7e6c34c' }, h("table-filters-menu", { key: 'c2d2288f12d8dade596cc5a2fd77a032dfeab741', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: 'bca04a463f8da0c16fd2e554910dac8b4bea85c8', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'f76a13c7c2b7e7a31f537c8d8c55d95c65d5af25', class: "p-2" }, h("form-control-select", { key: 'c5dbe04a3cb51fab100fada58db4d36a6bc40c43', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: '147f79940553ec51f47a745422699f7c2b44d7a1', class: "p-2" }, h("form-control-select", { key: '321091e9227e1cc51085ad61975c44881077db7b', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: '97dfc1953c6c1c1c2edd6cc5fbaf9f8831c22108', class: "p-2" }, h("form-control-date", { key: '0118c404ca0d1b98d017159ccf9b0c671f490a6b', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
66
- convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '1fcfca7be2b9bd1bd5aee2c442353f3143da1428', class: "p-2" }, h("form-control-date", { key: 'd3fb521a15596f539446dc8bb0239f802d811193', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
65
+ return (h(StyledHost, { key: '24b9da56d6bef1aa545007f2dba95b1da7fa4f4d' }, h("table-filters-menu", { key: 'ac3c26800fff2176782cf8240916cfd7e9a20333', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: 'cf11a3bc06453a9970120d0ac05334754a51181b', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'e72c2e114463c57e0de6042f2b3c419359f416ab', class: "p-2" }, h("form-control-select", { key: 'b2a3d66f6c0bb9fcf1da45cddc0b9df78ffa5ef8', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: '944a5f0ff5ff2fb87bee60da154b8dd03660e4f3', class: "p-2" }, h("form-control-select", { key: '992921c6f9ecf20587f814f87a44179db3fe49fd', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: '5acb3775b09fd508cfc77bf4b309cf43ca71a47a', class: "p-2" }, h("form-control-date", { key: '2b712d2c2903f2d579ada15a0e27eb97cc38c2f9', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
66
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '66dae53f3fe0a6147570b15e6e85f7a821d7a322', class: "p-2" }, h("form-control-date", { key: '3715aab2b7637c67b1373bd0135a8a35c2b5a34c', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
67
67
  convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
68
68
  }
69
69
  }, [1, "justifi-terminal-orders-list-filters", {
@@ -2,13 +2,13 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
2
2
  import { S as StyledHost } from './styled-host.js';
3
3
  import './details.js';
4
4
  import './event-types.js';
5
+ import './justifi-radio-list-item2.js';
5
6
  import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
6
7
  import { d as defineCustomElement$2, a as defaultColumnsKeys } from './terminal-orders-list-core2.js';
7
8
  import './config-state.js';
8
- import './utils2.js';
9
- import { k as TerminalOrder, C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
9
+ import './dinero.js';
10
+ import { n as TerminalOrder, C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
10
11
  import './Pagination.js';
11
- import './Payment.js';
12
12
  import './Business.js';
13
13
  import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
14
14
  import { A as Api } from './Api.js';
@@ -96,7 +96,7 @@ const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrders
96
96
  }
97
97
  }
98
98
  render() {
99
- return (h(StyledHost, { key: '0972cc7db71033e123fe2022adc3eb8a98a4c291' }, h("terminal-orders-list-core", { key: '1403004df6d7234892db90573c384074dca04e25', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
99
+ return (h(StyledHost, { key: 'e0fcbc2ccb76acdbcd7a18772d509995c81b1ae1' }, h("terminal-orders-list-core", { key: '21b108f554caa4343ecbd3bffa404c01442ef938', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
100
100
  }
101
101
  }, [1, "justifi-terminal-orders-list", {
102
102
  "accountId": [1, "account-id"],
@@ -5,11 +5,11 @@ import { an as terminalsListFilterMenu, ao as terminalIdTerminalsListFilterParam
5
5
  import { S as StyledHost } from './styled-host.js';
6
6
  import './details.js';
7
7
  import './event-types.js';
8
+ import './justifi-radio-list-item2.js';
8
9
  import './config-state.js';
9
- import './utils2.js';
10
- import { d as ITerminalStatus } from './Refund.js';
10
+ import './dinero.js';
11
+ import { f as ITerminalStatus } from './Refund.js';
11
12
  import './Pagination.js';
12
- import './Payment.js';
13
13
  import './Business.js';
14
14
  import { d as defineCustomElement$6 } from './custom-popper2.js';
15
15
  import { d as defineCustomElement$5 } from './form-control-select2.js';
@@ -51,7 +51,7 @@ const TerminalsListFilters = /*@__PURE__*/ proxyCustomElement(class TerminalsLis
51
51
  }
52
52
  render() {
53
53
  const filterMenuParams = Object.assign({}, filterParams);
54
- return (h(StyledHost, { key: '0f68d3d45ff461011c59fb71c4c89391dbb72bb0' }, h("table-filters-menu", { key: 'ea051d926c2b20e95d055f8cacb6f40999b1ac7b', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: 'e7d6fe457e29da3b62e2a81511f939f87000a32e', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '2c5ef7dcfe6d3ccde2821a4ab2d5c6e2eef51311', class: "p-2" }, h("form-control-text", { key: 'a44a96a3d1ee83d234d0763fdb0ff2eea366a624', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: 'ee0f05b519eb61374880bdab865999e0d66d0782', class: "p-2" }, h("form-control-text", { key: '9f97053c46474dc2701b030b91126c2b4a8c3728', name: "terminal_order_id", label: "Terminal Order ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalOrderId || filterParams.terminal_order_id, disabled: !!this.terminalOrderId, part: terminalOrderIdTerminalsListFilterParam })), h("div", { key: '88535a61ee28d83c83e91200be4d9d8b3ed49530', class: "p-2" }, h("form-control-select", { key: '4a465b5b82a514fcd84c051969fe5e24b8a2d20d', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
54
+ return (h(StyledHost, { key: 'a5fe1671dd03e1290544f3deaf5aa01b5d937d9d' }, h("table-filters-menu", { key: 'f7a3d95c1b0ad0b52b96f990fd56fdbe64643493', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: '92b0144a5ab7eee377e053e9b006af846ac43d64', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '3970a2e11f3be7953af299be4825166a829e9a0a', class: "p-2" }, h("form-control-text", { key: '0653692eaffdb14b092643a9f3c1b8e126c942db', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: 'c9d152d0a2d7e7b7fd7e72693a2248a020545a24', class: "p-2" }, h("form-control-text", { key: '785e7b382d9cadb72e242a379f2525b2da5140de', name: "terminal_order_id", label: "Terminal Order ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalOrderId || filterParams.terminal_order_id, disabled: !!this.terminalOrderId, part: terminalOrderIdTerminalsListFilterParam })), h("div", { key: 'f4f1e79eb81a72dd25bb4f4c14450ca82657f213', class: "p-2" }, h("form-control-select", { key: '52b390e42309e13e2f09df0681392bbf8e84aed8', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
55
55
  }
56
56
  }, [1, "justifi-terminals-list-filters", {
57
57
  "terminalId": [1, "terminal-id"],
@@ -1,17 +1,17 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { h as Terminal, C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
2
+ import { k as Terminal, C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
3
3
  import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
4
4
  import { T as TerminalService } from './terminal.service.js';
5
5
  import './config-state.js';
6
- import './utils2.js';
6
+ import './dinero.js';
7
7
  import './Pagination.js';
8
- import './Payment.js';
9
8
  import './Business.js';
10
9
  import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
11
10
  import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts.js';
12
11
  import { S as StyledHost } from './styled-host.js';
13
12
  import './details.js';
14
13
  import './event-types.js';
14
+ import './justifi-radio-list-item2.js';
15
15
  import { d as defineCustomElement$2, a as defaultColumnsKeys } from './terminals-list-core2.js';
16
16
  import { d as defineCustomElement$3 } from './pagination-menu2.js';
17
17
 
@@ -101,7 +101,7 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
101
101
  }
102
102
  }
103
103
  render() {
104
- return (h(StyledHost, { key: '2212743b516f92a5af51a6b9202b3679f22aadcc' }, h("terminals-list-core", { key: '5fabd291b0649fa3b893b3fff8200aafa053ab3c', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
104
+ return (h(StyledHost, { key: '57a9be57de845dc3f905260445e245cf30458af8' }, h("terminals-list-core", { key: '00f79218e216fffc12ecfc3b158cd299ad054349', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
105
105
  }
106
106
  static get watchers() { return {
107
107
  "accountId": ["propChanged"],
@@ -1,131 +1,369 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { B as Button } from './button.js';
3
2
  import { S as StyledHost } from './styled-host.js';
4
3
  import './details.js';
5
4
  import './event-types.js';
5
+ import { d as defineCustomElement$3 } from './justifi-radio-list-item2.js';
6
6
  import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
7
+ import { a as ComponentErrorCodes, c as PaymentMethodTypes, C as ComponentErrorSeverity } from './Refund.js';
7
8
  import './config-state.js';
8
- import './utils2.js';
9
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
9
+ import './dinero.js';
10
10
  import './Pagination.js';
11
- import './Payment.js';
12
11
  import './Business.js';
13
12
  import { c as checkoutStore } from './checkout.store.js';
14
- import { d as defineCustomElement$6 } from './form-control-help-text2.js';
15
- import { d as defineCustomElement$5 } from './form-control-radio2.js';
16
- import { d as defineCustomElement$4 } from './payment-method-options.js';
17
- import { d as defineCustomElement$3 } from './saved-payment-methods.js';
18
- import { d as defineCustomElement$2 } from './sezzle-payment-method.js';
13
+ import { d as defineCustomElement$j } from './custom-popper2.js';
14
+ import { d as defineCustomElement$i } from './form-control-checkbox2.js';
15
+ import { d as defineCustomElement$h } from './form-control-help-text2.js';
16
+ import { d as defineCustomElement$g } from './form-control-radio2.js';
17
+ import { d as defineCustomElement$f } from './form-control-select2.js';
18
+ import { d as defineCustomElement$e } from './form-control-text2.js';
19
+ import { d as defineCustomElement$d } from './form-control-tooltip2.js';
20
+ import { d as defineCustomElement$c } from './hidden-input2.js';
21
+ import { d as defineCustomElement$b } from './iframe-input2.js';
22
+ import { d as defineCustomElement$a } from './bank-account.js';
23
+ import { d as defineCustomElement$9 } from './billing-form.js';
24
+ import { d as defineCustomElement$8 } from './billing-information-form.js';
25
+ import { d as defineCustomElement$7 } from './justifi-button2.js';
26
+ import { d as defineCustomElement$6 } from './card-form2.js';
27
+ import { d as defineCustomElement$5 } from './justifi-header2.js';
28
+ import { d as defineCustomElement$4 } from './postal-code-form.js';
29
+ import { d as defineCustomElement$2 } from './save-new-payment-method.js';
19
30
 
31
+ // Constants
32
+ const PAYMENT_METHOD_TYPE_LABELS = {
33
+ [PaymentMethodTypes.bankAccount]: 'New bank account',
34
+ [PaymentMethodTypes.card]: 'New credit or debit card',
35
+ };
36
+ const ERROR_MESSAGES = {
37
+ AUTH_TOKEN_REQUIRED: 'Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
38
+ ACCOUNT_ID_REQUIRED: 'Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
39
+ FORM_NOT_READY: 'Payment form not ready',
40
+ VALIDATION_ERROR: 'Validation error',
41
+ };
20
42
  const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePaymentMethod extends HTMLElement {
21
43
  constructor() {
22
44
  super();
23
45
  this.__registerHost();
24
- this.__attachShadow();
25
46
  this.errorEvent = createEvent(this, "error-event", 7);
26
47
  this.submitEvent = createEvent(this, "submit-event", 7);
27
- this.submitButtonText = 'Submit';
28
48
  this.isLoading = false;
49
+ this.saveNewPaymentMethodChecked = false;
50
+ this.submitButtonText = 'Submit';
29
51
  }
30
52
  componentWillLoad() {
31
53
  checkPkgVersion();
32
54
  this.analytics = new JustifiAnalytics(this);
33
- if (!this.authToken) {
34
- this.authToken = checkoutStore.authToken;
35
- }
36
- if (!this.accountId) {
37
- this.accountId = checkoutStore.accountId;
38
- }
55
+ this.validateRequiredProps();
56
+ }
57
+ connectedCallback() {
58
+ this.setDefaultSelectedPaymentMethod();
39
59
  }
40
60
  disconnectedCallback() {
41
61
  var _a;
42
62
  (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
43
63
  }
44
- ;
64
+ paymentMethodsChanged() {
65
+ this.setDefaultSelectedPaymentMethod();
66
+ }
67
+ handleRadioClick(event) {
68
+ this.selectedPaymentMethodId = event.detail;
69
+ }
70
+ handleCheckboxChanged(event) {
71
+ this.saveNewPaymentMethodChecked = event.detail;
72
+ }
73
+ async fillBillingForm(fields) {
74
+ var _a;
75
+ (_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.fill(fields);
76
+ }
45
77
  async tokenizePaymentMethod(event) {
46
- event && event.preventDefault();
78
+ event === null || event === void 0 ? void 0 : event.preventDefault();
47
79
  this.isLoading = true;
48
- let tokenizeResponse;
49
80
  try {
50
- tokenizeResponse = await this.paymentMethodOptionsRef.resolvePaymentMethod({ isValid: true });
51
- if (tokenizeResponse.error) {
81
+ const validation = await this.validate();
82
+ if (!validation.isValid) {
52
83
  this.errorEvent.emit({
84
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
85
+ message: ERROR_MESSAGES.VALIDATION_ERROR,
86
+ });
87
+ this.isLoading = false;
88
+ return;
89
+ }
90
+ const tokenizeResponse = await this.resolvePaymentMethod({ isValid: true });
91
+ if (tokenizeResponse.error) {
92
+ this.emitError({
53
93
  errorCode: tokenizeResponse.error.code,
54
94
  message: tokenizeResponse.error.message,
55
- severity: ComponentErrorSeverity.ERROR,
56
95
  });
57
96
  }
97
+ this.submitEvent.emit({ response: tokenizeResponse });
98
+ return tokenizeResponse;
58
99
  }
59
100
  catch (error) {
60
- const errorData = {
101
+ const errorResponse = this.createErrorResponse(ComponentErrorCodes.TOKENIZE_ERROR, error.message);
102
+ this.emitError({
61
103
  errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
62
104
  message: error.message,
63
- severity: ComponentErrorSeverity.ERROR,
64
- };
65
- this.errorEvent.emit(errorData);
105
+ });
106
+ this.submitEvent.emit({ response: errorResponse });
107
+ return errorResponse;
66
108
  }
67
109
  finally {
68
- this.submitEvent.emit({ response: tokenizeResponse });
69
110
  this.isLoading = false;
70
- return tokenizeResponse;
71
111
  }
72
112
  }
73
- async fillBillingForm(fields) {
74
- this.paymentMethodOptionsRef.fillBillingForm(fields);
75
- }
76
113
  async validate() {
77
- return this.paymentMethodOptionsRef.validate();
114
+ if (!this.areFormsReady()) {
115
+ return { isValid: false, errors: { general: ERROR_MESSAGES.FORM_NOT_READY } };
116
+ }
117
+ const [billingValidation, paymentMethodValidation] = await Promise.all([
118
+ this.billingFormRef.validate(),
119
+ this.paymentMethodFormRef.validate(),
120
+ ]);
121
+ return {
122
+ isValid: billingValidation.isValid && paymentMethodValidation.isValid,
123
+ errors: Object.assign(Object.assign({}, billingValidation.errors), paymentMethodValidation.errors),
124
+ };
125
+ }
126
+ validateRequiredProps() {
127
+ if (!this.authToken && !checkoutStore.authToken) {
128
+ this.emitError({
129
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
130
+ message: ERROR_MESSAGES.AUTH_TOKEN_REQUIRED,
131
+ });
132
+ }
133
+ if (!this.accountId && !checkoutStore.accountId) {
134
+ this.emitError({
135
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
136
+ message: ERROR_MESSAGES.ACCOUNT_ID_REQUIRED,
137
+ });
138
+ }
139
+ }
140
+ setDefaultSelectedPaymentMethod() {
141
+ if (!this.selectedPaymentMethodId) {
142
+ if (!this.disableCreditCard) {
143
+ this.selectedPaymentMethodId = PaymentMethodTypes.card;
144
+ }
145
+ else if (!this.disableBankAccount) {
146
+ this.selectedPaymentMethodId = PaymentMethodTypes.bankAccount;
147
+ }
148
+ }
149
+ }
150
+ get availablePaymentMethods() {
151
+ const methods = [];
152
+ if (!this.disableCreditCard) {
153
+ methods.push(PaymentMethodTypes.card);
154
+ }
155
+ if (!this.disableBankAccount) {
156
+ methods.push(PaymentMethodTypes.bankAccount);
157
+ }
158
+ return methods;
159
+ }
160
+ areFormsReady() {
161
+ return !!(this.billingFormRef && this.paymentMethodFormRef);
162
+ }
163
+ emitError(errorData) {
164
+ this.errorEvent.emit(Object.assign(Object.assign({}, errorData), { severity: ComponentErrorSeverity.ERROR }));
165
+ }
166
+ createErrorResponse(code, message) {
167
+ return {
168
+ error: {
169
+ code: code,
170
+ message,
171
+ decline_code: undefined,
172
+ },
173
+ };
174
+ }
175
+ async resolvePaymentMethod(insuranceValidation) {
176
+ if (!this.areFormsReady()) {
177
+ return this.createErrorResponse('form_not_ready', ERROR_MESSAGES.FORM_NOT_READY);
178
+ }
179
+ try {
180
+ const validation = await this.validate();
181
+ if (!validation.isValid || !insuranceValidation.isValid) {
182
+ const errorMessage = Object.values(validation.errors)[0] || ERROR_MESSAGES.VALIDATION_ERROR;
183
+ return {
184
+ validationError: true,
185
+ error: {
186
+ code: 'validation_error',
187
+ message: String(errorMessage),
188
+ decline_code: undefined,
189
+ },
190
+ };
191
+ }
192
+ return await this.performTokenization();
193
+ }
194
+ catch (error) {
195
+ return { error };
196
+ }
197
+ }
198
+ async performTokenization() {
199
+ var _a, _b;
200
+ const tokenizeResponse = await this.tokenize();
201
+ if (tokenizeResponse.error) {
202
+ return { error: tokenizeResponse.error };
203
+ }
204
+ const tokenizeResponseData = tokenizeResponse.data;
205
+ return {
206
+ token: ((_a = tokenizeResponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeResponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
207
+ data: tokenizeResponseData,
208
+ };
209
+ }
210
+ async tokenize() {
211
+ try {
212
+ const billingFormFieldValues = await this.billingFormRef.getValues();
213
+ const config = {
214
+ clientId: this.authToken || checkoutStore.authToken,
215
+ account: this.accountId || checkoutStore.accountId,
216
+ paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
217
+ };
218
+ return await this.paymentMethodFormRef.tokenize(config);
219
+ }
220
+ catch (error) {
221
+ return error;
222
+ }
223
+ }
224
+ buildPaymentMethodMetadata(billingFormFieldValues) {
225
+ return this.saveNewPaymentMethodChecked
226
+ ? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupId }) : Object.assign({}, billingFormFieldValues);
227
+ }
228
+ get shouldHideRadioInput() {
229
+ const showCard = !this.disableCreditCard;
230
+ const showAch = !this.disableBankAccount;
231
+ return !showAch || !showCard;
232
+ }
233
+ renderPaymentMethodOption(paymentMethodType) {
234
+ const isSelected = this.selectedPaymentMethodId === paymentMethodType;
235
+ 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)));
236
+ }
237
+ renderSelectedPaymentMethodForm(paymentMethodId) {
238
+ 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 })));
239
+ }
240
+ renderPaymentMethodForm(paymentMethodId) {
241
+ return paymentMethodId === PaymentMethodTypes.card ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
78
242
  }
79
243
  render() {
80
- 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)))))));
244
+ 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 })))))));
81
245
  }
82
- }, [1, "justifi-tokenize-payment-method", {
83
- "authToken": [1, "auth-token"],
246
+ static get watchers() { return {
247
+ "disableCreditCard": ["paymentMethodsChanged"],
248
+ "disableBankAccount": ["paymentMethodsChanged"]
249
+ }; }
250
+ }, [0, "justifi-tokenize-payment-method", {
84
251
  "accountId": [1, "account-id"],
85
- "paymentMethodGroupId": [1, "payment-method-group-id"],
86
- "submitButtonText": [1, "submit-button-text"],
87
- "disableCreditCard": [4, "disable-credit-card"],
252
+ "authToken": [1, "auth-token"],
88
253
  "disableBankAccount": [4, "disable-bank-account"],
89
- "hideSubmitButton": [4, "hide-submit-button"],
90
- "hideCardBillingForm": [4, "hide-card-billing-form"],
254
+ "disableCreditCard": [4, "disable-credit-card"],
91
255
  "hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
256
+ "hideCardBillingForm": [4, "hide-card-billing-form"],
257
+ "hideSubmitButton": [4, "hide-submit-button"],
258
+ "paymentMethodGroupId": [1, "payment-method-group-id"],
259
+ "submitButtonText": [1, "submit-button-text"],
92
260
  "isLoading": [32],
93
- "tokenizePaymentMethod": [64],
261
+ "selectedPaymentMethodId": [32],
262
+ "saveNewPaymentMethodChecked": [32],
94
263
  "fillBillingForm": [64],
264
+ "tokenizePaymentMethod": [64],
95
265
  "validate": [64]
266
+ }, [[0, "radio-click", "handleRadioClick"], [0, "checkboxChanged", "handleCheckboxChanged"]], {
267
+ "disableCreditCard": ["paymentMethodsChanged"],
268
+ "disableBankAccount": ["paymentMethodsChanged"]
96
269
  }]);
97
270
  function defineCustomElement$1() {
98
271
  if (typeof customElements === "undefined") {
99
272
  return;
100
273
  }
101
- const components = ["justifi-tokenize-payment-method", "form-control-help-text", "form-control-radio", "justifi-payment-method-options", "justifi-saved-payment-methods", "justifi-sezzle-payment-method"];
274
+ const components = ["justifi-tokenize-payment-method", "custom-popper", "form-control-checkbox", "form-control-help-text", "form-control-radio", "form-control-select", "form-control-text", "form-control-tooltip", "hidden-input", "iframe-input", "justifi-bank-account-form", "justifi-billing-form", "justifi-billing-information-form", "justifi-button", "justifi-card-form", "justifi-header", "justifi-postal-code-form", "justifi-radio-list-item", "justifi-save-new-payment-method"];
102
275
  components.forEach(tagName => { switch (tagName) {
103
276
  case "justifi-tokenize-payment-method":
104
277
  if (!customElements.get(tagName)) {
105
278
  customElements.define(tagName, TokenizePaymentMethod);
106
279
  }
107
280
  break;
281
+ case "custom-popper":
282
+ if (!customElements.get(tagName)) {
283
+ defineCustomElement$j();
284
+ }
285
+ break;
286
+ case "form-control-checkbox":
287
+ if (!customElements.get(tagName)) {
288
+ defineCustomElement$i();
289
+ }
290
+ break;
108
291
  case "form-control-help-text":
109
292
  if (!customElements.get(tagName)) {
110
- defineCustomElement$6();
293
+ defineCustomElement$h();
111
294
  }
112
295
  break;
113
296
  case "form-control-radio":
297
+ if (!customElements.get(tagName)) {
298
+ defineCustomElement$g();
299
+ }
300
+ break;
301
+ case "form-control-select":
302
+ if (!customElements.get(tagName)) {
303
+ defineCustomElement$f();
304
+ }
305
+ break;
306
+ case "form-control-text":
307
+ if (!customElements.get(tagName)) {
308
+ defineCustomElement$e();
309
+ }
310
+ break;
311
+ case "form-control-tooltip":
312
+ if (!customElements.get(tagName)) {
313
+ defineCustomElement$d();
314
+ }
315
+ break;
316
+ case "hidden-input":
317
+ if (!customElements.get(tagName)) {
318
+ defineCustomElement$c();
319
+ }
320
+ break;
321
+ case "iframe-input":
322
+ if (!customElements.get(tagName)) {
323
+ defineCustomElement$b();
324
+ }
325
+ break;
326
+ case "justifi-bank-account-form":
327
+ if (!customElements.get(tagName)) {
328
+ defineCustomElement$a();
329
+ }
330
+ break;
331
+ case "justifi-billing-form":
332
+ if (!customElements.get(tagName)) {
333
+ defineCustomElement$9();
334
+ }
335
+ break;
336
+ case "justifi-billing-information-form":
337
+ if (!customElements.get(tagName)) {
338
+ defineCustomElement$8();
339
+ }
340
+ break;
341
+ case "justifi-button":
342
+ if (!customElements.get(tagName)) {
343
+ defineCustomElement$7();
344
+ }
345
+ break;
346
+ case "justifi-card-form":
347
+ if (!customElements.get(tagName)) {
348
+ defineCustomElement$6();
349
+ }
350
+ break;
351
+ case "justifi-header":
114
352
  if (!customElements.get(tagName)) {
115
353
  defineCustomElement$5();
116
354
  }
117
355
  break;
118
- case "justifi-payment-method-options":
356
+ case "justifi-postal-code-form":
119
357
  if (!customElements.get(tagName)) {
120
358
  defineCustomElement$4();
121
359
  }
122
360
  break;
123
- case "justifi-saved-payment-methods":
361
+ case "justifi-radio-list-item":
124
362
  if (!customElements.get(tagName)) {
125
363
  defineCustomElement$3();
126
364
  }
127
365
  break;
128
- case "justifi-sezzle-payment-method":
366
+ case "justifi-save-new-payment-method":
129
367
  if (!customElements.get(tagName)) {
130
368
  defineCustomElement$2();
131
369
  }
@@ -45,7 +45,7 @@ const LegalAddressFormStep = /*@__PURE__*/ proxyCustomElement(class LegalAddress
45
45
  }
46
46
  }
47
47
  render() {
48
- return (h("justifi-legal-address-form-step-core", { key: '65d876bee76f4deb4df115e636fafaef2c883f24', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
48
+ return (h("justifi-legal-address-form-step-core", { key: 'bd286476461181f2e8a435a97bf148d55876b49c', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
49
49
  }
50
50
  static get watchers() { return {
51
51
  "authToken": ["propChanged"],
@@ -24,7 +24,7 @@ const LegalAddressForm = /*@__PURE__*/ proxyCustomElement(class LegalAddressForm
24
24
  render() {
25
25
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
26
26
  const legalAddressDefaultValue = this.formController.getInitialValues().legal_address;
27
- return (h(Host, { key: '129b2ec053708454db5a515fdae9a7fba5289336' }, h("fieldset", { key: '6af5c9469acc432ea01ff404af25727bd444abc7' }, h("legend", { key: '1af149db608a13d18142aaea83f9ed2e8271fdc0', part: heading2 }, "Business Legal Address"), h("div", { key: '805c6ae992ebed34937b9a2622f50a7f99c7d0e6', class: "row gy-3" }, h("div", { key: '78750dc68bcc6782bc4a71cfd14d417e980a57a6', class: "col-12" }, h("form-control-text", { key: '18a75e38a7a5fbfcbbbce56e4967ce34c5618c8e', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: '676622c84785edfafa3413359d4985d26a734985', class: "col-12" }, h("form-control-text", { key: 'e8467f96595d240f5fc93585e472ad844cc49143', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '01556012d9335d23c14e130ca72b6e75028bcb36', class: "col-12" }, h("form-control-text", { key: 'c08dcd0ef726ff714d60de26492ced763a7d32ff', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: 'ad811869e742f265a5441c6f36c2a55fa0b07952', class: "col-12" }, h("form-control-select", { key: '47cc4b15578257f3c1fdee7896d28da94b5aaa16', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: 'f732fd2ed3967ee7fd602f41c62efd24cf6038eb', class: "col-12" }, h("form-control-text", { key: '0431a63d11beb6682a2544d2483901f7fffa77bd', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'cca67b0cd006f6cf9f9bbfe147507eb0ac6fecca', class: "col-12" }, h("form-control-select", { key: 'f561947f9443ea6f56d7ae31d44a69e2462c0751', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
27
+ return (h(Host, { key: '5b21d99717f9b24c0551c7a96acf68e53e7787bf' }, h("fieldset", { key: 'd63cbd20b2648405c50a819724e0f8cf556f7d26' }, h("legend", { key: 'c0acd14073f13f914015f40d39bf22fb58792434', part: heading2 }, "Business Legal Address"), h("div", { key: 'ee4cee6bd662816f822ee209aeda5e9664f6a64d', class: "row gy-3" }, h("div", { key: '86b258fd09e73cbd2475330419274732231f3871', class: "col-12" }, h("form-control-text", { key: '8d898a9ae448f07932afe2d8cfc2314b92d9c597', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: '1a50c4b86a754035f71efacd39721219fcd54d60', class: "col-12" }, h("form-control-text", { key: '507b1451685e359a900f0bc7010ff39e3631daf2', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '1446b4db5f86a3b18e3aceb78274ffe458dbd3db', class: "col-12" }, h("form-control-text", { key: 'e17e4bd95ad4290d18edde79cf05a6b3a105166c', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '9b880203bad9e104e6d1299ff73c83cba46ab563', class: "col-12" }, h("form-control-select", { key: '24e4df10f688c9a1b5f2af5217f03919bf7abec7', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '71f21b19602c268e3b6a839ce41ff9d4f8ffb8c4', class: "col-12" }, h("form-control-text", { key: 'ca71d3e21c5a0aea5367fa28ec1a2422ba9b1cf3', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'aaee0bf6a24ba182e002c1ffb49736fb622cde1f', class: "col-12" }, h("form-control-select", { key: '2b6486771818e584dcc195c304e5a6e16850b4a9', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
28
28
  // just for now so we skip handling country specificities
29
29
  disabled: true }))))));
30
30
  }
@@ -2,10 +2,9 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
  import { c as checkoutStore, o as onChange } from './checkout.store.js';
3
3
  import { J as JustifiAnalytics, c as checkPkgVersion } from './Analytics.js';
4
4
  import './config-state.js';
5
- import './utils2.js';
5
+ import './dinero.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
7
7
  import './Pagination.js';
8
- import './Payment.js';
9
8
  import './Business.js';
10
9
  import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
11
10
  import { C as CheckoutService } from './checkout.service.js';
@@ -146,6 +145,7 @@ const CheckoutWrapper = /*@__PURE__*/ proxyCustomElement(class CheckoutWrapper e
146
145
  }
147
146
  queryFormRefs() {
148
147
  this.paymentMethodFormRef = this.hostEl.querySelector('justifi-card-form, justifi-bank-account-form');
148
+ this.tokenizeComponentRef = this.hostEl.querySelector('justifi-tokenize-payment-method');
149
149
  this.billingInformationFormRef = this.hostEl.querySelector('justifi-billing-information-form, justifi-postal-code-form');
150
150
  this.insuranceFormRef = this.hostEl.querySelector('justifi-season-interruption-insurance');
151
151
  this.sezzlePaymentMethodRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
@@ -158,6 +158,12 @@ const CheckoutWrapper = /*@__PURE__*/ proxyCustomElement(class CheckoutWrapper e
158
158
  if (this.savePaymentMethod) {
159
159
  paymentMethodMetadata.payment_method_group_id = checkoutStore.paymentMethodGroupId;
160
160
  }
161
+ if (this.tokenizeComponentRef) {
162
+ const tokenizeResult = await this.tokenizeComponentRef.tokenizePaymentMethod();
163
+ if (tokenizeResult.error) {
164
+ return tokenizeResult;
165
+ }
166
+ }
161
167
  return this.paymentMethodFormRef.tokenize({
162
168
  clientId: this.authToken,
163
169
  paymentMethodMetadata,
@@ -257,7 +263,7 @@ const CheckoutWrapper = /*@__PURE__*/ proxyCustomElement(class CheckoutWrapper e
257
263
  checkoutStore.selectedPaymentMethod = paymentMethodId;
258
264
  }
259
265
  render() {
260
- return (h(Host, { key: '833e1e4f917a0dbee2a14076a71de8d00ec5b5d8' }));
266
+ return (h(Host, { key: '6949f68031572493fae333731c78cc07ccd7fafd' }));
261
267
  }
262
268
  get hostEl() { return this; }
263
269
  }, [0, "justifi-modular-checkout", {