@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
@@ -0,0 +1,136 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import { PostalFormSchema } from "../billing-form-schema";
3
+ import { FormController } from "../../../ui-components/form/form";
4
+ import { numberOnlyHandler } from "../../../ui-components/form/utils";
5
+ export class PostalForm {
6
+ constructor() {
7
+ this.inputHandler = (name, value) => {
8
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
9
+ };
10
+ this.legend = undefined;
11
+ this.formController = undefined;
12
+ this.billingInfo = undefined;
13
+ this.errors = {};
14
+ }
15
+ componentWillLoad() {
16
+ this.formController = new FormController(PostalFormSchema);
17
+ }
18
+ componentDidLoad() {
19
+ this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
20
+ this.formController.errors.subscribe(errors => {
21
+ this.errors = Object.assign({}, errors);
22
+ });
23
+ }
24
+ async getValues() {
25
+ return this.formController.values.getValue();
26
+ }
27
+ async fill(fields) {
28
+ this.formController.setInitialValues(fields);
29
+ }
30
+ async validate() {
31
+ let isValid = await this.formController.validate();
32
+ return { isValid: isValid };
33
+ }
34
+ render() {
35
+ const postalFormDefaultValue = this.formController.getInitialValues();
36
+ return (h(Host, { key: 'e798e67c159b53a995e4a60246c6f6d6e872f1ec' }, h("form", { key: '24d6980de772a360c0218e9ab50550dcee5786d5' }, h("fieldset", { key: '9e990836becccdf5d12a9e15e2eb7f4078f74b08' }, this.legend && h("legend", { key: '12d445b392cf03114dbd2a37391ecc1b87304868' }, this.legend), h("div", { key: '2d2fed9cf30b3869633b80b39b7684dfde66f6b7', class: "row gy-3" }, h("div", { key: '8ec042863e646d5daffeb3fbb5395336406adcde', class: "col-12" }, h("form-control-text", { key: '82a2c18c2a7eef7ba7ac46e53dfc9c975c8d28b7', name: 'address_postal_code', label: "ZIP", defaultValue: postalFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler })))))));
37
+ }
38
+ static get is() { return "postal-form"; }
39
+ static get properties() {
40
+ return {
41
+ "legend": {
42
+ "type": "string",
43
+ "mutable": true,
44
+ "complexType": {
45
+ "original": "string",
46
+ "resolved": "string",
47
+ "references": {}
48
+ },
49
+ "required": false,
50
+ "optional": true,
51
+ "docs": {
52
+ "tags": [],
53
+ "text": "(Optional) A label for the form."
54
+ },
55
+ "attribute": "legend",
56
+ "reflect": false
57
+ }
58
+ };
59
+ }
60
+ static get states() {
61
+ return {
62
+ "formController": {},
63
+ "billingInfo": {},
64
+ "errors": {}
65
+ };
66
+ }
67
+ static get methods() {
68
+ return {
69
+ "getValues": {
70
+ "complexType": {
71
+ "signature": "() => Promise<PostalFormFields>",
72
+ "parameters": [],
73
+ "references": {
74
+ "Promise": {
75
+ "location": "global",
76
+ "id": "global::Promise"
77
+ },
78
+ "PostalFormFields": {
79
+ "location": "import",
80
+ "path": "../billing-form-schema",
81
+ "id": "src/components/billing-forms/billing-form-schema.ts::PostalFormFields"
82
+ }
83
+ },
84
+ "return": "Promise<PostalFormFields>"
85
+ },
86
+ "docs": {
87
+ "text": "",
88
+ "tags": []
89
+ }
90
+ },
91
+ "fill": {
92
+ "complexType": {
93
+ "signature": "(fields: PostalFormFields) => Promise<void>",
94
+ "parameters": [{
95
+ "name": "fields",
96
+ "type": "PostalFormFields",
97
+ "docs": ""
98
+ }],
99
+ "references": {
100
+ "Promise": {
101
+ "location": "global",
102
+ "id": "global::Promise"
103
+ },
104
+ "PostalFormFields": {
105
+ "location": "import",
106
+ "path": "../billing-form-schema",
107
+ "id": "src/components/billing-forms/billing-form-schema.ts::PostalFormFields"
108
+ }
109
+ },
110
+ "return": "Promise<void>"
111
+ },
112
+ "docs": {
113
+ "text": "",
114
+ "tags": []
115
+ }
116
+ },
117
+ "validate": {
118
+ "complexType": {
119
+ "signature": "() => Promise<{ isValid: boolean; }>",
120
+ "parameters": [],
121
+ "references": {
122
+ "Promise": {
123
+ "location": "global",
124
+ "id": "global::Promise"
125
+ }
126
+ },
127
+ "return": "Promise<{ isValid: boolean; }>"
128
+ },
129
+ "docs": {
130
+ "text": "",
131
+ "tags": []
132
+ }
133
+ }
134
+ };
135
+ }
136
+ }
@@ -19,7 +19,7 @@ export class AdditionalQuestions {
19
19
  render() {
20
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
21
21
  const additionalQuestionsDefaultValue = this.formController.getInitialValues().additional_questions;
22
- return (h(Host, { key: 'bb84bd6a1e3fa028c187a1d50c905e726549793d' }, h("fieldset", { key: '749a84c04210a561575b7182740fc6e5225756cb' }, h("legend", { key: '9b469b3014f11c3b108ca1ab85cfe61e202b9948', part: heading2 }, "Additional Questions"), h("div", { key: '1681a5e6f88b005dbf12c6e85c5b3b451a32d326', class: "row gy-3" }, h("div", { key: '8b29f94ac08449ed9d1995e1b3bd8e61692defa0', class: "col-12 col-md-6" }, h("form-control-monetary", { key: 'c05f4c9e4c14e2be2ce71f669d4f80661fac5812', name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.additional_questions) === null || _b === void 0 ? void 0 : _b.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'bb7b1d913c72ead01ed7c1887ab3822082e156b4', class: "col-12 col-md-6" }, h("form-control-monetary", { key: '33c9e231009d4368b5dcc45851f96e6329de64aa', name: "business_payment_volume", label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.additional_questions) === null || _d === void 0 ? void 0 : _d.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'b2e265d1eb6199f37cc667df427213f874764450', class: "col-12" }, h("form-control-select", { key: '0eb29219e1ee105088cd7b4953db890f31060a27', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.additional_questions) === null || _f === void 0 ? void 0 : _f.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: '368372379f4e361c1a85e56b4f5f9f46f490024e', class: "col-12" }, h("form-control-select", { key: '20c055aaecbc1c98861f675416bd17631f4427af', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.additional_questions) === null || _h === void 0 ? void 0 : _h.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: 'bd9761c491278329673db6fc552aa81d410d3d4e', class: "col-12" }, h("form-control-text", { key: '7824d74e9855743c0fa3192aa67d091676ac8032', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.additional_questions) === null || _k === void 0 ? void 0 : _k.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: '5eaf43f760d3ca83fe6ce92934827eda00bce848', class: "col-12" }, h("form-control-select", { key: 'bf239e5e8ea008e0617f4930836e2cc54b7d0bfb', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.additional_questions) === null || _m === void 0 ? void 0 : _m.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: '67bf5e9add4e24d12feb6398fd55bd8d29d293ff', class: "col-12" }, h("form-control-text", { key: 'c7956d361e51bb80a96e42f208af4b3499a54c66', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_p = (_o = this.errors) === null || _o === void 0 ? void 0 : _o.additional_questions) === null || _p === void 0 ? void 0 : _p.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
22
+ return (h(Host, { key: '618736c7be498f1665c5cf4aa470dd90eed52334' }, h("fieldset", { key: 'fae6781f258757e72146d1c99b66654880d72cc0' }, h("legend", { key: '96be34e12f5445c7b67b22c5636c74fc44e7532d', part: heading2 }, "Additional Questions"), h("div", { key: 'cb2ee5e23c714bd950bd586d0cb72cc09489f2d3', class: "row gy-3" }, h("div", { key: 'f0f781b138c954b6ad1f9039d295b5c4134ed8ed', class: "col-12 col-md-6" }, h("form-control-monetary", { key: 'df81f8827a2a619570c3664873192219d6a01e7a', name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.additional_questions) === null || _b === void 0 ? void 0 : _b.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '1a051cae5f83329287f07b9964125757a3fb0965', class: "col-12 col-md-6" }, h("form-control-monetary", { key: 'd2662f5858e71554a318d17fb8ee4950ababb781', name: "business_payment_volume", label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.additional_questions) === null || _d === void 0 ? void 0 : _d.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '04da123a8656cb50676a3b8981f3d5aba1188cc1', class: "col-12" }, h("form-control-select", { key: '8fcc2ac015c53a82e412f6dfccad4e6759a5d0b6', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.additional_questions) === null || _f === void 0 ? void 0 : _f.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: 'c12eca7ac3d5b58a792fc96dd79bc080ffd0d2f8', class: "col-12" }, h("form-control-select", { key: 'e77bc7b5daab33b00fe098cd0f5200ee200085e9', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.additional_questions) === null || _h === void 0 ? void 0 : _h.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: '27a94ad5b8fe71c6eb775816422151e3cd865040', class: "col-12" }, h("form-control-text", { key: '5ae2d05e20022b0d8d6b765df38bb0137537d122', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.additional_questions) === null || _k === void 0 ? void 0 : _k.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: '370e2ced766d57fcada32adff6b67644b164acfd', class: "col-12" }, h("form-control-select", { key: '1155dc7935f4ef243d1beec8136e5ccc10e808eb', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.additional_questions) === null || _m === void 0 ? void 0 : _m.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: 'f303957137b424aa3893d7fca83f239512189b6e', class: "col-12" }, h("form-control-text", { key: '1d5a1fe15fe3e85df4269f5b397e80a22b2f3bd4', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_p = (_o = this.errors) === null || _o === void 0 ? void 0 : _o.additional_questions) === null || _p === void 0 ? void 0 : _p.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
23
23
  }
24
24
  static get is() { return "justifi-additional-questions"; }
25
25
  static get properties() {
@@ -28,7 +28,7 @@ export class BusinessCoreInfo {
28
28
  }
29
29
  render() {
30
30
  const coreInfoDefaultValue = this.formController.getInitialValues();
31
- 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 }))))));
31
+ 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 }))))));
32
32
  }
33
33
  static get is() { return "justifi-business-core-info"; }
34
34
  static get properties() {
@@ -0,0 +1,6 @@
1
+ import { h } from "@stencil/core";
2
+ import { Skeleton } from "../../../ui-components";
3
+ const FormBlock = () => (h("div", { class: "row gap-3" }, h("div", { class: "col-12" }, h(Skeleton, { width: "25%" })), h("div", { class: "col-12" }, h(Skeleton, { width: "100%" })), h("div", { class: "col-12 d-flex gap-3" }, h(Skeleton, { width: "50%" }), h(Skeleton, { width: "50%" })), h("div", { class: "col-12 d-flex gap-3" }, h(Skeleton, { width: "65%" }), h(Skeleton, { width: "35%" }))));
4
+ export const BusinessFormLoading = () => {
5
+ return (h("div", { class: "row gap-5" }, h("div", { class: "col-12" }, h(Skeleton, { width: "40%", height: "40px" })), h(FormBlock, null), h(FormBlock, null), h(FormBlock, null)));
6
+ };
@@ -7,6 +7,7 @@ import { Business, BusinessFormServerErrors } from "../../../api/Business";
7
7
  import JustifiAnalytics from "../../../api/Analytics";
8
8
  import { Button, Header1, StyledHost } from "../../../ui-components";
9
9
  import { checkPkgVersion } from "../../../utils/check-pkg-version";
10
+ import { BusinessFormLoading } from "./business-form-loading";
10
11
  import { BusinessFormClickActions } from "../utils";
11
12
  export class BusinessForm {
12
13
  constructor() {
@@ -15,7 +16,7 @@ export class BusinessForm {
15
16
  this.formController.setInitialValues(Object.assign({}, business));
16
17
  };
17
18
  this.sendData = async () => {
18
- this.isLoading = true;
19
+ this.isSaving = true;
19
20
  try {
20
21
  const values = this.formController.values.getValue();
21
22
  const initialValues = this.formController.getInitialValues();
@@ -27,7 +28,7 @@ export class BusinessForm {
27
28
  this.errorMessage = BusinessFormServerErrors.patchData;
28
29
  }
29
30
  finally {
30
- this.isLoading = false;
31
+ this.isSaving = false;
31
32
  }
32
33
  };
33
34
  this.fetchData = async () => {
@@ -53,6 +54,7 @@ export class BusinessForm {
53
54
  this.formTitle = 'Business Information';
54
55
  this.removeTitle = false;
55
56
  this.isLoading = false;
57
+ this.isSaving = false;
56
58
  this.errorMessage = undefined;
57
59
  }
58
60
  componentWillLoad() {
@@ -75,7 +77,7 @@ export class BusinessForm {
75
77
  return this.removeTitle ? '' : this.formTitle;
76
78
  }
77
79
  get disabledState() {
78
- return this.isLoading;
80
+ return this.isSaving;
79
81
  }
80
82
  get businessEndpoint() {
81
83
  return `entities/business/${this.businessId}`;
@@ -88,7 +90,10 @@ export class BusinessForm {
88
90
  this.instantiateBusiness(response.data);
89
91
  }
90
92
  render() {
91
- return (h(StyledHost, { key: '583d9fda192de2a23255af3a66749bec30e82668' }, h("form", { key: '6de44b1f63b18b7e47c377665878435134155d2a', onSubmit: this.validateAndSubmit }, h("div", { key: 'e83cf5471df4628461978deba6a6269f5a91dc58', class: "row gap-3" }, h(Header1, { key: '228f8d97e1574c714de73884dd564aac2f58bc3c', text: this.title }), h("form-alert", { key: 'e3fe0d57a7ee44f44273481c41b3699e1ccf05d1', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'af3fc2e821a601d5046f230735ba52359f3f3710', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'e27933c4dd6bfc3746d5071d7cdaec05c1795ec2', formController: this.formController })), h("div", { key: '4c11232954cfb171c0c249465637a3050645f36f', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '3d9f7b042822f4b898862a0c89c00fa281daff66', formController: this.formController })), h("div", { key: 'f3b0209fc3cb1b0cd65692f0505ddfcc80a99d0a', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: 'a9c0f77135d8ff2f2c2f2ffba6d288f1f1b60f61', formController: this.formController })), h("div", { key: '085df35d64de470c9f0198d52b698945759afe27', class: "col-12 mb-4" }, h("justifi-business-representative", { key: 'fdb24f037b26f9063d0d1f073d7effb6e3789f7f', formController: this.formController })), h("div", { key: '2b0617d9cd67d296de734c8becbea183555317e4', class: "col-12 d-flex flex-row-reverse" }, h(Button, { key: '7452cb606515807d9d2089330cf5861cd2dcdc1e', type: "submit", disabled: this.disabledState, variant: 'primary', onClick: () => this.clickEvent.emit({ name: BusinessFormClickActions.submit }), isLoading: this.isLoading }, "Submit"))))));
93
+ if (this.isLoading) {
94
+ return h(StyledHost, null, h(BusinessFormLoading, null));
95
+ }
96
+ return (h(StyledHost, null, h("form", { onSubmit: this.validateAndSubmit }, h("div", { class: "row gap-3" }, h(Header1, { text: this.title }), h("form-alert", { text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { class: "col-12 mb-4" }, h("justifi-business-core-info", { formController: this.formController })), h("div", { class: "col-12 mb-4" }, h("justifi-legal-address-form", { formController: this.formController })), h("div", { class: "col-12 mb-4" }, h("justifi-additional-questions", { formController: this.formController })), h("div", { class: "col-12 mb-4" }, h("justifi-business-representative", { formController: this.formController })), h("div", { class: "col-12 d-flex flex-row-reverse" }, h(Button, { type: "submit", disabled: this.disabledState, variant: 'primary', onClick: () => this.clickEvent.emit({ name: BusinessFormClickActions.submit }), isLoading: this.isSaving }, "Submit"))))));
92
97
  }
93
98
  static get is() { return "justifi-business-form"; }
94
99
  static get encapsulation() { return "shadow"; }
@@ -187,6 +192,7 @@ export class BusinessForm {
187
192
  static get states() {
188
193
  return {
189
194
  "isLoading": {},
195
+ "isSaving": {},
190
196
  "errorMessage": {}
191
197
  };
192
198
  }
@@ -27,7 +27,7 @@ export class BusinessRepresentative {
27
27
  }
28
28
  render() {
29
29
  const representativeDefaultValue = this.formController.getInitialValues().representative;
30
- return (h(Host, { key: '6953e0a161c91c96bbd1175f827c408532d9671d' }, h("fieldset", { key: '6d964e41c2cbe52659cff1947f34a4bed0ac086b' }, h("legend", { key: 'f7cc0797ebbfabd6cf316507949f023eecb064eb', part: heading2 }, "Representative"), h("div", { key: '83c9b653887b11a242a64da2d6e56ee0a5928c09', class: "row gy-3" }, h("div", { key: '641bf82762b34021bb4de999b7ac7bdfc7467992', class: "col-12 col-md-8" }, h("form-control-text", { key: '5c467daf7356de89b9f83d1ad623b278a8728237', name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '3fe3718a17b31d15c538708bf04ac3709e4fc693', class: "col-12 col-md-4" }, h("form-control-text", { key: '12d100d5169fc48738b948ae427a25f9e56a3a43', name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '96cc8dcd98a219da320060afecbe606484d5e366', class: "col-12 col-md-6" }, h("form-control-text", { key: '77847b0d23fd7e12330965948c983e8d6d4dc9a7', name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '85c1991710d1eb0459d6ec38f11e3e04db190e41', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '978cb087ff6dc7cb2b9de885eafb3ef129e9c98f', name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'abf26703f0a54067e37b1431730c88b3bec66ea0', class: "col-12 col-md-4" }, h("form-control-date", { key: '1dce5eca05db74ac62070152c169acf527cecde0', name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: 'b95022325c2954a38fd28d0e601b948c1dea1af9', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'c3e85a5a69b44bb009756ea431433e6997dbf33e', name: "identification_number", label: this.identificationNumberLabel, defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: 'f4e5fd0ee95bd83fc0916ebf70045e78e6ea0500', class: "col-12" }, h("justifi-identity-address-form", { key: '3559f515326eea50c760522f4a22a0231214ffc8', errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
30
+ return (h(Host, { key: 'f6ec629438bef335e9a3e04fccc0223f7bafbc26' }, h("fieldset", { key: '82eac6e79e74cbcc76438fe3180ef1af9ae467ac' }, h("legend", { key: '31ca1bf5cc4e8eea0c28a690b28637dcd42ffa58', part: heading2 }, "Representative"), h("div", { key: 'f9e554f72dfd3f0dec491158ad83dd47baf6d6cc', class: "row gy-3" }, h("div", { key: '79350e59178a94a5af9dbacf13ed6b20fdde8d73', class: "col-12 col-md-8" }, h("form-control-text", { key: '78ce85dafde41cd8343898baa4ab802ce2f2d166', name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '0b145987fc92bce37bcf3543b544754ed77db31e', class: "col-12 col-md-4" }, h("form-control-text", { key: '7d49c2ee8b342ca631cf55f57f529a77bd7c6e3f', name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: 'a5c758e42bfed677f38b18298e550d1cbb753f3d', class: "col-12 col-md-6" }, h("form-control-text", { key: '5e0e9672443f2b1a7b0b63b95d007c29eae0c64d', name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '32d63091cdc630f5d0908ff17f0cea17685ecb64', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '975381119e6dc8de8caf969c432ab498b600c156', name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '86095ab1f1152242fcd68ad153e38b1d7f1ee98f', class: "col-12 col-md-4" }, h("form-control-date", { key: '361690e38df5bfe260bfaa200856f6e41c0c624c', name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: 'b0a24f235e569fe65b518871fe90f3202a4c9666', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '54edaef9d4fed9e5dc2f6743e8168cda6e01c717', name: "identification_number", label: this.identificationNumberLabel, defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: 'efa8fb991a119b6640d876f48cca69fc19d19301', class: "col-12" }, h("justifi-identity-address-form", { key: '50b7dcee0b96a38de05d04fbae8b986bb755c888', errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))))));
31
31
  }
32
32
  static get is() { return "justifi-business-representative"; }
33
33
  static get properties() {
@@ -19,7 +19,7 @@ export class LegalAddressForm {
19
19
  render() {
20
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
21
21
  const legalAddressDefaultValue = this.formController.getInitialValues().legal_address;
22
- return (h(Host, { key: 'cdc38fd9219f476ab7e96dc822e011e576ffd4a4' }, h("fieldset", { key: '2ede5cb6b37f1e3777ca0cc67301df09c3fba094' }, h("legend", { key: '172c62472d8604980ad3852706753fa57ca7de61', part: heading2 }, "Business Legal Address"), h("div", { key: 'e06b8a7685b684d0b13dca7d353a25657a193d7f', class: "row gy-3" }, h("div", { key: '666b922155f4867095c42bc8e5d532666bfa5dae', class: "col-12" }, h("form-control-text", { key: '3438b500fa38f5a8598087e9f1443c81727a25f7', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: '161beeeed0ee761e3a46eedf8be84fa41d3baa97', class: "col-12" }, h("form-control-text", { key: '50529cbf0bace2992f1a26904711b44900e7f9ae', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '9197e0c08d20fb1b4833bd5e3753bc9a98be38d3', class: "col-12" }, h("form-control-text", { key: 'a4f76e3e053a970971c65315679a26046e4bf93d', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: 'fc0751e18457603a59d6f159a8355b05f3199098', class: "col-12" }, h("form-control-select", { key: '3b9c78bdc3997badec0d0752fd8a0dcfa278ebbe', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '088917f3ec58d3e0b91a80fc545be78cb7a0d5f2', class: "col-12" }, h("form-control-text", { key: 'abb1e41d287a7ea0165f68811ee60a7985d3bcc7', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: '2f042e9969d48a35618124975def5b2fd06a9b98', class: "col-12" }, h("form-control-select", { key: '67bf02cb2b3e786b2a5a4f5817a4ffd5ff2fee96', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
22
+ return (h(Host, { key: 'a9e2d2fa0e1ac8bd37eef9b40ae3ebee44e6246f' }, h("fieldset", { key: 'defd51a5bdbc9ecf4e640d2008bb1f1f83de5dda' }, h("legend", { key: '6d4d4563e426a02539f86c58a6eaa11927ec96e2', part: heading2 }, "Business Legal Address"), h("div", { key: 'c4d0786717af5da9baca6aca93b4e81f474a1746', class: "row gy-3" }, h("div", { key: 'f8be78e845a720143e3f175eec6c9f9ee929d612', class: "col-12" }, h("form-control-text", { key: '341d426271136e734d9dd8d1968de01938b5eebb', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: 'ac5f410a9b12def5284636dd384560af93c982d6', class: "col-12" }, h("form-control-text", { key: 'b96a18e42af33fbfca0645d9aa039a2430dc0043', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: 'c3ac5227e34c525b6be906b5cf06a428bebe2ad4', class: "col-12" }, h("form-control-text", { key: '972602adcf764500928eca67660b20344a1313ec', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '8ca2e4c78b986f5156976c5adb6b5a63c584607b', class: "col-12" }, h("form-control-select", { key: '2f0eacc656e741706064c10234e471fb53ca2be2', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: 'e4d51b2347c78f5c47d5ce309c46baa5fc07f7f5', class: "col-12" }, h("form-control-text", { key: 'e237d5830f0c24bf40e43ba8d2d6b0fd095405ed', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'a7bdcd1a867ff4816f20e89f651fe80fed2193cf', class: "col-12" }, h("form-control-select", { key: 'd345dd93d46618572c3aea87893c135ac688bde5', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
23
23
  // just for now so we skip handling country specificities
24
24
  disabled: true }))))));
25
25
  }
@@ -17,7 +17,7 @@ export class IdentityAddressForm {
17
17
  }
18
18
  render() {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
20
- return (h(Host, { key: 'f656800204764998e856bc6e424d5b925556f74c' }, h("div", { key: '414d5507b883730806e43e7ee6b019eb1790b881', class: "row gy-3" }, h("div", { key: '20581fd2b6e19efeb59fb34d196da8d831961da7', class: "col-12 col-md-8" }, h("form-control-text", { key: '8cbdb2cd9e68a68344c58ca024dbdc45b04dd2b4', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler, helpText: "\u200B\u200BEnter your address exactly as stated on your driver's license. No PO Boxes." })), h("div", { key: 'e1725384142b69f39412cbdb01d9d036b1e13dc3', class: "col-12 col-md-4" }, h("form-control-text", { key: 'c90910fff750cae3133e84f01af76260d13c6848', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: 'e5afde1beebbf0b23558b028ee06baebf15704ce', class: "col-12" }, h("form-control-text", { key: '972d1fb59ee22fa414c46e9d913de9f9fafa3e75', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: '75fa447f21b17cc42853fd0c6cf01e94c04a6fa5', class: "col-12 col-md-6" }, h("form-control-select", { key: '5c0acedaea09564d0936c8d4facd45162658a204', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '6f2a269d614a16786cdc2675bf004afe2500a4b2', class: "col-12 col-md-6" }, h("form-control-text", { key: '713c45106b050b6d92e2335b0a574c6f2538050a', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: 'de7ad3baaaed9d197cbf8c68e77c92e45ebeb384', class: "col-12" }, h("form-control-select", { key: 'a3283696fc83f3f891888588a313c70af989b04d', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
20
+ return (h(Host, { key: 'fee663d501d8ed69d8959f3edbb7d40c8d599ed1' }, h("div", { key: '62cf6575afc3a416efbf262d9ad9e9999fd0b480', class: "row gy-3" }, h("div", { key: '353941d7f75be1a8f607bcfd6796e84c2923c5d4', class: "col-12 col-md-8" }, h("form-control-text", { key: '029374e05a1a4523223eff583b29c264d12c34b9', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler, helpText: "\u200B\u200BEnter your address exactly as stated on your driver's license. No PO Boxes." })), h("div", { key: '5a6efdc6724785c67088a9325c427d7594061db7', class: "col-12 col-md-4" }, h("form-control-text", { key: '42b98d49c6e3ccce6c4f27f0edc0b45199ad2011', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: '6e8019d952b5c9b2a1eb1a291a3768e0b1281a10', class: "col-12" }, h("form-control-text", { key: '46a9ccdaa06d6f7bcc83589122fb84661091898a', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: '60d5dd274bdafbe4fa9a690cd552e680028c6e5c', class: "col-12 col-md-6" }, h("form-control-select", { key: '132d048d21dff090951ffdec6812be06d13be30c', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '1f583d9c35eb86fd7067c619bde6d39120ac9581', class: "col-12 col-md-6" }, h("form-control-text", { key: '34ae70fda0faab6da9c5a278203144ecebce15b3', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: 'b04acb1677d176d7b8ab3086c7ac85ece03a9f31', class: "col-12" }, h("form-control-select", { key: '77bd3623328cfb5e090838adb729edc4138134fa', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
21
21
  // just for now so we skip handling country specificities
22
22
  disabled: true })))));
23
23
  }
@@ -154,7 +154,7 @@ export class BusinessOwnerFormCore {
154
154
  this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
155
155
  }
156
156
  render() {
157
- return (h("form", { key: '58cbb6a1f804dc14fc3d3c873b733353b01d9365', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '23cb93fab96a2d1a3a372057a93f8a5e3b5e886b' }, h("legend", { key: '06f0a9595c675d7f2f708741ef292018ad2b98e7', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: 'cdde6f04d559cc83bf50282feab27e2917889b74' }), h("div", { key: '25fd59a4755a4344ed0d6c116de79c95db8660df', class: "row gy-3" }, h("owner-form-inputs", { key: 'f839d830b204439f88594b0a16cce37286fe3e0b', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '5dad56a053aa7ad0c04869374769965eba872247', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '22342bc0f6a5978a94927aa9edddb9979309e647', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: 'ef3d494677011f095d199e736043e3c02a855f2b', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'd2d503eabc8b633ec84cabeacfe04c3802689604' }))));
157
+ return (h("form", { key: 'b7fc4c0d0fdf3a5aab0a246daffa59022255e6ae', onSubmit: this.validateAndSubmit }, h("fieldset", { key: 'eee56a5e2e26184086c1301576695b627a1f2ef4' }, h("legend", { key: 'b3f75638a502cca01da0ed54ec07660554dcd416', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: '0bc020cc7290615db3d3e1ec2b84d5af99ec86f0' }), h("div", { key: '2e7a09c9f4dffac21f2b3e1efe118542f18d89e8', class: "row gy-3" }, h("owner-form-inputs", { key: '78ffd296d4ecf0d5f2e50a06fb392cbefb1c9dc7', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '73256017645b6987cd96006e5fe080402b0602d2', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: 'e2c288cf27ebc2d4dd9c29b2a2ed8e409d0c7564', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: 'd3d604b4416c8196181ec4fd34b254a0909b2aff', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: '4ad0047c67825990c1e4c02d377901d11a7937fa' }))));
158
158
  }
159
159
  static get is() { return "owner-form-core"; }
160
160
  static get properties() {
@@ -14,7 +14,7 @@ export class BusinessOwnerFormInputs {
14
14
  this.formController = undefined;
15
15
  }
16
16
  render() {
17
- return (h("div", { key: '6604b31d64967fbabb85189c72d7d78d98d2c8c8', class: "row gy-3" }, h("div", { key: '7b52874d08593e28ac8e2369534d3697f07128c3', class: "col-12 col-md-8" }, h("form-control-text", { key: '080456fae1d1f024d3e82be43939922fb19f6ef9', name: "name", label: "Full Name", defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'e0e431c1d7d6716bc368eb1fa06b80d0576a05ee', class: "col-12 col-md-4" }, h("form-control-text", { key: '9134c2a32853cfa00edb42a2db30a85943e0c3f5', name: "title", label: "Title", defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: 'b129332c1547d43a2d2e09f19940e3a5a1df988a', class: "col-12 col-md-6" }, h("form-control-text", { key: '1e56b33c0c12898bdb0dd121fa832869deca9a2b', name: "email", label: "Email Address", defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '0a551a3d5f820e1f0146ee2603b687559756b80b', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '26c8366c9a8c93e69e8396ae1bb8d2478cc9eb81', name: "phone", label: "Phone Number", defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'e9416e635eceb13bee1cd259bad100cb165b9e74', class: "col-12 col-md-4" }, h("form-control-date", { key: '9a69bdc97c104169bdc742c341105a208b9a815a', name: "dob_full", label: "Birth Date", defaultValue: this.ownerDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: '9dedc8f023a3e6cc47835fc3a749f427c29bbee4', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: 'f1bedfe4d166ed0453a1814a5f02f7912da1e699', name: "identification_number", label: "SSN", defaultValue: this.ownerDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: '32b1cd3be64345be08b27297478ab654d9201b8b', class: "col-12" }, h("justifi-identity-address-form", { key: 'e3292e32b13c290081989a562e22454f1bfe4f83', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
17
+ return (h("div", { key: 'f54192149ae925bcd08b8408816fc41295ef00f4', class: "row gy-3" }, h("div", { key: '1f70faf2c08ebf277b465cb1532276f7525aa47f', class: "col-12 col-md-8" }, h("form-control-text", { key: '7bae6e4b330cbea14e0be40d1b35e804d62f5323', name: "name", label: "Full Name", defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '84cbbbf7cfb0e3c41c37b1194292dcb1f191298e', class: "col-12 col-md-4" }, h("form-control-text", { key: 'c106ea1b06e69d4b4fe3647cd2d0289185fae2e9', name: "title", label: "Title", defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '8040bd2c6f6d67763578117c9a46e8e82aa18abf', class: "col-12 col-md-6" }, h("form-control-text", { key: '48aea09125f010bc799dc8d0e909f83c33972c3a', name: "email", label: "Email Address", defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '00195bf163c16d8052c97de866bda7ac610cb959', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'd02770dcabfc707691ce4262cbca00d30b78a211', name: "phone", label: "Phone Number", defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'c86d87082365b5daebce40e69f98a8813198eefd', class: "col-12 col-md-4" }, h("form-control-date", { key: 'cd2cfaf3c8a6fbb28719cb85ad4b3954ac2ff059', name: "dob_full", label: "Birth Date", defaultValue: this.ownerDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'f77e5943b8e04dc20cf9c126f6ad8ee67e27ac12', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '3828035484d53d7267c7ce1686658eaba2495147', name: "identification_number", label: "SSN", defaultValue: this.ownerDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: '4a67ced4d2a6f2be7f437e59a119ab97ec8c3ffc', class: "col-12" }, h("justifi-identity-address-form", { key: 'e4fbe8bbd642d623f306236b83be7800db619506', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
18
18
  }
19
19
  ;
20
20
  static get is() { return "owner-form-inputs"; }
@@ -46,7 +46,7 @@ export class BusinessOwnerForm {
46
46
  });
47
47
  }
48
48
  render() {
49
- return (h("owner-form-core", { key: '994ef390ec2423419aa777656a49d9087ef61e72', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, ref: ref => this.coreComponent = ref }));
49
+ return (h("owner-form-core", { key: '9d1b43ef74d1e2d33cc3145c152564eb297b3cee', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, ref: ref => this.coreComponent = ref }));
50
50
  }
51
51
  static get is() { return "justifi-owner-form"; }
52
52
  static get properties() {
@@ -4,11 +4,13 @@ import { FormController } from "../../../../ui-components/form/form";
4
4
  import { AdditionalQuestions } from "../../../../api/Business";
5
5
  import { CURRENCY_MASK } from "../../../../utils/form-input-masks";
6
6
  import { heading2 } from "../../../../styles/parts";
7
+ import { PaymentProvisioningLoading } from "../payment-provisioning-loading";
7
8
  import { BusinessFormStep, businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions } from "../../utils";
8
9
  export class AdditionalQuestionsFormStepCore {
9
10
  constructor() {
10
11
  this.getData = () => {
11
12
  this.formLoading.emit(true);
13
+ this.isLoading = true;
12
14
  this.getBusiness({
13
15
  onSuccess: (response) => {
14
16
  this.additional_questions = new AdditionalQuestions(response.data.additional_questions || {});
@@ -21,7 +23,10 @@ export class AdditionalQuestionsFormStepCore {
21
23
  severity: severity
22
24
  });
23
25
  },
24
- final: () => this.formLoading.emit(false)
26
+ final: () => {
27
+ this.formLoading.emit(false);
28
+ this.isLoading = false;
29
+ }
25
30
  });
26
31
  };
27
32
  this.sendData = (onSuccess) => {
@@ -55,6 +60,7 @@ export class AdditionalQuestionsFormStepCore {
55
60
  this.errors = {};
56
61
  this.additional_questions = {};
57
62
  this.recurringPayments = false;
63
+ this.isLoading = false;
58
64
  this.getBusiness = undefined;
59
65
  this.patchBusiness = undefined;
60
66
  this.allowOptionalFields = undefined;
@@ -87,7 +93,10 @@ export class AdditionalQuestionsFormStepCore {
87
93
  render() {
88
94
  var _a, _b, _c, _d, _e, _f, _g;
89
95
  const additionalQuestionsDefaultValue = this.formController.getInitialValues();
90
- return (h("form", { key: '064a079c1a44d2d0149f68cf9d30086205275838' }, h("fieldset", { key: 'b380a225a7080f9b733de3adf7e3ee574116e870' }, h("div", { key: 'caa57d2bd552fb384f9d703524fb908d7df75e03', class: "d-flex align-items-center gap-2" }, h("legend", { key: '3be6ea38780905e7b3fe261fa901445cd1a0259f', class: "mb-0", part: heading2 }, "Additional Questions"), h("form-control-tooltip", { key: '3aab9d08eeeea7a65fc6a8f38f4a0210fa8ee718', helpText: "This information helps us understand the business and identify and monitor trends to safeguard you and your customers." })), h("hr", { key: 'b92e8f12fd4155efcb05739501fb4639403e0694', class: "mt-2" }), h("div", { key: 'b4b8cac0c7039084e2a1a1b34974bb7f89bf24a2', class: "row gy-3" }, h("div", { key: '11f218ce7b13285d3aad396d72d9e5a07ddd1ad7', class: "col-12 col-md-6" }, h("form-control-monetary", { key: '96b53fe22ce54cd5caa9819897581b13174ff701', name: "business_revenue", label: "What is your business\u2019 estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'a2b06ca931b4ac3e7a48b81e65195390ed0042cf', class: "col-12 col-md-6" }, h("form-control-monetary", { key: '5b894031a24d627f3ae91410c3af026509fc8d45', name: "business_payment_volume", label: "What is your business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '244c089ad87fbbca94b4d164016f4f446945b6e3', class: "col-12" }, h("form-control-select", { key: '2664aa0485966ed8a4742d2f78ae706283f7a9a9', name: "business_when_service_received", label: "On average, how long after paying will your customers typically receive their goods or services?", inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: 'ea44cfd2e01d1a214c28b9a3c21a374b55f7d6df', class: "col-12" }, h("form-control-select", { key: '9f6e6929ac702b71e6b9861cd06f0ee06bc41cb8', name: "business_recurring_payments", label: "Does your business offer recurring payments?", inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: '58091269a3d5e0957271a2917aa34c85052a93b8', class: 'col-12', hidden: !this.recurringPayments }, h("form-control-text", { key: '18fa653b4c9aec51d054ffad35e6c3f030ad89a4', name: "business_recurring_payments_percentage", label: "What percent of revenue is generated from each recurring payment type offered?", inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage, helpText: "For example: 50% monthly, 50% annual." })), h("div", { key: 'c525df2e0565502408bfb285051fa28d5bf21ccf', class: "col-12" }, h("form-control-select", { key: '10422ff6edece7ce860586dfc244583805fd3f50', name: "business_seasonal", label: "Is this business seasonal?", inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: '2a3cb0362556081e331a78065fbca341f156ba33', class: "col-12" }, h("form-control-text", { key: 'c7a9edc8d9a465197afa813906a9abd6455a45f0', name: "business_other_payment_details", label: "Is there anything else you would like us to know about how your customers pay the business? (optional)", inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
96
+ if (this.isLoading) {
97
+ return h(PaymentProvisioningLoading, null);
98
+ }
99
+ return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Additional Questions"), h("form-control-tooltip", { helpText: "This information helps us understand the business and identify and monitor trends to safeguard you and your customers." })), h("hr", { class: "mt-2" }), h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h("form-control-monetary", { name: "business_revenue", label: "What is your business\u2019 estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { class: "col-12 col-md-6" }, h("form-control-monetary", { name: "business_payment_volume", label: "What is your business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { class: "col-12" }, h("form-control-select", { name: "business_when_service_received", label: "On average, how long after paying will your customers typically receive their goods or services?", inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { class: "col-12" }, h("form-control-select", { name: "business_recurring_payments", label: "Does your business offer recurring payments?", inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { class: 'col-12', hidden: !this.recurringPayments }, h("form-control-text", { name: "business_recurring_payments_percentage", label: "What percent of revenue is generated from each recurring payment type offered?", inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage, helpText: "For example: 50% monthly, 50% annual." })), h("div", { class: "col-12" }, h("form-control-select", { name: "business_seasonal", label: "Is this business seasonal?", inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { class: "col-12" }, h("form-control-text", { name: "business_other_payment_details", label: "Is there anything else you would like us to know about how your customers pay the business? (optional)", inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
91
100
  }
92
101
  static get is() { return "justifi-additional-questions-form-step-core"; }
93
102
  static get properties() {
@@ -156,7 +165,8 @@ export class AdditionalQuestionsFormStepCore {
156
165
  "formController": {},
157
166
  "errors": {},
158
167
  "additional_questions": {},
159
- "recurringPayments": {}
168
+ "recurringPayments": {},
169
+ "isLoading": {}
160
170
  };
161
171
  }
162
172
  static get events() {
@@ -41,7 +41,7 @@ export class AdditionalQuestionsFormStep {
41
41
  }
42
42
  }
43
43
  render() {
44
- return (h("justifi-additional-questions-form-step-core", { key: 'bef3e4d67c4ccbb25dae52291ba9a399e854fb53', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
44
+ return (h("justifi-additional-questions-form-step-core", { key: 'ecc4bb3b51a4b6cb48e38230826784c5af623d88', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
45
45
  }
46
46
  static get is() { return "justifi-additional-questions-form-step"; }
47
47
  static get properties() {