@justifi/webcomponents 6.1.0 → 6.2.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (668) hide show
  1. package/dist/cjs/{Business-DCRzZf0w.js → Business-DWHy_-z9.js} +299 -9
  2. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +132 -0
  3. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  4. package/dist/cjs/{business-additional-questions-schema-b8P-0T0O.js → business-additional-questions-schema-CetDMUp7.js} +26 -4
  5. package/dist/cjs/{business-form-options-CMII7nIK.js → business-form-options-e9UFw4P-.js} +1 -1
  6. package/dist/cjs/business-identity-schema-Cd0tvfJr.js +101 -0
  7. package/dist/cjs/{business.service-Cj_NUZsr.js → business.service-DRZurAMP.js} +1 -1
  8. package/dist/cjs/card-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{check-pkg-version-C7b-OLb5.js → check-pkg-version-W_AFeiO6.js} +2 -2
  10. package/dist/cjs/{checkout.service-Bc8L9ixO.js → checkout.service-vZbSE3A3.js} +1 -1
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -4
  12. package/dist/cjs/country-config-MCOhn8o3.js +68 -0
  13. package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper.cjs.entry.js} +2 -22
  14. package/dist/cjs/{dispute.service-DhO_tuDc.js → dispute.service-DV9a61Tu.js} +1 -1
  15. package/dist/cjs/form-alert_5.cjs.entry.js +25 -15
  16. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  17. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  19. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  20. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +119 -0
  22. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  23. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  24. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-select_3.cjs.entry.js} +23 -4
  25. package/dist/cjs/{form-input-masks-DgXd0f4V.js → form-input-masks-BnNFJ3IJ.js} +9 -4
  26. package/dist/cjs/{get-business-o5jPq_ME.js → get-business-D9ZHyPem.js} +1 -1
  27. package/dist/cjs/{get-payment-details-BinT-ZEP.js → get-payment-details-AYzxPu-X.js} +1 -1
  28. package/dist/cjs/{get-subaccounts-BoTVdl7v.js → get-subaccounts-C_KD197w.js} +1 -1
  29. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  30. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  31. package/dist/cjs/{input-handlers-DYl_0IwC.js → input-handlers-D6QMwPTB.js} +2 -2
  32. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +121 -64
  33. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -18
  34. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  35. package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +8 -10
  36. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +16 -17
  37. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -7
  38. package/dist/cjs/justifi-business-form.cjs.entry.js +16 -12
  39. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +14 -6
  40. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -7
  41. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -4
  42. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +6 -8
  43. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  45. package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -7
  46. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -9
  47. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -5
  48. package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -9
  49. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +22 -13
  50. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -7
  51. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +36 -21
  52. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -7
  53. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -7
  54. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -7
  56. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -6
  57. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -7
  58. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  59. package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -8
  60. package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -7
  61. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -5
  63. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  64. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +3 -5
  65. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -7
  66. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -4
  67. package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -8
  68. package/dist/cjs/loader.cjs.js +1 -1
  69. package/dist/cjs/{package-BHmdO9eK.js → package-BADgkv50.js} +1 -1
  70. package/dist/cjs/pagination-menu.cjs.entry.js +3 -3
  71. package/dist/cjs/payment-details-core.cjs.entry.js +9 -11
  72. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  73. package/dist/cjs/{payment.service-C9thkR4g.js → payment.service-1t60I69m.js} +1 -1
  74. package/dist/cjs/payments-list-core.cjs.entry.js +2 -4
  75. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  76. package/dist/cjs/{payout.service-CGZxpQMq.js → payout.service-CQEXfufW.js} +1 -1
  77. package/dist/cjs/payouts-list-core.cjs.entry.js +2 -4
  78. package/dist/cjs/{schema-validations-Bj7eYNO8.js → schema-validations-0mjPveQ0.js} +45 -6
  79. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  80. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -5
  81. package/dist/cjs/{terminal-orders-table-7ew1vCKk.js → terminal-orders-table-B4ZXHj3w.js} +1 -1
  82. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  83. package/dist/cjs/{terminal.service-BkKxH-k4.js → terminal.service-BlW-CJ67.js} +1 -1
  84. package/dist/cjs/terminals-list-core.cjs.entry.js +2 -4
  85. package/dist/cjs/webcomponents.cjs.js +1 -1
  86. package/dist/collection/api/BankAccount.js +4 -0
  87. package/dist/collection/api/Business.js +16 -1
  88. package/dist/collection/collection-manifest.json +4 -1
  89. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +7 -6
  90. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +36 -4
  91. package/dist/collection/components/business-forms/business-form/business-form.js +6 -2
  92. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +46 -9
  93. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +32 -10
  94. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +26 -6
  95. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +29 -3
  96. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +48 -6
  97. package/dist/collection/components/business-forms/owner-form/owner-form.js +26 -1
  98. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  99. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +88 -0
  101. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +2 -1
  102. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +50 -0
  103. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +36 -5
  104. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +26 -1
  105. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +47 -7
  106. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +26 -1
  107. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +26 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +26 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +43 -4
  110. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +33 -4
  111. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +26 -1
  112. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +101 -0
  113. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  114. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +35 -10
  115. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +26 -1
  116. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +39 -20
  117. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +34 -6
  119. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  121. package/dist/collection/components/business-forms/payment-provisioning/test/mockBusiness.js +52 -0
  122. package/dist/collection/components/business-forms/schemas/business-address-schema.js +41 -19
  123. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +74 -39
  124. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +27 -4
  125. package/dist/collection/components/business-forms/schemas/business-form-schema.js +7 -4
  126. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +53 -24
  127. package/dist/collection/components/business-forms/schemas/schema-validations.js +41 -4
  128. package/dist/collection/components/business-forms/utils/country-config.js +47 -0
  129. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  130. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  131. package/dist/collection/components/checkout/checkout.js +2 -2
  132. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  133. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  134. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  135. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  136. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  137. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  138. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  139. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  140. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  141. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  142. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  143. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  144. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  145. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  146. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  150. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  151. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  152. package/dist/collection/components/modular-checkout/modular-checkout.js +3 -4
  153. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  154. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  155. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  156. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  157. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  158. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  159. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  160. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  161. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  162. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  163. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  164. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  165. package/dist/collection/components/payments-list/payments-list.js +1 -1
  166. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  167. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  168. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  169. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  170. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  171. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  172. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  173. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  174. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  175. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  176. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  177. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -4
  178. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  179. package/dist/collection/ui-components/details/details.js +1 -1
  180. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  181. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  182. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  183. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  184. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  185. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  186. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  187. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  188. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  189. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  190. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  191. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  192. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  193. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  194. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  195. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  196. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
  197. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  198. package/dist/collection/utils/country-codes.js +5 -0
  199. package/dist/collection/utils/form-input-masks.js +8 -0
  200. package/dist/collection/utils/province-options.js +20 -0
  201. package/dist/docs.json +1129 -147
  202. package/dist/esm/{Api-DhiA2e_P.js → Api-K9QH1Aki.js} +1 -1
  203. package/dist/esm/{Business-BCoP0TAV.js → Business-B5rtFhtR.js} +290 -3
  204. package/dist/esm/{Refund-B-iOTRxz.js → Refund-L_muwEAh.js} +1 -1
  205. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  206. package/dist/esm/{badge-CtdO-tEY.js → badge-B8fF98jp.js} +1 -1
  207. package/dist/esm/bank-account-document-form-inputs_6.entry.js +125 -0
  208. package/dist/esm/bank-account-form.entry.js +5 -5
  209. package/dist/esm/{business-additional-questions-schema-9FAJSx_D.js → business-additional-questions-schema-DSvdNuI1.js} +26 -5
  210. package/dist/esm/business-details-core.entry.js +3 -3
  211. package/dist/esm/{business-form-options-CgssATyg.js → business-form-options-D6s5H4RI.js} +2 -2
  212. package/dist/esm/business-identity-schema-mN4VhA1v.js +94 -0
  213. package/dist/esm/{business.service-D55OVyco.js → business.service-BJcGEUDH.js} +3 -3
  214. package/dist/esm/{button-DtTaQHMK.js → button-DZoLTGMB.js} +1 -1
  215. package/dist/esm/card-form.entry.js +5 -5
  216. package/dist/esm/{check-pkg-version-xM0uWxbL.js → check-pkg-version-CG8qzhGl.js} +4 -4
  217. package/dist/esm/{checkout.service-fwbqSq8g.js → checkout.service-aymuZDC9.js} +3 -3
  218. package/dist/esm/checkouts-list-core.entry.js +9 -11
  219. package/dist/esm/{checkouts-table-B6gGDtOr.js → checkouts-table-B8k-Aylm.js} +3 -3
  220. package/dist/esm/country-config-BQ4D46Lb.js +64 -0
  221. package/dist/esm/{custom-popper_2.entry.js → custom-popper.entry.js} +3 -22
  222. package/dist/esm/{dispute.service-Cdq3_yRo.js → dispute.service-DiPbsswm.js} +3 -3
  223. package/dist/esm/form-alert_5.entry.js +25 -15
  224. package/dist/esm/form-control-checkbox.entry.js +5 -5
  225. package/dist/esm/form-control-date.entry.js +4 -4
  226. package/dist/esm/{form-control-error-text-bprS-t9d.js → form-control-error-text-BmD6bGbR.js} +1 -1
  227. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  228. package/dist/esm/{form-control-help-text-Bvnp-IAG.js → form-control-help-text-DbIhIcc6.js} +1 -1
  229. package/dist/esm/form-control-monetary-provisioning.entry.js +6 -6
  230. package/dist/esm/form-control-monetary.entry.js +6 -6
  231. package/dist/esm/form-control-number-masked_3.entry.js +115 -0
  232. package/dist/esm/form-control-number.entry.js +5 -5
  233. package/dist/esm/form-control-radio.entry.js +3 -3
  234. package/dist/esm/{form-control-select_2.entry.js → form-control-select_3.entry.js} +25 -7
  235. package/dist/esm/{form-input-masks-B-iV5cYd.js → form-input-masks-CVaOFfrI.js} +9 -3
  236. package/dist/esm/{get-business-Crb6P-iI.js → get-business-Xt7B5dSo.js} +1 -1
  237. package/dist/esm/{get-payment-details-sGoWyAat.js → get-payment-details-DcC5v85s.js} +2 -2
  238. package/dist/esm/{get-subaccounts-BsJSlShO.js → get-subaccounts-CMJMDwSP.js} +3 -3
  239. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  240. package/dist/esm/{header-1-C1Hnxki8.js → header-1-umkpdspt.js} +1 -1
  241. package/dist/esm/{header-3-Bq8fpjm-.js → header-3-CD5K5vCa.js} +1 -1
  242. package/dist/esm/hidden-input_2.entry.js +7 -7
  243. package/dist/esm/{input-handlers-CX6mSvOM.js → input-handlers-D3y0TzH9.js} +1 -1
  244. package/dist/esm/{insurance-state-CVme82j7.js → insurance-state-sR5DrCdu.js} +1 -1
  245. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +127 -70
  246. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +22 -23
  247. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  248. package/dist/esm/justifi-apple-pay_8.entry.js +16 -18
  249. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +22 -23
  250. package/dist/esm/justifi-business-details.entry.js +10 -12
  251. package/dist/esm/justifi-business-form.entry.js +23 -19
  252. package/dist/esm/justifi-business-representative-form-inputs.entry.js +15 -7
  253. package/dist/esm/justifi-checkout.entry.js +9 -11
  254. package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -7
  255. package/dist/esm/justifi-checkouts-list.entry.js +12 -14
  256. package/dist/esm/justifi-details.entry.js +3 -3
  257. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  258. package/dist/esm/justifi-dispute-management.entry.js +8 -10
  259. package/dist/esm/justifi-dispute-notification_3.entry.js +13 -15
  260. package/dist/esm/justifi-gross-payment-chart.entry.js +8 -10
  261. package/dist/esm/justifi-order-terminals.entry.js +12 -14
  262. package/dist/esm/justifi-owner-form_3.entry.js +27 -18
  263. package/dist/esm/justifi-payment-details.entry.js +10 -12
  264. package/dist/esm/justifi-payment-provisioning-core.entry.js +38 -23
  265. package/dist/esm/justifi-payment-provisioning.entry.js +8 -10
  266. package/dist/esm/justifi-payment-transactions-list.entry.js +11 -13
  267. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  268. package/dist/esm/justifi-payments-list.entry.js +12 -14
  269. package/dist/esm/justifi-payout-details.entry.js +9 -11
  270. package/dist/esm/justifi-payout-transactions-list.entry.js +11 -13
  271. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  272. package/dist/esm/justifi-payouts-list.entry.js +13 -15
  273. package/dist/esm/justifi-refund-payment.entry.js +11 -13
  274. package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
  275. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -11
  276. package/dist/esm/justifi-skeleton.entry.js +3 -3
  277. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -8
  278. package/dist/esm/justifi-terminal-orders-list.entry.js +10 -12
  279. package/dist/esm/justifi-terminals-list-filters.entry.js +5 -7
  280. package/dist/esm/justifi-terminals-list.entry.js +12 -14
  281. package/dist/esm/loader.js +1 -1
  282. package/dist/esm/{package-DL-q4EcN.js → package-yiqa5abX.js} +1 -1
  283. package/dist/esm/pagination-menu.entry.js +4 -4
  284. package/dist/esm/{parts-xDbRW9xn.js → parts-Dj_zevuD.js} +1 -1
  285. package/dist/esm/payment-details-core.entry.js +16 -18
  286. package/dist/esm/payment-method-option.entry.js +2 -2
  287. package/dist/esm/{payment.service-BoQ1MW1k.js → payment.service-C0xnydJ8.js} +3 -3
  288. package/dist/esm/payments-list-core.entry.js +10 -12
  289. package/dist/esm/{payments-status-cvtVmtY5.js → payments-status-CzazNnFv.js} +1 -1
  290. package/dist/esm/{payments-table-D_BlyU1F.js → payments-table-BPKxBAJ0.js} +3 -3
  291. package/dist/esm/payout-details-core.entry.js +10 -10
  292. package/dist/esm/{payout.service-xcBdom3q.js → payout.service-Cl4yxnrx.js} +3 -3
  293. package/dist/esm/payouts-list-core.entry.js +10 -12
  294. package/dist/esm/{payouts-status-D-vjrqBb.js → payouts-status-rKlX41bK.js} +1 -1
  295. package/dist/esm/{payouts-table-Clj8YGLV.js → payouts-table-C6ZDcd_-.js} +3 -3
  296. package/dist/esm/{schema-validations-B9dmY7ME.js → schema-validations-BFoU1cR8.js} +41 -6
  297. package/dist/esm/{skeleton-B8EUwt4b.js → skeleton-BEoPu3My.js} +1 -1
  298. package/dist/esm/{spinner-CYXkn1fh.js → spinner-Ac-w5zWg.js} +1 -1
  299. package/dist/esm/{table-Bj20uWfu.js → table-BCwizIf9.js} +2 -2
  300. package/dist/esm/table-filters-menu.entry.js +3 -3
  301. package/dist/esm/terminal-orders-list-core.entry.js +9 -11
  302. package/dist/esm/{terminal-orders-table-DzBpIW8i.js → terminal-orders-table-BBQsoUh8.js} +5 -5
  303. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  304. package/dist/esm/{terminal.service-l6zTIPZ3.js → terminal.service-mwaS-Mbj.js} +3 -3
  305. package/dist/esm/terminals-list-core.entry.js +9 -11
  306. package/dist/esm/{terminals-table-BMS5tazC.js → terminals-table-ByiFdTfy.js} +3 -3
  307. package/dist/esm/{utils-BOijEGPV.js → utils-CIaHqjQt.js} +1 -1
  308. package/dist/esm/{utils-DRwofES0.js → utils-KBIYAa0D.js} +1 -1
  309. package/dist/esm/webcomponents.js +1 -1
  310. package/dist/module/Business.js +290 -3
  311. package/dist/module/additional-questions.js +2 -2
  312. package/dist/module/additional-statement.js +2 -2
  313. package/dist/module/bank-account-billing-form-simple.js +1 -1
  314. package/dist/module/bank-account-document-inputs.js +1 -1
  315. package/dist/module/bank-account-form-inputs-canada.d.ts +11 -0
  316. package/dist/module/bank-account-form-inputs-canada.js +6 -0
  317. package/dist/module/bank-account-form-inputs-canada2.js +68 -0
  318. package/dist/module/bank-account-form-inputs2.js +9 -2
  319. package/dist/module/bank-account-form.js +2 -2
  320. package/dist/module/bank-account-read-only-value.d.ts +11 -0
  321. package/dist/module/bank-account-read-only-value.js +6 -0
  322. package/dist/module/bank-account-read-only-value2.js +33 -0
  323. package/dist/module/bank-account.js +2 -2
  324. package/dist/module/billing-form-full.js +1 -1
  325. package/dist/module/business-additional-questions-form-step.js +1 -1
  326. package/dist/module/business-address-schema.js +40 -20
  327. package/dist/module/business-bank-account-form-step-core.js +101 -48
  328. package/dist/module/business-bank-account-form-step.js +18 -5
  329. package/dist/module/business-core-info-form-step-core.js +22 -7
  330. package/dist/module/business-core-info-form-step.js +2 -1
  331. package/dist/module/business-core-info-schema.js +26 -5
  332. package/dist/module/business-core-info.js +12 -4
  333. package/dist/module/business-identity-schema.js +52 -25
  334. package/dist/module/business-owners-form-step-core.js +20 -13
  335. package/dist/module/business-owners-form-step.js +22 -15
  336. package/dist/module/business-representative-form-inputs.js +34 -17
  337. package/dist/module/business-representative-form-step-core.js +29 -18
  338. package/dist/module/business-representative-form-step.js +24 -17
  339. package/dist/module/business-representative.js +37 -19
  340. package/dist/module/business-terms-conditions-form-step.js +1 -1
  341. package/dist/module/button.js +1 -1
  342. package/dist/module/cancellation-policy.js +2 -2
  343. package/dist/module/card-billing-form-simple.js +1 -1
  344. package/dist/module/card-form.js +2 -2
  345. package/dist/module/card-form2.js +2 -2
  346. package/dist/module/checkouts-list-core2.js +1 -1
  347. package/dist/module/country-config.js +64 -0
  348. package/dist/module/custom-popper2.js +2 -2
  349. package/dist/module/customer-details.js +2 -2
  350. package/dist/module/details.js +1 -1
  351. package/dist/module/dispute-management-core.js +1 -1
  352. package/dist/module/dispute-notification.js +2 -2
  353. package/dist/module/dispute-response-core.js +2 -2
  354. package/dist/module/dispute-response.js +1 -1
  355. package/dist/module/duplicate-charge.js +2 -2
  356. package/dist/module/electronic-evidence.js +2 -2
  357. package/dist/module/form-address-fields.js +65 -0
  358. package/dist/module/form-control-checkbox2.js +2 -2
  359. package/dist/module/form-control-date2.js +2 -2
  360. package/dist/module/form-control-file-v22.js +1 -1
  361. package/dist/module/form-control-file2.js +2 -2
  362. package/dist/module/form-control-monetary-provisioning2.js +2 -2
  363. package/dist/module/form-control-monetary2.js +2 -2
  364. package/dist/module/form-control-number-masked2.js +2 -2
  365. package/dist/module/form-control-number.js +2 -2
  366. package/dist/module/form-control-radio2.js +2 -2
  367. package/dist/module/form-control-select2.js +2 -2
  368. package/dist/module/form-control-text2.js +2 -2
  369. package/dist/module/form-control-textarea2.js +2 -2
  370. package/dist/module/form-input-masks.js +9 -3
  371. package/dist/module/get-business.js +1 -1
  372. package/dist/module/gross-payment-chart-core2.js +1 -1
  373. package/dist/module/hidden-input2.js +1 -1
  374. package/dist/module/identity-address-form.js +16 -14
  375. package/dist/module/iframe-input2.js +3 -3
  376. package/dist/module/input-handlers.js +1 -1
  377. package/dist/module/justifi-business-form.js +41 -29
  378. package/dist/module/justifi-button2.js +1 -1
  379. package/dist/module/justifi-checkout.js +2 -2
  380. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  381. package/dist/module/justifi-checkouts-list.js +1 -1
  382. package/dist/module/justifi-dispute-management.js +1 -1
  383. package/dist/module/justifi-form-address-fields.d.ts +11 -0
  384. package/dist/module/justifi-form-address-fields.js +6 -0
  385. package/dist/module/justifi-header2.js +1 -1
  386. package/dist/module/justifi-order-terminals.js +3 -3
  387. package/dist/module/justifi-payment-provisioning.js +67 -49
  388. package/dist/module/justifi-payment-transactions-list.js +1 -1
  389. package/dist/module/justifi-payments-list-filters.js +2 -2
  390. package/dist/module/justifi-payments-list.js +1 -1
  391. package/dist/module/justifi-payout-transactions-list.js +1 -1
  392. package/dist/module/justifi-payouts-list-filters.js +2 -2
  393. package/dist/module/justifi-payouts-list.js +1 -1
  394. package/dist/module/justifi-radio-list-item2.js +1 -1
  395. package/dist/module/justifi-saved-payment-method.js +1 -1
  396. package/dist/module/justifi-skeleton.js +1 -1
  397. package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
  398. package/dist/module/justifi-terminal-orders-list.js +1 -1
  399. package/dist/module/justifi-terminals-list-filters.js +1 -1
  400. package/dist/module/justifi-terminals-list.js +1 -1
  401. package/dist/module/legal-address-form-step-core.js +26 -19
  402. package/dist/module/legal-address-form-step.js +16 -9
  403. package/dist/module/legal-address-form.js +18 -15
  404. package/dist/module/modular-checkout.js +1 -1
  405. package/dist/module/owner-form-core2.js +23 -15
  406. package/dist/module/owner-form-inputs2.js +34 -15
  407. package/dist/module/owner-form.js +20 -13
  408. package/dist/module/package.js +1 -1
  409. package/dist/module/pagination-menu2.js +3 -3
  410. package/dist/module/parts.js +1 -1
  411. package/dist/module/payment-details-core2.js +8 -8
  412. package/dist/module/payment-method-option.js +1 -1
  413. package/dist/module/payment-provisioning-core.js +104 -69
  414. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  415. package/dist/module/payment-provisioning-form-steps.js +75 -54
  416. package/dist/module/payments-list-core2.js +1 -1
  417. package/dist/module/payout-details-core2.js +3 -3
  418. package/dist/module/payouts-list-core2.js +1 -1
  419. package/dist/module/product-or-service.js +2 -2
  420. package/dist/module/refund-policy.js +2 -2
  421. package/dist/module/save-new-payment-method.js +1 -1
  422. package/dist/module/schema-validations.js +41 -6
  423. package/dist/module/shipping-details.js +2 -2
  424. package/dist/module/summary.js +1 -1
  425. package/dist/module/table-filters-menu2.js +1 -1
  426. package/dist/module/terminal-orders-list-core2.js +1 -1
  427. package/dist/module/terminal-quantity-selector2.js +2 -2
  428. package/dist/module/terminals-list-core2.js +1 -1
  429. package/dist/module/tokenize-payment-method.js +1 -1
  430. package/dist/types/api/BankAccount.d.ts +6 -0
  431. package/dist/types/api/Business.d.ts +9 -0
  432. package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +3 -0
  433. package/dist/types/components/business-forms/business-form/business-form.d.ts +2 -0
  434. package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +4 -1
  435. package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +2 -0
  436. package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +2 -0
  437. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
  438. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +3 -0
  439. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  440. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.d.ts +7 -0
  441. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.d.ts +5 -0
  442. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +5 -0
  443. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
  444. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -0
  445. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -0
  446. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -0
  447. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -0
  448. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +3 -0
  449. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -0
  450. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -0
  451. package/dist/types/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.d.ts +8 -0
  452. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -0
  453. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -0
  454. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +4 -2
  455. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +2 -0
  456. package/dist/types/components/business-forms/payment-provisioning/test/mockBusiness.d.ts +12 -0
  457. package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +54 -2
  458. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +14 -16
  459. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +67 -3
  460. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +165 -7
  461. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +122 -2
  462. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +5 -0
  463. package/dist/types/components.d.ts +119 -10
  464. package/dist/types/utils/country-codes.d.ts +4 -0
  465. package/dist/types/utils/form-input-masks.d.ts +1 -0
  466. package/dist/types/utils/province-options.d.ts +5 -0
  467. package/dist/webcomponents/p-0926c397.entry.js +1 -0
  468. package/dist/webcomponents/p-09aaaf03.entry.js +1 -0
  469. package/dist/webcomponents/p-0b36f1a8.entry.js +1 -0
  470. package/dist/webcomponents/p-10537b60.entry.js +1 -0
  471. package/dist/webcomponents/p-164fe6d3.entry.js +1 -0
  472. package/dist/webcomponents/{p-0eb69f41.entry.js → p-1c362f36.entry.js} +1 -1
  473. package/dist/webcomponents/{p-0217783c.entry.js → p-221ec54e.entry.js} +4 -4
  474. package/dist/webcomponents/p-24621c40.entry.js +1 -0
  475. package/dist/webcomponents/{p-cff5dd60.entry.js → p-2ebc8539.entry.js} +1 -1
  476. package/dist/webcomponents/p-30848456.entry.js +1 -0
  477. package/dist/webcomponents/p-3b43f8c0.entry.js +1 -0
  478. package/dist/webcomponents/p-4a0f34de.entry.js +1 -0
  479. package/dist/webcomponents/p-4d243123.entry.js +1 -0
  480. package/dist/webcomponents/p-4d6e0ebe.entry.js +1 -0
  481. package/dist/webcomponents/p-4e57359c.entry.js +1 -0
  482. package/dist/webcomponents/p-5277f2a6.entry.js +1 -0
  483. package/dist/webcomponents/p-54cea29e.entry.js +1 -0
  484. package/dist/webcomponents/{p-7c8deca8.entry.js → p-580f3bb6.entry.js} +1 -1
  485. package/dist/webcomponents/p-5de4d9e4.entry.js +1 -0
  486. package/dist/webcomponents/p-5fcfedb2.entry.js +1 -0
  487. package/dist/webcomponents/p-6190fbb7.entry.js +1 -0
  488. package/dist/webcomponents/p-620ec409.entry.js +1 -0
  489. package/dist/webcomponents/p-65090485.entry.js +1 -0
  490. package/dist/webcomponents/p-66833631.entry.js +1 -0
  491. package/dist/webcomponents/p-68aeb5bd.entry.js +1 -0
  492. package/dist/webcomponents/p-6d61092c.entry.js +1 -0
  493. package/dist/webcomponents/p-72f5e234.entry.js +1 -0
  494. package/dist/webcomponents/p-7498759d.entry.js +1 -0
  495. package/dist/webcomponents/p-760e739c.entry.js +1 -0
  496. package/dist/webcomponents/p-81099469.entry.js +1 -0
  497. package/dist/webcomponents/p-82723f07.entry.js +1 -0
  498. package/dist/webcomponents/p-86372164.entry.js +1 -0
  499. package/dist/webcomponents/{p-b608add9.entry.js → p-8896ab68.entry.js} +1 -1
  500. package/dist/webcomponents/p-89052ce0.entry.js +1 -0
  501. package/dist/webcomponents/{p-ClvhB3WW.js → p-890S0Nwr.js} +1 -1
  502. package/dist/webcomponents/{p-37a93597.entry.js → p-8a156528.entry.js} +1 -1
  503. package/dist/webcomponents/p-8a68be8f.entry.js +1 -0
  504. package/dist/webcomponents/p-91b09245.entry.js +1 -0
  505. package/dist/webcomponents/p-9ce44689.entry.js +1 -0
  506. package/dist/webcomponents/p-B5rtFhtR.js +1 -0
  507. package/dist/webcomponents/{p-CEk3bv0x.js → p-B9MN_vv4.js} +1 -1
  508. package/dist/webcomponents/p-BIcS6lTe.js +1 -0
  509. package/dist/webcomponents/{p-BBx_EQqR.js → p-BRbqaU66.js} +1 -1
  510. package/dist/webcomponents/{p-Bgnhf5c9.js → p-BS7OgSQe.js} +1 -1
  511. package/dist/webcomponents/p-BT473_5I.js +1 -0
  512. package/dist/webcomponents/p-BXMAoCNA.js +1 -0
  513. package/dist/webcomponents/{p-B6IWa9Ph.js → p-BYrSeoci.js} +1 -1
  514. package/dist/webcomponents/{p-CCmDcLao.js → p-BdmYH_IK.js} +1 -1
  515. package/dist/webcomponents/p-BkaPXFTl.js +1 -0
  516. package/dist/webcomponents/{p-hbWSMN3O.js → p-Bm8T-MOQ.js} +1 -1
  517. package/dist/webcomponents/p-BwBb2Opu.js +1 -0
  518. package/dist/webcomponents/p-C6g4MbnB.js +1 -0
  519. package/dist/webcomponents/{p-1ydcg9ti.js → p-C77ElQ41.js} +1 -1
  520. package/dist/webcomponents/p-CJ9qo7_g.js +1 -0
  521. package/dist/webcomponents/{p-C98BC5W5.js → p-CPKSE7M4.js} +1 -1
  522. package/dist/webcomponents/{p-yH3TC3ZQ.js → p-CPpUGsw5.js} +1 -1
  523. package/dist/webcomponents/p-CQQ0H4Pb.js +1 -0
  524. package/dist/webcomponents/p-CTAOJGVx.js +1 -0
  525. package/dist/webcomponents/p-CVaOFfrI.js +1 -0
  526. package/dist/webcomponents/p-CVtpEQBE.js +1 -0
  527. package/dist/webcomponents/p-D9Yus-je.js +1 -0
  528. package/dist/webcomponents/p-DIdnZUSh.js +1 -0
  529. package/dist/webcomponents/{p-CH8Y3GSr.js → p-DSCBoCn-.js} +1 -1
  530. package/dist/webcomponents/p-DfKxeSrC.js +1 -0
  531. package/dist/webcomponents/{p-D5Jb9OcR.js → p-DfsX5bt_.js} +1 -1
  532. package/dist/webcomponents/{p-xDbRW9xn.js → p-Dj_zevuD.js} +1 -1
  533. package/dist/webcomponents/p-DqPvh0aN.js +1 -0
  534. package/dist/webcomponents/p-DxVCqvBt.js +1 -0
  535. package/dist/webcomponents/p-DxnXyWPn.js +1 -0
  536. package/dist/webcomponents/p-Dy3-IlQ3.js +1 -0
  537. package/dist/webcomponents/p-Dyk0thEr.js +1 -0
  538. package/dist/webcomponents/p-DzWLLt4t.js +1 -0
  539. package/dist/webcomponents/{p-CmBCj61h.js → p-F6TcNeK4.js} +1 -1
  540. package/dist/webcomponents/{p-au49QgoI.js → p-IYf7zn5J.js} +1 -1
  541. package/dist/webcomponents/{p-C0wTyoTh.js → p-UUJudj_5.js} +1 -1
  542. package/dist/webcomponents/{p-0cac8468.entry.js → p-a2344efb.entry.js} +1 -1
  543. package/dist/webcomponents/p-a42ec25b.entry.js +1 -0
  544. package/dist/webcomponents/p-a81f9fc3.entry.js +1 -0
  545. package/dist/webcomponents/p-aa51c9e6.entry.js +1 -0
  546. package/dist/webcomponents/p-af31dc6d.entry.js +1 -0
  547. package/dist/webcomponents/p-b4b5dd24.entry.js +1 -0
  548. package/dist/webcomponents/p-b4bb6fa6.entry.js +1 -0
  549. package/dist/webcomponents/p-b72794e3.entry.js +1 -0
  550. package/dist/webcomponents/p-be0cbdf9.entry.js +1 -0
  551. package/dist/webcomponents/p-c4d919be.entry.js +1 -0
  552. package/dist/webcomponents/p-c796f813.entry.js +1 -0
  553. package/dist/webcomponents/p-c8656d20.entry.js +1 -0
  554. package/dist/webcomponents/{p-0cf71cbd.entry.js → p-c8e94ab9.entry.js} +1 -1
  555. package/dist/webcomponents/p-c9bed02a.entry.js +1 -0
  556. package/dist/webcomponents/p-cca865be.entry.js +1 -0
  557. package/dist/webcomponents/p-cd108cae.entry.js +1 -0
  558. package/dist/webcomponents/p-cfd3035e.entry.js +1 -0
  559. package/dist/webcomponents/p-d7558874.entry.js +1 -0
  560. package/dist/webcomponents/p-d8c2cea4.entry.js +1 -0
  561. package/dist/webcomponents/p-e2ab3f61.entry.js +1 -0
  562. package/dist/webcomponents/p-e4e6f3b8.entry.js +1 -0
  563. package/dist/webcomponents/p-e60e7f6a.entry.js +1 -0
  564. package/dist/webcomponents/p-ef8ac9f4.entry.js +1 -0
  565. package/dist/webcomponents/p-f4a1d3da.entry.js +1 -0
  566. package/dist/webcomponents/p-f72f67ef.entry.js +1 -0
  567. package/dist/webcomponents/p-fcb185fd.entry.js +1 -0
  568. package/dist/webcomponents/p-fdf5a349.entry.js +1 -0
  569. package/dist/webcomponents/{p-C8k7a6D-.js → p-i--LPP1s.js} +1 -1
  570. package/dist/webcomponents/p-sCHf--Vc.js +1 -0
  571. package/dist/webcomponents/{p-DdZLLkQ5.js → p-ty1sI-fI.js} +1 -1
  572. package/dist/webcomponents/p-yiqa5abX.js +1 -0
  573. package/dist/webcomponents/webcomponents.esm.js +1 -1
  574. package/package.json +13 -13
  575. package/LICENSE +0 -21
  576. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +0 -112
  577. package/dist/cjs/business-identity-schema-aFUle0C9.js +0 -51
  578. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +0 -107
  579. package/dist/cjs/helpers-B5OCqlIM.js +0 -35
  580. package/dist/cjs/state-options-CIT9xdTz.js +0 -246
  581. package/dist/esm/bank-account-document-form-inputs_4.entry.js +0 -107
  582. package/dist/esm/business-identity-schema-CDJzknbg.js +0 -48
  583. package/dist/esm/form-control-number-masked_2.entry.js +0 -104
  584. package/dist/esm/helpers-Mu7LQT-w.js +0 -29
  585. package/dist/esm/state-options-BX8GieXu.js +0 -244
  586. package/dist/module/helpers.js +0 -29
  587. package/dist/module/state-options.js +0 -244
  588. package/dist/webcomponents/p-0256af65.entry.js +0 -1
  589. package/dist/webcomponents/p-0af5269e.entry.js +0 -1
  590. package/dist/webcomponents/p-0f47f052.entry.js +0 -1
  591. package/dist/webcomponents/p-28a3bf32.entry.js +0 -1
  592. package/dist/webcomponents/p-2b568e8e.entry.js +0 -1
  593. package/dist/webcomponents/p-2d300faa.entry.js +0 -1
  594. package/dist/webcomponents/p-30856338.entry.js +0 -1
  595. package/dist/webcomponents/p-328117e4.entry.js +0 -1
  596. package/dist/webcomponents/p-32978110.entry.js +0 -1
  597. package/dist/webcomponents/p-47997bc2.entry.js +0 -1
  598. package/dist/webcomponents/p-50701f16.entry.js +0 -1
  599. package/dist/webcomponents/p-5235230f.entry.js +0 -1
  600. package/dist/webcomponents/p-526b7442.entry.js +0 -1
  601. package/dist/webcomponents/p-5aae36f3.entry.js +0 -1
  602. package/dist/webcomponents/p-5b5d7a8f.entry.js +0 -1
  603. package/dist/webcomponents/p-5bd3d86e.entry.js +0 -1
  604. package/dist/webcomponents/p-66db858a.entry.js +0 -1
  605. package/dist/webcomponents/p-720a2324.entry.js +0 -1
  606. package/dist/webcomponents/p-78cb62a8.entry.js +0 -1
  607. package/dist/webcomponents/p-7dc9ef8a.entry.js +0 -1
  608. package/dist/webcomponents/p-84551ee4.entry.js +0 -1
  609. package/dist/webcomponents/p-854b3db0.entry.js +0 -1
  610. package/dist/webcomponents/p-85a2eac6.entry.js +0 -1
  611. package/dist/webcomponents/p-8663e8bd.entry.js +0 -1
  612. package/dist/webcomponents/p-89f6ad8f.entry.js +0 -1
  613. package/dist/webcomponents/p-8S_ROmnq.js +0 -1
  614. package/dist/webcomponents/p-8ca21fab.entry.js +0 -1
  615. package/dist/webcomponents/p-8cebc84b.entry.js +0 -1
  616. package/dist/webcomponents/p-8f8dfd4b.entry.js +0 -1
  617. package/dist/webcomponents/p-94237472.entry.js +0 -1
  618. package/dist/webcomponents/p-9ad7d724.entry.js +0 -1
  619. package/dist/webcomponents/p-B-iV5cYd.js +0 -1
  620. package/dist/webcomponents/p-BX8GieXu.js +0 -1
  621. package/dist/webcomponents/p-BjNuRWXK.js +0 -1
  622. package/dist/webcomponents/p-BlJnA265.js +0 -1
  623. package/dist/webcomponents/p-BoQ6_4Ks.js +0 -1
  624. package/dist/webcomponents/p-C9EQ459H.js +0 -1
  625. package/dist/webcomponents/p-C9iide2W.js +0 -1
  626. package/dist/webcomponents/p-CCLgieAN.js +0 -1
  627. package/dist/webcomponents/p-D0Peuz-m.js +0 -1
  628. package/dist/webcomponents/p-D6BImiVi.js +0 -1
  629. package/dist/webcomponents/p-DH8F0bsw.js +0 -1
  630. package/dist/webcomponents/p-DL-q4EcN.js +0 -1
  631. package/dist/webcomponents/p-DQZ5VHTZ.js +0 -1
  632. package/dist/webcomponents/p-DWn9BiNn.js +0 -1
  633. package/dist/webcomponents/p-DfV3dFDB.js +0 -1
  634. package/dist/webcomponents/p-Dt-vy9Le.js +0 -1
  635. package/dist/webcomponents/p-NAjz1Xfo.js +0 -1
  636. package/dist/webcomponents/p-PSJOKMWp.js +0 -1
  637. package/dist/webcomponents/p-RQzxYnz_.js +0 -1
  638. package/dist/webcomponents/p-T2yENPvU.js +0 -1
  639. package/dist/webcomponents/p-a5c70eee.entry.js +0 -1
  640. package/dist/webcomponents/p-aa14cc74.entry.js +0 -1
  641. package/dist/webcomponents/p-ae7054bf.entry.js +0 -1
  642. package/dist/webcomponents/p-ae8ae5bb.entry.js +0 -1
  643. package/dist/webcomponents/p-b095c781.entry.js +0 -1
  644. package/dist/webcomponents/p-b36adce3.entry.js +0 -1
  645. package/dist/webcomponents/p-b612d870.entry.js +0 -1
  646. package/dist/webcomponents/p-baf0d3e7.entry.js +0 -1
  647. package/dist/webcomponents/p-bb53e2e9.entry.js +0 -1
  648. package/dist/webcomponents/p-be05d450.entry.js +0 -1
  649. package/dist/webcomponents/p-c089fb5f.entry.js +0 -1
  650. package/dist/webcomponents/p-ce652ff9.entry.js +0 -1
  651. package/dist/webcomponents/p-d0a2035f.entry.js +0 -1
  652. package/dist/webcomponents/p-d1bceac6.entry.js +0 -1
  653. package/dist/webcomponents/p-d37d752e.entry.js +0 -1
  654. package/dist/webcomponents/p-d4476052.entry.js +0 -1
  655. package/dist/webcomponents/p-d7f91c48.entry.js +0 -1
  656. package/dist/webcomponents/p-d84f0122.entry.js +0 -1
  657. package/dist/webcomponents/p-e55a161f.entry.js +0 -1
  658. package/dist/webcomponents/p-e6be4e19.entry.js +0 -1
  659. package/dist/webcomponents/p-ec9514f8.entry.js +0 -1
  660. package/dist/webcomponents/p-f11a74c3.entry.js +0 -1
  661. package/dist/webcomponents/p-f705fc49.entry.js +0 -1
  662. package/dist/webcomponents/p-f930acaa.entry.js +0 -1
  663. package/dist/webcomponents/p-fe8c2243.entry.js +0 -1
  664. package/dist/webcomponents/p-fedfe376.entry.js +0 -1
  665. package/dist/webcomponents/p-ffefa09c.entry.js +0 -1
  666. package/dist/webcomponents/p-h5pyZngT.js +0 -1
  667. package/dist/webcomponents/p-tYuXMkCd.js +0 -1
  668. package/dist/webcomponents/p-wQgEEOq_.js +0 -1
@@ -1,16 +1,15 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { a as addressSchema } from './business-address-schema.js';
2
+ import { c as addressSchemaByCountry } from './business-address-schema.js';
3
3
  import { F as FormController } from './form.js';
4
- import { b as Address } from './Business.js';
5
- import { S as StateOptions } from './state-options.js';
6
- import { n as numberOnlyHandler } from './utils3.js';
4
+ import { c as Address } from './Business.js';
7
5
  import { h as heading2 } from './parts.js';
8
6
  import { P as PaymentProvisioningLoading } from './payment-provisioning-loading.js';
9
7
  import { B as BusinessFormStep } from './event-types2.js';
10
- import { d as defineCustomElement$4 } from './custom-popper2.js';
11
- import { d as defineCustomElement$3 } from './form-control-select2.js';
12
- import { d as defineCustomElement$2 } from './form-control-text2.js';
13
- import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
8
+ import { d as defineCustomElement$5 } from './custom-popper2.js';
9
+ import { d as defineCustomElement$4 } from './form-control-select2.js';
10
+ import { d as defineCustomElement$3 } from './form-control-text2.js';
11
+ import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
12
+ import { d as defineCustomElement$1 } from './form-address-fields.js';
14
13
 
15
14
  const LegalAddressFormStepCore = /*@__PURE__*/ proxyCustomElement(class LegalAddressFormStepCore extends HTMLElement {
16
15
  constructor(registerHost) {
@@ -25,11 +24,15 @@ const LegalAddressFormStepCore = /*@__PURE__*/ proxyCustomElement(class LegalAdd
25
24
  this.legal_address = {};
26
25
  this.isLoading = false;
27
26
  this.getData = () => {
27
+ if (!this.getBusiness)
28
+ return;
28
29
  this.formLoading.emit(true);
29
30
  this.isLoading = true;
30
31
  this.getBusiness({
31
32
  onSuccess: (response) => {
32
- this.legal_address = new Address(response.data.legal_address || {});
33
+ const business = response.data || {};
34
+ const address = new Address(business.legal_address || {});
35
+ this.legal_address = Object.assign(Object.assign({}, address), { country: this.country });
33
36
  this.formController.setInitialValues(Object.assign({}, this.legal_address));
34
37
  },
35
38
  onError: ({ error, code, severity }) => {
@@ -81,8 +84,9 @@ const LegalAddressFormStepCore = /*@__PURE__*/ proxyCustomElement(class LegalAdd
81
84
  return { legal_address: formValues };
82
85
  }
83
86
  componentWillLoad() {
84
- this.getBusiness && this.getData();
85
- this.formController = new FormController(addressSchema(this.allowOptionalFields));
87
+ const schemaFactory = addressSchemaByCountry[this.country];
88
+ this.formController = new FormController(schemaFactory(this.allowOptionalFields));
89
+ this.getData();
86
90
  }
87
91
  componentDidLoad() {
88
92
  this.formController.errors.subscribe(errors => {
@@ -90,19 +94,17 @@ const LegalAddressFormStepCore = /*@__PURE__*/ proxyCustomElement(class LegalAdd
90
94
  });
91
95
  }
92
96
  render() {
93
- var _a, _b, _c, _d, _e, _f;
94
97
  const legalAddressDefaultValue = this.formController.getInitialValues();
95
98
  if (this.isLoading) {
96
99
  return h(PaymentProvisioningLoading, null);
97
100
  }
98
- return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Legal Address of your Business"), h("form-control-tooltip", { helpText: "No PO Boxes." })), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { class: "col-12" }, h("form-control-text", { name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { class: "col-12" }, h("form-control-text", { name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { class: "col-12" }, h("form-control-select", { name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { class: "col-12" }, h("form-control-text", { name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: "country", label: "Country", options: [{ label: "United States", value: "USA" }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
99
- // just for now so we skip handling country specificities
100
- disabled: true }))))));
101
+ return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Legal Address of your Business"), h("form-control-tooltip", { helpText: "No PO Boxes." })), h("hr", { class: "mt-2" }), h("justifi-form-address-fields", { country: this.country, errors: this.errors, defaultValues: legalAddressDefaultValue, inputHandler: this.inputHandler }))));
101
102
  }
102
103
  }, [256, "justifi-legal-address-form-step-core", {
103
104
  "getBusiness": [16],
104
105
  "patchBusiness": [16],
105
106
  "allowOptionalFields": [4, "allow-optional-fields"],
107
+ "country": [1],
106
108
  "formController": [32],
107
109
  "errors": [32],
108
110
  "legal_address": [32],
@@ -113,7 +115,7 @@ function defineCustomElement() {
113
115
  if (typeof customElements === "undefined") {
114
116
  return;
115
117
  }
116
- const components = ["justifi-legal-address-form-step-core", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip"];
118
+ const components = ["justifi-legal-address-form-step-core", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-form-address-fields"];
117
119
  components.forEach(tagName => { switch (tagName) {
118
120
  case "justifi-legal-address-form-step-core":
119
121
  if (!customElements.get(tagName)) {
@@ -122,20 +124,25 @@ function defineCustomElement() {
122
124
  break;
123
125
  case "custom-popper":
124
126
  if (!customElements.get(tagName)) {
125
- defineCustomElement$4();
127
+ defineCustomElement$5();
126
128
  }
127
129
  break;
128
130
  case "form-control-select":
129
131
  if (!customElements.get(tagName)) {
130
- defineCustomElement$3();
132
+ defineCustomElement$4();
131
133
  }
132
134
  break;
133
135
  case "form-control-text":
134
136
  if (!customElements.get(tagName)) {
135
- defineCustomElement$2();
137
+ defineCustomElement$3();
136
138
  }
137
139
  break;
138
140
  case "form-control-tooltip":
141
+ if (!customElements.get(tagName)) {
142
+ defineCustomElement$2();
143
+ }
144
+ break;
145
+ case "justifi-form-address-fields":
139
146
  if (!customElements.get(tagName)) {
140
147
  defineCustomElement$1();
141
148
  }
@@ -2,10 +2,11 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
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$5 } from './custom-popper2.js';
6
- import { d as defineCustomElement$4 } from './form-control-select2.js';
7
- import { d as defineCustomElement$3 } from './form-control-text2.js';
8
- import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
5
+ import { d as defineCustomElement$6 } from './custom-popper2.js';
6
+ import { d as defineCustomElement$5 } from './form-control-select2.js';
7
+ import { d as defineCustomElement$4 } from './form-control-text2.js';
8
+ import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
9
+ import { d as defineCustomElement$2 } from './form-address-fields.js';
9
10
  import { d as defineCustomElement$1 } from './legal-address-form-step-core.js';
10
11
 
11
12
  const LegalAddressFormStep = /*@__PURE__*/ proxyCustomElement(class LegalAddressFormStep extends HTMLElement {
@@ -47,7 +48,7 @@ const LegalAddressFormStep = /*@__PURE__*/ proxyCustomElement(class LegalAddress
47
48
  }
48
49
  }
49
50
  render() {
50
- return (h("justifi-legal-address-form-step-core", { key: 'bd286476461181f2e8a435a97bf148d55876b49c', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
51
+ return (h("justifi-legal-address-form-step-core", { key: '1e4419d2e8c75721883171124185590efe459fc9', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, country: this.country, ref: el => this.coreComponent = el }));
51
52
  }
52
53
  static get watchers() { return {
53
54
  "authToken": ["propChanged"],
@@ -57,6 +58,7 @@ const LegalAddressFormStep = /*@__PURE__*/ proxyCustomElement(class LegalAddress
57
58
  "authToken": [1, "auth-token"],
58
59
  "businessId": [1, "business-id"],
59
60
  "allowOptionalFields": [4, "allow-optional-fields"],
61
+ "country": [1],
60
62
  "getBusiness": [32],
61
63
  "patchBusiness": [32],
62
64
  "validateAndSubmit": [64]
@@ -68,7 +70,7 @@ function defineCustomElement() {
68
70
  if (typeof customElements === "undefined") {
69
71
  return;
70
72
  }
71
- const components = ["justifi-legal-address-form-step", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-legal-address-form-step-core"];
73
+ const components = ["justifi-legal-address-form-step", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-form-address-fields", "justifi-legal-address-form-step-core"];
72
74
  components.forEach(tagName => { switch (tagName) {
73
75
  case "justifi-legal-address-form-step":
74
76
  if (!customElements.get(tagName)) {
@@ -77,20 +79,25 @@ function defineCustomElement() {
77
79
  break;
78
80
  case "custom-popper":
79
81
  if (!customElements.get(tagName)) {
80
- defineCustomElement$5();
82
+ defineCustomElement$6();
81
83
  }
82
84
  break;
83
85
  case "form-control-select":
84
86
  if (!customElements.get(tagName)) {
85
- defineCustomElement$4();
87
+ defineCustomElement$5();
86
88
  }
87
89
  break;
88
90
  case "form-control-text":
89
91
  if (!customElements.get(tagName)) {
90
- defineCustomElement$3();
92
+ defineCustomElement$4();
91
93
  }
92
94
  break;
93
95
  case "form-control-tooltip":
96
+ if (!customElements.get(tagName)) {
97
+ defineCustomElement$3();
98
+ }
99
+ break;
100
+ case "justifi-form-address-fields":
94
101
  if (!customElements.get(tagName)) {
95
102
  defineCustomElement$2();
96
103
  }
@@ -1,11 +1,10 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { S as StateOptions } from './state-options.js';
3
- import { n as numberOnlyHandler } from './utils3.js';
4
2
  import { h as heading2 } from './parts.js';
5
- import { d as defineCustomElement$4 } from './custom-popper2.js';
6
- import { d as defineCustomElement$3 } from './form-control-select2.js';
7
- import { d as defineCustomElement$2 } from './form-control-text2.js';
8
- import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
3
+ import { d as defineCustomElement$5 } from './custom-popper2.js';
4
+ import { d as defineCustomElement$4 } from './form-control-select2.js';
5
+ import { d as defineCustomElement$3 } from './form-control-text2.js';
6
+ import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
7
+ import { d as defineCustomElement$1 } from './form-address-fields.js';
9
8
 
10
9
  const LegalAddressForm = /*@__PURE__*/ proxyCustomElement(class LegalAddressForm extends HTMLElement {
11
10
  constructor(registerHost) {
@@ -24,14 +23,13 @@ const LegalAddressForm = /*@__PURE__*/ proxyCustomElement(class LegalAddressForm
24
23
  this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { legal_address: Object.assign(Object.assign({}, this.formController.values.getValue().legal_address), { [name]: value }) }));
25
24
  }
26
25
  render() {
27
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
26
+ var _a;
28
27
  const legalAddressDefaultValue = this.formController.getInitialValues().legal_address;
29
- return (h(Host, { key: '5b21d99717f9b24c0551c7a96acf68e53e7787bf' }, h("fieldset", { key: 'd63cbd20b2648405c50a819724e0f8cf556f7d26' }, h("legend", { key: 'c0acd14073f13f914015f40d39bf22fb58792434', part: heading2 }, "Business Legal Address"), h("div", { key: 'ee4cee6bd662816f822ee209aeda5e9664f6a64d', class: "row gy-3" }, h("div", { key: '86b258fd09e73cbd2475330419274732231f3871', class: "col-12" }, h("form-control-text", { key: '8d898a9ae448f07932afe2d8cfc2314b92d9c597', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: '1a50c4b86a754035f71efacd39721219fcd54d60', class: "col-12" }, h("form-control-text", { key: '507b1451685e359a900f0bc7010ff39e3631daf2', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '1446b4db5f86a3b18e3aceb78274ffe458dbd3db', class: "col-12" }, h("form-control-text", { key: 'e17e4bd95ad4290d18edde79cf05a6b3a105166c', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '9b880203bad9e104e6d1299ff73c83cba46ab563', class: "col-12" }, h("form-control-select", { key: '24e4df10f688c9a1b5f2af5217f03919bf7abec7', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '71f21b19602c268e3b6a839ce41ff9d4f8ffb8c4', class: "col-12" }, h("form-control-text", { key: 'ca71d3e21c5a0aea5367fa28ec1a2422ba9b1cf3', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'aaee0bf6a24ba182e002c1ffb49736fb622cde1f', class: "col-12" }, h("form-control-select", { key: '2b6486771818e584dcc195c304e5a6e16850b4a9', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
30
- // just for now so we skip handling country specificities
31
- disabled: true }))))));
28
+ return (h(Host, { key: '0e6136a175ee0bb8708d1848ad850bd973f60c4b' }, h("fieldset", { key: '2fcfb7b8cc1bf70157dbfaba7bb5df9ddd82454b' }, h("legend", { key: 'ce30f5e679113cceda046f142e01548a1db573a0', part: heading2 }, "Business Legal Address"), h("justifi-form-address-fields", { key: 'a091d88fb62401c814458d696866de64a26a6bff', country: this.country, errors: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address, defaultValues: legalAddressDefaultValue, inputHandler: this.inputHandler }))));
32
29
  }
33
30
  }, [256, "justifi-legal-address-form", {
34
- "formController": [16],
31
+ "formController": [8, "form-controller"],
32
+ "country": [1],
35
33
  "errors": [32],
36
34
  "legal_address": [32]
37
35
  }]);
@@ -39,7 +37,7 @@ function defineCustomElement() {
39
37
  if (typeof customElements === "undefined") {
40
38
  return;
41
39
  }
42
- const components = ["justifi-legal-address-form", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip"];
40
+ const components = ["justifi-legal-address-form", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-form-address-fields"];
43
41
  components.forEach(tagName => { switch (tagName) {
44
42
  case "justifi-legal-address-form":
45
43
  if (!customElements.get(tagName)) {
@@ -48,20 +46,25 @@ function defineCustomElement() {
48
46
  break;
49
47
  case "custom-popper":
50
48
  if (!customElements.get(tagName)) {
51
- defineCustomElement$4();
49
+ defineCustomElement$5();
52
50
  }
53
51
  break;
54
52
  case "form-control-select":
55
53
  if (!customElements.get(tagName)) {
56
- defineCustomElement$3();
54
+ defineCustomElement$4();
57
55
  }
58
56
  break;
59
57
  case "form-control-text":
60
58
  if (!customElements.get(tagName)) {
61
- defineCustomElement$2();
59
+ defineCustomElement$3();
62
60
  }
63
61
  break;
64
62
  case "form-control-tooltip":
63
+ if (!customElements.get(tagName)) {
64
+ defineCustomElement$2();
65
+ }
66
+ break;
67
+ case "justifi-form-address-fields":
65
68
  if (!customElements.get(tagName)) {
66
69
  defineCustomElement$1();
67
70
  }
@@ -420,7 +420,7 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
420
420
  });
421
421
  }
422
422
  render() {
423
- return h(Host, { key: 'a3619798ffe1de168262d61d7855209b46b01ab5' });
423
+ return h(Host, { key: 'c0267323f405ad4fbcbac4481aeb5286dc98161b' });
424
424
  }
425
425
  get hostEl() { return this; }
426
426
  }, [256, "justifi-modular-checkout", {
@@ -1,19 +1,20 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { F as FormController } from './form.js';
3
3
  import { O as Owner } from './Business.js';
4
- import { i as identitySchema } from './business-identity-schema.js';
4
+ import { i as identitySchemaByCountry } from './business-identity-schema.js';
5
5
  import { B as Button } from './button.js';
6
6
  import { X as heading3 } from './parts.js';
7
7
  import './details.js';
8
8
  import './event-types.js';
9
9
  import './justifi-radio-list-item2.js';
10
10
  import { a as BusinessFormClickActions } from './event-types2.js';
11
- import { d as defineCustomElement$8 } from './custom-popper2.js';
12
- import { d as defineCustomElement$7 } from './form-control-date2.js';
13
- import { d as defineCustomElement$6 } from './form-control-number-masked2.js';
14
- import { d as defineCustomElement$5 } from './form-control-select2.js';
15
- import { d as defineCustomElement$4 } from './form-control-text2.js';
16
- import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
11
+ import { d as defineCustomElement$9 } from './custom-popper2.js';
12
+ import { d as defineCustomElement$8 } from './form-control-date2.js';
13
+ import { d as defineCustomElement$7 } from './form-control-number-masked2.js';
14
+ import { d as defineCustomElement$6 } from './form-control-select2.js';
15
+ import { d as defineCustomElement$5 } from './form-control-text2.js';
16
+ import { d as defineCustomElement$4 } from './form-control-tooltip2.js';
17
+ import { d as defineCustomElement$3 } from './form-address-fields.js';
17
18
  import { d as defineCustomElement$2 } from './identity-address-form.js';
18
19
  import { d as defineCustomElement$1 } from './owner-form-inputs2.js';
19
20
 
@@ -157,14 +158,15 @@ const BusinessOwnerFormCore = /*@__PURE__*/ proxyCustomElement(class BusinessOwn
157
158
  }
158
159
  }
159
160
  componentWillLoad() {
160
- this.formController = new FormController(identitySchema('owner', this.allowOptionalFields));
161
+ const schemaFactory = identitySchemaByCountry[this.country];
162
+ this.formController = new FormController(schemaFactory('owner', this.allowOptionalFields));
161
163
  this.ownerId ? this.getData() : this.instantiateOwner({});
162
164
  }
163
165
  componentDidLoad() {
164
166
  this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
165
167
  }
166
168
  render() {
167
- return (h("form", { key: '570c20c1fdf79268e6c8193a393515c8602a3a44', onSubmit: this.validateAndSubmit }, h("fieldset", { key: 'f4f75a735438baef254d4578b779ca16e5080a41' }, h("legend", { key: 'dc0c83a7ada9f908afec56d7560f7d9d116baa40', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: '5d97c0b38073618aef80ff9576cd57ab0e70d44e' }), h("div", { key: 'b15a207a4c4afc1249ce3b8a381e7b57ceb32e7a', class: "row gy-3" }, h("owner-form-inputs", { key: '21bd3e9b00580e7293338ad746c189d19ac3d98e', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: 'b4653d9b78094b15bfba61e3a18ea3703dc53162', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '0328aa7af6e3c2f7ed8aa16724dedcb576bb9870', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: 'e42671667156149d5424243eef1d6675a3bd6506', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'ee7bf4cdb63cdc31df8b307ffb1772e5c0f0348c' }))));
169
+ return (h("form", { key: '8374d88e5a1d99f58ac2c93680fb000410a67ec8', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '82d2f80aaff654362852e4e8c5c9775d82a5080c' }, h("legend", { key: 'd74d4c8bdfc91086b14e41b27934dddf14695e49', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: '8f6fe8d7d6b66ca2b0fd8e4b0797ee681c11f7eb' }), h("div", { key: 'ef546418d4192bc1d1fef02faf47f965127f45ef', class: "row gy-3" }, h("owner-form-inputs", { key: '2f961ee901838a5dd82b20484fe149b393c7c609', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController, country: this.country }), h("div", { key: '8ed50b5de9839353b25d54d7b51546c1d2afaeb5', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: 'a9c94571902b2a6fc68459662ee7be35874ebb66', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: 'dc6072e019ebedc91d99917023b561f7048e7a08', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'd46ee611300752429d1c9b50dfce99e8b6fc10fa' }))));
168
170
  }
169
171
  static get watchers() { return {
170
172
  "isLoading": ["loadingWatcher"]
@@ -179,6 +181,7 @@ const BusinessOwnerFormCore = /*@__PURE__*/ proxyCustomElement(class BusinessOwn
179
181
  "removeOwner": [16],
180
182
  "newFormOpen": [4, "new-form-open"],
181
183
  "ownersLength": [2, "owners-length"],
184
+ "country": [1],
182
185
  "isLoading": [32],
183
186
  "formController": [32],
184
187
  "errors": [32],
@@ -194,7 +197,7 @@ function defineCustomElement() {
194
197
  if (typeof customElements === "undefined") {
195
198
  return;
196
199
  }
197
- const components = ["owner-form-core", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-identity-address-form", "owner-form-inputs"];
200
+ const components = ["owner-form-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", "owner-form-inputs"];
198
201
  components.forEach(tagName => { switch (tagName) {
199
202
  case "owner-form-core":
200
203
  if (!customElements.get(tagName)) {
@@ -203,30 +206,35 @@ function defineCustomElement() {
203
206
  break;
204
207
  case "custom-popper":
205
208
  if (!customElements.get(tagName)) {
206
- defineCustomElement$8();
209
+ defineCustomElement$9();
207
210
  }
208
211
  break;
209
212
  case "form-control-date":
210
213
  if (!customElements.get(tagName)) {
211
- defineCustomElement$7();
214
+ defineCustomElement$8();
212
215
  }
213
216
  break;
214
217
  case "form-control-number-masked":
215
218
  if (!customElements.get(tagName)) {
216
- defineCustomElement$6();
219
+ defineCustomElement$7();
217
220
  }
218
221
  break;
219
222
  case "form-control-select":
220
223
  if (!customElements.get(tagName)) {
221
- defineCustomElement$5();
224
+ defineCustomElement$6();
222
225
  }
223
226
  break;
224
227
  case "form-control-text":
225
228
  if (!customElements.get(tagName)) {
226
- defineCustomElement$4();
229
+ defineCustomElement$5();
227
230
  }
228
231
  break;
229
232
  case "form-control-tooltip":
233
+ if (!customElements.get(tagName)) {
234
+ defineCustomElement$4();
235
+ }
236
+ break;
237
+ case "justifi-form-address-fields":
230
238
  if (!customElements.get(tagName)) {
231
239
  defineCustomElement$3();
232
240
  }
@@ -1,12 +1,15 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks.js';
2
+ import { P as PHONE_MASKS, I as IDENTITY_MASKS } from './form-input-masks.js';
3
3
  import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers.js';
4
- import { d as defineCustomElement$7 } from './custom-popper2.js';
5
- import { d as defineCustomElement$6 } from './form-control-date2.js';
6
- import { d as defineCustomElement$5 } from './form-control-number-masked2.js';
7
- import { d as defineCustomElement$4 } from './form-control-select2.js';
8
- import { d as defineCustomElement$3 } from './form-control-text2.js';
9
- import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
4
+ import { c as countryLabels } from './country-config.js';
5
+ import { b as label, d as inputDisabled, Y as buttonSecondary } from './parts.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';
10
13
  import { d as defineCustomElement$1 } from './identity-address-form.js';
11
14
 
12
15
  const BusinessOwnerFormInputs = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFormInputs extends HTMLElement {
@@ -15,6 +18,7 @@ const BusinessOwnerFormInputs = /*@__PURE__*/ proxyCustomElement(class BusinessO
15
18
  if (registerHost !== false) {
16
19
  this.__registerHost();
17
20
  }
21
+ this.isEditingIdentification = false;
18
22
  this.inputHandler = (name, value) => {
19
23
  updateFormValues(this.formController, { [name]: value });
20
24
  };
@@ -23,19 +27,29 @@ const BusinessOwnerFormInputs = /*@__PURE__*/ proxyCustomElement(class BusinessO
23
27
  };
24
28
  }
25
29
  render() {
26
- return (h("div", { key: '86abe1713fdfd297e88c1fc1734fadb2c9eab966', class: "row gy-3" }, h("div", { key: '63a03271f2a777d4cede3b0790e11c7f4108797f', class: "col-12 col-md-8" }, h("form-control-text", { key: 'b86dd9184dbf50e00e047a733ff708526e32d6dc', name: "name", label: "Full Name", defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c3850b7425ca0d8a118a6b78933f3a2fbe343124', class: "col-12 col-md-4" }, h("form-control-text", { key: 'f1f6e801eb36bcae5f2e51f8cd4ea9b7ed6a34a8', name: "title", label: "Title", defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: 'b07a8a86dbdef296c9438953ef311ccae3aed23c', class: "col-12 col-md-6" }, h("form-control-text", { key: '714ca04b0bf0e5ed1b116b8f4963ba12f7fd6b77', name: "email", label: "Email Address", defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '46c11c80bb58d0190ff05f1e87ba962443b07c59', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '6da40db9fb8b3e4f3a744cd0426f4e6436350594', name: "phone", label: "Phone Number", defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '0960ea2fb399d0098caeabf45347a89c74066f57', class: "col-12 col-md-4" }, h("form-control-date", { key: 'fe0891a3f42c093d70db1dd1d1a7e121ba3091c1', name: "dob_full", label: "Birth Date", defaultValue: this.ownerDefaultValue.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: 'e7cbc519fa6f4fa5b03a0d0b69c7d7f1c42185ff', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'cf2b280c1560bd1a9f80cf81c1543d41bd807233', name: "identification_number", label: "SSN", defaultValue: this.ownerDefaultValue.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: '1755c849992bfd9f459b65b4cf7e967039fdbe27', class: "col-12" }, h("justifi-identity-address-form", { key: 'ac5372d4a9fad8ee3cfe2af20c11868e8753cc35', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
30
+ var _a, _b;
31
+ return (h("div", { key: '81c659f924f51a559e3e958b5d608f7c68022093', class: "row gy-3" }, h("div", { key: '9c89bc8e39cb584bf81852784a335599308681ff', class: "col-12 col-md-8" }, h("form-control-text", { key: 'a02d86ccbbcda1219a2e4e2885d0ffb54bcc3942', name: "name", label: "Full Name", defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '7281855c61b30b689809aa9fd3d4fce3927fcb8f', class: "col-12 col-md-4" }, h("form-control-text", { key: 'c91163386bd23653e3eaca4cf66c9690c28ed6f7', name: "title", label: "Title", defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: 'c998576d6f8442f255685a31a4bb0463175163f5', class: "col-12 col-md-6" }, h("form-control-text", { key: '345003706db0198c9de5e4234f3fe3efbacc51c7', name: "email", label: "Email Address", defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '8bccc4ebd45c92924e921f7fffa7f5214406c9e2', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'adaf6251217a5396c36ee7e9c0963cf2c948d9cd', name: "phone", label: "Phone Number", defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'd87f294ba9bf27df562f3e9b0ea4e286c1c6a725', class: "col-12 col-md-4" }, h("form-control-date", { key: '0681a51f830eb1b358c525deb46baa06f7bc9977', name: "dob_full", label: "Birth Date", defaultValue: this.ownerDefaultValue.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: '090785d6d86ec3122c3884ec8ba46df43f71d08e', class: "col-12 col-md-8" }, (!((_a = this.ownerDefaultValue) === null || _a === void 0 ? void 0 : _a.ssn_last4) || this.isEditingIdentification) ? (h("form-control-number-masked", { name: "identification_number", label: countryLabels[this.country].idNumberLabel, defaultValue: this.isEditingIdentification ? '' : this.ownerDefaultValue.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: `****${(_b = this.ownerDefaultValue) === null || _b === void 0 ? void 0 : _b.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: '3d5eabefcd198d1a27bfe158c92e3c18a0a14e69', class: "col-12" }, h("justifi-identity-address-form", { key: '10158bd6a40fa0ca00d7e9feb04d7c22e51d5829', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))));
27
39
  }
28
40
  ;
29
41
  }, [256, "owner-form-inputs", {
30
42
  "ownerDefaultValue": [8, "owner-default-value"],
31
43
  "errors": [8],
32
- "formController": [16]
44
+ "formController": [8, "form-controller"],
45
+ "country": [1],
46
+ "isEditingIdentification": [32]
33
47
  }]);
34
48
  function defineCustomElement() {
35
49
  if (typeof customElements === "undefined") {
36
50
  return;
37
51
  }
38
- const components = ["owner-form-inputs", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-identity-address-form"];
52
+ const components = ["owner-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"];
39
53
  components.forEach(tagName => { switch (tagName) {
40
54
  case "owner-form-inputs":
41
55
  if (!customElements.get(tagName)) {
@@ -44,30 +58,35 @@ function defineCustomElement() {
44
58
  break;
45
59
  case "custom-popper":
46
60
  if (!customElements.get(tagName)) {
47
- defineCustomElement$7();
61
+ defineCustomElement$8();
48
62
  }
49
63
  break;
50
64
  case "form-control-date":
51
65
  if (!customElements.get(tagName)) {
52
- defineCustomElement$6();
66
+ defineCustomElement$7();
53
67
  }
54
68
  break;
55
69
  case "form-control-number-masked":
56
70
  if (!customElements.get(tagName)) {
57
- defineCustomElement$5();
71
+ defineCustomElement$6();
58
72
  }
59
73
  break;
60
74
  case "form-control-select":
61
75
  if (!customElements.get(tagName)) {
62
- defineCustomElement$4();
76
+ defineCustomElement$5();
63
77
  }
64
78
  break;
65
79
  case "form-control-text":
66
80
  if (!customElements.get(tagName)) {
67
- defineCustomElement$3();
81
+ defineCustomElement$4();
68
82
  }
69
83
  break;
70
84
  case "form-control-tooltip":
85
+ if (!customElements.get(tagName)) {
86
+ defineCustomElement$3();
87
+ }
88
+ break;
89
+ case "justifi-form-address-fields":
71
90
  if (!customElements.get(tagName)) {
72
91
  defineCustomElement$2();
73
92
  }
@@ -1,12 +1,13 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { d as makeGetIdentity, e as makePatchIdentity, f as makePostIdentity } from './payment-provisioning-actions.js';
3
3
  import { I as IdentityService } from './business.service.js';
4
- import { d as defineCustomElement$9 } from './custom-popper2.js';
5
- import { d as defineCustomElement$8 } from './form-control-date2.js';
6
- import { d as defineCustomElement$7 } from './form-control-number-masked2.js';
7
- import { d as defineCustomElement$6 } from './form-control-select2.js';
8
- import { d as defineCustomElement$5 } from './form-control-text2.js';
9
- import { d as defineCustomElement$4 } from './form-control-tooltip2.js';
4
+ import { d as defineCustomElement$a } from './custom-popper2.js';
5
+ import { d as defineCustomElement$9 } from './form-control-date2.js';
6
+ import { d as defineCustomElement$8 } from './form-control-number-masked2.js';
7
+ import { d as defineCustomElement$7 } from './form-control-select2.js';
8
+ import { d as defineCustomElement$6 } from './form-control-text2.js';
9
+ import { d as defineCustomElement$5 } from './form-control-tooltip2.js';
10
+ import { d as defineCustomElement$4 } from './form-address-fields.js';
10
11
  import { d as defineCustomElement$3 } from './identity-address-form.js';
11
12
  import { d as defineCustomElement$2 } from './owner-form-core2.js';
12
13
  import { d as defineCustomElement$1 } from './owner-form-inputs2.js';
@@ -51,7 +52,7 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
51
52
  });
52
53
  }
53
54
  render() {
54
- return (h("owner-form-core", { key: '07ad7cd2bb38442dc591c9e3421223294690ee8c', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, ref: ref => this.coreComponent = ref }));
55
+ return (h("owner-form-core", { key: '84af0e74910def3f34aa4a6ce9d1f501faf6f5c5', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, country: this.country, ref: ref => this.coreComponent = ref }));
55
56
  }
56
57
  }, [256, "justifi-owner-form", {
57
58
  "authToken": [1, "auth-token"],
@@ -61,6 +62,7 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
61
62
  "removeOwner": [16],
62
63
  "newFormOpen": [4, "new-form-open"],
63
64
  "ownersLength": [2, "owners-length"],
65
+ "country": [1],
64
66
  "getOwner": [32],
65
67
  "patchOwner": [32],
66
68
  "postOwner": [32],
@@ -72,7 +74,7 @@ function defineCustomElement() {
72
74
  if (typeof customElements === "undefined") {
73
75
  return;
74
76
  }
75
- const components = ["justifi-owner-form", "custom-popper", "form-control-date", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-identity-address-form", "owner-form-core", "owner-form-inputs"];
77
+ const components = ["justifi-owner-form", "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", "owner-form-core", "owner-form-inputs"];
76
78
  components.forEach(tagName => { switch (tagName) {
77
79
  case "justifi-owner-form":
78
80
  if (!customElements.get(tagName)) {
@@ -81,30 +83,35 @@ function defineCustomElement() {
81
83
  break;
82
84
  case "custom-popper":
83
85
  if (!customElements.get(tagName)) {
84
- defineCustomElement$9();
86
+ defineCustomElement$a();
85
87
  }
86
88
  break;
87
89
  case "form-control-date":
88
90
  if (!customElements.get(tagName)) {
89
- defineCustomElement$8();
91
+ defineCustomElement$9();
90
92
  }
91
93
  break;
92
94
  case "form-control-number-masked":
93
95
  if (!customElements.get(tagName)) {
94
- defineCustomElement$7();
96
+ defineCustomElement$8();
95
97
  }
96
98
  break;
97
99
  case "form-control-select":
98
100
  if (!customElements.get(tagName)) {
99
- defineCustomElement$6();
101
+ defineCustomElement$7();
100
102
  }
101
103
  break;
102
104
  case "form-control-text":
103
105
  if (!customElements.get(tagName)) {
104
- defineCustomElement$5();
106
+ defineCustomElement$6();
105
107
  }
106
108
  break;
107
109
  case "form-control-tooltip":
110
+ if (!customElements.get(tagName)) {
111
+ defineCustomElement$5();
112
+ }
113
+ break;
114
+ case "justifi-form-address-fields":
108
115
  if (!customElements.get(tagName)) {
109
116
  defineCustomElement$4();
110
117
  }
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.1.0";
2
+ const version = "6.2.0-rc.1";
3
3
  var webcomponentsPackageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -12,13 +12,13 @@ const PaginationMenu = /*@__PURE__*/ proxyCustomElement(class PaginationMenu ext
12
12
  this.params = {};
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '7b821154b627026ef8624af6e4759e2176004676' }, h("nav", { key: '7990aee285d0cc3e6f83cb59bb216439e5364df5', "aria-label": "Table pagination", class: "d-flex justify-content-end gap-3" }, h("ul", { key: '02c68163934ce1aabf4abd607cc28e549e20ebe1', class: "pagination m-0" }, h("li", { key: 'aab661ae85fc61eecd230d058f135483796769c0', class: `page-item ${this.paging.has_previous ? '' : ' disabled'}` }, h("button", { key: 'ef42a41831a9890186c333418b161877761674e1', class: "page-link", onClick: (e) => {
15
+ return (h(Host, { key: '67ec7328221f28064498ebc359ec2100b33df423' }, h("nav", { key: '503d4f3c3e236797a1ef6309edb00d8d0c2be345', "aria-label": "Table pagination", class: "d-flex justify-content-end gap-3" }, h("ul", { key: '9573011f1775928268a0b0932890a6c25050e3fe', class: "pagination m-0" }, h("li", { key: '0247aa3068849046f8282124e7e168c381fd6340', class: `page-item ${this.paging.has_previous ? '' : ' disabled'}` }, h("button", { key: '5608ce502116c96e9400fdfeb0cfb4e64bc25a55', class: "page-link", onClick: (e) => {
16
16
  e.preventDefault();
17
17
  this.paging.handleClickPrevious(this.paging.start_cursor);
18
- }, part: this.paging.has_previous ? paginationButton : paginationButtonDisabled }, h("span", { key: 'a898a92687e4a5fec37d9dab4208430260a9f274', class: "me-1", part: paginationButtonIconPrevious }, "\u00AB"), h("span", { key: 'ecc2eeedc064d405ad178b9a98ed088e12f1b2fb', part: paginationButtonText }, "Previous"))), h("li", { key: '56569cd9f9803ead8b1180e2f982a98d7009be1f', class: `page-item ${this.paging.has_next ? '' : ' disabled'}` }, h("button", { key: 'c39d389ab89609e8ce11b3dd81eb5c4a50d3521f', class: "page-link", onClick: (e) => {
18
+ }, part: this.paging.has_previous ? paginationButton : paginationButtonDisabled }, h("span", { key: '7c08295d1c5edd4950bb577272a8745e3cd3d692', class: "me-1", part: paginationButtonIconPrevious }, "\u00AB"), h("span", { key: 'cd766ba6a6e6c31509442537a4f8345f2cd16251', part: paginationButtonText }, "Previous"))), h("li", { key: '54c810056bc6d74be7245a47f54c8d4b75068feb', class: `page-item ${this.paging.has_next ? '' : ' disabled'}` }, h("button", { key: '5ff8d8621accf87017980b527823640061b27c18', class: "page-link", onClick: (e) => {
19
19
  e.preventDefault();
20
20
  this.paging.handleClickNext(this.paging.end_cursor);
21
- }, part: this.paging.has_next ? paginationButton : paginationButtonDisabled }, h("span", { key: '6a01458a048a524931b03df6a964fa4a0ac403ac', part: paginationButtonText }, "Next"), h("span", { key: 'f4cb3d084647c00dff30b99f751180564463443f', class: "ms-1", part: paginationButtonIconNext }, "\u00BB")))))));
21
+ }, part: this.paging.has_next ? paginationButton : paginationButtonDisabled }, h("span", { key: '2dc934a96eb1be000eb7e016507ddc926c68db2a', part: paginationButtonText }, "Next"), h("span", { key: '4e7cbcbfd2e29969f2019eacde0a24d07a72cbb3', class: "ms-1", part: paginationButtonIconNext }, "\u00BB")))))));
22
22
  }
23
23
  }, [256, "pagination-menu", {
24
24
  "paging": [16],