@justifi/webcomponents 6.7.2 → 6.8.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 (788) hide show
  1. package/dist/cjs/{Api-QUTWjGTy.js → Api-CVbEWBG6.js} +1 -1
  2. package/dist/cjs/{Business-DWHy_-z9.js → Business-CB8EVrhD.js} +6 -0
  3. package/dist/cjs/{GooglePay-BwiJ_80p.js → Plaid-DxPvVu0H.js} +54 -1
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  5. package/dist/cjs/{badge-Cc87HAsf.js → badge-DkOPisAV.js} +2 -2
  6. package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +532 -0
  7. package/dist/cjs/bank-account-form.cjs.entry.js +7 -7
  8. package/dist/cjs/{business-additional-questions-schema-Y1mXnwUT.js → business-additional-questions-schema-Cnh6AXQU.js} +5 -3
  9. package/dist/cjs/business-details-core.cjs.entry.js +7 -7
  10. package/dist/cjs/{business-form-options-e9UFw4P-.js → business-form-options-B3CbEmdc.js} +1 -1
  11. package/dist/cjs/{business-identity-schema-D_OO0Suf.js → business-identity-schema-0jg2Thn9.js} +6 -2
  12. package/dist/cjs/{business.service-q93NsTG_.js → business.service-zGEitIbP.js} +3 -3
  13. package/dist/cjs/{button-fUPGXjU_.js → button-C2p1BMP-.js} +2 -2
  14. package/dist/cjs/card-form.cjs.entry.js +7 -7
  15. package/dist/cjs/{check-pkg-version-BG-Rfkh5.js → check-pkg-version-DKH70uPq.js} +12 -11
  16. package/dist/cjs/{checkout.service-CwelwhrT.js → checkout.service-DT13pWxH.js} +3 -3
  17. package/dist/cjs/checkouts-list-core.cjs.entry.js +14 -14
  18. package/dist/cjs/{payments-list-params-state-DfZySwaC.js → checkouts-list-params-state-vGJZ6Oe2.js} +1 -1
  19. package/dist/cjs/{checkouts-table-BBtqxG2F.js → checkouts-table-DftTbgXr.js} +3 -3
  20. package/dist/cjs/{config-state-CYoBVAca.js → config-state-BIgGhhe9.js} +1 -1
  21. package/dist/cjs/{country-config-MCOhn8o3.js → country-config-ETD-7Wb7.js} +1 -1
  22. package/dist/cjs/custom-popper_2.cjs.entry.js +52 -21
  23. package/dist/cjs/{dispute.service-q5ha39uN.js → dispute.service-GDUl1Wjs.js} +3 -3
  24. package/dist/cjs/form-alert_5.cjs.entry.js +11 -11
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +11 -8
  26. package/dist/cjs/form-control-date.cjs.entry.js +7 -7
  27. package/dist/cjs/{form-control-error-text-Dg_65HGK.js → form-control-error-text-BC5aRpfl.js} +2 -2
  28. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +17 -10
  29. package/dist/cjs/{form-control-help-text-tB5u1-5M.js → form-control-help-text-B2yMic8i.js} +2 -2
  30. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  31. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +12 -8
  32. package/dist/cjs/form-control-monetary.cjs.entry.js +8 -8
  33. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +13 -11
  34. package/dist/cjs/{owner-form-core_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +71 -18
  35. package/dist/cjs/form-control-radio.cjs.entry.js +9 -6
  36. package/dist/cjs/form-control-select_2.cjs.entry.js +11 -11
  37. package/dist/cjs/{get-business-D9ZHyPem.js → get-business-CP0ALW9n.js} +1 -1
  38. package/dist/cjs/{get-payment-details-DidIAK2i.js → get-payment-details-IA5Toi7Z.js} +4 -4
  39. package/dist/cjs/{get-subaccounts-BE_wcfM7.js → get-subaccounts-DNMZjAyT.js} +5 -5
  40. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -6
  41. package/dist/cjs/{header-1-Bqejh9no.js → header-1-B-nd_U7n.js} +2 -2
  42. package/dist/cjs/{header-3-DQ649Me2.js → header-3--BEJGMFA.js} +2 -2
  43. package/dist/cjs/hidden-input_2.cjs.entry.js +10 -10
  44. package/dist/cjs/{index-mmd0OhmD.js → index-W-zoNiyM.js} +90 -21
  45. package/dist/cjs/index-p7cvUYAE.js +4450 -0
  46. package/dist/cjs/{input-handlers-D6QMwPTB.js → input-handlers-gV1LyFy3.js} +1 -1
  47. package/dist/cjs/{insurance-state-DsGnIHMM.js → insurance-state-CiVJ5e26.js} +3 -3
  48. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +34 -34
  49. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +101 -67
  50. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +247 -317
  52. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +10 -10
  53. package/dist/cjs/justifi-business-details.cjs.entry.js +13 -13
  54. package/dist/cjs/justifi-business-form.cjs.entry.js +22 -22
  55. package/dist/cjs/justifi-checkout.cjs.entry.js +22 -22
  56. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +17 -17
  57. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +17 -17
  58. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-details.cjs.entry.js +4 -4
  60. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +3 -3
  61. package/dist/cjs/justifi-dispute-management.cjs.entry.js +11 -11
  62. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +25 -25
  63. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11 -11
  64. package/dist/cjs/justifi-order-terminals.cjs.entry.js +20 -20
  65. package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
  66. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +23 -11
  67. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -11
  68. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +17 -17
  69. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
  70. package/dist/cjs/justifi-payments-list.cjs.entry.js +17 -17
  71. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
  72. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +17 -17
  73. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
  74. package/dist/cjs/justifi-payouts-list.cjs.entry.js +18 -18
  75. package/dist/cjs/justifi-refund-payment.cjs.entry.js +20 -20
  76. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +4 -4
  77. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +17 -17
  78. package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
  79. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +18 -18
  80. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +15 -15
  81. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +14 -14
  82. package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -17
  83. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +2 -2
  84. package/dist/cjs/loader.cjs.js +2 -2
  85. package/dist/cjs/{package-Df5lTFe6.js → package-B4vs5j7c.js} +1 -1
  86. package/dist/cjs/pagination-menu.cjs.entry.js +2 -2
  87. package/dist/cjs/{parts-BVbaniVM.js → parts-BsBVknuf.js} +1 -0
  88. package/dist/cjs/payment-details-core.cjs.entry.js +21 -21
  89. package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
  90. package/dist/cjs/payment-provisioning-loading-B3hvtd9o.js +12 -0
  91. package/dist/cjs/{payment.service-CyHFdJ7n.js → payment.service-QODfB293.js} +3 -3
  92. package/dist/cjs/payments-list-core.cjs.entry.js +15 -15
  93. package/dist/cjs/{payouts-list-params-state-DfZySwaC.js → payments-list-params-state-vGJZ6Oe2.js} +1 -1
  94. package/dist/cjs/{payments-status-BP4u31jU.js → payments-status-BAR25wA6.js} +2 -2
  95. package/dist/cjs/{payments-table-CWXVhECV.js → payments-table-BLJ54fGU.js} +3 -3
  96. package/dist/cjs/payout-details-core.cjs.entry.js +13 -13
  97. package/dist/cjs/{payout.service-Half-hdB.js → payout.service-k7GBuYzk.js} +3 -3
  98. package/dist/cjs/payouts-list-core.cjs.entry.js +15 -15
  99. package/dist/cjs/{checkouts-list-params-state-DfZySwaC.js → payouts-list-params-state-vGJZ6Oe2.js} +1 -1
  100. package/dist/cjs/{payouts-status-CM5Zy-0J.js → payouts-status-uZAaS1RP.js} +2 -2
  101. package/dist/cjs/{payouts-table-ZLTcfkUm.js → payouts-table-C4jZJ8rq.js} +3 -3
  102. package/dist/cjs/plaid-icon-DTpONc_Q.js +46 -0
  103. package/dist/cjs/{schema-validations-Bf2mk2xU.js → schema-validations-BakyfJpE.js} +19 -3
  104. package/dist/cjs/{skeleton-B8dzxFFr.js → skeleton-BGGMhPJj.js} +2 -2
  105. package/dist/cjs/{spinner-jHyLNCGO.js → spinner-CV2CNXOQ.js} +2 -2
  106. package/dist/cjs/{styled-host-D5g7INLE.js → styled-host-DAi5SuFa.js} +1 -1
  107. package/dist/cjs/{table-CrtpRwGN.js → table-eTN_pRIP.js} +3 -3
  108. package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
  109. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +14 -14
  110. package/dist/cjs/{terminal-orders-list-params-state-DfZySwaC.js → terminal-orders-list-params-state-vGJZ6Oe2.js} +1 -1
  111. package/dist/cjs/{terminal-orders-table-DT53anT3.js → terminal-orders-table-C6j6Mx_r.js} +8 -8
  112. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +4 -4
  113. package/dist/cjs/{terminal.service-CFt55QNO.js → terminal.service-A90K3XNq.js} +3 -3
  114. package/dist/cjs/terminals-list-core.cjs.entry.js +14 -14
  115. package/dist/cjs/terminals-list-params-state-vGJZ6Oe2.js +22 -0
  116. package/dist/cjs/{terminals-table-DahpSz98.js → terminals-table-DZz8k4tP.js} +3 -3
  117. package/dist/cjs/{utils-CMiA4X7s.js → utils-T6hRmGuY.js} +2 -2
  118. package/dist/cjs/webcomponents.cjs.js +30 -3
  119. package/dist/collection/api/Analytics.js +8 -7
  120. package/dist/collection/api/Business.js +3 -0
  121. package/dist/collection/api/Identity.js +3 -0
  122. package/dist/collection/api/Plaid.js +50 -0
  123. package/dist/collection/api/index.js +1 -0
  124. package/dist/collection/api/services/plaid.service.js +13 -0
  125. package/dist/collection/collection-manifest.json +1 -0
  126. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
  127. package/dist/collection/components/business-details/business-details-core.js +2 -2
  128. package/dist/collection/components/business-details/business-details.js +2 -2
  129. package/dist/collection/components/business-details/core-info-details/core-info-details.js +1 -1
  130. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
  131. package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
  132. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  133. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  134. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +4 -4
  135. package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
  136. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +4 -4
  137. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +3 -3
  138. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +5 -5
  139. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +6 -6
  140. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -7
  141. package/dist/collection/components/business-forms/owner-form/owner-form.js +4 -4
  142. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +4 -4
  143. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +4 -4
  144. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +5 -5
  145. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +5 -5
  146. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +2 -2
  147. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +23 -8
  148. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -3
  149. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +35 -7
  150. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +6 -6
  151. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
  152. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +4 -4
  153. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +19 -11
  154. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +2 -2
  155. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +20 -8
  156. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +7 -7
  157. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
  158. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -3
  159. package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +433 -0
  160. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -3
  161. package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +2 -0
  162. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +5 -1
  163. package/dist/collection/components/business-forms/schemas/schema-validations.js +15 -0
  164. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  165. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  166. package/dist/collection/components/checkout/checkout.js +23 -4
  167. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  168. package/dist/collection/components/checkout/saved-payment-method.js +3 -3
  169. package/dist/collection/components/checkouts-list/checkouts-list-core.js +4 -4
  170. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  171. package/dist/collection/components/checkouts-list/checkouts-list.js +3 -3
  172. package/dist/collection/components/dispute-management/dispute-management-core.js +4 -4
  173. package/dist/collection/components/dispute-management/dispute-management.js +3 -3
  174. package/dist/collection/components/dispute-management/dispute-notification.js +5 -5
  175. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +2 -2
  176. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +2 -2
  177. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +2 -2
  178. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  179. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +4 -4
  180. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +2 -2
  181. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +2 -2
  182. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +2 -2
  183. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +2 -2
  184. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +2 -2
  185. package/dist/collection/components/filters/table-filters-menu.js +3 -3
  186. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  187. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -2
  188. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +7 -7
  189. package/dist/collection/components/modular-checkout/modular-checkout.js +3 -3
  190. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +3 -0
  191. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  192. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  193. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  194. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  195. package/dist/collection/components/modular-checkout/sub-components/google-pay.js +2 -2
  196. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +6 -6
  197. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +4 -51
  198. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  199. package/dist/collection/components/order-terminals/order-terminals.js +4 -4
  200. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +5 -5
  201. package/dist/collection/components/payment-details/payment-details-core.js +9 -9
  202. package/dist/collection/components/payment-details/payment-details.js +2 -2
  203. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +3 -3
  204. package/dist/collection/components/payments-list/payments-list-core.js +3 -3
  205. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  206. package/dist/collection/components/payments-list/payments-list.js +3 -3
  207. package/dist/collection/components/payout-details/payout-details-core.js +5 -5
  208. package/dist/collection/components/payout-details/payout-details.js +2 -2
  209. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +3 -3
  210. package/dist/collection/components/payouts-list/payouts-list-core.js +5 -5
  211. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  212. package/dist/collection/components/payouts-list/payouts-list.js +3 -3
  213. package/dist/collection/components/refund-payment/refund-payment.js +3 -3
  214. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -3
  215. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  216. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +3 -3
  217. package/dist/collection/components/terminals-list/terminals-list-core.js +4 -4
  218. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  219. package/dist/collection/components/terminals-list/terminals-list.js +3 -3
  220. package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +1 -1
  221. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  222. package/dist/collection/ui-components/custom-popper/custom-popper.js +51 -17
  223. package/dist/collection/ui-components/details/details.js +2 -2
  224. package/dist/collection/ui-components/form/form-control-checkbox.js +16 -10
  225. package/dist/collection/ui-components/form/form-control-date.js +5 -5
  226. package/dist/collection/ui-components/form/form-control-file-v2.js +16 -8
  227. package/dist/collection/ui-components/form/form-control-file.js +16 -10
  228. package/dist/collection/ui-components/form/form-control-monetary.js +5 -5
  229. package/dist/collection/ui-components/form/form-control-number-masked.js +14 -10
  230. package/dist/collection/ui-components/form/form-control-number.js +10 -8
  231. package/dist/collection/ui-components/form/form-control-radio.js +18 -12
  232. package/dist/collection/ui-components/form/form-control-select.js +6 -6
  233. package/dist/collection/ui-components/form/form-control-text.js +5 -5
  234. package/dist/collection/ui-components/form/form-control-textarea.js +19 -11
  235. package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +2 -2
  236. package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +2 -2
  237. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +1 -1
  238. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  239. package/dist/collection/ui-components/form/iframe-input.js +6 -6
  240. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  241. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
  242. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  243. package/dist/docs.json +714 -273
  244. package/dist/esm/{Api-Dln8a6No.js → Api-ohkSjyhl.js} +1 -1
  245. package/dist/esm/{Business-B5rtFhtR.js → Business-GgW1g7FQ.js} +6 -0
  246. package/dist/esm/{GooglePay-NNHE-OLJ.js → Plaid-CBrksnBN.js} +53 -2
  247. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  248. package/dist/esm/{badge-DtrH25ss.js → badge-BW9VFFkp.js} +2 -2
  249. package/dist/esm/bank-account-document-form-inputs_9.entry.js +522 -0
  250. package/dist/esm/bank-account-form.entry.js +7 -7
  251. package/dist/esm/{business-additional-questions-schema-woG5-pgK.js → business-additional-questions-schema-CQ8CuEfQ.js} +5 -3
  252. package/dist/esm/business-details-core.entry.js +7 -7
  253. package/dist/esm/{business-form-options-D6s5H4RI.js → business-form-options-DamBLV7N.js} +1 -1
  254. package/dist/esm/{business-identity-schema-B7VTDF4j.js → business-identity-schema-BTyJz7M9.js} +7 -3
  255. package/dist/esm/{business.service-BrUSam2T.js → business.service-BWm7Kqs4.js} +3 -3
  256. package/dist/esm/{button-Bpf3VX8Q.js → button-DMeChykB.js} +2 -2
  257. package/dist/esm/card-form.entry.js +7 -7
  258. package/dist/esm/{check-pkg-version-c_8fDHCB.js → check-pkg-version-CioeuqLV.js} +12 -11
  259. package/dist/esm/{checkout.service-Bxt1qPaY.js → checkout.service-D4Mljqjr.js} +3 -3
  260. package/dist/esm/checkouts-list-core.entry.js +14 -14
  261. package/dist/esm/{checkouts-list-params-state-gllzDQAb.js → checkouts-list-params-state-CiGfmyWW.js} +1 -1
  262. package/dist/esm/{checkouts-table-CB4GdlcZ.js → checkouts-table-B9YTe5fJ.js} +3 -3
  263. package/dist/esm/{config-state-C2NXATwF.js → config-state-kKn89dp1.js} +1 -1
  264. package/dist/esm/{country-config-BQ4D46Lb.js → country-config-D-9YmU94.js} +1 -1
  265. package/dist/esm/custom-popper_2.entry.js +52 -21
  266. package/dist/esm/{dispute.service-DYRYxxaT.js → dispute.service-ZpqfPDC0.js} +3 -3
  267. package/dist/esm/form-alert_5.entry.js +11 -11
  268. package/dist/esm/form-control-checkbox.entry.js +11 -8
  269. package/dist/esm/form-control-date.entry.js +7 -7
  270. package/dist/esm/{form-control-error-text-BZYykCDp.js → form-control-error-text-CTQxgr7_.js} +2 -2
  271. package/dist/esm/form-control-file-v2_2.entry.js +17 -10
  272. package/dist/esm/{form-control-help-text-D-p66Yxr.js → form-control-help-text-B-aaeX6n.js} +2 -2
  273. package/dist/esm/form-control-help-text.entry.js +1 -1
  274. package/dist/esm/form-control-monetary-provisioning.entry.js +12 -8
  275. package/dist/esm/form-control-monetary.entry.js +8 -8
  276. package/dist/esm/form-control-number-masked_3.entry.js +13 -11
  277. package/dist/esm/{owner-form-core_2.entry.js → form-control-number_3.entry.js} +71 -19
  278. package/dist/esm/form-control-radio.entry.js +9 -6
  279. package/dist/esm/form-control-select_2.entry.js +11 -11
  280. package/dist/esm/{get-business-Xt7B5dSo.js → get-business-BMB2IxN_.js} +1 -1
  281. package/dist/esm/{get-payment-details-BJ1PLhJZ.js → get-payment-details-B71Qi6mF.js} +3 -3
  282. package/dist/esm/{get-subaccounts-CzGHjlUF.js → get-subaccounts-DXJdRbWg.js} +4 -4
  283. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  284. package/dist/esm/{header-1-WwkF5F9y.js → header-1-DFMANSXo.js} +2 -2
  285. package/dist/esm/{header-3-C5jS39cE.js → header-3-Ck64YtdM.js} +2 -2
  286. package/dist/esm/hidden-input_2.entry.js +10 -10
  287. package/dist/esm/index-CV0Pyo1O.js +4434 -0
  288. package/dist/esm/{index-B-fWxE5e.js → index-cDVGjRkU.js} +90 -21
  289. package/dist/esm/{input-handlers-D3y0TzH9.js → input-handlers-CzWCJ849.js} +1 -1
  290. package/dist/esm/{insurance-state-C11WKZU6.js → insurance-state-DQ3xzFpR.js} +3 -3
  291. package/dist/esm/internal-tokenize-payment-method_7.entry.js +23 -23
  292. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +89 -55
  293. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  294. package/dist/esm/justifi-apple-pay_8.entry.js +35 -105
  295. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +10 -10
  296. package/dist/esm/justifi-business-details.entry.js +13 -13
  297. package/dist/esm/justifi-business-form.entry.js +22 -22
  298. package/dist/esm/justifi-checkout.entry.js +15 -15
  299. package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -10
  300. package/dist/esm/justifi-checkouts-list.entry.js +16 -16
  301. package/dist/esm/justifi-config-provider.entry.js +3 -3
  302. package/dist/esm/justifi-details.entry.js +4 -4
  303. package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
  304. package/dist/esm/justifi-dispute-management.entry.js +11 -11
  305. package/dist/esm/justifi-dispute-notification_3.entry.js +25 -25
  306. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  307. package/dist/esm/justifi-order-terminals.entry.js +17 -17
  308. package/dist/esm/justifi-payment-details.entry.js +14 -14
  309. package/dist/esm/justifi-payment-provisioning-core.entry.js +23 -11
  310. package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
  311. package/dist/esm/justifi-payment-transactions-list.entry.js +16 -16
  312. package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
  313. package/dist/esm/justifi-payments-list.entry.js +16 -16
  314. package/dist/esm/justifi-payout-details.entry.js +12 -12
  315. package/dist/esm/justifi-payout-transactions-list.entry.js +16 -16
  316. package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
  317. package/dist/esm/justifi-payouts-list.entry.js +17 -17
  318. package/dist/esm/justifi-refund-payment.entry.js +16 -16
  319. package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
  320. package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -14
  321. package/dist/esm/justifi-skeleton.entry.js +5 -5
  322. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
  323. package/dist/esm/justifi-terminal-orders-list.entry.js +14 -14
  324. package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
  325. package/dist/esm/justifi-terminals-list.entry.js +16 -16
  326. package/dist/esm/justifi-tokenize-payment-method.entry.js +2 -2
  327. package/dist/esm/loader.js +3 -3
  328. package/dist/esm/{package-BzT9OxlN.js → package-CekpA_KC.js} +1 -1
  329. package/dist/esm/pagination-menu.entry.js +2 -2
  330. package/dist/esm/{parts-sA8HBfkI.js → parts-DrquDBSk.js} +1 -1
  331. package/dist/esm/payment-details-core.entry.js +20 -20
  332. package/dist/esm/payment-method-option.entry.js +4 -4
  333. package/dist/esm/payment-provisioning-loading-DU0pNyqx.js +10 -0
  334. package/dist/esm/{payment.service-BoGemgMw.js → payment.service-C2lFq1yV.js} +3 -3
  335. package/dist/esm/payments-list-core.entry.js +15 -15
  336. package/dist/esm/{payments-list-params-state-gllzDQAb.js → payments-list-params-state-CiGfmyWW.js} +1 -1
  337. package/dist/esm/{payments-status-CADg1cD0.js → payments-status-Bn-MvMcF.js} +2 -2
  338. package/dist/esm/{payments-table-C6zHWwGO.js → payments-table-CF3_zGnh.js} +3 -3
  339. package/dist/esm/payout-details-core.entry.js +13 -13
  340. package/dist/esm/{payout.service-BSG50wqN.js → payout.service-ChupMPKT.js} +3 -3
  341. package/dist/esm/payouts-list-core.entry.js +15 -15
  342. package/dist/esm/{payouts-list-params-state-gllzDQAb.js → payouts-list-params-state-CiGfmyWW.js} +1 -1
  343. package/dist/esm/{payouts-status-4VDQvaYV.js → payouts-status-ehZrz-Xx.js} +2 -2
  344. package/dist/esm/{payouts-table-BU5XbzB9.js → payouts-table-CGZJfsje.js} +3 -3
  345. package/dist/esm/plaid-icon-wJLd-2NX.js +43 -0
  346. package/dist/esm/{schema-validations-iamDi5JD.js → schema-validations-CfHWzMvr.js} +19 -4
  347. package/dist/esm/{skeleton-Dtt56Fl3.js → skeleton-D9UXuoik.js} +2 -2
  348. package/dist/esm/{spinner-DikooWuI.js → spinner-ACMfJh3a.js} +2 -2
  349. package/dist/esm/{styled-host-DhOcKWqZ.js → styled-host-D6byRazK.js} +1 -1
  350. package/dist/esm/{table-1hqe6s5m.js → table-BbMG2jg9.js} +3 -3
  351. package/dist/esm/table-filters-menu.entry.js +4 -4
  352. package/dist/esm/terminal-orders-list-core.entry.js +14 -14
  353. package/dist/esm/{terminal-orders-list-params-state-gllzDQAb.js → terminal-orders-list-params-state-CiGfmyWW.js} +1 -1
  354. package/dist/esm/{terminal-orders-table-BsVBelxB.js → terminal-orders-table-B4_RAxxx.js} +6 -6
  355. package/dist/esm/terminal-quantity-selector.entry.js +4 -4
  356. package/dist/esm/{terminal.service-YKfi6Mr9.js → terminal.service-DqibXFHt.js} +3 -3
  357. package/dist/esm/terminals-list-core.entry.js +14 -14
  358. package/dist/esm/terminals-list-params-state-CiGfmyWW.js +16 -0
  359. package/dist/esm/{terminals-table-CXJTn-0I.js → terminals-table-B-7FR4ug.js} +3 -3
  360. package/dist/esm/{utils-CgFsPVsv.js → utils-DhCv62Pi.js} +2 -2
  361. package/dist/esm/webcomponents.js +31 -4
  362. package/dist/module/Analytics.js +9 -8
  363. package/dist/module/Business.js +6 -0
  364. package/dist/module/{Refund.js → Plaid.js} +51 -1
  365. package/dist/module/additional-questions.js +1 -1
  366. package/dist/module/additional-statement.js +2 -2
  367. package/dist/module/bank-account-billing-form-simple.js +1 -1
  368. package/dist/module/bank-account-document-inputs.js +2 -2
  369. package/dist/module/bank-account-form-inputs-canada2.js +1 -1
  370. package/dist/module/bank-account-form-inputs2.js +1 -1
  371. package/dist/module/bank-account-form.js +2 -2
  372. package/dist/module/bank-account-read-only-value2.js +1 -1
  373. package/dist/module/bank-account.js +2 -2
  374. package/dist/module/business-additional-questions-form-step.js +3 -3
  375. package/dist/module/business-additional-questions-schema.js +3 -1
  376. package/dist/module/business-address-schema.js +1 -1
  377. package/dist/module/business-bank-account-form-step.js +47 -26
  378. package/dist/module/business-core-info-form-step.js +1 -1
  379. package/dist/module/business-core-info.js +2 -2
  380. package/dist/module/business-details-core2.js +1 -1
  381. package/dist/module/business-identity-schema.js +5 -1
  382. package/dist/module/business-owners-form-step.js +42 -8
  383. package/dist/module/business-representative-form-inputs.js +2 -2
  384. package/dist/module/business-representative-form-step.js +1 -1
  385. package/dist/module/business-representative.js +2 -2
  386. package/dist/module/business-terms-conditions-form-step.js +2 -2
  387. package/dist/module/business.service.js +1 -1
  388. package/dist/module/button.js +1 -1
  389. package/dist/module/cancellation-policy.js +2 -2
  390. package/dist/module/card-billing-form-simple.js +1 -1
  391. package/dist/module/card-form.js +2 -2
  392. package/dist/module/card-form2.js +2 -2
  393. package/dist/module/checkout.service.js +1 -1
  394. package/dist/module/checkout.store.js +1 -1
  395. package/dist/module/checkouts-list-core2.js +3 -3
  396. package/dist/module/custom-popper2.js +50 -17
  397. package/dist/module/customer-details.js +2 -2
  398. package/dist/module/details.js +1 -1
  399. package/dist/module/dispute-management-core.js +2 -2
  400. package/dist/module/dispute-notification.js +3 -3
  401. package/dist/module/dispute-response-actions.js +1 -1
  402. package/dist/module/dispute-response-core.js +2 -2
  403. package/dist/module/dispute-response.js +2 -2
  404. package/dist/module/duplicate-charge.js +2 -2
  405. package/dist/module/electronic-evidence.js +2 -2
  406. package/dist/module/form-address-fields.js +1 -1
  407. package/dist/module/form-control-checkbox2.js +5 -2
  408. package/dist/module/form-control-date2.js +2 -2
  409. package/dist/module/form-control-file-v22.js +4 -1
  410. package/dist/module/form-control-file2.js +5 -2
  411. package/dist/module/form-control-monetary-provisioning2.js +6 -2
  412. package/dist/module/form-control-monetary2.js +2 -2
  413. package/dist/module/form-control-number-masked2.js +4 -2
  414. package/dist/module/form-control-number.js +1 -84
  415. package/dist/module/form-control-number2.js +87 -0
  416. package/dist/module/form-control-radio2.js +5 -2
  417. package/dist/module/form-control-select2.js +2 -2
  418. package/dist/module/form-control-text2.js +2 -2
  419. package/dist/module/form-control-textarea2.js +6 -2
  420. package/dist/module/get-business.js +1 -1
  421. package/dist/module/get-payment-details.js +1 -1
  422. package/dist/module/get-payout-csv.js +1 -1
  423. package/dist/module/get-subaccounts.js +1 -1
  424. package/dist/module/google-pay.js +3 -3
  425. package/dist/module/gross-payment-chart-core2.js +1 -1
  426. package/dist/module/hidden-input2.js +1 -1
  427. package/dist/module/identity-address-form.js +1 -1
  428. package/dist/module/iframe-input2.js +3 -3
  429. package/dist/module/index2.js +90 -21
  430. package/dist/module/internal-tokenize-payment-method2.js +2 -2
  431. package/dist/module/justifi-business-details.js +1 -1
  432. package/dist/module/justifi-business-form.js +1 -1
  433. package/dist/module/justifi-button2.js +1 -1
  434. package/dist/module/justifi-checkout.js +3 -3
  435. package/dist/module/justifi-checkouts-list-filters.js +4 -4
  436. package/dist/module/justifi-checkouts-list.js +2 -2
  437. package/dist/module/justifi-dispute-management.js +2 -2
  438. package/dist/module/justifi-gross-payment-chart.js +1 -1
  439. package/dist/module/justifi-header2.js +1 -1
  440. package/dist/module/justifi-order-terminals.js +3 -3
  441. package/dist/module/justifi-payment-details.js +1 -1
  442. package/dist/module/justifi-payment-provisioning.js +74 -62
  443. package/dist/module/justifi-payment-transactions-list.js +3 -3
  444. package/dist/module/justifi-payments-list-filters.js +3 -3
  445. package/dist/module/justifi-payments-list.js +2 -2
  446. package/dist/module/justifi-payout-details.js +1 -1
  447. package/dist/module/justifi-payout-transactions-list.js +3 -3
  448. package/dist/module/justifi-payouts-list-filters.js +3 -3
  449. package/dist/module/justifi-payouts-list.js +2 -2
  450. package/dist/module/justifi-refund-payment.js +1 -1
  451. package/dist/module/justifi-saved-payment-method.js +1 -1
  452. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  453. package/dist/module/justifi-skeleton.js +1 -1
  454. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  455. package/dist/module/justifi-terminal-orders-list.js +2 -2
  456. package/dist/module/justifi-terminals-list-filters.js +3 -3
  457. package/dist/module/justifi-terminals-list.js +2 -2
  458. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  459. package/dist/module/legal-address-form-step.js +1 -1
  460. package/dist/module/legal-address-form.js +1 -1
  461. package/dist/module/modular-checkout.js +3 -3
  462. package/dist/module/owner-form-core2.js +11 -5
  463. package/dist/module/owner-form-inputs2.js +13 -7
  464. package/dist/module/owner-form.js +11 -5
  465. package/dist/module/package.js +1 -1
  466. package/dist/module/parts.js +1 -1
  467. package/dist/module/payment-details-core2.js +9 -9
  468. package/dist/module/payment-method-option.js +1 -1
  469. package/dist/module/payment-provisioning-actions.js +1 -1
  470. package/dist/module/payment-provisioning-core.js +86 -62
  471. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  472. package/dist/module/payment-provisioning-form-steps.js +67 -55
  473. package/dist/module/payment.service.js +1 -1
  474. package/dist/module/payments-list-core2.js +3 -3
  475. package/dist/module/payout-details-core2.js +3 -3
  476. package/dist/module/payout.service.js +1 -1
  477. package/dist/module/payouts-list-core2.js +3 -3
  478. package/dist/module/plaid-icon.js +3 -0
  479. package/dist/module/plaid-payment-method.js +3 -53
  480. package/dist/module/plaid-verification.d.ts +11 -0
  481. package/dist/module/plaid-verification.js +6 -0
  482. package/dist/module/plaid-verification2.js +358 -0
  483. package/dist/module/plaid.service.js +14 -1
  484. package/dist/module/product-or-service.js +2 -2
  485. package/dist/module/refund-policy.js +2 -2
  486. package/dist/module/save-new-payment-method.js +1 -1
  487. package/dist/module/schema-validations.js +16 -1
  488. package/dist/module/shipping-details.js +2 -2
  489. package/dist/module/summary.js +1 -1
  490. package/dist/module/table-filters-menu2.js +2 -2
  491. package/dist/module/table.js +1 -1
  492. package/dist/module/terminal-orders-list-core2.js +3 -3
  493. package/dist/module/terminal-quantity-selector2.js +2 -2
  494. package/dist/module/terminal.service.js +1 -1
  495. package/dist/module/terminals-list-core2.js +3 -3
  496. package/dist/module/utils4.js +1 -1
  497. package/dist/types/api/Analytics.d.ts +1 -0
  498. package/dist/types/api/BankAccount.d.ts +1 -0
  499. package/dist/types/api/Business.d.ts +6 -0
  500. package/dist/types/api/Identity.d.ts +4 -0
  501. package/dist/types/api/Plaid.d.ts +54 -0
  502. package/dist/types/api/index.d.ts +1 -0
  503. package/dist/types/api/services/plaid.service.d.ts +8 -0
  504. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
  505. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +1 -0
  506. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
  507. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +4 -0
  508. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +3 -3
  509. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -0
  510. package/dist/types/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.d.ts +36 -0
  511. package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +2 -0
  512. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +12 -0
  513. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +10 -0
  514. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -0
  515. package/dist/types/components/checkout/checkout.d.ts +19 -0
  516. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +3 -0
  517. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +1 -25
  518. package/dist/types/components.d.ts +416 -239
  519. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +4 -0
  520. package/dist/types/ui-components/form/form-control-checkbox.d.ts +2 -2
  521. package/dist/types/ui-components/form/form-control-file-v2.d.ts +2 -2
  522. package/dist/types/ui-components/form/form-control-file.d.ts +2 -2
  523. package/dist/types/ui-components/form/form-control-number-masked.d.ts +2 -2
  524. package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
  525. package/dist/types/ui-components/form/form-control-radio.d.ts +3 -3
  526. package/dist/types/ui-components/form/form-control-textarea.d.ts +2 -2
  527. package/dist/webcomponents/{p-Dit3fZpU.js → p--cI8fPJx.js} +1 -1
  528. package/dist/webcomponents/p-02f360c5.entry.js +1 -0
  529. package/dist/webcomponents/{p-36a0af30.entry.js → p-0467df5d.entry.js} +1 -1
  530. package/dist/webcomponents/p-073ca03f.entry.js +1 -0
  531. package/dist/webcomponents/p-0eb97b54.entry.js +1 -0
  532. package/dist/webcomponents/p-0f6fa1c0.entry.js +1 -0
  533. package/dist/webcomponents/p-0fcb7ebb.entry.js +1 -0
  534. package/dist/webcomponents/p-110bec2e.entry.js +1 -0
  535. package/dist/webcomponents/{p-d0c4b0ea.entry.js → p-172b0c96.entry.js} +1 -1
  536. package/dist/webcomponents/{p-725319f3.entry.js → p-1ec3d1e7.entry.js} +1 -1
  537. package/dist/webcomponents/p-20cab5fe.entry.js +1 -0
  538. package/dist/webcomponents/p-238ba771.entry.js +1 -0
  539. package/dist/webcomponents/p-2454c140.entry.js +1 -0
  540. package/dist/webcomponents/p-25666afe.entry.js +1 -0
  541. package/dist/webcomponents/p-26430bfe.entry.js +1 -0
  542. package/dist/webcomponents/p-265a7cb3.entry.js +1 -0
  543. package/dist/webcomponents/p-2e7143b8.entry.js +1 -0
  544. package/dist/webcomponents/p-32fac30b.entry.js +1 -0
  545. package/dist/webcomponents/p-33ab9174.entry.js +1 -0
  546. package/dist/webcomponents/p-393c9065.entry.js +1 -0
  547. package/dist/webcomponents/p-3a254390.entry.js +1 -0
  548. package/dist/webcomponents/p-493e73a9.entry.js +1 -0
  549. package/dist/webcomponents/p-4a802f82.entry.js +1 -0
  550. package/dist/webcomponents/p-4b928d2e.entry.js +1 -0
  551. package/dist/webcomponents/p-4d3e4e56.entry.js +1 -0
  552. package/dist/webcomponents/p-50cc771a.entry.js +1 -0
  553. package/dist/webcomponents/p-55e63bdd.entry.js +1 -0
  554. package/dist/webcomponents/p-5ae3401d.entry.js +1 -0
  555. package/dist/webcomponents/p-65f4681c.entry.js +1 -0
  556. package/dist/webcomponents/p-7068c2ad.entry.js +1 -0
  557. package/dist/webcomponents/p-785e8ef7.entry.js +1 -0
  558. package/dist/webcomponents/{p-897b794b.entry.js → p-7b4e9ae8.entry.js} +2 -2
  559. package/dist/webcomponents/{p-1a327b0e.entry.js → p-7fdfc2c8.entry.js} +1 -1
  560. package/dist/webcomponents/p-81bbd944.entry.js +1 -0
  561. package/dist/webcomponents/p-8ac883e4.entry.js +1 -0
  562. package/dist/webcomponents/p-8e6f2dc8.entry.js +1 -0
  563. package/dist/webcomponents/p-8ed4f485.entry.js +1 -0
  564. package/dist/webcomponents/p-922ddfb4.entry.js +1 -0
  565. package/dist/webcomponents/p-9643fe36.entry.js +1 -0
  566. package/dist/webcomponents/{p-20af8597.entry.js → p-99065f37.entry.js} +1 -1
  567. package/dist/webcomponents/p-9ce5fcb6.entry.js +1 -0
  568. package/dist/webcomponents/p-9d844936.entry.js +1 -0
  569. package/dist/webcomponents/p-AMVhBsGv.js +1 -0
  570. package/dist/webcomponents/{p-DfKxeSrC.js → p-B1AMrMly.js} +1 -1
  571. package/dist/webcomponents/p-B8CPGGs6.js +1 -0
  572. package/dist/webcomponents/p-BPTtWj7E.js +1 -0
  573. package/dist/webcomponents/p-BRPbLfCN.js +1 -0
  574. package/dist/webcomponents/p-BZ4YUsyP.js +1 -0
  575. package/dist/webcomponents/{p-CPpUGsw5.js → p-BZbvHgMz.js} +1 -1
  576. package/dist/webcomponents/{p-CV8xqdt6.js → p-Bhk8tHxs.js} +1 -1
  577. package/dist/webcomponents/{p-B4xdk4mG.js → p-Bj9n56jK.js} +1 -1
  578. package/dist/webcomponents/p-BqL4QuAa.js +1 -0
  579. package/dist/webcomponents/{p-BP2sTIQV.js → p-BqNNwq6C.js} +1 -1
  580. package/dist/webcomponents/p-By-Mu1IX.js +1 -0
  581. package/dist/webcomponents/p-C0dMwnDO.js +1 -0
  582. package/dist/webcomponents/p-C3E-JbVM.js +1 -0
  583. package/dist/webcomponents/p-C3RQHKL5.js +1 -0
  584. package/dist/webcomponents/{p-BMJe4lzg.js → p-CAZzU98o.js} +1 -1
  585. package/dist/webcomponents/p-CGKWIBVk.js +1 -0
  586. package/dist/webcomponents/{p-DUmUUj9r.js → p-COcg4_A3.js} +1 -1
  587. package/dist/webcomponents/{p-C2Senazf.js → p-CQ36pja3.js} +1 -1
  588. package/dist/webcomponents/p-CV0Pyo1O.js +2 -0
  589. package/dist/webcomponents/{p-Dlrq1iZf.js → p-CWyW004b.js} +1 -1
  590. package/dist/webcomponents/p-CekpA_KC.js +1 -0
  591. package/dist/webcomponents/p-CkYB1zGe.js +1 -0
  592. package/dist/webcomponents/p-CpGEMRkH.js +1 -0
  593. package/dist/webcomponents/{p-CBbwdoSa.js → p-CruQSM5j.js} +1 -1
  594. package/dist/webcomponents/p-D-07jgNC.js +1 -0
  595. package/dist/webcomponents/p-D4EBPNuU.js +1 -0
  596. package/dist/webcomponents/p-D8GTwl9v.js +1 -0
  597. package/dist/webcomponents/{p-C77ElQ41.js → p-DCwnBXF7.js} +1 -1
  598. package/dist/webcomponents/p-DKemQxaE.js +1 -0
  599. package/dist/webcomponents/p-DOnVHzNq.js +1 -0
  600. package/dist/webcomponents/{p-tGDdRx0W.js → p-DVJaoI_m.js} +1 -1
  601. package/dist/webcomponents/p-DaZF_q9T.js +1 -0
  602. package/dist/webcomponents/p-Dm07nLGs.js +1 -0
  603. package/dist/webcomponents/p-DrquDBSk.js +1 -0
  604. package/dist/webcomponents/p-Dw63wyhO.js +1 -0
  605. package/dist/webcomponents/p-GgW1g7FQ.js +1 -0
  606. package/dist/webcomponents/{p-D6bKoyRc.js → p-JO-3z7ao.js} +1 -1
  607. package/dist/webcomponents/p-MVBgKFOv.js +1 -0
  608. package/dist/webcomponents/p-Y-EhaLdV.js +1 -0
  609. package/dist/webcomponents/{p-W9WWoLzT.js → p-YYXsr-bI.js} +1 -1
  610. package/dist/webcomponents/p-a20bddd2.entry.js +1 -0
  611. package/dist/webcomponents/p-a3510078.entry.js +1 -0
  612. package/dist/webcomponents/p-a4834220.entry.js +1 -0
  613. package/dist/webcomponents/p-a9ecaf0f.entry.js +1 -0
  614. package/dist/webcomponents/p-aa02e3d7.entry.js +1 -0
  615. package/dist/webcomponents/p-adbe280f.entry.js +1 -0
  616. package/dist/webcomponents/p-af11ac6a.entry.js +1 -0
  617. package/dist/webcomponents/p-bbffb17f.entry.js +1 -0
  618. package/dist/webcomponents/p-c0829d61.entry.js +1 -0
  619. package/dist/webcomponents/p-c2db5db6.entry.js +1 -0
  620. package/dist/webcomponents/{p-f37f3e94.entry.js → p-c7c79332.entry.js} +1 -1
  621. package/dist/webcomponents/p-c90f7ed6.entry.js +1 -0
  622. package/dist/webcomponents/p-ca8d78af.entry.js +1 -0
  623. package/dist/webcomponents/p-d4535236.entry.js +1 -0
  624. package/dist/webcomponents/p-d5827cb2.entry.js +1 -0
  625. package/dist/webcomponents/p-d7fa8461.entry.js +1 -0
  626. package/dist/webcomponents/p-dff12534.entry.js +1 -0
  627. package/dist/webcomponents/p-e54cdb00.entry.js +1 -0
  628. package/dist/webcomponents/p-e926be0d.entry.js +1 -0
  629. package/dist/webcomponents/p-ed9db5b2.entry.js +1 -0
  630. package/dist/webcomponents/p-f1e012f6.entry.js +1 -0
  631. package/dist/webcomponents/p-f1f0f100.entry.js +1 -0
  632. package/dist/webcomponents/p-f5b7c322.entry.js +1 -0
  633. package/dist/webcomponents/p-f9475bb0.entry.js +1 -0
  634. package/dist/webcomponents/p-ff1cff1d.entry.js +1 -0
  635. package/dist/webcomponents/{p-sCHf--Vc.js → p-g0kDRH6Z.js} +1 -1
  636. package/dist/webcomponents/p-m_Ly-YPk.js +1 -0
  637. package/dist/webcomponents/p-sPEyLX4E.js +1 -0
  638. package/dist/webcomponents/p-wSi5d4-j.js +1 -0
  639. package/dist/webcomponents/p-wqq-X93m.js +1 -0
  640. package/dist/webcomponents/{p-yyedWKWX.js → p-y8av3w9x.js} +1 -1
  641. package/dist/webcomponents/p-ygekUw3Q.js +1 -0
  642. package/dist/webcomponents/p-ztF3Y786.js +1 -0
  643. package/dist/webcomponents/webcomponents.esm.js +1 -1
  644. package/package.json +9 -12
  645. package/dist/cjs/bank-account-document-form-inputs_8.cjs.entry.js +0 -207
  646. package/dist/cjs/form-control-number.cjs.entry.js +0 -58
  647. package/dist/cjs/index-BhI7cJcE.js +0 -1891
  648. package/dist/cjs/terminals-list-params-state-DfZySwaC.js +0 -22
  649. package/dist/esm/bank-account-document-form-inputs_8.entry.js +0 -198
  650. package/dist/esm/form-control-number.entry.js +0 -56
  651. package/dist/esm/index-DwYM91AU.js +0 -1879
  652. package/dist/esm/terminals-list-params-state-gllzDQAb.js +0 -16
  653. package/dist/webcomponents/p-016b3e4c.entry.js +0 -1
  654. package/dist/webcomponents/p-035a4adc.entry.js +0 -1
  655. package/dist/webcomponents/p-06cae9e2.entry.js +0 -1
  656. package/dist/webcomponents/p-06f81525.entry.js +0 -1
  657. package/dist/webcomponents/p-0935600b.entry.js +0 -1
  658. package/dist/webcomponents/p-0ab9a3ae.entry.js +0 -1
  659. package/dist/webcomponents/p-0b7c4ed5.entry.js +0 -1
  660. package/dist/webcomponents/p-0bb616fc.entry.js +0 -1
  661. package/dist/webcomponents/p-11wdbrqX.js +0 -1
  662. package/dist/webcomponents/p-138ada4a.entry.js +0 -1
  663. package/dist/webcomponents/p-148d3327.entry.js +0 -1
  664. package/dist/webcomponents/p-1575ca68.entry.js +0 -1
  665. package/dist/webcomponents/p-1e761d96.entry.js +0 -1
  666. package/dist/webcomponents/p-20e85114.entry.js +0 -1
  667. package/dist/webcomponents/p-2cb9edad.entry.js +0 -1
  668. package/dist/webcomponents/p-2d4a2d26.entry.js +0 -1
  669. package/dist/webcomponents/p-368b37ad.entry.js +0 -1
  670. package/dist/webcomponents/p-3a3935a3.entry.js +0 -1
  671. package/dist/webcomponents/p-3f14d0c4.entry.js +0 -1
  672. package/dist/webcomponents/p-4d2589b2.entry.js +0 -1
  673. package/dist/webcomponents/p-511e80a4.entry.js +0 -1
  674. package/dist/webcomponents/p-5996879d.entry.js +0 -1
  675. package/dist/webcomponents/p-5a748e49.entry.js +0 -1
  676. package/dist/webcomponents/p-5c6727ae.entry.js +0 -1
  677. package/dist/webcomponents/p-622af881.entry.js +0 -1
  678. package/dist/webcomponents/p-6454626a.entry.js +0 -1
  679. package/dist/webcomponents/p-64ebff16.entry.js +0 -1
  680. package/dist/webcomponents/p-66713269.entry.js +0 -1
  681. package/dist/webcomponents/p-679b36b5.entry.js +0 -1
  682. package/dist/webcomponents/p-71577fa1.entry.js +0 -1
  683. package/dist/webcomponents/p-77754a65.entry.js +0 -1
  684. package/dist/webcomponents/p-7ec4838f.entry.js +0 -1
  685. package/dist/webcomponents/p-88a8741b.entry.js +0 -1
  686. package/dist/webcomponents/p-899b981b.entry.js +0 -1
  687. package/dist/webcomponents/p-8c4b502d.entry.js +0 -1
  688. package/dist/webcomponents/p-8df30672.entry.js +0 -1
  689. package/dist/webcomponents/p-911b3d63.entry.js +0 -1
  690. package/dist/webcomponents/p-97b8bf5c.entry.js +0 -1
  691. package/dist/webcomponents/p-9b74a642.entry.js +0 -1
  692. package/dist/webcomponents/p-9b8aee30.entry.js +0 -1
  693. package/dist/webcomponents/p-9e94c9ef.entry.js +0 -1
  694. package/dist/webcomponents/p-B5rtFhtR.js +0 -1
  695. package/dist/webcomponents/p-BOqOio4U.js +0 -1
  696. package/dist/webcomponents/p-BUsqF4-J.js +0 -1
  697. package/dist/webcomponents/p-BYsgavgS.js +0 -1
  698. package/dist/webcomponents/p-BhqSAzpT.js +0 -1
  699. package/dist/webcomponents/p-BrRsgB8S.js +0 -1
  700. package/dist/webcomponents/p-BzT9OxlN.js +0 -1
  701. package/dist/webcomponents/p-C9VmfRis.js +0 -1
  702. package/dist/webcomponents/p-CCxsFwC4.js +0 -1
  703. package/dist/webcomponents/p-CK_XkZku.js +0 -1
  704. package/dist/webcomponents/p-CQGIjIgZ.js +0 -1
  705. package/dist/webcomponents/p-CZ3F1ZAT.js +0 -1
  706. package/dist/webcomponents/p-CgiDds_u.js +0 -1
  707. package/dist/webcomponents/p-CsgUIrv8.js +0 -1
  708. package/dist/webcomponents/p-D032AB34.js +0 -1
  709. package/dist/webcomponents/p-DATDsXcA.js +0 -1
  710. package/dist/webcomponents/p-DGGjRqDa.js +0 -1
  711. package/dist/webcomponents/p-DKGn-ILd.js +0 -1
  712. package/dist/webcomponents/p-DOcRWTul.js +0 -1
  713. package/dist/webcomponents/p-DY_3dcgR.js +0 -1
  714. package/dist/webcomponents/p-DdJYXOQX.js +0 -1
  715. package/dist/webcomponents/p-DmdEjScI.js +0 -1
  716. package/dist/webcomponents/p-DwYM91AU.js +0 -2
  717. package/dist/webcomponents/p-RTAZ4tdd.js +0 -1
  718. package/dist/webcomponents/p-Ty7R7tsw.js +0 -1
  719. package/dist/webcomponents/p-U3nU15el.js +0 -1
  720. package/dist/webcomponents/p-Uqevvbqm.js +0 -1
  721. package/dist/webcomponents/p-VRubcA-q.js +0 -1
  722. package/dist/webcomponents/p-a0b4c42b.entry.js +0 -1
  723. package/dist/webcomponents/p-af7c219d.entry.js +0 -1
  724. package/dist/webcomponents/p-b0f0d53c.entry.js +0 -1
  725. package/dist/webcomponents/p-b752c5bc.entry.js +0 -1
  726. package/dist/webcomponents/p-bbff6196.entry.js +0 -1
  727. package/dist/webcomponents/p-c0c36187.entry.js +0 -1
  728. package/dist/webcomponents/p-c920dc54.entry.js +0 -1
  729. package/dist/webcomponents/p-cdf1e61c.entry.js +0 -1
  730. package/dist/webcomponents/p-d077569e.entry.js +0 -1
  731. package/dist/webcomponents/p-d7b1b7b5.entry.js +0 -1
  732. package/dist/webcomponents/p-dc6c9c79.entry.js +0 -1
  733. package/dist/webcomponents/p-e4335938.entry.js +0 -1
  734. package/dist/webcomponents/p-e805b011.entry.js +0 -1
  735. package/dist/webcomponents/p-ecbc83bf.entry.js +0 -1
  736. package/dist/webcomponents/p-f30c939f.entry.js +0 -1
  737. package/dist/webcomponents/p-f56d7b4c.entry.js +0 -1
  738. package/dist/webcomponents/p-f99403d8.entry.js +0 -1
  739. package/dist/webcomponents/p-fb644da6.entry.js +0 -1
  740. package/dist/webcomponents/p-fc4b27ec.entry.js +0 -1
  741. package/dist/webcomponents/p-fe43449c.entry.js +0 -1
  742. package/dist/webcomponents/p-giyZ3C4E.js +0 -1
  743. package/dist/webcomponents/p-sA8HBfkI.js +0 -1
  744. package/docs/.eslintrc.cjs +0 -17
  745. package/docs/changelog/index.mdx +0 -17
  746. package/docs/entities/businessdetails/index.mdx +0 -143
  747. package/docs/entities/businessform/index.mdx +0 -241
  748. package/docs/entities/index.mdx +0 -19
  749. package/docs/entities/payment-provisioning/index.mdx +0 -128
  750. package/docs/frameworks/angular/index.mdx +0 -112
  751. package/docs/frameworks/index.mdx +0 -18
  752. package/docs/frameworks/react/index.mdx +0 -125
  753. package/docs/frameworks/vue/index.mdx +0 -102
  754. package/docs/helpers/PartsTable.js +0 -50
  755. package/docs/helpers/PropsTable.js +0 -56
  756. package/docs/helpers/index.ts +0 -3
  757. package/docs/helpers/version.js +0 -32
  758. package/docs/introduction/index.mdx +0 -125
  759. package/docs/merchant-tools/checkouts-list/index.mdx +0 -97
  760. package/docs/merchant-tools/gross-payments-chart/index.mdx +0 -83
  761. package/docs/merchant-tools/index.mdx +0 -25
  762. package/docs/merchant-tools/order-terminals/index.mdx +0 -84
  763. package/docs/merchant-tools/payment-details/index.mdx +0 -132
  764. package/docs/merchant-tools/payment-transactions-list/index.mdx +0 -85
  765. package/docs/merchant-tools/payments-list/index.mdx +0 -109
  766. package/docs/merchant-tools/payout-details/index.mdx +0 -84
  767. package/docs/merchant-tools/payout-transactions-list/index.mdx +0 -84
  768. package/docs/merchant-tools/payouts-list/index.mdx +0 -92
  769. package/docs/merchant-tools/terminal-orders-list/index.mdx +0 -85
  770. package/docs/merchant-tools/terminals-list/index.mdx +0 -93
  771. package/docs/modular-checkout/complete-examples/index.mdx +0 -20
  772. package/docs/modular-checkout/index.mdx +0 -20
  773. package/docs/modular-checkout/introduction/index.mdx +0 -102
  774. package/docs/modular-checkout/sub-components/apple-pay.mdx +0 -106
  775. package/docs/modular-checkout/sub-components/bank-account-form.mdx +0 -167
  776. package/docs/modular-checkout/sub-components/card-form.mdx +0 -178
  777. package/docs/modular-checkout/sub-components/index.mdx +0 -23
  778. package/docs/modular-checkout/sub-components/payment-method-options.mdx +0 -87
  779. package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +0 -158
  780. package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +0 -183
  781. package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +0 -221
  782. package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +0 -183
  783. package/docs/modular-checkout/sub-components/summary.mdx +0 -111
  784. package/docs/payment-facilitation/dispute-management/index.mdx +0 -99
  785. package/docs/payment-facilitation/index.mdx +0 -21
  786. package/docs/payment-facilitation/refund-payment/index.mdx +0 -241
  787. package/docs/payment-facilitation/tokenize-payment-method/index.mdx +0 -350
  788. package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +0 -150
@@ -0,0 +1,522 @@
1
+ import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-CV0Pyo1O.js';
2
+ import './config-state-kKn89dp1.js';
3
+ import './dinero-HXpYMWUU.js';
4
+ import { C as ComponentErrorSeverity } from './ComponentError-Cjcsf8ku.js';
5
+ import { E as EntityDocumentType, m as PLAID_ERROR_SEVERITY, n as PLAID_ERROR_MESSAGES, o as PlaidErrorCodes } from './Plaid-CBrksnBN.js';
6
+ import './Pagination-CLHwhyvu.js';
7
+ import './Business-GgW1g7FQ.js';
8
+ import './Dispute-BH0Xfn-F.js';
9
+ import { a as bankAccountTypeOptions } from './business-form-options-DamBLV7N.js';
10
+ import './event-types-XYgDHrVL.js';
11
+ import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
12
+ import { B as text, $ as card, D as heading2, ap as table, P as tableHeadCell, ay as tableCell, U as input, V as label, R as inputInvalid, S as inputDisabled, T as inputFocused, ag as buttonSecondary } from './parts-DrquDBSk.js';
13
+ import { s as snakeCaseToHumanReadable, e as formatDate, d as formatTime } from './utils-CDaVtz_6.js';
14
+ import { S as Skeleton } from './skeleton-D9UXuoik.js';
15
+ import './event-types-CZfYo5-1.js';
16
+ import { F as FormControlErrorText } from './form-control-error-text-CTQxgr7_.js';
17
+ import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-CzWCJ849.js';
18
+ import { P as PHONE_MASKS, I as IDENTITY_MASKS } from './form-input-masks-CVaOFfrI.js';
19
+ import { c as countryLabels } from './country-config-D-9YmU94.js';
20
+ import { c as makeGetIdentity, d as makePatchIdentity, e as makePostIdentity } from './payment-provisioning-actions-ONP8lDnV.js';
21
+ import { I as IdentityService } from './business.service-BWm7Kqs4.js';
22
+ import { B as Button } from './button-DMeChykB.js';
23
+ import { S as StyledHost } from './styled-host-D6byRazK.js';
24
+ import { P as PlaidService, p as plaidIconSvg } from './plaid-icon-wJLd-2NX.js';
25
+ import './index-cDVGjRkU.js';
26
+ import './index-DkoufM1t.js';
27
+ import './utils-BeQLScSm.js';
28
+ import './Api-ohkSjyhl.js';
29
+
30
+ const BankAccountDocumentFormInputs = class {
31
+ constructor(hostRef) {
32
+ registerInstance(this, hostRef);
33
+ }
34
+ render() {
35
+ return (h("div", { key: '7f9ea576aad16f3c2ea45c987a38878ea65f2df2', class: "row gy-3" }, h("div", { key: '316fe3f20df7c7dce2b8903e6073e0fe7920e5e8', class: "col-12" }, h("form-control-file", { key: '320d6b7f3de2cfeeb30eb1e08ca4122123854ffd', name: "voided_check", label: "Voided Check", documentType: EntityDocumentType.voidedCheck, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["voided_check"], multiple: true })), h("div", { key: 'f33a936c61c14c701e40d375e4dfc4c554b8293c', class: "col-12" }, h("form-control-file", { key: '1e160d8211a71175d6a45b10590fb2c8774f61e1', name: "bank_statement", label: "Bank Statement", documentType: EntityDocumentType.bankStatement, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["bank_statement"], multiple: true }))));
36
+ }
37
+ };
38
+
39
+ const BankAccountFormInputs = class {
40
+ constructor(hostRef) {
41
+ registerInstance(this, hostRef);
42
+ }
43
+ render() {
44
+ var _a, _b, _c, _d, _e, _f;
45
+ return (h("div", { key: '5dc7139f54d11979410d0d67ca29e65b02f30200', class: "row gy-3" }, h("div", { key: '118f15bf02855b24baec5ce2a2c3cf5b241b3da4', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), h("div", { key: 'db03eccee03ec4b7d0de637306315982a2cd770d', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), h("div", { key: '217120e0052b8ee41cac8f901ac4d9742b0c6ea9', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (h("form-control-text", { name: "account_owner_name", label: "Account Owner Name", defaultValue: this.defaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler }))), h("div", { key: 'f589511545d6262966a6fa2888cb78babacfb770', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (h("form-control-select", { name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), h("div", { key: '24df83bb2666cee381c266608c43f3fd729db4cf', class: "col-6" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Number", value: ((_e = this.defaultValue) === null || _e === void 0 ? void 0 : _e.account_number_last4) ? `**** ${this.defaultValue.account_number_last4}` : '' })) : (h("form-control-text", { name: "account_number", label: "Account Number", defaultValue: this.defaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." }))), h("div", { key: '75fe11d71e57707d088f8a90a250621fce82647f', class: "col-6" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Routing Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.routing_number) || '' })) : (h("form-control-text", { name: "routing_number", label: "Routing Number", defaultValue: this.defaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." })))));
46
+ }
47
+ };
48
+
49
+ const BankAccountFormInputsCanada = class {
50
+ constructor(hostRef) {
51
+ registerInstance(this, hostRef);
52
+ }
53
+ render() {
54
+ var _a, _b, _c, _d, _e, _f, _g;
55
+ return (h("div", { key: '34cbf10449df73748095fd7122d0ae1355a83e13', class: "row gy-3" }, h("div", { key: '607cc5cbc70fdd2d5a325bef7002a44740394282', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), h("div", { key: 'f57f4cd733f2dd439d6d83f32078371618f5fa06', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), h("div", { key: 'b92dface0116321ea990bfcaf1b036b5629385db', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (h("form-control-text", { name: "account_owner_name", label: "Account Owner Name", defaultValue: this.defaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler }))), h("div", { key: '45d68efa47de76ee420cedfb97e82f498a2de97b', class: "col-12" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (h("form-control-select", { name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), h("div", { key: '8419925e8470d63d506e1f7e82ccdf1a1132ecc0', class: "col-3" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Transit Number", value: ((_e = this.defaultValue) === null || _e === void 0 ? void 0 : _e.transit_number) || '' })) : (h("form-control-text", { name: "transit_number", label: "Transit Number", defaultValue: this.defaultValue.transit_number, maxLength: 5, errorText: this.errors.transit_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "5 digits" }))), h("div", { key: 'aa6e83c409e0cf93f1903394f63c0b719ec8808e', class: "col-3" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Institution Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.institution_number) || '' })) : (h("form-control-text", { name: "institution_number", label: "Institution Number", defaultValue: this.defaultValue.institution_number, maxLength: 3, errorText: this.errors.institution_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "3 digits" }))), h("div", { key: '029058c023daca9d0488f45478af6edafe359df7', class: "col-6" }, this.formDisabled ? (h("bank-account-read-only-value", { label: "Account Number", value: ((_g = this.defaultValue) === null || _g === void 0 ? void 0 : _g.account_number_last4) ? `**** ${this.defaultValue.account_number_last4}` : '' })) : (h("form-control-text", { name: "account_number", label: "Account Number", defaultValue: this.defaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, helpText: "Please copy the account number as shown on your statement. Do not include spaces or dashes." })))));
56
+ }
57
+ };
58
+
59
+ const BankAccountReadOnlyValue = class {
60
+ constructor(hostRef) {
61
+ registerInstance(this, hostRef);
62
+ }
63
+ render() {
64
+ return (h("div", { key: 'ad9eadcf49dbc67e51cd814d3ded334a587cc17c' }, h("label", { key: 'b8ba3d8b7ef9fc33e0e0870f71b7df5dbfae4759', class: "form-label", part: text }, this.label), h("div", { key: '1839bdadb96b3c814c73991530497f9a7be6a10d', part: text }, this.value || '')));
65
+ }
66
+ };
67
+
68
+ const BusinessDocumentsOnFile = class {
69
+ constructor(hostRef) {
70
+ registerInstance(this, hostRef);
71
+ this.documents = [];
72
+ this.isLoading = false;
73
+ }
74
+ render() {
75
+ if (this.isLoading) {
76
+ return h(Skeleton, { height: "50px" });
77
+ }
78
+ if (!this.documents.length) {
79
+ return null;
80
+ }
81
+ return (h(Host, null, h("div", { class: "card", part: card }, h("div", { class: "card-body" }, h("h5", { class: "card-title", part: heading2 }, "Documents Already on File"), h("div", { class: "table-responsive" }, h("table", { class: "table table-sm table-borderless", part: table }, h("thead", null, h("tr", null, h("th", { style: { width: "25%" }, part: tableHeadCell, scope: "col" }, "File Name"), h("th", { style: { width: "25%" }, part: tableHeadCell, scope: "col" }, "File Type"), h("th", { style: { width: "25%" }, part: tableHeadCell, scope: "col" }, "Document Type"), h("th", { style: { width: "25%" }, part: tableHeadCell, scope: "col" }, "Date Uploaded"))), h("tbody", null, this.documents.sort((a, b) => a.document_type.localeCompare(b.document_type))
82
+ .map((document, index) => {
83
+ return (h("tr", { class: index === 0 ? "border-bottom border-top" : "border-bottom" }, h("td", { part: tableCell }, document.file_name), h("td", { part: tableCell }, document.file_type), h("td", { part: tableCell }, snakeCaseToHumanReadable(document.document_type)), h("td", { part: tableCell }, `${formatDate(document.created_at)} - ${formatTime(document.created_at)}`)));
84
+ })))))), h("hr", null)));
85
+ }
86
+ };
87
+
88
+ const FileInput = class {
89
+ constructor(hostRef) {
90
+ registerInstance(this, hostRef);
91
+ this.formControlInput = createEvent(this, "formControlInput", 7);
92
+ this.formControlBlur = createEvent(this, "formControlBlur", 7);
93
+ this.fileSelected = createEvent(this, "fileSelected", 7);
94
+ this.isFocused = false;
95
+ this.errorText = '';
96
+ this.inputHandler = () => { };
97
+ this.disabled = false;
98
+ this.handleFormControlInput = (event) => {
99
+ const target = event.target;
100
+ const name = target.getAttribute('name');
101
+ this.inputHandler(name, target.value);
102
+ this.formControlInput.emit({ name, value: target.value });
103
+ };
104
+ this.changeHandler = () => {
105
+ const inputFileList = this.fileInput.files;
106
+ if (inputFileList) {
107
+ this.fileSelected.emit({
108
+ fileList: inputFileList,
109
+ document_type: this.documentType
110
+ });
111
+ }
112
+ };
113
+ }
114
+ componentDidLoad() {
115
+ this.fileInput = this.el.querySelector('input');
116
+ }
117
+ get part() {
118
+ let part = input;
119
+ if (this.errorText) {
120
+ part = inputInvalid;
121
+ }
122
+ if (this.disabled) {
123
+ part = inputDisabled;
124
+ }
125
+ if (this.isFocused) {
126
+ part = inputFocused;
127
+ }
128
+ return part;
129
+ }
130
+ render() {
131
+ return (h(Host, { key: '430da302c06fb83a93c10bbf8d9b62ff89fc9e5e' }, h("div", { key: '2235fd7e9ef83839a5c9644828580cb1727cb3cc', class: "form-group d-flex flex-column" }, h("div", { key: 'e899430b50cd692e76b4992d01df4ab5ef754ff4', class: "d-flex align-items-start gap-2" }, h("label", { key: '41a257c0c9064ababe2167522690678627d574ec', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '734a6dbf61d1f04920b01e8d9024c29bc8cf0967', helpText: this.helpText })), h("input", { key: '6bbe60077bbff7c427cb84883f91489ae58abbd1', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
132
+ this.isFocused = false;
133
+ this.formControlBlur.emit();
134
+ } }), h(FormControlErrorText, { key: '4b0ed448a2f7fd8e76d21abdaa47662f847bca7f', errorText: this.errorText, name: this.name }))));
135
+ }
136
+ get el() { return getElement(this); }
137
+ };
138
+
139
+ const RepresentativeFormInputs = class {
140
+ constructor(hostRef) {
141
+ registerInstance(this, hostRef);
142
+ this.isEditingIdentification = false;
143
+ this.inputHandler = (name, value) => {
144
+ updateFormValues(this.formController, { [name]: value });
145
+ };
146
+ this.onAddressFormUpdate = (values) => {
147
+ updateAddressFormValues(this.formController, Object.assign(Object.assign({}, this.formController.values.getValue().address), values));
148
+ };
149
+ }
150
+ render() {
151
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
152
+ return (h("form", { key: 'a9c0f6332bf302d5eb9f93c4ca045d572a40468f' }, h("fieldset", { key: '115c564826335a9c7b670bbc0409912c3eb7a4aa' }, h("div", { key: '6de8909b4b2f3c7d8ec4665aad77ef59cdf035b4', class: "d-flex align-items-center gap-2" }, h("legend", { key: 'bb8b5a3775eae450a866356a9e149a0bf57b5699', class: "mb-0", part: heading2 }, "Representative"), h("form-control-tooltip", { key: 'a0296d4a3c35a039525f39501e117ee6fdd12257', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: 'abbee22f5664275f27dd8eeb2b12c87b059ff024', class: "mt-2" }), h("div", { key: 'e165ff125df62dc1d22b7329fe7fe2ff200cbbb3', class: "row gy-3" }, h("div", { key: '114ff752eeda3ffa90529ff6bc675b874f543336', class: "col-12 col-md-8" }, h("form-control-text", { key: '8b6ce9f4a327ca5282aa32c226f671945aa10404', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'bce864367883c6bbf7bd0841114a3dbb39db692b', class: "col-12 col-md-4" }, h("form-control-text", { key: 'ec3e72dc3f84c0daee2c6509f7dbf2bad22f5db6', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '200ae959d897d9d22016553d3c586cf3f0438dd9', class: "col-12 col-md-6" }, h("form-control-text", { key: '4f77d6ca6c3c85edabc11af6f5703ab1327f05e7', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'cf642ee73f7ae8b254920a3f781c23dc456f16ae', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'df609213bec728f17b2527a2e99ff3e0e69604aa', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '2e4565c06976723ae4e497a5305cea7468bac2f4', class: "col-12 col-md-4" }, h("form-control-date", { key: 'ca7d4bf05c32d1d9983df430d338cc3433015957', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'f6cbe1b7f4e5575f626e6d73f31b4a1a09ac33e3', class: "col-12 col-md-8" }, (!((_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.ssn_last4) || this.isEditingIdentification) ? (h("form-control-number-masked", { name: "identification_number", label: countryLabels[this.country].idNumberLabel, defaultValue: this.isEditingIdentification ? '' : (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: IDENTITY_MASKS[this.country], helpText: countryLabels[this.country].identityHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].idNumberLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_h = this.representativeDefaultValue) === null || _h === void 0 ? void 0 : _h.ssn_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
153
+ this.isEditingIdentification = true;
154
+ // Clear current value to force validation
155
+ updateFormValues(this.formController, {
156
+ identification_number: '',
157
+ ssn_last4: null
158
+ });
159
+ } }, "Change"))))), h("div", { key: 'e3fa556dece2feaf5eb175ae3734c2319777ef48', class: "col-12" }, h("justifi-identity-address-form", { key: 'fe3d349371d11b8a246b9c31aebd7d9c84e03f8e', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
160
+ }
161
+ };
162
+
163
+ const BusinessOwnerForm = class {
164
+ constructor(hostRef) {
165
+ registerInstance(this, hostRef);
166
+ this.errorEvent = createEvent(this, "error-event", 7);
167
+ }
168
+ async validate() {
169
+ return this.coreComponent.validate();
170
+ }
171
+ async submit() {
172
+ return this.coreComponent.submit();
173
+ }
174
+ async validateAndSubmit({ onSuccess }) {
175
+ this.coreComponent.validateAndSubmit({ onSuccess });
176
+ }
177
+ componentWillLoad() {
178
+ this.initializeApi();
179
+ }
180
+ initializeApi() {
181
+ if (!this.authToken) {
182
+ return;
183
+ }
184
+ this.getOwner = makeGetIdentity({
185
+ authToken: this.authToken,
186
+ identityId: this.ownerId,
187
+ service: new IdentityService()
188
+ });
189
+ this.patchOwner = makePatchIdentity({
190
+ authToken: this.authToken,
191
+ identityId: this.ownerId,
192
+ service: new IdentityService()
193
+ });
194
+ this.postOwner = makePostIdentity({
195
+ authToken: this.authToken,
196
+ service: new IdentityService()
197
+ });
198
+ }
199
+ render() {
200
+ return (h("owner-form-core", { key: '47c36dfc76ac8a108950e17770d1a0fb06fe4e42', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, country: this.country, ref: ref => this.coreComponent = ref }));
201
+ }
202
+ };
203
+
204
+ const PlaidVerification = class {
205
+ constructor(hostRef) {
206
+ registerInstance(this, hostRef);
207
+ this.plaidVerificationSuccess = createEvent(this, "plaidVerificationSuccess", 7);
208
+ this.plaidVerificationError = createEvent(this, "plaidVerificationError", 7);
209
+ this.linkToken = null;
210
+ this.linkTokenId = null;
211
+ this.plaidLink = null;
212
+ this.isAuthenticating = false;
213
+ this.isSuccess = false;
214
+ this.error = null;
215
+ this.isLoading = false;
216
+ this.plaidService = new PlaidService();
217
+ this.abortController = null;
218
+ this.timeoutId = null;
219
+ this.initializePlaidLink = async () => {
220
+ try {
221
+ // Check if Plaid is available globally
222
+ if (typeof window.Plaid === 'undefined') {
223
+ this.handleError({
224
+ code: PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
225
+ message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
226
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
227
+ retryable: true,
228
+ userAction: 'Refresh the page and try again',
229
+ });
230
+ return;
231
+ }
232
+ // Get link token from backend
233
+ await this.getLinkToken();
234
+ if (!this.linkToken) {
235
+ this.handleError({
236
+ code: PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
237
+ message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
238
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
239
+ retryable: true,
240
+ userAction: 'Click to try again',
241
+ });
242
+ return;
243
+ }
244
+ // Initialize Plaid Link
245
+ const Plaid = window.Plaid;
246
+ this.plaidLink = Plaid.create({
247
+ token: this.linkToken,
248
+ onSuccess: this.handlePlaidSuccess,
249
+ onExit: this.handlePlaidExit,
250
+ onEvent: this.handlePlaidEvent,
251
+ onLoad: this.handlePlaidLoad,
252
+ });
253
+ }
254
+ catch (error) {
255
+ this.handleError({
256
+ code: PlaidErrorCodes.PLAID_LINK_INIT_FAILED,
257
+ message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
258
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
259
+ originalError: error,
260
+ retryable: true,
261
+ userAction: 'Click to try again',
262
+ });
263
+ }
264
+ };
265
+ this.getLinkToken = async () => {
266
+ var _a, _b, _c, _d;
267
+ try {
268
+ if (!this.authToken || !this.accountId) {
269
+ this.handleError({
270
+ code: PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
271
+ message: 'Missing authentication. Please provide authToken and accountId.',
272
+ severity: ComponentErrorSeverity.ERROR,
273
+ retryable: false,
274
+ userAction: 'Provide required props',
275
+ });
276
+ return;
277
+ }
278
+ // Create abort controller for timeout handling
279
+ this.abortController = new AbortController();
280
+ // Set timeout for the request
281
+ this.timeoutId = setTimeout(() => {
282
+ var _a;
283
+ (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
284
+ }, 30000); // 30 second timeout
285
+ const response = await this.plaidService.getLinkTokenForVerification(this.authToken, this.businessId, this.abortController.signal);
286
+ // Clear timeout
287
+ if (this.timeoutId) {
288
+ clearTimeout(this.timeoutId);
289
+ this.timeoutId = null;
290
+ }
291
+ if (response.error) {
292
+ const errorMessage = typeof response.error === 'string'
293
+ ? response.error
294
+ : response.error.message || 'Failed to get link token';
295
+ throw new Error(errorMessage);
296
+ }
297
+ this.linkToken = response.data.link_token;
298
+ this.linkTokenId = response.data.id;
299
+ }
300
+ catch (error) {
301
+ // Clear timeout
302
+ if (this.timeoutId) {
303
+ clearTimeout(this.timeoutId);
304
+ this.timeoutId = null;
305
+ }
306
+ let errorCode = PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED;
307
+ let message = PLAID_ERROR_MESSAGES[errorCode];
308
+ let retryable = true;
309
+ // Handle specific error types
310
+ if (error.name === 'AbortError') {
311
+ errorCode = PlaidErrorCodes.PLAID_TIMEOUT;
312
+ message = PLAID_ERROR_MESSAGES[errorCode];
313
+ retryable = true;
314
+ }
315
+ else if (((_a = error.message) === null || _a === void 0 ? void 0 : _a.includes('network')) || ((_b = error.message) === null || _b === void 0 ? void 0 : _b.includes('fetch'))) {
316
+ errorCode = PlaidErrorCodes.PLAID_NETWORK_ERROR;
317
+ message = PLAID_ERROR_MESSAGES[errorCode];
318
+ retryable = true;
319
+ }
320
+ else if (((_c = error.message) === null || _c === void 0 ? void 0 : _c.includes('401')) || ((_d = error.message) === null || _d === void 0 ? void 0 : _d.includes('unauthorized'))) {
321
+ errorCode = PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
322
+ message = 'Authentication failed. Please check your credentials.';
323
+ retryable = false;
324
+ }
325
+ this.handleError({
326
+ code: errorCode,
327
+ message: message,
328
+ severity: PLAID_ERROR_SEVERITY[errorCode],
329
+ originalError: error,
330
+ retryable,
331
+ userAction: retryable ? 'Click to try again' : 'Check your credentials',
332
+ });
333
+ }
334
+ };
335
+ this.openPlaidLink = () => {
336
+ if (this.plaidLink && this.linkToken) {
337
+ this.isAuthenticating = true;
338
+ this.clearError();
339
+ this.plaidLink.open();
340
+ }
341
+ };
342
+ this.handlePlaidSuccess = async (publicToken, _metadata) => {
343
+ var _a;
344
+ this.isAuthenticating = false;
345
+ this.isLoading = true;
346
+ this.clearError();
347
+ try {
348
+ // Send publicToken to backend
349
+ const response = await this.plaidService.postPlaidVerifiedBankAccountData(this.authToken, this.businessId, { public_token: publicToken, link_token_id: this.linkTokenId }, (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.signal);
350
+ if (response.error) {
351
+ const errorMessage = typeof response.error === 'string'
352
+ ? response.error
353
+ : response.error.message || 'Failed to verify bank account';
354
+ throw new Error(errorMessage);
355
+ }
356
+ // Success - display success message
357
+ this.isSuccess = true;
358
+ this.isLoading = false;
359
+ // Emit success event
360
+ this.plaidVerificationSuccess.emit({ publicToken, bankAccount: response.data });
361
+ }
362
+ catch (error) {
363
+ this.isLoading = false;
364
+ this.handleError({
365
+ code: PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED,
366
+ message: (error === null || error === void 0 ? void 0 : error.message) || 'Failed to verify bank account',
367
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED],
368
+ originalError: error,
369
+ retryable: true,
370
+ userAction: 'Click to try again',
371
+ });
372
+ }
373
+ };
374
+ this.handlePlaidExit = (err, _metadata) => {
375
+ this.isAuthenticating = false;
376
+ if (err) {
377
+ this.handlePlaidError(err);
378
+ }
379
+ };
380
+ this.handlePlaidEvent = (eventName, metadata) => {
381
+ // Handle specific events if needed
382
+ switch (eventName) {
383
+ case 'OPEN':
384
+ this.isAuthenticating = true;
385
+ break;
386
+ case 'CLOSE':
387
+ this.isAuthenticating = false;
388
+ break;
389
+ case 'ERROR':
390
+ this.handlePlaidError(metadata);
391
+ break;
392
+ }
393
+ };
394
+ this.handlePlaidLoad = () => {
395
+ // Plaid Link loaded successfully
396
+ };
397
+ this.handlePlaidError = (error) => {
398
+ let errorCode = PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED;
399
+ let message = PLAID_ERROR_MESSAGES[errorCode];
400
+ let retryable = true;
401
+ let userAction = 'Click to try again';
402
+ // Map Plaid error codes to our error codes
403
+ if (error.error_code) {
404
+ switch (error.error_code) {
405
+ case 'INVALID_CREDENTIALS':
406
+ errorCode = PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
407
+ message = PLAID_ERROR_MESSAGES[errorCode];
408
+ retryable = true;
409
+ break;
410
+ case 'ITEM_LOGIN_REQUIRED':
411
+ errorCode = PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
412
+ message = 'Your bank requires re-authentication. Please try again.';
413
+ retryable = true;
414
+ break;
415
+ case 'ITEM_LOCKED':
416
+ errorCode = PlaidErrorCodes.PLAID_ACCOUNT_LOCKED;
417
+ message = PLAID_ERROR_MESSAGES[errorCode];
418
+ retryable = false;
419
+ userAction = 'Contact your bank';
420
+ break;
421
+ case 'INSTITUTION_NOT_RESPONDING':
422
+ errorCode = PlaidErrorCodes.PLAID_MAINTENANCE;
423
+ message = PLAID_ERROR_MESSAGES[errorCode];
424
+ retryable = true;
425
+ break;
426
+ case 'RATE_LIMIT_EXCEEDED':
427
+ errorCode = PlaidErrorCodes.PLAID_RATE_LIMITED;
428
+ message = PLAID_ERROR_MESSAGES[errorCode];
429
+ retryable = true;
430
+ break;
431
+ default:
432
+ if (error.error_message) {
433
+ message = error.error_message;
434
+ }
435
+ break;
436
+ }
437
+ }
438
+ this.handleError({
439
+ code: errorCode,
440
+ message,
441
+ severity: PLAID_ERROR_SEVERITY[errorCode],
442
+ originalError: error,
443
+ retryable,
444
+ userAction,
445
+ });
446
+ this.isAuthenticating = false;
447
+ };
448
+ this.handleError = (plaidError) => {
449
+ this.error = plaidError;
450
+ this.isLoading = false;
451
+ // Emit error event for parent components
452
+ this.plaidVerificationError.emit(plaidError);
453
+ console.error('Plaid verification error:', plaidError);
454
+ };
455
+ this.clearError = () => {
456
+ if (this.error) {
457
+ this.error = null;
458
+ }
459
+ };
460
+ }
461
+ componentDidRender() {
462
+ if (!this.scriptRef)
463
+ return;
464
+ this.scriptRef.onload = () => {
465
+ this.initializePlaidLink();
466
+ };
467
+ this.scriptRef.onerror = () => {
468
+ this.handleError({
469
+ code: PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
470
+ message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
471
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
472
+ retryable: true,
473
+ userAction: 'Refresh the page and try again',
474
+ });
475
+ };
476
+ }
477
+ disconnectedCallback() {
478
+ // Clean up timeouts and abort controllers
479
+ if (this.timeoutId) {
480
+ clearTimeout(this.timeoutId);
481
+ }
482
+ if (this.abortController) {
483
+ this.abortController.abort();
484
+ }
485
+ }
486
+ render() {
487
+ const renderErrorState = () => {
488
+ if (!this.error)
489
+ return null;
490
+ const errorClass = this.error.severity === ComponentErrorSeverity.ERROR
491
+ ? 'text-danger'
492
+ : this.error.severity === ComponentErrorSeverity.WARNING
493
+ ? 'text-warning'
494
+ : 'text-info';
495
+ return (h("div", { class: `${errorClass} mt-2` }, h("small", null, this.error.message), h("br", null), this.error.userAction && (h("small", { class: "text-muted" }, this.error.userAction))));
496
+ };
497
+ const renderStatusState = () => {
498
+ if (this.error)
499
+ return null;
500
+ if (this.isLoading) {
501
+ return (h("div", { class: "text-info mt-2" }, h("small", null, "Verifying bank account...")));
502
+ }
503
+ if (this.isSuccess) {
504
+ return (h("div", { class: "text-success mt-2" }, h("small", null, "\u2713 Bank account verified successfully")));
505
+ }
506
+ if (this.isAuthenticating) {
507
+ return (h("div", { class: "text-info mt-2" }, h("small", null, "Connecting to your bank...")));
508
+ }
509
+ return null;
510
+ };
511
+ const plaidLogo = (h("img", { class: "plaid-logo-img", src: plaidIconSvg, alt: "Plaid", title: "Plaid", style: {
512
+ display: 'inline',
513
+ width: '20px',
514
+ height: '20px',
515
+ marginLeft: '5px',
516
+ marginTop: '-2px',
517
+ } }));
518
+ return (h(StyledHost, null, h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", { class: "mb-3" }, h(Button, { variant: "secondary", type: "button", onClick: (event) => { event.preventDefault(); this.openPlaidLink(); }, disabled: this.isLoading, part: buttonSecondary }, "Link Bank Account with ", plaidLogo)), renderErrorState(), renderStatusState())));
519
+ }
520
+ };
521
+
522
+ export { BankAccountDocumentFormInputs as bank_account_document_form_inputs, BankAccountFormInputs as bank_account_form_inputs, BankAccountFormInputsCanada as bank_account_form_inputs_canada, BankAccountReadOnlyValue as bank_account_read_only_value, BusinessDocumentsOnFile as business_documents_on_file, FileInput as form_control_file, RepresentativeFormInputs as justifi_business_representative_form_inputs, BusinessOwnerForm as justifi_owner_form, PlaidVerification as plaid_verification };
@@ -1,9 +1,9 @@
1
- import { h, r as registerInstance, H as Host } from './index-DwYM91AU.js';
2
- import { S as Skeleton } from './skeleton-Dtt56Fl3.js';
3
- import { w as waitForConfig, c as configState } from './config-state-C2NXATwF.js';
1
+ import { h, r as registerInstance, H as Host } from './index-CV0Pyo1O.js';
2
+ import { S as Skeleton } from './skeleton-D9UXuoik.js';
3
+ import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
4
4
  import { b as generateTabId } from './utils-CDaVtz_6.js';
5
- import './parts-sA8HBfkI.js';
6
- import './index-B-fWxE5e.js';
5
+ import './parts-DrquDBSk.js';
6
+ import './index-cDVGjRkU.js';
7
7
  import './dinero-HXpYMWUU.js';
8
8
 
9
9
  const BankAccountFormSkeleton = (props) => {
@@ -46,10 +46,10 @@ const BankAccountForm = class {
46
46
  return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: '32cfa049dff176af26d2a4bcb86c440a99bc8668' }, h(BankAccountFormSkeleton, { key: '8382fc8ff7726e245245db06b01fdc253d43328e', isReady: this.isReady }), h("div", { key: '83f16d13bb8c338dd859a60a7bd63edbb8f703b6', class: "container-fluid p-0", style: {
49
+ return (h(Host, { key: 'a104b2e88e818472d0158990ccf2cac6d7315616' }, h(BankAccountFormSkeleton, { key: '1ed1ac87a66aedf6a7528247e0ff3a803c74e4c3', isReady: this.isReady }), h("div", { key: 'a96c05c60c51f97c8abb7dc6a8cfebc940ea1513', class: "container-fluid p-0", style: {
50
50
  opacity: this.isReady ? '1' : '0',
51
51
  height: this.isReady ? 'auto' : '0',
52
- } }, h("div", { key: 'ff5a4020f51e917874583036ef3b50d9496a393e', class: "row mb-3" }, h("iframe-input", { key: '334cd1bbdb23cb1d4ae5df1f89737913209fd1c1', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: '65a00ea0fe1202240a2641b40d5f0455483746ff', class: "row" }, h("iframe-input", { key: 'c8dda20444c7f6494fad1377cc556676e1d7dc54', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
52
+ } }, h("div", { key: '3d168fd241702b30f0c8727d3c0aae65c20b69aa', class: "row mb-3" }, h("iframe-input", { key: 'dc1da989b1577ed62b3eeafd33128aca38e4610d', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: '1179ae9d6b9f476bb01a1ee4f4edd7da6f22f635', class: "row" }, h("iframe-input", { key: '7e79b383876be1711a2e21ab7462f86281ebf28c', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
53
53
  }
54
54
  };
55
55
 
@@ -1,7 +1,7 @@
1
1
  import { c as create$3, a as create$6 } from './index.esm-IWS0494Y.js';
2
- import { m as makeTaxIdValidation, d as dateOfIncorporationValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, t as taxIdValidation, o as otherPaymentDetailsValidation, f as whenServiceReceivedValidation, g as paymentVolumeValidation, r as revenueValidation } from './schema-validations-iamDi5JD.js';
3
- import { C as CountryCode } from './Business-B5rtFhtR.js';
4
- import { c as countryLabels } from './country-config-BQ4D46Lb.js';
2
+ import { m as makeTaxIdValidation, d as dateOfIncorporationValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, t as taxIdValidation, o as otherPaymentDetailsValidation, f as whenServiceReceivedValidation, r as revenueValidation, g as paymentVolumeValidation } from './schema-validations-CfHWzMvr.js';
3
+ import { C as CountryCode } from './Business-GgW1g7FQ.js';
4
+ import { c as countryLabels } from './country-config-D-9YmU94.js';
5
5
 
6
6
  // Base schema (no country-specific rules for classification/tax id)
7
7
  const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
@@ -52,12 +52,14 @@ const additionalQuestionsSchema = (allowOptionalFields) => {
52
52
  const schema = create$3({
53
53
  business_revenue: revenueValidation.required('Enter business revenue'),
54
54
  business_payment_volume: paymentVolumeValidation.required('Enter business payment volume'),
55
+ business_average_transaction_amount: revenueValidation.required('Enter average transaction amount'),
55
56
  business_when_service_received: whenServiceReceivedValidation.required('Select when service is received'),
56
57
  business_other_payment_details: otherPaymentDetailsValidation.nullable(),
57
58
  });
58
59
  const easySchema = create$3({
59
60
  business_revenue: revenueValidation.nullable(),
60
61
  business_payment_volume: paymentVolumeValidation.nullable(),
62
+ business_average_transaction_amount: revenueValidation.nullable(),
61
63
  business_when_service_received: whenServiceReceivedValidation.nullable(),
62
64
  business_other_payment_details: otherPaymentDetailsValidation.nullable(),
63
65
  });
@@ -1,9 +1,9 @@
1
- import { h, F as Fragment, r as registerInstance, c as createEvent } from './index-DwYM91AU.js';
2
- import { E as ErrorState } from './utils-CgFsPVsv.js';
3
- import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
1
+ import { h, F as Fragment, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
+ import { E as ErrorState } from './utils-DhCv62Pi.js';
3
+ import { S as StyledHost } from './styled-host-D6byRazK.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { S as Skeleton } from './skeleton-Dtt56Fl3.js';
6
- import './parts-sA8HBfkI.js';
5
+ import { S as Skeleton } from './skeleton-D9UXuoik.js';
6
+ import './parts-DrquDBSk.js';
7
7
 
8
8
  const BusinessDetailsLoading = () => {
9
9
  const Block = () => (h("div", { class: "mt-5" }, h(Skeleton, { width: "40%", height: "1.5rem" }), h("hr", null), h("div", { class: "row g-3" }, h("div", { class: "col-12 col-md-6" }, h(Skeleton, null), h(Skeleton, null), h(Skeleton, null)), h("div", { class: "col-12 col-md-6" }, h(Skeleton, null), h(Skeleton, null), h(Skeleton, null)))));
@@ -19,7 +19,7 @@ var RENDER_STATES;
19
19
  const BusinessDetailsCore = class {
20
20
  constructor(hostRef) {
21
21
  registerInstance(this, hostRef);
22
- this.errorEvent = createEvent(this, "error-event");
22
+ this.errorEvent = createEvent(this, "error-event", 7);
23
23
  this.renderState = RENDER_STATES.LOADING;
24
24
  }
25
25
  async componentWillLoad() {
@@ -52,7 +52,7 @@ const BusinessDetailsCore = class {
52
52
  if (this.renderState === RENDER_STATES.ERROR) {
53
53
  return h(StyledHost, null, ErrorState(this.errorMessage));
54
54
  }
55
- return (h(StyledHost, null, h("justifi-details", { "error-message": this.errorMessage }, h("div", { slot: 'detail-sections' }, h("core-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
55
+ return (h(StyledHost, null, h("justifi-details", { errorMessage: this.errorMessage }, h("div", { slot: 'detail-sections' }, h("core-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
56
56
  }
57
57
  };
58
58
 
@@ -1,4 +1,4 @@
1
- import { a as BusinessClassification } from './Business-B5rtFhtR.js';
1
+ import { a as BusinessClassification } from './Business-GgW1g7FQ.js';
2
2
 
3
3
  const businessClassificationOptions = [
4
4
  {