@justifi/webcomponents 6.13.0-rc.1 → 6.13.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 (585) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-Be2I_aiS.js → Analytics-DaegoP5G.js} +5 -5
  3. package/dist/cjs/{Api-Bukk55YZ.js → Api-BioDE5he.js} +1 -1
  4. package/dist/cjs/{Plaid-Aw35bhCX.js → Plaid-QLOFOTeC.js} +13 -13
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  6. package/dist/cjs/{additional-questions-form-step_14.cjs.entry.js → additional-questions-form-step_15.cjs.entry.js} +391 -175
  7. package/dist/cjs/additional-questions_5.cjs.entry.js +7 -7
  8. package/dist/cjs/additional-statement_8.cjs.entry.js +9 -9
  9. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +10 -10
  10. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +21 -0
  11. package/dist/cjs/bank-account-form.cjs.entry.js +34 -5
  12. package/dist/cjs/{business-form-options-D_nM7NDk.js → business-form-options-CnlrfbQ6.js} +51 -0
  13. package/dist/cjs/{business-identity-schema-DI9XFbaD.js → business-identity-schema-BA385xf-.js} +12 -8
  14. package/dist/cjs/{business.service-CylI3Qrg.js → business.service-DOGeb2O6.js} +2 -2
  15. package/dist/cjs/card-form.cjs.entry.js +5 -5
  16. package/dist/cjs/{check-pkg-version-BLLLh6v-.js → check-pkg-version-BNGOOokA.js} +1 -1
  17. package/dist/cjs/{checkout-actions-8-MUczKw.js → checkout-actions-CjR16i7o.js} +2 -2
  18. package/dist/cjs/{checkout.service-BYpinbSR.js → checkout.service-Bdr5qUHj.js} +2 -2
  19. package/dist/cjs/{checkout.store-CztwuCnG.js → checkout.store-CZHrIuaP.js} +9 -3
  20. package/dist/cjs/{country-config-D7fss2oF.js → country-config-C1bWmF8P.js} +12 -4
  21. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  22. package/dist/cjs/dispute-notification_2.cjs.entry.js +15 -15
  23. package/dist/cjs/{event-types-DptNnCEP.js → event-types-DWDQKDv4.js} +2 -2
  24. package/dist/cjs/form-address-fields_3.cjs.entry.js +3 -3
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  26. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  28. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  30. package/dist/cjs/form-control-number_2.cjs.entry.js +7 -6
  31. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
  33. package/dist/cjs/{get-business-D10Tmct1.js → get-business-CrxvWZh6.js} +2 -2
  34. package/dist/cjs/{get-payment-details-BB5aa48u.js → get-payment-details-iCEkGDy4.js} +2 -2
  35. package/dist/cjs/{get-subaccounts-CSD2nAqD.js → get-subaccounts-Dgl7ECtg.js} +3 -3
  36. package/dist/cjs/hidden-input_2.cjs.entry.js +6 -6
  37. package/dist/cjs/{index.esm-C1ZPG85l.js → index.esm-BNETBIV_.js} +0 -18
  38. package/dist/cjs/{insurance-state-Xe2auE-N.js → insurance-state-B-XQRmMs.js} +1 -1
  39. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  40. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +63 -38
  41. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +8 -8
  42. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +18 -8
  43. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +2 -2
  44. package/dist/cjs/justifi-billing-form.cjs.entry.js +2 -2
  45. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
  46. package/dist/cjs/justifi-business-form.cjs.entry.js +15 -15
  47. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +2 -2
  48. package/dist/cjs/justifi-card-form.cjs.entry.js +8 -8
  49. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +6 -6
  50. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  52. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
  53. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  54. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11 -11
  55. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  56. package/dist/cjs/justifi-payment-details.cjs.entry.js +18 -18
  57. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -11
  58. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  59. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +5 -5
  60. package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -11
  61. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
  62. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  63. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +5 -5
  64. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
  65. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +9 -9
  66. package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -13
  67. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +2 -2
  68. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
  69. package/dist/cjs/justifi-skeleton.cjs.entry.js +2 -2
  70. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +7 -7
  71. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
  72. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
  73. package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
  74. package/dist/cjs/loader.cjs.js +1 -1
  75. package/dist/cjs/{lodash-CxSkBibc.js → lodash-C4mGy21w.js} +38 -27
  76. package/dist/cjs/{package-gx36QXN1.js → package-BKwTzSig.js} +1 -1
  77. package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
  78. package/dist/cjs/{payment-provisioning-actions-DimM0KGV.js → payment-provisioning-actions-B4x7lnyF.js} +9 -9
  79. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +3 -2
  80. package/dist/cjs/{payment.service-fy5bXXmA.js → payment.service-a5EL3s2d.js} +2 -2
  81. package/dist/cjs/{payout.service-hp3PTXWI.js → payout.service-BJtGBHsQ.js} +2 -2
  82. package/dist/cjs/{payouts-status-CF1YT_RL.js → payouts-status-viYMBknO.js} +2 -2
  83. package/dist/cjs/{plaid.service-9PmS4X0g.js → plaid.service-DpiLY-5D.js} +2 -2
  84. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  85. package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
  86. package/dist/cjs/{schema-validations-_yWWnnaG.js → schema-validations-C2XsZnqK.js} +24 -10
  87. package/dist/cjs/styled-host-Ch0-dxF-.js +11 -0
  88. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  89. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  90. package/dist/cjs/{terminal.service-D5D76Cnn.js → terminal.service-DN2A-bNx.js} +2 -2
  91. package/dist/cjs/{utils-Dcde8Zpt.js → utils-BVM6JCW0.js} +1 -1
  92. package/dist/cjs/{utils-BHi4j5rB.js → utils-D1CWnhex.js} +4 -4
  93. package/dist/cjs/webcomponents.cjs.js +1 -1
  94. package/dist/collection/actions/payment/get-payments.js +1 -1
  95. package/dist/collection/actions/refund/refund-actions.js +1 -1
  96. package/dist/collection/actions/terminal/get-terminal-orders.js +1 -1
  97. package/dist/collection/actions/void/void-actions.js +1 -1
  98. package/dist/collection/api/Analytics.js +2 -2
  99. package/dist/collection/api/Document.js +12 -0
  100. package/dist/collection/collection-manifest.json +3 -1
  101. package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
  102. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  103. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +5 -3
  104. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +4 -2
  105. package/dist/collection/components/business-forms/owner-form/owner-form.js +46 -1
  106. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +2 -2
  107. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +6 -114
  108. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +2 -2
  109. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +9 -0
  110. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -2
  111. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  112. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +433 -0
  113. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-list.js +52 -0
  114. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-options.js +80 -0
  115. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +1 -1
  116. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  117. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +7 -7
  118. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +3 -2
  119. package/dist/collection/components/business-forms/schemas/business-address-schema.js +1 -1
  120. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +10 -38
  121. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  122. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +7 -3
  123. package/dist/collection/components/business-forms/schemas/schema-helpers.js +1 -1
  124. package/dist/collection/components/business-forms/schemas/schema-validations.js +10 -7
  125. package/dist/collection/components/business-forms/utils/business-form-options.js +50 -0
  126. package/dist/collection/components/business-forms/utils/country-config.js +11 -4
  127. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +30 -2
  128. package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
  129. package/dist/collection/components/checkout/billing-form/billing-form-full.js +2 -2
  130. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +1 -1
  131. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
  132. package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
  133. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  134. package/dist/collection/components/checkout/justifi-checkout.js +21 -2
  135. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  136. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  137. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  138. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +2 -2
  139. package/dist/collection/components/dispute-management/dispute-notification.js +3 -3
  140. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  141. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  142. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  143. package/dist/collection/components/dispute-management/dispute-response/dispute-response-actions.js +3 -3
  144. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  145. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  146. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  150. package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
  151. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  152. package/dist/collection/components/filters/utils.js +1 -1
  153. package/dist/collection/components/gross-payment-chart/chart-utils.js +3 -3
  154. package/dist/collection/components/insurance/insurance-state.js +1 -1
  155. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +19 -13
  156. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +0 -21
  157. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  158. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +11 -1
  159. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  160. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  161. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  162. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  163. package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +16 -10
  164. package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +15 -2
  165. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  166. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  167. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  168. package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
  169. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  170. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  171. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  172. package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
  173. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  174. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  175. package/dist/collection/components/payouts-list/justifi-payouts-list.js +4 -4
  176. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  177. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +2 -2
  178. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  179. package/dist/collection/components/terminals-list/justifi-terminals-list.js +4 -4
  180. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +5 -3
  181. package/dist/collection/store/checkout.store.js +9 -3
  182. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  183. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  184. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  185. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  186. package/dist/collection/ui-components/form/form-control-file.js +3 -3
  187. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  188. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  189. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  190. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  191. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  192. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  193. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  194. package/dist/collection/ui-components/form/hidden-input.js +2 -2
  195. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  196. package/dist/collection/ui-components/internal-button.js +1 -1
  197. package/dist/collection/ui-components/radio-list-item.js +1 -1
  198. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  199. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  200. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  201. package/dist/collection/utils/checkout-billing-state-options.js +12 -0
  202. package/dist/collection/utils/utils.js +4 -4
  203. package/dist/docs.json +537 -106
  204. package/dist/esm/{Analytics-DZWGizAK.js → Analytics-D_HycaxE.js} +5 -5
  205. package/dist/esm/{Api-DMd8hTI-.js → Api-DjAL73GZ.js} +1 -1
  206. package/dist/esm/{Plaid-fhlY0CIN.js → Plaid-C8qoMZLV.js} +14 -13
  207. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  208. package/dist/esm/{additional-questions-form-step_14.entry.js → additional-questions-form-step_15.entry.js} +390 -175
  209. package/dist/esm/additional-questions_5.entry.js +8 -8
  210. package/dist/esm/additional-statement_8.entry.js +9 -9
  211. package/dist/esm/bank-account-billing-form-simple_4.entry.js +10 -10
  212. package/dist/esm/bank-account-document-form-inputs.entry.js +19 -0
  213. package/dist/esm/bank-account-form.entry.js +34 -5
  214. package/dist/esm/{business-form-options-DRalxlqN.js → business-form-options-DXjZp4Rl.js} +51 -1
  215. package/dist/esm/{business-identity-schema-D-Nk9aGV.js → business-identity-schema-Csou60ZC.js} +12 -8
  216. package/dist/esm/{business.service-Crs-0Mdy.js → business.service-BGXqAyxu.js} +2 -2
  217. package/dist/esm/card-form.entry.js +5 -5
  218. package/dist/esm/{check-pkg-version-CVyuA8aH.js → check-pkg-version-BfrWk42V.js} +1 -1
  219. package/dist/esm/{checkout-actions-BMnp3uHK.js → checkout-actions-D8JS2l5e.js} +2 -2
  220. package/dist/esm/{checkout.service-BMAQVmHa.js → checkout.service-sHKaW-M0.js} +2 -2
  221. package/dist/esm/{checkout.store-DFnkcDZ8.js → checkout.store-DibfdUMm.js} +9 -3
  222. package/dist/esm/{country-config-B_fuF6JU.js → country-config-CEJVOOGe.js} +12 -5
  223. package/dist/esm/custom-popper_2.entry.js +2 -2
  224. package/dist/esm/dispute-notification_2.entry.js +15 -15
  225. package/dist/esm/{event-types-CVVB5p_Q.js → event-types-ynZLear3.js} +2 -2
  226. package/dist/esm/form-address-fields_3.entry.js +3 -3
  227. package/dist/esm/form-control-checkbox.entry.js +2 -2
  228. package/dist/esm/form-control-date.entry.js +2 -2
  229. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  230. package/dist/esm/form-control-file.entry.js +2 -2
  231. package/dist/esm/form-control-monetary.entry.js +3 -3
  232. package/dist/esm/form-control-number_2.entry.js +7 -6
  233. package/dist/esm/form-control-radio.entry.js +2 -2
  234. package/dist/esm/form-control-select_2.entry.js +4 -4
  235. package/dist/esm/{get-business-B9ZS1tVq.js → get-business-DAv_b3vf.js} +2 -2
  236. package/dist/esm/{get-payment-details-CiR6FrkO.js → get-payment-details-Bipad3jX.js} +2 -2
  237. package/dist/esm/{get-subaccounts-VpDr7yN4.js → get-subaccounts-FqCT2s3S.js} +3 -3
  238. package/dist/esm/hidden-input_2.entry.js +6 -6
  239. package/dist/esm/{index.esm-CgNcFueq.js → index.esm-KCSohgHx.js} +1 -18
  240. package/dist/esm/{insurance-state-CLGc1-_4.js → insurance-state-C5OZqDCT.js} +1 -1
  241. package/dist/esm/internal-button.entry.js +1 -1
  242. package/dist/esm/justifi-apple-pay_11.entry.js +63 -38
  243. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +8 -8
  244. package/dist/esm/justifi-bank-account-form.entry.js +18 -8
  245. package/dist/esm/justifi-billing-form-full.entry.js +2 -2
  246. package/dist/esm/justifi-billing-form.entry.js +2 -2
  247. package/dist/esm/justifi-business-details.entry.js +10 -10
  248. package/dist/esm/justifi-business-form.entry.js +15 -15
  249. package/dist/esm/justifi-card-billing-form-simple.entry.js +2 -2
  250. package/dist/esm/justifi-card-form.entry.js +8 -8
  251. package/dist/esm/justifi-checkout-qr-code.entry.js +6 -6
  252. package/dist/esm/justifi-checkout.entry.js +10 -10
  253. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  254. package/dist/esm/justifi-checkouts-list.entry.js +12 -12
  255. package/dist/esm/justifi-dispute-management.entry.js +10 -10
  256. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  257. package/dist/esm/justifi-order-terminals.entry.js +12 -12
  258. package/dist/esm/justifi-payment-details.entry.js +18 -18
  259. package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
  260. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -10
  261. package/dist/esm/justifi-payments-list-filters.entry.js +5 -5
  262. package/dist/esm/justifi-payments-list.entry.js +11 -11
  263. package/dist/esm/justifi-payout-details.entry.js +13 -13
  264. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -10
  265. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
  266. package/dist/esm/justifi-payouts-list.entry.js +15 -15
  267. package/dist/esm/justifi-qr-terminal.entry.js +9 -9
  268. package/dist/esm/justifi-refund-payment.entry.js +13 -13
  269. package/dist/esm/justifi-save-new-payment-method.entry.js +2 -2
  270. package/dist/esm/justifi-season-interruption-insurance.entry.js +10 -10
  271. package/dist/esm/justifi-skeleton.entry.js +2 -2
  272. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
  273. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  274. package/dist/esm/justifi-terminals-list-filters.entry.js +5 -5
  275. package/dist/esm/justifi-terminals-list.entry.js +14 -14
  276. package/dist/esm/loader.js +1 -1
  277. package/dist/esm/{lodash-CrGKVSPp.js → lodash-BF_QgjtL.js} +38 -27
  278. package/dist/esm/{package-CZa-hHhJ.js → package-DSavNeRB.js} +1 -1
  279. package/dist/esm/payment-method-option.entry.js +2 -2
  280. package/dist/esm/{payment-provisioning-actions-CcDadiRe.js → payment-provisioning-actions-DI3QUsjh.js} +9 -9
  281. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +3 -2
  282. package/dist/esm/{payment.service-BiKQPL4M.js → payment.service-wSNYSRyl.js} +2 -2
  283. package/dist/esm/{payout.service-B9_cyUiU.js → payout.service-CTAksNmD.js} +2 -2
  284. package/dist/esm/{payouts-status-xOa5tT66.js → payouts-status-CeZoirpf.js} +2 -2
  285. package/dist/esm/{plaid.service-bU3qIoKd.js → plaid.service-5EpJEdwX.js} +2 -2
  286. package/dist/esm/radio-list-item.entry.js +1 -1
  287. package/dist/esm/save-new-payment-method.entry.js +2 -2
  288. package/dist/esm/{schema-validations-u9_XnlUL.js → schema-validations-CySYE883.js} +24 -11
  289. package/dist/esm/styled-host-D84RBv1W.js +9 -0
  290. package/dist/esm/table-filters-menu.entry.js +1 -1
  291. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  292. package/dist/esm/{terminal.service-BM6BvevW.js → terminal.service-xjfU0mJT.js} +2 -2
  293. package/dist/esm/{utils-BTtxWI2r.js → utils-CcA8Y5hs.js} +4 -4
  294. package/dist/esm/{utils-BogmBHgt.js → utils-myniydlM.js} +1 -1
  295. package/dist/esm/webcomponents.js +1 -1
  296. package/dist/module/Analytics.js +2 -2
  297. package/dist/module/Plaid.js +13 -12
  298. package/dist/module/additional-questions-form-step2.js +12 -6
  299. package/dist/module/additional-statement2.js +1 -1
  300. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  301. package/dist/module/bank-account-document-form-inputs.js +55 -1
  302. package/dist/module/bank-account-form2.js +30 -2
  303. package/dist/module/billing-form-full2.js +2 -2
  304. package/dist/module/billing-form-schema.js +1 -1
  305. package/dist/module/business-address-schema.js +2 -2
  306. package/dist/module/business-bank-account-form-step2.js +25 -178
  307. package/dist/module/business-core-info-form-step2.js +3 -3
  308. package/dist/module/business-core-info-schema.js +2 -2
  309. package/dist/module/business-core-info2.js +3 -3
  310. package/dist/module/business-documents-on-file2.js +1 -1
  311. package/dist/module/business-form-options.js +51 -1
  312. package/dist/module/business-identity-schema.js +8 -4
  313. package/dist/module/business-owners-form-step2.js +9 -0
  314. package/dist/module/business-representative-form-inputs2.js +5 -3
  315. package/dist/module/business-representative-form-step2.js +1 -1
  316. package/dist/module/business-representative2.js +6 -5
  317. package/dist/module/button.js +1 -1
  318. package/dist/module/cancellation-policy2.js +1 -1
  319. package/dist/module/card-billing-form-simple2.js +1 -1
  320. package/dist/module/card-form2.js +2 -2
  321. package/dist/module/checkout.store.js +9 -3
  322. package/dist/module/country-config.js +12 -5
  323. package/dist/module/custom-popper2.js +2 -2
  324. package/dist/module/customer-details2.js +1 -1
  325. package/dist/module/dispute-notification2.js +3 -3
  326. package/dist/module/dispute-response2.js +1 -1
  327. package/dist/module/document-upload-form-step.d.ts +11 -0
  328. package/dist/module/document-upload-form-step.js +6 -0
  329. package/dist/module/document-upload-form-step2.js +403 -0
  330. package/dist/module/document-upload-list.d.ts +11 -0
  331. package/dist/module/document-upload-list.js +6 -0
  332. package/dist/module/document-upload-list2.js +46 -0
  333. package/dist/module/duplicate-charge2.js +1 -1
  334. package/dist/module/electronic-evidence2.js +1 -1
  335. package/dist/module/event-types3.js +3 -3
  336. package/dist/module/form-control-checkbox2.js +2 -2
  337. package/dist/module/form-control-date2.js +2 -2
  338. package/dist/module/form-control-file-v22.js +1 -1
  339. package/dist/module/form-control-file2.js +2 -2
  340. package/dist/module/form-control-monetary2.js +2 -2
  341. package/dist/module/form-control-number-masked2.js +2 -2
  342. package/dist/module/form-control-number2.js +3 -3
  343. package/dist/module/form-control-radio2.js +2 -2
  344. package/dist/module/form-control-select2.js +2 -2
  345. package/dist/module/form-control-text2.js +2 -2
  346. package/dist/module/form-control-textarea2.js +3 -3
  347. package/dist/module/form.js +1 -18
  348. package/dist/module/hidden-input2.js +3 -3
  349. package/dist/module/iframe-input2.js +4 -4
  350. package/dist/module/insurance-state.js +1 -1
  351. package/dist/module/internal-button2.js +1 -1
  352. package/dist/module/justifi-apple-pay2.js +0 -2
  353. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  354. package/dist/module/justifi-bank-account-form.js +11 -1
  355. package/dist/module/justifi-billing-form-full.js +1 -1
  356. package/dist/module/justifi-billing-form.js +1 -1
  357. package/dist/module/justifi-button2.js +1 -1
  358. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  359. package/dist/module/justifi-card-form.js +1 -1
  360. package/dist/module/justifi-checkout-summary2.js +1 -1
  361. package/dist/module/justifi-checkout.js +3 -2
  362. package/dist/module/justifi-checkouts-list-filters.js +3 -3
  363. package/dist/module/justifi-checkouts-list.js +4 -4
  364. package/dist/module/justifi-dispute-management.js +2 -2
  365. package/dist/module/justifi-google-pay2.js +10 -4
  366. package/dist/module/justifi-gross-payment-chart.js +3 -3
  367. package/dist/module/justifi-header2.js +1 -1
  368. package/dist/module/justifi-modular-checkout2.js +19 -13
  369. package/dist/module/justifi-order-terminals.js +3 -3
  370. package/dist/module/justifi-payment-details.js +9 -9
  371. package/dist/module/justifi-payment-provisioning.js +33 -27
  372. package/dist/module/justifi-payment-transactions-list.js +3 -3
  373. package/dist/module/justifi-payments-list-filters.js +2 -2
  374. package/dist/module/justifi-payments-list.js +3 -3
  375. package/dist/module/justifi-payout-details.js +4 -4
  376. package/dist/module/justifi-payout-transactions-list.js +3 -3
  377. package/dist/module/justifi-payouts-list-filters.js +3 -3
  378. package/dist/module/justifi-payouts-list.js +6 -6
  379. package/dist/module/justifi-plaid-payment-method2.js +14 -2
  380. package/dist/module/justifi-qr-terminal.js +1 -1
  381. package/dist/module/justifi-refund-payment.js +3 -3
  382. package/dist/module/justifi-save-new-payment-method.js +1 -1
  383. package/dist/module/justifi-skeleton.js +1 -1
  384. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  385. package/dist/module/justifi-terminal-orders-list.js +5 -5
  386. package/dist/module/justifi-terminals-list-filters.js +2 -2
  387. package/dist/module/justifi-terminals-list.js +6 -6
  388. package/dist/module/justifi-tokenize-payment-method2.js +5 -3
  389. package/dist/module/legal-address-form-step2.js +1 -1
  390. package/dist/module/lodash.js +38 -27
  391. package/dist/module/owner-details2.js +1 -1
  392. package/dist/module/owner-form-inputs2.js +5 -3
  393. package/dist/module/owner-form2.js +10 -1
  394. package/dist/module/package.js +1 -1
  395. package/dist/module/parts.js +1 -1
  396. package/dist/module/payment-method-option.js +1 -1
  397. package/dist/module/payment-provisioning-actions.js +8 -8
  398. package/dist/module/payment-provisioning-form-steps2.js +35 -28
  399. package/dist/module/plaid-verification2.js +1 -1
  400. package/dist/module/product-or-service2.js +1 -1
  401. package/dist/module/radio-list-item2.js +1 -1
  402. package/dist/module/refund-policy2.js +1 -1
  403. package/dist/module/save-new-payment-method2.js +1 -1
  404. package/dist/module/schema-validations.js +22 -9
  405. package/dist/module/shipping-details2.js +1 -1
  406. package/dist/module/skeleton.js +1 -1
  407. package/dist/module/styled-host.js +1 -1
  408. package/dist/module/table-filters-menu2.js +1 -1
  409. package/dist/module/table.js +1 -1
  410. package/dist/module/terminal-quantity-selector2.js +2 -2
  411. package/dist/module/utils2.js +4 -4
  412. package/dist/stencil.config.js +40 -0
  413. package/dist/types/api/Document.d.ts +13 -1
  414. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  415. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +1 -12
  416. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.d.ts +44 -0
  417. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-list.d.ts +6 -0
  418. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-options.d.ts +45 -0
  419. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +1 -0
  420. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +4 -4
  421. package/dist/types/components/business-forms/utils/business-form-options.d.ts +1 -0
  422. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +2 -0
  423. package/dist/types/components/checkout/justifi-checkout.d.ts +2 -0
  424. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +0 -1
  425. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts +1 -1
  426. package/dist/types/components/modular-checkout/sub-components/justifi-google-pay.d.ts +4 -2
  427. package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +1 -0
  428. package/dist/types/components.d.ts +86 -13
  429. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/stencil.config.d.ts +2 -0
  430. package/dist/types/store/checkout.store.d.ts +2 -0
  431. package/dist/types/utils/checkout-billing-state-options.d.ts +9 -0
  432. package/dist/webcomponents/p-015288c4.entry.js +1 -0
  433. package/dist/webcomponents/p-055640f9.entry.js +1 -0
  434. package/dist/webcomponents/{p-ca87c609.entry.js → p-0a4fcb15.entry.js} +1 -1
  435. package/dist/webcomponents/p-0d98518e.entry.js +1 -0
  436. package/dist/webcomponents/p-0ea6aa9c.entry.js +1 -0
  437. package/dist/webcomponents/p-0ede7e82.entry.js +1 -0
  438. package/dist/webcomponents/p-0f2a1ac9.entry.js +1 -0
  439. package/dist/webcomponents/p-1068ae13.entry.js +1 -0
  440. package/dist/webcomponents/p-14a03ad0.entry.js +1 -0
  441. package/dist/webcomponents/p-1a30f2d9.entry.js +1 -0
  442. package/dist/webcomponents/p-1b51dea9.entry.js +1 -0
  443. package/dist/webcomponents/{p-89cd31f2.entry.js → p-1de248b1.entry.js} +1 -1
  444. package/dist/webcomponents/p-218b926a.entry.js +1 -0
  445. package/dist/webcomponents/p-25215ee7.entry.js +1 -0
  446. package/dist/webcomponents/{p-9fca25fc.entry.js → p-266870f0.entry.js} +1 -1
  447. package/dist/webcomponents/p-27c35a85.entry.js +1 -0
  448. package/dist/webcomponents/{p-DHFQtPCq.js → p-2mMMaism.js} +1 -1
  449. package/dist/webcomponents/p-3a2629a2.entry.js +1 -0
  450. package/dist/webcomponents/p-3e56bbe5.entry.js +1 -0
  451. package/dist/webcomponents/p-4791c6d7.entry.js +1 -0
  452. package/dist/webcomponents/p-49d9c0a4.entry.js +1 -0
  453. package/dist/webcomponents/p-4a30693b.entry.js +1 -0
  454. package/dist/webcomponents/p-4fab9314.entry.js +1 -0
  455. package/dist/webcomponents/{p-b20b8805.entry.js → p-5218bcd0.entry.js} +1 -1
  456. package/dist/webcomponents/{p-a80f69a9.entry.js → p-53d775b9.entry.js} +1 -1
  457. package/dist/webcomponents/{p-70dcd833.entry.js → p-5a58f606.entry.js} +1 -1
  458. package/dist/webcomponents/p-5f6bc8e7.entry.js +1 -0
  459. package/dist/webcomponents/p-65908b5f.entry.js +1 -0
  460. package/dist/webcomponents/{p-3d6b9434.entry.js → p-67364f1d.entry.js} +1 -1
  461. package/dist/webcomponents/{p-bd678d4a.entry.js → p-6bf4fea8.entry.js} +1 -1
  462. package/dist/webcomponents/p-6c3e9ebd.entry.js +1 -0
  463. package/dist/webcomponents/{p-a9695714.entry.js → p-6fe329d6.entry.js} +1 -1
  464. package/dist/webcomponents/p-70e05aec.entry.js +1 -0
  465. package/dist/webcomponents/p-73deced9.entry.js +1 -0
  466. package/dist/webcomponents/p-762b1b7b.entry.js +1 -0
  467. package/dist/webcomponents/p-76ded81e.entry.js +1 -0
  468. package/dist/webcomponents/p-77cc572d.entry.js +1 -0
  469. package/dist/webcomponents/p-7b6cf400.entry.js +1 -0
  470. package/dist/webcomponents/p-8fd18ce2.entry.js +1 -0
  471. package/dist/webcomponents/p-9c0760b9.entry.js +1 -0
  472. package/dist/webcomponents/{p-CqPcl9v7.js → p-B62JX_Dh.js} +1 -1
  473. package/dist/webcomponents/p-BB8Ce9rp.js +1 -0
  474. package/dist/webcomponents/{p-Bt4GjEWL.js → p-BBSnDYJw.js} +1 -1
  475. package/dist/webcomponents/{p-BRnBHsdq.js → p-BSs-2JKu.js} +1 -1
  476. package/dist/webcomponents/p-BUHsyQpA.js +1 -0
  477. package/dist/webcomponents/{p-D-zwk1J3.js → p-C-Jgmek8.js} +1 -1
  478. package/dist/webcomponents/p-C1gr32IS.js +1 -0
  479. package/dist/webcomponents/{p-D4E9P7df.js → p-C7hX61pS.js} +1 -1
  480. package/dist/webcomponents/p-CO8ZGkfN.js +1 -0
  481. package/dist/webcomponents/p-CPJC6tlj.js +1 -0
  482. package/dist/webcomponents/{p-Cg_3KsGO.js → p-CdwzNfP1.js} +1 -1
  483. package/dist/webcomponents/p-Cn7z5L7J.js +1 -0
  484. package/dist/webcomponents/{p-BGvaX-lJ.js → p-CxBrydeX.js} +1 -1
  485. package/dist/webcomponents/{p-DwoT0UoX.js → p-D9sqTVmd.js} +1 -1
  486. package/dist/webcomponents/p-DP9ysr2K.js +1 -0
  487. package/dist/webcomponents/p-DPA5TKvQ.js +1 -0
  488. package/dist/webcomponents/p-DSavNeRB.js +1 -0
  489. package/dist/webcomponents/{p-CSgcCWLS.js → p-DXTa04jn.js} +1 -1
  490. package/dist/webcomponents/p-DYSc8uvs.js +1 -0
  491. package/dist/webcomponents/p-Da3fPDxu.js +1 -0
  492. package/dist/webcomponents/{p-CYQvLgSs.js → p-De4Pig-y.js} +1 -1
  493. package/dist/webcomponents/p-DyPk4BJt.js +1 -0
  494. package/dist/webcomponents/p-DzEdYT8R.js +1 -0
  495. package/dist/webcomponents/p-NzPaWKbY.js +1 -0
  496. package/dist/webcomponents/p-OeJ-3w3l.js +9 -0
  497. package/dist/webcomponents/{p-eK8hZOMg.js → p-R_0S69Pr.js} +1 -1
  498. package/dist/webcomponents/{p-392f0c1c.entry.js → p-a1885b83.entry.js} +1 -1
  499. package/dist/webcomponents/p-a6b46f98.entry.js +1 -0
  500. package/dist/webcomponents/{p-0fb8fb8c.entry.js → p-a893d607.entry.js} +1 -1
  501. package/dist/webcomponents/p-b03e361e.entry.js +1 -0
  502. package/dist/webcomponents/{p-37fd1862.entry.js → p-c3a25333.entry.js} +1 -1
  503. package/dist/webcomponents/p-c60c4bed.entry.js +1 -0
  504. package/dist/webcomponents/{p-ff5c5499.entry.js → p-c885cbf6.entry.js} +4 -4
  505. package/dist/webcomponents/p-c8bcc54f.entry.js +1 -0
  506. package/dist/webcomponents/{p-8d602e60.entry.js → p-d0c889e7.entry.js} +1 -1
  507. package/dist/webcomponents/p-d554e0bb.entry.js +1 -0
  508. package/dist/webcomponents/p-d7e2ce48.entry.js +1 -0
  509. package/dist/webcomponents/p-ddb885c3.entry.js +1 -0
  510. package/dist/webcomponents/p-ddffdec9.entry.js +1 -0
  511. package/dist/webcomponents/{p-22d19755.entry.js → p-debc4768.entry.js} +1 -1
  512. package/dist/webcomponents/p-e1168904.entry.js +1 -0
  513. package/dist/webcomponents/p-e3021e22.entry.js +1 -0
  514. package/dist/webcomponents/{p-aee2295b.entry.js → p-e3f8541c.entry.js} +1 -1
  515. package/dist/webcomponents/{p-c1539656.entry.js → p-eccc1fc6.entry.js} +1 -1
  516. package/dist/webcomponents/{p-c4767c7b.entry.js → p-f3c40c22.entry.js} +1 -1
  517. package/dist/webcomponents/p-f4de4ac0.entry.js +1 -0
  518. package/dist/webcomponents/p-f953fd60.entry.js +1 -0
  519. package/dist/webcomponents/p-fdea8c57.entry.js +1 -0
  520. package/dist/webcomponents/p-z3RFjy9B.js +1 -0
  521. package/dist/webcomponents/{p-qju4tNG1.js → p-zZn1OXja.js} +1 -1
  522. package/dist/webcomponents/webcomponents.esm.js +1 -1
  523. package/package.json +16 -16
  524. package/readme.md +7 -14
  525. package/dist/cjs/styled-host-DAi5SuFa.js +0 -11
  526. package/dist/esm/styled-host-D6byRazK.js +0 -9
  527. package/dist/module/bank-account-document-form-inputs2.js +0 -57
  528. package/dist/webcomponents/p-06e8df55.entry.js +0 -1
  529. package/dist/webcomponents/p-0708cb76.entry.js +0 -1
  530. package/dist/webcomponents/p-07f2f1bf.entry.js +0 -1
  531. package/dist/webcomponents/p-10087a53.entry.js +0 -1
  532. package/dist/webcomponents/p-12ae030d.entry.js +0 -1
  533. package/dist/webcomponents/p-1d7b8c21.entry.js +0 -1
  534. package/dist/webcomponents/p-21c89e22.entry.js +0 -1
  535. package/dist/webcomponents/p-2ec7cd88.entry.js +0 -1
  536. package/dist/webcomponents/p-2qotS5d_.js +0 -1
  537. package/dist/webcomponents/p-355a5c8d.entry.js +0 -1
  538. package/dist/webcomponents/p-37b95a11.entry.js +0 -1
  539. package/dist/webcomponents/p-383b8317.entry.js +0 -1
  540. package/dist/webcomponents/p-44cf13ac.entry.js +0 -1
  541. package/dist/webcomponents/p-46477dfe.entry.js +0 -1
  542. package/dist/webcomponents/p-4ccf9cd7.entry.js +0 -1
  543. package/dist/webcomponents/p-55fdab4e.entry.js +0 -1
  544. package/dist/webcomponents/p-5ccb46ee.entry.js +0 -1
  545. package/dist/webcomponents/p-5f8dfa8d.entry.js +0 -1
  546. package/dist/webcomponents/p-63b7abf3.entry.js +0 -1
  547. package/dist/webcomponents/p-6RTf1SXX.js +0 -1
  548. package/dist/webcomponents/p-70cd2808.entry.js +0 -1
  549. package/dist/webcomponents/p-769d3d93.entry.js +0 -1
  550. package/dist/webcomponents/p-79bd744e.entry.js +0 -1
  551. package/dist/webcomponents/p-7a4cd292.entry.js +0 -1
  552. package/dist/webcomponents/p-9153c121.entry.js +0 -1
  553. package/dist/webcomponents/p-94f14640.entry.js +0 -1
  554. package/dist/webcomponents/p-98f399ec.entry.js +0 -1
  555. package/dist/webcomponents/p-9b944aa4.entry.js +0 -1
  556. package/dist/webcomponents/p-9fc7714d.entry.js +0 -1
  557. package/dist/webcomponents/p-BArmtmkq.js +0 -1
  558. package/dist/webcomponents/p-BqNNwq6C.js +0 -1
  559. package/dist/webcomponents/p-CZa-hHhJ.js +0 -1
  560. package/dist/webcomponents/p-C_ifLmT1.js +0 -9
  561. package/dist/webcomponents/p-CvgL8YaH.js +0 -1
  562. package/dist/webcomponents/p-DD-_8sbs.js +0 -1
  563. package/dist/webcomponents/p-DMqJWUK2.js +0 -1
  564. package/dist/webcomponents/p-DZAMzLxa.js +0 -1
  565. package/dist/webcomponents/p-DbOUuBHs.js +0 -1
  566. package/dist/webcomponents/p-DyucNSA4.js +0 -1
  567. package/dist/webcomponents/p-Eb1f86_V.js +0 -1
  568. package/dist/webcomponents/p-KXLYEe1D.js +0 -1
  569. package/dist/webcomponents/p-XxG-t-Sl.js +0 -1
  570. package/dist/webcomponents/p-a7a1b168.entry.js +0 -1
  571. package/dist/webcomponents/p-b0b6083f.entry.js +0 -1
  572. package/dist/webcomponents/p-b341efd6.entry.js +0 -1
  573. package/dist/webcomponents/p-b62ff001.entry.js +0 -1
  574. package/dist/webcomponents/p-bb5de874.entry.js +0 -1
  575. package/dist/webcomponents/p-c8ee1e4c.entry.js +0 -1
  576. package/dist/webcomponents/p-ce1dde85.entry.js +0 -1
  577. package/dist/webcomponents/p-d253a573.entry.js +0 -1
  578. package/dist/webcomponents/p-d620d4b4.entry.js +0 -1
  579. package/dist/webcomponents/p-dcd600ca.entry.js +0 -1
  580. package/dist/webcomponents/p-e4cb7c21.entry.js +0 -1
  581. package/dist/webcomponents/p-e5c2215a.entry.js +0 -1
  582. package/dist/webcomponents/p-e6b9dfe1.entry.js +0 -1
  583. package/dist/webcomponents/p-eCeOsPHx.js +0 -1
  584. package/dist/webcomponents/p-f1b9cbf0.entry.js +0 -1
  585. package/dist/webcomponents/p-f9aafb21.entry.js +0 -1
@@ -79,7 +79,7 @@ export class AdditionalQuestionsFormStep {
79
79
  this.formController.validateAndSubmit(() => this.sendData(onSuccess));
80
80
  }
81
81
  get patchPayload() {
82
- let formValues = new AdditionalQuestions(this.formController.values.getValue()).payload;
82
+ const formValues = new AdditionalQuestions(this.formController.values.getValue()).payload;
83
83
  return { additional_questions: formValues };
84
84
  }
85
85
  componentWillLoad() {
@@ -119,7 +119,7 @@ export class AdditionalQuestionsFormStep {
119
119
  if (this.isLoading) {
120
120
  return h(PaymentProvisioningLoading, null);
121
121
  }
122
- return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Additional Questions"), h("form-control-tooltip", { helpText: "This information helps us understand the business and identify and monitor trends to safeguard you and your customers." })), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { name: "business_revenue", label: "What is your business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_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-provisioning", { name: "business_payment_volume", label: "What is your business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_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-text", { name: "business_average_transaction_amount", label: "What is your average transaction size?", inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_average_transaction_amount, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_average_transaction_amount })), 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, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.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-text", { name: "business_other_payment_details", label: "Is there anything else you would like us to know about how your customers pay the business? (optional)", inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
122
+ return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Additional Questions"), h("form-control-tooltip", { helpText: "This information helps us understand the business and identify and monitor trends to safeguard you and your customers." })), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { name: "business_revenue", label: "What is your business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_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-provisioning", { name: "business_payment_volume", label: "What is your business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_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-number", { name: "business_average_transaction_amount", label: "What is your average transaction size?", inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_average_transaction_amount, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_average_transaction_amount })), 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, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.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-text", { name: "business_other_payment_details", label: "Is there anything else you would like us to know about how your customers pay the business? (optional)", inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
123
123
  }
124
124
  static get is() { return "additional-questions-form-step"; }
125
125
  static get properties() {
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { ComponentErrorCodes, ComponentErrorSeverity, BankAccount, EntityDocument, EntityDocumentStorage } from "../../../../api";
3
- import { makeGetBusiness, makePostBankAccount, makePostDocumentRecord } from "../payment-provisioning-actions";
4
- import { BusinessService, BusinessBankAccountService, DocumentRecordService } from "../../../../api/services/business.service";
2
+ import { ComponentErrorCodes, ComponentErrorSeverity, BankAccount } from "../../../../api";
3
+ import { makeGetBusiness, makePostBankAccount } from "../payment-provisioning-actions";
4
+ import { BusinessService, BusinessBankAccountService } from "../../../../api/services/business.service";
5
5
  import { CountryCode } from "../../../../utils/country-codes";
6
6
  import { bankAccountSchemaByCountry } from "../../schemas/business-bank-account-schema";
7
7
  import { FormController } from "../../../../ui-components/form/form";
@@ -13,15 +13,13 @@ export class BusinessBankAccountFormStep {
13
13
  constructor() {
14
14
  this.errors = {};
15
15
  this.bankAccount = {};
16
- this.existingDocuments = [];
17
- this.documentData = new EntityDocumentStorage();
18
16
  this.isLoading = false;
19
17
  this.viewMode = 'manual';
20
18
  this.bankAccountVerification = false;
21
19
  this.platformAccountId = null;
22
20
  this.getSchema = () => {
23
21
  const schema = bankAccountSchemaByCountry[this.country];
24
- return schema(this.allowOptionalFields, this.existingDocuments);
22
+ return schema(this.allowOptionalFields);
25
23
  };
26
24
  this.initializeFormController = () => {
27
25
  this.formController = new FormController(this.getSchema());
@@ -38,12 +36,6 @@ export class BusinessBankAccountFormStep {
38
36
  this.inputHandler = (name, value) => {
39
37
  this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
40
38
  };
41
- this.storeFiles = (e) => {
42
- const fileList = Array.from(e.detail.fileList);
43
- const docType = e.detail.document_type;
44
- const documentList = fileList.map(file => new EntityDocument({ file, document_type: docType }, this.businessId));
45
- this.documentData[docType] = documentList;
46
- };
47
39
  this.getData = () => {
48
40
  this.isLoading = true;
49
41
  this.getBusiness({
@@ -66,12 +58,10 @@ export class BusinessBankAccountFormStep {
66
58
  };
67
59
  this.handleChangeBankAccount = () => {
68
60
  this.viewMode = this.plaidAvailable ? 'plaid' : 'manual';
69
- this.documentData = new EntityDocumentStorage();
70
61
  this.initializeFormController();
71
62
  };
72
63
  this.handleCancel = () => {
73
64
  this.viewMode = this.existingBankAccount ? 'readonly' : 'plaid';
74
- this.documentData = new EntityDocumentStorage();
75
65
  this.initializeFormController();
76
66
  };
77
67
  this.handleToggleToManualEntry = () => {
@@ -87,66 +77,6 @@ export class BusinessBankAccountFormStep {
87
77
  });
88
78
  });
89
79
  };
90
- this.postDocumentRecordData = async (docData) => {
91
- this.isLoading = true;
92
- const payload = docData.record_data;
93
- return new Promise((resolve) => {
94
- this.postDocumentRecord({
95
- payload,
96
- onSuccess: (response) => {
97
- resolve(this.handleDocRecordResponse(docData, response));
98
- },
99
- onError: ({ error, code, severity }) => {
100
- this.errorEvent.emit({
101
- message: error,
102
- errorCode: code,
103
- severity: severity
104
- });
105
- resolve(false);
106
- },
107
- });
108
- });
109
- };
110
- this.handleDocRecordResponse = (docData, response) => {
111
- if (response.error) {
112
- this.errorEvent.emit({
113
- errorCode: ComponentErrorCodes.POST_ERROR,
114
- message: response.error.message,
115
- severity: ComponentErrorSeverity.ERROR,
116
- data: response.error,
117
- });
118
- return false;
119
- }
120
- else {
121
- docData.setPresignedUrl(response.data.presigned_url);
122
- return true;
123
- }
124
- };
125
- this.uploadDocument = async (docData) => {
126
- if (!docData.presigned_url) {
127
- throw new Error('Presigned URL is not set');
128
- }
129
- const fileData = await docData.getFileData();
130
- const response = await fetch(docData.presigned_url, {
131
- method: 'PUT',
132
- body: fileData
133
- });
134
- return this.handleUploadResponse(response);
135
- };
136
- this.handleUploadResponse = (response) => {
137
- if (response.error) {
138
- this.errorEvent.emit({
139
- errorCode: ComponentErrorCodes.POST_ERROR,
140
- message: response.error.message,
141
- severity: ComponentErrorSeverity.ERROR,
142
- data: response.error,
143
- });
144
- return false;
145
- }
146
- else {
147
- return true;
148
- }
149
- };
150
80
  }
151
81
  propChanged() {
152
82
  this.initializeApi();
@@ -185,10 +115,6 @@ export class BusinessBankAccountFormStep {
185
115
  authToken: this.authToken,
186
116
  service: new BusinessBankAccountService()
187
117
  });
188
- this.postDocumentRecord = makePostDocumentRecord({
189
- authToken: this.authToken,
190
- service: new DocumentRecordService()
191
- });
192
118
  }
193
119
  else {
194
120
  this.errorEvent.emit({
@@ -214,7 +140,7 @@ export class BusinessBankAccountFormStep {
214
140
  return this.bankAccountVerification || this.existingBankAccount;
215
141
  }
216
142
  processBusinessResponse(data) {
217
- const { bank_accounts, documents, settings, platform_account_id } = data;
143
+ const { bank_accounts, settings, platform_account_id } = data;
218
144
  if (bank_accounts.length > 0) {
219
145
  this.bankAccount = new BankAccount(bank_accounts[bank_accounts.length - 1]);
220
146
  }
@@ -222,7 +148,6 @@ export class BusinessBankAccountFormStep {
222
148
  this.bankAccount = new BankAccount({});
223
149
  this.bankAccount.business_id = this.businessId;
224
150
  }
225
- this.existingDocuments = documents;
226
151
  this.bankAccountVerification = settings.bank_account_verification === true;
227
152
  this.platformAccountId = platform_account_id;
228
153
  }
@@ -243,11 +168,6 @@ export class BusinessBankAccountFormStep {
243
168
  const bankAccountPosted = await this.postBankAccountData();
244
169
  if (!bankAccountPosted)
245
170
  return;
246
- }
247
- const documentsUploaded = await this.postBusinessDocuments();
248
- if (!documentsUploaded)
249
- return;
250
- if (this.viewMode === 'manual') {
251
171
  this.viewMode = 'readonly';
252
172
  await this.refreshBankAccountData();
253
173
  }
@@ -311,27 +231,6 @@ export class BusinessBankAccountFormStep {
311
231
  });
312
232
  });
313
233
  }
314
- async postBusinessDocuments() {
315
- this.isLoading = true;
316
- try {
317
- const docArray = Object.values(this.documentData).flat();
318
- if (!docArray.length) {
319
- return true;
320
- }
321
- const recordsCreated = await Promise.all(docArray.map((docData) => this.postDocumentRecordData(docData))); // Create document records
322
- if (recordsCreated.includes(false)) {
323
- return false;
324
- } // Exit if document record creation fails
325
- const uploadsCompleted = await Promise.all(docArray.map((docData) => this.uploadDocument(docData))); // Upload documents to AWS presigned URLs
326
- if (uploadsCompleted.includes(false)) {
327
- return false;
328
- } // Exit if any upload fails
329
- return true;
330
- }
331
- finally {
332
- this.isLoading = false;
333
- }
334
- }
335
234
  renderBankAccountInputs(disabled) {
336
235
  const defaultValue = this.formController.getInitialValues();
337
236
  return this.country === CountryCode.CAN ? (h("bank-account-form-inputs-canada", { defaultValue: defaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: disabled })) : (h("bank-account-form-inputs", { defaultValue: defaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: disabled }));
@@ -348,14 +247,11 @@ export class BusinessBankAccountFormStep {
348
247
  renderManualEntryView() {
349
248
  return (h("div", null, this.plaidAvailable && (h("div", { class: "mb-3" }, h(Button, { type: "button", variant: "secondary", onClick: this.handleToggleToPlaidVerification, disabled: this.isLoading, part: buttonSecondary }, "Link bank account with Plaid instead"))), this.renderBankAccountInputs(false), h("div", { class: "mt-3 d-flex gap-2" }, this.showCancel && (h(Button, { variant: "secondary", type: "button", onClick: this.handleCancel, disabled: this.isLoading, part: buttonSecondary }, "Cancel")), h(Button, { variant: "primary", type: "button", onClick: this.handleSaveBankAccount, disabled: this.isLoading, isLoading: this.isLoading }, "Save Bank Account"))));
350
249
  }
351
- renderDocumentUploads() {
352
- return (h("fieldset", { class: "mt-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Document Uploads"), h("form-control-tooltip", { helpText: "One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category." })), h("hr", { class: "mt-2" }), h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles })));
353
- }
354
250
  render() {
355
251
  if (this.isLoading) {
356
252
  return h(PaymentProvisioningLoading, null);
357
253
  }
358
- return (h("form", null, h("fieldset", { class: "mb-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { class: "mt-2" }), this.viewMode === 'readonly' && this.renderReadonlyView(), this.viewMode === 'plaid' && this.renderPlaidView(), this.viewMode === 'manual' && this.renderManualEntryView()), this.viewMode !== 'plaid' && this.renderDocumentUploads()));
254
+ return (h("form", null, h("fieldset", { class: "mb-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { class: "mt-2" }), this.viewMode === 'readonly' && this.renderReadonlyView(), this.viewMode === 'plaid' && this.renderPlaidView(), this.viewMode === 'manual' && this.renderManualEntryView())));
359
255
  }
360
256
  static get is() { return "business-bank-account-form-step"; }
361
257
  static get properties() {
@@ -449,14 +345,10 @@ export class BusinessBankAccountFormStep {
449
345
  "formController": {},
450
346
  "errors": {},
451
347
  "bankAccount": {},
452
- "existingDocuments": {},
453
- "documentData": {},
454
348
  "isLoading": {},
455
349
  "viewMode": {},
456
350
  "getBusiness": {},
457
351
  "postBankAccount": {},
458
- "postDocumentRecord": {},
459
- "postDocument": {},
460
352
  "bankAccountVerification": {},
461
353
  "platformAccountId": {}
462
354
  };
@@ -85,7 +85,7 @@ export class BusinessCoreInfoFormStep {
85
85
  this.formController.validateAndSubmit(() => this.sendData(onSuccess));
86
86
  }
87
87
  get patchPayload() {
88
- let formValues = new CoreBusinessInfo(this.formController.values.getValue()).payload;
88
+ const formValues = new CoreBusinessInfo(this.formController.values.getValue()).payload;
89
89
  return formValues;
90
90
  }
91
91
  componentWillLoad() {
@@ -128,7 +128,7 @@ export class BusinessCoreInfoFormStep {
128
128
  if (this.isLoading) {
129
129
  return h(PaymentProvisioningLoading, null);
130
130
  }
131
- return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Registration", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, (!((_a = this.coreInfo) === null || _a === void 0 ? void 0 : _a.tax_id_last4) || this.isEditingTaxId) ? (h("form-control-number-masked", { name: "tax_id", label: countryLabels[this.country].taxIdLabel, defaultValue: this.isEditingTaxId ? '' : coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: '000000000', helpText: countryLabels[this.country].taxIdHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].taxIdLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_b = this.coreInfo) === null || _b === void 0 ? void 0 : _b.tax_id_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
131
+ return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Registration", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, (!((_a = this.coreInfo) === null || _a === void 0 ? void 0 : _a.tax_id_last4) || this.isEditingTaxId) ? (h("form-control-number-masked", { name: "tax_id", label: countryLabels[this.country].taxIdLabelOptional || countryLabels[this.country].taxIdLabel, defaultValue: this.isEditingTaxId ? '' : coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: '000000000', helpText: countryLabels[this.country].taxIdHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].taxIdLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_b = this.coreInfo) === null || _b === void 0 ? void 0 : _b.tax_id_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
132
132
  this.isEditingTaxId = true;
133
133
  // Clear last4-equivalent and current value if any future conditional validation depends on it
134
134
  this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { tax_id: '', tax_id_last4: null }));
@@ -92,6 +92,7 @@ export class BusinessOwnersFormStep {
92
92
  this.ownersPayload = this.ownersPayload.filter(owner => owner.id !== '');
93
93
  this.patchBusiness({
94
94
  payload: {
95
+ representative: { is_owner: true },
95
96
  owners: [{ id: this.representative.id }, ...this.ownersPayload],
96
97
  },
97
98
  onSuccess: () => {
@@ -121,6 +122,14 @@ export class BusinessOwnersFormStep {
121
122
  if (!formsValid) {
122
123
  return;
123
124
  }
125
+ if (!this.allowOptionalFields) {
126
+ const percentages = await Promise.all(this.refs.map(ref => ref.getOwnershipPercentage()));
127
+ const total = percentages.reduce((sum, p) => sum + (parseFloat(p) || 0), 0);
128
+ if (total !== 100) {
129
+ await Promise.all(this.refs.map(ref => ref.setOwnershipPercentageError('Ownership percentages must total 100%')));
130
+ return;
131
+ }
132
+ }
124
133
  const formSubmissions = this.refs.map(ref => ref.submit());
125
134
  const submissionsValid = (await Promise.all(formSubmissions)).every(result => result);
126
135
  if (!submissionsValid) {
@@ -2,7 +2,9 @@ import { h } from "@stencil/core";
2
2
  import { updateAddressFormValues, updateDateOfBirthFormValues, updateFormValues } from "../../utils/input-handlers";
3
3
  import { PHONE_MASKS, IDENTITY_MASKS } from "../../../../utils/form-input-masks";
4
4
  import { heading2, label, inputDisabled, buttonSecondary } from "../../../../styles/parts";
5
+ import { CountryCode } from "../../../../utils/country-codes";
5
6
  import { countryLabels } from "../../utils/country-config";
7
+ import { businessTitleOptions } from "../../utils/business-form-options";
6
8
  export class BusinessRepresentativeFormInputs {
7
9
  constructor() {
8
10
  this.isEditingIdentification = false;
@@ -15,14 +17,14 @@ export class BusinessRepresentativeFormInputs {
15
17
  }
16
18
  render() {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
18
- return (h("form", { key: 'ef49167cc726b3d4efa128503553a77a7627ebee' }, h("fieldset", { key: '3714ce7eab6e9cee062911564d1c2635b68dfc8b' }, h("div", { key: '4f27236b0438e29d7449bf5e9f71c00c7245effa', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'adc144da314549264571b245c5388ab56c1dbbf1', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: 'bcc76add04febe984427103a594aa63cab17bd27', helpText: "The representative for your business needs to be someone who has significant control over managing your business's finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '98bfed19989ee57e451a7005f3e60af16cc5d3b5', class: "mt-2" }), h("div", { key: '8f5e0e3deed2627ecf9f77290f268c0e2ee68bfa', class: "row gy-3" }, h("div", { key: 'b1205284a54a608b9c3b6be386e134849c9c6b25', class: "col-12 col-md-8" }, h("form-control-text", { key: '36fcd91ca263adfd9fb69dc88f15404f93a8bc13', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '879337d3c6a120f5dc9de3cd3364b34b9c4689df', class: "col-12 col-md-4" }, h("form-control-text", { key: 'ff2e4d29e76b93693735b35cbaca4416f0cd28a0', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '2a011b74b4c203ae4a309d7d76ea8fd0631a5f2c', class: "col-12 col-md-6" }, h("form-control-text", { key: '1ef20c59829ed3abe81cc53355bbafd5d4894360', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '460dad175238fdfea8c79666343943a95aac0fd5', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '7bd3ad79f6da1d33e38c2246d9c0378c2ef8b7d7', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'cda84bfc9f88a35177a42b7f9ec4c58292600c0b', class: "col-12 col-md-4" }, h("form-control-date", { key: '5ed66fabc97afc94a5839135add25dbcb5237900', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: '0e19619fd081ea9dacd0eb25388a4c7b2c993312', class: "col-12 col-md-8" }, (!((_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.ssn_last4) || this.isEditingIdentification) ? (h("form-control-number-masked", { name: "identification_number", label: countryLabels[this.country].idNumberLabel, defaultValue: this.isEditingIdentification ? '' : (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: IDENTITY_MASKS[this.country], helpText: countryLabels[this.country].identityHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].idNumberLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_h = this.representativeDefaultValue) === null || _h === void 0 ? void 0 : _h.ssn_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
20
+ return (h("form", { key: '2346f250e4e2982b5b5b2624d039f551b5b5ed4e' }, h("fieldset", { key: '7b496e6157e5eec02ef0d263c68fbd1e001c75ac' }, h("div", { key: 'b86d993c7fbee2269e48c7d4ea51826f199fecd4', class: "d-flex align-items-center gap-2" }, h("legend", { key: '2b013e6068bbbca54a0852093ab4a2fae4ce64d2', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: '01e0f1d6ba2d5ee852593f7015a3ba7e0d980df9', helpText: "The representative for your business needs to be someone who has significant control over managing your business's finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '4bec34756ec7081e01809175bc3d2b6af0532537', class: "mt-2" }), h("div", { key: '6965720fabb1f12c6bb3c5a81f74ae12f44037b2', class: "row gy-3" }, h("div", { key: 'efbb768ba1e66d5ef47f792c39a17921b40e0eba', class: "col-12 col-md-8" }, h("form-control-text", { key: '28477d3798ba7d14aee9201e84b276d8e85a21df', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '28f17ccbe4da476256acd9c5a4e78a6a641ba6e9', class: "col-12 col-md-4" }, h("form-control-select", { key: 'dae6a93a0bc057abb97024277be0f10de01514e2', name: "title", label: "Title", options: businessTitleOptions, defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '2f9a45774adaa0040df2da1a8000d1ee61e16bf5', class: "col-12 col-md-6" }, h("form-control-text", { key: '66a2a1ea8b54c03c012d76a74654ee19a9f958a7', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '3b34f0cb11d358db2220c01aac90e8b7ba3cc01b', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '52c62ec653fb917a248a302f7cb5ad46dc7bcc23', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'd287ec225af1541cca227d3b8bc54466cbb86b07', class: "col-12 col-md-4" }, h("form-control-date", { key: '7e1ff6cc40b01dc7f6ad0ad84d73c0e59eea0d6f', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: '283b09c845f1a12f4974f82a26fffbf7c5f608ba', class: "col-12 col-md-8" }, (!((_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.ssn_last4) || this.isEditingIdentification) ? (h("form-control-number-masked", { name: "identification_number", label: this.country === CountryCode.CAN ? countryLabels[this.country].idNumberLabelOptional : countryLabels[this.country].idNumberLabel, defaultValue: this.isEditingIdentification ? '' : (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: IDENTITY_MASKS[this.country], helpText: countryLabels[this.country].identityHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, this.country === CountryCode.CAN ? countryLabels[this.country].idNumberLabelOptional : countryLabels[this.country].idNumberLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_h = this.representativeDefaultValue) === null || _h === void 0 ? void 0 : _h.ssn_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
19
21
  this.isEditingIdentification = true;
20
22
  // Clear current value to force validation
21
23
  updateFormValues(this.formController, {
22
24
  identification_number: '',
23
25
  ssn_last4: null
24
26
  });
25
- } }, "Change"))))), h("div", { key: '6647390b209f5a630bf60e8952a7b0e70c92ca8a', class: "col-12" }, h("identity-address-form", { key: '9755d0450fc8d83ba0a98a304455df346ff33e7f', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
27
+ } }, "Change"))))), h("div", { key: '0a40679570df7b85faa7530797ebc21ca8794263', class: "col-12" }, h("identity-address-form", { key: '5a1590251365260413ab63ce9a417d3d71c71e84', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
26
28
  }
27
29
  static get is() { return "business-representative-form-inputs"; }
28
30
  static get properties() {
@@ -113,7 +113,7 @@ export class BusinessRepresentativeFormStep {
113
113
  });
114
114
  }
115
115
  get patchPayload() {
116
- let formValues = new Representative(this.formController.values.getValue()).payload;
116
+ const formValues = new Representative(this.formController.values.getValue()).payload;
117
117
  return { representative: formValues };
118
118
  }
119
119
  render() {