@justifi/webcomponents 6.11.0 → 6.12.1-rc.1

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 (924) hide show
  1. package/dist/cjs/{check-pkg-version-Di4JmtKX.js → Analytics-D72yBqoQ.js} +2 -46
  2. package/dist/cjs/{Plaid-DR9WDZ98.js → Plaid-6JK8xPnG.js} +47 -14
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  4. package/dist/cjs/{justifi-additional-questions-form-step_9.cjs.entry.js → additional-questions-form-step_14.cjs.entry.js} +461 -68
  5. package/dist/cjs/{form-alert_5.cjs.entry.js → additional-questions_5.cjs.entry.js} +26 -26
  6. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +203 -0
  7. package/dist/cjs/bank-account-form.cjs.entry.js +8 -4
  8. package/dist/cjs/bank-account-read-only-value.cjs.entry.js +15 -0
  9. package/dist/cjs/{business.service-mliLE8kX.js → business.service-XXjIL3rT.js} +1 -2
  10. package/dist/cjs/card-form.cjs.entry.js +8 -4
  11. package/dist/cjs/check-pkg-version-EI9MxE9j.js +47 -0
  12. package/dist/cjs/{checkout.service-Cok0vRot.js → checkout.service-BUpGS3Nm.js} +1 -2
  13. package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -3
  14. package/dist/cjs/custom-popper_2.cjs.entry.js +4 -4
  15. package/dist/cjs/{dispute.service-DEH_I2G9.js → dispute.service-BC_bJL60.js} +1 -2
  16. package/dist/cjs/{form-control-number-masked_3.cjs.entry.js → form-address-fields_3.cjs.entry.js} +23 -23
  17. package/dist/cjs/form-control-checkbox.cjs.entry.js +4 -4
  18. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  19. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +7 -7
  20. package/dist/cjs/form-control-file.cjs.entry.js +59 -0
  21. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +4 -4
  22. package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
  23. package/dist/cjs/form-control-number_3.cjs.entry.js +11 -11
  24. package/dist/cjs/form-control-radio.cjs.entry.js +4 -4
  25. package/dist/cjs/form-control-select_2.cjs.entry.js +8 -8
  26. package/dist/cjs/{get-business-DF-XBH8G.js → get-business-Dk1gjO4B.js} +4 -4
  27. package/dist/cjs/{get-payment-details-DNpOyUyR.js → get-payment-details-Cvi1hHGJ.js} +4 -5
  28. package/dist/cjs/{get-payout-csv-DE_D9y08.js → get-payout-csv-CFsWBUNg.js} +3 -3
  29. package/dist/cjs/{get-subaccounts-BQW_RPW5.js → get-subaccounts-BPJ2-LBo.js} +4 -5
  30. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  31. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  32. package/dist/cjs/internal-button.cjs.entry.js +18 -0
  33. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +24 -24
  34. package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_11.cjs.entry.js} +382 -76
  35. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +45 -0
  36. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +43 -0
  37. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +24 -0
  38. package/dist/cjs/justifi-billing-form.cjs.entry.js +24 -0
  39. package/dist/cjs/justifi-business-details.cjs.entry.js +13 -13
  40. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
  41. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +24 -0
  42. package/dist/cjs/justifi-card-form.cjs.entry.js +43 -0
  43. package/dist/cjs/justifi-checkout.cjs.entry.js +9 -11
  44. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +5 -6
  45. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +15 -15
  46. package/dist/cjs/justifi-config-provider.cjs.entry.js +2 -2
  47. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  48. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +3 -3
  49. package/dist/cjs/justifi-dispute-management.cjs.entry.js +16 -16
  50. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +26 -26
  51. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +12 -12
  52. package/dist/cjs/justifi-order-terminals.cjs.entry.js +17 -17
  53. package/dist/cjs/justifi-payment-details.cjs.entry.js +13 -13
  54. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +137 -20
  55. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +13 -13
  56. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  57. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
  58. package/dist/cjs/justifi-payout-details.cjs.entry.js +14 -14
  59. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +13 -13
  60. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +5 -6
  61. package/dist/cjs/justifi-payouts-list.cjs.entry.js +17 -17
  62. package/dist/cjs/justifi-refund-payment.cjs.entry.js +16 -16
  63. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +18 -0
  64. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
  65. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +14 -14
  66. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  67. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -7
  68. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +14 -14
  69. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -5
  70. package/dist/cjs/justifi-terminals-list.cjs.entry.js +16 -16
  71. package/dist/cjs/loader.cjs.js +1 -1
  72. package/dist/cjs/{package-D8NG-zuY.js → package-U1Mz5_qn.js} +1 -1
  73. package/dist/cjs/payment-details-core.cjs.entry.js +9 -10
  74. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  75. package/dist/cjs/{payment-provisioning-actions-J6TGZZb9.js → payment-provisioning-actions-DscyasDY.js} +18 -18
  76. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +52 -0
  77. package/dist/cjs/{payment.service-Dl9UExDw.js → payment.service-DC2FVlv-.js} +1 -2
  78. package/dist/cjs/payments-list-core.cjs.entry.js +2 -3
  79. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  80. package/dist/cjs/{payout.service-kaFewwx4.js → payout.service-Bjbt6USA.js} +1 -2
  81. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -5
  82. package/dist/cjs/{plaid.service-CK1ouCBC.js → plaid.service-C0ZgOkwL.js} +1 -2
  83. package/dist/cjs/radio-list-item.cjs.entry.js +21 -0
  84. package/dist/cjs/save-new-payment-method.cjs.entry.js +25 -0
  85. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  86. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -4
  87. package/dist/cjs/{terminal-orders-table-07fV7wGh.js → terminal-orders-table-j_IoYD-2.js} +1 -2
  88. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  89. package/dist/cjs/{terminal.service-UUoIe0IR.js → terminal.service-YAuPfEGz.js} +1 -2
  90. package/dist/cjs/terminals-list-core.cjs.entry.js +2 -3
  91. package/dist/cjs/{utils-DvUQQLmR.js → utils-C4CgQd55.js} +4 -4
  92. package/dist/cjs/webcomponents.cjs.js +1 -1
  93. package/dist/collection/api/ApplePay.js +4 -0
  94. package/dist/collection/api/services/apple-pay.service.js +1 -0
  95. package/dist/collection/collection-manifest.json +58 -53
  96. package/dist/collection/components/business-details/{business-details.js → justifi-business-details.js} +1 -1
  97. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  98. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  99. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +3 -3
  100. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +3 -3
  101. package/dist/collection/components/business-forms/business-form/{business-form.js → justifi-business-form.js} +2 -2
  102. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +2 -2
  103. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
  104. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
  105. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
  106. package/dist/collection/components/business-forms/owner-form/owner-form.js +3 -3
  107. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/{business-additional-questions-form-step.js → additional-questions-form-step.js} +1 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/bank-account/{bank-account-document-inputs.js → bank-account-document-form-inputs.js} +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
  110. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  111. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
  112. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  113. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  114. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +2 -2
  115. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -4
  116. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
  117. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +2 -2
  118. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +3 -3
  119. package/dist/collection/components/business-forms/payment-provisioning/{payment-provisioning-core.js → justifi-payment-provisioning.js} +76 -76
  120. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +2 -2
  121. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
  122. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +9 -9
  123. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  124. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +11 -16
  125. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.js +16 -35
  126. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.js +19 -37
  127. package/dist/collection/components/checkout/billing-form/billing-form.js +5 -35
  128. package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.js +16 -35
  129. package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +140 -0
  130. package/dist/collection/components/checkout/card-form/card-form.js +11 -16
  131. package/dist/collection/components/checkout/{checkout.js → justifi-checkout.js} +3 -24
  132. package/dist/collection/components/checkout/{saved-payment-method.js → justifi-saved-payment-method.js} +2 -2
  133. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +73 -0
  134. package/dist/collection/components/checkout/{save-new-payment-method.js → save-new-payment-method/save-new-payment-method.js} +23 -6
  135. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  136. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +3 -3
  137. package/dist/collection/components/checkouts-list/{checkouts-list.js → justifi-checkouts-list.js} +2 -2
  138. package/dist/collection/components/config-provider/{config-provider.js → justifi-config-provider.js} +1 -1
  139. package/dist/collection/components/dispute-management/dispute-management-core.js +2 -2
  140. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +2 -2
  141. package/dist/collection/components/dispute-management/dispute-response/{additional-statement.js → justifi-additional-statement.js} +2 -2
  142. package/dist/collection/components/dispute-management/dispute-response/{cancellation-policy.js → justifi-cancellation-policy.js} +2 -2
  143. package/dist/collection/components/dispute-management/dispute-response/{customer-details.js → justifi-customer-details.js} +2 -2
  144. package/dist/collection/components/dispute-management/dispute-response/{dispute-response.js → justifi-dispute-response.js} +5 -4
  145. package/dist/collection/components/dispute-management/dispute-response/{duplicate-charge.js → justifi-duplicate-charge.js} +2 -2
  146. package/dist/collection/components/dispute-management/dispute-response/{electronic-evidence.js → justifi-electronic-evidence.js} +2 -2
  147. package/dist/collection/components/dispute-management/dispute-response/{product-or-service.js → justifi-product-or-service.js} +2 -2
  148. package/dist/collection/components/dispute-management/dispute-response/{refund-policy.js → justifi-refund-policy.js} +2 -2
  149. package/dist/collection/components/dispute-management/dispute-response/{shipping-details.js → justifi-shipping-details.js} +2 -2
  150. package/dist/collection/components/dispute-management/{dispute-management.js → justifi-dispute-management.js} +2 -2
  151. package/dist/collection/components/dispute-management/{dispute-notification.js → justifi-dispute-notification.js} +3 -3
  152. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  153. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  154. package/dist/collection/components/gross-payment-chart/{gross-payment-chart.js → justifi-gross-payment-chart.js} +1 -1
  155. package/dist/collection/components/insurance/season-interruption/{season-interruption-insurance.js → justifi-season-interruption-insurance.js} +1 -1
  156. package/dist/collection/components/modular-checkout/{modular-checkout.js → justifi-modular-checkout.js} +41 -3
  157. package/dist/collection/components/modular-checkout/sub-components/{apple-pay.js → justifi-apple-pay.js} +8 -11
  158. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +95 -0
  159. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +69 -0
  160. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +83 -0
  161. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +83 -0
  162. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +69 -0
  163. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +12 -0
  164. package/dist/collection/components/modular-checkout/sub-components/{google-pay.js → justifi-google-pay.js} +1 -1
  165. package/dist/collection/components/modular-checkout/sub-components/{plaid-payment-method.js → justifi-plaid-payment-method.js} +2 -2
  166. package/dist/collection/components/modular-checkout/sub-components/{saved-payment-methods.js → justifi-saved-payment-methods.js} +1 -1
  167. package/dist/collection/components/modular-checkout/sub-components/{sezzle-payment-method.js → justifi-sezzle-payment-method.js} +1 -1
  168. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  169. package/dist/collection/components/order-terminals/{order-terminals.js → justifi-order-terminals.js} +2 -2
  170. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  171. package/dist/collection/components/payment-details/{payment-details.js → justifi-payment-details.js} +1 -1
  172. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  173. package/dist/collection/components/payment-transactions-list/{payment-transactions-list.js → justifi-payment-transactions-list.js} +2 -2
  174. package/dist/collection/components/payments-list/{payments-list-filters.js → justifi-payments-list-filters.js} +3 -3
  175. package/dist/collection/components/payments-list/{payments-list.js → justifi-payments-list.js} +2 -2
  176. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  177. package/dist/collection/components/payout-details/{payout-details.js → justifi-payout-details.js} +1 -1
  178. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  179. package/dist/collection/components/payout-transactions-list/{payout-transactions-list.js → justifi-payout-transactions-list.js} +2 -2
  180. package/dist/collection/components/payouts-list/{payouts-list-filters.js → justifi-payouts-list-filters.js} +3 -3
  181. package/dist/collection/components/payouts-list/{payouts-list.js → justifi-payouts-list.js} +2 -2
  182. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  183. package/dist/collection/components/refund-payment/{refund-payment.js → justifi-refund-payment.js} +1 -1
  184. package/dist/collection/components/terminal-orders-list/{terminal-orders-list-filters.js → justifi-terminal-orders-list-filters.js} +4 -4
  185. package/dist/collection/components/terminal-orders-list/{terminal-orders-list.js → justifi-terminal-orders-list.js} +2 -2
  186. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  187. package/dist/collection/components/terminals-list/{terminals-list-filters.js → justifi-terminals-list-filters.js} +2 -2
  188. package/dist/collection/components/terminals-list/{terminals-list.js → justifi-terminals-list.js} +2 -2
  189. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  190. package/dist/collection/components/tokenize-payment-method/{internal-tokenize-payment-method.js → justifi-tokenize-payment-method.js} +73 -37
  191. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  192. package/dist/collection/ui-components/details/{details.js → justifi-details.js} +2 -2
  193. package/dist/collection/ui-components/form/form-control-checkbox.js +3 -3
  194. package/dist/collection/ui-components/form/form-control-date.js +3 -3
  195. package/dist/collection/ui-components/form/form-control-file-v2.js +2 -2
  196. package/dist/collection/ui-components/form/form-control-file.js +3 -3
  197. package/dist/collection/ui-components/form/form-control-monetary.js +3 -3
  198. package/dist/collection/ui-components/form/form-control-number-masked.js +3 -3
  199. package/dist/collection/ui-components/form/form-control-number.js +3 -3
  200. package/dist/collection/ui-components/form/form-control-radio.js +3 -3
  201. package/dist/collection/ui-components/form/form-control-select.js +3 -3
  202. package/dist/collection/ui-components/form/form-control-text.js +3 -3
  203. package/dist/collection/ui-components/form/form-control-textarea.js +3 -3
  204. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +1 -1
  205. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  206. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  207. package/dist/collection/ui-components/index.js +1 -1
  208. package/dist/collection/ui-components/internal-button.js +192 -0
  209. package/dist/collection/ui-components/radio-list-item.js +153 -0
  210. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +20 -2
  211. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
  212. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -5
  213. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  214. package/dist/docs.json +10986 -10831
  215. package/dist/esm/{check-pkg-version-Dn83YYz_.js → Analytics-BLWnbxJY.js} +4 -47
  216. package/dist/esm/{Api-CLZVsXZg.js → Api-BrYhtpEh.js} +1 -1
  217. package/dist/esm/{Plaid-DOdR_CNb.js → Plaid-D40pFwwP.js} +36 -3
  218. package/dist/esm/additional-questions-details_5.entry.js +5 -5
  219. package/dist/esm/{justifi-additional-questions-form-step_9.entry.js → additional-questions-form-step_14.entry.js} +428 -40
  220. package/dist/esm/{form-alert_5.entry.js → additional-questions_5.entry.js} +23 -23
  221. package/dist/esm/{badge-guwZ0VTf.js → badge-B_DdhQ3Q.js} +1 -1
  222. package/dist/esm/bank-account-billing-form-simple_4.entry.js +198 -0
  223. package/dist/esm/bank-account-form.entry.js +12 -8
  224. package/dist/esm/bank-account-read-only-value.entry.js +13 -0
  225. package/dist/esm/business-details-core.entry.js +3 -3
  226. package/dist/esm/{business.service-DSolii9Q.js → business.service-Bt68Uk7V.js} +2 -3
  227. package/dist/esm/{button-CdXktiZq.js → button-B-Agn8yQ.js} +1 -1
  228. package/dist/esm/card-form.entry.js +12 -8
  229. package/dist/esm/check-pkg-version-D9dGqUmC.js +45 -0
  230. package/dist/esm/{checkout.service-BTXHVtxI.js → checkout.service-B7K5LRx2.js} +2 -3
  231. package/dist/esm/{checkout.store-iNkW80yV.js → checkout.store-C1TdhFf6.js} +1 -1
  232. package/dist/esm/checkouts-list-core.entry.js +8 -9
  233. package/dist/esm/{checkouts-table-Bf6gjMf8.js → checkouts-table-BXm9GGFI.js} +3 -3
  234. package/dist/esm/custom-popper_2.entry.js +5 -5
  235. package/dist/esm/{dispute.service-CpDEYnHy.js → dispute.service-BPA0V42p.js} +2 -3
  236. package/dist/esm/{form-control-number-masked_3.entry.js → form-address-fields_3.entry.js} +23 -23
  237. package/dist/esm/form-control-checkbox.entry.js +7 -7
  238. package/dist/esm/form-control-date.entry.js +6 -6
  239. package/dist/esm/{form-control-error-text-JYoDicr0.js → form-control-error-text-DMKhr8QA.js} +1 -1
  240. package/dist/esm/form-control-file-v2_2.entry.js +8 -8
  241. package/dist/esm/form-control-file.entry.js +57 -0
  242. package/dist/esm/{form-control-help-text-DxL7yVgi.js → form-control-help-text-CsdCuw5-.js} +1 -1
  243. package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
  244. package/dist/esm/form-control-monetary.entry.js +8 -8
  245. package/dist/esm/form-control-number_3.entry.js +13 -13
  246. package/dist/esm/form-control-radio.entry.js +5 -5
  247. package/dist/esm/form-control-select_2.entry.js +9 -9
  248. package/dist/esm/{get-business-BtJWpVs_.js → get-business-CijoB3Df.js} +2 -2
  249. package/dist/esm/{get-payment-details-VEzqfeuZ.js → get-payment-details-B9JipaKX.js} +2 -3
  250. package/dist/esm/{get-payout-csv-D-Lnooki.js → get-payout-csv-CzWaTjoV.js} +2 -2
  251. package/dist/esm/{get-subaccounts-DUdsxExJ.js → get-subaccounts-Dfo7wGVE.js} +3 -4
  252. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  253. package/dist/esm/{header-1-CU8Erek9.js → header-1-bRxxOyI-.js} +1 -1
  254. package/dist/esm/{header-3-BwJ-9MsW.js → header-3-E533c0A3.js} +1 -1
  255. package/dist/esm/hidden-input_2.entry.js +7 -7
  256. package/dist/esm/{insurance-state-gsU4kKgc.js → insurance-state-obAKb1XR.js} +1 -1
  257. package/dist/esm/internal-button.entry.js +16 -0
  258. package/dist/esm/justifi-additional-statement_8.entry.js +18 -18
  259. package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_11.entry.js} +340 -37
  260. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +43 -0
  261. package/dist/esm/justifi-bank-account-form.entry.js +41 -0
  262. package/dist/esm/justifi-billing-form-full.entry.js +22 -0
  263. package/dist/esm/justifi-billing-form.entry.js +22 -0
  264. package/dist/esm/justifi-business-details.entry.js +14 -14
  265. package/dist/esm/justifi-business-form.entry.js +16 -16
  266. package/dist/esm/justifi-card-billing-form-simple.entry.js +22 -0
  267. package/dist/esm/justifi-card-form.entry.js +41 -0
  268. package/dist/esm/justifi-checkout.entry.js +12 -14
  269. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -8
  270. package/dist/esm/justifi-checkouts-list.entry.js +15 -15
  271. package/dist/esm/justifi-config-provider.entry.js +2 -2
  272. package/dist/esm/justifi-details.entry.js +5 -5
  273. package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
  274. package/dist/esm/justifi-dispute-management.entry.js +12 -12
  275. package/dist/esm/justifi-dispute-notification_3.entry.js +20 -20
  276. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  277. package/dist/esm/justifi-order-terminals.entry.js +15 -15
  278. package/dist/esm/justifi-payment-details.entry.js +14 -14
  279. package/dist/esm/justifi-payment-provisioning.entry.js +135 -18
  280. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
  281. package/dist/esm/justifi-payments-list-filters.entry.js +6 -6
  282. package/dist/esm/justifi-payments-list.entry.js +15 -15
  283. package/dist/esm/justifi-payout-details.entry.js +13 -13
  284. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
  285. package/dist/esm/justifi-payouts-list-filters.entry.js +7 -8
  286. package/dist/esm/justifi-payouts-list.entry.js +17 -17
  287. package/dist/esm/justifi-refund-payment.entry.js +14 -14
  288. package/dist/esm/justifi-save-new-payment-method.entry.js +16 -0
  289. package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
  290. package/dist/esm/justifi-season-interruption-insurance.entry.js +13 -13
  291. package/dist/esm/justifi-skeleton.entry.js +3 -3
  292. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -9
  293. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
  294. package/dist/esm/justifi-terminals-list-filters.entry.js +6 -7
  295. package/dist/esm/justifi-terminals-list.entry.js +15 -15
  296. package/dist/esm/loader.js +1 -1
  297. package/dist/esm/{package-qNXIkzDE.js → package-BW1eeDYQ.js} +1 -1
  298. package/dist/esm/pagination-menu.entry.js +1 -1
  299. package/dist/esm/{parts-D3V9AE6o.js → parts-D50Rx76J.js} +1 -1
  300. package/dist/esm/payment-details-core.entry.js +15 -16
  301. package/dist/esm/payment-method-option.entry.js +2 -2
  302. package/dist/esm/{payment-provisioning-actions-CBvplwPf.js → payment-provisioning-actions-Bv2HP9Cx.js} +3 -3
  303. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +49 -0
  304. package/dist/esm/{payment-provisioning-loading-CQfDKCwy.js → payment-provisioning-loading-BAoIyEOj.js} +1 -1
  305. package/dist/esm/{payment.service-BjU4B__W.js → payment.service-J7iQtC5z.js} +2 -3
  306. package/dist/esm/payments-list-core.entry.js +9 -10
  307. package/dist/esm/{payments-status-DT4VNKKg.js → payments-status-7P7L51CK.js} +1 -1
  308. package/dist/esm/{payments-table-BJ1F2ZZU.js → payments-table-n1VrIKIR.js} +3 -3
  309. package/dist/esm/payout-details-core.entry.js +10 -10
  310. package/dist/esm/{payout.service-CzCd8AaC.js → payout.service-Dsz8f37z.js} +2 -3
  311. package/dist/esm/payouts-list-core.entry.js +9 -10
  312. package/dist/esm/{payouts-status-LTNE_gQc.js → payouts-status-CGZRMu-q.js} +1 -1
  313. package/dist/esm/{payouts-table-Yp2d9OgA.js → payouts-table-CbzI90ci.js} +3 -3
  314. package/dist/esm/{plaid.service-D61Eq14d.js → plaid.service-D1nDrcPY.js} +2 -3
  315. package/dist/esm/radio-list-item.entry.js +19 -0
  316. package/dist/esm/save-new-payment-method.entry.js +23 -0
  317. package/dist/esm/{skeleton-CV6EpBqb.js → skeleton-DV6yJalo.js} +1 -1
  318. package/dist/esm/{spinner-CG3aWl8K.js → spinner--fEgBBOG.js} +1 -1
  319. package/dist/esm/{table-DZ6rurWg.js → table-Deugl8h5.js} +2 -2
  320. package/dist/esm/table-filters-menu.entry.js +3 -3
  321. package/dist/esm/terminal-orders-list-core.entry.js +8 -9
  322. package/dist/esm/{terminal-orders-table-CJg6dKsL.js → terminal-orders-table-DlVbBgNh.js} +4 -5
  323. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  324. package/dist/esm/{terminal.service-BBdRhDxm.js → terminal.service-Sg45obrZ.js} +2 -3
  325. package/dist/esm/terminals-list-core.entry.js +8 -9
  326. package/dist/esm/{terminals-table-iGSICJeZ.js → terminals-table-Bja7MP5H.js} +3 -3
  327. package/dist/esm/{utils-DUArY3am.js → utils-DJOBwFeP.js} +1 -1
  328. package/dist/esm/{utils-7bp92NC7.js → utils-De6tr4ug.js} +1 -1
  329. package/dist/esm/{utils-BeQLScSm.js → utils-jaFbbifV.js} +1 -1
  330. package/dist/esm/webcomponents.js +1 -1
  331. package/dist/module/Analytics.js +1 -43
  332. package/dist/module/ApplePay.js +4 -0
  333. package/dist/module/Business.js +1 -1
  334. package/dist/module/Plaid.js +1 -1
  335. package/dist/module/additional-questions-form-step.d.ts +11 -0
  336. package/dist/module/additional-questions-form-step.js +6 -0
  337. package/dist/module/{business-additional-questions-form-step.js → additional-questions-form-step2.js} +5 -5
  338. package/dist/module/additional-questions.d.ts +11 -0
  339. package/dist/module/additional-questions.js +4 -76
  340. package/dist/module/additional-questions2.js +78 -0
  341. package/dist/module/badge.js +1 -1
  342. package/dist/module/bank-account-billing-form-simple.d.ts +11 -0
  343. package/dist/module/bank-account-billing-form-simple.js +4 -86
  344. package/dist/module/bank-account-billing-form-simple2.js +91 -0
  345. package/dist/module/bank-account-document-form-inputs.js +1 -1
  346. package/dist/module/{bank-account-document-inputs.js → bank-account-document-form-inputs2.js} +1 -1
  347. package/dist/module/bank-account-form-inputs-canada2.js +3 -3
  348. package/dist/module/bank-account-form-inputs2.js +3 -3
  349. package/dist/module/bank-account-form.js +1 -80
  350. package/dist/module/{bank-account.js → bank-account-form2.js} +10 -19
  351. package/dist/module/bank-account-read-only-value2.js +2 -2
  352. package/dist/module/billing-form-full.d.ts +11 -0
  353. package/dist/module/billing-form-full.js +4 -97
  354. package/dist/module/billing-form-full2.js +105 -0
  355. package/dist/module/billing-form-schema.js +1 -1
  356. package/dist/module/billing-form.d.ts +11 -0
  357. package/dist/module/billing-form.js +4 -102
  358. package/dist/module/billing-form2.js +99 -0
  359. package/dist/module/business-additional-questions-schema.js +1 -1
  360. package/dist/module/business-address-schema.js +2 -2
  361. package/dist/module/business-bank-account-form-step.d.ts +11 -0
  362. package/dist/module/business-bank-account-form-step.js +4 -602
  363. package/dist/module/business-bank-account-form-step2.js +604 -0
  364. package/dist/module/business-core-info-form-step.d.ts +11 -0
  365. package/dist/module/business-core-info-form-step.js +4 -215
  366. package/dist/module/business-core-info-form-step2.js +217 -0
  367. package/dist/module/{justifi-owner-form.d.ts → business-core-info.d.ts} +4 -4
  368. package/dist/module/business-core-info.js +4 -92
  369. package/dist/module/business-core-info2.js +94 -0
  370. package/dist/module/business-details-core2.js +1 -1
  371. package/dist/module/business-documents-on-file2.js +3 -3
  372. package/dist/module/business-form-options.js +1 -1
  373. package/dist/module/business-identity-schema.js +2 -2
  374. package/dist/module/business-owners-form-step.d.ts +11 -0
  375. package/dist/module/business-owners-form-step.js +4 -302
  376. package/dist/module/business-owners-form-step2.js +304 -0
  377. package/dist/module/business-representative-form-inputs.d.ts +11 -0
  378. package/dist/module/business-representative-form-inputs.js +4 -100
  379. package/dist/module/business-representative-form-inputs2.js +102 -0
  380. package/dist/module/business-representative-form-step.d.ts +11 -0
  381. package/dist/module/business-representative-form-step.js +4 -220
  382. package/dist/module/business-representative-form-step2.js +222 -0
  383. package/dist/module/business-representative.d.ts +11 -0
  384. package/dist/module/business-representative.js +4 -114
  385. package/dist/module/business-representative2.js +116 -0
  386. package/dist/module/business-terms-conditions-form-step.d.ts +11 -0
  387. package/dist/module/business-terms-conditions-form-step.js +4 -165
  388. package/dist/module/business-terms-conditions-form-step2.js +167 -0
  389. package/dist/module/button.js +1 -1
  390. package/dist/module/card-billing-form-simple.d.ts +11 -0
  391. package/dist/module/card-billing-form-simple.js +4 -86
  392. package/dist/module/card-billing-form-simple2.js +91 -0
  393. package/dist/module/card-form.js +1 -84
  394. package/dist/module/card-form2.js +12 -21
  395. package/dist/module/check-pkg-version.js +45 -0
  396. package/dist/module/checkout.store.js +2 -2
  397. package/dist/module/checkouts-list-core2.js +4 -4
  398. package/dist/module/checkouts-list-params-state.js +1 -1
  399. package/dist/module/config-state.js +1 -1
  400. package/dist/module/custom-popper2.js +2 -2
  401. package/dist/module/dispute-management-core.js +15 -15
  402. package/dist/module/dispute-response-actions.js +2 -2
  403. package/dist/module/dispute-response-core.js +13 -13
  404. package/dist/module/form-address-fields.d.ts +11 -0
  405. package/dist/module/form-address-fields.js +4 -63
  406. package/dist/module/form-address-fields2.js +65 -0
  407. package/dist/module/form-alert2.js +1 -1
  408. package/dist/module/form-control-checkbox.js +2 -2
  409. package/dist/module/form-control-checkbox2.js +8 -8
  410. package/dist/module/form-control-date.js +2 -2
  411. package/dist/module/form-control-date2.js +7 -7
  412. package/dist/module/form-control-file-v2.js +2 -2
  413. package/dist/module/form-control-file-v22.js +4 -4
  414. package/dist/module/form-control-file.js +2 -2
  415. package/dist/module/form-control-file2.js +7 -7
  416. package/dist/module/form-control-help-text.js +1 -1
  417. package/dist/module/form-control-help-text2.js +9 -32
  418. package/dist/module/form-control-help-text3.js +32 -9
  419. package/dist/module/form-control-monetary-provisioning.js +2 -2
  420. package/dist/module/form-control-monetary-provisioning2.js +9 -9
  421. package/dist/module/form-control-monetary.js +2 -2
  422. package/dist/module/form-control-monetary2.js +8 -8
  423. package/dist/module/form-control-number-masked.js +2 -2
  424. package/dist/module/form-control-number-masked2.js +8 -8
  425. package/dist/module/form-control-number.js +2 -2
  426. package/dist/module/form-control-number2.js +8 -8
  427. package/dist/module/form-control-radio.js +2 -2
  428. package/dist/module/form-control-radio2.js +7 -7
  429. package/dist/module/form-control-select.js +2 -2
  430. package/dist/module/form-control-select2.js +7 -7
  431. package/dist/module/form-control-text.js +2 -2
  432. package/dist/module/form-control-text2.js +7 -7
  433. package/dist/module/form-control-textarea.js +2 -2
  434. package/dist/module/form-control-textarea2.js +7 -7
  435. package/dist/module/form-control-tooltip.js +2 -2
  436. package/dist/module/form-control-tooltip2.js +4 -4
  437. package/dist/module/get-business.js +2 -2
  438. package/dist/module/get-payment-details.js +2 -2
  439. package/dist/module/get-payout-csv.js +2 -2
  440. package/dist/module/get-subaccounts.js +2 -2
  441. package/dist/module/gross-payment-chart-core2.js +2 -2
  442. package/dist/module/header-1.js +1 -1
  443. package/dist/module/header-3.js +1 -1
  444. package/dist/module/hidden-input2.js +2 -2
  445. package/dist/module/identity-address-form.d.ts +11 -0
  446. package/dist/module/identity-address-form.js +4 -76
  447. package/dist/module/identity-address-form2.js +78 -0
  448. package/dist/module/iframe-input-styles-state.js +1 -1
  449. package/dist/module/iframe-input2.js +4 -4
  450. package/dist/module/index2.js +3567 -246
  451. package/dist/module/index3.js +246 -3567
  452. package/dist/module/insurance-state.js +1 -1
  453. package/dist/module/internal-button.d.ts +11 -0
  454. package/dist/module/internal-button.js +6 -0
  455. package/dist/module/internal-button2.js +42 -0
  456. package/dist/module/justifi-additional-statement.js +2 -2
  457. package/dist/module/{additional-statement.js → justifi-additional-statement2.js} +5 -5
  458. package/dist/module/justifi-apple-pay.js +2 -2
  459. package/dist/module/{apple-pay.js → justifi-apple-pay2.js} +12 -11
  460. package/dist/module/justifi-bank-account-billing-form-simple.js +81 -2
  461. package/dist/module/justifi-bank-account-form.js +72 -2
  462. package/dist/module/justifi-billing-form-full.js +75 -2
  463. package/dist/module/justifi-billing-form.js +96 -2
  464. package/dist/module/justifi-business-details.js +7 -6
  465. package/dist/module/justifi-business-form.js +39 -38
  466. package/dist/module/justifi-button2.js +10 -4
  467. package/dist/module/justifi-cancellation-policy.js +2 -2
  468. package/dist/module/{cancellation-policy.js → justifi-cancellation-policy2.js} +5 -5
  469. package/dist/module/justifi-card-billing-form-simple.js +69 -2
  470. package/dist/module/justifi-card-form.js +71 -1
  471. package/dist/module/justifi-checkout-summary.js +2 -2
  472. package/dist/module/{summary.js → justifi-checkout-summary2.js} +6 -6
  473. package/dist/module/justifi-checkout.js +73 -62
  474. package/dist/module/justifi-checkouts-list-filters.js +6 -6
  475. package/dist/module/justifi-checkouts-list.js +9 -8
  476. package/dist/module/justifi-config-provider.js +3 -3
  477. package/dist/module/justifi-customer-details.js +2 -2
  478. package/dist/module/{customer-details.js → justifi-customer-details2.js} +5 -5
  479. package/dist/module/justifi-details.js +2 -2
  480. package/dist/module/{details.js → justifi-details2.js} +4 -4
  481. package/dist/module/justifi-dispute-management-core.js +2 -2
  482. package/dist/module/justifi-dispute-management.js +19 -18
  483. package/dist/module/justifi-dispute-notification.js +2 -2
  484. package/dist/module/{dispute-notification.js → justifi-dispute-notification2.js} +7 -7
  485. package/dist/module/justifi-dispute-response-core.js +2 -2
  486. package/dist/module/justifi-dispute-response.js +2 -2
  487. package/dist/module/{dispute-response.js → justifi-dispute-response2.js} +17 -16
  488. package/dist/module/justifi-duplicate-charge.js +2 -2
  489. package/dist/module/{duplicate-charge.js → justifi-duplicate-charge2.js} +5 -5
  490. package/dist/module/justifi-electronic-evidence.js +2 -2
  491. package/dist/module/{electronic-evidence.js → justifi-electronic-evidence2.js} +4 -4
  492. package/dist/module/justifi-google-pay.js +2 -2
  493. package/dist/module/{google-pay.js → justifi-google-pay2.js} +4 -4
  494. package/dist/module/justifi-gross-payment-chart.js +7 -6
  495. package/dist/module/justifi-header.js +2 -2
  496. package/dist/module/justifi-header2.js +4 -4
  497. package/dist/module/justifi-modular-checkout.js +2 -2
  498. package/dist/module/{modular-checkout.js → justifi-modular-checkout2.js} +23 -9
  499. package/dist/module/justifi-order-terminals.js +10 -9
  500. package/dist/module/justifi-payment-details.js +7 -6
  501. package/dist/module/justifi-payment-provisioning.js +201 -83
  502. package/dist/module/justifi-payment-transactions-list.js +10 -9
  503. package/dist/module/justifi-payments-list-filters.js +6 -6
  504. package/dist/module/justifi-payments-list.js +9 -8
  505. package/dist/module/justifi-payout-details.js +8 -7
  506. package/dist/module/justifi-payout-transactions-list.js +10 -9
  507. package/dist/module/justifi-payouts-list-filters.js +6 -6
  508. package/dist/module/justifi-payouts-list.js +9 -8
  509. package/dist/module/justifi-plaid-payment-method.js +2 -2
  510. package/dist/module/{plaid-payment-method.js → justifi-plaid-payment-method2.js} +7 -7
  511. package/dist/module/justifi-product-or-service.js +2 -2
  512. package/dist/module/{product-or-service.js → justifi-product-or-service2.js} +4 -4
  513. package/dist/module/justifi-radio-list-item2.js +11 -9
  514. package/dist/module/justifi-refund-payment.js +9 -8
  515. package/dist/module/justifi-refund-policy.js +2 -2
  516. package/dist/module/{refund-policy.js → justifi-refund-policy2.js} +5 -5
  517. package/dist/module/justifi-save-new-payment-method.js +50 -2
  518. package/dist/module/justifi-saved-payment-method.js +6 -6
  519. package/dist/module/justifi-saved-payment-methods.js +2 -2
  520. package/dist/module/{saved-payment-methods.js → justifi-saved-payment-methods2.js} +6 -6
  521. package/dist/module/justifi-season-interruption-insurance.js +10 -9
  522. package/dist/module/justifi-sezzle-payment-method.js +2 -2
  523. package/dist/module/{sezzle-payment-method.js → justifi-sezzle-payment-method2.js} +4 -4
  524. package/dist/module/justifi-shipping-details.js +2 -2
  525. package/dist/module/{shipping-details.js → justifi-shipping-details2.js} +5 -5
  526. package/dist/module/justifi-skeleton.js +1 -1
  527. package/dist/module/justifi-terminal-orders-list-filters.js +7 -7
  528. package/dist/module/justifi-terminal-orders-list.js +9 -8
  529. package/dist/module/justifi-terminals-list-filters.js +5 -5
  530. package/dist/module/justifi-terminals-list.js +9 -8
  531. package/dist/module/justifi-tokenize-payment-method.js +2 -167
  532. package/dist/module/{internal-tokenize-payment-method2.js → justifi-tokenize-payment-method2.js} +73 -56
  533. package/dist/module/legal-address-form-step.d.ts +11 -0
  534. package/dist/module/legal-address-form-step.js +4 -189
  535. package/dist/module/legal-address-form-step2.js +191 -0
  536. package/dist/module/legal-address-form.d.ts +11 -0
  537. package/dist/module/legal-address-form.js +4 -74
  538. package/dist/module/legal-address-form2.js +76 -0
  539. package/dist/module/owner-details2.js +1 -1
  540. package/dist/module/owner-form-core.js +2 -2
  541. package/dist/module/owner-form-core2.js +23 -23
  542. package/dist/module/owner-form-inputs.js +2 -2
  543. package/dist/module/owner-form-inputs2.js +23 -23
  544. package/dist/module/owner-form.d.ts +11 -0
  545. package/dist/module/owner-form.js +4 -142
  546. package/dist/module/owner-form2.js +144 -0
  547. package/dist/module/package.js +1 -1
  548. package/dist/module/pagination-menu2.js +1 -1
  549. package/dist/module/parts.js +1 -1
  550. package/dist/module/payment-details-core2.js +10 -10
  551. package/dist/module/payment-method-option.js +4 -4
  552. package/dist/module/payment-provisioning-actions.js +2 -2
  553. package/dist/module/payment-provisioning-form-buttons.d.ts +11 -0
  554. package/dist/module/payment-provisioning-form-buttons.js +4 -49
  555. package/dist/module/payment-provisioning-form-buttons2.js +51 -0
  556. package/dist/module/payment-provisioning-form-steps.d.ts +11 -0
  557. package/dist/module/payment-provisioning-form-steps.js +4 -224
  558. package/dist/module/payment-provisioning-form-steps2.js +226 -0
  559. package/dist/module/payment-provisioning-loading.js +1 -1
  560. package/dist/module/payments-list-core2.js +3 -3
  561. package/dist/module/payments-list-params-state.js +1 -1
  562. package/dist/module/payout-details-core2.js +5 -5
  563. package/dist/module/payouts-list-core2.js +4 -4
  564. package/dist/module/payouts-list-params-state.js +1 -1
  565. package/dist/module/plaid-verification2.js +3 -3
  566. package/dist/module/radio-list-item.d.ts +11 -0
  567. package/dist/module/radio-list-item.js +6 -0
  568. package/dist/module/radio-list-item2.js +55 -0
  569. package/dist/module/representative-details.js +2 -2
  570. package/dist/module/representative-details2.js +4 -4
  571. package/dist/module/save-new-payment-method.d.ts +11 -0
  572. package/dist/module/save-new-payment-method.js +4 -50
  573. package/dist/module/save-new-payment-method2.js +48 -0
  574. package/dist/module/schema-validations.js +2 -2
  575. package/dist/module/skeleton.js +1 -1
  576. package/dist/module/spinner.js +1 -1
  577. package/dist/module/table-filters-menu2.js +1 -1
  578. package/dist/module/table.js +1 -1
  579. package/dist/module/terminal-orders-list-core2.js +3 -3
  580. package/dist/module/terminal-orders-list-params-state.js +1 -1
  581. package/dist/module/terminal-quantity-selector2.js +2 -2
  582. package/dist/module/terminals-list-core2.js +4 -4
  583. package/dist/module/terminals-list-params-state.js +1 -1
  584. package/dist/module/utils.js +1 -1
  585. package/dist/module/utils2.js +1 -1
  586. package/dist/module/utils3.js +24 -23
  587. package/dist/module/utils4.js +23 -24
  588. package/dist/types/api/ApplePay.d.ts +2 -0
  589. package/dist/types/components/business-details/{business-details.d.ts → justifi-business-details.d.ts} +1 -1
  590. package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
  591. package/dist/types/components/business-forms/business-form/{business-form.d.ts → justifi-business-form.d.ts} +1 -1
  592. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
  593. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
  594. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +1 -1
  595. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
  596. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +1 -1
  597. package/dist/types/components/business-forms/payment-provisioning/{payment-provisioning-core.d.ts → justifi-payment-provisioning.d.ts} +11 -14
  598. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +6 -6
  599. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +5 -1
  600. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.d.ts +3 -2
  601. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.d.ts +4 -2
  602. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +1 -1
  603. package/dist/types/components/checkout/billing-form/billing-form.d.ts +0 -1
  604. package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.d.ts +3 -2
  605. package/dist/types/components/checkout/billing-form/justifi-billing-form.d.ts +14 -0
  606. package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
  607. package/dist/types/components/checkout/{checkout.d.ts → justifi-checkout.d.ts} +2 -21
  608. package/dist/types/components/checkout/{saved-payment-method.d.ts → justifi-saved-payment-method.d.ts} +1 -1
  609. package/dist/types/components/checkout/save-new-payment-method/justifi-save-new-payment-method.d.ts +7 -0
  610. package/dist/types/components/checkout/{save-new-payment-method.d.ts → save-new-payment-method/save-new-payment-method.d.ts} +2 -1
  611. package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +1 -1
  612. package/dist/types/components/checkouts-list/{checkouts-list.d.ts → justifi-checkouts-list.d.ts} +1 -1
  613. package/dist/types/components/config-provider/{config-provider.d.ts → justifi-config-provider.d.ts} +1 -1
  614. package/dist/types/components/dispute-management/dispute-management-core.d.ts +1 -1
  615. package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +1 -1
  616. package/dist/types/components/dispute-management/dispute-response/{additional-statement.d.ts → justifi-additional-statement.d.ts} +1 -1
  617. package/dist/types/components/dispute-management/dispute-response/{cancellation-policy.d.ts → justifi-cancellation-policy.d.ts} +1 -1
  618. package/dist/types/components/dispute-management/dispute-response/{customer-details.d.ts → justifi-customer-details.d.ts} +1 -1
  619. package/dist/types/components/dispute-management/dispute-response/{dispute-response.d.ts → justifi-dispute-response.d.ts} +2 -2
  620. package/dist/types/components/dispute-management/dispute-response/{duplicate-charge.d.ts → justifi-duplicate-charge.d.ts} +1 -1
  621. package/dist/types/components/dispute-management/dispute-response/{electronic-evidence.d.ts → justifi-electronic-evidence.d.ts} +1 -1
  622. package/dist/types/components/dispute-management/dispute-response/{product-or-service.d.ts → justifi-product-or-service.d.ts} +1 -1
  623. package/dist/types/components/dispute-management/dispute-response/{refund-policy.d.ts → justifi-refund-policy.d.ts} +1 -1
  624. package/dist/types/components/dispute-management/dispute-response/{shipping-details.d.ts → justifi-shipping-details.d.ts} +1 -1
  625. package/dist/types/components/dispute-management/{dispute-management.d.ts → justifi-dispute-management.d.ts} +1 -1
  626. package/dist/types/components/dispute-management/{dispute-notification.d.ts → justifi-dispute-notification.d.ts} +1 -1
  627. package/dist/types/components/gross-payment-chart/{gross-payment-chart.d.ts → justifi-gross-payment-chart.d.ts} +1 -1
  628. package/dist/types/components/insurance/season-interruption/{season-interruption-insurance.d.ts → justifi-season-interruption-insurance.d.ts} +1 -1
  629. package/dist/types/components/modular-checkout/{modular-checkout.d.ts → justifi-modular-checkout.d.ts} +2 -1
  630. package/dist/types/components/modular-checkout/sub-components/{apple-pay.d.ts → justifi-apple-pay.d.ts} +1 -4
  631. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.d.ts +15 -0
  632. package/dist/types/components/modular-checkout/sub-components/{bank-account.d.ts → justifi-bank-account-form.d.ts} +2 -7
  633. package/dist/types/components/modular-checkout/sub-components/justifi-billing-form-full.d.ts +11 -0
  634. package/dist/types/components/modular-checkout/sub-components/justifi-card-billing-form-simple.d.ts +11 -0
  635. package/dist/types/components/modular-checkout/sub-components/{card-form.d.ts → justifi-card-form.d.ts} +1 -8
  636. package/dist/types/components/modular-checkout/sub-components/justifi-checkout-summary.d.ts +3 -0
  637. package/dist/types/components/modular-checkout/sub-components/{google-pay.d.ts → justifi-google-pay.d.ts} +1 -1
  638. package/dist/types/components/modular-checkout/sub-components/{plaid-payment-method.d.ts → justifi-plaid-payment-method.d.ts} +1 -1
  639. package/dist/types/components/modular-checkout/sub-components/{saved-payment-methods.d.ts → justifi-saved-payment-methods.d.ts} +1 -1
  640. package/dist/types/components/modular-checkout/sub-components/{sezzle-payment-method.d.ts → justifi-sezzle-payment-method.d.ts} +1 -1
  641. package/dist/types/components/order-terminals/{order-terminals.d.ts → justifi-order-terminals.d.ts} +1 -1
  642. package/dist/types/components/payment-details/{payment-details.d.ts → justifi-payment-details.d.ts} +1 -1
  643. package/dist/types/components/payment-transactions-list/{payment-transactions-list.d.ts → justifi-payment-transactions-list.d.ts} +1 -1
  644. package/dist/types/components/payments-list/{payments-list-filters.d.ts → justifi-payments-list-filters.d.ts} +1 -1
  645. package/dist/types/components/payments-list/{payments-list.d.ts → justifi-payments-list.d.ts} +1 -1
  646. package/dist/types/components/payout-details/{payout-details.d.ts → justifi-payout-details.d.ts} +1 -1
  647. package/dist/types/components/payout-transactions-list/{payout-transactions-list.d.ts → justifi-payout-transactions-list.d.ts} +1 -1
  648. package/dist/types/components/payouts-list/{payouts-list-filters.d.ts → justifi-payouts-list-filters.d.ts} +1 -1
  649. package/dist/types/components/payouts-list/{payouts-list.d.ts → justifi-payouts-list.d.ts} +1 -1
  650. package/dist/types/components/refund-payment/{refund-payment.d.ts → justifi-refund-payment.d.ts} +1 -1
  651. package/dist/types/components/terminal-orders-list/{terminal-orders-list-filters.d.ts → justifi-terminal-orders-list-filters.d.ts} +1 -1
  652. package/dist/types/components/terminal-orders-list/{terminal-orders-list.d.ts → justifi-terminal-orders-list.d.ts} +1 -1
  653. package/dist/types/components/terminals-list/{terminals-list-filters.d.ts → justifi-terminals-list-filters.d.ts} +1 -1
  654. package/dist/types/components/terminals-list/{terminals-list.d.ts → justifi-terminals-list.d.ts} +1 -1
  655. package/dist/types/components/tokenize-payment-method/{internal-tokenize-payment-method.d.ts → justifi-tokenize-payment-method.d.ts} +4 -3
  656. package/dist/types/components.d.ts +844 -722
  657. package/dist/types/ui-components/details/{details.d.ts → justifi-details.d.ts} +1 -1
  658. package/dist/types/ui-components/form/form-control-checkbox.d.ts +1 -1
  659. package/dist/types/ui-components/form/form-control-date.d.ts +1 -1
  660. package/dist/types/ui-components/form/form-control-file-v2.d.ts +1 -1
  661. package/dist/types/ui-components/form/form-control-file.d.ts +1 -1
  662. package/dist/types/ui-components/form/form-control-monetary.d.ts +1 -1
  663. package/dist/types/ui-components/form/form-control-number-masked.d.ts +1 -1
  664. package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
  665. package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
  666. package/dist/types/ui-components/form/form-control-select.d.ts +1 -1
  667. package/dist/types/ui-components/form/form-control-text.d.ts +1 -1
  668. package/dist/types/ui-components/form/form-control-textarea.d.ts +1 -1
  669. package/dist/types/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +1 -1
  670. package/dist/types/ui-components/index.d.ts +1 -1
  671. package/dist/types/ui-components/internal-button.d.ts +14 -0
  672. package/dist/types/ui-components/radio-list-item.d.ts +12 -0
  673. package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +1 -0
  674. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +0 -1
  675. package/dist/webcomponents/p-020d9c38.entry.js +1 -0
  676. package/dist/webcomponents/p-0b95dd8f.entry.js +1 -0
  677. package/dist/webcomponents/p-15dfb893.entry.js +1 -0
  678. package/dist/webcomponents/p-15f43759.entry.js +1 -0
  679. package/dist/webcomponents/p-1628613b.entry.js +1 -0
  680. package/dist/webcomponents/p-183bb9e2.entry.js +1 -0
  681. package/dist/webcomponents/p-18fc10ca.entry.js +1 -0
  682. package/dist/webcomponents/p-1b92fb9a.entry.js +1 -0
  683. package/dist/webcomponents/p-1c54dc53.entry.js +1 -0
  684. package/dist/webcomponents/p-1fad5340.entry.js +1 -0
  685. package/dist/webcomponents/p-1fe99fde.entry.js +1 -0
  686. package/dist/webcomponents/p-20b0f88b.entry.js +1 -0
  687. package/dist/webcomponents/{p-12b662e3.entry.js → p-257597f1.entry.js} +1 -1
  688. package/dist/webcomponents/p-26c419f3.entry.js +1 -0
  689. package/dist/webcomponents/p-2d68e1ea.entry.js +1 -0
  690. package/dist/webcomponents/p-2f71285a.entry.js +1 -0
  691. package/dist/webcomponents/p-30662daa.entry.js +1 -0
  692. package/dist/webcomponents/p-30f61950.entry.js +1 -0
  693. package/dist/webcomponents/{p-ca307ba0.entry.js → p-38281490.entry.js} +1 -1
  694. package/dist/webcomponents/{p-03b913e8.entry.js → p-39bb134c.entry.js} +1 -1
  695. package/dist/webcomponents/p-3O6JkTxx.js +1 -0
  696. package/dist/webcomponents/p-3c50f7aa.entry.js +1 -0
  697. package/dist/webcomponents/p-3e74bd93.entry.js +1 -0
  698. package/dist/webcomponents/p-431ad048.entry.js +1 -0
  699. package/dist/webcomponents/p-4db2e291.entry.js +1 -0
  700. package/dist/webcomponents/p-55e7e239.entry.js +1 -0
  701. package/dist/webcomponents/p-56ad08cf.entry.js +1 -0
  702. package/dist/webcomponents/p-58e811cc.entry.js +1 -0
  703. package/dist/webcomponents/p-5a384a9a.entry.js +1 -0
  704. package/dist/webcomponents/p-5d2bcf39.entry.js +1 -0
  705. package/dist/webcomponents/p-68c16230.entry.js +1 -0
  706. package/dist/webcomponents/p-6ae9b2c5.entry.js +1 -0
  707. package/dist/webcomponents/p-6ba76fc2.entry.js +1 -0
  708. package/dist/webcomponents/p-6e5ec134.entry.js +1 -0
  709. package/dist/webcomponents/p-71de86bf.entry.js +1 -0
  710. package/dist/webcomponents/p-72886d0a.entry.js +1 -0
  711. package/dist/webcomponents/{p-f23b4474.entry.js → p-7791b55e.entry.js} +1 -1
  712. package/dist/webcomponents/p-7e6c9362.entry.js +1 -0
  713. package/dist/webcomponents/{p-e86c713b.entry.js → p-89bf64ef.entry.js} +1 -1
  714. package/dist/webcomponents/p-8c484a70.entry.js +1 -0
  715. package/dist/webcomponents/p-8d215ad8.entry.js +1 -0
  716. package/dist/webcomponents/p-8d5138d8.entry.js +1 -0
  717. package/dist/webcomponents/p-8e9407a1.entry.js +1 -0
  718. package/dist/webcomponents/{p-f4074e9a.entry.js → p-938e4dc8.entry.js} +1 -1
  719. package/dist/webcomponents/p-972e724c.entry.js +1 -0
  720. package/dist/webcomponents/{p-xvmoHDSy.js → p-B--wlcf0.js} +1 -1
  721. package/dist/webcomponents/p-B2OPgLr1.js +1 -0
  722. package/dist/webcomponents/p-BIiEPAAI.js +1 -0
  723. package/dist/webcomponents/{p-BXT1uJVr.js → p-BJtvT9BX.js} +1 -1
  724. package/dist/webcomponents/p-BMdYr88u.js +1 -0
  725. package/dist/webcomponents/p-BW1eeDYQ.js +1 -0
  726. package/dist/webcomponents/p-BisDKGW5.js +1 -0
  727. package/dist/webcomponents/p-BlW92We8.js +1 -0
  728. package/dist/webcomponents/{p-C0tps2ph.js → p-BrO0HEFJ.js} +1 -1
  729. package/dist/webcomponents/{p-o83Uy7sW.js → p-C-QiUcEa.js} +1 -1
  730. package/dist/webcomponents/{p-D2muobcE.js → p-C-Uj-u5r.js} +1 -1
  731. package/dist/webcomponents/{p-C5CtnV8A.js → p-C6IaNDXe.js} +1 -1
  732. package/dist/webcomponents/{p-vIYW-hye.js → p-C95_YBmG.js} +1 -1
  733. package/dist/webcomponents/p-CASlE7cE.js +1 -0
  734. package/dist/webcomponents/{p-55QcjheA.js → p-CEnTtUmd.js} +1 -1
  735. package/dist/webcomponents/{p-CMLfjWil.js → p-CSW_ZzE9.js} +1 -1
  736. package/dist/webcomponents/{p-MeSAYDNh.js → p-CTwm3w6I.js} +1 -1
  737. package/dist/webcomponents/p-CXLV6LjG.js +1 -0
  738. package/dist/webcomponents/p-CbM9cuX_.js +1 -0
  739. package/dist/webcomponents/p-ChUBhd2W.js +1 -0
  740. package/dist/webcomponents/{p-COZ-9O53.js → p-CjuaXEuI.js} +1 -1
  741. package/dist/webcomponents/p-CpPclqiT.js +1 -0
  742. package/dist/webcomponents/{p-Csh7hxly.js → p-CwdQ1VdH.js} +1 -1
  743. package/dist/webcomponents/{p-BrcAwFqw.js → p-CzdAS9Jo.js} +1 -1
  744. package/dist/webcomponents/{p-D3V9AE6o.js → p-D50Rx76J.js} +1 -1
  745. package/dist/webcomponents/p-D5MdA21U.js +1 -0
  746. package/dist/webcomponents/p-D68EHdgA.js +1 -0
  747. package/dist/webcomponents/p-DB_pqjwH.js +1 -0
  748. package/dist/webcomponents/p-DELK4IgY.js +1 -0
  749. package/dist/webcomponents/{p-BPpqjhPu.js → p-Da4efjxw.js} +1 -1
  750. package/dist/webcomponents/p-Df9FVwA7.js +1 -0
  751. package/dist/webcomponents/p-DtDYtwHR.js +1 -0
  752. package/dist/webcomponents/{p-Daew0gTO.js → p-EBsfAkrP.js} +1 -1
  753. package/dist/webcomponents/p-N60pPiy5.js +1 -0
  754. package/dist/webcomponents/p-ZiYybdMz.js +1 -0
  755. package/dist/webcomponents/{p-2xM1wp0u.js → p-_fynNk40.js} +1 -1
  756. package/dist/webcomponents/p-a00ccf58.entry.js +1 -0
  757. package/dist/webcomponents/p-a21cef71.entry.js +1 -0
  758. package/dist/webcomponents/p-ab0f9e11.entry.js +1 -0
  759. package/dist/webcomponents/{p-320aac60.entry.js → p-ac83cf45.entry.js} +1 -1
  760. package/dist/webcomponents/p-acca580a.entry.js +1 -0
  761. package/dist/webcomponents/p-ad785edd.entry.js +1 -0
  762. package/dist/webcomponents/p-b322d2f3.entry.js +1 -0
  763. package/dist/webcomponents/{p-cd7a4048.entry.js → p-b822ab7e.entry.js} +1 -1
  764. package/dist/webcomponents/p-b95c1e00.entry.js +1 -0
  765. package/dist/webcomponents/{p-132c8d4c.entry.js → p-bbcaa5cc.entry.js} +3 -3
  766. package/dist/webcomponents/p-bd3f7117.entry.js +1 -0
  767. package/dist/webcomponents/p-c4264f99.entry.js +1 -0
  768. package/dist/webcomponents/p-c499a613.entry.js +1 -0
  769. package/dist/webcomponents/p-c76dc4dd.entry.js +1 -0
  770. package/dist/webcomponents/{p-368d8543.entry.js → p-d072a65f.entry.js} +1 -1
  771. package/dist/webcomponents/p-d34b09b2.entry.js +1 -0
  772. package/dist/webcomponents/p-d34f497c.entry.js +1 -0
  773. package/dist/webcomponents/p-d6cfda12.entry.js +1 -0
  774. package/dist/webcomponents/p-d791e38e.entry.js +1 -0
  775. package/dist/webcomponents/p-d8918d5a.entry.js +1 -0
  776. package/dist/webcomponents/{p-15919744.entry.js → p-de4c796a.entry.js} +1 -1
  777. package/dist/webcomponents/p-df75468d.entry.js +1 -0
  778. package/dist/webcomponents/{p-3bf56699.entry.js → p-e6c66cdb.entry.js} +1 -1
  779. package/dist/webcomponents/p-e6e9b381.entry.js +1 -0
  780. package/dist/webcomponents/{p-c751bb5f.entry.js → p-eb64c229.entry.js} +1 -1
  781. package/dist/webcomponents/{p-7cb910cf.entry.js → p-ef30afd5.entry.js} +1 -1
  782. package/dist/webcomponents/p-f2d7498d.entry.js +1 -0
  783. package/dist/webcomponents/p-f8f8ee4e.entry.js +1 -0
  784. package/dist/webcomponents/p-fNBks3-O.js +1 -0
  785. package/dist/webcomponents/p-facdac1b.entry.js +1 -0
  786. package/dist/webcomponents/p-g6a7Gl9y.js +1 -0
  787. package/dist/webcomponents/p-lFx33NDk.js +1 -0
  788. package/dist/webcomponents/webcomponents.esm.js +1 -1
  789. package/package.json +14 -14
  790. package/LICENSE +0 -21
  791. package/dist/cjs/ComponentError-D4OLnOkg.js +0 -31
  792. package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +0 -525
  793. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +0 -470
  794. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +0 -147
  795. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +0 -151
  796. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +0 -24
  797. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +0 -182
  798. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +0 -101
  799. package/dist/collection/components/modular-checkout/sub-components/card-form.js +0 -105
  800. package/dist/collection/components/modular-checkout/sub-components/summary.js +0 -12
  801. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +0 -296
  802. package/dist/esm/ComponentError-Cjcsf8ku.js +0 -31
  803. package/dist/esm/bank-account-document-form-inputs_9.entry.js +0 -515
  804. package/dist/esm/internal-tokenize-payment-method_7.entry.js +0 -462
  805. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +0 -143
  806. package/dist/esm/justifi-payment-provisioning-core.entry.js +0 -149
  807. package/dist/esm/justifi-tokenize-payment-method.entry.js +0 -22
  808. package/dist/module/internal-tokenize-payment-method.d.ts +0 -11
  809. package/dist/module/internal-tokenize-payment-method.js +0 -6
  810. package/dist/module/justifi-additional-questions-form-step.d.ts +0 -11
  811. package/dist/module/justifi-additional-questions-form-step.js +0 -6
  812. package/dist/module/justifi-additional-questions.d.ts +0 -11
  813. package/dist/module/justifi-additional-questions.js +0 -6
  814. package/dist/module/justifi-business-bank-account-form-step.d.ts +0 -11
  815. package/dist/module/justifi-business-bank-account-form-step.js +0 -6
  816. package/dist/module/justifi-business-core-info-form-step.d.ts +0 -11
  817. package/dist/module/justifi-business-core-info-form-step.js +0 -6
  818. package/dist/module/justifi-business-core-info.d.ts +0 -11
  819. package/dist/module/justifi-business-core-info.js +0 -6
  820. package/dist/module/justifi-business-owners-form-step.d.ts +0 -11
  821. package/dist/module/justifi-business-owners-form-step.js +0 -6
  822. package/dist/module/justifi-business-representative-form-inputs.d.ts +0 -11
  823. package/dist/module/justifi-business-representative-form-inputs.js +0 -6
  824. package/dist/module/justifi-business-representative-form-step.d.ts +0 -11
  825. package/dist/module/justifi-business-representative-form-step.js +0 -6
  826. package/dist/module/justifi-business-representative.d.ts +0 -11
  827. package/dist/module/justifi-business-representative.js +0 -6
  828. package/dist/module/justifi-business-terms-conditions-form-step.d.ts +0 -11
  829. package/dist/module/justifi-business-terms-conditions-form-step.js +0 -6
  830. package/dist/module/justifi-form-address-fields.d.ts +0 -11
  831. package/dist/module/justifi-form-address-fields.js +0 -6
  832. package/dist/module/justifi-identity-address-form.d.ts +0 -11
  833. package/dist/module/justifi-identity-address-form.js +0 -6
  834. package/dist/module/justifi-legal-address-form-step.d.ts +0 -11
  835. package/dist/module/justifi-legal-address-form-step.js +0 -6
  836. package/dist/module/justifi-legal-address-form.d.ts +0 -11
  837. package/dist/module/justifi-legal-address-form.js +0 -6
  838. package/dist/module/justifi-owner-form.js +0 -6
  839. package/dist/module/justifi-payment-provisioning-core.d.ts +0 -11
  840. package/dist/module/justifi-payment-provisioning-core.js +0 -6
  841. package/dist/module/justifi-payment-provisioning-form-buttons.d.ts +0 -11
  842. package/dist/module/justifi-payment-provisioning-form-buttons.js +0 -6
  843. package/dist/module/justifi-payment-provisioning-form-steps.d.ts +0 -11
  844. package/dist/module/justifi-payment-provisioning-form-steps.js +0 -6
  845. package/dist/module/payment-provisioning-core.js +0 -367
  846. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +0 -18
  847. package/dist/types/components/modular-checkout/sub-components/summary.d.ts +0 -3
  848. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +0 -19
  849. package/dist/webcomponents/p--UanYWb-.js +0 -1
  850. package/dist/webcomponents/p-19e82b02.entry.js +0 -1
  851. package/dist/webcomponents/p-19f22078.entry.js +0 -1
  852. package/dist/webcomponents/p-1ddbbba8.entry.js +0 -1
  853. package/dist/webcomponents/p-1fc96f35.entry.js +0 -1
  854. package/dist/webcomponents/p-251f6c90.entry.js +0 -1
  855. package/dist/webcomponents/p-2758d129.entry.js +0 -1
  856. package/dist/webcomponents/p-2V38oZhe.js +0 -1
  857. package/dist/webcomponents/p-337fb232.entry.js +0 -1
  858. package/dist/webcomponents/p-3490ede8.entry.js +0 -1
  859. package/dist/webcomponents/p-3cd30c7a.entry.js +0 -1
  860. package/dist/webcomponents/p-3f9c7b04.entry.js +0 -1
  861. package/dist/webcomponents/p-426fd524.entry.js +0 -1
  862. package/dist/webcomponents/p-4ae0227a.entry.js +0 -1
  863. package/dist/webcomponents/p-50a34a13.entry.js +0 -1
  864. package/dist/webcomponents/p-5148f836.entry.js +0 -1
  865. package/dist/webcomponents/p-541da1ed.entry.js +0 -1
  866. package/dist/webcomponents/p-55605664.entry.js +0 -1
  867. package/dist/webcomponents/p-55b478bc.entry.js +0 -1
  868. package/dist/webcomponents/p-57e09f09.entry.js +0 -1
  869. package/dist/webcomponents/p-5b4dfe0e.entry.js +0 -1
  870. package/dist/webcomponents/p-5c70a772.entry.js +0 -1
  871. package/dist/webcomponents/p-60df1c18.entry.js +0 -1
  872. package/dist/webcomponents/p-6Nv8l5n8.js +0 -1
  873. package/dist/webcomponents/p-6cdea3ef.entry.js +0 -1
  874. package/dist/webcomponents/p-7703ada7.entry.js +0 -1
  875. package/dist/webcomponents/p-77d0f2e2.entry.js +0 -1
  876. package/dist/webcomponents/p-8ed651b1.entry.js +0 -1
  877. package/dist/webcomponents/p-97e27e4a.entry.js +0 -1
  878. package/dist/webcomponents/p-9ed5d349.entry.js +0 -1
  879. package/dist/webcomponents/p-BU9iZ8OM.js +0 -1
  880. package/dist/webcomponents/p-BYLHkONM.js +0 -1
  881. package/dist/webcomponents/p-CMqX6btO.js +0 -1
  882. package/dist/webcomponents/p-C_WlV7F_.js +0 -1
  883. package/dist/webcomponents/p-Cjcsf8ku.js +0 -1
  884. package/dist/webcomponents/p-D-cvuqv1.js +0 -1
  885. package/dist/webcomponents/p-DSmuL_bZ.js +0 -1
  886. package/dist/webcomponents/p-DYGIC0QH.js +0 -1
  887. package/dist/webcomponents/p-DdR4lBzU.js +0 -1
  888. package/dist/webcomponents/p-DnZY6aQX.js +0 -1
  889. package/dist/webcomponents/p-DzeWzcho.js +0 -1
  890. package/dist/webcomponents/p-ERB63T7J.js +0 -1
  891. package/dist/webcomponents/p-FcERM7LF.js +0 -1
  892. package/dist/webcomponents/p-R0FDNhyd.js +0 -1
  893. package/dist/webcomponents/p-XxcNbSyO.js +0 -1
  894. package/dist/webcomponents/p-_BHErKTQ.js +0 -1
  895. package/dist/webcomponents/p-a109b3a1.entry.js +0 -1
  896. package/dist/webcomponents/p-a5db7147.entry.js +0 -1
  897. package/dist/webcomponents/p-b08bca2b.entry.js +0 -1
  898. package/dist/webcomponents/p-b2c237c6.entry.js +0 -1
  899. package/dist/webcomponents/p-b2d5f105.entry.js +0 -1
  900. package/dist/webcomponents/p-b8fc6dff.entry.js +0 -1
  901. package/dist/webcomponents/p-c595d3fb.entry.js +0 -1
  902. package/dist/webcomponents/p-c9f94919.entry.js +0 -1
  903. package/dist/webcomponents/p-ca7e369f.entry.js +0 -1
  904. package/dist/webcomponents/p-cab4c787.entry.js +0 -1
  905. package/dist/webcomponents/p-cd220f6c.entry.js +0 -1
  906. package/dist/webcomponents/p-cd2c2256.entry.js +0 -1
  907. package/dist/webcomponents/p-d5d8ccd9.entry.js +0 -1
  908. package/dist/webcomponents/p-e646422f.entry.js +0 -1
  909. package/dist/webcomponents/p-e72d05b1.entry.js +0 -1
  910. package/dist/webcomponents/p-e9d7f988.entry.js +0 -1
  911. package/dist/webcomponents/p-ef98982e.entry.js +0 -1
  912. package/dist/webcomponents/p-f1562dab.entry.js +0 -1
  913. package/dist/webcomponents/p-f44008d9.entry.js +0 -1
  914. package/dist/webcomponents/p-f657995a.entry.js +0 -1
  915. package/dist/webcomponents/p-fa3b5072.entry.js +0 -1
  916. package/dist/webcomponents/p-fb58eb13.entry.js +0 -1
  917. package/dist/webcomponents/p-fff25a5f.entry.js +0 -1
  918. package/dist/webcomponents/p-qNXIkzDE.js +0 -1
  919. package/dist/webcomponents/p-rgpO5xc3.js +0 -1
  920. package/dist/webcomponents/p-t6eP44Li.js +0 -1
  921. package/dist/webcomponents/p-zGGZEiGQ.js +0 -1
  922. /package/dist/types/components/business-forms/payment-provisioning/additional-questions/{business-additional-questions-form-step.d.ts → additional-questions-form-step.d.ts} +0 -0
  923. /package/dist/types/components/business-forms/payment-provisioning/bank-account/{bank-account-document-inputs.d.ts → bank-account-document-form-inputs.d.ts} +0 -0
  924. /package/dist/webcomponents/{p-99065f37.entry.js → p-9399f4f1.entry.js} +0 -0
@@ -3,7 +3,7 @@ import { updateAddressFormValues, updateDateOfBirthFormValues, updateFormValues
3
3
  import { PHONE_MASKS, IDENTITY_MASKS } from "../../../../utils/form-input-masks";
4
4
  import { heading2, label, inputDisabled, buttonSecondary } from "../../../../styles/parts";
5
5
  import { countryLabels } from "../../utils/country-config";
6
- export class RepresentativeFormInputs {
6
+ export class BusinessRepresentativeFormInputs {
7
7
  constructor() {
8
8
  this.isEditingIdentification = false;
9
9
  this.inputHandler = (name, value) => {
@@ -15,16 +15,16 @@ export class RepresentativeFormInputs {
15
15
  }
16
16
  render() {
17
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
18
- return (h("form", { key: 'a9c0f6332bf302d5eb9f93c4ca045d572a40468f' }, h("fieldset", { key: '115c564826335a9c7b670bbc0409912c3eb7a4aa' }, h("div", { key: '6de8909b4b2f3c7d8ec4665aad77ef59cdf035b4', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'bb8b5a3775eae450a866356a9e149a0bf57b5699', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: 'a0296d4a3c35a039525f39501e117ee6fdd12257', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: 'abbee22f5664275f27dd8eeb2b12c87b059ff024', class: "mt-2" }), h("div", { key: 'e165ff125df62dc1d22b7329fe7fe2ff200cbbb3', class: "row gy-3" }, h("div", { key: '114ff752eeda3ffa90529ff6bc675b874f543336', class: "col-12 col-md-8" }, h("form-control-text", { key: '8b6ce9f4a327ca5282aa32c226f671945aa10404', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'bce864367883c6bbf7bd0841114a3dbb39db692b', class: "col-12 col-md-4" }, h("form-control-text", { key: 'ec3e72dc3f84c0daee2c6509f7dbf2bad22f5db6', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '200ae959d897d9d22016553d3c586cf3f0438dd9', class: "col-12 col-md-6" }, h("form-control-text", { key: '4f77d6ca6c3c85edabc11af6f5703ab1327f05e7', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'cf642ee73f7ae8b254920a3f781c23dc456f16ae', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'df609213bec728f17b2527a2e99ff3e0e69604aa', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '2e4565c06976723ae4e497a5305cea7468bac2f4', class: "col-12 col-md-4" }, h("form-control-date", { key: 'ca7d4bf05c32d1d9983df430d338cc3433015957', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'f6cbe1b7f4e5575f626e6d73f31b4a1a09ac33e3', class: "col-12 col-md-8" }, (!((_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.ssn_last4) || this.isEditingIdentification) ? (h("form-control-number-masked", { name: "identification_number", label: countryLabels[this.country].idNumberLabel, defaultValue: this.isEditingIdentification ? '' : (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: IDENTITY_MASKS[this.country], helpText: countryLabels[this.country].identityHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].idNumberLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_h = this.representativeDefaultValue) === null || _h === void 0 ? void 0 : _h.ssn_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
18
+ return (h("form", { key: '042455d68a432e0e218d5b8750fb1d22b0d202fc' }, h("fieldset", { key: 'd8949e76f0a2185438382868e36ef6a79bbbb214' }, h("div", { key: '1471d4089c04b42408769ae5e964fe362c569205', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'a59f689369a27f98dacab659f6f9c386475e9913', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: '404259ace28a8bd64c8f43a630d60992c35c996c', helpText: "The representative for your business needs to be someone who has significant control over managing your business's finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: 'bee8121f5a19680292259fba7a692a318c0d1c1e', class: "mt-2" }), h("div", { key: 'f7976d2ec594ff07016dccb9fcc4909ba6cabc71', class: "row gy-3" }, h("div", { key: '9a518fab2dd269e15afe05d8ca40157f97ca57db', class: "col-12 col-md-8" }, h("form-control-text", { key: '1340ac078c18d464a88b5ca6de92d887cb0b3913', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c680cdcab436875dde00c5ea68ab0bad9c56851e', class: "col-12 col-md-4" }, h("form-control-text", { key: 'ff9f6656c1147478b93f564774baa296fbb64922', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: 'e6dcbe8bbe574db2756e5421e5fbcda41c7789cc', class: "col-12 col-md-6" }, h("form-control-text", { key: '9f42434ec29b41da77eb1c87723d6483fa5c0ebf', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '1e423be80b728506ec23b69df39d58ebd2a17313', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'e5694e680d8a6b022978a358a524c2163a82549f', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '362dc639f0d046372a35201bfdc0ea24db87fb7c', class: "col-12 col-md-4" }, h("form-control-date", { key: '8d41cfc3ab11a373a42445542964d5a59f6c3f41', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'ddafa094b5d67ef9ad8312f412a8032ce708d221', class: "col-12 col-md-8" }, (!((_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.ssn_last4) || this.isEditingIdentification) ? (h("form-control-number-masked", { name: "identification_number", label: countryLabels[this.country].idNumberLabel, defaultValue: this.isEditingIdentification ? '' : (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: IDENTITY_MASKS[this.country], helpText: countryLabels[this.country].identityHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].idNumberLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_h = this.representativeDefaultValue) === null || _h === void 0 ? void 0 : _h.ssn_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
19
19
  this.isEditingIdentification = true;
20
20
  // Clear current value to force validation
21
21
  updateFormValues(this.formController, {
22
22
  identification_number: '',
23
23
  ssn_last4: null
24
24
  });
25
- } }, "Change"))))), h("div", { key: 'e3fa556dece2feaf5eb175ae3734c2319777ef48', class: "col-12" }, h("justifi-identity-address-form", { key: 'fe3d349371d11b8a246b9c31aebd7d9c84e03f8e', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
25
+ } }, "Change"))))), h("div", { key: 'd4c54dbda49e4a141d82340f1162e1b27460d474', class: "col-12" }, h("identity-address-form", { key: '1d70077d2d36e5f447353cbdb78900dfec903d0c', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
26
26
  }
27
- static get is() { return "justifi-business-representative-form-inputs"; }
27
+ static get is() { return "business-representative-form-inputs"; }
28
28
  static get properties() {
29
29
  return {
30
30
  "representativeDefaultValue": {
@@ -120,9 +120,9 @@ export class BusinessRepresentativeFormStep {
120
120
  if (!this.formController || this.isLoading) {
121
121
  return (h(PaymentProvisioningLoading, null));
122
122
  }
123
- return (h("justifi-business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController, country: this.country }));
123
+ return (h("business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController, country: this.country }));
124
124
  }
125
- static get is() { return "justifi-business-representative-form-step"; }
125
+ static get is() { return "business-representative-form-step"; }
126
126
  static get properties() {
127
127
  return {
128
128
  "authToken": {
@@ -10,9 +10,9 @@ export class FormAddressFields {
10
10
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
11
11
  const labels = countryLabels[this.country];
12
12
  const options = countryOptions[this.country];
13
- return (h(Host, { key: '8dabbee93e0f319db333ada6c20af49ed6131b8d' }, h("div", { key: '4b308ca9fa92321e5f60f3e4d9ab1c4e60cbd703', class: "row gy-3" }, h("div", { key: '9c25eec2effd7caed70a3f02f6a780513fae930c', class: "col-12" }, h("form-control-text", { key: '6c2ae178c2122d1f6085906690adadf98cb0774b', name: "line1", label: "Street Address", inputHandler: this.inputHandler, defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, helpText: "No PO Boxes." })), h("div", { key: 'eba53a69fc4c869014ef8b7bf6ff9b1d8f5be566', class: "col-12" }, h("form-control-text", { key: '11c743ce2388173c41cb16f1865fe58b2015d6bb', name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '2025c9bb15286f5c3e4693b596372a7dff730ce8', class: "col-12" }, h("form-control-text", { key: '5e0e40fd028d12b88cb15a38906738320e30aeca', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '407eac6eee8ca33a6648f2d1a45003961353f877', class: "col-12 col-md-6" }, h("form-control-select", { key: 'c598b24e0dc594ae725a7473212a6ed36102ce49', name: "state", label: labels.stateLabel, options: options.stateOptions, inputHandler: this.inputHandler, defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '49861d791272c745f881d19016b93885ce59f724', class: "col-12 col-md-6" }, h("form-control-text", { key: '90b9db4630dd4fad7e86151f2a632cd62b8509f3', name: "postal_code", label: labels.postalLabel, inputHandler: this.inputHandler, defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: this.country === CountryCode.USA ? 5 : 7, keyDownHandler: this.country === CountryCode.USA ? numberOnlyHandler : undefined })))));
13
+ return (h(Host, { key: 'c7b688749c7e08a18fd2000e8d441dc01e9b2e8d' }, h("div", { key: '3e133db2244db25e8f9841a48ecb28f923eaab22', class: "row gy-3" }, h("div", { key: 'aa765dd77b4c9a32f1446d2034a9bc5e95bb9ca1', class: "col-12" }, h("form-control-text", { key: 'e02f2088d591c1979afcd37a1ba24559a9278ee5', name: "line1", label: "Street Address", inputHandler: this.inputHandler, defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, helpText: "No PO Boxes." })), h("div", { key: '9966e1ed471af132236d022be860fd1adb56b61a', class: "col-12" }, h("form-control-text", { key: 'b1a434bf3726ff08f5372d9d350fc5251129815a', name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: 'a5027c59a7fc4f1293578ea165d1dad53e55d361', class: "col-12" }, h("form-control-text", { key: 'e1567856de791bc32e0a85caeb5464b2f63f5f63', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: 'b131845ebeaa5e7bbfd745d724932174fe785de7', class: "col-12 col-md-6" }, h("form-control-select", { key: 'c590815dfc61241b7c1fc9172dad75a7116b703c', name: "state", label: labels.stateLabel, options: options.stateOptions, inputHandler: this.inputHandler, defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: 'f896d6370e956ab8b1750b6164ec6cd5c1e8b9ee', class: "col-12 col-md-6" }, h("form-control-text", { key: '469fb8945ca6603a503f32971ef9d2afa3e8a30e', name: "postal_code", label: labels.postalLabel, inputHandler: this.inputHandler, defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: this.country === CountryCode.USA ? 5 : 7, keyDownHandler: this.country === CountryCode.USA ? numberOnlyHandler : undefined })))));
14
14
  }
15
- static get is() { return "justifi-form-address-fields"; }
15
+ static get is() { return "form-address-fields"; }
16
16
  static get properties() {
17
17
  return {
18
18
  "country": {
@@ -3,7 +3,7 @@ import IMask from "imask";
3
3
  import { CURRENCY_MASK } from "../../../utils/form-input-masks";
4
4
  import { FormControlErrorText, FormControlHelpText } from "../../../ui-components";
5
5
  import { inputAdornment, inputDisabled, inputFocused, inputGroup, inputInvalid, label } from "../../../styles/parts";
6
- export class MonetaryInputProvisioning {
6
+ export class FormControlMonetaryProvisioning {
7
7
  constructor() {
8
8
  this.imask = null;
9
9
  this.isFocused = false;
@@ -60,10 +60,10 @@ export class MonetaryInputProvisioning {
60
60
  return part;
61
61
  }
62
62
  render() {
63
- return (h(Host, { key: '7a72954c74f3cb31f92d565835de4aceb874a1b5' }, h("div", { key: 'e05612ec4b1b195a24f5a2d2a00ca5b284b4c2f7', class: "form-group d-flex flex-column" }, h("label", { key: 'ffabdebea58878f550cad78430783bcb8372f2c1', part: label, class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '3593ef8b4adda873a7d6b1789253bc6e1748dcfc', class: "input-group" }, h("span", { key: 'b42f4a51f38451ee36fff437b3a60bd1292d6307', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: 'd49072c9c3653540fc8edca8a8dd86ad34bef902', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
63
+ return (h(Host, { key: '3bfa76f9374c9e9c08ae44dfc3a579fc07a9292d' }, h("div", { key: 'd7f92783fa26877f673963237b67be2f3dc7eb2b', class: "form-group d-flex flex-column" }, h("label", { key: 'd2adedb97996bac860c3161548652f83a65c6c26', part: label, class: "form-label", htmlFor: this.name }, this.label), h("div", { key: 'be26aeee918412b59d296f18da7d81dfcbfd6a69', class: "input-group" }, h("span", { key: 'a4fca49f6a2d274e7609d86030553100d94bbd7a', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: '551ea231e6af58ef27ed186905db553d90e1f1c8', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
64
64
  this.isFocused = false;
65
65
  this.formControlBlur.emit();
66
- }, onInput: this.handleFormControlInput, part: this.inputPart, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: 'd714b88d923f5f38f1b66620c5513ce7c82a7ef0', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '47b9d96f588785bb2597b16a685c18889e1945c1', errorText: this.errorText, name: this.name }))));
66
+ }, onInput: this.handleFormControlInput, part: this.inputPart, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: 'd66e64755451907a6a2593babc6c4e9766cf3025', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'ff373668801ac2c1eb30f515a2f7f6fb7c04387f', errorText: this.errorText, name: this.name }))));
67
67
  }
68
68
  static get is() { return "form-control-monetary-provisioning"; }
69
69
  static get properties() {
@@ -1,5 +1,11 @@
1
- import { h } from "@stencil/core";
2
- import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../api/ComponentError";
1
+ import { h, } from "@stencil/core";
2
+ import JustifiAnalytics from "../../../api/Analytics";
3
+ import { ComponentErrorCodes, ComponentErrorSeverity, } from "../../../api/ComponentError";
4
+ import { makeGetBusiness, makePostProvisioning, } from "./payment-provisioning-actions";
5
+ import { BusinessService } from "../../../api/services/business.service";
6
+ import { ProvisionService } from "../../../api/services/provision.service";
7
+ import { checkPkgVersion } from "../../../utils/check-pkg-version";
8
+ import { isTokenExpired } from "../../../utils/utils";
3
9
  import { checkProvisioningStatus } from "../utils/helpers";
4
10
  import { Header1, StyledHost } from "../../../ui-components";
5
11
  import { text } from "../../../styles/parts";
@@ -9,7 +15,7 @@ import { Business } from "../../../api/Business";
9
15
  import { PaymentProvisioningLoading } from "./payment-provisioning-loading";
10
16
  import { PaymentProvisioningAlreadyProvisioned } from "./payment-provisioning-already-provisioned";
11
17
  import { PaymentProvisioningSubmissionComplete } from "./payment-provisioning-submission-complete";
12
- export class PaymentProvisioningCore {
18
+ export class JustifiPaymentProvisioning {
13
19
  constructor() {
14
20
  this.loading = false;
15
21
  this.businessLoading = true;
@@ -18,6 +24,8 @@ export class PaymentProvisioningCore {
18
24
  this.currentStep = 0;
19
25
  this.country = CountryCode.USA;
20
26
  this.allowOptionalFields = false;
27
+ this.formTitle = 'Business Information';
28
+ this.refs = [];
21
29
  this.setBusinessProvisioned = () => {
22
30
  return new Promise((resolve) => {
23
31
  this.getBusiness({
@@ -39,11 +47,11 @@ export class PaymentProvisioningCore {
39
47
  this.errorEvent.emit({
40
48
  message: error,
41
49
  errorCode: code,
42
- severity: severity
50
+ severity: severity,
43
51
  });
44
52
  this.businessLoading = false;
45
53
  resolve();
46
- }
54
+ },
47
55
  });
48
56
  });
49
57
  };
@@ -58,18 +66,19 @@ export class PaymentProvisioningCore {
58
66
  this.errorEvent.emit({
59
67
  message: error,
60
68
  errorCode: code,
61
- severity: severity
69
+ severity: severity,
62
70
  });
63
- }
71
+ },
64
72
  });
65
73
  };
66
- this.refs = [];
67
74
  this.incrementSteps = () => {
68
75
  if (this.currentStep < this.totalSteps) {
69
76
  return this.currentStep++;
70
77
  }
71
78
  };
72
- this.decrementSteps = () => { return this.currentStep--; };
79
+ this.decrementSteps = () => {
80
+ return this.currentStep--;
81
+ };
73
82
  this.previousStepButtonOnClick = () => {
74
83
  this.clickEvent.emit({ name: BusinessFormClickActions.previousStep });
75
84
  this.decrementSteps();
@@ -81,28 +90,59 @@ export class PaymentProvisioningCore {
81
90
  currentStep.validateAndSubmit({ onSuccess: this.incrementSteps });
82
91
  };
83
92
  }
93
+ propChanged() {
94
+ this.initializeApi();
95
+ }
84
96
  handleFormCompleted() {
85
97
  this.postProvisioningData();
86
98
  }
99
+ handleFormLoading(event) {
100
+ this.loading = event.detail;
101
+ }
87
102
  async componentWillLoad() {
103
+ checkPkgVersion();
104
+ this.analytics = new JustifiAnalytics(this);
105
+ this.initializeApi();
88
106
  if (this.getBusiness) {
89
107
  await this.setBusinessProvisioned();
90
108
  }
91
109
  else {
92
110
  this.businessLoading = false;
93
111
  }
94
- this.refs = [
95
- this.coreInfoRef,
96
- this.legalAddressRef,
97
- this.additionalQuestionsRef,
98
- this.representativeRef,
99
- this.ownersRef,
100
- this.bankAccountRef,
101
- this.termsRef,
102
- ];
112
+ this.refs = new Array(7);
103
113
  }
104
- get businessEndpoint() {
105
- return `entities/business/${this.businessId}`;
114
+ disconnectedCallback() {
115
+ var _a;
116
+ (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
117
+ }
118
+ initializeApi() {
119
+ if (!this.authToken || !this.businessId) {
120
+ this.errorEvent.emit({
121
+ message: 'auth-token and business-id are required',
122
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
123
+ severity: ComponentErrorSeverity.ERROR,
124
+ });
125
+ return;
126
+ }
127
+ if (isTokenExpired(this.authToken)) {
128
+ this.errorEvent.emit({
129
+ message: 'auth-token is expired',
130
+ errorCode: ComponentErrorCodes.NOT_AUTHENTICATED,
131
+ severity: ComponentErrorSeverity.ERROR,
132
+ });
133
+ return;
134
+ }
135
+ this.getBusiness = makeGetBusiness({
136
+ authToken: this.authToken,
137
+ businessId: this.businessId,
138
+ service: new BusinessService(),
139
+ });
140
+ this.postProvisioning = makePostProvisioning({
141
+ authToken: this.authToken,
142
+ businessId: this.businessId,
143
+ product: 'payment',
144
+ service: new ProvisionService(),
145
+ });
106
146
  }
107
147
  get formDisabled() {
108
148
  return this.loading || this.businessProvisioned;
@@ -113,26 +153,20 @@ export class PaymentProvisioningCore {
113
153
  get stepCounter() {
114
154
  return `Step ${this.currentStep + 1} of ${this.totalSteps + 1}`;
115
155
  }
116
- handleFormLoading(event) {
117
- this.loading = event.detail;
118
- }
119
156
  render() {
120
- // State 1: Loading
121
157
  if (this.businessLoading) {
122
158
  return (h(StyledHost, null, h(PaymentProvisioningLoading, null)));
123
159
  }
124
- // State 2: Already Provisioned
125
160
  if (this.businessProvisioned) {
126
161
  return (h(StyledHost, null, h(PaymentProvisioningAlreadyProvisioned, null)));
127
162
  }
128
- // State 3: Submission Complete
129
163
  if (this.formSubmitted) {
130
164
  return (h(StyledHost, null, h(PaymentProvisioningSubmissionComplete, null)));
131
165
  }
132
- // State 4: Form Steps (default)
133
- return (h(StyledHost, null, h("div", { class: 'row gap-3' }, h(Header1, { text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, country: this.country, handleFormLoading: this.handleFormLoading }), h("div", { class: 'd-flex justify-content-between align-items-center' }, h("div", { class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
166
+ return (h(StyledHost, null, h("div", { class: "row gap-3" }, h(Header1, { text: this.formTitle }), h("payment-provisioning-form-steps", { businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, country: this.country, handleFormLoading: this.handleFormLoading }), h("div", { class: "d-flex justify-content-between align-items-center" }, h("div", { class: "d-flex align-items-center", part: text }, this.stepCounter), h("payment-provisioning-form-buttons", { currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
134
167
  }
135
- static get is() { return "justifi-payment-provisioning-core"; }
168
+ static get is() { return "justifi-payment-provisioning"; }
169
+ static get encapsulation() { return "shadow"; }
136
170
  static get properties() {
137
171
  return {
138
172
  "businessId": {
@@ -201,8 +235,8 @@ export class PaymentProvisioningCore {
201
235
  "resolved": "string",
202
236
  "references": {}
203
237
  },
204
- "required": true,
205
- "optional": false,
238
+ "required": false,
239
+ "optional": true,
206
240
  "docs": {
207
241
  "tags": [],
208
242
  "text": ""
@@ -210,51 +244,8 @@ export class PaymentProvisioningCore {
210
244
  "getter": false,
211
245
  "setter": false,
212
246
  "reflect": false,
213
- "attribute": "form-title"
214
- },
215
- "getBusiness": {
216
- "type": "unknown",
217
- "mutable": false,
218
- "complexType": {
219
- "original": "Function",
220
- "resolved": "Function",
221
- "references": {
222
- "Function": {
223
- "location": "global",
224
- "id": "global::Function"
225
- }
226
- }
227
- },
228
- "required": true,
229
- "optional": false,
230
- "docs": {
231
- "tags": [],
232
- "text": ""
233
- },
234
- "getter": false,
235
- "setter": false
236
- },
237
- "postProvisioning": {
238
- "type": "unknown",
239
- "mutable": false,
240
- "complexType": {
241
- "original": "Function",
242
- "resolved": "Function",
243
- "references": {
244
- "Function": {
245
- "location": "global",
246
- "id": "global::Function"
247
- }
248
- }
249
- },
250
- "required": true,
251
- "optional": false,
252
- "docs": {
253
- "tags": [],
254
- "text": ""
255
- },
256
- "getter": false,
257
- "setter": false
247
+ "attribute": "form-title",
248
+ "defaultValue": "'Business Information'"
258
249
  }
259
250
  };
260
251
  }
@@ -335,6 +326,15 @@ export class PaymentProvisioningCore {
335
326
  }
336
327
  }];
337
328
  }
329
+ static get watchers() {
330
+ return [{
331
+ "propName": "authToken",
332
+ "methodName": "propChanged"
333
+ }, {
334
+ "propName": "businessId",
335
+ "methodName": "propChanged"
336
+ }];
337
+ }
338
338
  static get listeners() {
339
339
  return [{
340
340
  "name": "formCompleted",
@@ -113,9 +113,9 @@ export class LegalAddressFormStep {
113
113
  if (this.isLoading) {
114
114
  return h(PaymentProvisioningLoading, null);
115
115
  }
116
- return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Legal Address of your Business"), h("form-control-tooltip", { helpText: "No PO Boxes." })), h("hr", { class: "mt-2" }), h("justifi-form-address-fields", { country: this.country, errors: this.errors, defaultValues: legalAddressDefaultValue, inputHandler: this.inputHandler }))));
116
+ return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Legal Address of your Business"), h("form-control-tooltip", { helpText: "No PO Boxes." })), h("hr", { class: "mt-2" }), h("form-address-fields", { country: this.country, errors: this.errors, defaultValues: legalAddressDefaultValue, inputHandler: this.inputHandler }))));
117
117
  }
118
- static get is() { return "justifi-legal-address-form-step"; }
118
+ static get is() { return "legal-address-form-step"; }
119
119
  static get properties() {
120
120
  return {
121
121
  "authToken": {
@@ -12,9 +12,9 @@ export class PaymentProvisioningFormButtons {
12
12
  return this.currentStep === this.totalSteps;
13
13
  }
14
14
  render() {
15
- return (h("div", { key: '53ba6c809e1968712b333f4bcf2798dbca186ddb', class: 'd-flex gap-2' }, h(Button, { key: 'b45c60083ccf6589cae0c63ce6b66c18da340dc7', variant: "secondary", type: "button", onClick: () => this.previousStepButtonOnClick(), disabled: this.formDisabled, hidden: !this.showPreviousStepButton }, "Previous"), h(Button, { key: '27372798da0276de44d1563a4688486e7cc91d64', variant: "primary", type: "button", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.nextStep), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showNextStepButton }, "Next"), h(Button, { key: '8bc14ca8fe951caf276f8ed03e502486e11acbe2', variant: "primary", type: "submit", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.submit), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showSubmitButton }, "Submit")));
15
+ return (h("div", { key: '5942f171591bca5e1259c16b9f1cea45169ce924', class: 'd-flex gap-2' }, h(Button, { key: '9dc3ff45b07ba71602f3af12a28d20364a80971c', variant: "secondary", type: "button", onClick: () => this.previousStepButtonOnClick(), disabled: this.formDisabled, hidden: !this.showPreviousStepButton }, "Previous"), h(Button, { key: '0db0e734bed464214c75230e3c32901d14f75945', variant: "primary", type: "button", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.nextStep), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showNextStepButton }, "Next"), h(Button, { key: 'b3817544c9ddd4d0f3ca8df47fb6598b8a95bb81', variant: "primary", type: "submit", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.submit), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showSubmitButton }, "Submit")));
16
16
  }
17
- static get is() { return "justifi-payment-provisioning-form-buttons"; }
17
+ static get is() { return "payment-provisioning-form-buttons"; }
18
18
  static get properties() {
19
19
  return {
20
20
  "currentStep": {
@@ -5,22 +5,22 @@ export class PaymentProvisioningFormSteps {
5
5
  this.allowOptionalFields = false;
6
6
  this.country = CountryCode.USA;
7
7
  this.componentStepMapping = {
8
- 0: () => h("justifi-business-core-info-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[0] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
9
- 1: () => h("justifi-legal-address-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[1] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
10
- 2: () => h("justifi-additional-questions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[2] = el, allowOptionalFields: this.allowOptionalFields }),
11
- 3: () => h("justifi-business-representative-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[3] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
12
- 4: () => h("justifi-business-owners-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[4] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
13
- 5: () => h("justifi-business-bank-account-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[5] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
14
- 6: () => h("justifi-business-terms-conditions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[6] = el, onFormLoading: this.handleFormLoading, allowOptionalFields: this.allowOptionalFields }),
8
+ 0: () => h("business-core-info-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[0] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
9
+ 1: () => h("legal-address-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[1] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
10
+ 2: () => h("additional-questions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[2] = el, allowOptionalFields: this.allowOptionalFields }),
11
+ 3: () => h("business-representative-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[3] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
12
+ 4: () => h("business-owners-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[4] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
13
+ 5: () => h("business-bank-account-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[5] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
14
+ 6: () => h("business-terms-conditions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[6] = el, onFormLoading: this.handleFormLoading, allowOptionalFields: this.allowOptionalFields }),
15
15
  };
16
16
  }
17
17
  get currentStepComponent() {
18
18
  return this.componentStepMapping[this.currentStep]();
19
19
  }
20
20
  render() {
21
- return (h("div", { key: 'ff7c9e688009383fdbe18c9824fa578d2338900c', class: 'col-12 mb-4' }, this.currentStepComponent));
21
+ return (h("div", { key: 'f86e12c789e7dfe1efba022ed56cf4717ea64ec5', class: 'col-12 mb-4' }, this.currentStepComponent));
22
22
  }
23
- static get is() { return "justifi-payment-provisioning-form-steps"; }
23
+ static get is() { return "payment-provisioning-form-steps"; }
24
24
  static get properties() {
25
25
  return {
26
26
  "businessId": {
@@ -108,9 +108,9 @@ export class BusinessTermsConditionsFormStep {
108
108
  return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
109
109
  }
110
110
  render() {
111
- return (h("form", { key: '33336d0a66d63ce39951822fd570a9a0689e714d' }, h("fieldset", { key: 'fcfdb59eef671cb408ed99e2dad20d6be706688a' }, h("legend", { key: 'f0cf7f0ac15c90cf36ee25d4bf986c0e781a2e92', part: heading2 }, "Terms and Conditions"), h("hr", { key: 'd5c820e7d6523f931040a994bd103d69fd644c45' }), h("div", { key: '681b584de14afe121f5dc69ee0bad1cab51ba0d1' }, h("p", { key: '7c597bf891a108d303739126b806ded5220f56ab' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '52854c5a07611180be40df21a5f60d7d9d4c4cb7' }), h("div", { key: '7448b3f6138b996edac137b961367725e3b40556', class: "row-gy-3" }, h("div", { key: 'c732deb4e1e3a2d04dd4e09914543a7f594af108', class: "col-12" }, h("form-control-checkbox", { key: 'fca18e4843aef20d13790029b114b2ecaeb6ffa2', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
111
+ return (h("form", { key: 'bd5117e6c5206dbbac772e6e9cbcb23f0dd3e8ad' }, h("fieldset", { key: 'ae9e0a6a5296a0fbad5ad1282a18ac3fd3d4445e' }, h("legend", { key: '86dd2cfd7c8c0114cee2c5cfe83c9dc8f9b113df', part: heading2 }, "Terms and Conditions"), h("hr", { key: 'c3747ca0ecaf68734a9335e14730471130d1a428' }), h("div", { key: 'c5e1858326c6805c9cb16b84f224f95bb764b241' }, h("p", { key: '352e14efc77677ce445e6437f27d68b864ec500b' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: 'b94cae3d132d7d211b0bbff5f0070717b034b256' }), h("div", { key: 'ab728d134034552b02f74228746785e209776172', class: "row-gy-3" }, h("div", { key: '645592f8eb929766c4c12f743a46c6ce03ae7459', class: "col-12" }, h("form-control-checkbox", { key: '9fe09f38e66c2b1d879f620ab860ea2eee284889', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
112
112
  }
113
- static get is() { return "justifi-business-terms-conditions-form-step"; }
113
+ static get is() { return "business-terms-conditions-form-step"; }
114
114
  static get properties() {
115
115
  return {
116
116
  "authToken": {
@@ -1,7 +1,8 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import BankAccountFormSkeleton from "./bank-account-form-skeleton";
3
3
  import { configState, waitForConfig } from "../../config-provider/config-state";
4
4
  import { generateTabId } from "../../../utils/utils";
5
+ import { checkPkgVersion } from "../../../utils/check-pkg-version";
5
6
  export class BankAccountForm {
6
7
  constructor() {
7
8
  this.isReady = false;
@@ -10,6 +11,7 @@ export class BankAccountForm {
10
11
  await waitForConfig();
11
12
  this.iframeOrigin = configState.iframeOrigin;
12
13
  this.tabId = generateTabId();
14
+ checkPkgVersion();
13
15
  }
14
16
  componentDidRender() {
15
17
  const elements = [
@@ -29,14 +31,15 @@ export class BankAccountForm {
29
31
  const routingNumberIsValid = await this.routingNumberIframeElement.validate();
30
32
  return accountNumberIsValid && routingNumberIsValid;
31
33
  }
32
- async tokenize(clientId, paymentMethodMetadata, account) {
33
- return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
34
+ async tokenize({ clientId, paymentMethodMetadata, account }) {
35
+ const result = await this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
36
+ return result;
34
37
  }
35
38
  render() {
36
- return (h(Host, { key: 'a104b2e88e818472d0158990ccf2cac6d7315616' }, h(BankAccountFormSkeleton, { key: '1ed1ac87a66aedf6a7528247e0ff3a803c74e4c3', isReady: this.isReady }), h("div", { key: 'a96c05c60c51f97c8abb7dc6a8cfebc940ea1513', class: "container-fluid p-0", style: {
39
+ return (h("div", { key: 'b19157c62bd6511b9f61ca8f94b7294b370bc8b9' }, h(BankAccountFormSkeleton, { key: '72ad4b72fbf0763a55be74045102b74fa4208e32', isReady: this.isReady }), h("hidden-input", { key: '73f5599e3cfd6c5cf85ef306711436c3749e0a9b' }), h("div", { key: '75c0c1496b02665348cc2b3ec1847772f4039dcd', class: "container-fluid p-0", style: {
37
40
  opacity: this.isReady ? '1' : '0',
38
41
  height: this.isReady ? 'auto' : '0',
39
- } }, h("div", { key: '3d168fd241702b30f0c8727d3c0aae65c20b69aa', class: "row mb-3" }, h("iframe-input", { key: 'dc1da989b1577ed62b3eeafd33128aca38e4610d', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: '1179ae9d6b9f476bb01a1ee4f4edd7da6f22f635', class: "row" }, h("iframe-input", { key: '7e79b383876be1711a2e21ab7462f86281ebf28c', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
42
+ } }, h("div", { key: 'eac4d39be4f282f510a486ec86522a21501b978f', class: "row mb-3" }, h("iframe-input", { key: '76a5fa31aa254a910af3349875c9112e1f0bde46', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: 'bd636c2c0fd993594b9f6b8ef275b9951100e822', class: "row" }, h("iframe-input", { key: '796289f5ece7fc117fd3779f9086b927ccb9e6d2', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
40
43
  }
41
44
  static get is() { return "bank-account-form"; }
42
45
  static get states() {
@@ -67,18 +70,10 @@ export class BankAccountForm {
67
70
  },
68
71
  "tokenize": {
69
72
  "complexType": {
70
- "signature": "(clientId: string, paymentMethodMetadata: any, account?: string) => Promise<any>",
73
+ "signature": "({ clientId, paymentMethodMetadata, account }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>",
71
74
  "parameters": [{
72
- "name": "clientId",
73
- "type": "string",
74
- "docs": ""
75
- }, {
76
- "name": "paymentMethodMetadata",
77
- "type": "any",
78
- "docs": ""
79
- }, {
80
- "name": "account",
81
- "type": "string",
75
+ "name": "__0",
76
+ "type": "{ clientId: string; paymentMethodMetadata: any; account?: string; }",
82
77
  "docs": ""
83
78
  }],
84
79
  "references": {
@@ -1,8 +1,8 @@
1
1
  import { h } from "@stencil/core";
2
- import { nameOnlySchema } from "../../checkout/billing-form/billing-form-schema";
2
+ import { nameOnlySchema } from "./billing-form-schema";
3
3
  import { billingForm } from "../../../styles/parts";
4
4
  import { FormController } from "../../../ui-components/form/form";
5
- import { StyledHost } from "../../../ui-components";
5
+ import { checkoutStore, onChange } from "../../../store/checkout.store";
6
6
  export class BankAccountBillingFormSimple {
7
7
  constructor() {
8
8
  this.errors = {};
@@ -12,19 +12,27 @@ export class BankAccountBillingFormSimple {
12
12
  }
13
13
  componentWillLoad() {
14
14
  this.formController = new FormController(nameOnlySchema());
15
+ const fields = checkoutStore.billingFormFields;
16
+ if (fields && Object.keys(fields).some((k) => fields[k])) {
17
+ this.formController.setInitialValues(fields);
18
+ }
15
19
  }
16
20
  componentDidLoad() {
17
21
  this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
18
22
  this.formController.errors.subscribe(errors => {
19
23
  this.errors = Object.assign({}, errors);
20
24
  });
25
+ this.unsubscribeFromStore = onChange('billingFormFields', (newValue) => {
26
+ this.formController.setInitialValues(newValue);
27
+ });
28
+ }
29
+ disconnectedCallback() {
30
+ var _a;
31
+ (_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
21
32
  }
22
33
  async getValues() {
23
34
  return this.formController.values.getValue();
24
35
  }
25
- async fill(fields) {
26
- this.formController.setInitialValues(fields);
27
- }
28
36
  async validate() {
29
37
  const isValid = await this.formController.validate();
30
38
  const errors = this.formController.errors.getValue();
@@ -32,10 +40,9 @@ export class BankAccountBillingFormSimple {
32
40
  }
33
41
  render() {
34
42
  const billingFormDefaultValue = this.formController.getInitialValues();
35
- return (h(StyledHost, { key: '1ad536d9f27bdb1cb3da9721c486cd4f1006ecb1' }, h("div", { key: 'b1589bbc4bba3703c54e6a5651aaad5499c218f4', part: billingForm, class: "mt-4" }, h("form", { key: 'd60bc906ec293d45c1887c0864ff4c1f28845461' }, h("fieldset", { key: '166465d844cbfb0d55dae03d88b52ad202d1616c' }, this.legend && (h("legend", { key: '509d5e560791fb6f96a5e755931fd7a363b21e06' }, this.legend)), h("div", { key: '979e4bae922ff88aae107d921136215474a847ea', class: "row gy-3" }, h("div", { key: '4014b6c65739d39077d69f0e649eec0fadab0c87', class: "col-12" }, h("form-control-text", { key: '2e9e1dbb43ffdd9848415ceefc8df75ec60a35e0', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler }))))))));
43
+ return (h("div", { key: '34e77db7e212eab37000212b208a6dc1afaa8054', part: billingForm, class: "mt-4" }, h("form", { key: '289b661851fc6d68a5d6dd376a6e31b691e25aea' }, h("fieldset", { key: '84efe1610a1bbc8b12a95711814280a4949e850c' }, this.legend && (h("legend", { key: '7076fc6b9ef264ac72d36833c7b760b5999e030e' }, this.legend)), h("div", { key: '66d78f8c243230d790d854ba16292f3d84ef5ca9', class: "row gy-3" }, h("div", { key: 'e58dfaa9b758dcfbe434a3d51ab6e51b54cc83c1', class: "col-12" }, h("form-control-text", { key: 'b872c9f5e3726312171bb16a95e3709bcd12f40a', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })))))));
36
44
  }
37
- static get is() { return "justifi-bank-account-billing-form-simple"; }
38
- static get encapsulation() { return "shadow"; }
45
+ static get is() { return "bank-account-billing-form-simple"; }
39
46
  static get properties() {
40
47
  return {
41
48
  "legend": {
@@ -79,7 +86,7 @@ export class BankAccountBillingFormSimple {
79
86
  },
80
87
  "BillingFormFields": {
81
88
  "location": "import",
82
- "path": "../../checkout/billing-form/billing-form-schema",
89
+ "path": "./billing-form-schema",
83
90
  "id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
84
91
  }
85
92
  },
@@ -90,32 +97,6 @@ export class BankAccountBillingFormSimple {
90
97
  "tags": []
91
98
  }
92
99
  },
93
- "fill": {
94
- "complexType": {
95
- "signature": "(fields: BillingFormFields) => Promise<void>",
96
- "parameters": [{
97
- "name": "fields",
98
- "type": "BillingFormFields",
99
- "docs": ""
100
- }],
101
- "references": {
102
- "Promise": {
103
- "location": "global",
104
- "id": "global::Promise"
105
- },
106
- "BillingFormFields": {
107
- "location": "import",
108
- "path": "../../checkout/billing-form/billing-form-schema",
109
- "id": "src/components/checkout/billing-form/billing-form-schema.ts::BillingFormFields"
110
- }
111
- },
112
- "return": "Promise<void>"
113
- },
114
- "docs": {
115
- "text": "",
116
- "tags": []
117
- }
118
- },
119
100
  "validate": {
120
101
  "complexType": {
121
102
  "signature": "() => Promise<{ isValid: boolean; errors: any; }>",