@justifi/webcomponents 4.12.1 → 4.13.0-rc.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 (173) hide show
  1. package/dist/cjs/{Business-c928bf29.js → Business-98686045.js} +27 -4
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +4 -4
  3. package/dist/cjs/{business-additional-questions-schema-3813615c.js → business-additional-questions-schema-f8086f7a.js} +19 -9
  4. package/dist/cjs/business-form-options-fd1c0032.js +128 -0
  5. package/dist/cjs/{business-form-types-4b138bf2.js → business-form-types-29b2bad9.js} +0 -26
  6. package/dist/cjs/form-control-date_3.cjs.entry.js +2 -2
  7. package/dist/cjs/form-control-datepart_2.cjs.entry.js +1 -1
  8. package/dist/cjs/form-control-monetary.cjs.entry.js +7 -12
  9. package/dist/cjs/form-input-masks-0879c139.js +27 -0
  10. package/dist/cjs/{index-fc5339a5.js → index-d8e99b54.js} +352 -198
  11. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +10 -9
  12. package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +7 -7
  13. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +4 -4
  14. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -5
  16. package/dist/cjs/justifi-business-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
  18. package/dist/cjs/justifi-checkout-core.cjs.entry.js +9 -4
  19. package/dist/cjs/justifi-checkout.cjs.entry.js +26 -4
  20. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-owner-form.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +1 -3
  23. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -1
  24. package/dist/cjs/loader.cjs.js +1 -1
  25. package/dist/cjs/{payload-parsers-58d3798e.js → payload-parsers-fe27be37.js} +65 -6
  26. package/dist/cjs/{state-options-4fbcb48a.js → state-options-4145f9b4.js} +0 -4
  27. package/dist/cjs/webcomponents.cjs.js +1 -1
  28. package/dist/collection/api/Business.js +26 -3
  29. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -2
  30. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -2
  31. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +4 -2
  32. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  33. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +4 -2
  34. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -2
  35. package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +16 -9
  36. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +5 -1
  37. package/dist/collection/components/business-forms/schemas/schema-helpers.js +3 -0
  38. package/dist/collection/components/business-forms/schemas/schema-validations.js +53 -6
  39. package/dist/collection/components/business-forms/utils/business-form-options.js +119 -0
  40. package/dist/collection/components/business-forms/utils/business-form-types.js +0 -23
  41. package/dist/collection/components/checkout/checkout-actions.js +28 -5
  42. package/dist/collection/components/checkout/checkout-core.js +30 -6
  43. package/dist/collection/components/checkout/payment-method-options.js +2 -18
  44. package/dist/collection/components/checkout/test/checkout-actions.spec.js +126 -0
  45. package/dist/collection/components/checkout/test/checkout-core.spec.js +127 -0
  46. package/dist/collection/components/checkout/test/checkout.spec.js +0 -153
  47. package/dist/collection/components/form/form-control-monetary.css +1812 -0
  48. package/dist/collection/components/form/form-control-monetary.js +24 -11
  49. package/dist/collection/components/form/test/form-control-monetary.spec.js +5 -3
  50. package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
  51. package/dist/collection/components/refund-form/refund-form.js +2 -1
  52. package/dist/collection/utils/form-input-masks.js +15 -0
  53. package/dist/collection/utils/state-options.js +0 -4
  54. package/dist/docs.json +93 -30
  55. package/dist/esm/{Business-6cb1b9c8.js → Business-6e0efa26.js} +28 -5
  56. package/dist/esm/additional-questions-details_5.entry.js +4 -4
  57. package/dist/esm/business-additional-questions-schema-8e742129.js +54 -0
  58. package/dist/esm/business-form-options-75c0a7ec.js +122 -0
  59. package/dist/esm/{business-form-types-5ba52d61.js → business-form-types-0d76133c.js} +1 -25
  60. package/dist/esm/form-control-date_3.entry.js +2 -2
  61. package/dist/esm/form-control-datepart_2.entry.js +1 -1
  62. package/dist/esm/form-control-monetary.entry.js +7 -12
  63. package/dist/esm/form-input-masks-0e18300f.js +22 -0
  64. package/dist/esm/{index-5eb05747.js → index-dc1350b1.js} +352 -198
  65. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +10 -9
  66. package/dist/esm/justifi-additional-questions_4.entry.js +7 -7
  67. package/dist/esm/justifi-billing-form_4.entry.js +4 -4
  68. package/dist/esm/justifi-business-details.entry.js +2 -2
  69. package/dist/esm/justifi-business-form.entry.js +6 -5
  70. package/dist/esm/justifi-business-list.entry.js +2 -2
  71. package/dist/esm/justifi-business-owners.entry.js +1 -1
  72. package/dist/esm/justifi-checkout-core.entry.js +9 -4
  73. package/dist/esm/justifi-checkout.entry.js +27 -5
  74. package/dist/esm/justifi-new-payment-method_4.entry.js +1 -1
  75. package/dist/esm/justifi-owner-form.entry.js +6 -5
  76. package/dist/esm/justifi-payment-provisioning.entry.js +1 -3
  77. package/dist/esm/justifi-refund-form.entry.js +2 -1
  78. package/dist/esm/loader.js +1 -1
  79. package/dist/esm/{payload-parsers-3e817fe9.js → payload-parsers-73c12fa2.js} +57 -7
  80. package/dist/esm/{state-options-a356fb11.js → state-options-c0b757ad.js} +0 -4
  81. package/dist/esm/webcomponents.js +1 -1
  82. package/dist/module/Business.js +27 -4
  83. package/dist/module/additional-questions-details2.js +2 -2
  84. package/dist/module/additional-questions.js +18 -4
  85. package/dist/module/business-additional-questions-form-step.js +18 -4
  86. package/dist/module/business-additional-questions-schema.js +16 -9
  87. package/dist/module/business-address-schema.js +1 -1
  88. package/dist/module/business-core-info-form-step.js +10 -3
  89. package/dist/module/business-core-info-schema.js +5 -1
  90. package/dist/module/business-core-info.js +9 -3
  91. package/dist/module/business-form-options.js +122 -0
  92. package/dist/module/business-form-types.js +153 -24
  93. package/dist/module/business-identity-schema.js +1 -1
  94. package/dist/module/business-representative-form-step.js +1 -1
  95. package/dist/module/checkout-core.js +9 -5
  96. package/dist/module/form-control-monetary2.js +8 -12
  97. package/dist/module/form-input-masks.js +16 -1
  98. package/dist/module/generic-info-details2.js +2 -2
  99. package/dist/module/index2.js +352 -198
  100. package/dist/module/justifi-business-details.js +1 -1
  101. package/dist/module/justifi-business-form.js +3 -3
  102. package/dist/module/justifi-business-list.js +1 -1
  103. package/dist/module/justifi-checkout.js +27 -5
  104. package/dist/module/justifi-payment-provisioning.js +1 -1
  105. package/dist/module/justifi-refund-form.js +2 -1
  106. package/dist/module/legal-address-form-step.js +2 -2
  107. package/dist/module/owner-form.js +2 -2
  108. package/dist/module/payload-parsers.js +1 -104
  109. package/dist/module/payment-method-form.js +3 -3
  110. package/dist/module/payment-method-options.js +2 -2
  111. package/dist/module/state-options.js +0 -4
  112. package/dist/types/api/Business.d.ts +34 -5
  113. package/dist/types/api/services/checkout.service.d.ts +3 -3
  114. package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +10 -4
  115. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +4 -0
  116. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +14 -4
  117. package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +3 -0
  118. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +9 -0
  119. package/dist/types/components/business-forms/utils/business-form-options.d.ts +21 -0
  120. package/dist/types/components/business-forms/utils/business-form-types.d.ts +0 -5
  121. package/dist/types/components/checkout/checkout-core.d.ts +3 -2
  122. package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
  123. package/dist/types/components/form/form-control-monetary.d.ts +1 -0
  124. package/dist/types/components.d.ts +4 -2
  125. package/dist/types/utils/form-input-masks.d.ts +15 -0
  126. package/dist/webcomponents/{p-31e70d65.entry.js → p-19885f77.entry.js} +1 -1
  127. package/dist/webcomponents/p-2c4c5f0d.entry.js +1 -0
  128. package/dist/webcomponents/p-30b6ea06.entry.js +1 -0
  129. package/dist/webcomponents/p-31e8f29c.entry.js +1 -0
  130. package/dist/webcomponents/p-31fe7232.entry.js +1 -0
  131. package/dist/webcomponents/p-3496e37f.js +1 -0
  132. package/dist/webcomponents/{p-2fbe8823.entry.js → p-35e59bb5.entry.js} +1 -1
  133. package/dist/webcomponents/p-3917edbf.entry.js +1 -0
  134. package/dist/webcomponents/p-3934a3a8.entry.js +1 -0
  135. package/dist/webcomponents/p-3ffe6784.js +1 -0
  136. package/dist/webcomponents/p-49c349e7.js +1 -0
  137. package/dist/webcomponents/p-4d335a3d.entry.js +1 -0
  138. package/dist/webcomponents/p-4ff52695.entry.js +1 -0
  139. package/dist/webcomponents/p-525db3e8.js +1 -0
  140. package/dist/webcomponents/p-57fbd98d.js +1 -0
  141. package/dist/webcomponents/p-5a789239.entry.js +1 -0
  142. package/dist/webcomponents/{p-5f5e730c.entry.js → p-834cba99.entry.js} +1 -1
  143. package/dist/webcomponents/p-87d646c0.js +1 -0
  144. package/dist/webcomponents/{p-2bee72bd.entry.js → p-8da13f40.entry.js} +1 -1
  145. package/dist/webcomponents/p-935d6f55.js +1 -0
  146. package/dist/webcomponents/{p-71b8e2da.entry.js → p-ba454cd7.entry.js} +1 -1
  147. package/dist/webcomponents/p-ed6ca114.js +1 -0
  148. package/dist/webcomponents/p-ee68566f.entry.js +1 -0
  149. package/dist/webcomponents/{p-b9f04fb0.entry.js → p-f152d6b8.entry.js} +1 -1
  150. package/dist/webcomponents/p-f3cf3513.entry.js +1 -0
  151. package/dist/webcomponents/webcomponents.esm.js +1 -1
  152. package/package.json +2 -2
  153. package/dist/cjs/form-input-masks-efd44b8e.js +0 -11
  154. package/dist/esm/business-additional-questions-schema-228d86e0.js +0 -44
  155. package/dist/esm/form-input-masks-84875967.js +0 -7
  156. package/dist/webcomponents/p-01913426.js +0 -1
  157. package/dist/webcomponents/p-07080c01.entry.js +0 -1
  158. package/dist/webcomponents/p-0d371ff5.entry.js +0 -1
  159. package/dist/webcomponents/p-2319abaf.entry.js +0 -1
  160. package/dist/webcomponents/p-26fe62d6.entry.js +0 -1
  161. package/dist/webcomponents/p-31ccb5f0.entry.js +0 -1
  162. package/dist/webcomponents/p-4c705f56.js +0 -1
  163. package/dist/webcomponents/p-6078a370.js +0 -1
  164. package/dist/webcomponents/p-737473d8.js +0 -1
  165. package/dist/webcomponents/p-787d8f52.js +0 -1
  166. package/dist/webcomponents/p-889a83d2.js +0 -1
  167. package/dist/webcomponents/p-927150b4.entry.js +0 -1
  168. package/dist/webcomponents/p-93579716.js +0 -1
  169. package/dist/webcomponents/p-9b0e5c25.entry.js +0 -1
  170. package/dist/webcomponents/p-9e3f9e05.entry.js +0 -1
  171. package/dist/webcomponents/p-c1b92cec.entry.js +0 -1
  172. package/dist/webcomponents/p-c865cda8.entry.js +0 -1
  173. package/dist/webcomponents/p-edab5f2b.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\",[[1,\"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\"],\"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\"]}]]],[\"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],\"errorMessage\":[32],\"creatingNewPaymentMethod\":[32],\"selectedPaymentMethodToken\":[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\"]}]]],[\"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-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-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[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]},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-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]}],[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]}]]],[\"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],\"selectedPaymentMethodId\":[1,\"selected-payment-method-id\"],\"paymentAmount\":[1,\"payment-amount\"],\"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\",[[1,\"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\"],\"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\"]}]]],[\"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],\"errorMessage\":[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\"]}]]],[\"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-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);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -7,6 +7,22 @@ export var BusinessType;
7
7
  BusinessType["non_profit"] = "non_profit";
8
8
  BusinessType["government_entity"] = "government_entity";
9
9
  })(BusinessType || (BusinessType = {}));
10
+ export var BusinessStructure;
11
+ (function (BusinessStructure) {
12
+ BusinessStructure["sole_proprietorship"] = "sole_proprietorship";
13
+ BusinessStructure["single_llc"] = "single_llc";
14
+ BusinessStructure["multi_llc"] = "multi_llc";
15
+ BusinessStructure["private_partnership"] = "private_partnership";
16
+ BusinessStructure["private_corporation"] = "private_corporation";
17
+ BusinessStructure["unincorporated_association"] = "unincorporated_association";
18
+ BusinessStructure["public_partnership"] = "public_partnership";
19
+ BusinessStructure["public_corporation"] = "public_corporation";
20
+ BusinessStructure["incorporated"] = "incorporated";
21
+ BusinessStructure["unincorporated"] = "unincorporated";
22
+ BusinessStructure["government_unit"] = "government_unit";
23
+ BusinessStructure["government_instrumentality"] = "government_instrumentality";
24
+ BusinessStructure["tax_exempt_government_instrumentality"] = "tax_exempt_government_instrumentality";
25
+ })(BusinessStructure || (BusinessStructure = {}));
10
26
  export class Address {
11
27
  constructor(address) {
12
28
  this.id = address.id;
@@ -25,13 +41,17 @@ export class AdditionalQuestions {
25
41
  constructor(additionalQuestions) {
26
42
  this.business_revenue = additionalQuestions.business_revenue;
27
43
  this.business_payment_volume = additionalQuestions.business_payment_volume;
28
- this.business_dispute_volume = additionalQuestions.business_dispute_volume;
29
- this.business_receivable_volume = additionalQuestions.business_receivable_volume;
44
+ this.business_when_service_received = additionalQuestions.business_when_service_received;
45
+ this.business_recurring_payments = additionalQuestions.business_recurring_payments;
46
+ this.business_recurring_payments_percentage = additionalQuestions.business_recurring_payments_percentage;
47
+ this.business_seasonal = additionalQuestions.business_seasonal;
48
+ this.business_other_payment_details = additionalQuestions.business_other_payment_details;
30
49
  }
31
50
  }
32
51
  export class CoreBusinessInfo {
33
52
  constructor(coreBusinessInfo) {
34
53
  this.business_type = coreBusinessInfo.business_type;
54
+ this.business_structure = coreBusinessInfo.business_structure;
35
55
  this.legal_name = coreBusinessInfo.legal_name;
36
56
  this.doing_business_as = coreBusinessInfo.doing_business_as;
37
57
  this.industry = coreBusinessInfo.industry;
@@ -39,13 +59,15 @@ export class CoreBusinessInfo {
39
59
  this.website_url = coreBusinessInfo.website_url;
40
60
  this.email = coreBusinessInfo.email;
41
61
  this.phone = coreBusinessInfo.phone;
62
+ this.date_of_incorporation = coreBusinessInfo.date_of_incorporation;
42
63
  }
43
64
  }
44
65
  export class Business {
45
66
  constructor(business) {
46
- this.additional_questions = business.additional_questions || {};
67
+ this.additional_questions = Object.assign({}, new AdditionalQuestions(business.additional_questions || {}));
47
68
  this.bank_accounts = business.bank_accounts;
48
69
  this.business_type = business.business_type;
70
+ this.business_structure = business.business_structure;
49
71
  this.created_at = business.created_at;
50
72
  this.documents = business.documents;
51
73
  this.doing_business_as = business.doing_business_as;
@@ -63,5 +85,6 @@ export class Business {
63
85
  this.tax_id = business.tax_id;
64
86
  this.updated_at = business.updated_at;
65
87
  this.website_url = business.website_url;
88
+ this.date_of_incorporation = business.date_of_incorporation;
66
89
  }
67
90
  }
@@ -14,10 +14,10 @@ export class AdditionalQuestionsDetails {
14
14
  this.additionalQuestions = undefined;
15
15
  }
16
16
  render() {
17
- var _a, _b, _c, _d;
17
+ var _a, _b;
18
18
  if (isEmptyObject(this.additionalQuestions))
19
19
  return null;
20
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Dispute Volume", value: (_c = this.additionalQuestions.business_dispute_volume) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { title: "Business Receivable Volume", value: (_d = this.additionalQuestions.business_receivable_volume) === null || _d === void 0 ? void 0 : _d.toString() }))))));
20
+ return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() }))))));
21
21
  }
22
22
  static get is() { return "additional-questions-details"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -6,10 +6,10 @@ export class GenericInfoDetails {
6
6
  this.business = undefined;
7
7
  }
8
8
  render() {
9
- var _a, _b, _c, _d, _e, _f, _g, _h;
9
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
10
10
  if (!this.business)
11
11
  return null;
12
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Type", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.business_type) }), h(DetailItem, { title: "Industry", value: (_d = this.business) === null || _d === void 0 ? void 0 : _d.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.tax_id }), h(DetailItem, { title: "Website URL", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.website_url }), h(DetailItem, { title: "Email Address", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.email }), h(DetailItem, { title: "Phone Number", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.phone }))))));
12
+ return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Type", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.business_type) }), h(DetailItem, { title: "Business Structure", value: snakeCaseToHumanReadable((_d = this.business) === null || _d === void 0 ? void 0 : _d.business_structure) }), h(DetailItem, { title: "Industry", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.tax_id }), h(DetailItem, { title: "Website URL", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.website_url }), h(DetailItem, { title: "Email Address", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.email }), h(DetailItem, { title: "Phone Number", value: (_j = this.business) === null || _j === void 0 ? void 0 : _j.phone }))))));
13
13
  }
14
14
  static get is() { return "generic-info-details"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,6 @@
1
1
  import { Host, h } from "@stencil/core";
2
+ import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions } from "../../utils/business-form-options";
3
+ import { CURRENCY_MASK } from "../../../../utils/form-input-masks";
2
4
  /**
3
5
  * @exportedPart label: Label for inputs
4
6
  * @exportedPart input: The input fields
@@ -19,9 +21,9 @@ export class AdditionalQuestions {
19
21
  this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { additional_questions: Object.assign(Object.assign({}, this.formController.values.getValue().additional_questions), { [name]: value }) }));
20
22
  }
21
23
  render() {
22
- var _a, _b, _c, _d, _e, _f, _g, _h;
24
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
23
25
  const additionalQuestionsDefaultValue = this.formController.getInitialValues().additional_questions;
24
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Additional Questions"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-monetary", { name: "business_revenue", label: "Business Revenue", inputHandler: this.inputHandler, error: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.additional_questions) === null || _b === void 0 ? void 0 : _b.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue })), h("div", { class: "col-12" }, h("form-control-monetary", { name: "business_payment_volume", label: "Business Payment Volume", inputHandler: this.inputHandler, error: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.additional_questions) === null || _d === void 0 ? void 0 : _d.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume })), h("div", { class: "col-12" }, h("form-control-monetary", { name: "business_dispute_volume", label: "Business Dispute Volume", inputHandler: this.inputHandler, error: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.additional_questions) === null || _f === void 0 ? void 0 : _f.business_dispute_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_dispute_volume })), h("div", { class: "col-12" }, h("form-control-monetary", { name: "business_receivable_volume", label: "Business Receivable Volume", inputHandler: this.inputHandler, error: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.additional_questions) === null || _h === void 0 ? void 0 : _h.business_receivable_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_receivable_volume }))))));
26
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "Additional Questions"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-monetary", { name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activies?", inputHandler: this.inputHandler, error: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.additional_questions) === null || _b === void 0 ? void 0 : _b.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { class: "col-12 col-md-6" }, h("form-control-monetary", { name: "business_payment_volume", label: "What is the business\u2019 annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, error: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.additional_questions) === null || _d === void 0 ? void 0 : _d.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { class: "col-12" }, h("form-control-select", { name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, error: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.additional_questions) === null || _f === void 0 ? void 0 : _f.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { class: "col-12" }, h("form-control-select", { name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, error: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.additional_questions) === null || _h === void 0 ? void 0 : _h.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { class: "col-12" }, h("form-control-text", { name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, error: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.additional_questions) === null || _k === void 0 ? void 0 : _k.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { class: "col-12" }, h("form-control-select", { name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, error: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.additional_questions) === null || _m === void 0 ? void 0 : _m.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { class: "col-12" }, h("form-control-text", { name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, error: (_p = (_o = this.errors) === null || _o === void 0 ? void 0 : _o.additional_questions) === null || _p === void 0 ? void 0 : _p.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
25
27
  }
26
28
  static get is() { return "justifi-additional-questions"; }
27
29
  static get properties() {
@@ -1,5 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { BusinessTypeOptions } from "../../utils/business-form-types";
2
+ import { businessStructureOptions, businessTypeOptions } from "../../utils/business-form-options";
3
3
  import { PHONE_MASKS, TAX_ID_MASKS } from "../../../../utils/form-input-masks";
4
4
  import { CoreBusinessInfo } from "../../../../api/Business";
5
5
  /**
@@ -30,7 +30,7 @@ export class BusinessCoreInfo {
30
30
  }
31
31
  render() {
32
32
  const coreInfoDefaultValue = this.formController.getInitialValues();
33
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.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: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
33
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, error: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: businessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_structure", label: "Business Structure", options: businessStructureOptions, defaultValue: coreInfoDefaultValue.business_structure, error: this.errors.business_structure, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.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: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
34
34
  }
35
35
  static get is() { return "justifi-business-core-info"; }
36
36
  static get originalStyleUrls() {
@@ -5,6 +5,8 @@ import { Api } from "../../../../api";
5
5
  import { config } from "../../../../../config";
6
6
  import { additionalQuestionsSchema } from "../../schemas/business-additional-questions-schema";
7
7
  import { BusinessFormServerErrors } from "../../utils/business-form-types";
8
+ import { CURRENCY_MASK } from "../../../../utils/form-input-masks";
9
+ import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions } from "../../utils/business-form-options";
8
10
  /**
9
11
  * @exportedPart label: Label for inputs
10
12
  * @exportedPart input: The input fields
@@ -82,9 +84,9 @@ export class AdditionalQuestionsFormStep {
82
84
  this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
83
85
  }
84
86
  render() {
85
- var _a, _b, _c, _d;
87
+ var _a, _b, _c, _d, _e, _f, _g;
86
88
  const additionalQuestionsDefaultValue = this.formController.getInitialValues();
87
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "Additional Questions"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-monetary", { name: "business_revenue", label: "Business Revenue", inputHandler: this.inputHandler, error: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue })), h("div", { class: "col-12" }, h("form-control-monetary", { name: "business_payment_volume", label: "Business Payment Volume", inputHandler: this.inputHandler, error: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume })), h("div", { class: "col-12" }, h("form-control-monetary", { name: "business_dispute_volume", label: "Business Dispute Volume", inputHandler: this.inputHandler, error: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_dispute_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_dispute_volume })), h("div", { class: "col-12" }, h("form-control-monetary", { name: "business_receivable_volume", label: "Business Receivable Volume", inputHandler: this.inputHandler, error: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_receivable_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_receivable_volume })))))));
89
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "Additional Questions"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-monetary", { name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activies?", inputHandler: this.inputHandler, error: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { class: "col-12 col-md-6" }, h("form-control-monetary", { name: "business_payment_volume", label: "What is the business\u2019 annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, error: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { class: "col-12" }, h("form-control-select", { name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, error: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { class: "col-12" }, h("form-control-select", { name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, error: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { class: "col-12" }, h("form-control-text", { name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, error: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { class: "col-12" }, h("form-control-select", { name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, error: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { class: "col-12" }, h("form-control-text", { name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, error: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details })))))));
88
90
  }
89
91
  static get is() { return "justifi-additional-questions-form-step"; }
90
92
  static get properties() {
@@ -7,7 +7,8 @@ import { businessCoreInfoSchema } from "../../schemas/business-core-info-schema"
7
7
  import { config } from "../../../../../config";
8
8
  import { parseCoreInfo } from "../../utils/payload-parsers";
9
9
  import { flattenNestedObject } from "../../../../utils/utils";
10
- import { BusinessFormServerErrors, BusinessTypeOptions } from "../../utils/business-form-types";
10
+ import { BusinessFormServerErrors } from "../../utils/business-form-types";
11
+ import { businessStructureOptions, businessTypeOptions } from "../../utils/business-form-options";
11
12
  /**
12
13
  *
13
14
  * The difference between this component and business-generic-info-details
@@ -93,7 +94,7 @@ export class BusinessCoreInfoFormStep {
93
94
  }
94
95
  render() {
95
96
  const coreInfoDefaultValue = this.formController.getInitialValues();
96
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.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: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })))))));
97
+ return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, error: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: businessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_structure", label: "Business Structure", options: businessStructureOptions, defaultValue: coreInfoDefaultValue.business_structure, error: this.errors.business_structure, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.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: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })))))));
97
98
  }
98
99
  static get is() { return "justifi-business-core-info-form-step"; }
99
100
  static get originalStyleUrls() {
@@ -1,16 +1,23 @@
1
- import { object, string } from "yup";
1
+ import { object } from "yup";
2
+ import { otherPaymentDetailsValidation, paymentVolumeValidation, recurringPaymentsPercentageValidation, recurringPaymentsValidation, revenueValidation, seasonalBusinessValidation, whenServiceReceivedValidation } from "./schema-validations";
2
3
  export const additionalQuestionsSchema = (allowOptionalFields) => {
3
4
  const schema = object({
4
- business_revenue: string().required('Enter business revenue'),
5
- business_payment_volume: string().required('Enter business payment volume'),
6
- business_dispute_volume: string().required('Enter business dispute volume'),
7
- business_receivable_volume: string().required('Enter business receivable volume'),
5
+ business_revenue: revenueValidation.required('Enter business revenue'),
6
+ business_payment_volume: paymentVolumeValidation.required('Enter business payment volume'),
7
+ business_when_service_received: whenServiceReceivedValidation.required('Select when service is received'),
8
+ business_recurring_payments: recurringPaymentsValidation.required('Select recurring payments'),
9
+ business_recurring_payments_percentage: recurringPaymentsPercentageValidation,
10
+ business_seasonal: seasonalBusinessValidation.required('Select business seasonal'),
11
+ business_other_payment_details: otherPaymentDetailsValidation.nullable(),
8
12
  });
9
13
  const easySchema = object({
10
- business_revenue: string().nullable(),
11
- business_payment_volume: string().nullable(),
12
- business_dispute_volume: string().nullable(),
13
- business_receivable_volume: string().nullable()
14
+ business_revenue: revenueValidation.nullable(),
15
+ business_payment_volume: paymentVolumeValidation.nullable(),
16
+ business_when_service_received: whenServiceReceivedValidation.nullable(),
17
+ business_recurring_payments: recurringPaymentsValidation.nullable(),
18
+ business_recurring_payments_percentage: recurringPaymentsPercentageValidation,
19
+ business_seasonal: seasonalBusinessValidation.nullable(),
20
+ business_other_payment_details: otherPaymentDetailsValidation.nullable(),
14
21
  });
15
22
  return allowOptionalFields ? easySchema : schema;
16
23
  };
@@ -1,5 +1,5 @@
1
1
  import { object } from "yup";
2
- import { businessTypeValidation, doingBusinessAsValidation, emailValidation, industryValidation, businessNameValidation, phoneValidation, taxIdValidation, websiteUrlValidation } from "./schema-validations";
2
+ import { businessTypeValidation, doingBusinessAsValidation, emailValidation, industryValidation, businessNameValidation, phoneValidation, taxIdValidation, websiteUrlValidation, dateOfIncorporationValidation, businessStructureValidation } from "./schema-validations";
3
3
  export const businessCoreInfoSchema = (allowOptionalFields) => {
4
4
  const schema = object({
5
5
  legal_name: businessNameValidation.required('Enter legal name'),
@@ -8,8 +8,10 @@ export const businessCoreInfoSchema = (allowOptionalFields) => {
8
8
  phone: phoneValidation.required('Enter phone number'),
9
9
  doing_business_as: doingBusinessAsValidation.required('Enter doing business as'),
10
10
  business_type: businessTypeValidation.required('Select business type'),
11
+ business_structure: businessStructureValidation.required('Select business structure'),
11
12
  industry: industryValidation.required('Enter a business industry'),
12
13
  tax_id: taxIdValidation.required('Enter tax id'),
14
+ date_of_incorporation: dateOfIncorporationValidation.required('Enter date of incorporation'),
13
15
  });
14
16
  const easySchema = object({
15
17
  legal_name: businessNameValidation.required('Enter legal name'),
@@ -18,8 +20,10 @@ export const businessCoreInfoSchema = (allowOptionalFields) => {
18
20
  phone: phoneValidation.nullable(),
19
21
  doing_business_as: doingBusinessAsValidation.nullable(),
20
22
  business_type: businessTypeValidation.nullable(),
23
+ business_structure: businessStructureValidation.nullable(),
21
24
  industry: industryValidation.nullable(),
22
25
  tax_id: taxIdValidation.nullable(),
26
+ date_of_incorporation: dateOfIncorporationValidation.nullable(),
23
27
  });
24
28
  return allowOptionalFields ? easySchema : schema;
25
29
  };
@@ -6,4 +6,7 @@ export const phoneRegex = /^\d{10}$/;
6
6
  export const urlRegex = /^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/;
7
7
  export const taxIdRegex = /^\d{9}$/;
8
8
  export const stringLettersOnlyRegex = /^(?!^\s+$)[a-zA-Z\s]*$/;
9
+ export const numbersOnlyRegex = /^\d+$/;
9
10
  export const ssnRegex = /^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
11
+ export const streetAddressRegex = /^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/;
12
+ export const poBoxRegex = /P\.?\s?O\.?\s?Box|Postal\sBox/i;
@@ -1,7 +1,7 @@
1
1
  import { string } from "yup";
2
- import { BusinessTypeOptions } from "../utils/business-form-types";
3
2
  import StateOptions from "../../../utils/state-options";
4
- import { businessNameRegex, phoneRegex, ssnRegex, stringLettersOnlyRegex, taxIdRegex, transformEmptyString, urlRegex } from "./schema-helpers";
3
+ import { businessStructureOptions, businessServiceReceivedOptions, businessTypeOptions, recurringPaymentsOptions, seasonalBusinessOptions } from "../utils/business-form-options";
4
+ import { businessNameRegex, numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, streetAddressRegex, stringLettersOnlyRegex, taxIdRegex, transformEmptyString, urlRegex } from "./schema-helpers";
5
5
  // Common Validations
6
6
  export const emailValidation = string()
7
7
  .email('Enter valid email')
@@ -24,7 +24,10 @@ export const websiteUrlValidation = string()
24
24
  .matches(urlRegex, 'Enter valid website url')
25
25
  .transform(transformEmptyString);
26
26
  export const businessTypeValidation = string()
27
- .oneOf(BusinessTypeOptions.map((option) => option.value), 'Select business type')
27
+ .oneOf(businessTypeOptions.map((option) => option.value), 'Select business type')
28
+ .transform(transformEmptyString);
29
+ export const businessStructureValidation = string()
30
+ .oneOf(businessStructureOptions.map((option) => option.value), 'Select business structure')
28
31
  .transform(transformEmptyString);
29
32
  export const industryValidation = string()
30
33
  .min(2, 'Industry must be at least 2 characters')
@@ -33,6 +36,19 @@ export const industryValidation = string()
33
36
  .transform(transformEmptyString);
34
37
  export const taxIdValidation = string()
35
38
  .matches(taxIdRegex, 'Enter valid tax id')
39
+ .test('not-repeat', 'Enter valid tax id', (value) => {
40
+ return !/^(\d)\1+$/.test(value);
41
+ })
42
+ .test('not-seq', 'Enter valid tax id', (value) => {
43
+ return value !== '123456789';
44
+ })
45
+ .transform(transformEmptyString);
46
+ export const dateOfIncorporationValidation = string()
47
+ .test('not-future', 'Date of incorporation cannot be in the future', (value) => {
48
+ const inputDate = new Date(value);
49
+ const today = new Date();
50
+ return inputDate <= today;
51
+ })
36
52
  .transform(transformEmptyString);
37
53
  // Identity Validations
38
54
  export const identityNameValidation = string()
@@ -73,16 +89,22 @@ export const ssnValidation = string()
73
89
  export const lineOneValidation = string()
74
90
  .min(5, 'Address must be at least 5 characters')
75
91
  .max(100, 'Address must be less than 100 characters')
76
- .matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Enter valid address line 1')
92
+ .matches(streetAddressRegex, 'Enter valid address line 1')
93
+ .test('not-po-box', 'A PO Box is not a valid address entry', (value) => {
94
+ return !poBoxRegex.test(value);
95
+ })
77
96
  .transform(transformEmptyString);
78
97
  export const lineTwoValidation = string()
79
98
  .max(100, 'Address must be less than 100 characters')
80
- .matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Enter valid address line 2')
99
+ .matches(streetAddressRegex, 'Enter valid address line 2')
100
+ .test('not-po-box', 'A PO Box is not a valid address entry', (value) => {
101
+ return !poBoxRegex.test(value);
102
+ })
81
103
  .transform(transformEmptyString);
82
104
  export const cityValidation = string()
83
105
  .min(2, 'City must be at least 2 characters')
84
106
  .max(50, 'City must be less than 50 characters')
85
- .matches(/^(?!^\s+$)[a-zA-Z\s]*$/, 'Enter valid city')
107
+ .matches(stringLettersOnlyRegex, 'Enter valid city')
86
108
  .transform(transformEmptyString);
87
109
  export const stateValidation = string()
88
110
  .oneOf(StateOptions.map((option) => option.value), 'Select state')
@@ -90,3 +112,28 @@ export const stateValidation = string()
90
112
  export const postalValidation = string()
91
113
  .matches(/^[0-9]{5}$/, 'Enter valid postal code')
92
114
  .transform(transformEmptyString);
115
+ // Additional Questions Validations
116
+ export const revenueValidation = string()
117
+ .matches(numbersOnlyRegex, 'Enter valid revenue')
118
+ .transform(transformEmptyString);
119
+ export const paymentVolumeValidation = string()
120
+ .matches(numbersOnlyRegex, 'Enter valid payment volume')
121
+ .transform(transformEmptyString);
122
+ export const whenServiceReceivedValidation = string()
123
+ .oneOf(businessServiceReceivedOptions.map((option) => option.value), 'Select when service is received')
124
+ .transform(transformEmptyString);
125
+ export const recurringPaymentsValidation = string()
126
+ .oneOf(recurringPaymentsOptions.map((option) => option.value), 'Select recurring payments')
127
+ .transform(transformEmptyString);
128
+ export const recurringPaymentsPercentageValidation = string()
129
+ .when('business_recurring_payments', {
130
+ is: (val) => val === 'Yes',
131
+ then: (schema) => schema.required('Enter recurring payments percentage'),
132
+ otherwise: (schema) => schema.nullable(),
133
+ })
134
+ .transform(transformEmptyString);
135
+ export const seasonalBusinessValidation = string()
136
+ .oneOf(seasonalBusinessOptions.map((option) => option.value), 'Select seasonal business')
137
+ .transform(transformEmptyString);
138
+ export const otherPaymentDetailsValidation = string()
139
+ .transform(transformEmptyString);
@@ -0,0 +1,119 @@
1
+ import { BusinessStructure, BusinessType } from "../../../api/Business";
2
+ export const businessTypeOptions = [
3
+ {
4
+ label: 'Individual',
5
+ value: BusinessType.individual,
6
+ },
7
+ {
8
+ label: 'For Profit',
9
+ value: BusinessType.for_profit,
10
+ },
11
+ {
12
+ label: 'Non Profit',
13
+ value: BusinessType.non_profit,
14
+ },
15
+ {
16
+ label: 'Government Entity',
17
+ value: BusinessType.government_entity,
18
+ },
19
+ ];
20
+ export const businessStructureOptions = [
21
+ {
22
+ label: 'Choose business structure',
23
+ value: '',
24
+ },
25
+ {
26
+ label: 'Sole Proprietorship',
27
+ value: BusinessStructure.sole_proprietorship,
28
+ },
29
+ {
30
+ label: 'LLC (Single)',
31
+ value: BusinessStructure.single_llc,
32
+ },
33
+ {
34
+ label: 'LLC (Multiple)',
35
+ value: BusinessStructure.multi_llc,
36
+ },
37
+ {
38
+ label: 'Private Partnership',
39
+ value: BusinessStructure.private_partnership,
40
+ },
41
+ {
42
+ label: 'Private Corporation',
43
+ value: BusinessStructure.private_corporation,
44
+ },
45
+ {
46
+ label: 'Unincorporated Association',
47
+ value: BusinessStructure.unincorporated_association,
48
+ },
49
+ {
50
+ label: 'Public Partnership',
51
+ value: BusinessStructure.public_partnership,
52
+ },
53
+ {
54
+ label: 'Public Corporation',
55
+ value: BusinessStructure.public_corporation,
56
+ },
57
+ {
58
+ label: 'Incorporated',
59
+ value: BusinessStructure.incorporated,
60
+ },
61
+ {
62
+ label: 'Unincorporated',
63
+ value: BusinessStructure.unincorporated,
64
+ },
65
+ {
66
+ label: 'Government Unit',
67
+ value: BusinessStructure.government_unit,
68
+ },
69
+ {
70
+ label: 'Government Instrumentality',
71
+ value: BusinessStructure.government_instrumentality,
72
+ },
73
+ {
74
+ label: 'Tax Exempt Government Instrumentality',
75
+ value: BusinessStructure.tax_exempt_government_instrumentality,
76
+ },
77
+ ];
78
+ export const businessServiceReceivedOptions = [
79
+ {
80
+ label: 'Within 7 days',
81
+ value: 'Within 7 days',
82
+ },
83
+ {
84
+ label: 'Within 30 days',
85
+ value: 'Within 30 days',
86
+ },
87
+ {
88
+ label: 'Within 90 days',
89
+ value: 'Within 90 days',
90
+ },
91
+ {
92
+ label: 'Within 120 days',
93
+ value: 'Within 120 days',
94
+ },
95
+ {
96
+ label: 'More than 120 days',
97
+ value: 'More than 120 days',
98
+ }
99
+ ];
100
+ export const recurringPaymentsOptions = [
101
+ {
102
+ label: 'Yes',
103
+ value: 'Yes',
104
+ },
105
+ {
106
+ label: 'No',
107
+ value: 'No',
108
+ }
109
+ ];
110
+ export const seasonalBusinessOptions = [
111
+ {
112
+ label: 'Yes. The majority of the business revenue is generated in 3-6 months.',
113
+ value: 'Yes',
114
+ },
115
+ {
116
+ label: 'No. The business revenue is generated evenly throughout the year.',
117
+ value: 'No',
118
+ }
119
+ ];