@justifi/webcomponents 6.1.0-rc.2 → 6.1.0-rc.3

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 (776) hide show
  1. package/dist/cjs/{Api-CwTLkFY4.js → Api-DqzbA2qk.js} +1 -1
  2. package/dist/cjs/{Business-DCRzZf0w.js → Business-DWHy_-z9.js} +299 -9
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  4. package/dist/cjs/{badge-BmOSt4gS.js → badge-BJVdpSU-.js} +1 -1
  5. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +132 -0
  6. package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
  7. package/dist/cjs/{business-additional-questions-schema-DNbSH3E-.js → business-additional-questions-schema-CetDMUp7.js} +27 -5
  8. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  9. package/dist/cjs/{business-form-options-CMII7nIK.js → business-form-options-e9UFw4P-.js} +1 -1
  10. package/dist/cjs/business-identity-schema-Cd0tvfJr.js +101 -0
  11. package/dist/cjs/{business.service-Dkhqyggm.js → business.service-Bv9o99Ll.js} +2 -2
  12. package/dist/cjs/{button-7c2RN2yp.js → button-_YJuE8cy.js} +1 -1
  13. package/dist/cjs/card-form.cjs.entry.js +6 -6
  14. package/dist/cjs/{check-pkg-version-DUDlLDCJ.js → check-pkg-version-CadxBsjl.js} +3 -3
  15. package/dist/cjs/{checkout.service-LwZVVgP5.js → checkout.service-dLB93w3Z.js} +2 -2
  16. package/dist/cjs/{checkout.store-C3f3E24L.js → checkout.store-DC4yVxDj.js} +2 -3
  17. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -12
  18. package/dist/cjs/{terminal-orders-list-params-state-C4c8UZtP.js → checkouts-list-params-state-ARjo40Y9.js} +1 -1
  19. package/dist/cjs/{checkouts-table-BQUhZZd_.js → checkouts-table-C102WCfy.js} +2 -2
  20. package/dist/cjs/{config-state-B_gyIchD.js → config-state-BeZM7X7J.js} +1 -1
  21. package/dist/cjs/country-config-MCOhn8o3.js +68 -0
  22. package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper.cjs.entry.js} +3 -23
  23. package/dist/cjs/{dispute.service-927Gzb0N.js → dispute.service-BmAAnNky.js} +2 -2
  24. package/dist/cjs/form-alert_5.cjs.entry.js +25 -15
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  26. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  27. package/dist/cjs/{form-control-error-text-DD0dHGu8.js → form-control-error-text-DJzNQrEz.js} +1 -1
  28. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  29. package/dist/cjs/{form-control-help-text-2QwKi78M.js → form-control-help-text-DII6UDeq.js} +1 -1
  30. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  31. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +6 -6
  32. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  33. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +119 -0
  34. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  35. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  36. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-select_3.cjs.entry.js} +25 -6
  37. package/dist/cjs/{form-input-masks-DgXd0f4V.js → form-input-masks-BnNFJ3IJ.js} +9 -4
  38. package/dist/cjs/{get-business-o5jPq_ME.js → get-business-D9ZHyPem.js} +1 -1
  39. package/dist/cjs/{get-payment-details-BSxp1HX0.js → get-payment-details-BHPHzSkH.js} +2 -2
  40. package/dist/cjs/{get-subaccounts-B31f95PR.js → get-subaccounts-Bw76aYu0.js} +3 -3
  41. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  42. package/dist/cjs/{header-1-DMsp0XM7.js → header-1-Da7oKhXY.js} +1 -1
  43. package/dist/cjs/{header-3-BSvFq_IF.js → header-3-uBM_CzcP.js} +1 -1
  44. package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
  45. package/dist/cjs/{index-Dyzl8Hn6.js → index-CaAefsWD.js} +42 -31
  46. package/dist/cjs/{index-D1Ba20gi.js → index-D-CfIyoF.js} +1 -1
  47. package/dist/cjs/{index.esm-BleZSAc0.js → index.esm-ByC0D4sJ.js} +18 -17
  48. package/dist/cjs/{input-handlers-DYl_0IwC.js → input-handlers-D6QMwPTB.js} +2 -2
  49. package/dist/cjs/{insurance-state-uWOl6jJN.js → insurance-state-KJzYGtVr.js} +2 -2
  50. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +127 -70
  51. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +23 -24
  52. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  53. package/dist/cjs/justifi-apple-pay.cjs.entry.js +9 -9
  54. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +25 -26
  55. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -12
  56. package/dist/cjs/justifi-business-form.cjs.entry.js +25 -21
  57. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +15 -7
  58. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +18 -20
  59. package/dist/cjs/justifi-checkout.cjs.entry.js +16 -15
  60. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +7 -9
  61. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -15
  62. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  63. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  64. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  65. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -11
  66. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -16
  67. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -10
  68. package/dist/cjs/justifi-order-terminals.cjs.entry.js +13 -15
  69. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +28 -19
  70. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -12
  71. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +39 -24
  72. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -11
  73. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -14
  74. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  75. package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -15
  76. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -11
  77. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -14
  78. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
  79. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -16
  80. package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -15
  81. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
  82. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -13
  83. package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
  84. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +8 -10
  85. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -13
  86. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -9
  87. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -15
  88. package/dist/cjs/loader.cjs.js +2 -2
  89. package/dist/cjs/{package-CFCy2fBx.js → package-CVxkAS_m.js} +1 -1
  90. package/dist/cjs/pagination-menu.cjs.entry.js +4 -4
  91. package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
  92. package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
  93. package/dist/cjs/{payment.service-DUq-W7tS.js → payment.service-DODmonNs.js} +2 -2
  94. package/dist/cjs/payments-list-core.cjs.entry.js +11 -13
  95. package/dist/cjs/{payments-list-params-state-C4c8UZtP.js → payments-list-params-state-ARjo40Y9.js} +1 -1
  96. package/dist/cjs/{payments-status-3iIQkoov.js → payments-status-5IzqwLep.js} +2 -2
  97. package/dist/cjs/{payments-table-BSHUQhM-.js → payments-table-BcZ6U6p8.js} +23 -3
  98. package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
  99. package/dist/cjs/{payout.service-DoKMr8Xw.js → payout.service-Do8DxBxe.js} +2 -2
  100. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -13
  101. package/dist/cjs/{payouts-list-params-state-C4c8UZtP.js → payouts-list-params-state-ARjo40Y9.js} +1 -1
  102. package/dist/cjs/{payouts-status-DoQbxIms.js → payouts-status-D38A6UrI.js} +2 -2
  103. package/dist/cjs/{payouts-table-BD_Fhz_j.js → payouts-table-Cn_cCCOY.js} +2 -2
  104. package/dist/cjs/{schema-validations-jek_iZ9W.js → schema-validations-0mjPveQ0.js} +46 -7
  105. package/dist/cjs/{skeleton-CuIMC98G.js → skeleton-DlPP4i_w.js} +1 -1
  106. package/dist/cjs/{spinner-CMZXdrPe.js → spinner-BNWG01hP.js} +1 -1
  107. package/dist/cjs/{styled-host-2KXbjOFw.js → styled-host-DSpt9LtB.js} +1 -1
  108. package/dist/cjs/{table-DlQCUVag.js → table-CAWBqvW5.js} +2 -2
  109. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  110. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -12
  111. package/dist/cjs/{checkouts-list-params-state-C4c8UZtP.js → terminal-orders-list-params-state-ARjo40Y9.js} +1 -1
  112. package/dist/cjs/{terminal-orders-table-t6XxNy_K.js → terminal-orders-table-BUA4LcEc.js} +4 -4
  113. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  114. package/dist/cjs/{terminal.service-Iyje71vN.js → terminal.service-bxQnc1JY.js} +2 -2
  115. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -12
  116. package/dist/cjs/terminals-list-params-state-ARjo40Y9.js +22 -0
  117. package/dist/cjs/{terminals-table-BTdKRiBN.js → terminals-table-C2_M7SWl.js} +2 -2
  118. package/dist/cjs/{utils-FFP5ZHyE.js → utils-C6mfHWv-.js} +1 -1
  119. package/dist/cjs/webcomponents.cjs.js +3 -3
  120. package/dist/collection/api/BankAccount.js +4 -0
  121. package/dist/collection/api/Business.js +16 -1
  122. package/dist/collection/collection-manifest.json +4 -1
  123. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +0 -1
  124. package/dist/collection/components/business-details/business-details-core.js +0 -1
  125. package/dist/collection/components/business-details/business-details.js +4 -4
  126. package/dist/collection/components/business-details/core-info-details/core-info-details.js +0 -1
  127. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +0 -1
  128. package/dist/collection/components/business-details/owner-details/owner-details.js +0 -1
  129. package/dist/collection/components/business-details/representative-details/representative-details.js +0 -1
  130. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  131. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +36 -5
  132. package/dist/collection/components/business-forms/business-form/business-form.js +13 -9
  133. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +43 -7
  134. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +29 -8
  135. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +30 -11
  136. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +39 -17
  137. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +49 -8
  138. package/dist/collection/components/business-forms/owner-form/owner-form.js +38 -14
  139. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +2 -4
  140. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +7 -7
  141. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +3 -5
  142. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +88 -0
  143. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +8 -8
  144. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +50 -0
  145. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +40 -12
  146. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +32 -7
  147. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-documents-on-file.js +2 -2
  148. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +51 -13
  149. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +32 -7
  150. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +32 -9
  151. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +32 -7
  152. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +47 -9
  153. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +35 -8
  154. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +32 -7
  155. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +101 -0
  156. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +15 -16
  157. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +37 -14
  158. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +32 -7
  159. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +46 -29
  160. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +9 -11
  161. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +41 -15
  162. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +7 -7
  163. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +7 -7
  164. package/dist/collection/components/business-forms/payment-provisioning/test/mockBusiness.js +52 -0
  165. package/dist/collection/components/business-forms/schemas/business-address-schema.js +41 -19
  166. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +74 -39
  167. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +27 -4
  168. package/dist/collection/components/business-forms/schemas/business-form-schema.js +7 -4
  169. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +53 -24
  170. package/dist/collection/components/business-forms/schemas/schema-validations.js +41 -4
  171. package/dist/collection/components/business-forms/utils/country-config.js +47 -0
  172. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  173. package/dist/collection/components/checkout/billing-form/billing-form.js +8 -8
  174. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  175. package/dist/collection/components/checkout/checkout.js +17 -16
  176. package/dist/collection/components/checkout/save-new-payment-method.js +2 -2
  177. package/dist/collection/components/checkout/saved-payment-method.js +3 -4
  178. package/dist/collection/components/checkouts-list/checkouts-list-core.js +3 -5
  179. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +5 -5
  180. package/dist/collection/components/checkouts-list/checkouts-list.js +6 -6
  181. package/dist/collection/components/config-provider/config-provider.js +3 -3
  182. package/dist/collection/components/dispute-management/dispute-management-core.js +5 -6
  183. package/dist/collection/components/dispute-management/dispute-management.js +5 -5
  184. package/dist/collection/components/dispute-management/dispute-notification.js +5 -6
  185. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +4 -4
  186. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +4 -4
  187. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +4 -4
  188. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +2 -5
  189. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +6 -7
  190. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +4 -4
  191. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +4 -4
  192. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +4 -4
  193. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +4 -4
  194. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +4 -4
  195. package/dist/collection/components/filters/table-filters-menu.js +3 -4
  196. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -2
  197. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +4 -4
  198. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +26 -26
  199. package/dist/collection/components/modular-checkout/modular-checkout.js +5 -5
  200. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +10 -10
  201. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +3 -3
  202. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  203. package/dist/collection/components/modular-checkout/sub-components/billing-form-full.js +2 -2
  204. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +3 -3
  205. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  206. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +9 -10
  207. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +1 -1
  208. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  209. package/dist/collection/components/order-terminals/order-terminals.js +9 -9
  210. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +10 -10
  211. package/dist/collection/components/payment-details/payment-details-core.js +8 -9
  212. package/dist/collection/components/payment-details/payment-details.js +4 -4
  213. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +6 -6
  214. package/dist/collection/components/payments-list/payments-list-core.js +3 -4
  215. package/dist/collection/components/payments-list/payments-list-filters.js +12 -12
  216. package/dist/collection/components/payments-list/payments-list.js +6 -6
  217. package/dist/collection/components/payments-list/payments-table.js +21 -1
  218. package/dist/collection/components/payout-details/payout-details-core.js +3 -5
  219. package/dist/collection/components/payout-details/payout-details.js +4 -4
  220. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +6 -6
  221. package/dist/collection/components/payouts-list/payouts-list-core.js +3 -6
  222. package/dist/collection/components/payouts-list/payouts-list-filters.js +6 -6
  223. package/dist/collection/components/payouts-list/payouts-list.js +6 -6
  224. package/dist/collection/components/refund-payment/refund-payment.js +7 -7
  225. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -4
  226. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +10 -10
  227. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +6 -6
  228. package/dist/collection/components/terminals-list/terminals-list-core.js +3 -5
  229. package/dist/collection/components/terminals-list/terminals-list-filters.js +7 -7
  230. package/dist/collection/components/terminals-list/terminals-list.js +6 -6
  231. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +20 -20
  232. package/dist/collection/store/checkout.store.js +1 -2
  233. package/dist/collection/ui-components/custom-popper/custom-popper.js +5 -7
  234. package/dist/collection/ui-components/details/details.js +2 -2
  235. package/dist/collection/ui-components/form/form-control-checkbox.js +14 -15
  236. package/dist/collection/ui-components/form/form-control-date.js +17 -18
  237. package/dist/collection/ui-components/form/form-control-file-v2.js +13 -14
  238. package/dist/collection/ui-components/form/form-control-file.js +16 -17
  239. package/dist/collection/ui-components/form/form-control-monetary.js +15 -17
  240. package/dist/collection/ui-components/form/form-control-number-masked.js +16 -17
  241. package/dist/collection/ui-components/form/form-control-number.js +14 -15
  242. package/dist/collection/ui-components/form/form-control-radio.js +16 -17
  243. package/dist/collection/ui-components/form/form-control-select.js +14 -16
  244. package/dist/collection/ui-components/form/form-control-text.js +16 -18
  245. package/dist/collection/ui-components/form/form-control-textarea.js +16 -18
  246. package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +4 -4
  247. package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +4 -4
  248. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +2 -2
  249. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  250. package/dist/collection/ui-components/form/iframe-input.js +9 -9
  251. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -5
  252. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +13 -14
  253. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +6 -6
  254. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +10 -10
  255. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +9 -10
  256. package/dist/collection/utils/country-codes.js +5 -0
  257. package/dist/collection/utils/form-input-masks.js +8 -0
  258. package/dist/collection/utils/province-options.js +20 -0
  259. package/dist/docs.json +1118 -141
  260. package/dist/esm/{Api-D4tj-h4P.js → Api-DLf3ihCB.js} +2 -2
  261. package/dist/esm/{Business-BCoP0TAV.js → Business-B5rtFhtR.js} +290 -3
  262. package/dist/esm/{Refund-Bc5By0lb.js → Refund-BeI1WGfx.js} +1 -1
  263. package/dist/esm/additional-questions-details_5.entry.js +4 -4
  264. package/dist/esm/{badge-ChwzCNAF.js → badge-CkfrkCoy.js} +2 -2
  265. package/dist/esm/bank-account-document-form-inputs_6.entry.js +125 -0
  266. package/dist/esm/bank-account-form.entry.js +8 -8
  267. package/dist/esm/{business-additional-questions-schema-C6NRHWEL.js → business-additional-questions-schema-DSvdNuI1.js} +26 -5
  268. package/dist/esm/business-details-core.entry.js +5 -5
  269. package/dist/esm/{business-form-options-CgssATyg.js → business-form-options-D6s5H4RI.js} +2 -2
  270. package/dist/esm/business-identity-schema-mN4VhA1v.js +94 -0
  271. package/dist/esm/{business.service-CsbtEDNi.js → business.service-BIALik8Z.js} +3 -3
  272. package/dist/esm/{button-SAIS_5os.js → button-CuZAKl_x.js} +2 -2
  273. package/dist/esm/card-form.entry.js +8 -8
  274. package/dist/esm/{check-pkg-version-B_Pl1uAE.js → check-pkg-version-Bk5bgulF.js} +4 -4
  275. package/dist/esm/{checkout.service-BCkQ9pOA.js → checkout.service-DZDZBIGQ.js} +3 -3
  276. package/dist/esm/{checkout.store-DBvS7cVB.js → checkout.store-DwJGKabu.js} +2 -3
  277. package/dist/esm/checkouts-list-core.entry.js +13 -15
  278. package/dist/esm/{checkouts-list-params-state-C2_GlMKR.js → checkouts-list-params-state-BY5996_y.js} +1 -1
  279. package/dist/esm/{checkouts-table-CItEo0DU.js → checkouts-table-59DpP7zM.js} +4 -4
  280. package/dist/esm/{config-state-Blo0ywwc.js → config-state-C83RkI9h.js} +1 -1
  281. package/dist/esm/country-config-BQ4D46Lb.js +64 -0
  282. package/dist/esm/{custom-popper_2.entry.js → custom-popper.entry.js} +4 -23
  283. package/dist/esm/{dispute.service-CyLtJREK.js → dispute.service-ByJy64X7.js} +3 -3
  284. package/dist/esm/form-alert_5.entry.js +25 -15
  285. package/dist/esm/form-control-checkbox.entry.js +6 -6
  286. package/dist/esm/form-control-date.entry.js +5 -5
  287. package/dist/esm/{form-control-error-text-IXJJ4JpV.js → form-control-error-text-CjrxZorl.js} +2 -2
  288. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  289. package/dist/esm/{form-control-help-text-CuhIsM3v.js → form-control-help-text-CMUgRhUf.js} +2 -2
  290. package/dist/esm/form-control-help-text.entry.js +1 -1
  291. package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
  292. package/dist/esm/form-control-monetary.entry.js +7 -7
  293. package/dist/esm/form-control-number-masked_3.entry.js +115 -0
  294. package/dist/esm/form-control-number.entry.js +6 -6
  295. package/dist/esm/form-control-radio.entry.js +4 -4
  296. package/dist/esm/{form-control-select_2.entry.js → form-control-select_3.entry.js} +26 -8
  297. package/dist/esm/{form-input-masks-B-iV5cYd.js → form-input-masks-CVaOFfrI.js} +9 -3
  298. package/dist/esm/{get-business-Crb6P-iI.js → get-business-Xt7B5dSo.js} +1 -1
  299. package/dist/esm/{get-payment-details-BuT0QNOo.js → get-payment-details-B00HoaFm.js} +3 -3
  300. package/dist/esm/{get-subaccounts-VjY6-x_9.js → get-subaccounts-C_yzcZq_.js} +4 -4
  301. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  302. package/dist/esm/{header-1-zXsamUS3.js → header-1-BukynbFR.js} +2 -2
  303. package/dist/esm/{header-3-DVtaUAlf.js → header-3-D87MAyMK.js} +2 -2
  304. package/dist/esm/hidden-input_2.entry.js +9 -9
  305. package/dist/esm/{index-ZfXl6Xrm.js → index-NOsb-hYl.js} +1 -1
  306. package/dist/esm/{index-qipqIMyC.js → index-_b8l4IX7.js} +42 -31
  307. package/dist/esm/{index.esm-cYgKOXtz.js → index.esm-IWS0494Y.js} +18 -17
  308. package/dist/esm/{input-handlers-CX6mSvOM.js → input-handlers-D3y0TzH9.js} +1 -1
  309. package/dist/esm/{insurance-state-Dh9f36Qh.js → insurance-state-BjY1QRXI.js} +3 -3
  310. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +130 -73
  311. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +26 -27
  312. package/dist/esm/justifi-additional-statement_8.entry.js +11 -11
  313. package/dist/esm/justifi-apple-pay.entry.js +11 -11
  314. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +27 -28
  315. package/dist/esm/justifi-business-details.entry.js +13 -15
  316. package/dist/esm/justifi-business-form.entry.js +28 -24
  317. package/dist/esm/justifi-business-representative-form-inputs.entry.js +16 -8
  318. package/dist/esm/justifi-checkout-summary_7.entry.js +21 -23
  319. package/dist/esm/justifi-checkout.entry.js +19 -18
  320. package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -12
  321. package/dist/esm/justifi-checkouts-list.entry.js +16 -18
  322. package/dist/esm/justifi-config-provider.entry.js +3 -3
  323. package/dist/esm/justifi-details.entry.js +3 -3
  324. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  325. package/dist/esm/justifi-dispute-management.entry.js +11 -13
  326. package/dist/esm/justifi-dispute-notification_3.entry.js +17 -19
  327. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -13
  328. package/dist/esm/justifi-order-terminals.entry.js +16 -18
  329. package/dist/esm/justifi-owner-form_3.entry.js +31 -22
  330. package/dist/esm/justifi-payment-details.entry.js +13 -15
  331. package/dist/esm/justifi-payment-provisioning-core.entry.js +40 -25
  332. package/dist/esm/justifi-payment-provisioning.entry.js +11 -13
  333. package/dist/esm/justifi-payment-transactions-list.entry.js +15 -17
  334. package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
  335. package/dist/esm/justifi-payments-list.entry.js +16 -18
  336. package/dist/esm/justifi-payout-details.entry.js +12 -14
  337. package/dist/esm/justifi-payout-transactions-list.entry.js +15 -17
  338. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  339. package/dist/esm/justifi-payouts-list.entry.js +17 -19
  340. package/dist/esm/justifi-refund-payment.entry.js +16 -18
  341. package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
  342. package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -16
  343. package/dist/esm/justifi-skeleton.entry.js +5 -5
  344. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +11 -13
  345. package/dist/esm/justifi-terminal-orders-list.entry.js +14 -16
  346. package/dist/esm/justifi-terminals-list-filters.entry.js +10 -12
  347. package/dist/esm/justifi-terminals-list.entry.js +16 -18
  348. package/dist/esm/loader.js +3 -3
  349. package/dist/esm/{package-pXjOPQhG.js → package-BRhnhmpB.js} +1 -1
  350. package/dist/esm/pagination-menu.entry.js +5 -5
  351. package/dist/esm/{parts-RvUQ__Pq.js → parts-CA_TyBed.js} +1 -1
  352. package/dist/esm/payment-details-core.entry.js +16 -16
  353. package/dist/esm/payment-method-option.entry.js +4 -4
  354. package/dist/esm/{payment.service-QJEmd6Nl.js → payment.service-B_NytmNz.js} +3 -3
  355. package/dist/esm/payments-list-core.entry.js +14 -16
  356. package/dist/esm/{payments-list-params-state-C2_GlMKR.js → payments-list-params-state-BY5996_y.js} +1 -1
  357. package/dist/esm/{payments-status-DDafc8Yr.js → payments-status-BWv1l1-e.js} +2 -2
  358. package/dist/esm/{payments-table-De3Jb6rY.js → payments-table-BSk36N1O.js} +25 -5
  359. package/dist/esm/payout-details-core.entry.js +12 -12
  360. package/dist/esm/{payout.service-XxyEr0rj.js → payout.service-BJQVlc_Z.js} +3 -3
  361. package/dist/esm/payouts-list-core.entry.js +14 -16
  362. package/dist/esm/{payouts-list-params-state-C2_GlMKR.js → payouts-list-params-state-BY5996_y.js} +1 -1
  363. package/dist/esm/{payouts-status-u1eSRz3Q.js → payouts-status-BujJlH_r.js} +2 -2
  364. package/dist/esm/{payouts-table-BO-MCzXj.js → payouts-table-5N7OylTW.js} +4 -4
  365. package/dist/esm/{schema-validations-DcR1ujuX.js → schema-validations-BFoU1cR8.js} +42 -7
  366. package/dist/esm/{skeleton-DtpkgjZ6.js → skeleton-C161KeYG.js} +2 -2
  367. package/dist/esm/{spinner-CIXUVK4F.js → spinner-UiInIFXW.js} +2 -2
  368. package/dist/esm/{styled-host-CbizlfAU.js → styled-host-hSGxxyFZ.js} +1 -1
  369. package/dist/esm/{table-DcRHK_sm.js → table-9ewYPAZH.js} +3 -3
  370. package/dist/esm/table-filters-menu.entry.js +4 -4
  371. package/dist/esm/terminal-orders-list-core.entry.js +13 -15
  372. package/dist/esm/{terminal-orders-list-params-state-C2_GlMKR.js → terminal-orders-list-params-state-BY5996_y.js} +1 -1
  373. package/dist/esm/{terminal-orders-table-9nsnrAq8.js → terminal-orders-table-BcziGGSF.js} +7 -7
  374. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  375. package/dist/esm/{terminal.service-D2oETGnk.js → terminal.service-B9MOFa2c.js} +3 -3
  376. package/dist/esm/terminals-list-core.entry.js +13 -15
  377. package/dist/esm/terminals-list-params-state-BY5996_y.js +16 -0
  378. package/dist/esm/{terminals-table-C6NO2m-t.js → terminals-table-BoFlvdHS.js} +4 -4
  379. package/dist/esm/{utils-BscIVFn8.js → utils-DeZftIgK.js} +1 -1
  380. package/dist/esm/{utils-_ckvHjSW.js → utils-fntGABrK.js} +2 -2
  381. package/dist/esm/webcomponents.js +4 -4
  382. package/dist/module/Business.js +290 -3
  383. package/dist/module/additional-questions-details2.js +1 -1
  384. package/dist/module/additional-statement.js +2 -2
  385. package/dist/module/bank-account-billing-form-simple.js +1 -1
  386. package/dist/module/bank-account-document-inputs.js +3 -3
  387. package/dist/module/bank-account-form-inputs-canada.d.ts +11 -0
  388. package/dist/module/bank-account-form-inputs-canada.js +6 -0
  389. package/dist/module/bank-account-form-inputs-canada2.js +68 -0
  390. package/dist/module/bank-account-form-inputs2.js +10 -3
  391. package/dist/module/bank-account-form.js +2 -2
  392. package/dist/module/bank-account-read-only-value.d.ts +11 -0
  393. package/dist/module/bank-account-read-only-value.js +6 -0
  394. package/dist/module/bank-account-read-only-value2.js +33 -0
  395. package/dist/module/bank-account.js +2 -2
  396. package/dist/module/billing-form-full.js +1 -1
  397. package/dist/module/business-additional-questions-form-step-core.js +2 -2
  398. package/dist/module/business-additional-questions-form-step.js +1 -1
  399. package/dist/module/business-address-schema.js +40 -20
  400. package/dist/module/business-bank-account-form-step-core.js +104 -51
  401. package/dist/module/business-bank-account-form-step.js +18 -5
  402. package/dist/module/business-core-info-form-step-core.js +24 -9
  403. package/dist/module/business-core-info-form-step.js +2 -1
  404. package/dist/module/business-core-info-schema.js +26 -5
  405. package/dist/module/business-core-info.js +13 -5
  406. package/dist/module/business-details-core2.js +1 -1
  407. package/dist/module/business-identity-schema.js +52 -25
  408. package/dist/module/business-owners-form-step-core.js +22 -15
  409. package/dist/module/business-owners-form-step.js +22 -15
  410. package/dist/module/business-representative-form-inputs.js +34 -17
  411. package/dist/module/business-representative-form-step-core.js +31 -20
  412. package/dist/module/business-representative-form-step.js +24 -17
  413. package/dist/module/business-representative.js +36 -18
  414. package/dist/module/business-terms-conditions-form-step.js +1 -1
  415. package/dist/module/button.js +1 -1
  416. package/dist/module/cancellation-policy.js +2 -2
  417. package/dist/module/card-billing-form-simple.js +1 -1
  418. package/dist/module/card-form.js +2 -2
  419. package/dist/module/card-form2.js +2 -2
  420. package/dist/module/checkout.store.js +1 -2
  421. package/dist/module/checkouts-list-core2.js +3 -3
  422. package/dist/module/country-config.js +64 -0
  423. package/dist/module/custom-popper2.js +3 -3
  424. package/dist/module/customer-details.js +2 -2
  425. package/dist/module/dispute-management-core.js +2 -2
  426. package/dist/module/dispute-notification.js +2 -2
  427. package/dist/module/dispute-response-core.js +5 -5
  428. package/dist/module/dispute-response.js +2 -2
  429. package/dist/module/duplicate-charge.js +2 -2
  430. package/dist/module/electronic-evidence.js +2 -2
  431. package/dist/module/form-address-fields.js +65 -0
  432. package/dist/module/form-control-checkbox2.js +3 -3
  433. package/dist/module/form-control-date2.js +3 -3
  434. package/dist/module/form-control-file-v22.js +2 -2
  435. package/dist/module/form-control-file2.js +3 -3
  436. package/dist/module/form-control-monetary-provisioning2.js +3 -3
  437. package/dist/module/form-control-monetary2.js +4 -4
  438. package/dist/module/form-control-number-masked2.js +3 -3
  439. package/dist/module/form-control-number.js +3 -3
  440. package/dist/module/form-control-radio2.js +3 -3
  441. package/dist/module/form-control-select2.js +3 -3
  442. package/dist/module/form-control-text2.js +4 -4
  443. package/dist/module/form-control-textarea2.js +4 -4
  444. package/dist/module/form-input-masks.js +9 -3
  445. package/dist/module/form.js +18 -17
  446. package/dist/module/get-business.js +1 -1
  447. package/dist/module/gross-payment-chart-core2.js +2 -2
  448. package/dist/module/hidden-input2.js +1 -1
  449. package/dist/module/identity-address-form.js +17 -15
  450. package/dist/module/iframe-input2.js +3 -3
  451. package/dist/module/input-handlers.js +1 -1
  452. package/dist/module/justifi-apple-pay.js +2 -2
  453. package/dist/module/justifi-business-form.js +41 -29
  454. package/dist/module/justifi-button2.js +2 -2
  455. package/dist/module/justifi-checkout.js +7 -5
  456. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  457. package/dist/module/justifi-checkouts-list.js +1 -1
  458. package/dist/module/justifi-dispute-management.js +1 -1
  459. package/dist/module/justifi-form-address-fields.d.ts +11 -0
  460. package/dist/module/justifi-form-address-fields.js +6 -0
  461. package/dist/module/justifi-header2.js +1 -1
  462. package/dist/module/justifi-order-terminals.js +3 -3
  463. package/dist/module/justifi-payment-provisioning.js +67 -49
  464. package/dist/module/justifi-payment-transactions-list.js +1 -1
  465. package/dist/module/justifi-payments-list-filters.js +2 -2
  466. package/dist/module/justifi-payments-list.js +1 -1
  467. package/dist/module/justifi-payout-transactions-list.js +1 -1
  468. package/dist/module/justifi-payouts-list-filters.js +2 -2
  469. package/dist/module/justifi-payouts-list.js +1 -1
  470. package/dist/module/justifi-saved-payment-method.js +2 -2
  471. package/dist/module/justifi-skeleton.js +2 -2
  472. package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
  473. package/dist/module/justifi-terminal-orders-list.js +1 -1
  474. package/dist/module/justifi-terminals-list-filters.js +1 -1
  475. package/dist/module/justifi-terminals-list.js +1 -1
  476. package/dist/module/legal-address-details2.js +1 -1
  477. package/dist/module/legal-address-form-step-core.js +28 -21
  478. package/dist/module/legal-address-form-step.js +16 -9
  479. package/dist/module/legal-address-form.js +17 -14
  480. package/dist/module/modular-checkout.js +1 -1
  481. package/dist/module/owner-form-core2.js +27 -19
  482. package/dist/module/owner-form-inputs2.js +34 -15
  483. package/dist/module/owner-form.js +21 -14
  484. package/dist/module/package.js +1 -1
  485. package/dist/module/pagination-menu2.js +3 -3
  486. package/dist/module/parts.js +1 -1
  487. package/dist/module/payment-details-core2.js +9 -9
  488. package/dist/module/payment-method-option.js +2 -2
  489. package/dist/module/payment-provisioning-core.js +106 -71
  490. package/dist/module/payment-provisioning-form-buttons.js +3 -3
  491. package/dist/module/payment-provisioning-form-steps.js +76 -55
  492. package/dist/module/payments-list-core2.js +23 -3
  493. package/dist/module/payout-details-core2.js +5 -5
  494. package/dist/module/payouts-list-core2.js +4 -4
  495. package/dist/module/product-or-service.js +2 -2
  496. package/dist/module/refund-policy.js +2 -2
  497. package/dist/module/save-new-payment-method.js +1 -1
  498. package/dist/module/schema-validations.js +41 -6
  499. package/dist/module/sezzle-payment-method.js +1 -1
  500. package/dist/module/shipping-details.js +2 -2
  501. package/dist/module/summary.js +1 -1
  502. package/dist/module/table-filters-menu2.js +2 -2
  503. package/dist/module/terminal-orders-list-core2.js +2 -2
  504. package/dist/module/terminal-quantity-selector2.js +2 -2
  505. package/dist/module/terminals-list-core2.js +3 -3
  506. package/dist/module/tokenize-payment-method.js +1 -1
  507. package/dist/types/api/BankAccount.d.ts +6 -0
  508. package/dist/types/api/Business.d.ts +9 -0
  509. package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +3 -0
  510. package/dist/types/components/business-forms/business-form/business-form.d.ts +2 -0
  511. package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +4 -1
  512. package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +2 -0
  513. package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +2 -0
  514. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
  515. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +3 -0
  516. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  517. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.d.ts +7 -0
  518. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.d.ts +5 -0
  519. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +5 -0
  520. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
  521. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -0
  522. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -0
  523. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -0
  524. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -0
  525. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +3 -0
  526. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -0
  527. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -0
  528. package/dist/types/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.d.ts +8 -0
  529. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -0
  530. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -0
  531. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +4 -2
  532. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +2 -0
  533. package/dist/types/components/business-forms/payment-provisioning/test/mockBusiness.d.ts +12 -0
  534. package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +54 -2
  535. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +14 -16
  536. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +67 -3
  537. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +164 -6
  538. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +122 -2
  539. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +5 -0
  540. package/dist/types/components/payments-list/payments-table.d.ts +5 -2
  541. package/dist/types/components.d.ts +111 -0
  542. package/dist/types/stencil-public-runtime.d.ts +22 -6
  543. package/dist/types/store/checkout.store.d.ts +0 -1
  544. package/dist/types/utils/country-codes.d.ts +4 -0
  545. package/dist/types/utils/form-input-masks.d.ts +1 -0
  546. package/dist/types/utils/province-options.d.ts +5 -0
  547. package/dist/webcomponents/p-0254c06c.entry.js +1 -0
  548. package/dist/webcomponents/p-047fe97f.entry.js +1 -0
  549. package/dist/webcomponents/p-04ca6ff0.entry.js +1 -0
  550. package/dist/webcomponents/p-09d53b03.entry.js +1 -0
  551. package/dist/webcomponents/p-0c5e2fed.entry.js +1 -0
  552. package/dist/webcomponents/p-0ea48603.entry.js +1 -0
  553. package/dist/webcomponents/p-17e9d5c0.entry.js +1 -0
  554. package/dist/webcomponents/p-1ab4d6aa.entry.js +1 -0
  555. package/dist/webcomponents/p-1cf42bc9.entry.js +1 -0
  556. package/dist/webcomponents/p-1e7f4b4f.entry.js +1 -0
  557. package/dist/webcomponents/{p-27fc3ef0.entry.js → p-22defde6.entry.js} +4 -4
  558. package/dist/webcomponents/{p-7c5cd118.entry.js → p-242208d9.entry.js} +1 -1
  559. package/dist/webcomponents/p-31ac0c3d.entry.js +1 -0
  560. package/dist/webcomponents/p-36e21b78.entry.js +1 -0
  561. package/dist/webcomponents/p-3a77a97c.entry.js +1 -0
  562. package/dist/webcomponents/p-40938820.entry.js +1 -0
  563. package/dist/webcomponents/p-40dc0c3c.entry.js +1 -0
  564. package/dist/webcomponents/p-42763479.entry.js +1 -0
  565. package/dist/webcomponents/p-430203b0.entry.js +1 -0
  566. package/dist/webcomponents/p-46d2d042.entry.js +1 -0
  567. package/dist/webcomponents/p-485516a1.entry.js +1 -0
  568. package/dist/webcomponents/p-4fb58ee6.entry.js +1 -0
  569. package/dist/webcomponents/p-54995a3d.entry.js +1 -0
  570. package/dist/webcomponents/p-56617fdd.entry.js +1 -0
  571. package/dist/webcomponents/p-592a45f6.entry.js +1 -0
  572. package/dist/webcomponents/p-5a044ca5.entry.js +1 -0
  573. package/dist/webcomponents/p-5ec18584.entry.js +1 -0
  574. package/dist/webcomponents/p-6122dc79.entry.js +1 -0
  575. package/dist/webcomponents/p-62858ba5.entry.js +1 -0
  576. package/dist/webcomponents/p-62b5e6cf.entry.js +1 -0
  577. package/dist/webcomponents/p-67dab4d9.entry.js +1 -0
  578. package/dist/webcomponents/p-6b791b1d.entry.js +1 -0
  579. package/dist/webcomponents/{p-a71a5e64.entry.js → p-6ea75d39.entry.js} +1 -1
  580. package/dist/webcomponents/p-6ebf8f11.entry.js +1 -0
  581. package/dist/webcomponents/p-6fdac295.entry.js +1 -0
  582. package/dist/webcomponents/p-724cf90f.entry.js +1 -0
  583. package/dist/webcomponents/p-7ecca5fe.entry.js +1 -0
  584. package/dist/webcomponents/p-7ecf9bd0.entry.js +1 -0
  585. package/dist/webcomponents/p-850dd606.entry.js +1 -0
  586. package/dist/webcomponents/p-85af9d78.entry.js +1 -0
  587. package/dist/webcomponents/p-931003fc.entry.js +1 -0
  588. package/dist/webcomponents/p-9367e7e6.entry.js +1 -0
  589. package/dist/webcomponents/p-9c114674.entry.js +1 -0
  590. package/dist/webcomponents/p-9c267692.entry.js +1 -0
  591. package/dist/webcomponents/p-B5rtFhtR.js +1 -0
  592. package/dist/webcomponents/{p-c4Mh3ZZ_.js → p-BPDMo6us.js} +1 -1
  593. package/dist/webcomponents/p-BRhnhmpB.js +1 -0
  594. package/dist/webcomponents/{p-BB5-CJF-.js → p-BaM0JBLn.js} +1 -1
  595. package/dist/webcomponents/{p-CaxjN6Uo.js → p-BdREtifE.js} +1 -1
  596. package/dist/webcomponents/p-BgFM_jvF.js +1 -0
  597. package/dist/webcomponents/p-BqbXuOZP.js +1 -0
  598. package/dist/webcomponents/p-BwpdCtUc.js +1 -0
  599. package/dist/webcomponents/p-C6g4MbnB.js +1 -0
  600. package/dist/webcomponents/{p-1ydcg9ti.js → p-C77ElQ41.js} +1 -1
  601. package/dist/webcomponents/{p-RvUQ__Pq.js → p-CA_TyBed.js} +1 -1
  602. package/dist/webcomponents/p-CE-MNrID.js +1 -0
  603. package/dist/webcomponents/p-CMpATPXy.js +1 -0
  604. package/dist/webcomponents/{p-yH3TC3ZQ.js → p-CPpUGsw5.js} +1 -1
  605. package/dist/webcomponents/p-CQUZeo9r.js +1 -0
  606. package/dist/webcomponents/p-CSeo7WDO.js +1 -0
  607. package/dist/webcomponents/p-CTJ3moi4.js +1 -0
  608. package/dist/webcomponents/p-CVaOFfrI.js +1 -0
  609. package/dist/webcomponents/p-CYNcSTQA.js +1 -0
  610. package/dist/webcomponents/p-CevVA9qy.js +1 -0
  611. package/dist/webcomponents/p-CkiX8OGy.js +1 -0
  612. package/dist/webcomponents/{p-D--yCspA.js → p-CtWnJFtW.js} +1 -1
  613. package/dist/webcomponents/p-CycBoHSW.js +1 -0
  614. package/dist/webcomponents/p-D-RVXHwG.js +1 -0
  615. package/dist/webcomponents/{p-BIPdn2VU.js → p-D1Na2I0C.js} +1 -1
  616. package/dist/webcomponents/{p-BdLLGV9t.js → p-D2hzOOMf.js} +1 -1
  617. package/dist/webcomponents/p-D5lmImiz.js +1 -0
  618. package/dist/webcomponents/p-DMf85Fkr.js +1 -0
  619. package/dist/webcomponents/p-DNPS-Ypi.js +1 -0
  620. package/dist/webcomponents/p-DQ5V5-Jy.js +1 -0
  621. package/dist/webcomponents/{p-CLQx9p9q.js → p-DTwFW2k_.js} +1 -1
  622. package/dist/webcomponents/{p-BZ7C9duj.js → p-DWGKeoot.js} +1 -1
  623. package/dist/webcomponents/p-DapORSs4.js +1 -0
  624. package/dist/webcomponents/p-DcPNd9_D.js +1 -0
  625. package/dist/webcomponents/p-DfKxeSrC.js +1 -0
  626. package/dist/webcomponents/{p-CR9D6mKt.js → p-DiJD6Iqx.js} +1 -1
  627. package/dist/webcomponents/{p-D-JYHdJ7.js → p-Dkujm7_O.js} +1 -1
  628. package/dist/webcomponents/p-Dv1Fyrn3.js +1 -0
  629. package/dist/webcomponents/p-DxVCqvBt.js +1 -0
  630. package/dist/webcomponents/p-DzWLLt4t.js +1 -0
  631. package/dist/webcomponents/{p-CzPUMw00.js → p-JSXyHheQ.js} +1 -1
  632. package/dist/webcomponents/p-LO0pl3n2.js +1 -0
  633. package/dist/webcomponents/{p-BUa0YOaw.js → p-M5r2kSbf.js} +1 -1
  634. package/dist/webcomponents/{p-C_3N7nqh.js → p-PdQT2QcR.js} +1 -1
  635. package/dist/webcomponents/p-_b8l4IX7.js +2 -0
  636. package/dist/webcomponents/p-a2817869.entry.js +1 -0
  637. package/dist/webcomponents/p-a291a90c.entry.js +1 -0
  638. package/dist/webcomponents/p-b0bc03e6.entry.js +1 -0
  639. package/dist/webcomponents/{p-1b7926f6.entry.js → p-b17cb15d.entry.js} +1 -1
  640. package/dist/webcomponents/p-b46fe458.entry.js +1 -0
  641. package/dist/webcomponents/{p-3d37045d.entry.js → p-b59221a9.entry.js} +1 -1
  642. package/dist/webcomponents/{p-d34befd7.entry.js → p-c1f10a84.entry.js} +1 -1
  643. package/dist/webcomponents/p-c2cb70c8.entry.js +1 -0
  644. package/dist/webcomponents/{p-2abfee08.entry.js → p-c540fe9d.entry.js} +1 -1
  645. package/dist/webcomponents/{p-8975bf93.entry.js → p-c6093716.entry.js} +1 -1
  646. package/dist/webcomponents/p-c6e43493.entry.js +1 -0
  647. package/dist/webcomponents/{p-0801324e.entry.js → p-c7390115.entry.js} +1 -1
  648. package/dist/webcomponents/p-c780cc91.entry.js +1 -0
  649. package/dist/webcomponents/p-c9598246.entry.js +1 -0
  650. package/dist/webcomponents/p-c972a599.entry.js +1 -0
  651. package/dist/webcomponents/p-cc1d8649.entry.js +1 -0
  652. package/dist/webcomponents/p-ce4895ca.entry.js +1 -0
  653. package/dist/webcomponents/p-ce67282b.entry.js +1 -0
  654. package/dist/webcomponents/p-cef5c6e9.entry.js +1 -0
  655. package/dist/webcomponents/p-d21fa0c9.entry.js +1 -0
  656. package/dist/webcomponents/p-d236f152.entry.js +1 -0
  657. package/dist/webcomponents/p-d6ac11fc.entry.js +1 -0
  658. package/dist/webcomponents/p-e55ce6ad.entry.js +1 -0
  659. package/dist/webcomponents/p-f02bd076.entry.js +1 -0
  660. package/dist/webcomponents/{p-fUtq2xDs.js → p-fVyCeQNq.js} +1 -1
  661. package/dist/webcomponents/{p-DyOgQlh2.js → p-g2ubqhtv.js} +1 -1
  662. package/dist/webcomponents/{p-DsAwPf2y.js → p-hj8k0lRi.js} +1 -1
  663. package/dist/webcomponents/p-lPeK9y_X.js +1 -0
  664. package/dist/webcomponents/p-qUCDGWNE.js +1 -0
  665. package/dist/webcomponents/p-sCHf--Vc.js +1 -0
  666. package/dist/webcomponents/{p-BHf9IqGw.js → p-xWrhxNNk.js} +1 -1
  667. package/dist/webcomponents/webcomponents.esm.js +1 -1
  668. package/package.json +1 -1
  669. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +0 -112
  670. package/dist/cjs/business-identity-schema-CclzWSOn.js +0 -51
  671. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +0 -107
  672. package/dist/cjs/helpers-B5OCqlIM.js +0 -35
  673. package/dist/cjs/state-options-CIT9xdTz.js +0 -246
  674. package/dist/cjs/terminals-list-params-state-C4c8UZtP.js +0 -22
  675. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +0 -125
  676. package/dist/esm/bank-account-document-form-inputs_4.entry.js +0 -107
  677. package/dist/esm/business-identity-schema-D8n5dyLX.js +0 -48
  678. package/dist/esm/form-control-number-masked_2.entry.js +0 -104
  679. package/dist/esm/helpers-Mu7LQT-w.js +0 -29
  680. package/dist/esm/state-options-BX8GieXu.js +0 -244
  681. package/dist/esm/terminals-list-params-state-C2_GlMKR.js +0 -16
  682. package/dist/module/helpers.js +0 -29
  683. package/dist/module/state-options.js +0 -244
  684. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +0 -1
  685. package/dist/webcomponents/p-06b6b61e.entry.js +0 -1
  686. package/dist/webcomponents/p-10278c48.entry.js +0 -1
  687. package/dist/webcomponents/p-19ccbeee.entry.js +0 -1
  688. package/dist/webcomponents/p-1b3b6956.entry.js +0 -1
  689. package/dist/webcomponents/p-1c433962.entry.js +0 -1
  690. package/dist/webcomponents/p-1f9f6bdc.entry.js +0 -1
  691. package/dist/webcomponents/p-2246aa69.entry.js +0 -1
  692. package/dist/webcomponents/p-246ef4ff.entry.js +0 -1
  693. package/dist/webcomponents/p-30147031.entry.js +0 -1
  694. package/dist/webcomponents/p-3546a5aa.entry.js +0 -1
  695. package/dist/webcomponents/p-3621a429.entry.js +0 -1
  696. package/dist/webcomponents/p-3c1d950d.entry.js +0 -1
  697. package/dist/webcomponents/p-406ba650.entry.js +0 -1
  698. package/dist/webcomponents/p-4332962a.entry.js +0 -1
  699. package/dist/webcomponents/p-4466d28d.entry.js +0 -1
  700. package/dist/webcomponents/p-44d1341c.entry.js +0 -1
  701. package/dist/webcomponents/p-46db49dd.entry.js +0 -1
  702. package/dist/webcomponents/p-4d5c71c4.entry.js +0 -1
  703. package/dist/webcomponents/p-4ea83bfd.entry.js +0 -1
  704. package/dist/webcomponents/p-558f7967.entry.js +0 -1
  705. package/dist/webcomponents/p-5c477f08.entry.js +0 -1
  706. package/dist/webcomponents/p-629c1d75.entry.js +0 -1
  707. package/dist/webcomponents/p-68329f16.entry.js +0 -1
  708. package/dist/webcomponents/p-6fe79f16.entry.js +0 -1
  709. package/dist/webcomponents/p-718f8b2c.entry.js +0 -1
  710. package/dist/webcomponents/p-73f88870.entry.js +0 -1
  711. package/dist/webcomponents/p-760a5b4f.entry.js +0 -1
  712. package/dist/webcomponents/p-779e4467.entry.js +0 -1
  713. package/dist/webcomponents/p-7aeb20d2.entry.js +0 -1
  714. package/dist/webcomponents/p-7ef3cb23.entry.js +0 -1
  715. package/dist/webcomponents/p-84043580.entry.js +0 -1
  716. package/dist/webcomponents/p-868ed3b6.entry.js +0 -1
  717. package/dist/webcomponents/p-87f598ef.entry.js +0 -1
  718. package/dist/webcomponents/p-906fdf0c.entry.js +0 -1
  719. package/dist/webcomponents/p-90e43440.entry.js +0 -1
  720. package/dist/webcomponents/p-914e168d.entry.js +0 -1
  721. package/dist/webcomponents/p-91c1e2ac.entry.js +0 -1
  722. package/dist/webcomponents/p-95348ff6.entry.js +0 -1
  723. package/dist/webcomponents/p-9f04cac4.entry.js +0 -1
  724. package/dist/webcomponents/p-B-iV5cYd.js +0 -1
  725. package/dist/webcomponents/p-B4idKqyn.js +0 -1
  726. package/dist/webcomponents/p-BX8GieXu.js +0 -1
  727. package/dist/webcomponents/p-BY2p6Sxk.js +0 -1
  728. package/dist/webcomponents/p-BguBT6Hn.js +0 -1
  729. package/dist/webcomponents/p-BlJnA265.js +0 -1
  730. package/dist/webcomponents/p-Bp_QFeog.js +0 -1
  731. package/dist/webcomponents/p-Bvp7uul3.js +0 -1
  732. package/dist/webcomponents/p-C1xGBPma.js +0 -1
  733. package/dist/webcomponents/p-C3n7-tlg.js +0 -1
  734. package/dist/webcomponents/p-CPVN4dXS.js +0 -1
  735. package/dist/webcomponents/p-CQeex56P.js +0 -1
  736. package/dist/webcomponents/p-CU4XQ3fO.js +0 -1
  737. package/dist/webcomponents/p-CYBR4K2p.js +0 -1
  738. package/dist/webcomponents/p-CpKvg1ok.js +0 -1
  739. package/dist/webcomponents/p-CrQgyTRz.js +0 -1
  740. package/dist/webcomponents/p-CxzFvTgf.js +0 -1
  741. package/dist/webcomponents/p-D6XirF21.js +0 -1
  742. package/dist/webcomponents/p-DCMrHeJI.js +0 -1
  743. package/dist/webcomponents/p-DH8F0bsw.js +0 -1
  744. package/dist/webcomponents/p-DSP8qjHL.js +0 -1
  745. package/dist/webcomponents/p-DbX0g1WF.js +0 -1
  746. package/dist/webcomponents/p-De8UloOS.js +0 -1
  747. package/dist/webcomponents/p-Dt-vy9Le.js +0 -1
  748. package/dist/webcomponents/p-DvZcI6pC.js +0 -1
  749. package/dist/webcomponents/p-DyDHaG6n.js +0 -1
  750. package/dist/webcomponents/p-IG_KR8zP.js +0 -1
  751. package/dist/webcomponents/p-PgEzcvI6.js +0 -1
  752. package/dist/webcomponents/p-Xv8DuU3Y.js +0 -1
  753. package/dist/webcomponents/p-a57c1400.entry.js +0 -1
  754. package/dist/webcomponents/p-a90b8b93.entry.js +0 -1
  755. package/dist/webcomponents/p-b4e673fe.entry.js +0 -1
  756. package/dist/webcomponents/p-bc902ec2.entry.js +0 -1
  757. package/dist/webcomponents/p-bf82201a.entry.js +0 -1
  758. package/dist/webcomponents/p-c16c0cbc.entry.js +0 -1
  759. package/dist/webcomponents/p-c685fc33.entry.js +0 -1
  760. package/dist/webcomponents/p-d0f93668.entry.js +0 -1
  761. package/dist/webcomponents/p-d3f5ff95.entry.js +0 -1
  762. package/dist/webcomponents/p-df7f36aa.entry.js +0 -1
  763. package/dist/webcomponents/p-e035a92e.entry.js +0 -1
  764. package/dist/webcomponents/p-e2a38ad0.entry.js +0 -1
  765. package/dist/webcomponents/p-e628a0c8.entry.js +0 -1
  766. package/dist/webcomponents/p-e6516014.entry.js +0 -1
  767. package/dist/webcomponents/p-e6e96be2.entry.js +0 -1
  768. package/dist/webcomponents/p-e79338f9.entry.js +0 -1
  769. package/dist/webcomponents/p-eafd179b.entry.js +0 -1
  770. package/dist/webcomponents/p-f5c3f489.entry.js +0 -1
  771. package/dist/webcomponents/p-f6cf3e2b.entry.js +0 -1
  772. package/dist/webcomponents/p-ffe01f1b.entry.js +0 -1
  773. package/dist/webcomponents/p-oGKW57R8.js +0 -1
  774. package/dist/webcomponents/p-pXjOPQhG.js +0 -1
  775. package/dist/webcomponents/p-qipqIMyC.js +0 -2
  776. package/dist/webcomponents/p-xY5RkFuA.js +0 -1
@@ -1,8 +1,9 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { c as businessClassificationOptions } from './business-form-options.js';
3
- import { T as TAX_ID_MASKS, P as PHONE_MASKS } from './form-input-masks.js';
3
+ import { I as IDENTITY_MASKS, P as PHONE_MASKS } from './form-input-masks.js';
4
4
  import { C as CoreBusinessInfo } from './Business.js';
5
- import { h as heading2 } from './parts.js';
5
+ import { h as heading2, l as label, c as inputDisabled, X as buttonSecondary } from './parts.js';
6
+ import { c as countryLabels } from './country-config.js';
6
7
  import { d as defineCustomElement$6 } from './custom-popper2.js';
7
8
  import { d as defineCustomElement$5 } from './form-control-date2.js';
8
9
  import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
@@ -18,6 +19,7 @@ const BusinessCoreInfo = /*@__PURE__*/ proxyCustomElement(class BusinessCoreInfo
18
19
  }
19
20
  this.errors = {};
20
21
  this.coreInfo = {};
22
+ this.isEditingTaxId = false;
21
23
  this.inputHandler = this.inputHandler.bind(this);
22
24
  }
23
25
  componentDidLoad() {
@@ -30,13 +32,19 @@ const BusinessCoreInfo = /*@__PURE__*/ proxyCustomElement(class BusinessCoreInfo
30
32
  this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
31
33
  }
32
34
  render() {
35
+ var _a, _b;
33
36
  const coreInfoDefaultValue = this.formController.getInitialValues();
34
- return (h(Host, { key: '0f01827de5a6ff9f6da4aabac4c219da9bb7f7bc' }, h("fieldset", { key: 'fb47f0c5e7d566fe3af06eb1f38af813ca1a5a98' }, h("legend", { key: '04b3a526d159f010da3960220c6738c23ab59ae9', part: heading2 }, "General Info"), h("div", { key: 'cfa7ae60828f3b7525d6582effe31e11f4940ae1', class: "row gy-3" }, h("div", { key: '09f915e522f42ea60bde326b93c0acbf79914047', class: "col-12" }, h("form-control-text", { key: 'fcfb0a32d62173c0fd60e21410cbf8be1843855f', name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: 'be83c79addceacb5621fb480cdc606a5393778ca', class: "col-12" }, h("form-control-text", { key: 'e78ff2fa54cd819b9117d03976d40e5aa49e33b5', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: '1a17daeaac46daa23ea4a2a028d08db238cc11d9', class: "col-12 col-md-8" }, h("form-control-select", { key: 'c8d76e0cdb665a43162d5605bda5361969933964', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: '1cfd904e9c039e834e086847b296ee4a6ee3f676', class: "col-12 col-md-4" }, h("form-control-date", { key: 'bdd8b4b01c9bd22b4c0188d7b37ebd6228a8af45', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: 'bb1aceaf0a2ea01d4116fa66e7fc086824940619', class: "col-12 col-md-6" }, h("form-control-text", { key: '4fdcb1caae3cba88e8f6f9c14cb8b85c98e8a0f2', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '238c8aae3f95286292b302efd2a490a0b7e9ce56', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '5a8e4040603858ff704da4c3c901d3903d0ed619', name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { key: 'e3a9a7987837dbb026b3edb6c0659b8c45ddf3bc', class: "col-12" }, h("form-control-text", { key: 'fd826dbe012a25bfcaf456f3f2d3e300de3b81d8', name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '26cd8ff17604388d92f594193cde8a5005a727d1', class: "col-12 col-md-6" }, h("form-control-text", { key: 'cf5c1601d7d956656168d3819767cc912a35ea7c', name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'f94b1fa7cc39f3800404ce2ea2d46af70bf43b08', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'ea73e0093f103c7bc5913ca1dc7625fde1ff09f6', name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
37
+ return (h(Host, { key: 'abe85b33019341e670263a3fabefe1c73c203a12' }, h("fieldset", { key: '12eb6d4e78e56c8771d95e03fa7d8c4c9ea6478f' }, h("legend", { key: '514cb38045c7d4a4a6746a3846c84013507d0691', part: heading2 }, "General Info"), h("div", { key: '30a509f2dd8ec2938dcc790d8891a917b76b91a0', class: "row gy-3" }, h("div", { key: 'ced24f46905abd380fd190bd56d56eba7ec65289', class: "col-12" }, h("form-control-text", { key: '26e986bef6cad147cd7e5b557e27ad8e61932e54', name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: 'fabae43dc916ee087b73e366b01bc40fc29a4110', class: "col-12" }, h("form-control-text", { key: 'bf7e45fe95c0156c583c693006f4a65f2d1d6b1b', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: '12d52af1fb5dcef7382b8a36f44a048bcff5a752', class: "col-12 col-md-8" }, h("form-control-select", { key: '94ea7c2438e5fbb0b85a9df5915d78791ae026ea', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: '90800a655ff4470ea6de9f774dcdccc95862c821', class: "col-12 col-md-4" }, h("form-control-date", { key: '715436c7bf7d34ab2505b1005873ac549f351af1', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: 'f4502deec218f3493210ecb6b1ad19fc7cf9f28f', class: "col-12 col-md-6" }, h("form-control-text", { key: '91614c8854a4b2e79fea028c1ad43ef751dacfb1', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '9c7a45b88199e7d00673e6d569f45e2dcf3d242d', 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: IDENTITY_MASKS[this.country], 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: () => {
38
+ this.isEditingTaxId = true;
39
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { tax_id: '' }));
40
+ } }, "Change"))))), h("div", { key: 'd0eb145c0afde23fd1dcf7837763971b259ff260', class: "col-12" }, h("form-control-text", { key: '7b2d6a1558b6be6adc87ff4109bca6e9238c2ecf', name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: 'eb9637448b9f9a6e4a8b8a08ad9f7f48ff56ec4f', class: "col-12 col-md-6" }, h("form-control-text", { key: '1f2b0ce0c7dd02485635e8f666d59cd7ec792dbc', name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '46fa9ad350b8482296ce0a76db841b78efb9b83b', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '9d4376e2e1d4372470ba8483f8fe1c0992267e38', name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
35
41
  }
36
42
  }, [256, "justifi-business-core-info", {
37
- "formController": [16, "form-controller"],
43
+ "formController": [16],
44
+ "country": [1],
38
45
  "errors": [32],
39
- "coreInfo": [32]
46
+ "coreInfo": [32],
47
+ "isEditingTaxId": [32]
40
48
  }]);
41
49
  function defineCustomElement() {
42
50
  if (typeof customElements === "undefined") {
@@ -64,7 +64,7 @@ const BusinessDetailsCore = /*@__PURE__*/ proxyCustomElement(class BusinessDetai
64
64
  return (h(StyledHost, null, h("justifi-details", { "error-message": this.errorMessage }, h("div", { slot: 'detail-sections' }, h("core-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
65
65
  }
66
66
  }, [256, "business-details-core", {
67
- "getBusiness": [16, "get-business"],
67
+ "getBusiness": [16],
68
68
  "business": [32],
69
69
  "renderState": [32],
70
70
  "errorMessage": [32]
@@ -1,29 +1,56 @@
1
1
  import { c as create$3, a as create$6 } from './form.js';
2
- import { a as addressSchema } from './business-address-schema.js';
3
- import { v as ssnValidation, x as dobValidation, m as phoneValidation, n as emailValidation, y as identityTitleValidation, i as identityNameValidation } from './schema-validations.js';
2
+ import { a as addressSchemaUSA, b as addressSchemaCAN } from './business-address-schema.js';
3
+ import { x as ssnValidation, y as dobValidation, n as phoneValidation, q as emailValidation, z as identityTitleValidation, i as identityNameValidation, A as makeIdentityNumberValidation } from './schema-validations.js';
4
+ import { a as CountryCode } from './Business.js';
4
5
 
5
- const identitySchema = (role, allowOptionalFields) => {
6
- const schema = create$3({
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
- ssn_last4: create$6().nullable(),
13
- identification_number: ssnValidation,
14
- address: addressSchema(allowOptionalFields),
15
- });
16
- const easySchema = create$3({
17
- name: identityNameValidation.required(`Enter ${role} name`),
18
- title: identityTitleValidation.nullable(),
19
- email: emailValidation.nullable(),
20
- phone: phoneValidation.nullable(),
21
- dob_full: dobValidation(role).nullable(),
22
- ssn_last4: create$6().nullable(),
23
- identification_number: ssnValidation.nullable(),
24
- address: addressSchema(allowOptionalFields),
25
- });
26
- return allowOptionalFields ? easySchema : schema;
6
+ // Internal USA schemas
7
+ const schemaUSA = (role) => create$3({
8
+ name: identityNameValidation.required(`Enter ${role} name`),
9
+ title: identityTitleValidation.nullable(),
10
+ email: emailValidation.nullable(),
11
+ phone: phoneValidation.nullable(),
12
+ dob_full: dobValidation(role).nullable(),
13
+ ssn_last4: create$6().nullable(),
14
+ identification_number: ssnValidation.nullable(),
15
+ address: addressSchemaUSA(true),
16
+ });
17
+ const strictSchemaUSA = (role) => create$3({
18
+ name: identityNameValidation.required(`Enter ${role} name`),
19
+ title: identityTitleValidation.required(`Enter ${role} title`),
20
+ email: emailValidation.required(`Enter ${role} email`),
21
+ phone: phoneValidation.required('Enter phone number'),
22
+ dob_full: dobValidation(role).required('Enter date of birth'),
23
+ ssn_last4: create$6().nullable(),
24
+ // ssn required unless last4 provided (handled inside ssnValidation)
25
+ identification_number: ssnValidation,
26
+ address: addressSchemaUSA(false),
27
+ });
28
+ // Internal CAN schemas
29
+ const schemaCAN = (role) => create$3({
30
+ name: identityNameValidation.required(`Enter ${role} name`),
31
+ title: identityTitleValidation.nullable(),
32
+ email: emailValidation.nullable(),
33
+ phone: phoneValidation.nullable(),
34
+ dob_full: dobValidation(role).nullable(),
35
+ identification_number: makeIdentityNumberValidation(CountryCode.CAN).nullable(),
36
+ address: addressSchemaCAN(true),
37
+ });
38
+ const strictSchemaCAN = (role) => create$3({
39
+ name: identityNameValidation.required(`Enter ${role} name`),
40
+ title: identityTitleValidation.required(`Enter ${role} title`),
41
+ email: emailValidation.required(`Enter ${role} email`),
42
+ phone: phoneValidation.required('Enter phone number'),
43
+ dob_full: dobValidation(role).required('Enter date of birth'),
44
+ identification_number: makeIdentityNumberValidation(CountryCode.CAN)
45
+ .required('Enter identification number'),
46
+ address: addressSchemaCAN(false),
47
+ });
48
+ const identitySchemaUSA = (role, allowOptionalFields) => allowOptionalFields ? schemaUSA(role) : strictSchemaUSA(role);
49
+ const identitySchemaCAN = (role, allowOptionalFields) => allowOptionalFields ? schemaCAN(role) : strictSchemaCAN(role);
50
+ // Country-keyed mapping
51
+ const identitySchemaByCountry = {
52
+ [CountryCode.USA]: identitySchemaUSA,
53
+ [CountryCode.CAN]: identitySchemaCAN,
27
54
  };
28
55
 
29
- export { identitySchema as i };
56
+ export { identitySchemaUSA as a, identitySchemaCAN as b, identitySchemaByCountry as i };
@@ -6,12 +6,13 @@ import './event-types.js';
6
6
  import './justifi-radio-list-item2.js';
7
7
  import { P as PaymentProvisioningLoading } from './payment-provisioning-loading.js';
8
8
  import { B as BusinessFormStep, a as BusinessFormClickActions } from './event-types2.js';
9
- import { d as defineCustomElement$a } from './custom-popper2.js';
10
- import { d as defineCustomElement$9 } from './form-control-date2.js';
11
- import { d as defineCustomElement$8 } from './form-control-number-masked2.js';
12
- import { d as defineCustomElement$7 } from './form-control-select2.js';
13
- import { d as defineCustomElement$6 } from './form-control-text2.js';
14
- import { d as defineCustomElement$5 } from './form-control-tooltip2.js';
9
+ import { d as defineCustomElement$b } from './custom-popper2.js';
10
+ import { d as defineCustomElement$a } from './form-control-date2.js';
11
+ import { d as defineCustomElement$9 } from './form-control-number-masked2.js';
12
+ import { d as defineCustomElement$8 } from './form-control-select2.js';
13
+ import { d as defineCustomElement$7 } from './form-control-text2.js';
14
+ import { d as defineCustomElement$6 } from './form-control-tooltip2.js';
15
+ import { d as defineCustomElement$5 } from './form-address-fields.js';
15
16
  import { d as defineCustomElement$4 } from './identity-address-form.js';
16
17
  import { d as defineCustomElement$3 } from './owner-form.js';
17
18
  import { d as defineCustomElement$2 } from './owner-form-core2.js';
@@ -136,7 +137,7 @@ const BusinessOwnersFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busine
136
137
  return h(PaymentProvisioningLoading, null);
137
138
  }
138
139
  return (h("div", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Owners"), h("form-control-tooltip", { helpText: "For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director." })), h("hr", { class: "mt-2" }), h("div", { class: 'row gy-3' }, this.ownersPayload.map((owner) => {
139
- return (h("justifi-owner-form", { key: owner.id, authToken: this.authToken, businessId: this.businessId, ownerId: owner.id, removeOwner: this.removeOwnerForm, newFormOpen: this.newFormOpen, ownersLength: this.ownersPayload.length, allowOptionalFields: this.allowOptionalFields, ref: (ref) => this.matchRef(ref, owner.id) }));
140
+ return (h("justifi-owner-form", { key: owner.id, authToken: this.authToken, businessId: this.businessId, ownerId: owner.id, removeOwner: this.removeOwnerForm, newFormOpen: this.newFormOpen, ownersLength: this.ownersPayload.length, country: this.country, allowOptionalFields: this.allowOptionalFields, ref: (ref) => this.matchRef(ref, owner.id) }));
140
141
  })), h("div", { class: 'd-flex justify-content-start' }, h("div", { class: 'gap-2' }, h(Button, { variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
141
142
  }
142
143
  static get watchers() { return {
@@ -145,9 +146,10 @@ const BusinessOwnersFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busine
145
146
  }, [256, "justifi-business-owners-form-step-core", {
146
147
  "authToken": [1, "auth-token"],
147
148
  "businessId": [1, "business-id"],
148
- "getBusiness": [16, "get-business"],
149
- "patchBusiness": [16, "patch-business"],
149
+ "getBusiness": [16],
150
+ "patchBusiness": [16],
150
151
  "allowOptionalFields": [4, "allow-optional-fields"],
152
+ "country": [1],
151
153
  "ownersPayload": [32],
152
154
  "refs": [32],
153
155
  "newFormOpen": [32],
@@ -160,7 +162,7 @@ function defineCustomElement() {
160
162
  if (typeof customElements === "undefined") {
161
163
  return;
162
164
  }
163
- const components = ["justifi-business-owners-form-step-core", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-identity-address-form", "justifi-owner-form", "owner-form-core", "owner-form-inputs"];
165
+ const components = ["justifi-business-owners-form-step-core", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-form-address-fields", "justifi-identity-address-form", "justifi-owner-form", "owner-form-core", "owner-form-inputs"];
164
166
  components.forEach(tagName => { switch (tagName) {
165
167
  case "justifi-business-owners-form-step-core":
166
168
  if (!customElements.get(tagName)) {
@@ -169,30 +171,35 @@ function defineCustomElement() {
169
171
  break;
170
172
  case "custom-popper":
171
173
  if (!customElements.get(tagName)) {
172
- defineCustomElement$a();
174
+ defineCustomElement$b();
173
175
  }
174
176
  break;
175
177
  case "form-control-date":
176
178
  if (!customElements.get(tagName)) {
177
- defineCustomElement$9();
179
+ defineCustomElement$a();
178
180
  }
179
181
  break;
180
182
  case "form-control-number-masked":
181
183
  if (!customElements.get(tagName)) {
182
- defineCustomElement$8();
184
+ defineCustomElement$9();
183
185
  }
184
186
  break;
185
187
  case "form-control-select":
186
188
  if (!customElements.get(tagName)) {
187
- defineCustomElement$7();
189
+ defineCustomElement$8();
188
190
  }
189
191
  break;
190
192
  case "form-control-text":
191
193
  if (!customElements.get(tagName)) {
192
- defineCustomElement$6();
194
+ defineCustomElement$7();
193
195
  }
194
196
  break;
195
197
  case "form-control-tooltip":
198
+ if (!customElements.get(tagName)) {
199
+ defineCustomElement$6();
200
+ }
201
+ break;
202
+ case "justifi-form-address-fields":
196
203
  if (!customElements.get(tagName)) {
197
204
  defineCustomElement$5();
198
205
  }
@@ -2,13 +2,14 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
3
3
  import { m as makeGetBusiness, a as makePatchBusiness } from './payment-provisioning-actions.js';
4
4
  import { B as BusinessService } from './business.service.js';
5
- import { d as defineCustomElement$b } from './custom-popper2.js';
6
- import { d as defineCustomElement$a } from './form-control-date2.js';
7
- import { d as defineCustomElement$9 } from './form-control-number-masked2.js';
8
- import { d as defineCustomElement$8 } from './form-control-select2.js';
9
- import { d as defineCustomElement$7 } from './form-control-text2.js';
10
- import { d as defineCustomElement$6 } from './form-control-tooltip2.js';
11
- import { d as defineCustomElement$5 } from './business-owners-form-step-core.js';
5
+ import { d as defineCustomElement$c } from './custom-popper2.js';
6
+ import { d as defineCustomElement$b } from './form-control-date2.js';
7
+ import { d as defineCustomElement$a } from './form-control-number-masked2.js';
8
+ import { d as defineCustomElement$9 } from './form-control-select2.js';
9
+ import { d as defineCustomElement$8 } from './form-control-text2.js';
10
+ import { d as defineCustomElement$7 } from './form-control-tooltip2.js';
11
+ import { d as defineCustomElement$6 } from './business-owners-form-step-core.js';
12
+ import { d as defineCustomElement$5 } from './form-address-fields.js';
12
13
  import { d as defineCustomElement$4 } from './identity-address-form.js';
13
14
  import { d as defineCustomElement$3 } from './owner-form.js';
14
15
  import { d as defineCustomElement$2 } from './owner-form-core2.js';
@@ -53,7 +54,7 @@ const BusinessOwnersFormStep = /*@__PURE__*/ proxyCustomElement(class BusinessOw
53
54
  }
54
55
  }
55
56
  render() {
56
- return (h(Host, { key: 'aa3b4e716a0592f48180b7dbe2f81662aeb4d6e7' }, h("justifi-business-owners-form-step-core", { key: '8e3ef054061dbe2500aa9f67e4aea53b12e5d432', authToken: this.authToken, businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: (el) => this.coreComponent = el })));
57
+ return (h(Host, { key: '510b3ece6194fa6c34c04ba4d87718490631b69d' }, h("justifi-business-owners-form-step-core", { key: '01b034456e183d39b6adc4b9f9d36e289483eb9b', authToken: this.authToken, businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, country: this.country, ref: (el) => this.coreComponent = el })));
57
58
  }
58
59
  static get watchers() { return {
59
60
  "authToken": ["propChanged"],
@@ -63,6 +64,7 @@ const BusinessOwnersFormStep = /*@__PURE__*/ proxyCustomElement(class BusinessOw
63
64
  "authToken": [1, "auth-token"],
64
65
  "businessId": [1, "business-id"],
65
66
  "allowOptionalFields": [4, "allow-optional-fields"],
67
+ "country": [1],
66
68
  "getBusiness": [32],
67
69
  "patchBusiness": [32],
68
70
  "validateAndSubmit": [64]
@@ -74,7 +76,7 @@ function defineCustomElement() {
74
76
  if (typeof customElements === "undefined") {
75
77
  return;
76
78
  }
77
- const components = ["justifi-business-owners-form-step", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-business-owners-form-step-core", "justifi-identity-address-form", "justifi-owner-form", "owner-form-core", "owner-form-inputs"];
79
+ const components = ["justifi-business-owners-form-step", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-business-owners-form-step-core", "justifi-form-address-fields", "justifi-identity-address-form", "justifi-owner-form", "owner-form-core", "owner-form-inputs"];
78
80
  components.forEach(tagName => { switch (tagName) {
79
81
  case "justifi-business-owners-form-step":
80
82
  if (!customElements.get(tagName)) {
@@ -83,35 +85,40 @@ function defineCustomElement() {
83
85
  break;
84
86
  case "custom-popper":
85
87
  if (!customElements.get(tagName)) {
86
- defineCustomElement$b();
88
+ defineCustomElement$c();
87
89
  }
88
90
  break;
89
91
  case "form-control-date":
90
92
  if (!customElements.get(tagName)) {
91
- defineCustomElement$a();
93
+ defineCustomElement$b();
92
94
  }
93
95
  break;
94
96
  case "form-control-number-masked":
95
97
  if (!customElements.get(tagName)) {
96
- defineCustomElement$9();
98
+ defineCustomElement$a();
97
99
  }
98
100
  break;
99
101
  case "form-control-select":
100
102
  if (!customElements.get(tagName)) {
101
- defineCustomElement$8();
103
+ defineCustomElement$9();
102
104
  }
103
105
  break;
104
106
  case "form-control-text":
105
107
  if (!customElements.get(tagName)) {
106
- defineCustomElement$7();
108
+ defineCustomElement$8();
107
109
  }
108
110
  break;
109
111
  case "form-control-tooltip":
110
112
  if (!customElements.get(tagName)) {
111
- defineCustomElement$6();
113
+ defineCustomElement$7();
112
114
  }
113
115
  break;
114
116
  case "justifi-business-owners-form-step-core":
117
+ if (!customElements.get(tagName)) {
118
+ defineCustomElement$6();
119
+ }
120
+ break;
121
+ case "justifi-form-address-fields":
115
122
  if (!customElements.get(tagName)) {
116
123
  defineCustomElement$5();
117
124
  }
@@ -1,13 +1,15 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers.js';
3
- import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks.js';
4
- import { h as heading2 } from './parts.js';
5
- import { d as defineCustomElement$7 } from './custom-popper2.js';
6
- import { d as defineCustomElement$6 } from './form-control-date2.js';
7
- import { d as defineCustomElement$5 } from './form-control-number-masked2.js';
8
- import { d as defineCustomElement$4 } from './form-control-select2.js';
9
- import { d as defineCustomElement$3 } from './form-control-text2.js';
10
- import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
3
+ import { P as PHONE_MASKS, I as IDENTITY_MASKS } from './form-input-masks.js';
4
+ import { h as heading2, l as label, c as inputDisabled, X as buttonSecondary } from './parts.js';
5
+ import { c as countryLabels } from './country-config.js';
6
+ import { d as defineCustomElement$8 } from './custom-popper2.js';
7
+ import { d as defineCustomElement$7 } from './form-control-date2.js';
8
+ import { d as defineCustomElement$6 } from './form-control-number-masked2.js';
9
+ import { d as defineCustomElement$5 } from './form-control-select2.js';
10
+ import { d as defineCustomElement$4 } from './form-control-text2.js';
11
+ import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
12
+ import { d as defineCustomElement$2 } from './form-address-fields.js';
11
13
  import { d as defineCustomElement$1 } from './identity-address-form.js';
12
14
 
13
15
  const RepresentativeFormInputs = /*@__PURE__*/ proxyCustomElement(class RepresentativeFormInputs extends HTMLElement {
@@ -16,6 +18,7 @@ const RepresentativeFormInputs = /*@__PURE__*/ proxyCustomElement(class Represen
16
18
  if (registerHost !== false) {
17
19
  this.__registerHost();
18
20
  }
21
+ this.isEditingIdentification = false;
19
22
  this.inputHandler = (name, value) => {
20
23
  updateFormValues(this.formController, { [name]: value });
21
24
  };
@@ -24,19 +27,28 @@ const RepresentativeFormInputs = /*@__PURE__*/ proxyCustomElement(class Represen
24
27
  };
25
28
  }
26
29
  render() {
27
- var _a, _b, _c, _d, _e, _f, _g;
28
- return (h("form", { key: 'a2c558b8a6b66d7257fa86ef5f9c1d56a7a273db' }, h("fieldset", { key: '23cb7f2debd4692c39cfe2311ce0d2549ca94ebc' }, h("div", { key: '0c6e94b6a9da6924673f5ebeed93f237ff22a013', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'a165d7dc17dddde2d6ce35af9d836a989f02ffaf', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: '5c2c29ae9ea82acc6c923c870f4ece5db5e7afb9', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: 'bc481e820461c6ec2088f2879cb9a5837ed02884', class: "mt-2" }), h("div", { key: 'ff4b0731213ddc42ebabb79d49984b83d376f742', class: "row gy-3" }, h("div", { key: '99cac91d3657bce68ce97028342d49cb8a2bb314', class: "col-12 col-md-8" }, h("form-control-text", { key: '534e81b075f732ae3953d8f904199d61a43de4bb', 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: '6070fdff99a868b50deb59c9d006d3c4775a50bd', class: "col-12 col-md-4" }, h("form-control-text", { key: 'c92477cc30c5a9c7d99842dff2855edce67185f9', 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: '14d953417a1ec0292d75251b37b580361def0fb3', class: "col-12 col-md-6" }, h("form-control-text", { key: '42562735066b104619b8aa4da966aaec462f177b', 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: 'cb7f6173a31fac67edf74844f0807ea94446c59b', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '42b0833d545243c11f515d320aac5408bb744e89', 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: 'a9468f20a7d832ae44d771c3b8913c32cf0ef2ab', class: "col-12 col-md-4" }, h("form-control-date", { key: '1f739c1d3bb814710ee159740e459bde72a0e790', 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: 'e2ecd87320422e1712138115291016f8c1c61ac2', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'dd91ffa7877d84cfe315849d18c7cec5bf79b1de', name: "identification_number", label: "SSN", defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: 'ef502c55424287c5c81ca88593f5836d21a2f945', class: "col-12" }, h("justifi-identity-address-form", { key: '26295cbccf0ca23415b4d7c12dc42eb2dbb0d229', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
30
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
31
+ return (h("form", { key: '7f2a20427197ce4f402c1b4b859839d506613769' }, h("fieldset", { key: 'fe71959a012c1961b6f91d98862ca4ea9411bf6d' }, h("div", { key: '801fb53d33eeff75f82552da84210abfb1daa55d', class: "d-flex align-items-center gap-2" }, h("legend", { key: '63486b252a7c4f71e944712a833a2edc762c1692', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: '9a22a232bb856c05ca8c75a0255ea8a2b33b8a80', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: 'b29a6dcd41991b2874cb64fc3cd058f3bcf10a48', class: "mt-2" }), h("div", { key: '52e2b29c6f915f50e1f33c19363657e657355b85', class: "row gy-3" }, h("div", { key: '9531872c804ef3713c0778c6bff1d3ca589bb3d5', class: "col-12 col-md-8" }, h("form-control-text", { key: 'd1eedf80da0790767a6c294f084c4b9d4112b9cf', 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: 'b5effb996c7b97cd5a8815781474ea32e5bc37b6', class: "col-12 col-md-4" }, h("form-control-text", { key: '554a6fe90a0c68a32ae7e6b0401e43a8a2d6c7fe', 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: '6025d1b2b67120a9e9e25d0a6e3e352651759c62', class: "col-12 col-md-6" }, h("form-control-text", { key: 'ed758eafa726ee6801c16535fbba7d05886c21d5', 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: '933650753a5fdc6f75db658baf536ce4033e0e6c', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '81ba9debb6c8fd8225c67a0c0a6b8612e87fc3f0', 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: '913c766d6eb5fe5f132eafecba91145a6c418dae', class: "col-12 col-md-4" }, h("form-control-date", { key: 'c50e5ad2022906d753b783e7892be8322d80661c', 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: '74492ad88a4962c2abfd04319880edb757d78796', 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: () => {
32
+ this.isEditingIdentification = true;
33
+ // Clear last4 and current value to force validation
34
+ updateFormValues(this.formController, {
35
+ ssn_last4: null,
36
+ identification_number: ''
37
+ });
38
+ } }, "Change"))))), h("div", { key: 'ad29d30e0748004e9c0d429804210f269581ff12', class: "col-12" }, h("justifi-identity-address-form", { key: 'aaad43f4c150cf08cbdd321a887eaadc51436c88', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
29
39
  }
30
40
  }, [256, "justifi-business-representative-form-inputs", {
31
41
  "representativeDefaultValue": [8, "representative-default-value"],
32
42
  "errors": [8],
33
- "formController": [16, "form-controller"]
43
+ "formController": [16],
44
+ "country": [1],
45
+ "isEditingIdentification": [32]
34
46
  }]);
35
47
  function defineCustomElement() {
36
48
  if (typeof customElements === "undefined") {
37
49
  return;
38
50
  }
39
- const components = ["justifi-business-representative-form-inputs", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-identity-address-form"];
51
+ const components = ["justifi-business-representative-form-inputs", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-form-address-fields", "justifi-identity-address-form"];
40
52
  components.forEach(tagName => { switch (tagName) {
41
53
  case "justifi-business-representative-form-inputs":
42
54
  if (!customElements.get(tagName)) {
@@ -45,30 +57,35 @@ function defineCustomElement() {
45
57
  break;
46
58
  case "custom-popper":
47
59
  if (!customElements.get(tagName)) {
48
- defineCustomElement$7();
60
+ defineCustomElement$8();
49
61
  }
50
62
  break;
51
63
  case "form-control-date":
52
64
  if (!customElements.get(tagName)) {
53
- defineCustomElement$6();
65
+ defineCustomElement$7();
54
66
  }
55
67
  break;
56
68
  case "form-control-number-masked":
57
69
  if (!customElements.get(tagName)) {
58
- defineCustomElement$5();
70
+ defineCustomElement$6();
59
71
  }
60
72
  break;
61
73
  case "form-control-select":
62
74
  if (!customElements.get(tagName)) {
63
- defineCustomElement$4();
75
+ defineCustomElement$5();
64
76
  }
65
77
  break;
66
78
  case "form-control-text":
67
79
  if (!customElements.get(tagName)) {
68
- defineCustomElement$3();
80
+ defineCustomElement$4();
69
81
  }
70
82
  break;
71
83
  case "form-control-tooltip":
84
+ if (!customElements.get(tagName)) {
85
+ defineCustomElement$3();
86
+ }
87
+ break;
88
+ case "justifi-form-address-fields":
72
89
  if (!customElements.get(tagName)) {
73
90
  defineCustomElement$2();
74
91
  }
@@ -1,16 +1,17 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { R as Representative } from './Business.js';
3
3
  import { F as FormController } from './form.js';
4
- import { i as identitySchema } from './business-identity-schema.js';
4
+ import { i as identitySchemaByCountry } from './business-identity-schema.js';
5
5
  import { P as PaymentProvisioningLoading } from './payment-provisioning-loading.js';
6
6
  import { B as BusinessFormStep } from './event-types2.js';
7
- import { d as defineCustomElement$8 } from './custom-popper2.js';
8
- import { d as defineCustomElement$7 } from './form-control-date2.js';
9
- import { d as defineCustomElement$6 } from './form-control-number-masked2.js';
10
- import { d as defineCustomElement$5 } from './form-control-select2.js';
11
- import { d as defineCustomElement$4 } from './form-control-text2.js';
12
- import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
13
- import { d as defineCustomElement$2 } from './business-representative-form-inputs.js';
7
+ import { d as defineCustomElement$9 } from './custom-popper2.js';
8
+ import { d as defineCustomElement$8 } from './form-control-date2.js';
9
+ import { d as defineCustomElement$7 } from './form-control-number-masked2.js';
10
+ import { d as defineCustomElement$6 } from './form-control-select2.js';
11
+ import { d as defineCustomElement$5 } from './form-control-text2.js';
12
+ import { d as defineCustomElement$4 } from './form-control-tooltip2.js';
13
+ import { d as defineCustomElement$3 } from './business-representative-form-inputs.js';
14
+ import { d as defineCustomElement$2 } from './form-address-fields.js';
14
15
  import { d as defineCustomElement$1 } from './identity-address-form.js';
15
16
 
16
17
  const BusinessRepresentativeFormStepCore = /*@__PURE__*/ proxyCustomElement(class BusinessRepresentativeFormStepCore extends HTMLElement {
@@ -26,11 +27,14 @@ const BusinessRepresentativeFormStepCore = /*@__PURE__*/ proxyCustomElement(clas
26
27
  this.representative = {};
27
28
  this.isLoading = false;
28
29
  this.getData = () => {
30
+ if (!this.getBusiness)
31
+ return;
29
32
  this.formLoading.emit(true);
30
33
  this.isLoading = true;
31
34
  this.getBusiness({
32
35
  onSuccess: (response) => {
33
36
  this.representative = new Representative(response.data.representative || {});
37
+ this.representative.address.country = this.country;
34
38
  this.formController.setInitialValues(Object.assign({}, this.representative));
35
39
  },
36
40
  onError: ({ error, code, severity }) => {
@@ -78,8 +82,9 @@ const BusinessRepresentativeFormStepCore = /*@__PURE__*/ proxyCustomElement(clas
78
82
  return { representative: formValues };
79
83
  }
80
84
  componentWillLoad() {
81
- this.getBusiness && this.getData();
82
- this.formController = new FormController(identitySchema('representative', this.allowOptionalFields));
85
+ const schemaFactory = identitySchemaByCountry[this.country];
86
+ this.formController = new FormController(schemaFactory('representative', this.allowOptionalFields));
87
+ this.getData();
83
88
  }
84
89
  componentDidLoad() {
85
90
  this.formController.errors.subscribe(errors => {
@@ -90,12 +95,13 @@ const BusinessRepresentativeFormStepCore = /*@__PURE__*/ proxyCustomElement(clas
90
95
  if (this.isLoading) {
91
96
  return (h(PaymentProvisioningLoading, null));
92
97
  }
93
- return (h("justifi-business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
98
+ return (h("justifi-business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController, country: this.country }));
94
99
  }
95
100
  }, [256, "justifi-business-representative-form-step-core", {
96
- "getBusiness": [16, "get-business"],
97
- "patchBusiness": [16, "patch-business"],
101
+ "getBusiness": [16],
102
+ "patchBusiness": [16],
98
103
  "allowOptionalFields": [4, "allow-optional-fields"],
104
+ "country": [1],
99
105
  "formController": [32],
100
106
  "errors": [32],
101
107
  "representative": [32],
@@ -106,7 +112,7 @@ function defineCustomElement() {
106
112
  if (typeof customElements === "undefined") {
107
113
  return;
108
114
  }
109
- const components = ["justifi-business-representative-form-step-core", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-business-representative-form-inputs", "justifi-identity-address-form"];
115
+ const components = ["justifi-business-representative-form-step-core", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-business-representative-form-inputs", "justifi-form-address-fields", "justifi-identity-address-form"];
110
116
  components.forEach(tagName => { switch (tagName) {
111
117
  case "justifi-business-representative-form-step-core":
112
118
  if (!customElements.get(tagName)) {
@@ -115,35 +121,40 @@ function defineCustomElement() {
115
121
  break;
116
122
  case "custom-popper":
117
123
  if (!customElements.get(tagName)) {
118
- defineCustomElement$8();
124
+ defineCustomElement$9();
119
125
  }
120
126
  break;
121
127
  case "form-control-date":
122
128
  if (!customElements.get(tagName)) {
123
- defineCustomElement$7();
129
+ defineCustomElement$8();
124
130
  }
125
131
  break;
126
132
  case "form-control-number-masked":
127
133
  if (!customElements.get(tagName)) {
128
- defineCustomElement$6();
134
+ defineCustomElement$7();
129
135
  }
130
136
  break;
131
137
  case "form-control-select":
132
138
  if (!customElements.get(tagName)) {
133
- defineCustomElement$5();
139
+ defineCustomElement$6();
134
140
  }
135
141
  break;
136
142
  case "form-control-text":
137
143
  if (!customElements.get(tagName)) {
138
- defineCustomElement$4();
144
+ defineCustomElement$5();
139
145
  }
140
146
  break;
141
147
  case "form-control-tooltip":
142
148
  if (!customElements.get(tagName)) {
143
- defineCustomElement$3();
149
+ defineCustomElement$4();
144
150
  }
145
151
  break;
146
152
  case "justifi-business-representative-form-inputs":
153
+ if (!customElements.get(tagName)) {
154
+ defineCustomElement$3();
155
+ }
156
+ break;
157
+ case "justifi-form-address-fields":
147
158
  if (!customElements.get(tagName)) {
148
159
  defineCustomElement$2();
149
160
  }