@justifi/webcomponents 4.12.0 → 4.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/cjs/{Business-f8e37adb.js → Business-c928bf29.js} +2 -0
  2. package/dist/cjs/business-additional-questions-schema-3813615c.js +47 -0
  3. package/dist/cjs/{business-form-types-61b8196a.js → business-form-types-4b138bf2.js} +1 -1
  4. package/dist/cjs/{form-control-date_4.cjs.entry.js → form-control-date_3.cjs.entry.js} +0 -44
  5. package/dist/cjs/{form-control-datepart.cjs.entry.js → form-control-datepart_2.cjs.entry.js} +46 -2
  6. package/dist/cjs/{form-input-masks-baa06faf.js → form-input-masks-efd44b8e.js} +2 -0
  7. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +6 -6
  8. package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +4 -4
  9. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +1 -1
  10. package/dist/cjs/justifi-business-details.cjs.entry.js +1 -1
  11. package/dist/cjs/justifi-business-form.cjs.entry.js +4 -4
  12. package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
  13. package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
  14. package/dist/cjs/justifi-owner-form.cjs.entry.js +5 -5
  15. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/{payload-parsers-32c43c76.js → payload-parsers-58d3798e.js} +93 -36
  18. package/dist/cjs/webcomponents.cjs.js +1 -1
  19. package/dist/collection/api/Identity.js +2 -0
  20. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -2
  21. package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -2
  22. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
  23. package/dist/collection/components/business-forms/schemas/business-address-schema.js +1 -22
  24. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +4 -35
  25. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +15 -32
  26. package/dist/collection/components/business-forms/schemas/schema-helpers.js +1 -0
  27. package/dist/collection/components/business-forms/schemas/schema-validations.js +92 -0
  28. package/dist/collection/components/business-forms/utils/payload-parsers.js +1 -0
  29. package/dist/collection/utils/form-input-masks.js +1 -0
  30. package/dist/docs.json +3 -25
  31. package/dist/esm/{Business-2410f7e3.js → Business-6cb1b9c8.js} +2 -0
  32. package/dist/esm/{business-additional-questions-schema-5571d40f.js → business-additional-questions-schema-228d86e0.js} +4 -35
  33. package/dist/esm/{business-form-types-46ecd908.js → business-form-types-5ba52d61.js} +1 -1
  34. package/dist/esm/{form-control-date_4.entry.js → form-control-date_3.entry.js} +2 -45
  35. package/dist/esm/{form-control-datepart.entry.js → form-control-datepart_2.entry.js} +47 -4
  36. package/dist/esm/{form-input-masks-850c8cd4.js → form-input-masks-84875967.js} +2 -1
  37. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +6 -6
  38. package/dist/esm/justifi-additional-questions_4.entry.js +4 -4
  39. package/dist/esm/justifi-billing-form_4.entry.js +1 -1
  40. package/dist/esm/justifi-business-details.entry.js +1 -1
  41. package/dist/esm/justifi-business-form.entry.js +4 -4
  42. package/dist/esm/justifi-business-list.entry.js +1 -1
  43. package/dist/esm/justifi-business-owners.entry.js +1 -1
  44. package/dist/esm/justifi-owner-form.entry.js +5 -5
  45. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  46. package/dist/esm/loader.js +1 -1
  47. package/dist/esm/{payload-parsers-192e0c3e.js → payload-parsers-3e817fe9.js} +86 -31
  48. package/dist/esm/webcomponents.js +1 -1
  49. package/dist/module/Business.js +2 -0
  50. package/dist/module/business-address-schema.js +2 -23
  51. package/dist/module/business-core-info-schema.js +4 -35
  52. package/dist/module/business-identity-schema.js +15 -32
  53. package/dist/module/business-owners-form-step.js +2 -8
  54. package/dist/module/business-representative-form-step.js +5 -11
  55. package/dist/module/business-representative.js +4 -10
  56. package/dist/module/form-input-masks.js +2 -1
  57. package/dist/module/justifi-business-form.js +5 -11
  58. package/dist/module/justifi-payment-provisioning.js +4 -10
  59. package/dist/module/legal-address-form-step.js +1 -1
  60. package/dist/module/owner-form.js +5 -11
  61. package/dist/module/payload-parsers.js +96 -1
  62. package/dist/module/payment-method-form.js +1 -1
  63. package/dist/types/api/Identity.d.ts +3 -0
  64. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -0
  65. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +3 -1
  66. package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +1 -0
  67. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +17 -0
  68. package/dist/types/utils/form-input-masks.d.ts +1 -0
  69. package/dist/webcomponents/p-01913426.js +1 -0
  70. package/dist/webcomponents/{p-99d6b67e.entry.js → p-07080c01.entry.js} +1 -1
  71. package/dist/webcomponents/p-0d371ff5.entry.js +1 -0
  72. package/dist/webcomponents/p-2fbe8823.entry.js +1 -0
  73. package/dist/webcomponents/{p-56780f10.entry.js → p-31ccb5f0.entry.js} +1 -1
  74. package/dist/webcomponents/{p-3fe05c4a.entry.js → p-31e70d65.entry.js} +1 -1
  75. package/dist/webcomponents/p-4c705f56.js +1 -0
  76. package/dist/webcomponents/{p-9f3facf1.entry.js → p-5f5e730c.entry.js} +1 -1
  77. package/dist/webcomponents/{p-84b9ffc9.entry.js → p-71b8e2da.entry.js} +1 -1
  78. package/dist/webcomponents/p-737473d8.js +1 -0
  79. package/dist/webcomponents/{p-b318b899.js → p-787d8f52.js} +1 -1
  80. package/dist/webcomponents/p-889a83d2.js +1 -0
  81. package/dist/webcomponents/p-9b0e5c25.entry.js +1 -0
  82. package/dist/webcomponents/p-b9f04fb0.entry.js +1 -0
  83. package/dist/webcomponents/p-c865cda8.entry.js +1 -0
  84. package/dist/webcomponents/{p-8c9d9812.entry.js → p-edab5f2b.entry.js} +1 -1
  85. package/dist/webcomponents/webcomponents.esm.js +1 -1
  86. package/package.json +1 -1
  87. package/dist/cjs/business-additional-questions-schema-bdfd29c3.js +0 -78
  88. package/dist/webcomponents/p-0315876e.entry.js +0 -1
  89. package/dist/webcomponents/p-41b1ad3a.entry.js +0 -1
  90. package/dist/webcomponents/p-5c269619.js +0 -1
  91. package/dist/webcomponents/p-910bb656.js +0 -1
  92. package/dist/webcomponents/p-96cebc8b.entry.js +0 -1
  93. package/dist/webcomponents/p-e2ba8d84.entry.js +0 -1
  94. package/dist/webcomponents/p-f4ae621e.entry.js +0 -1
  95. package/dist/webcomponents/p-fd60d5af.js +0 -1
  96. package/dist/webcomponents/p-ff211f76.js +0 -1
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning\",[[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\",[[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\",[[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\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form\",[[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\",[[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\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list\",[[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\",[[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\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core\",[[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\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"form-control-datepart\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"gross-payment-chart-core\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-payment-method-selector\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-select_2\",[[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\"]}]]],[\"justifi-owner-form\",[[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\"]}]]],[\"justifi-additional-questions_4\",[[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\",[[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\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"form-control-date_4\",[[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\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[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-additional-questions-form-step_5\",[[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\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5\",[[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\",[[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\",[[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\",[[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]}]]]]"), options);
17
+ return bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning\",[[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\",[[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\",[[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\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form\",[[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\",[[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\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list\",[[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\",[[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\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core\",[[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\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"gross-payment-chart-core\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-payment-method-selector\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5\",[[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\",[[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\",[[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\",[[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\",[[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);
18
18
  });
@@ -17,6 +17,7 @@ class Owner {
17
17
  this.name = owner.name;
18
18
  this.phone = owner.phone;
19
19
  this.platform_account_id = owner.platform_account_id;
20
+ this.identification_number = owner.identification_number;
20
21
  this.ssn_last4 = owner.ssn_last4;
21
22
  this.title = owner.title;
22
23
  this.updated_at = owner.updated_at;
@@ -39,6 +40,7 @@ class Representative {
39
40
  this.name = representative.name;
40
41
  this.phone = representative.phone;
41
42
  this.platform_account_id = representative.platform_account_id;
43
+ this.identification_number = representative.identification_number;
42
44
  this.ssn_last4 = representative.ssn_last4;
43
45
  this.title = representative.title;
44
46
  this.updated_at = representative.updated_at;
@@ -1,27 +1,6 @@
1
- import { a as create$6, c as create$3 } from './index.esm.js';
2
- import { S as StateOptions } from './state-options.js';
3
- import { t as transformEmptyString } from './payload-parsers.js';
1
+ import { c as create$3, a as create$6 } from './index.esm.js';
2
+ import { l as lineOneValidation, k as lineTwoValidation, m as cityValidation, n as stateValidation, o as postalValidation } from './payload-parsers.js';
4
3
 
5
- const lineOneValidation = create$6()
6
- .min(5, 'Address must be at least 5 characters')
7
- .max(100, 'Address must be less than 100 characters')
8
- .matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Enter valid address line 1')
9
- .transform(transformEmptyString);
10
- const lineTwoValidation = create$6()
11
- .max(100, 'Address must be less than 100 characters')
12
- .matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Enter valid address line 2')
13
- .transform(transformEmptyString);
14
- const cityValidation = create$6()
15
- .min(2, 'City must be at least 2 characters')
16
- .max(50, 'City must be less than 50 characters')
17
- .matches(/^(?!^\s+$)[a-zA-Z\s]*$/, 'Enter valid city')
18
- .transform(transformEmptyString);
19
- const stateValidation = create$6()
20
- .oneOf(StateOptions.map((option) => option.value), 'Select state')
21
- .transform(transformEmptyString);
22
- const postalValidation = create$6()
23
- .matches(/^[0-9]{5}$/, 'Enter valid postal code')
24
- .transform(transformEmptyString);
25
4
  const addressSchema = (allowOptionalFields) => {
26
5
  const schema = create$3({
27
6
  line1: lineOneValidation.required('Enter street address'),
@@ -1,40 +1,9 @@
1
- import { a as create$6, c as create$3 } from './index.esm.js';
2
- import { a as BusinessTypeOptions } from './business-form-types.js';
3
- import { b as businessNameRegex, t as transformEmptyString, u as urlRegex, a as phoneRegex, s as stringLettersOnlyRegex, c as taxIdRegex } from './payload-parsers.js';
1
+ import { c as create$3 } from './index.esm.js';
2
+ import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, a as phoneValidation, d as doingBusinessAsValidation, c as businessTypeValidation, i as industryValidation, t as taxIdValidation } from './payload-parsers.js';
4
3
 
5
- const nameValidation = create$6()
6
- .min(2, 'Name must be at least 2 characters')
7
- .max(100, 'Name must be less than 100 characters')
8
- .matches(businessNameRegex, 'Enter valid business name')
9
- .transform(transformEmptyString);
10
- const doingBusinessAsValidation = create$6()
11
- .min(2, 'Name must be at least 2 characters')
12
- .max(100, 'Name must be less than 100 characters')
13
- .matches(businessNameRegex, 'Enter valid doing business as')
14
- .transform(transformEmptyString);
15
- const websiteUrlValidation = create$6()
16
- .matches(urlRegex, 'Enter valid website url')
17
- .transform(transformEmptyString);
18
- const emailValidation = create$6()
19
- .email('Enter valid email')
20
- .transform(transformEmptyString);
21
- const phoneValidation = create$6()
22
- .matches(phoneRegex, 'Enter valid phone number')
23
- .transform(transformEmptyString);
24
- const businessTypeValidation = create$6()
25
- .oneOf(BusinessTypeOptions.map((option) => option.value), 'Select business type')
26
- .transform(transformEmptyString);
27
- const industryValidation = create$6()
28
- .min(2, 'Industry must be at least 2 characters')
29
- .max(50, 'Industry must be less than 50 characters')
30
- .matches(stringLettersOnlyRegex, 'Enter valid industry')
31
- .transform(transformEmptyString);
32
- const taxIdValidation = create$6()
33
- .matches(taxIdRegex, 'Enter valid tax id')
34
- .transform(transformEmptyString);
35
4
  const businessCoreInfoSchema = (allowOptionalFields) => {
36
5
  const schema = create$3({
37
- legal_name: nameValidation.required('Enter legal name'),
6
+ legal_name: businessNameValidation.required('Enter legal name'),
38
7
  website_url: websiteUrlValidation.required('Enter business website url'),
39
8
  email: emailValidation.required('Enter business email'),
40
9
  phone: phoneValidation.required('Enter phone number'),
@@ -44,7 +13,7 @@ const businessCoreInfoSchema = (allowOptionalFields) => {
44
13
  tax_id: taxIdValidation.required('Enter tax id'),
45
14
  });
46
15
  const easySchema = create$3({
47
- legal_name: nameValidation.required('Enter legal name'),
16
+ legal_name: businessNameValidation.required('Enter legal name'),
48
17
  website_url: websiteUrlValidation.nullable(),
49
18
  email: emailValidation.nullable(),
50
19
  phone: phoneValidation.nullable(),
@@ -1,41 +1,24 @@
1
- import { c as create$3, a as create$6 } from './index.esm.js';
1
+ import { c as create$3 } from './index.esm.js';
2
2
  import { a as addressSchema } from './business-address-schema.js';
3
- import { a as phoneRegex, t as transformEmptyString } from './payload-parsers.js';
3
+ import { g as identityNameValidation, h as identityTitleValidation, e as emailValidation, a as phoneValidation, j as dobValidation, s as ssnValidation } from './payload-parsers.js';
4
4
 
5
- const dobValidation = (title) => {
6
- return (create$6()
7
- .test('min', 'Enter a valid date', (value) => {
8
- const date = new Date(value);
9
- const minDate = new Date('1902-01-01');
10
- return date >= minDate;
11
- })
12
- .test('age', `${title} must be at least 18 years old`, (value) => {
13
- const date = new Date(value);
14
- const minAgeDate = new Date();
15
- minAgeDate.setFullYear(minAgeDate.getFullYear() - 18);
16
- return date <= minAgeDate;
17
- })
18
- .transform(transformEmptyString));
19
- };
20
- const identitySchema = (title, allowOptionalFields) => {
5
+ const identitySchema = (role, allowOptionalFields) => {
21
6
  const schema = create$3({
22
- name: create$6().required(`Enter ${title} name`),
23
- email: create$6()
24
- .email(`Enter valid ${title} email`)
25
- .required(`Enter ${title} email`),
26
- phone: create$6().matches(phoneRegex, 'Enter valid phone number').required('Enter phone number'),
27
- dob_full: dobValidation(title).required('Enter date of birth'),
28
- identification_number: create$6(),
7
+ name: identityNameValidation.required(`Enter ${role} name`),
8
+ title: identityTitleValidation.required(`Enter ${role} title`),
9
+ email: emailValidation.required(`Enter ${role} email`),
10
+ phone: phoneValidation.required('Enter phone number'),
11
+ dob_full: dobValidation(role).required('Enter date of birth'),
12
+ identification_number: ssnValidation.required('Enter SSN'),
29
13
  address: addressSchema(allowOptionalFields),
30
14
  });
31
15
  const easySchema = create$3({
32
- name: create$6().required(`Enter ${title} name`),
33
- email: create$6()
34
- .email(`Enter valid ${title} email`)
35
- .nullable(),
36
- phone: create$6().matches(phoneRegex, 'Enter valid phone number').nullable(),
37
- dob_full: dobValidation(title).nullable('Enter date of birth'),
38
- identification_number: create$6().nullable(),
16
+ name: identityNameValidation.required(`Enter ${role} name`),
17
+ title: identityTitleValidation.nullable(),
18
+ email: emailValidation.nullable(),
19
+ phone: phoneValidation.nullable(),
20
+ dob_full: dobValidation(role).nullable(),
21
+ identification_number: ssnValidation.nullable(),
39
22
  address: addressSchema(allowOptionalFields),
40
23
  });
41
24
  return allowOptionalFields ? easySchema : schema;
@@ -6,8 +6,7 @@ import './Payout.js';
6
6
  import { c as config } from './config.js';
7
7
  import { O as Owner } from './Business.js';
8
8
  import { B as BusinessFormServerErrors, O as OwnerFormClickActions } from './business-form-types.js';
9
- import { d as defineCustomElement$7 } from './form-control-date2.js';
10
- import { d as defineCustomElement$6 } from './form-control-number2.js';
9
+ import { d as defineCustomElement$6 } from './form-control-date2.js';
11
10
  import { d as defineCustomElement$5 } from './form-control-number-masked2.js';
12
11
  import { d as defineCustomElement$4 } from './form-control-select2.js';
13
12
  import { d as defineCustomElement$3 } from './form-control-text2.js';
@@ -169,7 +168,7 @@ function defineCustomElement() {
169
168
  if (typeof customElements === "undefined") {
170
169
  return;
171
170
  }
172
- const components = ["justifi-business-owners-form-step", "form-control-date", "form-control-number", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form", "justifi-owner-form"];
171
+ const components = ["justifi-business-owners-form-step", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form", "justifi-owner-form"];
173
172
  components.forEach(tagName => { switch (tagName) {
174
173
  case "justifi-business-owners-form-step":
175
174
  if (!customElements.get(tagName)) {
@@ -177,11 +176,6 @@ function defineCustomElement() {
177
176
  }
178
177
  break;
179
178
  case "form-control-date":
180
- if (!customElements.get(tagName)) {
181
- defineCustomElement$7();
182
- }
183
- break;
184
- case "form-control-number":
185
179
  if (!customElements.get(tagName)) {
186
180
  defineCustomElement$6();
187
181
  }
@@ -1,15 +1,14 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { F as FormController } from './form.js';
3
- import { P as PHONE_MASKS } from './form-input-masks.js';
3
+ import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks.js';
4
4
  import { A as Api } from './Api.js';
5
- import { e as parseIdentityInfo } from './payload-parsers.js';
5
+ import { q as parseIdentityInfo } from './payload-parsers.js';
6
6
  import { i as identitySchema } from './business-identity-schema.js';
7
7
  import { c as config } from './config.js';
8
8
  import { B as BusinessFormServerErrors } from './business-form-types.js';
9
9
  import { R as Representative } from './Business.js';
10
10
  import { d as deconstructDate } from './helpers.js';
11
- import { d as defineCustomElement$6 } from './form-control-date2.js';
12
- import { d as defineCustomElement$5 } from './form-control-number2.js';
11
+ import { d as defineCustomElement$5 } from './form-control-date2.js';
13
12
  import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
14
13
  import { d as defineCustomElement$3 } from './form-control-select2.js';
15
14
  import { d as defineCustomElement$2 } from './form-control-text2.js';
@@ -107,7 +106,7 @@ const BusinessRepresentativeFormStep = /*@__PURE__*/ proxyCustomElement(class Bu
107
106
  }
108
107
  render() {
109
108
  const representativeDefaultValue = this.formController.getInitialValues();
110
- 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", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler })), 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 })))))));
109
+ 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 })))))));
111
110
  }
112
111
  static get style() { return businessRepresentativeFormStepCss; }
113
112
  }, [0, "justifi-business-representative-form-step", {
@@ -123,7 +122,7 @@ function defineCustomElement() {
123
122
  if (typeof customElements === "undefined") {
124
123
  return;
125
124
  }
126
- const components = ["justifi-business-representative-form-step", "form-control-date", "form-control-number", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form"];
125
+ const components = ["justifi-business-representative-form-step", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form"];
127
126
  components.forEach(tagName => { switch (tagName) {
128
127
  case "justifi-business-representative-form-step":
129
128
  if (!customElements.get(tagName)) {
@@ -131,11 +130,6 @@ function defineCustomElement() {
131
130
  }
132
131
  break;
133
132
  case "form-control-date":
134
- if (!customElements.get(tagName)) {
135
- defineCustomElement$6();
136
- }
137
- break;
138
- case "form-control-number":
139
133
  if (!customElements.get(tagName)) {
140
134
  defineCustomElement$5();
141
135
  }
@@ -1,8 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { P as PHONE_MASKS } from './form-input-masks.js';
2
+ import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks.js';
3
3
  import { d as deconstructDate } from './helpers.js';
4
- import { d as defineCustomElement$6 } from './form-control-date2.js';
5
- import { d as defineCustomElement$5 } from './form-control-number2.js';
4
+ import { d as defineCustomElement$5 } from './form-control-date2.js';
6
5
  import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
7
6
  import { d as defineCustomElement$3 } from './form-control-select2.js';
8
7
  import { d as defineCustomElement$2 } from './form-control-text2.js';
@@ -34,7 +33,7 @@ const BusinessRepresentative = /*@__PURE__*/ proxyCustomElement(class BusinessRe
34
33
  }
35
34
  render() {
36
35
  const representativeDefaultValue = this.formController.getInitialValues().representative;
37
- 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", { name: "identification_number", label: "SSN", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler })), 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 }))))));
36
+ 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 }))))));
38
37
  }
39
38
  static get style() { return businessRepresentativeCss; }
40
39
  }, [0, "justifi-business-representative", {
@@ -46,7 +45,7 @@ function defineCustomElement() {
46
45
  if (typeof customElements === "undefined") {
47
46
  return;
48
47
  }
49
- const components = ["justifi-business-representative", "form-control-date", "form-control-number", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form"];
48
+ const components = ["justifi-business-representative", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form"];
50
49
  components.forEach(tagName => { switch (tagName) {
51
50
  case "justifi-business-representative":
52
51
  if (!customElements.get(tagName)) {
@@ -54,11 +53,6 @@ function defineCustomElement() {
54
53
  }
55
54
  break;
56
55
  case "form-control-date":
57
- if (!customElements.get(tagName)) {
58
- defineCustomElement$6();
59
- }
60
- break;
61
- case "form-control-number":
62
56
  if (!customElements.get(tagName)) {
63
57
  defineCustomElement$5();
64
58
  }
@@ -2,5 +2,6 @@ const PHONE_MASKS = {
2
2
  US: '(000) 000-0000',
3
3
  };
4
4
  const TAX_ID_MASKS = { US: '00-0000000' };
5
+ const SSN_MASK = '000-00-0000';
5
6
 
6
- export { PHONE_MASKS as P, TAX_ID_MASKS as T };
7
+ export { PHONE_MASKS as P, SSN_MASK as S, TAX_ID_MASKS as T };
@@ -9,14 +9,13 @@ import { A as Api } from './Api.js';
9
9
  import './Pagination.js';
10
10
  import './Payment.js';
11
11
  import './Payout.js';
12
- import { d as parseBusiness } from './payload-parsers.js';
12
+ import { f as parseBusiness } from './payload-parsers.js';
13
13
  import { c as config } from './config.js';
14
14
  import { F as FormAlert } from './utils4.js';
15
15
  import { B as BusinessFormServerErrors, b as BusinessFormClickActions } from './business-form-types.js';
16
16
  import { a as Business } from './Business.js';
17
- import { d as defineCustomElement$c } from './form-control-date2.js';
18
- import { d as defineCustomElement$b } from './form-control-monetary2.js';
19
- import { d as defineCustomElement$a } from './form-control-number2.js';
17
+ import { d as defineCustomElement$b } from './form-control-date2.js';
18
+ import { d as defineCustomElement$a } from './form-control-monetary2.js';
20
19
  import { d as defineCustomElement$9 } from './form-control-number-masked2.js';
21
20
  import { d as defineCustomElement$8 } from './form-control-select2.js';
22
21
  import { d as defineCustomElement$7 } from './form-control-text2.js';
@@ -134,7 +133,7 @@ function defineCustomElement$1() {
134
133
  if (typeof customElements === "undefined") {
135
134
  return;
136
135
  }
137
- const components = ["justifi-business-form", "form-control-date", "form-control-monetary", "form-control-number", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-additional-questions", "justifi-business-core-info", "justifi-business-representative", "justifi-identity-address-form", "justifi-legal-address-form"];
136
+ const components = ["justifi-business-form", "form-control-date", "form-control-monetary", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-additional-questions", "justifi-business-core-info", "justifi-business-representative", "justifi-identity-address-form", "justifi-legal-address-form"];
138
137
  components.forEach(tagName => { switch (tagName) {
139
138
  case "justifi-business-form":
140
139
  if (!customElements.get(tagName)) {
@@ -142,16 +141,11 @@ function defineCustomElement$1() {
142
141
  }
143
142
  break;
144
143
  case "form-control-date":
145
- if (!customElements.get(tagName)) {
146
- defineCustomElement$c();
147
- }
148
- break;
149
- case "form-control-monetary":
150
144
  if (!customElements.get(tagName)) {
151
145
  defineCustomElement$b();
152
146
  }
153
147
  break;
154
- case "form-control-number":
148
+ case "form-control-monetary":
155
149
  if (!customElements.get(tagName)) {
156
150
  defineCustomElement$a();
157
151
  }
@@ -1,9 +1,8 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { F as FormAlert, L as LoadingSpinner } from './utils4.js';
3
3
  import { b as BusinessFormClickActions } from './business-form-types.js';
4
- import { d as defineCustomElement$e } from './form-control-date2.js';
5
- import { d as defineCustomElement$d } from './form-control-monetary2.js';
6
- import { d as defineCustomElement$c } from './form-control-number2.js';
4
+ import { d as defineCustomElement$d } from './form-control-date2.js';
5
+ import { d as defineCustomElement$c } from './form-control-monetary2.js';
7
6
  import { d as defineCustomElement$b } from './form-control-number-masked2.js';
8
7
  import { d as defineCustomElement$a } from './form-control-select2.js';
9
8
  import { d as defineCustomElement$9 } from './form-control-text2.js';
@@ -116,7 +115,7 @@ function defineCustomElement$1() {
116
115
  if (typeof customElements === "undefined") {
117
116
  return;
118
117
  }
119
- const components = ["justifi-payment-provisioning", "form-control-date", "form-control-monetary", "form-control-number", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-additional-questions-form-step", "justifi-business-core-info-form-step", "justifi-business-owners-form-step", "justifi-business-representative-form-step", "justifi-identity-address-form", "justifi-legal-address-form-step", "justifi-owner-form"];
118
+ const components = ["justifi-payment-provisioning", "form-control-date", "form-control-monetary", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-additional-questions-form-step", "justifi-business-core-info-form-step", "justifi-business-owners-form-step", "justifi-business-representative-form-step", "justifi-identity-address-form", "justifi-legal-address-form-step", "justifi-owner-form"];
120
119
  components.forEach(tagName => { switch (tagName) {
121
120
  case "justifi-payment-provisioning":
122
121
  if (!customElements.get(tagName)) {
@@ -124,16 +123,11 @@ function defineCustomElement$1() {
124
123
  }
125
124
  break;
126
125
  case "form-control-date":
127
- if (!customElements.get(tagName)) {
128
- defineCustomElement$e();
129
- }
130
- break;
131
- case "form-control-monetary":
132
126
  if (!customElements.get(tagName)) {
133
127
  defineCustomElement$d();
134
128
  }
135
129
  break;
136
- case "form-control-number":
130
+ case "form-control-monetary":
137
131
  if (!customElements.get(tagName)) {
138
132
  defineCustomElement$c();
139
133
  }
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
  import { F as FormController } from './form.js';
3
3
  import { A as Api } from './Api.js';
4
4
  import { b as Address } from './Business.js';
5
- import { f as parseAddressInfo } from './payload-parsers.js';
5
+ import { r as parseAddressInfo } from './payload-parsers.js';
6
6
  import { a as addressSchema } from './business-address-schema.js';
7
7
  import { c as config } from './config.js';
8
8
  import { B as BusinessFormServerErrors } from './business-form-types.js';
@@ -1,19 +1,18 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { F as FormController } from './form.js';
3
- import { P as PHONE_MASKS } from './form-input-masks.js';
3
+ import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks.js';
4
4
  import { A as Api } from './Api.js';
5
5
  import './Pagination.js';
6
6
  import './Payment.js';
7
7
  import './Payout.js';
8
8
  import { O as Owner } from './Business.js';
9
- import { e as parseIdentityInfo } from './payload-parsers.js';
9
+ import { q as parseIdentityInfo } from './payload-parsers.js';
10
10
  import { i as identitySchema } from './business-identity-schema.js';
11
11
  import { c as config } from './config.js';
12
12
  import { L as LoadingSpinner } from './utils4.js';
13
13
  import { d as deconstructDate } from './helpers.js';
14
14
  import { c as OwnerFormServerErrors, O as OwnerFormClickActions } from './business-form-types.js';
15
- import { d as defineCustomElement$6 } from './form-control-date2.js';
16
- import { d as defineCustomElement$5 } from './form-control-number2.js';
15
+ import { d as defineCustomElement$5 } from './form-control-date2.js';
17
16
  import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
18
17
  import { d as defineCustomElement$3 } from './form-control-select2.js';
19
18
  import { d as defineCustomElement$2 } from './form-control-text2.js';
@@ -176,7 +175,7 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
176
175
  }
177
176
  render() {
178
177
  const ownerDefaultValue = this.formController.getInitialValues();
179
- 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", { name: "identification_number", label: "SSN", defaultValue: ownerDefaultValue === null || ownerDefaultValue === void 0 ? void 0 : ownerDefaultValue.identification_number, error: this.errors.identification_number, inputHandler: this.inputHandler })), 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 &&
178
+ 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 &&
180
179
  h("button", { type: "button", class: "btn btn-danger", onClick: () => this.handleRemoveOwner() }, "Remove owner"))), h("hr", null)))));
181
180
  }
182
181
  static get watchers() { return {
@@ -204,7 +203,7 @@ function defineCustomElement() {
204
203
  if (typeof customElements === "undefined") {
205
204
  return;
206
205
  }
207
- const components = ["justifi-owner-form", "form-control-date", "form-control-number", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form"];
206
+ const components = ["justifi-owner-form", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "justifi-identity-address-form"];
208
207
  components.forEach(tagName => { switch (tagName) {
209
208
  case "justifi-owner-form":
210
209
  if (!customElements.get(tagName)) {
@@ -212,11 +211,6 @@ function defineCustomElement() {
212
211
  }
213
212
  break;
214
213
  case "form-control-date":
215
- if (!customElements.get(tagName)) {
216
- defineCustomElement$6();
217
- }
218
- break;
219
- case "form-control-number":
220
214
  if (!customElements.get(tagName)) {
221
215
  defineCustomElement$5();
222
216
  }