@justifi/webcomponents 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (657) hide show
  1. package/dist/cjs/{Api-f5280a80.js → Api-b0e4be29.js} +12 -0
  2. package/dist/cjs/{Checkout-a528241d.js → Checkout-2ff4f9c8.js} +6 -0
  3. package/dist/cjs/{Payment-d074b246.js → Payment-84817e2d.js} +10 -1
  4. package/dist/cjs/{SubAccount-fda5ec5b.js → SubAccount-f236913b.js} +6 -1
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  6. package/dist/cjs/badge-fbf58cb9.js +44 -0
  7. package/dist/cjs/bank-account-form_9.cjs.entry.js +60 -65
  8. package/dist/cjs/{iframe-input.cjs.entry.js → billing-form_3.cjs.entry.js} +99 -6
  9. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  10. package/dist/cjs/business.service-ffb6f478.js +38 -0
  11. package/dist/cjs/{button-94bdc1f0.js → button-e7796b07.js} +1 -1
  12. package/dist/cjs/{check-pkg-version-05db7d8e.js → check-pkg-version-dee8dbb7.js} +3 -4
  13. package/dist/cjs/{checkout.service-671fab62.js → checkout.service-e9c05c15.js} +7 -8
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -9
  15. package/dist/cjs/checkouts-table-0f19c1e6.js +57 -0
  16. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  17. package/dist/cjs/{dispute.service-c362a953.js → dispute.service-9272a2a6.js} +8 -9
  18. package/dist/cjs/{event-types-4df47396.js → event-types-aa1a9be1.js} +3 -3
  19. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  20. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  21. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  22. package/dist/cjs/{form-control-error-text-a2fd5fc1.js → form-control-error-text-c1f49f35.js} +1 -1
  23. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +4 -4
  24. package/dist/cjs/form-control-file.cjs.entry.js +4 -4
  25. package/dist/cjs/{form-control-help-text-b6f7ae6e.js → form-control-help-text-e6cc71a7.js} +1 -1
  26. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  27. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
  28. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  29. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  30. package/dist/cjs/form-control-select_3.cjs.entry.js +6 -6
  31. package/dist/cjs/{get-payout-csv-d2aed52c.js → get-payout-csv-778db023.js} +7 -8
  32. package/dist/cjs/{get-subaccounts-9aa22224.js → get-subaccounts-b087fa39.js} +5 -6
  33. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  34. package/dist/cjs/{header-1-cb7af794.js → header-1-96b97cab.js} +1 -1
  35. package/dist/cjs/{header-3-75e50713.js → header-3-ce77b96b.js} +1 -1
  36. package/dist/cjs/{insurance-state-001cfe12.js → insurance-state-8959c7c7.js} +1 -1
  37. package/dist/cjs/{justifi-additional-questions-form-step-core_8.cjs.entry.js → justifi-additional-questions-form-step-core_9.cjs.entry.js} +225 -16
  38. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +54 -161
  39. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  40. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -7
  41. package/dist/cjs/justifi-business-form.cjs.entry.js +40 -15
  42. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  43. package/dist/cjs/justifi-checkout-core.cjs.entry.js +10 -11
  44. package/dist/cjs/justifi-checkout.cjs.entry.js +11 -11
  45. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
  47. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  48. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  49. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  50. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -16
  51. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -7
  52. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -9
  53. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  54. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
  56. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  57. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
  58. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  59. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  60. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
  61. package/dist/cjs/justifi-refund-form.cjs.entry.js +7 -7
  62. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +21 -4
  63. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -11
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -14
  66. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +28 -15
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/cjs/{package-48c58886.js → package-8b9059cc.js} +1 -1
  69. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  70. package/dist/cjs/{parts-811ddb9c.js → parts-addf2176.js} +20 -2
  71. package/dist/cjs/payment-details-core.cjs.entry.js +27 -13
  72. package/dist/cjs/{payment-provisioning-actions-06466dda.js → payment-provisioning-actions-fbd30d1b.js} +31 -0
  73. package/dist/cjs/{payment.service-9a5336f1.js → payment.service-042c7c99.js} +6 -7
  74. package/dist/cjs/payments-list-core.cjs.entry.js +11 -10
  75. package/dist/cjs/payments-status-411c325c.js +58 -0
  76. package/dist/cjs/{payments-table-cf5d1c33.js → payments-table-16f3f95e.js} +12 -12
  77. package/dist/cjs/payout-details-core.cjs.entry.js +22 -7
  78. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -10
  79. package/dist/cjs/payouts-status-0951e39d.js +53 -0
  80. package/dist/cjs/{payouts-table-58881d95.js → payouts-table-bc15179c.js} +14 -16
  81. package/dist/cjs/{skeleton-5ca03840.js → skeleton-c4903a53.js} +1 -1
  82. package/dist/cjs/{spinner-c11fcb44.js → spinner-aac395e3.js} +1 -1
  83. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  84. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -8
  85. package/dist/cjs/terminals-table-3c19847b.js +45 -0
  86. package/dist/cjs/{utils-a21b7453.js → utils-5fb95d31.js} +6 -8
  87. package/dist/cjs/{utils-fc17191b.js → utils-a05a8bf6.js} +2 -2
  88. package/dist/cjs/webcomponents.cjs.js +1 -1
  89. package/dist/collection/api/BankAccount.js +12 -0
  90. package/dist/collection/api/Checkout.js +5 -0
  91. package/dist/collection/api/Payment.js +10 -1
  92. package/dist/collection/api/Payout.js +5 -1
  93. package/dist/collection/api/services/business.service.js +6 -0
  94. package/dist/collection/collection-manifest.json +4 -1
  95. package/dist/collection/components/{billing-form → billing-forms/billing-form}/billing-form.js +10 -10
  96. package/dist/collection/components/{billing-form → billing-forms}/billing-form-schema.js +13 -2
  97. package/dist/collection/components/billing-forms/billing-form-wrapper.js +183 -0
  98. package/dist/collection/components/billing-forms/postal-form/postal-form.js +136 -0
  99. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  100. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  101. package/dist/collection/components/business-forms/business-form/business-form-loading.js +6 -0
  102. package/dist/collection/components/business-forms/business-form/business-form.js +10 -4
  103. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  104. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  105. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  106. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  107. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  108. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +13 -3
  110. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  111. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +270 -0
  112. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +37 -146
  113. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +13 -3
  114. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  115. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +11 -3
  116. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  117. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +13 -3
  119. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +1 -1
  121. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
  122. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +13 -3
  123. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +30 -0
  125. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -2
  128. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-loading.js +6 -0
  129. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
  132. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +1 -1
  133. package/dist/collection/components/checkout/card-form/card-form.js +1 -1
  134. package/dist/collection/components/checkout/checkout-core.js +30 -27
  135. package/dist/collection/components/checkout/checkout.js +29 -24
  136. package/dist/collection/components/checkout/new-payment-method.js +39 -33
  137. package/dist/collection/components/checkout/payment-method-options.js +29 -44
  138. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  139. package/dist/collection/components/checkout/saved-payment-method.js +1 -21
  140. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -21
  141. package/dist/collection/components/checkout/test/checkout.js +0 -1
  142. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  143. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  144. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  145. package/dist/collection/components/checkouts-list/checkouts-status.js +26 -11
  146. package/dist/collection/components/checkouts-list/checkouts-table.js +7 -7
  147. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  152. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  153. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  154. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  158. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  159. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  160. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  161. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +4 -1
  162. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-loading.js +4 -0
  163. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +4 -2
  164. package/dist/collection/components/payment-details/payment-details-core.js +10 -12
  165. package/dist/collection/components/payment-details/payment-details-loading.js +4 -0
  166. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  167. package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
  168. package/dist/collection/components/payments-list/payments-list.js +1 -1
  169. package/dist/collection/components/payments-list/payments-status.js +51 -21
  170. package/dist/collection/components/payments-list/payments-table.js +8 -8
  171. package/dist/collection/components/payout-details/payout-details-core.js +3 -4
  172. package/dist/collection/components/payout-details/payout-details-loading.js +4 -0
  173. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  174. package/dist/collection/components/payouts-list/payouts-list-filters.js +1 -1
  175. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  176. package/dist/collection/components/payouts-list/payouts-status.js +46 -19
  177. package/dist/collection/components/payouts-list/payouts-table.js +10 -10
  178. package/dist/collection/components/refund-form/refund-form.js +1 -1
  179. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  180. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  181. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  182. package/dist/collection/components/terminals-list/terminals-status.js +21 -9
  183. package/dist/collection/components/terminals-list/terminals-table.js +4 -4
  184. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +60 -25
  185. package/dist/collection/styles/parts.js +11 -2
  186. package/dist/collection/ui-components/badge/badge.js +39 -0
  187. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  188. package/dist/collection/ui-components/details/details.js +1 -1
  189. package/dist/collection/ui-components/details/utils.js +1 -1
  190. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  191. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  192. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  193. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  194. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  195. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  196. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  197. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  198. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  199. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  200. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  201. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  202. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  203. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  204. package/dist/collection/utils/table.js +1 -1
  205. package/dist/collection/utils/utils.js +6 -8
  206. package/dist/config.js +0 -1
  207. package/dist/docs.json +780 -198
  208. package/dist/esm/{Api-391d00e2.js → Api-0cac5b8a.js} +12 -1
  209. package/dist/esm/{Checkout-0b4086f8.js → Checkout-d476bb83.js} +6 -0
  210. package/dist/esm/{Payment-4f72d277.js → Payment-47630113.js} +10 -1
  211. package/dist/esm/{SubAccount-99a00594.js → SubAccount-f31349a9.js} +6 -1
  212. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  213. package/dist/esm/badge-b034e71b.js +42 -0
  214. package/dist/esm/bank-account-form_9.entry.js +59 -64
  215. package/dist/esm/{iframe-input.entry.js → billing-form_3.entry.js} +98 -7
  216. package/dist/esm/{business-additional-questions-schema-48e93928.js → business-additional-questions-schema-aba9747e.js} +1 -1
  217. package/dist/esm/business-details-core.entry.js +3 -3
  218. package/dist/esm/{business-identity-schema-75126188.js → business-identity-schema-8b0f1619.js} +1 -1
  219. package/dist/esm/{business.service-182aea6f.js → business.service-ab2663a3.js} +8 -3
  220. package/dist/esm/{button-1886a33d.js → button-8a02823c.js} +1 -1
  221. package/dist/esm/{check-pkg-version-95b9be89.js → check-pkg-version-51d2616b.js} +2 -3
  222. package/dist/esm/{checkout.service-32a6ebe8.js → checkout.service-c275270e.js} +4 -5
  223. package/dist/esm/checkouts-list-core.entry.js +10 -9
  224. package/dist/esm/checkouts-table-115bacc4.js +53 -0
  225. package/dist/esm/custom-popper.entry.js +2 -2
  226. package/dist/esm/{dispute.service-4e5059aa.js → dispute.service-882e35ed.js} +4 -5
  227. package/dist/esm/{event-types-01dcdcbd.js → event-types-948c3b14.js} +3 -3
  228. package/dist/esm/form-alert_5.entry.js +5 -5
  229. package/dist/esm/form-control-checkbox.entry.js +5 -5
  230. package/dist/esm/form-control-date.entry.js +4 -4
  231. package/dist/esm/{form-control-error-text-3b2553b5.js → form-control-error-text-066cdad4.js} +1 -1
  232. package/dist/esm/form-control-file-v2_2.entry.js +4 -4
  233. package/dist/esm/form-control-file.entry.js +4 -4
  234. package/dist/esm/{form-control-help-text-a2fc3617.js → form-control-help-text-3b6f5980.js} +1 -1
  235. package/dist/esm/form-control-monetary.entry.js +5 -5
  236. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  237. package/dist/esm/form-control-number.entry.js +5 -5
  238. package/dist/esm/form-control-radio.entry.js +3 -3
  239. package/dist/esm/form-control-select_3.entry.js +6 -6
  240. package/dist/esm/{get-payout-csv-e6058aa7.js → get-payout-csv-50aea928.js} +4 -5
  241. package/dist/esm/{get-subaccounts-0b8af245.js → get-subaccounts-ab3dd32c.js} +4 -5
  242. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  243. package/dist/esm/{header-1-c6a00a22.js → header-1-75c284dd.js} +1 -1
  244. package/dist/esm/{header-3-a1c6d475.js → header-3-4a327395.js} +1 -1
  245. package/dist/esm/{insurance-state-8fc9376f.js → insurance-state-b495be64.js} +1 -1
  246. package/dist/esm/{justifi-additional-questions-form-step-core_8.entry.js → justifi-additional-questions-form-step-core_9.entry.js} +230 -22
  247. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +53 -160
  248. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  249. package/dist/esm/justifi-business-details.entry.js +6 -7
  250. package/dist/esm/justifi-business-form.entry.js +43 -18
  251. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  252. package/dist/esm/justifi-checkout-core.entry.js +10 -11
  253. package/dist/esm/justifi-checkout.entry.js +11 -11
  254. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  255. package/dist/esm/justifi-checkouts-list.entry.js +13 -13
  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 +9 -9
  259. package/dist/esm/justifi-dispute-notification_3.entry.js +14 -15
  260. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -6
  261. package/dist/esm/justifi-owner-form_3.entry.js +10 -11
  262. package/dist/esm/justifi-payment-details.entry.js +10 -10
  263. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  264. package/dist/esm/justifi-payment-provisioning.entry.js +6 -7
  265. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  266. package/dist/esm/justifi-payments-list.entry.js +13 -13
  267. package/dist/esm/justifi-payout-details.entry.js +10 -10
  268. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  269. package/dist/esm/justifi-payouts-list.entry.js +14 -14
  270. package/dist/esm/justifi-refund-form.entry.js +6 -6
  271. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +22 -5
  272. package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -9
  273. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  274. package/dist/esm/justifi-terminals-list.entry.js +12 -11
  275. package/dist/esm/justifi-tokenize-payment-method.entry.js +29 -16
  276. package/dist/esm/loader.js +1 -1
  277. package/dist/esm/{package-223933b4.js → package-5eedfd72.js} +1 -1
  278. package/dist/esm/pagination-menu.entry.js +1 -1
  279. package/dist/esm/{parts-186d437f.js → parts-93f379ab.js} +12 -3
  280. package/dist/esm/payment-details-core.entry.js +28 -14
  281. package/dist/esm/{payment-provisioning-actions-0635eff7.js → payment-provisioning-actions-a262ee82.js} +31 -1
  282. package/dist/esm/{payment.service-45f90e06.js → payment.service-92b90855.js} +4 -5
  283. package/dist/esm/payments-list-core.entry.js +11 -10
  284. package/dist/esm/payments-status-82466054.js +56 -0
  285. package/dist/esm/{payments-table-d6fbab5b.js → payments-table-c0bb25b6.js} +12 -12
  286. package/dist/esm/payout-details-core.entry.js +23 -8
  287. package/dist/esm/payouts-list-core.entry.js +11 -10
  288. package/dist/esm/payouts-status-b98c8297.js +51 -0
  289. package/dist/esm/{payouts-table-2e61a116.js → payouts-table-4382a264.js} +14 -16
  290. package/dist/esm/{schema-validations-c7d4f9df.js → schema-validations-5b0ac96b.js} +1 -1
  291. package/dist/esm/{skeleton-8f71cdf7.js → skeleton-3bcb2b5d.js} +1 -1
  292. package/dist/esm/{spinner-879489b3.js → spinner-b83f3a87.js} +1 -1
  293. package/dist/esm/table-filters-menu.entry.js +3 -3
  294. package/dist/esm/terminals-list-core.entry.js +10 -8
  295. package/dist/esm/terminals-table-8f1c2146.js +41 -0
  296. package/dist/esm/{utils-d7633e66.js → utils-7fb6331d.js} +2 -2
  297. package/dist/esm/{utils-54543523.js → utils-b76d791e.js} +7 -9
  298. package/dist/esm/webcomponents.js +1 -1
  299. package/dist/module/Checkout.js +6 -0
  300. package/dist/module/Payment.js +11 -1
  301. package/dist/module/SubAccount.js +6 -1
  302. package/dist/module/additional-questions.js +2 -2
  303. package/dist/module/additional-statement.js +2 -2
  304. package/dist/module/badge.js +42 -0
  305. package/dist/module/bank-account-form2.js +1 -1
  306. package/dist/module/billing-form-schema.js +16 -0
  307. package/dist/module/billing-form-wrapper.js +114 -0
  308. package/dist/module/{justifi-billing-form.d.ts → billing-form.d.ts} +4 -4
  309. package/dist/module/billing-form.js +4 -97
  310. package/dist/module/billing-form2.js +90 -0
  311. package/dist/module/business-additional-questions-form-step-core.js +13 -3
  312. package/dist/module/business-additional-questions-form-step.js +1 -1
  313. package/dist/module/business-additional-questions-schema.js +1 -1
  314. package/dist/module/business-address-schema.js +1 -1
  315. package/dist/module/business-bank-account-form-step-core.js +206 -0
  316. package/dist/module/business-bank-account-form-step.js +49 -157
  317. package/dist/module/business-core-info-form-step-core.js +14 -4
  318. package/dist/module/business-core-info-form-step.js +1 -1
  319. package/dist/module/business-core-info.js +2 -2
  320. package/dist/module/business-document-upload-form-step.js +2 -3
  321. package/dist/module/business-document-upload-input-group.js +1 -1
  322. package/dist/module/business-documents-on-file.js +1 -1
  323. package/dist/module/business-form-options.js +1 -1
  324. package/dist/module/business-owners-form-step-core.js +10 -2
  325. package/dist/module/business-owners-form-step.js +1 -1
  326. package/dist/module/business-representative-form-inputs.js +1 -1
  327. package/dist/module/business-representative-form-step-core.js +12 -2
  328. package/dist/module/business-representative-form-step.js +1 -1
  329. package/dist/module/business-representative.js +1 -1
  330. package/dist/module/business-terms-conditions-form-step.js +2 -3
  331. package/dist/module/business-terms-conditions-text.js +2 -2
  332. package/dist/module/business.service.js +8 -3
  333. package/dist/module/button.js +1 -1
  334. package/dist/module/cancellation-policy.js +2 -2
  335. package/dist/module/card-form2.js +1 -1
  336. package/dist/module/check-pkg-version.js +1 -2
  337. package/dist/module/checkout-core.js +51 -40
  338. package/dist/module/checkout.service.js +1 -2
  339. package/dist/module/checkouts-list-core2.js +36 -27
  340. package/dist/module/config.js +116 -2
  341. package/dist/module/custom-popper2.js +2 -2
  342. package/dist/module/customer-details.js +2 -2
  343. package/dist/module/details.js +1 -1
  344. package/dist/module/dispute-management-core.js +1 -1
  345. package/dist/module/dispute-notification.js +2 -2
  346. package/dist/module/dispute-response-actions.js +2 -3
  347. package/dist/module/dispute-response-core.js +2 -2
  348. package/dist/module/dispute-response.js +1 -1
  349. package/dist/module/duplicate-charge.js +2 -2
  350. package/dist/module/electronic-evidence.js +2 -2
  351. package/dist/module/event-types.js +2 -2
  352. package/dist/module/form-alert2.js +1 -1
  353. package/dist/module/form-control-checkbox2.js +3 -3
  354. package/dist/module/form-control-date2.js +3 -3
  355. package/dist/module/form-control-file-v22.js +1 -1
  356. package/dist/module/form-control-file2.js +3 -3
  357. package/dist/module/form-control-monetary2.js +3 -3
  358. package/dist/module/form-control-number-masked2.js +3 -3
  359. package/dist/module/form-control-number.js +2 -2
  360. package/dist/module/form-control-radio2.js +3 -3
  361. package/dist/module/form-control-select2.js +3 -3
  362. package/dist/module/form-control-text2.js +3 -3
  363. package/dist/module/form-control-textarea2.js +3 -3
  364. package/dist/module/form-control-tooltip2.js +1 -1
  365. package/dist/module/get-payout-csv.js +2 -3
  366. package/dist/module/get-subaccounts.js +2 -3
  367. package/dist/module/gross-payment-chart-core2.js +1 -1
  368. package/dist/module/hidden-input2.js +1 -1
  369. package/dist/module/identity-address-form.js +2 -2
  370. package/dist/module/iframe-input2.js +3 -3
  371. package/dist/module/justifi-billing-form-wrapper.d.ts +11 -0
  372. package/dist/module/justifi-billing-form-wrapper.js +6 -0
  373. package/dist/module/justifi-business-bank-account-form-step-core.d.ts +11 -0
  374. package/dist/module/justifi-business-bank-account-form-step-core.js +6 -0
  375. package/dist/module/justifi-business-details.js +1 -1
  376. package/dist/module/justifi-business-form.js +32 -7
  377. package/dist/module/justifi-checkout.js +53 -41
  378. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  379. package/dist/module/justifi-checkouts-list.js +2 -2
  380. package/dist/module/justifi-dispute-management.js +2 -2
  381. package/dist/module/justifi-gross-payment-chart.js +2 -3
  382. package/dist/module/justifi-payment-details.js +1 -1
  383. package/dist/module/justifi-payment-provisioning.js +33 -28
  384. package/dist/module/justifi-payments-list-filters.js +1 -1
  385. package/dist/module/justifi-payments-list.js +2 -2
  386. package/dist/module/justifi-payout-details.js +1 -1
  387. package/dist/module/justifi-payouts-list-filters.js +1 -1
  388. package/dist/module/justifi-payouts-list.js +2 -2
  389. package/dist/module/justifi-refund-form.js +2 -3
  390. package/dist/module/justifi-season-interruption-insurance.js +6 -5
  391. package/dist/module/justifi-terminals-list-filters.js +1 -1
  392. package/dist/module/justifi-terminals-list.js +3 -4
  393. package/dist/module/justifi-tokenize-payment-method.js +73 -45
  394. package/dist/module/legal-address-form-step-core.js +13 -3
  395. package/dist/module/legal-address-form-step.js +1 -1
  396. package/dist/module/legal-address-form.js +2 -2
  397. package/dist/module/new-payment-method.js +54 -44
  398. package/dist/module/owner-form-core2.js +2 -2
  399. package/dist/module/owner-form-inputs2.js +1 -1
  400. package/dist/module/owner-form.js +2 -2
  401. package/dist/module/package.js +1 -1
  402. package/dist/module/pagination-menu2.js +1 -1
  403. package/dist/module/parts.js +12 -3
  404. package/dist/module/payment-details-core2.js +25 -13
  405. package/dist/module/payment-method-options.js +49 -39
  406. package/dist/module/payment-provisioning-actions.js +32 -2
  407. package/dist/module/payment-provisioning-core.js +31 -25
  408. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  409. package/dist/module/payment-provisioning-form-steps.js +32 -26
  410. package/dist/module/payment-provisioning-loading.js +25 -0
  411. package/dist/module/payment.service.js +1 -2
  412. package/dist/module/payments-list-core2.js +12 -12
  413. package/dist/module/payments-status.js +52 -20
  414. package/dist/module/payout-details-core2.js +18 -5
  415. package/dist/module/payouts-list-core2.js +14 -16
  416. package/dist/module/payouts-status.js +47 -18
  417. package/dist/module/postal-form.d.ts +11 -0
  418. package/dist/module/postal-form.js +6 -0
  419. package/dist/module/postal-form2.js +83 -0
  420. package/dist/module/product-or-service.js +2 -2
  421. package/dist/module/refund-policy.js +2 -2
  422. package/dist/module/save-new-payment-method.js +1 -1
  423. package/dist/module/saved-payment-method.js +2 -5
  424. package/dist/module/schema-validations.js +2 -2
  425. package/dist/module/season-interruption-insurance-core.js +19 -2
  426. package/dist/module/sezzle-payment-method.js +2 -5
  427. package/dist/module/shipping-details.js +2 -2
  428. package/dist/module/spinner.js +1 -1
  429. package/dist/module/table-filters-menu2.js +2 -2
  430. package/dist/module/terminals-list-core2.js +26 -14
  431. package/dist/module/utils.js +1 -1
  432. package/dist/module/utils2.js +6 -8
  433. package/dist/module/utils3.js +23 -24
  434. package/dist/module/utils4.js +24 -23
  435. package/dist/types/api/BankAccount.d.ts +11 -0
  436. package/dist/types/api/Checkout.d.ts +4 -2
  437. package/dist/types/api/Payment.d.ts +9 -4
  438. package/dist/types/api/Payout.d.ts +4 -2
  439. package/dist/types/api/services/business.service.d.ts +7 -0
  440. package/dist/types/components/{billing-form → billing-forms/billing-form}/billing-form.d.ts +2 -2
  441. package/dist/types/components/{billing-form → billing-forms}/billing-form-schema.d.ts +11 -2
  442. package/dist/types/components/billing-forms/billing-form-wrapper.d.ts +19 -0
  443. package/dist/types/components/billing-forms/postal-form/postal-form.d.ts +20 -0
  444. package/dist/types/components/business-forms/business-form/business-form-loading.d.ts +1 -0
  445. package/dist/types/components/business-forms/business-form/business-form.d.ts +1 -0
  446. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +1 -0
  447. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +35 -0
  448. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +6 -24
  449. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +1 -0
  450. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +1 -0
  451. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +1 -0
  452. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +1 -0
  453. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +9 -0
  454. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-loading.d.ts +1 -0
  455. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -2
  456. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +1 -1
  457. package/dist/types/components/checkout/checkout-core.d.ts +3 -6
  458. package/dist/types/components/checkout/checkout.d.ts +3 -3
  459. package/dist/types/components/checkout/new-payment-method.d.ts +4 -4
  460. package/dist/types/components/checkout/payment-method-options.d.ts +3 -5
  461. package/dist/types/components/checkout/payment-method-payload.d.ts +2 -0
  462. package/dist/types/components/checkout/saved-payment-method.d.ts +0 -1
  463. package/dist/types/components/checkout/sezzle-payment-method.d.ts +0 -1
  464. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +1 -1
  465. package/dist/types/components/checkouts-list/checkouts-status.d.ts +1 -1
  466. package/dist/types/components/checkouts-list/checkouts-table.d.ts +7 -6
  467. package/dist/types/components/insurance/season-interruption/season-interruption-insurance-loading.d.ts +2 -0
  468. package/dist/types/components/payment-details/payment-details-loading.d.ts +2 -0
  469. package/dist/types/components/payments-list/payments-list-core.d.ts +1 -1
  470. package/dist/types/components/payments-list/payments-status.d.ts +1 -1
  471. package/dist/types/components/payments-list/payments-table.d.ts +8 -7
  472. package/dist/types/components/payout-details/payout-details-loading.d.ts +2 -0
  473. package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -1
  474. package/dist/types/components/payouts-list/payouts-status.d.ts +1 -1
  475. package/dist/types/components/payouts-list/payouts-table.d.ts +10 -9
  476. package/dist/types/components/terminals-list/terminals-list-core.d.ts +1 -1
  477. package/dist/types/components/terminals-list/terminals-status.d.ts +1 -1
  478. package/dist/types/components/terminals-list/terminals-table.d.ts +5 -4
  479. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +3 -1
  480. package/dist/types/components.d.ts +123 -77
  481. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -1
  482. package/dist/types/styles/parts.d.ts +10 -1
  483. package/dist/types/ui-components/badge/badge.d.ts +18 -0
  484. package/dist/types/utils/table.d.ts +3 -3
  485. package/dist/types/utils/utils.d.ts +2 -1
  486. package/dist/webcomponents/p-04ce1f82.js +1 -0
  487. package/dist/webcomponents/p-0544f4a4.entry.js +1 -0
  488. package/dist/webcomponents/p-060ff1a1.js +1 -0
  489. package/dist/webcomponents/p-0658b707.entry.js +1 -0
  490. package/dist/webcomponents/{p-1dbae48b.entry.js → p-09fd4ee2.entry.js} +1 -1
  491. package/dist/webcomponents/p-0d7e7957.js +1 -0
  492. package/dist/webcomponents/p-10cface4.entry.js +1 -0
  493. package/dist/webcomponents/p-10f9ff7b.entry.js +1 -0
  494. package/dist/webcomponents/p-12233a57.entry.js +1 -0
  495. package/dist/webcomponents/p-135e24c0.js +1 -0
  496. package/dist/webcomponents/p-1a27f22e.js +1 -0
  497. package/dist/webcomponents/p-1e2526c8.entry.js +1 -0
  498. package/dist/webcomponents/p-24a9c773.js +1 -0
  499. package/dist/webcomponents/p-270033ba.entry.js +1 -0
  500. package/dist/webcomponents/{p-47e7f876.entry.js → p-2a17a29c.entry.js} +1 -1
  501. package/dist/webcomponents/{p-b056034f.entry.js → p-2b081961.entry.js} +1 -1
  502. package/dist/webcomponents/p-2bd8650b.js +1 -0
  503. package/dist/webcomponents/p-2c7441ea.entry.js +1 -0
  504. package/dist/webcomponents/p-2ce40098.js +1 -0
  505. package/dist/webcomponents/p-2d27d054.entry.js +1 -0
  506. package/dist/webcomponents/p-2d801915.js +1 -0
  507. package/dist/webcomponents/p-332bd5ab.entry.js +1 -0
  508. package/dist/webcomponents/p-351c7fa3.entry.js +1 -0
  509. package/dist/webcomponents/p-39177d5a.js +1 -0
  510. package/dist/webcomponents/p-3f209fcc.entry.js +1 -0
  511. package/dist/webcomponents/p-411382f3.js +1 -0
  512. package/dist/webcomponents/p-427881b1.entry.js +1 -0
  513. package/dist/webcomponents/p-44604a45.js +1 -0
  514. package/dist/webcomponents/p-46769ec3.entry.js +1 -0
  515. package/dist/webcomponents/p-47cd431c.js +1 -0
  516. package/dist/webcomponents/p-4acfed0d.entry.js +1 -0
  517. package/dist/webcomponents/{p-0aa63869.entry.js → p-4bcfdb99.entry.js} +1 -1
  518. package/dist/webcomponents/p-4c4f9e3b.js +1 -0
  519. package/dist/webcomponents/p-4e122ace.js +1 -0
  520. package/dist/webcomponents/{p-d75b52c8.entry.js → p-541b7c36.entry.js} +1 -1
  521. package/dist/webcomponents/p-5d0763a5.js +1 -0
  522. package/dist/webcomponents/p-5d177a30.js +1 -0
  523. package/dist/webcomponents/p-64a1ae2c.entry.js +1 -0
  524. package/dist/webcomponents/p-67aef066.entry.js +1 -0
  525. package/dist/webcomponents/p-6ad11a9f.entry.js +1 -0
  526. package/dist/webcomponents/p-6bc01617.js +1 -0
  527. package/dist/webcomponents/{p-323ba4df.entry.js → p-6e8be579.entry.js} +1 -1
  528. package/dist/webcomponents/p-72a90154.entry.js +1 -0
  529. package/dist/webcomponents/{p-8c7a81c1.js → p-730e8425.js} +1 -1
  530. package/dist/webcomponents/p-73323a41.entry.js +1 -0
  531. package/dist/webcomponents/p-73619f0a.js +1 -0
  532. package/dist/webcomponents/{p-f4722957.js → p-74736657.js} +1 -1
  533. package/dist/webcomponents/p-74d6e182.entry.js +1 -0
  534. package/dist/webcomponents/p-7aff48a1.entry.js +1 -0
  535. package/dist/webcomponents/{p-08b8d1f0.entry.js → p-7b1fcab5.entry.js} +1 -1
  536. package/dist/webcomponents/p-7bddbee4.js +1 -0
  537. package/dist/webcomponents/{p-c9670f3c.entry.js → p-7db2a4d5.entry.js} +1 -1
  538. package/dist/webcomponents/p-83aa33f0.js +1 -0
  539. package/dist/webcomponents/p-87ce7b69.js +1 -0
  540. package/dist/webcomponents/p-8d61499c.entry.js +1 -0
  541. package/dist/webcomponents/p-9069fab5.js +1 -0
  542. package/dist/webcomponents/p-92d78790.js +1 -0
  543. package/dist/webcomponents/p-948b7710.entry.js +1 -0
  544. package/dist/webcomponents/p-96bc127e.entry.js +1 -0
  545. package/dist/webcomponents/p-98b027b7.entry.js +1 -0
  546. package/dist/webcomponents/p-a3df6c3e.entry.js +1 -0
  547. package/dist/webcomponents/p-a5008b32.entry.js +1 -0
  548. package/dist/webcomponents/p-a59636ed.js +1 -0
  549. package/dist/webcomponents/p-a7b04e24.js +1 -0
  550. package/dist/webcomponents/{p-7b9f21cd.entry.js → p-ac2588af.entry.js} +1 -1
  551. package/dist/webcomponents/{p-b1d4e520.entry.js → p-b78da082.entry.js} +1 -1
  552. package/dist/webcomponents/p-b86e804e.entry.js +1 -0
  553. package/dist/webcomponents/p-ba202e33.js +1 -0
  554. package/dist/webcomponents/p-bb842885.entry.js +1 -0
  555. package/dist/webcomponents/p-bf07d5d0.entry.js +1 -0
  556. package/dist/webcomponents/{p-1e6077f4.js → p-c2efe406.js} +1 -1
  557. package/dist/webcomponents/p-c358b253.entry.js +1 -0
  558. package/dist/webcomponents/p-c6051278.entry.js +1 -0
  559. package/dist/webcomponents/{p-7216ef00.entry.js → p-ca6214ca.entry.js} +1 -1
  560. package/dist/webcomponents/{p-af834eb8.js → p-cb8f7bf4.js} +1 -1
  561. package/dist/webcomponents/p-ce2de434.entry.js +1 -0
  562. package/dist/webcomponents/{p-bb61c6e0.js → p-d1f78cb5.js} +1 -1
  563. package/dist/webcomponents/p-d5dace8b.entry.js +1 -0
  564. package/dist/webcomponents/p-d6e51c2f.js +1 -0
  565. package/dist/webcomponents/{p-f9fdcc1a.entry.js → p-d86c1f11.entry.js} +2 -2
  566. package/dist/webcomponents/{p-a47971d8.entry.js → p-dc6e1e5f.entry.js} +1 -1
  567. package/dist/webcomponents/{p-fa2e3dc7.entry.js → p-e0f21a47.entry.js} +1 -1
  568. package/dist/webcomponents/{p-79b7c30d.js → p-eb644cb7.js} +1 -1
  569. package/dist/webcomponents/p-f2158e48.entry.js +1 -0
  570. package/dist/webcomponents/p-f3867b82.entry.js +1 -0
  571. package/dist/webcomponents/p-f5a7a7d1.entry.js +1 -0
  572. package/dist/webcomponents/p-f65abd18.js +1 -0
  573. package/dist/webcomponents/{p-663a00cd.entry.js → p-f76a7f9c.entry.js} +1 -1
  574. package/dist/webcomponents/p-fd6619d0.entry.js +1 -0
  575. package/dist/webcomponents/webcomponents.esm.js +1 -1
  576. package/package.json +1 -1
  577. package/dist/cjs/business.service-285f6f26.js +0 -32
  578. package/dist/cjs/checkouts-table-17648e93.js +0 -48
  579. package/dist/cjs/config-b190e93e.js +0 -15
  580. package/dist/cjs/payments-status-68ac449d.js +0 -26
  581. package/dist/cjs/payouts-status-2f7be07d.js +0 -24
  582. package/dist/cjs/terminals-table-91985249.js +0 -33
  583. package/dist/esm/checkouts-table-8b116232.js +0 -44
  584. package/dist/esm/config-187b3ae1.js +0 -13
  585. package/dist/esm/payments-status-a7c18f2a.js +0 -24
  586. package/dist/esm/payouts-status-cd58e525.js +0 -22
  587. package/dist/esm/terminals-table-8e42977c.js +0 -29
  588. package/dist/module/Api.js +0 -116
  589. package/dist/module/justifi-billing-form.js +0 -6
  590. package/dist/webcomponents/p-01f32098.entry.js +0 -1
  591. package/dist/webcomponents/p-0201ec6c.entry.js +0 -1
  592. package/dist/webcomponents/p-050a6855.entry.js +0 -1
  593. package/dist/webcomponents/p-0cc6c539.js +0 -1
  594. package/dist/webcomponents/p-0ccbc022.entry.js +0 -1
  595. package/dist/webcomponents/p-0e180654.js +0 -1
  596. package/dist/webcomponents/p-0eb86b3f.entry.js +0 -1
  597. package/dist/webcomponents/p-0f23ff58.js +0 -1
  598. package/dist/webcomponents/p-16d2932d.js +0 -1
  599. package/dist/webcomponents/p-1ce22da6.entry.js +0 -1
  600. package/dist/webcomponents/p-206fde40.js +0 -1
  601. package/dist/webcomponents/p-20a24f3a.entry.js +0 -1
  602. package/dist/webcomponents/p-238f1ff8.entry.js +0 -1
  603. package/dist/webcomponents/p-2462bf86.entry.js +0 -1
  604. package/dist/webcomponents/p-32a5bf4e.js +0 -1
  605. package/dist/webcomponents/p-34c14f59.js +0 -1
  606. package/dist/webcomponents/p-3db8b3c7.js +0 -1
  607. package/dist/webcomponents/p-3eabbdd4.entry.js +0 -1
  608. package/dist/webcomponents/p-438df53f.entry.js +0 -1
  609. package/dist/webcomponents/p-441c1cf8.js +0 -1
  610. package/dist/webcomponents/p-4972d608.entry.js +0 -1
  611. package/dist/webcomponents/p-4a576796.js +0 -1
  612. package/dist/webcomponents/p-4d916b2d.js +0 -1
  613. package/dist/webcomponents/p-5968ff8a.js +0 -1
  614. package/dist/webcomponents/p-597bd1e1.entry.js +0 -1
  615. package/dist/webcomponents/p-5bbe1133.entry.js +0 -1
  616. package/dist/webcomponents/p-5cb947bc.entry.js +0 -1
  617. package/dist/webcomponents/p-5d3f81c0.entry.js +0 -1
  618. package/dist/webcomponents/p-6677c60d.entry.js +0 -1
  619. package/dist/webcomponents/p-68694a17.entry.js +0 -1
  620. package/dist/webcomponents/p-6ab77b89.js +0 -1
  621. package/dist/webcomponents/p-6b840696.entry.js +0 -1
  622. package/dist/webcomponents/p-6fbd6abb.js +0 -1
  623. package/dist/webcomponents/p-6feeb9f2.js +0 -1
  624. package/dist/webcomponents/p-70eea098.entry.js +0 -1
  625. package/dist/webcomponents/p-73a18b5a.entry.js +0 -1
  626. package/dist/webcomponents/p-7a975a3c.js +0 -1
  627. package/dist/webcomponents/p-808bb677.entry.js +0 -1
  628. package/dist/webcomponents/p-80b1bcc2.entry.js +0 -1
  629. package/dist/webcomponents/p-88acfa7c.entry.js +0 -1
  630. package/dist/webcomponents/p-8a94d2c8.js +0 -1
  631. package/dist/webcomponents/p-8fe80110.entry.js +0 -1
  632. package/dist/webcomponents/p-90dc2f2c.js +0 -1
  633. package/dist/webcomponents/p-9c2d5229.entry.js +0 -1
  634. package/dist/webcomponents/p-9c2e00cc.js +0 -1
  635. package/dist/webcomponents/p-a3949f32.js +0 -1
  636. package/dist/webcomponents/p-ac147eef.entry.js +0 -1
  637. package/dist/webcomponents/p-b392ec21.js +0 -1
  638. package/dist/webcomponents/p-b6d76082.entry.js +0 -1
  639. package/dist/webcomponents/p-bb0f8b70.js +0 -1
  640. package/dist/webcomponents/p-bb71cef3.js +0 -1
  641. package/dist/webcomponents/p-bbcaa29b.entry.js +0 -1
  642. package/dist/webcomponents/p-c092cbb2.js +0 -1
  643. package/dist/webcomponents/p-c212414b.entry.js +0 -1
  644. package/dist/webcomponents/p-c2a2b9fe.entry.js +0 -1
  645. package/dist/webcomponents/p-cc977850.js +0 -1
  646. package/dist/webcomponents/p-d53c5ea5.entry.js +0 -1
  647. package/dist/webcomponents/p-d8fdf2b5.entry.js +0 -1
  648. package/dist/webcomponents/p-d960db89.entry.js +0 -1
  649. package/dist/webcomponents/p-db8c12ee.js +0 -1
  650. package/dist/webcomponents/p-e396506c.entry.js +0 -1
  651. package/dist/webcomponents/p-e4421e98.entry.js +0 -1
  652. package/dist/webcomponents/p-e7bb6520.js +0 -1
  653. package/dist/webcomponents/p-ed8918d1.entry.js +0 -1
  654. package/dist/webcomponents/p-edb57087.js +0 -1
  655. package/dist/webcomponents/p-ee4a2aac.entry.js +0 -1
  656. package/dist/webcomponents/p-ef4c49b9.js +0 -1
  657. package/dist/webcomponents/p-f88d5c0d.entry.js +0 -1
@@ -1,189 +1,76 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { c as create$3, F as FormController } from './form.js';
3
- import { g as bankNameValidation, n as nicknameValidation, i as identityNameValidation, h as accountTypeValidation, j as accountNumberValidation, k as routingNumberValidation } from './schema-validations.js';
4
- import { A as Api } from './Api.js';
5
- import './Checkout.js';
6
- import './Pagination.js';
7
- import './Payment.js';
8
- import './SubAccount.js';
9
- import { c as config } from './config.js';
10
- import { n as numberOnlyHandler } from './utils4.js';
11
2
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
12
- import { h as heading2 } from './parts.js';
13
- import { c as bankAccountTypeOptions } from './business-form-options.js';
14
- import { B as BusinessFormStep } from './event-types2.js';
15
- import { d as defineCustomElement$4 } from './custom-popper2.js';
16
- import { d as defineCustomElement$3 } from './form-control-select2.js';
17
- import { d as defineCustomElement$2 } from './form-control-text2.js';
18
- import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
19
-
20
- const businessBankAccountSchema = (allowOptionalFields) => {
21
- const schema = create$3({
22
- bank_name: bankNameValidation.required('Enter bank name'),
23
- nickname: nicknameValidation.required('Enter nickname'),
24
- account_owner_name: identityNameValidation.required('Enter account owner name'),
25
- account_type: accountTypeValidation.required('Select account type'),
26
- account_number: accountNumberValidation.required('Enter account number'),
27
- routing_number: routingNumberValidation.required('Enter routing number')
28
- });
29
- const easySchema = create$3({
30
- bank_name: bankNameValidation.nullable(),
31
- nickname: nicknameValidation.nullable(),
32
- account_owner_name: identityNameValidation.nullable(),
33
- account_type: accountTypeValidation.nullable(),
34
- account_number: accountNumberValidation.nullable(),
35
- routing_number: routingNumberValidation.nullable()
36
- });
37
- return allowOptionalFields ? easySchema : schema;
38
- };
39
-
40
- class BankAccount {
41
- constructor(data) {
42
- this.id = data.id;
43
- this.account_owner_name = data.account_owner_name;
44
- this.full_name = data.full_name;
45
- this.account_type = data.account_type;
46
- this.acct_last_four = data.acct_last_four;
47
- this.account_number_last4 = data.account_number_last4;
48
- this.routing_number = data.routing_number;
49
- this.bank_name = data.bank_name;
50
- this.country = data.country;
51
- this.currency = data.currency;
52
- this.nickname = data.nickname;
53
- this.metadata = data.metadata;
54
- this.business_id = data.business_id;
55
- this.platform_account_id = data.platform_account_id;
56
- this.created_at = data.created_at;
57
- this.updated_at = data.updated_at;
58
- }
59
- }
3
+ import { m as makeGetBusiness, b as makePostBankAccount } from './payment-provisioning-actions.js';
4
+ import { B as BusinessService, a as BusinessBankAccountService } 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';
9
+ import { d as defineCustomElement$1 } from './business-bank-account-form-step-core.js';
60
10
 
61
11
  const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class BusinessBankAccountFormStep extends HTMLElement {
62
12
  constructor() {
63
13
  super();
64
14
  this.__registerHost();
65
- this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
66
15
  this.errorEvent = createEvent(this, "error-event", 7);
67
- this.formLoading = createEvent(this, "formLoading", 7);
68
- this.fetchData = async () => {
69
- this.formLoading.emit(true);
70
- try {
71
- const response = await this.api.get(this.businessEndpoint);
72
- if (response.data.bank_accounts.length > 0) {
73
- this.bankAccount = Object.assign({}, new BankAccount(response.data.bank_accounts[0]));
74
- }
75
- else {
76
- this.bankAccount = Object.assign({}, new BankAccount({}));
77
- }
78
- this.formController.setInitialValues(Object.assign({}, this.bankAccount));
79
- }
80
- catch (error) {
81
- this.errorEvent.emit({
82
- errorCode: ComponentErrorCodes.FETCH_ERROR,
83
- message: error.message,
84
- severity: ComponentErrorSeverity.ERROR,
85
- data: error,
86
- });
87
- }
88
- finally {
89
- this.formLoading.emit(false);
90
- }
91
- };
92
- this.sendData = async (onSuccess) => {
93
- this.formLoading.emit(true);
94
- try {
95
- const formValues = this.formController.values.getValue();
96
- const payload = Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
97
- const response = await this.api.post(this.bankAccountEndpoint, payload);
98
- this.handleResponse(response, onSuccess);
99
- }
100
- catch (error) {
101
- this.errorEvent.emit({
102
- errorCode: ComponentErrorCodes.POST_ERROR,
103
- message: error.message,
104
- severity: ComponentErrorSeverity.ERROR,
105
- data: error,
106
- });
107
- }
108
- finally {
109
- this.formLoading.emit(false);
110
- }
111
- };
112
- this.inputHandler = (name, value) => {
113
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
114
- };
115
- this.formController = undefined;
116
- this.errors = {};
117
- this.bankAccount = undefined;
16
+ this.getBusiness = undefined;
17
+ this.postBankAccount = undefined;
118
18
  this.authToken = undefined;
119
19
  this.businessId = undefined;
120
20
  this.allowOptionalFields = undefined;
121
21
  }
122
- get businessEndpoint() {
123
- return `entities/business/${this.businessId}`;
22
+ propChanged() {
23
+ this.initializeApi();
124
24
  }
125
- get bankAccountEndpoint() {
126
- return `entities/bank_accounts`;
25
+ async validateAndSubmit({ onSuccess }) {
26
+ this.coreComponent.validateAndSubmit({ onSuccess });
127
27
  }
128
- get formDisabled() {
129
- var _a;
130
- return !!((_a = this.bankAccount) === null || _a === void 0 ? void 0 : _a.id);
28
+ componentWillLoad() {
29
+ this.initializeApi();
131
30
  }
132
- handleResponse(response, onSuccess) {
133
- if (response.error) {
134
- this.errorEvent.emit({
135
- errorCode: ComponentErrorCodes.POST_ERROR,
136
- message: response.error.message,
137
- severity: ComponentErrorSeverity.ERROR,
138
- data: response.error,
31
+ initializeApi() {
32
+ if (this.authToken && this.businessId) {
33
+ this.getBusiness = makeGetBusiness({
34
+ authToken: this.authToken,
35
+ businessId: this.businessId,
36
+ service: new BusinessService()
37
+ });
38
+ this.postBankAccount = makePostBankAccount({
39
+ authToken: this.authToken,
40
+ service: new BusinessBankAccountService()
139
41
  });
140
42
  }
141
43
  else {
142
- onSuccess();
143
- }
144
- this.stepCompleteEvent.emit({ response: response, formStep: BusinessFormStep.bankAccount });
145
- }
146
- async validateAndSubmit({ onSuccess }) {
147
- if (this.formDisabled) {
148
- this.stepCompleteEvent.emit({ response: null, formStep: BusinessFormStep.bankAccount, metadata: 'no data submitted' });
149
- onSuccess();
150
- }
151
- else {
152
- this.formController.validateAndSubmit(() => this.sendData(onSuccess));
153
- }
154
- }
155
- ;
156
- componentWillLoad() {
157
- this.formController = new FormController(businessBankAccountSchema(this.allowOptionalFields));
158
- this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
159
- if (this.businessId && this.authToken) {
160
- this.fetchData();
44
+ this.errorEvent.emit({
45
+ message: 'Missing required props',
46
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
47
+ severity: ComponentErrorSeverity.ERROR,
48
+ });
161
49
  }
162
50
  }
163
- componentDidLoad() {
164
- this.formController.values.subscribe(values => this.bankAccount = Object.assign({}, values));
165
- this.formController.errors.subscribe(errors => {
166
- this.errors = Object.assign({}, errors);
167
- });
168
- }
169
51
  render() {
170
- const bankAccountDefaultValue = this.formController.getInitialValues();
171
- return (h("form", { key: 'd326af8d567422ee342571d35119497cd5983a7f' }, h("fieldset", { key: '4ada14e070e9f9b1f12aa3288af50e78c8d7e2f3' }, h("div", { key: 'e9e104ca5ddd22fbddb2154d026ec0cb6610426a', class: "d-flex align-items-center gap-2" }, h("legend", { key: '7800c3648bebce9ca000162e3c85f0cc558f045e', class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { key: '3dbc31dfc1f7f60b68f10f2666e58ae208bb36cb', helpText: "The Direct Deposit Account is the business bank account where your funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { key: '489cf91c3af1050ee1f0babe8fa6ba7fa9d1912d', class: "mt-2" }), h("div", { key: 'cace0eee0e8b9849294b11bad15452b77dcd9ee9', class: "row gy-3" }, h("div", { key: '0697524d52d53ccfab7201e1f06c0f8f477c8da7', class: "col-12" }, h("form-control-text", { key: 'b391b6e7e3f9c1c92f5bb651da2291ca75afc7f3', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '84afc5c90399809d228561e348f4a6f5fbeeaa48', class: "col-12" }, h("form-control-text", { key: 'add80854eae161c51dfc3006e8f03ef01113291c', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'f5d31db2be25a09b6f57b78fcac9b6031077d235', class: "col-12" }, h("form-control-text", { key: '5a916bfbad467bd2a55f0159716c29cb78d4d9d0', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'ebce663decaf9bd6b46794b820197c7ba8a450cc', class: "col-12" }, h("form-control-select", { key: 'dd42e72741934d015a1d405b09e7c14b8f865606', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '2fa3139ed30465e1e0f9a5075eb13e9c3874aa0a', class: "col-12" }, h("form-control-text", { key: 'f309563391770bd1074b7c29b47c39c5c7ecec5f', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." })), h("div", { key: '80424fa942fe444ba9137e724ecd50fb4839c59f', class: "col-12" }, h("form-control-text", { key: 'c5e08a9cdbb11c92e3271d6507f6bd3225abdf2f', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." }))))));
52
+ return (h("justifi-business-bank-account-form-step-core", { key: '229a91f0c9d52f26cf602d950a4960adf2f090bb', businessId: this.businessId, getBusiness: this.getBusiness, postBankAccount: this.postBankAccount, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
172
53
  }
54
+ static get watchers() { return {
55
+ "authToken": ["propChanged"],
56
+ "businessId": ["propChanged"]
57
+ }; }
173
58
  }, [0, "justifi-business-bank-account-form-step", {
174
59
  "authToken": [1, "auth-token"],
175
60
  "businessId": [1, "business-id"],
176
61
  "allowOptionalFields": [4, "allow-optional-fields"],
177
- "formController": [32],
178
- "errors": [32],
179
- "bankAccount": [32],
62
+ "getBusiness": [32],
63
+ "postBankAccount": [32],
180
64
  "validateAndSubmit": [64]
65
+ }, undefined, {
66
+ "authToken": ["propChanged"],
67
+ "businessId": ["propChanged"]
181
68
  }]);
182
69
  function defineCustomElement() {
183
70
  if (typeof customElements === "undefined") {
184
71
  return;
185
72
  }
186
- const components = ["justifi-business-bank-account-form-step", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip"];
73
+ const components = ["justifi-business-bank-account-form-step", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-business-bank-account-form-step-core"];
187
74
  components.forEach(tagName => { switch (tagName) {
188
75
  case "justifi-business-bank-account-form-step":
189
76
  if (!customElements.get(tagName)) {
@@ -192,20 +79,25 @@ function defineCustomElement() {
192
79
  break;
193
80
  case "custom-popper":
194
81
  if (!customElements.get(tagName)) {
195
- defineCustomElement$4();
82
+ defineCustomElement$5();
196
83
  }
197
84
  break;
198
85
  case "form-control-select":
199
86
  if (!customElements.get(tagName)) {
200
- defineCustomElement$3();
87
+ defineCustomElement$4();
201
88
  }
202
89
  break;
203
90
  case "form-control-text":
204
91
  if (!customElements.get(tagName)) {
205
- defineCustomElement$2();
92
+ defineCustomElement$3();
206
93
  }
207
94
  break;
208
95
  case "form-control-tooltip":
96
+ if (!customElements.get(tagName)) {
97
+ defineCustomElement$2();
98
+ }
99
+ break;
100
+ case "justifi-business-bank-account-form-step-core":
209
101
  if (!customElements.get(tagName)) {
210
102
  defineCustomElement$1();
211
103
  }
@@ -2,11 +2,12 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
2
2
  import { b as businessCoreInfoSchema } from './business-core-info-schema.js';
3
3
  import { F as FormController } from './form.js';
4
4
  import { C as CoreBusinessInfo } from './Business.js';
5
- import { a as businessClassificationOptions } from './business-form-options.js';
5
+ import { b as businessClassificationOptions } from './business-form-options.js';
6
6
  import { B as BusinessFormStep } from './event-types2.js';
7
7
  import { P as PHONE_MASKS } from './form-input-masks.js';
8
- import { n as numberOnlyHandler } from './utils4.js';
8
+ import { n as numberOnlyHandler } from './utils3.js';
9
9
  import { h as heading2 } from './parts.js';
10
+ import { P as PaymentProvisioningLoading } from './payment-provisioning-loading.js';
10
11
  import { d as defineCustomElement$6 } from './custom-popper2.js';
11
12
  import { d as defineCustomElement$5 } from './form-control-date2.js';
12
13
  import { d as defineCustomElement$4 } from './form-control-number-masked2.js';
@@ -23,6 +24,7 @@ const BusinessCoreInfoFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busi
23
24
  this.formLoading = createEvent(this, "formLoading", 7);
24
25
  this.getData = () => {
25
26
  this.formLoading.emit(true);
27
+ this.isLoading = true;
26
28
  this.getBusiness({
27
29
  onSuccess: (response) => {
28
30
  this.coreInfo = new CoreBusinessInfo(response.data);
@@ -35,7 +37,10 @@ const BusinessCoreInfoFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busi
35
37
  severity: severity
36
38
  });
37
39
  },
38
- final: () => this.formLoading.emit(false)
40
+ final: () => {
41
+ this.formLoading.emit(false);
42
+ this.isLoading = false;
43
+ }
39
44
  });
40
45
  };
41
46
  this.sendData = (onSuccess) => {
@@ -67,6 +72,7 @@ const BusinessCoreInfoFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busi
67
72
  this.formController = undefined;
68
73
  this.errors = {};
69
74
  this.coreInfo = {};
75
+ this.isLoading = false;
70
76
  this.businessId = undefined;
71
77
  this.getBusiness = undefined;
72
78
  this.patchBusiness = undefined;
@@ -91,7 +97,10 @@ const BusinessCoreInfoFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busi
91
97
  }
92
98
  render() {
93
99
  const coreInfoDefaultValue = this.formController.getInitialValues();
94
- return (h("form", { key: 'be7ba84cae238dd4e2cec58473a059f9e849de1d' }, h("fieldset", { key: 'bffcdb1f1bc2291c3a3db49c4bcb4d43802eaa5a' }, h("div", { key: '164b01cafb65d0dcf089d3a16b21b3ad0d46d1fa', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'd79fe16eb66eed9d3631924a953c3697d6f1bfb3', class: "mb-0", part: heading2 }, "Business Information")), h("hr", { key: '1023f1545c22dad66907a783d63b55ce16382b7b', class: "mt-2" }), h("div", { key: 'df134287b5c5664bf54ae4e2b5b11f2b8319a533', class: "row gy-3" }, h("div", { key: 'cce53f576d682e72388e322dd16e6c09c42c910a', class: "col-12" }, h("form-control-text", { key: 'f5cad3097b85ed81b3e5c3508da63882a7f85676', name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { key: 'ef85bfc5787d52e086443f6833d25076a8bc6509', class: "col-12" }, h("form-control-text", { key: '960589b0d047d59745db35a5c9b40abf4f95a984', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { key: '74d215b4e04d9e385d471d285f1d174a384628d4', class: "col-12 col-md-8" }, h("form-control-select", { key: 'a983b411c29e445e1e6756565c6ed4438f0f8073', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: '4f47ac42d50c1c70c74880dca35da3c15450a54d', class: "col-12 col-md-4" }, h("form-control-date", { key: '215528f63ec5c7608eca00327ddcca2a9f01c8bb', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: '3176418ac0930aca1db70018eb2713b899b846bf', class: "col-12 col-md-6" }, h("form-control-text", { key: 'a7785082a03b75bf12f1e59d9e75d28f703cf255', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { key: '99f04683422b3925db4bbb063bdecb23704b0943', class: "col-12 col-md-6" }, h("form-control-text", { key: 'a6230862485c14d29076fc2ae70996a433c7a7a8', name: "tax_id", label: "Tax ID (EIN or SSN)", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9, helpText: "Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns." })), h("div", { key: '278b9cf5e946adf9a72716f4281646165d945374', class: "col-12" }, h("form-control-text", { key: '2436e07602eac21ec2899d781aa20e5ffb15dfbe', name: "website_url", label: "Business Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler, helpText: "Don't have a live website? You can use your social media business page, app store link, or staging site URL." })), h("div", { key: 'f28741b03d879dfc4397e84a873494239a9ad6b6', class: "col-12 col-md-6" }, h("form-control-text", { key: '1d018294e912f2698218734f5d674a2344e59257', name: "email", label: "Business Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'b1eab1ca39410a9fbb7c2c268fe97cdfaa40a126', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '26898a6add7cca817e5abfa45515b59ae2a8fd47', name: "phone", label: "Business Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
100
+ if (this.isLoading) {
101
+ return h(PaymentProvisioningLoading, null);
102
+ }
103
+ return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Business Information")), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Business Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)." })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler, helpText: "Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)" })), h("div", { class: "col-12 col-md-8" }, h("form-control-select", { name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-4" }, h("form-control-date", { name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler, helpText: "Describe what you sell" })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "tax_id", label: "Tax ID (EIN or SSN)", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9, helpText: "Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns." })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Business Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler, helpText: "Don't have a live website? You can use your social media business page, app store link, or staging site URL." })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Business Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Business Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
95
104
  }
96
105
  }, [0, "justifi-business-core-info-form-step-core", {
97
106
  "businessId": [1, "business-id"],
@@ -101,6 +110,7 @@ const BusinessCoreInfoFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busi
101
110
  "formController": [32],
102
111
  "errors": [32],
103
112
  "coreInfo": [32],
113
+ "isLoading": [32],
104
114
  "validateAndSubmit": [64]
105
115
  }]);
106
116
  function defineCustomElement() {
@@ -52,7 +52,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
52
52
  }
53
53
  }
54
54
  render() {
55
- return (h("justifi-business-core-info-form-step-core", { key: 'fbaca40250e3cabd3a1ec91f1a10aab53174a23e', businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
55
+ return (h("justifi-business-core-info-form-step-core", { key: '2262521f98ad949fa2558572a991b00b44a2c8c0', businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
56
56
  }
57
57
  static get watchers() { return {
58
58
  "authToken": ["propChanged"],
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { a as businessClassificationOptions } from './business-form-options.js';
2
+ import { b as businessClassificationOptions } from './business-form-options.js';
3
3
  import { T as TAX_ID_MASKS, P as PHONE_MASKS } from './form-input-masks.js';
4
4
  import { C as CoreBusinessInfo } from './Business.js';
5
5
  import { h as heading2 } from './parts.js';
@@ -30,7 +30,7 @@ const BusinessCoreInfo = /*@__PURE__*/ proxyCustomElement(class BusinessCoreInfo
30
30
  }
31
31
  render() {
32
32
  const coreInfoDefaultValue = this.formController.getInitialValues();
33
- return (h(Host, { key: 'e4137edfffdb68e6dd792a9b38b13752734f5fd2' }, h("fieldset", { key: '7652930c2d961361969a454b6632ece8d34e9a7b' }, h("legend", { key: 'cb6e3a3eb561d862ea57d74bfd8a59fc8f2bb017', part: heading2 }, "General Info"), h("div", { key: '7becc4c5b16f7a77ff425b40e961fb478e50b3b4', class: "row gy-3" }, h("div", { key: '1c4d8eba65f262bf35e405e38818c2bb489c4c1a', class: "col-12" }, h("form-control-text", { key: 'f71636cf4bb91ee161e6e056cafc275950642e20', name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: '1865bb01a25c5f6148331a15804e31f48af4c6e8', class: "col-12" }, h("form-control-text", { key: '9d8a77ea431d826c864fe833fdb7866aa3fc6283', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: 'a271782b9750547ff609653307db7f3bfaccf25b', class: "col-12 col-md-8" }, h("form-control-select", { key: '52144fe64984bfbddc7d4488e48cc44decf44943', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: '88c72bf4401345def76beff2f555f8dcd04724a5', class: "col-12 col-md-4" }, h("form-control-date", { key: '6c8b11e80c6959f257ed9a1022d6f0bc9437cf79', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: 'f5ddb61e0b705a4c16a0ae2b4610a6407cc4d919', class: "col-12 col-md-6" }, h("form-control-text", { key: '8e816266819351742ec3a00683a211d3b9ed5969', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '0e23adafca4f1dbde3a40d5f28a84278a00ef5df', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '143ad2c24b1643532186d0bbb4a0f4ada84cc880', name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { key: '3549c796c3c9653e2006f7441a3aedff5c559660', class: "col-12" }, h("form-control-text", { key: 'ae1794226a4aeffdc0ec0ae1a1959a7e1f599024', name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: 'a10bae7797bdc5c0bad910281dba1006dcf336b7', class: "col-12 col-md-6" }, h("form-control-text", { key: 'f6c80857ae53d6949d9276d4df3d04e459300c5f', name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'd680203bd386b10a8385bf50d2b7a8e5a5564e29', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'ca47e1b1d774b1fd61242ddd8d8adbeb21576970', name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
33
+ return (h(Host, { key: '0a54d6f8c056defa8cabdb4dc179c163221da666' }, h("fieldset", { key: '4b0c98edb14fd99bdc1b69452f46176d13138521' }, h("legend", { key: 'ffa4420337c8c0007ea50ed903c2708fcda98027', part: heading2 }, "General Info"), h("div", { key: '2e81c755b2f5b8dc881dfac4bb0cb5c61efef68c', class: "row gy-3" }, h("div", { key: '02cd06cd22a47c19fe0f7ef56332946383c8fb09', class: "col-12" }, h("form-control-text", { key: '9eb76d9b46ca559acc02bd74146249c2d3b75032', name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: '6b3e5d12395548523ec27109b3498e17d160ebb5', class: "col-12" }, h("form-control-text", { key: '8ce4c6867f5ca0842b925448196eaae1299663de', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: 'b66a589959a2ac7095ab87b9d123e79ed31588ab', class: "col-12 col-md-8" }, h("form-control-select", { key: '1ace9df2d442f1fc9411fba5c4f549a3d94f3e04', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: '008b69ab22ea29d8555db618734910de2a5d5740', class: "col-12 col-md-4" }, h("form-control-date", { key: '19d75c0375ae52cdf139024aff14d9d8911f7ec3', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: 'dfa1903977fb2d0f2c7bbc8b990ab67d2040e9b1', class: "col-12 col-md-6" }, h("form-control-text", { key: 'fd7d05bd1401f86eb45b8c647d54714e14f2190a', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: 'ae9e24843b6909b288553ec54f99c577b5931417', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'a19f2126f9b24d2fb14a5887a8f83b548f36f4ad', name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { key: '029aaf6b714d7a0e1240176fe43e9c7d80e256bf', class: "col-12" }, h("form-control-text", { key: 'a81b306b6ab4bbe5bd1aa67ff10a2fd1e9bf092e', name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '408bc1916656193648b306cad6b3f6bd343ffc3b', class: "col-12 col-md-6" }, h("form-control-text", { key: 'd15350befa68b8125c0d292e6ffe7d2a09af5590', name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '5835a78ff6cd8e08b364e4d0016df0fdffaa2fb6', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '4a8507cd54812937df751f69b90cc1d3df503de6', name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
34
34
  }
35
35
  }, [0, "justifi-business-core-info", {
36
36
  "formController": [16],
@@ -1,8 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { c as create$3, F as FormController } from './form.js';
3
3
  import { a as Business } from './Business.js';
4
- import { A as Api } from './Api.js';
5
- import { c as config } from './config.js';
4
+ import { A as Api, c as config } from './config.js';
6
5
  import { B as voidedCheckValidation, C as governmentIdValidation, D as ss4Validation, E as otherDocumentValidation, F as balanceSheetValidation, G as bankStatementValidation, H as profitAndLossStatementValidation } from './schema-validations.js';
7
6
  import { a as EntityDocument, b as EntityDocumentStorage } from './Document.js';
8
7
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
@@ -215,7 +214,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
215
214
  return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
216
215
  }
217
216
  render() {
218
- return (h("form", { key: '0d59a81a25ce1b983e1cc1e076072fc60f277829' }, h("fieldset", { key: '806183bf7a2b7bd49f11be8f8e66685360b392d8' }, h("div", { key: '22e1914c580e90acbf0cc295ed878c2f4d3cb12f', class: "d-flex align-items-center gap-2" }, h("legend", { key: '88369a06ab43a76c477a6af93672364fd101a7d2', class: "mb-0", part: heading2 }, "Document Uploads"), h("form-control-tooltip", { key: 'ccbff3cea2f17156a358a82de3e5e8afa87e2ab5', helpText: "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category." })), h("hr", { key: 'e99c7eba9c7605244bee06ae4c0fa4954cafb99a', class: "mt-2" }), this.documentsOnFile, h("div", { key: 'ddbeda2a9740d2a20becde70f5f8113e4a327dc7', class: "d-flex flex-column" }, this.formInputs))));
217
+ return (h("form", { key: '38a3eb1b9bdde8e315d1c37247e7ad842a3f29c5' }, h("fieldset", { key: 'c3708b2869316632a04e73a4fcf192458f052563' }, h("div", { key: '8e12a5cb1bdc5b70913e8188ae7a9df8e8db7da9', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'b4780b4cacb48d63a07329aff4e2ef5bd0f5a636', class: "mb-0", part: heading2 }, "Document Uploads"), h("form-control-tooltip", { key: '48a7dcc864c87171ab9e6dcafd7edeb20383bb2d', helpText: "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category." })), h("hr", { key: '2e8c855ec6970e6368521970912ff1ce8c2d9bc0', class: "mt-2" }), this.documentsOnFile, h("div", { key: 'cf9026e49cd1e954d37fc3ff01770b6d2be4095a', class: "d-flex flex-column" }, this.formInputs))));
219
218
  }
220
219
  }, [0, "justifi-business-document-upload-form-step", {
221
220
  "authToken": [1, "auth-token"],
@@ -87,7 +87,7 @@ const BusinessDocumentUploadInputGroup = /*@__PURE__*/ proxyCustomElement(class
87
87
  }
88
88
  render() {
89
89
  const inputsConfig = this.inputConfigs;
90
- return (h("div", { key: '875e19e33818ff3582a274b75c78301fa799a81b', class: "row gy-3" }, inputsConfig.map(config => (h("div", { class: "col-12 col-md-6" }, h("form-control-file", { name: config.name, label: config.label, helpText: config.helpText, documentType: config.documentType, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors[config.name], multiple: true }))))));
90
+ return (h("div", { key: 'f3ea3130fa1877be47f8a29e248387c2921f4659', class: "row gy-3" }, inputsConfig.map(config => (h("div", { class: "col-12 col-md-6" }, h("form-control-file", { name: config.name, label: config.label, helpText: config.helpText, documentType: config.documentType, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors[config.name], multiple: true }))))));
91
91
  }
92
92
  }, [0, "justifi-business-document-upload-input-group", {
93
93
  "paymentVolume": [1, "payment-volume"],
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { s as snakeCaseToHumanReadable, a as formatDate, g as formatTimeSeconds } from './utils2.js';
3
- import { K as card, h as heading2, j as table, f as tableHeadCell, k as tableCell } from './parts.js';
3
+ import { V as card, h as heading2, o as table, m as tableHeadCell, p as tableCell } from './parts.js';
4
4
 
5
5
  const BusinessDocumentsOnFile = /*@__PURE__*/ proxyCustomElement(class BusinessDocumentsOnFile extends HTMLElement {
6
6
  constructor() {
@@ -87,4 +87,4 @@ const bankAccountTypeOptions = [
87
87
  }
88
88
  ];
89
89
 
90
- export { businessClassificationOptions as a, businessServiceReceivedOptions as b, bankAccountTypeOptions as c, recurringPaymentsOptions as r, seasonalBusinessOptions as s };
90
+ export { businessServiceReceivedOptions as a, businessClassificationOptions as b, bankAccountTypeOptions as c, recurringPaymentsOptions as r, seasonalBusinessOptions as s };
@@ -2,6 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
2
2
  import { B as Button } from './button.js';
3
3
  import { h as heading2 } from './parts.js';
4
4
  import './details.js';
5
+ import { P as PaymentProvisioningLoading } from './payment-provisioning-loading.js';
5
6
  import { B as BusinessFormStep, a as BusinessFormClickActions } from './event-types2.js';
6
7
  import { d as defineCustomElement$a } from './custom-popper2.js';
7
8
  import { d as defineCustomElement$9 } from './form-control-date2.js';
@@ -30,6 +31,7 @@ const BusinessOwnersFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busine
30
31
  };
31
32
  this.getData = () => {
32
33
  this.formLoading.emit(true);
34
+ this.isLoading = true;
33
35
  this.getBusiness({
34
36
  onSuccess: (response) => {
35
37
  if (response.data.owners.length) {
@@ -48,6 +50,7 @@ const BusinessOwnersFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busine
48
50
  },
49
51
  final: () => {
50
52
  this.formLoading.emit(false);
53
+ this.isLoading = false;
51
54
  this.manageRefs();
52
55
  }
53
56
  });
@@ -87,6 +90,7 @@ const BusinessOwnersFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busine
87
90
  this.ownersPayload = [];
88
91
  this.refs = [];
89
92
  this.newFormOpen = undefined;
93
+ this.isLoading = false;
90
94
  this.authToken = undefined;
91
95
  this.businessId = undefined;
92
96
  this.getBusiness = undefined;
@@ -130,9 +134,12 @@ const BusinessOwnersFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busine
130
134
  this.ownersPayload = updatedOwners;
131
135
  }
132
136
  render() {
133
- return (h("div", { key: '2b9c3e771b358313862c7491b137a290d1bb6d1c' }, h("div", { key: '8d82eb26425e7932576ee75682e55a8f1fe7fe0d', class: "d-flex align-items-center gap-2" }, h("legend", { key: '87a58eee2b0bea9dc9a721e5cf50f2e6e16e2a82', class: "mb-0", part: heading2 }, "Owners"), h("form-control-tooltip", { key: 'cbfbc58f3a8176f36a0ce985fda4c1606669f537', helpText: "For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director." })), h("hr", { key: '2fabca9671c7ae430b8908311b64184b63862fd3', class: "mt-2" }), h("div", { key: '0df73aba03d9666003cce40d63faa2c0edfd6f3e', class: 'row gy-3' }, this.ownersPayload.map((owner) => {
137
+ if (this.isLoading) {
138
+ return h(PaymentProvisioningLoading, null);
139
+ }
140
+ return (h("div", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Owners"), h("form-control-tooltip", { helpText: "For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director." })), h("hr", { class: "mt-2" }), h("div", { class: 'row gy-3' }, this.ownersPayload.map((owner) => {
134
141
  return (h("justifi-owner-form", { key: owner.id, authToken: this.authToken, businessId: this.businessId, ownerId: owner.id, removeOwner: this.removeOwnerForm, newFormOpen: this.newFormOpen, ownersLength: this.ownersPayload.length, allowOptionalFields: this.allowOptionalFields, ref: (ref) => this.matchRef(ref, owner.id) }));
135
- })), h("div", { key: '98bfc9f0ac8ec9048edd9bf62a6b0db87c250dc4', class: 'd-flex justify-content-start' }, h("div", { key: 'd6269cfd690b8fe5fcdef9de5e8a60354008261b', class: 'gap-2' }, h(Button, { key: '8d959af4bc6e475d265e5fbd356ad2f1ba06cd77', variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
142
+ })), h("div", { class: 'd-flex justify-content-start' }, h("div", { class: 'gap-2' }, h(Button, { variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
136
143
  }
137
144
  static get watchers() { return {
138
145
  "ownersPayload": ["ownersWatcher"]
@@ -146,6 +153,7 @@ const BusinessOwnersFormStepCore = /*@__PURE__*/ proxyCustomElement(class Busine
146
153
  "ownersPayload": [32],
147
154
  "refs": [32],
148
155
  "newFormOpen": [32],
156
+ "isLoading": [32],
149
157
  "validateAndSubmit": [64]
150
158
  }, [[0, "ownerSubmitted", "handleOwnerSubmit"]], {
151
159
  "ownersPayload": ["ownersWatcher"]
@@ -56,7 +56,7 @@ const BusinessOwnersFormStep = /*@__PURE__*/ proxyCustomElement(class BusinessOw
56
56
  }
57
57
  }
58
58
  render() {
59
- return (h(Host, { key: '2f5256be2313b3916c1f0d7a69d2b27b305cf66c' }, h("justifi-business-owners-form-step-core", { key: '2c8d3c4cb731b3cf58cf1cc71df2a52c72f660cc', authToken: this.authToken, businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: (el) => this.coreComponent = el })));
59
+ return (h(Host, { key: 'a4289542dcf53a2be9c2faea5873a36894a2e250' }, h("justifi-business-owners-form-step-core", { key: 'cd40a3cb35d657223516c91217ca3241701dcc8f', authToken: this.authToken, businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: (el) => this.coreComponent = el })));
60
60
  }
61
61
  static get watchers() { return {
62
62
  "authToken": ["propChanged"],
@@ -26,7 +26,7 @@ const RepresentativeFormInputs = /*@__PURE__*/ proxyCustomElement(class Represen
26
26
  }
27
27
  render() {
28
28
  var _a, _b, _c, _d, _e, _f, _g;
29
- return (h("form", { key: '0995ea70a1732744cf159fc59a0e4aa8d9f37c1c' }, h("fieldset", { key: '0186de6a306858075d58a32af6a36d07c0b7ae39' }, h("div", { key: '70c643b23570551f0c82df144cdba8020a89c9ef', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'fec6925b259580935a526a79428f9b0a7f1f4d65', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: '45e3af519e4ad082fcef1ab14b1c66decfd1b2ba', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: 'b55f8129932bfbdba4d010c60931b188a7d88c57', class: "mt-2" }), h("div", { key: '2b8b87ebd71763798127aece44a91c8143612458', class: "row gy-3" }, h("div", { key: '27310ee20317a0fa977bc623bd6fa16fb1e9387a', class: "col-12 col-md-8" }, h("form-control-text", { key: 'ae638a4e2c13e5e1319eb316290ce3116244174c', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '864731a0668a86ce3fa85911b0c97e5db8878d08', class: "col-12 col-md-4" }, h("form-control-text", { key: '8f07886343469e5a054f49dfd01de4f9913f42f4', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '0efff4560cd543839a364b0b769f1b1f71163b66', class: "col-12 col-md-6" }, h("form-control-text", { key: '11f738a73989ce789770b36ce1d437d53aa53e07', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'aedf826b2e02f5bdd403451ed47051e1077fe65e', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'ea237c5c3772e8bfeea31995ab0eac23014bd0fd', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '286a392a94ed5e9a9fe175116d835952cd565947', class: "col-12 col-md-4" }, h("form-control-date", { key: 'f0c5dde29769188f7d5ccc06360f69918a8bae5e', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: '1326dd00d94fe8feec7ca411689370a747709eec', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '5b084d36a3be5b58534169076f34282a3d8565ac', name: "identification_number", label: "SSN", defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: 'c0ca035fd4ff10f9529be1ff6c28f8c4479c95b1', class: "col-12" }, h("justifi-identity-address-form", { key: '1f9e30e790dc3facd5590492a99490e06d74c17a', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
29
+ return (h("form", { key: '90775954aebfc23b163d3b1626de290b70a4b32c' }, h("fieldset", { key: 'ea79bf2618b504fd7a5b86f334aace2d9fb20681' }, h("div", { key: '3b0ec861e82a1fb35dee68a81655506c198686d4', class: "d-flex align-items-center gap-2" }, h("legend", { key: '613e036d03c20ffc6e51a6a89f38eda7b2440e67', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: 'ba37c309f9f25b697f297c9641767d800e284f9f', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '8c3b56e7481e7c67a9e4f56fb2406506d6a3f927', class: "mt-2" }), h("div", { key: '477b3938ea0011e67bba2c43406b9dbb14019caf', class: "row gy-3" }, h("div", { key: 'dd2eca835cb422bd0f38fd504da1d651d5914d89', class: "col-12 col-md-8" }, h("form-control-text", { key: '477719029d827ddff5d2e357d641eb2d8b697657', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '36d22fa160f31c538e5afb80fa7fd6533caae3d3', class: "col-12 col-md-4" }, h("form-control-text", { key: '9d87128ec44af7cb861be3b3bf9705172267a2db', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '88b158cae25138f1e930f16d72972767679f9f27', class: "col-12 col-md-6" }, h("form-control-text", { key: 'dbd4ee0f36136c17aa96c36ca1fd0d8ed66758b4', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '11f873b4275b150459c482264ed364e8970f70ca', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '39763eb1b0c981f525b81c5d0fc0fb2fb44cce5c', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '6f7e70e31c03564c989355f9ed40b839451b3ae2', class: "col-12 col-md-4" }, h("form-control-date", { key: 'e5ee8b0752707fdafa4b6b7a8973f5b66f21bce6', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: '73d54b1618e625fd67da896645edf74000596192', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'ce5235878fc1554e573e86070502a7ebaf4f2544', name: "identification_number", label: "SSN", defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: '521ebc9a53fb0b2591937e75d6ca6789c134d54f', class: "col-12" }, h("justifi-identity-address-form", { key: '69d66df1033b67ce2e2fe7ae44ab7adfb38cc3d8', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
30
30
  }
31
31
  }, [0, "justifi-business-representative-form-inputs", {
32
32
  "representativeDefaultValue": [8, "representative-default-value"],
@@ -2,6 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
2
2
  import { R as Representative } from './Business.js';
3
3
  import { F as FormController } from './form.js';
4
4
  import { i as identitySchema } from './business-identity-schema.js';
5
+ import { P as PaymentProvisioningLoading } from './payment-provisioning-loading.js';
5
6
  import { B as BusinessFormStep } from './event-types2.js';
6
7
  import { d as defineCustomElement$8 } from './custom-popper2.js';
7
8
  import { d as defineCustomElement$7 } from './form-control-date2.js';
@@ -21,6 +22,7 @@ const BusinessRepresentativeFormStepCore = /*@__PURE__*/ proxyCustomElement(clas
21
22
  this.formLoading = createEvent(this, "formLoading", 7);
22
23
  this.getData = () => {
23
24
  this.formLoading.emit(true);
25
+ this.isLoading = true;
24
26
  this.getBusiness({
25
27
  onSuccess: (response) => {
26
28
  this.representative = new Representative(response.data.representative || {});
@@ -33,7 +35,10 @@ const BusinessRepresentativeFormStepCore = /*@__PURE__*/ proxyCustomElement(clas
33
35
  severity: severity
34
36
  });
35
37
  },
36
- final: () => this.formLoading.emit(false)
38
+ final: () => {
39
+ this.formLoading.emit(false);
40
+ this.isLoading = false;
41
+ }
37
42
  });
38
43
  };
39
44
  this.sendData = (onSuccess) => {
@@ -62,6 +67,7 @@ const BusinessRepresentativeFormStepCore = /*@__PURE__*/ proxyCustomElement(clas
62
67
  this.formController = undefined;
63
68
  this.errors = {};
64
69
  this.representative = {};
70
+ this.isLoading = false;
65
71
  this.getBusiness = undefined;
66
72
  this.patchBusiness = undefined;
67
73
  this.allowOptionalFields = undefined;
@@ -83,7 +89,10 @@ const BusinessRepresentativeFormStepCore = /*@__PURE__*/ proxyCustomElement(clas
83
89
  });
84
90
  }
85
91
  render() {
86
- return (h("justifi-business-representative-form-inputs", { key: 'bc90362d5ed774196cea5d259211d8099f918522', representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
92
+ if (this.isLoading) {
93
+ return (h(PaymentProvisioningLoading, null));
94
+ }
95
+ return (h("justifi-business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
87
96
  }
88
97
  }, [0, "justifi-business-representative-form-step-core", {
89
98
  "getBusiness": [16],
@@ -92,6 +101,7 @@ const BusinessRepresentativeFormStepCore = /*@__PURE__*/ proxyCustomElement(clas
92
101
  "formController": [32],
93
102
  "errors": [32],
94
103
  "representative": [32],
104
+ "isLoading": [32],
95
105
  "validateAndSubmit": [64]
96
106
  }]);
97
107
  function defineCustomElement() {
@@ -54,7 +54,7 @@ const BusinessRepresentativeFormStep = /*@__PURE__*/ proxyCustomElement(class Bu
54
54
  }
55
55
  }
56
56
  render() {
57
- return (h("justifi-business-representative-form-step-core", { key: '24461e0acb80a0161fb796c3ee35f511601f707e', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
57
+ return (h("justifi-business-representative-form-step-core", { key: 'ef66ed41f635a4676073073db924050f548c9781', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
58
58
  }
59
59
  static get watchers() { return {
60
60
  "authToken": ["propChanged"],