@justifi/webcomponents 4.14.0 → 4.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/cjs/{Payment-eceed10f.js → Payment-24f22eca.js} +2 -1
  2. package/dist/cjs/{SubAccount-b3902202.js → SubAccount-f1eda5da.js} +1 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  4. package/dist/cjs/business-additional-questions-schema-e7dd7bc3.js +57 -0
  5. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  6. package/dist/cjs/{index.esm-d25bd7bf.js → index.esm-a32e1831.js} +727 -0
  7. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +14 -11
  8. package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +4 -1
  9. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1796 -0
  10. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  11. package/dist/cjs/justifi-business-list.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -3
  13. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -2
  14. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +13 -11
  15. package/dist/cjs/justifi-owner-form.cjs.entry.js +10 -6
  16. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +1 -1
  20. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -2
  24. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -4
  25. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +3 -3
  27. package/dist/cjs/loader.cjs.js +1 -1
  28. package/dist/cjs/payload-parsers-c2df4b29.js +95 -0
  29. package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
  30. package/dist/cjs/{payment.service-019157e9.js → payment.service-35298e95.js} +1 -1
  31. package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
  32. package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
  33. package/dist/cjs/{payout.service-7203762f.js → payout.service-eec372aa.js} +1 -1
  34. package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
  35. package/dist/cjs/{payload-parsers-6c4b5323.js → schema-validations-3c70335c.js} +15 -89
  36. package/dist/cjs/select-input.cjs.entry.js +31 -0
  37. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +1 -1
  38. package/dist/cjs/text-input.cjs.entry.js +30 -0
  39. package/dist/cjs/{utils-6f62f7a1.js → utils-e58fe016.js} +0 -2
  40. package/dist/cjs/webcomponents.cjs.js +1 -1
  41. package/dist/collection/api/Payment.js +2 -1
  42. package/dist/collection/collection-manifest.json +1 -1
  43. package/dist/collection/components/billing-form/billing-form-schema.js +8 -8
  44. package/dist/collection/components/billing-form/billing-form.js +49 -89
  45. package/dist/collection/components/billing-form/test/billing-form.spec.js +2 -1
  46. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +4 -1
  47. package/dist/collection/components/business-forms/owner-form/owner-form.js +5 -1
  48. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +4 -1
  49. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +4 -2
  50. package/dist/collection/components/business-forms/schemas/schema-validations.js +5 -0
  51. package/dist/collection/components/checkout/checkout-core.js +74 -2
  52. package/dist/collection/components/checkout/checkout.js +73 -1
  53. package/dist/collection/components/checkout/payment-method-options.css +6 -6
  54. package/dist/collection/components/checkout/payment-method-options.js +42 -6
  55. package/dist/collection/components/checkout/{sezzel-payment-method.js → sezzle-payment-method.js} +2 -2
  56. package/dist/collection/components/checkout/test/checkout-core.spec.js +1 -1
  57. package/dist/collection/components/payment-form/payment-form.js +2 -3
  58. package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
  59. package/dist/collection/components/payment-form/test/payment-form.spec.js +1 -1
  60. package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
  61. package/dist/docs.json +265 -80
  62. package/dist/esm/{Payment-ef9fc1ae.js → Payment-3e94da9c.js} +2 -1
  63. package/dist/esm/{SubAccount-f4ae9809.js → SubAccount-80d46814.js} +1 -1
  64. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  65. package/dist/esm/{business-additional-questions-schema-e96b0509.js → business-additional-questions-schema-1fdc5c40.js} +2 -2
  66. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  67. package/dist/esm/{index.esm-22b47398.js → index.esm-d98bc080.js} +727 -1
  68. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +10 -7
  69. package/dist/esm/justifi-additional-questions_4.entry.js +4 -1
  70. package/dist/esm/justifi-billing-form_2.entry.js +1791 -0
  71. package/dist/esm/justifi-business-form.entry.js +5 -5
  72. package/dist/esm/justifi-business-list.entry.js +2 -2
  73. package/dist/esm/justifi-checkout-core.entry.js +7 -3
  74. package/dist/esm/justifi-checkout.entry.js +6 -2
  75. package/dist/esm/justifi-new-payment-method_4.entry.js +13 -11
  76. package/dist/esm/justifi-owner-form.entry.js +9 -5
  77. package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
  78. package/dist/esm/justifi-payment-details.entry.js +2 -2
  79. package/dist/esm/justifi-payment-form.entry.js +3 -3
  80. package/dist/esm/justifi-payment-method-selector.entry.js +1 -1
  81. package/dist/esm/justifi-payments-list.entry.js +2 -2
  82. package/dist/esm/justifi-payout-details.entry.js +2 -2
  83. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  84. package/dist/esm/justifi-proceeds-list.entry.js +2 -2
  85. package/dist/esm/justifi-refund-form.entry.js +2 -3
  86. package/dist/esm/justifi-subaccount-details.entry.js +3 -3
  87. package/dist/esm/justifi-subaccounts-list.entry.js +3 -3
  88. package/dist/esm/loader.js +1 -1
  89. package/dist/esm/payload-parsers-fd35eeca.js +88 -0
  90. package/dist/esm/payment-details-core.entry.js +1 -1
  91. package/dist/esm/{payment.service-03e274d7.js → payment.service-c62d82d3.js} +1 -1
  92. package/dist/esm/payments-list-core.entry.js +2 -2
  93. package/dist/esm/payout-details-core.entry.js +1 -1
  94. package/dist/esm/{payout.service-9823d66d.js → payout.service-28b9594f.js} +1 -1
  95. package/dist/esm/payouts-list-core.entry.js +2 -2
  96. package/dist/esm/{payload-parsers-32028700.js → schema-validations-31feaa53.js} +7 -84
  97. package/dist/{module/select-input2.js → esm/select-input.entry.js} +7 -30
  98. package/dist/esm/subaccount-account-details_4.entry.js +1 -1
  99. package/dist/{module/text-input2.js → esm/text-input.entry.js} +7 -29
  100. package/dist/esm/{utils-243abdb4.js → utils-37533368.js} +1 -2
  101. package/dist/esm/webcomponents.js +1 -1
  102. package/dist/module/Payment.js +2 -1
  103. package/dist/module/billing-form.js +41 -62
  104. package/dist/module/business-additional-questions-form-step.js +1 -1
  105. package/dist/module/business-additional-questions-schema.js +1 -1
  106. package/dist/module/business-address-schema.js +1 -1
  107. package/dist/module/business-core-info-form-step.js +1 -1
  108. package/dist/module/business-core-info-schema.js +1 -1
  109. package/dist/module/business-form-types.js +1 -154
  110. package/dist/module/business-identity-schema.js +5 -3
  111. package/dist/module/business-representative-form-step.js +5 -2
  112. package/dist/module/business-representative.js +4 -1
  113. package/dist/module/checkout-core.js +27 -19
  114. package/dist/module/identity-address-form.js +1 -1
  115. package/dist/module/index.esm.js +727 -1
  116. package/dist/module/justifi-business-details.js +1 -1
  117. package/dist/module/justifi-business-form.js +3 -4
  118. package/dist/module/justifi-checkout.js +29 -21
  119. package/dist/module/justifi-gross-payment-chart.js +1 -1
  120. package/dist/module/justifi-payment-details.js +1 -1
  121. package/dist/module/justifi-payment-form.js +13 -13
  122. package/dist/module/justifi-payment-provisioning.js +2 -2
  123. package/dist/module/justifi-payments-list.js +1 -1
  124. package/dist/module/justifi-payout-details.js +1 -1
  125. package/dist/module/justifi-payouts-list.js +1 -1
  126. package/dist/module/justifi-refund-form.js +1 -2
  127. package/dist/module/justifi-sezzle-payment-method.d.ts +11 -0
  128. package/dist/module/justifi-sezzle-payment-method.js +6 -0
  129. package/dist/module/legal-address-form-step.js +2 -2
  130. package/dist/module/legal-address-form.js +1 -1
  131. package/dist/module/new-payment-method.js +9 -9
  132. package/dist/module/owner-form.js +8 -4
  133. package/dist/module/payment-method-form.js +1 -1
  134. package/dist/module/payment-method-options.js +26 -22
  135. package/dist/module/schema-validations.js +159 -0
  136. package/dist/module/select-input.js +48 -1
  137. package/dist/module/{sezzel-payment-method.js → sezzle-payment-method.js} +6 -6
  138. package/dist/module/text-input.js +46 -1
  139. package/dist/module/utils2.js +1 -2
  140. package/dist/module/utils3.js +12 -21
  141. package/dist/module/utils4.js +21 -12
  142. package/dist/types/api/Payment.d.ts +2 -1
  143. package/dist/types/components/billing-form/billing-form.d.ts +8 -15
  144. package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -0
  145. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +1 -0
  146. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +1 -0
  147. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -1
  148. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +2 -0
  149. package/dist/types/components/checkout/checkout-core.d.ts +4 -0
  150. package/dist/types/components/checkout/checkout.d.ts +4 -0
  151. package/dist/types/components/checkout/payment-method-options.d.ts +2 -0
  152. package/dist/types/components/checkout/{sezzel-payment-method.d.ts → sezzle-payment-method.d.ts} +1 -1
  153. package/dist/types/components.d.ts +35 -28
  154. package/dist/webcomponents/{p-96a86f04.entry.js → p-0603a526.entry.js} +1 -1
  155. package/dist/webcomponents/{p-3917edbf.entry.js → p-09a6df17.entry.js} +1 -1
  156. package/dist/webcomponents/{p-7da249b8.entry.js → p-1367c4c7.entry.js} +1 -1
  157. package/dist/webcomponents/{p-a6f170ba.entry.js → p-1f23c9d5.entry.js} +1 -1
  158. package/dist/webcomponents/p-21f301a0.entry.js +1 -0
  159. package/dist/webcomponents/p-243caf7c.entry.js +1 -0
  160. package/dist/webcomponents/{p-c6e207f6.entry.js → p-27ea1f3f.entry.js} +1 -1
  161. package/dist/webcomponents/{p-28b38699.js → p-3cd675e7.js} +1 -1
  162. package/dist/webcomponents/{p-c48a99b9.entry.js → p-55d37253.entry.js} +1 -1
  163. package/dist/webcomponents/{p-0b8c1ffc.entry.js → p-60ea8fd1.entry.js} +1 -1
  164. package/dist/webcomponents/p-624ed594.entry.js +1 -0
  165. package/dist/webcomponents/{p-598bb67c.entry.js → p-62bbcdfb.entry.js} +1 -1
  166. package/dist/webcomponents/p-76e74f01.js +1 -0
  167. package/dist/webcomponents/p-7ca334d6.entry.js +1 -0
  168. package/dist/webcomponents/p-7d6c67bb.js +1 -0
  169. package/dist/webcomponents/{p-5dac370e.entry.js → p-7ea5b11c.entry.js} +1 -1
  170. package/dist/webcomponents/p-83ae34bf.js +1 -0
  171. package/dist/webcomponents/p-84aea66c.entry.js +1 -0
  172. package/dist/webcomponents/{p-4824018b.entry.js → p-8960e936.entry.js} +1 -1
  173. package/dist/webcomponents/{p-28181471.entry.js → p-8d53f1de.entry.js} +1 -1
  174. package/dist/webcomponents/p-969572f2.entry.js +1 -0
  175. package/dist/webcomponents/{p-fce2b224.entry.js → p-9a36fca6.entry.js} +1 -1
  176. package/dist/webcomponents/p-a38fdda7.entry.js +1 -0
  177. package/dist/webcomponents/{p-1334f776.entry.js → p-adc9ae0f.entry.js} +1 -1
  178. package/dist/webcomponents/p-b53d7b7f.js +1 -0
  179. package/dist/webcomponents/p-b8d70349.entry.js +1 -0
  180. package/dist/webcomponents/p-b9db1c52.entry.js +1 -0
  181. package/dist/webcomponents/{p-edb66ae0.js → p-ca39c89f.js} +1 -1
  182. package/dist/webcomponents/{p-02993072.entry.js → p-d6b980a3.entry.js} +1 -1
  183. package/dist/webcomponents/p-dd609661.js +1 -0
  184. package/dist/webcomponents/{p-7c5f15f8.entry.js → p-de4ffaa1.entry.js} +1 -1
  185. package/dist/webcomponents/{p-9f529959.entry.js → p-e1a3a670.entry.js} +1 -1
  186. package/dist/webcomponents/{p-d2fcc58b.entry.js → p-e4be71ee.entry.js} +1 -1
  187. package/dist/webcomponents/p-e8706cc4.js +1 -0
  188. package/dist/webcomponents/{p-65510838.js → p-f4dec164.js} +1 -1
  189. package/dist/webcomponents/p-f942f90b.entry.js +1 -0
  190. package/dist/webcomponents/p-fea93cb9.entry.js +1 -0
  191. package/dist/webcomponents/{p-f76283a5.entry.js → p-fee64d38.entry.js} +1 -1
  192. package/dist/webcomponents/webcomponents.css +1 -1
  193. package/dist/webcomponents/webcomponents.esm.js +1 -1
  194. package/package.json +1 -1
  195. package/dist/cjs/business-additional-questions-schema-0a35f597.js +0 -57
  196. package/dist/cjs/form-2ad3d374.js +0 -729
  197. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +0 -1864
  198. package/dist/esm/form-5279c05a.js +0 -727
  199. package/dist/esm/justifi-billing-form_4.entry.js +0 -1857
  200. package/dist/module/form.js +0 -727
  201. package/dist/module/justifi-sezzel-payment-method.d.ts +0 -11
  202. package/dist/module/justifi-sezzel-payment-method.js +0 -6
  203. package/dist/webcomponents/p-02fa533c.js +0 -1
  204. package/dist/webcomponents/p-132ba228.js +0 -1
  205. package/dist/webcomponents/p-230b96df.entry.js +0 -1
  206. package/dist/webcomponents/p-3d2f2937.entry.js +0 -1
  207. package/dist/webcomponents/p-3da23f21.js +0 -1
  208. package/dist/webcomponents/p-617caf03.entry.js +0 -1
  209. package/dist/webcomponents/p-64710363.entry.js +0 -1
  210. package/dist/webcomponents/p-70d43109.entry.js +0 -1
  211. package/dist/webcomponents/p-9b4b91ba.js +0 -1
  212. package/dist/webcomponents/p-ade12f56.js +0 -1
  213. package/dist/webcomponents/p-c1be3378.entry.js +0 -1
  214. package/dist/webcomponents/p-c211d068.js +0 -1
  215. package/dist/webcomponents/p-c3d5f7de.entry.js +0 -1
  216. package/dist/webcomponents/p-d57f5f01.entry.js +0 -1
  217. package/dist/webcomponents/p-f5ae07c4.entry.js +0 -1
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning.cjs\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form.cjs\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout.cjs\",[[0,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details.cjs\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form.cjs\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"authToken\":[1,\"auth-token\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details.cjs\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners.cjs\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list.cjs\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list.cjs\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list.cjs\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions.cjs\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details.cjs\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details.cjs\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list.cjs\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form.cjs\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list.cjs\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form.cjs\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form.cjs\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"gross-payment-chart-core.cjs\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-gross-payment-chart.cjs\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"form-control-file.cjs\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"subaccount-bank-details.cjs\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details.cjs\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core.cjs\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"creatingNewPaymentMethod\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core.cjs\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core.cjs\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core.cjs\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core.cjs\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core.cjs\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"justifi-payment-method-selector.cjs\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3.cjs\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form.cjs\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"form-control-datepart_2.cjs\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions_4.cjs\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}]]],[\"subaccount-account-details_4.cjs\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary.cjs\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"maskOptions\":[8,\"mask-options\"]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5.cjs\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details.cjs\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5.cjs\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-table_2.cjs\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"justifi-billing-form_4.cjs\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4.cjs\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"paymentAmount\":[1,\"payment-amount\"],\"selectedPaymentMethodId\":[32],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzel-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]],[\"form-control-select_2.cjs\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]]]"), options);
20
+ return index.bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning.cjs\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form.cjs\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout.cjs\",[[0,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"disableCreditCard\":[4,\"disable-credit-card\"],\"disableBankAccount\":[4,\"disable-bank-account\"],\"disableBnpl\":[4,\"disable-bnpl\"],\"disablePaymentMethodGroup\":[4,\"disable-payment-method-group\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details.cjs\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form.cjs\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"authToken\":[1,\"auth-token\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details.cjs\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners.cjs\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list.cjs\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list.cjs\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list.cjs\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions.cjs\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details.cjs\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details.cjs\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list.cjs\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form.cjs\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list.cjs\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form.cjs\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form.cjs\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-gross-payment-chart.cjs\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"form-control-file.cjs\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"select-input.cjs\",[[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}]]],[\"subaccount-bank-details.cjs\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details.cjs\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"text-input.cjs\",[[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}]]],[\"justifi-checkout-core.cjs\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"disableCreditCard\":[4,\"disable-credit-card\"],\"disableBankAccount\":[4,\"disable-bank-account\"],\"disableBnpl\":[4,\"disable-bnpl\"],\"disablePaymentMethodGroup\":[4,\"disable-payment-method-group\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"creatingNewPaymentMethod\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core.cjs\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"justifi-table_2.cjs\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"payments-list-core.cjs\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core.cjs\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core.cjs\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core.cjs\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"gross-payment-chart-core.cjs\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-payment-method-selector.cjs\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-select_2.cjs\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"form-control-date_3.cjs\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form.cjs\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"form-control-datepart_2.cjs\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"form-control-monetary.cjs\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"maskOptions\":[8,\"mask-options\"]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions_4.cjs\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}]]],[\"subaccount-account-details_4.cjs\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"justifi-additional-questions-form-step_5.cjs\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details.cjs\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5.cjs\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-billing-form_2.cjs\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"formController\":[32],\"billingInfo\":[32],\"errors\":[32],\"getValues\":[64],\"fill\":[64],\"validate\":[64]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4.cjs\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"showBnpl\":[4,\"show-bnpl\"],\"showSavedPaymentMethods\":[4,\"show-saved-payment-methods\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"paymentAmount\":[1,\"payment-amount\"],\"selectedPaymentMethodId\":[32],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzle-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]]]"), options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -7,7 +7,8 @@ export var PaymentMethodTypes;
7
7
  (function (PaymentMethodTypes) {
8
8
  PaymentMethodTypes["card"] = "card";
9
9
  PaymentMethodTypes["bankAccount"] = "bankAccount";
10
- PaymentMethodTypes["sezzel"] = "sezzel";
10
+ PaymentMethodTypes["sezzle"] = "sezzle";
11
+ PaymentMethodTypes["saved"] = "saved";
11
12
  })(PaymentMethodTypes || (PaymentMethodTypes = {}));
12
13
  export var PaymentStatuses;
13
14
  (function (PaymentStatuses) {
@@ -33,7 +33,7 @@
33
33
  "components/checkout/new-payment-method.js",
34
34
  "components/checkout/payment-method-options.js",
35
35
  "components/checkout/saved-payment-method.js",
36
- "components/checkout/sezzel-payment-method.js",
36
+ "components/checkout/sezzle-payment-method.js",
37
37
  "components/details/details.js",
38
38
  "components/form/form-control-date.js",
39
39
  "components/form/form-control-datepart.js",
@@ -1,11 +1,11 @@
1
- import { object, string } from "yup";
2
- import { RegExZip } from "../../utils/utils";
1
+ import { object } from "yup";
2
+ import { cityValidation, identityNameValidation, lineOneValidation, lineTwoValidation, postalValidation, stateValidation } from "../business-forms/schemas/schema-validations";
3
3
  const BillingFormSchema = object({
4
- name: string().required('Enter name'),
5
- address_line1: string().required('Enter street address'),
6
- address_line2: string(),
7
- address_city: string().required('Enter city'),
8
- address_state: string().required('Choose state'),
9
- address_postal_code: string().required('Enter ZIP').matches(RegExZip, 'Enter a valid ZIP').min(5, 'Enter a valid ZIP'),
4
+ name: identityNameValidation.required('Enter full name'),
5
+ address_line1: lineOneValidation.required('Enter street address'),
6
+ address_line2: lineTwoValidation.nullable(),
7
+ address_city: cityValidation.required('Enter city'),
8
+ address_state: stateValidation.required('Select state'),
9
+ address_postal_code: postalValidation.required('Enter postal code'),
10
10
  });
11
11
  export default BillingFormSchema;
@@ -1,6 +1,8 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import BillingFormSchema from "./billing-form-schema";
3
3
  import StateOptions from "../../utils/state-options";
4
+ import { FormController } from "../form/form";
5
+ import { filterPostalInput } from "../form/utils";
4
6
  /**
5
7
  * @exportedPart label: Label for inputs
6
8
  * @exportedPart input: The input fields
@@ -8,59 +10,36 @@ import StateOptions from "../../utils/state-options";
8
10
  */
9
11
  export class BillingForm {
10
12
  constructor() {
11
- this.legend = undefined;
12
- this.billingFields = {
13
- name: '',
14
- address_line1: '',
15
- address_line2: '',
16
- address_city: '',
17
- address_state: '',
18
- address_postal_code: '',
13
+ this.inputHandler = (name, value) => {
14
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
19
15
  };
20
- this.billingFieldsErrors = {};
16
+ this.legend = undefined;
17
+ this.formController = undefined;
18
+ this.billingInfo = undefined;
19
+ this.errors = {};
20
+ }
21
+ componentWillLoad() {
22
+ this.formController = new FormController(BillingFormSchema);
21
23
  }
22
- setFormValue(event) {
23
- const data = event.detail;
24
- const billingFieldsClone = Object.assign({}, this.billingFields);
25
- if (data.name) {
26
- billingFieldsClone[data.name] = data.value;
27
- this.billingFields = billingFieldsClone;
28
- }
24
+ componentDidLoad() {
25
+ this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
26
+ this.formController.errors.subscribe(errors => {
27
+ this.errors = Object.assign({}, errors);
28
+ });
29
+ }
30
+ async getValues() {
31
+ return this.formController.values.getValue();
29
32
  }
30
- /**
31
- * Method for filling the form with provided data
32
- * @argument {BillingFormFields} fields - The fields to fill the form with
33
- */
34
33
  async fill(fields) {
35
- this.billingFields = Object.assign({}, fields);
34
+ this.formController.setValues(fields);
36
35
  }
37
- /**
38
- * Run validation on the form
39
- */
40
36
  async validate() {
41
- const newErrors = {};
42
- let isValid = true;
43
- try {
44
- await BillingFormSchema.validate(this.billingFields, { abortEarly: false });
45
- }
46
- catch (err) {
47
- isValid = false;
48
- err.inner.map((item) => {
49
- newErrors[item.path] = item.message;
50
- });
51
- }
52
- this.billingFieldsErrors = newErrors;
37
+ let isValid = await this.formController.validate();
53
38
  return { isValid: isValid };
54
39
  }
55
- /**
56
- * Returns the values of the form as an object
57
- * @returns {Promise<BillingFormFields>} The values of the form
58
- */
59
- async getValues() {
60
- return this.billingFields;
61
- }
62
40
  render() {
63
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, this.legend && h("legend", null, this.legend), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("text-input", { name: "name", label: "Full Name", defaultValue: this.billingFields.name, error: this.billingFieldsErrors.name })), h("div", { class: "col-12" }, h("text-input", { name: "address_line1", label: "Street Address", defaultValue: this.billingFields.address_line1, error: this.billingFieldsErrors.address_line1 })), h("div", { class: "col-12" }, h("text-input", { name: "address_line2", label: "Apartment, Suite, etc. (optional)", defaultValue: this.billingFields.address_line2, error: this.billingFieldsErrors.address_line2 })), h("div", { class: "col-12" }, h("text-input", { name: "address_city", label: "City", defaultValue: this.billingFields.address_city, error: this.billingFieldsErrors.address_city })), h("div", { class: "col-12" }, h("select-input", { name: "address_state", label: "State", options: StateOptions, defaultValue: this.billingFields.address_state, error: this.billingFieldsErrors.address_state })), h("div", { class: "col-12" }, h("text-input", { name: "address_postal_code", label: "ZIP", defaultValue: this.billingFields.address_postal_code, error: this.billingFieldsErrors.address_postal_code }))))));
41
+ const billingFormDefaultValue = this.formController.getInitialValues();
42
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, this.legend && h("legend", null, this.legend), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, error: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, error: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, error: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, error: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, error: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: filterPostalInput })))))));
64
43
  }
65
44
  static get is() { return "justifi-billing-form"; }
66
45
  static get encapsulation() { return "shadow"; }
@@ -97,20 +76,17 @@ export class BillingForm {
97
76
  }
98
77
  static get states() {
99
78
  return {
100
- "billingFields": {},
101
- "billingFieldsErrors": {}
79
+ "formController": {},
80
+ "billingInfo": {},
81
+ "errors": {}
102
82
  };
103
83
  }
104
84
  static get methods() {
105
85
  return {
106
- "fill": {
86
+ "getValues": {
107
87
  "complexType": {
108
- "signature": "(fields: BillingFormFields) => Promise<void>",
109
- "parameters": [{
110
- "name": "fields",
111
- "type": "BillingFormFields",
112
- "docs": "- The fields to fill the form with"
113
- }],
88
+ "signature": "() => Promise<BillingFormFields>",
89
+ "parameters": [],
114
90
  "references": {
115
91
  "Promise": {
116
92
  "location": "global",
@@ -122,72 +98,56 @@ export class BillingForm {
122
98
  "id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
123
99
  }
124
100
  },
125
- "return": "Promise<void>"
101
+ "return": "Promise<BillingFormFields>"
126
102
  },
127
103
  "docs": {
128
- "text": "Method for filling the form with provided data",
129
- "tags": [{
130
- "name": "argument",
131
- "text": "fields - The fields to fill the form with"
132
- }]
104
+ "text": "",
105
+ "tags": []
133
106
  }
134
107
  },
135
- "validate": {
108
+ "fill": {
136
109
  "complexType": {
137
- "signature": "() => Promise<{ isValid: boolean; }>",
138
- "parameters": [],
110
+ "signature": "(fields: BillingFormFields) => Promise<void>",
111
+ "parameters": [{
112
+ "name": "fields",
113
+ "type": "BillingFormFields",
114
+ "docs": ""
115
+ }],
139
116
  "references": {
140
117
  "Promise": {
141
118
  "location": "global",
142
119
  "id": "global::Promise"
143
120
  },
144
- "ValidationError": {
121
+ "BillingFormFields": {
145
122
  "location": "import",
146
- "path": "yup",
147
- "id": "../../node_modules/.pnpm/yup@1.3.3/node_modules/yup/index.d.ts::ValidationError"
123
+ "path": "./billing-form-schema",
124
+ "id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
148
125
  }
149
126
  },
150
- "return": "Promise<{ isValid: boolean; }>"
127
+ "return": "Promise<void>"
151
128
  },
152
129
  "docs": {
153
- "text": "Run validation on the form",
130
+ "text": "",
154
131
  "tags": []
155
132
  }
156
133
  },
157
- "getValues": {
134
+ "validate": {
158
135
  "complexType": {
159
- "signature": "() => Promise<BillingFormFields>",
136
+ "signature": "() => Promise<{ isValid: boolean; }>",
160
137
  "parameters": [],
161
138
  "references": {
162
139
  "Promise": {
163
140
  "location": "global",
164
141
  "id": "global::Promise"
165
- },
166
- "BillingFormFields": {
167
- "location": "import",
168
- "path": "./billing-form-schema",
169
- "id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
170
142
  }
171
143
  },
172
- "return": "Promise<BillingFormFields>"
144
+ "return": "Promise<{ isValid: boolean; }>"
173
145
  },
174
146
  "docs": {
175
- "text": "Returns the values of the form as an object",
176
- "tags": [{
177
- "name": "returns",
178
- "text": "The values of the form"
179
- }]
147
+ "text": "",
148
+ "tags": []
180
149
  }
181
150
  }
182
151
  };
183
152
  }
184
- static get listeners() {
185
- return [{
186
- "name": "fieldReceivedInput",
187
- "method": "setFormValue",
188
- "target": undefined,
189
- "capture": false,
190
- "passive": false
191
- }];
192
- }
193
153
  }
@@ -16,7 +16,8 @@ describe('justifi-billing-form', () => {
16
16
  address_postal_code: '10000',
17
17
  };
18
18
  await instance.fill(fields);
19
- expect(instance.billingFields).toEqual(fields);
19
+ const values = await instance.getValues();
20
+ expect(values).toEqual(fields);
20
21
  });
21
22
  it('validates the form', async () => {
22
23
  const page = await newSpecPage({
@@ -17,13 +17,16 @@ export class BusinessRepresentative {
17
17
  this.errors = {};
18
18
  this.representative = {};
19
19
  }
20
+ get identificationNumberLabel() {
21
+ return this.representative.ssn_last4 ? 'Update SSN (optional)' : 'SSN';
22
+ }
20
23
  componentDidLoad() {
21
24
  this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors.representative)));
22
25
  this.formController.values.subscribe(values => (this.representative = Object.assign({}, values.representative)));
23
26
  }
24
27
  render() {
25
28
  const representativeDefaultValue = this.formController.getInitialValues().representative;
26
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
29
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: this.identificationNumberLabel, defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
27
30
  }
28
31
  static get is() { return "justifi-business-representative"; }
29
32
  static get originalStyleUrls() {
@@ -30,6 +30,7 @@ export class BusinessOwnerForm {
30
30
  }
31
31
  finally {
32
32
  this.isLoading = false;
33
+ console.log(this.formController.getInitialValues());
33
34
  }
34
35
  };
35
36
  this.sendData = async () => {
@@ -99,6 +100,9 @@ export class BusinessOwnerForm {
99
100
  get identityEndpoint() {
100
101
  return this.ownerId ? `entities/identity/${this.ownerId}` : 'entities/identity';
101
102
  }
103
+ get identificationNumberLabel() {
104
+ return this.owner.ssn_last4 ? 'Update SSN (optional)' : 'SSN';
105
+ }
102
106
  get formTitle() {
103
107
  return this.ownerId ? 'Edit Business Owner' : 'Add Business Owner';
104
108
  }
@@ -157,7 +161,7 @@ export class BusinessOwnerForm {
157
161
  }
158
162
  render() {
159
163
  const ownerDefaultValue = this.formController.getInitialValues();
160
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", { onSubmit: this.validateAndSubmit }, h("fieldset", null, h("legend", null, this.formTitle), h("div", { class: 'row gy-3' }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: "SSN", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })), h("div", { class: "container d-flex gap-2" }, h("button", { type: "submit", class: `btn btn-primary jfi-submit-button${this.isLoading ? ' jfi-submit-button-loading' : ''}`, onClick: () => this.handleAddOwner(), disabled: this.isLoading }, this.isLoading ? LoadingSpinner() : this.submitButtonText), this.showRemoveButton &&
164
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", { onSubmit: this.validateAndSubmit }, h("fieldset", null, h("legend", null, this.formTitle), h("div", { class: 'row gy-3' }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: this.identificationNumberLabel, defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })), h("div", { class: "container d-flex gap-2" }, h("button", { type: "submit", class: `btn btn-primary jfi-submit-button${this.isLoading ? ' jfi-submit-button-loading' : ''}`, onClick: () => this.handleAddOwner(), disabled: this.isLoading }, this.isLoading ? LoadingSpinner() : this.submitButtonText), this.showRemoveButton &&
161
165
  h("button", { type: "button", class: "btn btn-danger", onClick: () => this.handleRemoveOwner() }, "Remove owner"))), h("hr", null)))));
162
166
  }
163
167
  static get is() { return "justifi-owner-form"; }
@@ -63,6 +63,9 @@ export class BusinessRepresentativeFormStep {
63
63
  get businessEndpoint() {
64
64
  return `entities/business/${this.businessId}`;
65
65
  }
66
+ get identificationNumberLabel() {
67
+ return this.representative.ssn_last4 ? 'Update SSN (optional)' : 'SSN';
68
+ }
66
69
  handleResponse(response, onSuccess) {
67
70
  if (response.error) {
68
71
  this.serverError.emit({ data: response.error, message: BusinessFormServerErrors.patchData });
@@ -93,7 +96,7 @@ export class BusinessRepresentativeFormStep {
93
96
  }
94
97
  render() {
95
98
  const representativeDefaultValue = this.formController.getInitialValues();
96
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })))))));
99
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "Representative"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, error: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, error: this.errors.title, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, error: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { class: "col-12 col-md-8" }, h("form-control-number-masked", { name: "identification_number", label: this.identificationNumberLabel, defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { class: "col-12" }, h("justifi-identity-address-form", { errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate })))))));
97
100
  }
98
101
  static get is() { return "justifi-business-representative-form-step"; }
99
102
  static get originalStyleUrls() {
@@ -1,4 +1,4 @@
1
- import { object } from "yup";
1
+ import { object, string } from "yup";
2
2
  import { addressSchema } from "./business-address-schema";
3
3
  import { dobValidation, emailValidation, identityNameValidation, identityTitleValidation, phoneValidation, ssnValidation } from "./schema-validations";
4
4
  export const identitySchema = (role, allowOptionalFields) => {
@@ -8,7 +8,8 @@ export const identitySchema = (role, allowOptionalFields) => {
8
8
  email: emailValidation.required(`Enter ${role} email`),
9
9
  phone: phoneValidation.required('Enter phone number'),
10
10
  dob_full: dobValidation(role).required('Enter date of birth'),
11
- identification_number: ssnValidation.required('Enter SSN'),
11
+ ssn_last4: string().nullable(),
12
+ identification_number: ssnValidation,
12
13
  address: addressSchema(allowOptionalFields),
13
14
  });
14
15
  const easySchema = object({
@@ -17,6 +18,7 @@ export const identitySchema = (role, allowOptionalFields) => {
17
18
  email: emailValidation.nullable(),
18
19
  phone: phoneValidation.nullable(),
19
20
  dob_full: dobValidation(role).nullable(),
21
+ ssn_last4: string().nullable(),
20
22
  identification_number: ssnValidation.nullable(),
21
23
  address: addressSchema(allowOptionalFields),
22
24
  });
@@ -78,6 +78,11 @@ export const dobValidation = (role) => {
78
78
  };
79
79
  export const ssnValidation = string()
80
80
  .matches(ssnRegex, 'Enter valid SSN')
81
+ .when('ssn_last4', {
82
+ is: (val) => !val || val.length === 0,
83
+ then: (schema) => schema.required('Enter SSN'),
84
+ otherwise: (schema) => schema.nullable(),
85
+ })
81
86
  .test('not-repeat', 'Enter valid SSN', (value) => {
82
87
  return !/^(\d)\1+$/.test(value);
83
88
  })
@@ -23,6 +23,10 @@ export class CheckoutCore {
23
23
  this.getCheckout = undefined;
24
24
  this.complete = undefined;
25
25
  this.checkoutId = undefined;
26
+ this.disableCreditCard = undefined;
27
+ this.disableBankAccount = undefined;
28
+ this.disableBnpl = undefined;
29
+ this.disablePaymentMethodGroup = undefined;
26
30
  this.hasLoadedFonts = false;
27
31
  this.isLoading = false;
28
32
  this.checkout = undefined;
@@ -101,8 +105,8 @@ export class CheckoutCore {
101
105
  }
102
106
  }
103
107
  render() {
104
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
105
- return (h(Host, null, h("div", { class: "row gy-3 jfi-checkout-core" }, h("div", { class: "col-12 mb-4" }, h("h2", { class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.checkout && (h("div", null, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+this.checkout.payment_amount)))))), h("div", { class: "col-12" }, h("h2", { class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { class: "d-flex flex-column" }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": ((_c = (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.payment_settings) === null || _c === void 0 ? void 0 : _c.credit_card_payments) || true, "show-ach": ((_e = (_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_settings) === null || _e === void 0 ? void 0 : _e.ach_payments) || true, bnpl: (_f = this.checkout) === null || _f === void 0 ? void 0 : _f.bnpl, "client-id": (_g = this.checkout) === null || _g === void 0 ? void 0 : _g.payment_client_id, "account-id": (_h = this.checkout) === null || _h === void 0 ? void 0 : _h.account_id, savedPaymentMethods: ((_j = this.checkout) === null || _j === void 0 ? void 0 : _j.payment_methods) || [], paymentAmount: (_k = this.checkout) === null || _k === void 0 ? void 0 : _k.payment_amount }))), h("div", { class: "col-12" }, h("div", { class: "d-flex justify-content-end" }, h("button", { type: "submit", onClick: event => this.submit(event), disabled: this.isLoading, part: "pay-button", class: `btn btn-primary jfi-submit-button ${this.isLoading ? 'jfi-submit-button-loading' : ''}` }, this.isLoading ? this.loadingSpinner : 'Pay'))))));
108
+ var _a, _b, _c, _d, _e, _f;
109
+ return (h(Host, null, h("div", { class: "row gy-3 jfi-checkout-core" }, h("div", { class: "col-12 mb-4" }, h("h2", { class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.checkout && (h("div", null, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+this.checkout.payment_amount)))))), h("div", { class: "col-12" }, h("h2", { class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { class: "d-flex flex-column" }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, "show-saved-payment-methods": !this.disablePaymentMethodGroup, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, "client-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.payment_client_id, "account-id": (_d = this.checkout) === null || _d === void 0 ? void 0 : _d.account_id, savedPaymentMethods: ((_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_methods) || [], paymentAmount: (_f = this.checkout) === null || _f === void 0 ? void 0 : _f.payment_amount }))), h("div", { class: "col-12" }, h("div", { class: "d-flex justify-content-end" }, h("button", { type: "submit", onClick: event => this.submit(event), disabled: this.isLoading, part: "pay-button", class: `btn btn-primary jfi-submit-button ${this.isLoading ? 'jfi-submit-button-loading' : ''}` }, this.isLoading ? this.loadingSpinner : 'Pay'))))));
106
110
  }
107
111
  static get is() { return "justifi-checkout-core"; }
108
112
  static get encapsulation() { return "shadow"; }
@@ -209,6 +213,74 @@ export class CheckoutCore {
209
213
  },
210
214
  "attribute": "checkout-id",
211
215
  "reflect": false
216
+ },
217
+ "disableCreditCard": {
218
+ "type": "boolean",
219
+ "mutable": false,
220
+ "complexType": {
221
+ "original": "boolean",
222
+ "resolved": "boolean",
223
+ "references": {}
224
+ },
225
+ "required": false,
226
+ "optional": true,
227
+ "docs": {
228
+ "tags": [],
229
+ "text": ""
230
+ },
231
+ "attribute": "disable-credit-card",
232
+ "reflect": false
233
+ },
234
+ "disableBankAccount": {
235
+ "type": "boolean",
236
+ "mutable": false,
237
+ "complexType": {
238
+ "original": "boolean",
239
+ "resolved": "boolean",
240
+ "references": {}
241
+ },
242
+ "required": false,
243
+ "optional": true,
244
+ "docs": {
245
+ "tags": [],
246
+ "text": ""
247
+ },
248
+ "attribute": "disable-bank-account",
249
+ "reflect": false
250
+ },
251
+ "disableBnpl": {
252
+ "type": "boolean",
253
+ "mutable": false,
254
+ "complexType": {
255
+ "original": "boolean",
256
+ "resolved": "boolean",
257
+ "references": {}
258
+ },
259
+ "required": false,
260
+ "optional": true,
261
+ "docs": {
262
+ "tags": [],
263
+ "text": ""
264
+ },
265
+ "attribute": "disable-bnpl",
266
+ "reflect": false
267
+ },
268
+ "disablePaymentMethodGroup": {
269
+ "type": "boolean",
270
+ "mutable": false,
271
+ "complexType": {
272
+ "original": "boolean",
273
+ "resolved": "boolean",
274
+ "references": {}
275
+ },
276
+ "required": false,
277
+ "optional": true,
278
+ "docs": {
279
+ "tags": [],
280
+ "text": ""
281
+ },
282
+ "attribute": "disable-payment-method-group",
283
+ "reflect": false
212
284
  }
213
285
  };
214
286
  }