@justifi/webcomponents 6.12.0 → 6.12.1-rc.2

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 (536) hide show
  1. package/dist/cjs/{Analytics-DZCXB2Za.js → Analytics-DN1vWC6J.js} +2 -3
  2. package/dist/cjs/{Plaid-DR9WDZ98.js → Plaid-6JK8xPnG.js} +47 -14
  3. package/dist/cjs/{additional-questions-form-step_9.cjs.entry.js → additional-questions-form-step_14.cjs.entry.js} +451 -58
  4. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +2 -2
  5. package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
  6. package/dist/cjs/bank-account-read-only-value.cjs.entry.js +15 -0
  7. package/dist/cjs/{business.service-mliLE8kX.js → business.service-XXjIL3rT.js} +1 -2
  8. package/dist/cjs/card-form.cjs.entry.js +4 -4
  9. package/dist/cjs/{check-pkg-version-CUhnNGii.js → check-pkg-version-DKEv2rPI.js} +1 -1
  10. package/dist/cjs/{checkout.service-Cok0vRot.js → checkout.service-BUpGS3Nm.js} +1 -2
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -3
  12. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  13. package/dist/cjs/{dispute.service-DEH_I2G9.js → dispute.service-BC_bJL60.js} +1 -2
  14. package/dist/cjs/form-address-fields_3.cjs.entry.js +3 -3
  15. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  17. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  18. package/dist/cjs/form-control-file.cjs.entry.js +59 -0
  19. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-number_3.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
  23. package/dist/cjs/{get-business-DF-XBH8G.js → get-business-Dk1gjO4B.js} +4 -4
  24. package/dist/cjs/{get-payment-details-DNpOyUyR.js → get-payment-details-Cvi1hHGJ.js} +4 -5
  25. package/dist/cjs/{get-payout-csv-DE_D9y08.js → get-payout-csv-CFsWBUNg.js} +3 -3
  26. package/dist/cjs/{get-subaccounts-BQW_RPW5.js → get-subaccounts-BPJ2-LBo.js} +4 -5
  27. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  28. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  29. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  31. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +60 -59
  32. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -6
  33. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -6
  34. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  35. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  36. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -11
  37. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
  38. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -6
  40. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -7
  41. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -4
  42. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -13
  43. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -14
  45. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -20
  46. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -10
  47. package/dist/cjs/justifi-order-terminals.cjs.entry.js +14 -15
  48. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -11
  49. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +134 -18
  50. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
  51. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  52. package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
  53. package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -12
  54. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -11
  55. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -4
  56. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -15
  57. package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -14
  58. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  59. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -12
  61. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -12
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -14
  66. package/dist/cjs/loader.cjs.js +1 -1
  67. package/dist/cjs/{package-CJg8qLYd.js → package-EwQYAMPH.js} +1 -1
  68. package/dist/cjs/payment-details-core.cjs.entry.js +9 -10
  69. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  70. package/dist/cjs/{payment-provisioning-actions-J6TGZZb9.js → payment-provisioning-actions-DscyasDY.js} +18 -18
  71. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +52 -0
  72. package/dist/cjs/{payment.service-Dl9UExDw.js → payment.service-DC2FVlv-.js} +1 -2
  73. package/dist/cjs/payments-list-core.cjs.entry.js +2 -3
  74. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  75. package/dist/cjs/{payout.service-kaFewwx4.js → payout.service-Bjbt6USA.js} +1 -2
  76. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -5
  77. package/dist/cjs/{plaid.service-CK1ouCBC.js → plaid.service-C0ZgOkwL.js} +1 -2
  78. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  79. package/dist/cjs/save-new-payment-method.cjs.entry.js +1 -1
  80. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  81. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -4
  82. package/dist/cjs/{terminal-orders-table-07fV7wGh.js → terminal-orders-table-j_IoYD-2.js} +1 -2
  83. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  84. package/dist/cjs/{terminal.service-UUoIe0IR.js → terminal.service-YAuPfEGz.js} +1 -2
  85. package/dist/cjs/terminals-list-core.cjs.entry.js +2 -3
  86. package/dist/cjs/{utils-DvUQQLmR.js → utils-C4CgQd55.js} +4 -4
  87. package/dist/cjs/webcomponents.cjs.js +1 -1
  88. package/dist/collection/api/ApplePay.js +4 -0
  89. package/dist/collection/api/services/apple-pay.service.js +1 -0
  90. package/dist/collection/collection-manifest.json +0 -1
  91. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-form-inputs.js +1 -1
  92. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
  93. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  94. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
  95. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
  96. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
  97. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +181 -10
  98. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  99. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  101. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  102. package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
  103. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
  104. package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
  105. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  106. package/dist/collection/components/checkout/justifi-checkout.js +2 -2
  107. package/dist/collection/components/checkout/justifi-saved-payment-method.js +1 -1
  108. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  109. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  110. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  111. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  112. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +1 -1
  113. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  114. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  115. package/dist/collection/components/dispute-management/dispute-response/justifi-additional-statement.js +1 -1
  116. package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
  117. package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
  118. package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
  119. package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
  120. package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
  121. package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
  122. package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
  123. package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
  124. package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
  125. package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
  126. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  127. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  128. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +1 -1
  129. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +1 -0
  130. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  131. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
  132. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  133. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  134. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  135. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  136. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  137. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  138. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  139. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  140. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  141. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  142. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  143. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  144. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  145. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  146. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  147. package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
  148. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  149. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  150. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +1 -1
  151. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  152. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  153. package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
  154. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  155. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  156. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  157. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  158. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  159. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  160. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  161. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  162. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  163. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  164. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  165. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  166. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  167. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  168. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  169. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  170. package/dist/collection/ui-components/internal-button.js +1 -1
  171. package/dist/collection/ui-components/radio-list-item.js +1 -1
  172. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  173. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  174. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  175. package/dist/docs.json +11 -320
  176. package/dist/esm/{Analytics-C2EVi4Am.js → Analytics-Ds-ogIwt.js} +3 -4
  177. package/dist/esm/{Api-DI0-itk3.js → Api-BrYhtpEh.js} +1 -1
  178. package/dist/esm/{Plaid-vwPGZ5y4.js → Plaid-D40pFwwP.js} +36 -3
  179. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  180. package/dist/esm/{additional-questions-form-step_9.entry.js → additional-questions-form-step_14.entry.js} +423 -35
  181. package/dist/esm/bank-account-billing-form-simple_4.entry.js +2 -2
  182. package/dist/esm/bank-account-form.entry.js +5 -5
  183. package/dist/esm/bank-account-read-only-value.entry.js +13 -0
  184. package/dist/esm/{business.service-M3YvwC-d.js → business.service-Bt68Uk7V.js} +2 -3
  185. package/dist/esm/card-form.entry.js +5 -5
  186. package/dist/esm/{check-pkg-version-qIHmWcbI.js → check-pkg-version-Bd_MOwNP.js} +1 -1
  187. package/dist/esm/{checkout.service-DdIBmfsp.js → checkout.service-B7K5LRx2.js} +2 -3
  188. package/dist/esm/checkouts-list-core.entry.js +4 -5
  189. package/dist/esm/{checkouts-table-4iLy6mvH.js → checkouts-table-BXm9GGFI.js} +1 -1
  190. package/dist/esm/custom-popper_2.entry.js +2 -2
  191. package/dist/esm/{dispute.service-BzzA0DeT.js → dispute.service-BPA0V42p.js} +2 -3
  192. package/dist/esm/form-address-fields_3.entry.js +3 -3
  193. package/dist/esm/form-control-checkbox.entry.js +2 -2
  194. package/dist/esm/form-control-date.entry.js +2 -2
  195. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  196. package/dist/esm/form-control-file.entry.js +57 -0
  197. package/dist/esm/form-control-monetary.entry.js +3 -3
  198. package/dist/esm/form-control-number_3.entry.js +2 -2
  199. package/dist/esm/form-control-radio.entry.js +2 -2
  200. package/dist/esm/form-control-select_2.entry.js +4 -4
  201. package/dist/esm/{get-business-BtJWpVs_.js → get-business-CijoB3Df.js} +2 -2
  202. package/dist/esm/{get-payment-details-CN7gUjBc.js → get-payment-details-B9JipaKX.js} +2 -3
  203. package/dist/esm/{get-payout-csv-D-Lnooki.js → get-payout-csv-CzWaTjoV.js} +2 -2
  204. package/dist/esm/{get-subaccounts-Mwx-aVcG.js → get-subaccounts-Dfo7wGVE.js} +3 -4
  205. package/dist/esm/gross-payment-chart-core.entry.js +2 -2
  206. package/dist/esm/hidden-input_2.entry.js +5 -5
  207. package/dist/esm/internal-button.entry.js +1 -1
  208. package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
  209. package/dist/esm/justifi-apple-pay_11.entry.js +16 -15
  210. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +7 -8
  211. package/dist/esm/justifi-bank-account-form.entry.js +7 -8
  212. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  213. package/dist/esm/justifi-billing-form.entry.js +1 -1
  214. package/dist/esm/justifi-business-details.entry.js +10 -11
  215. package/dist/esm/justifi-business-form.entry.js +9 -10
  216. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  217. package/dist/esm/justifi-card-form.entry.js +7 -8
  218. package/dist/esm/justifi-checkout.entry.js +8 -9
  219. package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
  220. package/dist/esm/justifi-checkouts-list.entry.js +11 -12
  221. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  222. package/dist/esm/justifi-dispute-management.entry.js +10 -11
  223. package/dist/esm/justifi-dispute-notification_3.entry.js +13 -14
  224. package/dist/esm/justifi-gross-payment-chart.entry.js +7 -8
  225. package/dist/esm/justifi-order-terminals.entry.js +11 -12
  226. package/dist/esm/justifi-payment-details.entry.js +10 -11
  227. package/dist/esm/justifi-payment-provisioning.entry.js +133 -17
  228. package/dist/esm/justifi-payment-transactions-list.entry.js +9 -10
  229. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  230. package/dist/esm/justifi-payments-list.entry.js +10 -11
  231. package/dist/esm/justifi-payout-details.entry.js +9 -10
  232. package/dist/esm/justifi-payout-transactions-list.entry.js +9 -10
  233. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
  234. package/dist/esm/justifi-payouts-list.entry.js +12 -13
  235. package/dist/esm/justifi-refund-payment.entry.js +9 -10
  236. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  237. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  238. package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -8
  239. package/dist/esm/justifi-skeleton.entry.js +1 -1
  240. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
  241. package/dist/esm/justifi-terminal-orders-list.entry.js +9 -10
  242. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
  243. package/dist/esm/justifi-terminals-list.entry.js +11 -12
  244. package/dist/esm/loader.js +1 -1
  245. package/dist/esm/{package-CIYOQWsL.js → package-B5w1e9rb.js} +1 -1
  246. package/dist/esm/payment-details-core.entry.js +10 -11
  247. package/dist/esm/payment-method-option.entry.js +1 -1
  248. package/dist/esm/{payment-provisioning-actions-CBvplwPf.js → payment-provisioning-actions-Bv2HP9Cx.js} +3 -3
  249. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +49 -0
  250. package/dist/esm/{payment.service-0k8z2rOV.js → payment.service-J7iQtC5z.js} +2 -3
  251. package/dist/esm/payments-list-core.entry.js +4 -5
  252. package/dist/esm/{payments-table-Bz7LmU_J.js → payments-table-n1VrIKIR.js} +1 -1
  253. package/dist/esm/payout-details-core.entry.js +4 -4
  254. package/dist/esm/{payout.service-C14YvCWQ.js → payout.service-Dsz8f37z.js} +2 -3
  255. package/dist/esm/payouts-list-core.entry.js +4 -5
  256. package/dist/esm/{payouts-table-Bpt__avQ.js → payouts-table-CbzI90ci.js} +1 -1
  257. package/dist/esm/{plaid.service-Dtxfrsm8.js → plaid.service-D1nDrcPY.js} +2 -3
  258. package/dist/esm/radio-list-item.entry.js +1 -1
  259. package/dist/esm/save-new-payment-method.entry.js +1 -1
  260. package/dist/esm/table-filters-menu.entry.js +1 -1
  261. package/dist/esm/terminal-orders-list-core.entry.js +4 -5
  262. package/dist/esm/{terminal-orders-table-DRnRR4zn.js → terminal-orders-table-DlVbBgNh.js} +2 -3
  263. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  264. package/dist/esm/{terminal.service-rxvEhqqF.js → terminal.service-Sg45obrZ.js} +2 -3
  265. package/dist/esm/terminals-list-core.entry.js +4 -5
  266. package/dist/esm/{terminals-table-DSDZgJ77.js → terminals-table-Bja7MP5H.js} +1 -1
  267. package/dist/esm/{utils-C_8ZxLti.js → utils-De6tr4ug.js} +1 -1
  268. package/dist/esm/{utils-BeQLScSm.js → utils-jaFbbifV.js} +1 -1
  269. package/dist/esm/webcomponents.js +1 -1
  270. package/dist/module/ApplePay.js +4 -0
  271. package/dist/module/Business.js +1 -1
  272. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  273. package/dist/module/bank-account-document-form-inputs2.js +1 -1
  274. package/dist/module/bank-account-form-inputs-canada2.js +1 -1
  275. package/dist/module/bank-account-form-inputs2.js +1 -1
  276. package/dist/module/bank-account-form2.js +2 -2
  277. package/dist/module/bank-account-read-only-value2.js +1 -1
  278. package/dist/module/business-representative-form-inputs2.js +2 -2
  279. package/dist/module/business-terms-conditions-form-step2.js +1 -1
  280. package/dist/module/card-billing-form-simple2.js +1 -1
  281. package/dist/module/card-form2.js +2 -2
  282. package/dist/module/checkouts-list-core2.js +1 -1
  283. package/dist/module/custom-popper2.js +2 -2
  284. package/dist/module/dispute-management-core.js +1 -1
  285. package/dist/module/dispute-response-core.js +1 -1
  286. package/dist/module/form-address-fields2.js +1 -1
  287. package/dist/module/form-control-checkbox2.js +2 -2
  288. package/dist/module/form-control-date2.js +2 -2
  289. package/dist/module/form-control-file-v22.js +1 -1
  290. package/dist/module/form-control-file2.js +2 -2
  291. package/dist/module/form-control-monetary2.js +2 -2
  292. package/dist/module/form-control-number-masked2.js +2 -2
  293. package/dist/module/form-control-number2.js +2 -2
  294. package/dist/module/form-control-radio2.js +2 -2
  295. package/dist/module/form-control-select2.js +2 -2
  296. package/dist/module/form-control-text2.js +2 -2
  297. package/dist/module/form-control-textarea2.js +2 -2
  298. package/dist/module/gross-payment-chart-core2.js +2 -2
  299. package/dist/module/hidden-input2.js +1 -1
  300. package/dist/module/iframe-input2.js +3 -3
  301. package/dist/module/internal-button2.js +1 -1
  302. package/dist/module/justifi-additional-statement2.js +1 -1
  303. package/dist/module/justifi-apple-pay2.js +2 -0
  304. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  305. package/dist/module/justifi-bank-account-form.js +1 -1
  306. package/dist/module/justifi-billing-form-full.js +1 -1
  307. package/dist/module/justifi-billing-form.js +1 -1
  308. package/dist/module/justifi-business-form.js +1 -1
  309. package/dist/module/justifi-button2.js +1 -1
  310. package/dist/module/justifi-cancellation-policy2.js +1 -1
  311. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  312. package/dist/module/justifi-card-form.js +1 -1
  313. package/dist/module/justifi-checkout-summary2.js +1 -1
  314. package/dist/module/justifi-checkout.js +2 -2
  315. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  316. package/dist/module/justifi-checkouts-list.js +1 -1
  317. package/dist/module/justifi-customer-details2.js +1 -1
  318. package/dist/module/justifi-dispute-management.js +1 -1
  319. package/dist/module/justifi-dispute-notification2.js +2 -2
  320. package/dist/module/justifi-dispute-response2.js +1 -1
  321. package/dist/module/justifi-duplicate-charge2.js +1 -1
  322. package/dist/module/justifi-electronic-evidence2.js +1 -1
  323. package/dist/module/justifi-header2.js +1 -1
  324. package/dist/module/justifi-modular-checkout2.js +1 -1
  325. package/dist/module/justifi-order-terminals.js +1 -1
  326. package/dist/module/justifi-payment-provisioning.js +182 -65
  327. package/dist/module/justifi-payment-transactions-list.js +1 -1
  328. package/dist/module/justifi-payments-list-filters.js +2 -2
  329. package/dist/module/justifi-payments-list.js +1 -1
  330. package/dist/module/justifi-payout-transactions-list.js +1 -1
  331. package/dist/module/justifi-payouts-list-filters.js +2 -2
  332. package/dist/module/justifi-payouts-list.js +1 -1
  333. package/dist/module/justifi-product-or-service2.js +1 -1
  334. package/dist/module/justifi-refund-policy2.js +1 -1
  335. package/dist/module/justifi-save-new-payment-method.js +1 -1
  336. package/dist/module/justifi-saved-payment-method.js +1 -1
  337. package/dist/module/justifi-shipping-details2.js +1 -1
  338. package/dist/module/justifi-skeleton.js +1 -1
  339. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  340. package/dist/module/justifi-terminal-orders-list.js +1 -1
  341. package/dist/module/justifi-terminals-list-filters.js +1 -1
  342. package/dist/module/justifi-terminals-list.js +1 -1
  343. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  344. package/dist/module/package.js +1 -1
  345. package/dist/module/payment-details-core2.js +8 -8
  346. package/dist/module/payment-method-option.js +1 -1
  347. package/dist/module/payment-provisioning-form-buttons2.js +1 -1
  348. package/dist/module/payment-provisioning-form-steps2.js +1 -1
  349. package/dist/module/payments-list-core2.js +1 -1
  350. package/dist/module/payout-details-core2.js +3 -3
  351. package/dist/module/payouts-list-core2.js +1 -1
  352. package/dist/module/radio-list-item2.js +1 -1
  353. package/dist/module/save-new-payment-method2.js +1 -1
  354. package/dist/module/table-filters-menu2.js +1 -1
  355. package/dist/module/terminal-orders-list-core2.js +1 -1
  356. package/dist/module/terminal-quantity-selector2.js +1 -1
  357. package/dist/module/terminals-list-core2.js +2 -2
  358. package/dist/module/utils2.js +1 -1
  359. package/dist/types/api/ApplePay.d.ts +3 -0
  360. package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +26 -4
  361. package/dist/types/components.d.ts +4 -51
  362. package/dist/webcomponents/p-0b95dd8f.entry.js +1 -0
  363. package/dist/webcomponents/p-0ee11ceb.entry.js +1 -0
  364. package/dist/webcomponents/p-15377f17.entry.js +1 -0
  365. package/dist/webcomponents/p-15dfb893.entry.js +1 -0
  366. package/dist/webcomponents/{p-6372a42a.entry.js → p-15f43759.entry.js} +1 -1
  367. package/dist/webcomponents/p-1628613b.entry.js +1 -0
  368. package/dist/webcomponents/p-17fb6153.entry.js +1 -0
  369. package/dist/webcomponents/p-18fc10ca.entry.js +1 -0
  370. package/dist/webcomponents/{p-90f2c769.entry.js → p-1b92fb9a.entry.js} +1 -1
  371. package/dist/webcomponents/p-1c54dc53.entry.js +1 -0
  372. package/dist/webcomponents/p-1f2129ec.entry.js +1 -0
  373. package/dist/webcomponents/p-1fe99fde.entry.js +1 -0
  374. package/dist/webcomponents/p-20b0f88b.entry.js +1 -0
  375. package/dist/webcomponents/p-257597f1.entry.js +1 -0
  376. package/dist/webcomponents/{p-b31c9979.entry.js → p-26c419f3.entry.js} +1 -1
  377. package/dist/webcomponents/p-2f71285a.entry.js +1 -0
  378. package/dist/webcomponents/p-30662daa.entry.js +1 -0
  379. package/dist/webcomponents/p-30f61950.entry.js +1 -0
  380. package/dist/webcomponents/{p-3d135aee.entry.js → p-39bb134c.entry.js} +1 -1
  381. package/dist/webcomponents/p-3O6JkTxx.js +1 -0
  382. package/dist/webcomponents/p-3c50f7aa.entry.js +1 -0
  383. package/dist/webcomponents/p-3c59fe06.entry.js +1 -0
  384. package/dist/webcomponents/p-3e74bd93.entry.js +1 -0
  385. package/dist/webcomponents/p-45212820.entry.js +1 -0
  386. package/dist/webcomponents/p-46d8145c.entry.js +1 -0
  387. package/dist/webcomponents/{p-9838b5a7.entry.js → p-4db2e291.entry.js} +1 -1
  388. package/dist/webcomponents/{p-c07069f1.entry.js → p-55e7e239.entry.js} +1 -1
  389. package/dist/webcomponents/p-58e811cc.entry.js +1 -0
  390. package/dist/webcomponents/{p-534881d8.entry.js → p-5d2bcf39.entry.js} +1 -1
  391. package/dist/webcomponents/p-6ae9b2c5.entry.js +1 -0
  392. package/dist/webcomponents/p-6ba76fc2.entry.js +1 -0
  393. package/dist/webcomponents/p-6e5ec134.entry.js +1 -0
  394. package/dist/webcomponents/p-707e1e27.entry.js +1 -0
  395. package/dist/webcomponents/p-70a7c529.entry.js +1 -0
  396. package/dist/webcomponents/p-71de86bf.entry.js +1 -0
  397. package/dist/webcomponents/p-799e1a2f.entry.js +1 -0
  398. package/dist/webcomponents/p-80a9216a.entry.js +1 -0
  399. package/dist/webcomponents/p-8d215ad8.entry.js +1 -0
  400. package/dist/webcomponents/p-8d5138d8.entry.js +1 -0
  401. package/dist/webcomponents/p-8d88556f.entry.js +1 -0
  402. package/dist/webcomponents/p-8dc0e73a.entry.js +1 -0
  403. package/dist/webcomponents/p-8e9407a1.entry.js +1 -0
  404. package/dist/webcomponents/p-90d106c7.entry.js +1 -0
  405. package/dist/webcomponents/{p-d667138d.entry.js → p-938e4dc8.entry.js} +1 -1
  406. package/dist/webcomponents/p-99f3e1e0.entry.js +1 -0
  407. package/dist/webcomponents/{p-534833ca.entry.js → p-9a00cde1.entry.js} +1 -1
  408. package/dist/webcomponents/{p-J7WCmj-J.js → p-B--wlcf0.js} +1 -1
  409. package/dist/webcomponents/p-B2OPgLr1.js +1 -0
  410. package/dist/webcomponents/p-B5w1e9rb.js +1 -0
  411. package/dist/webcomponents/p-BIiEPAAI.js +1 -0
  412. package/dist/webcomponents/p-BMdYr88u.js +1 -0
  413. package/dist/webcomponents/p-BisDKGW5.js +1 -0
  414. package/dist/webcomponents/p-BlW92We8.js +1 -0
  415. package/dist/webcomponents/{p-D2muobcE.js → p-C-Uj-u5r.js} +1 -1
  416. package/dist/webcomponents/{p-D2TJwp13.js → p-C6IaNDXe.js} +1 -1
  417. package/dist/webcomponents/{p-DL0R5vDy.js → p-C95_YBmG.js} +1 -1
  418. package/dist/webcomponents/p-CASlE7cE.js +1 -0
  419. package/dist/webcomponents/{p-CMB3sNMT.js → p-CEnTtUmd.js} +1 -1
  420. package/dist/webcomponents/{p-Bwzxu5wV.js → p-CSW_ZzE9.js} +1 -1
  421. package/dist/webcomponents/{p-MkDHT9M4.js → p-CTwm3w6I.js} +1 -1
  422. package/dist/webcomponents/p-ChUBhd2W.js +1 -0
  423. package/dist/webcomponents/p-CpPclqiT.js +1 -0
  424. package/dist/webcomponents/{p-D0BjjvYt.js → p-DKzki_Iz.js} +1 -1
  425. package/dist/webcomponents/p-DtDYtwHR.js +1 -0
  426. package/dist/webcomponents/p-ZiYybdMz.js +1 -0
  427. package/dist/webcomponents/p-a00ccf58.entry.js +1 -0
  428. package/dist/webcomponents/p-a511a246.entry.js +1 -0
  429. package/dist/webcomponents/p-a9edf63a.entry.js +1 -0
  430. package/dist/webcomponents/p-ad785edd.entry.js +1 -0
  431. package/dist/webcomponents/p-afe956d9.entry.js +1 -0
  432. package/dist/webcomponents/p-b822ab7e.entry.js +1 -0
  433. package/dist/webcomponents/{p-1c95ec74.entry.js → p-bbcaa5cc.entry.js} +2 -2
  434. package/dist/webcomponents/p-bd3f7117.entry.js +1 -0
  435. package/dist/webcomponents/{p-2bec5dca.entry.js → p-c499a613.entry.js} +1 -1
  436. package/dist/webcomponents/p-c4d50650.entry.js +1 -0
  437. package/dist/webcomponents/p-c7ecb7d3.entry.js +1 -0
  438. package/dist/webcomponents/p-ce8de71b.entry.js +1 -0
  439. package/dist/webcomponents/{p-252a4f75.entry.js → p-d072a65f.entry.js} +1 -1
  440. package/dist/webcomponents/{p-ea84c544.entry.js → p-d34f497c.entry.js} +1 -1
  441. package/dist/webcomponents/p-d791e38e.entry.js +1 -0
  442. package/dist/webcomponents/p-d8918d5a.entry.js +1 -0
  443. package/dist/webcomponents/{p-42129686.entry.js → p-de4c796a.entry.js} +1 -1
  444. package/dist/webcomponents/p-e204efea.entry.js +1 -0
  445. package/dist/webcomponents/p-e70602bd.entry.js +1 -0
  446. package/dist/webcomponents/p-e751e2c3.entry.js +1 -0
  447. package/dist/webcomponents/{p-744f57f0.entry.js → p-ef30afd5.entry.js} +1 -1
  448. package/dist/webcomponents/p-f7522364.entry.js +1 -0
  449. package/dist/webcomponents/p-fNBks3-O.js +1 -0
  450. package/dist/webcomponents/p-facdac1b.entry.js +1 -0
  451. package/dist/webcomponents/p-g6a7Gl9y.js +1 -0
  452. package/dist/webcomponents/p-lFx33NDk.js +1 -0
  453. package/dist/webcomponents/p-x7WGc-xR.js +1 -0
  454. package/dist/webcomponents/webcomponents.esm.js +1 -1
  455. package/package.json +14 -14
  456. package/LICENSE +0 -21
  457. package/dist/cjs/ComponentError-D4OLnOkg.js +0 -31
  458. package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +0 -525
  459. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +0 -151
  460. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +0 -353
  461. package/dist/esm/ComponentError-Cjcsf8ku.js +0 -31
  462. package/dist/esm/bank-account-document-form-inputs_9.entry.js +0 -515
  463. package/dist/esm/justifi-payment-provisioning-core.entry.js +0 -149
  464. package/dist/module/justifi-payment-provisioning-core.d.ts +0 -11
  465. package/dist/module/justifi-payment-provisioning-core.js +0 -6
  466. package/dist/module/payment-provisioning-core.js +0 -367
  467. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -43
  468. package/dist/webcomponents/p-08424d71.entry.js +0 -1
  469. package/dist/webcomponents/p-089bc927.entry.js +0 -1
  470. package/dist/webcomponents/p-0b7fa323.entry.js +0 -1
  471. package/dist/webcomponents/p-16ae88d0.entry.js +0 -1
  472. package/dist/webcomponents/p-179fe9a0.entry.js +0 -1
  473. package/dist/webcomponents/p-1a9aecbf.entry.js +0 -1
  474. package/dist/webcomponents/p-1d1c48c3.entry.js +0 -1
  475. package/dist/webcomponents/p-1da3ba0f.entry.js +0 -1
  476. package/dist/webcomponents/p-26062991.entry.js +0 -1
  477. package/dist/webcomponents/p-26074643.entry.js +0 -1
  478. package/dist/webcomponents/p-2719f4db.entry.js +0 -1
  479. package/dist/webcomponents/p-2a0ce169.entry.js +0 -1
  480. package/dist/webcomponents/p-2b8df3c0.entry.js +0 -1
  481. package/dist/webcomponents/p-358f7121.entry.js +0 -1
  482. package/dist/webcomponents/p-383798ab.entry.js +0 -1
  483. package/dist/webcomponents/p-485a8795.entry.js +0 -1
  484. package/dist/webcomponents/p-4d222f42.entry.js +0 -1
  485. package/dist/webcomponents/p-53dd8569.entry.js +0 -1
  486. package/dist/webcomponents/p-56d58041.entry.js +0 -1
  487. package/dist/webcomponents/p-61784c6a.entry.js +0 -1
  488. package/dist/webcomponents/p-7108eead.entry.js +0 -1
  489. package/dist/webcomponents/p-729c9798.entry.js +0 -1
  490. package/dist/webcomponents/p-7742cf61.entry.js +0 -1
  491. package/dist/webcomponents/p-774b69a0.entry.js +0 -1
  492. package/dist/webcomponents/p-77600a47.entry.js +0 -1
  493. package/dist/webcomponents/p-783580d4.entry.js +0 -1
  494. package/dist/webcomponents/p-83fd4eae.entry.js +0 -1
  495. package/dist/webcomponents/p-848ae146.entry.js +0 -1
  496. package/dist/webcomponents/p-865d4604.entry.js +0 -1
  497. package/dist/webcomponents/p-8Kt4Rhcq.js +0 -1
  498. package/dist/webcomponents/p-8c52d10a.entry.js +0 -1
  499. package/dist/webcomponents/p-8df335d4.entry.js +0 -1
  500. package/dist/webcomponents/p-9639d9d0.entry.js +0 -1
  501. package/dist/webcomponents/p-97d16844.entry.js +0 -1
  502. package/dist/webcomponents/p-B6sIVWJW.js +0 -1
  503. package/dist/webcomponents/p-BmEX2SfZ.js +0 -1
  504. package/dist/webcomponents/p-C1olhiO9.js +0 -1
  505. package/dist/webcomponents/p-CAl_N2gi.js +0 -1
  506. package/dist/webcomponents/p-CBqZge6m.js +0 -1
  507. package/dist/webcomponents/p-CIYOQWsL.js +0 -1
  508. package/dist/webcomponents/p-CMqX6btO.js +0 -1
  509. package/dist/webcomponents/p-CWv3GX8X.js +0 -1
  510. package/dist/webcomponents/p-Cjcsf8ku.js +0 -1
  511. package/dist/webcomponents/p-CmXujxGp.js +0 -1
  512. package/dist/webcomponents/p-DLmWCafe.js +0 -1
  513. package/dist/webcomponents/p-DYGIC0QH.js +0 -1
  514. package/dist/webcomponents/p-Dvcgmvfg.js +0 -1
  515. package/dist/webcomponents/p-MLfmcsbZ.js +0 -1
  516. package/dist/webcomponents/p-R0FDNhyd.js +0 -1
  517. package/dist/webcomponents/p-a53fae42.entry.js +0 -1
  518. package/dist/webcomponents/p-a5640aa4.entry.js +0 -1
  519. package/dist/webcomponents/p-b21e5a85.entry.js +0 -1
  520. package/dist/webcomponents/p-b2d7a9dd.entry.js +0 -1
  521. package/dist/webcomponents/p-b596cbb3.entry.js +0 -1
  522. package/dist/webcomponents/p-b7ffdb30.entry.js +0 -1
  523. package/dist/webcomponents/p-bac16c16.entry.js +0 -1
  524. package/dist/webcomponents/p-bb4cc829.entry.js +0 -1
  525. package/dist/webcomponents/p-bbdae5b7.entry.js +0 -1
  526. package/dist/webcomponents/p-c4da12e0.entry.js +0 -1
  527. package/dist/webcomponents/p-c5be6300.entry.js +0 -1
  528. package/dist/webcomponents/p-c63b8c8f.entry.js +0 -1
  529. package/dist/webcomponents/p-d6350138.entry.js +0 -1
  530. package/dist/webcomponents/p-d6c2d51d.entry.js +0 -1
  531. package/dist/webcomponents/p-def798df.entry.js +0 -1
  532. package/dist/webcomponents/p-e2650fe5.entry.js +0 -1
  533. package/dist/webcomponents/p-e4ba0754.entry.js +0 -1
  534. package/dist/webcomponents/p-e939affa.entry.js +0 -1
  535. package/dist/webcomponents/p-e9c20b52.entry.js +0 -1
  536. package/dist/webcomponents/p-rz2BF2Sz.js +0 -1
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- exports.ComponentErrorCodes = void 0;
4
- (function (ComponentErrorCodes) {
5
- ComponentErrorCodes["MISSING_PROPS"] = "missing-props";
6
- ComponentErrorCodes["FETCH_ERROR"] = "fetch-error";
7
- ComponentErrorCodes["PATCH_ERROR"] = "patch-error";
8
- ComponentErrorCodes["POST_ERROR"] = "post-error";
9
- ComponentErrorCodes["UNKNOWN_ERROR"] = "unknown-error";
10
- ComponentErrorCodes["TOKENIZE_ERROR"] = "tokenize-error";
11
- ComponentErrorCodes["COMPLETE_CHECKOUT_ERROR"] = "complete-checkout-error";
12
- ComponentErrorCodes["CHECKOUT_ALREADY_COMPLETED"] = "checkout-already-completed";
13
- ComponentErrorCodes["CHECKOUT_EXPIRED"] = "checkout-expired";
14
- ComponentErrorCodes["NOT_AUTHENTICATED"] = "not-authenticated";
15
- ComponentErrorCodes["INVALID_PARAMETER"] = "invalid-parameter";
16
- ComponentErrorCodes["PROVISIONING_REQUESTED"] = "provisioning-already-requested";
17
- ComponentErrorCodes["INVALID_REFUND_AMOUNT"] = "invalid-refund-amount";
18
- ComponentErrorCodes["VALIDATION_ERROR"] = "validation-error";
19
- })(exports.ComponentErrorCodes || (exports.ComponentErrorCodes = {}));
20
- exports.ComponentErrorSeverity = void 0;
21
- (function (ComponentErrorSeverity) {
22
- ComponentErrorSeverity["INFO"] = "info";
23
- ComponentErrorSeverity["WARNING"] = "warning";
24
- ComponentErrorSeverity["ERROR"] = "error";
25
- })(exports.ComponentErrorSeverity || (exports.ComponentErrorSeverity = {}));
26
- exports.ComponentErrorMessages = void 0;
27
- (function (ComponentErrorMessages) {
28
- ComponentErrorMessages["NOT_AUTHENTICATED"] = "Not authenticated. Please provide a valid auth token, checkout id, and account id.";
29
- ComponentErrorMessages["CHECKOUT_ALREADY_COMPLETED"] = "Checkout already completed. Please create a new checkout.";
30
- ComponentErrorMessages["CHECKOUT_EXPIRED"] = "Checkout expired. Please create a new checkout.";
31
- })(exports.ComponentErrorMessages || (exports.ComponentErrorMessages = {}));
@@ -1,525 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-p7cvUYAE.js');
4
- require('./config-state-BIgGhhe9.js');
5
- require('./dinero-BwNN_k7x.js');
6
- var ComponentError = require('./ComponentError-D4OLnOkg.js');
7
- var Plaid = require('./Plaid-DR9WDZ98.js');
8
- require('./Pagination-Dediz133.js');
9
- require('./Business-oBifyXkW.js');
10
- require('./Dispute-CruQTF6_.js');
11
- var businessFormOptions = require('./business-form-options-D_nM7NDk.js');
12
- require('./event-types-DNOUef41.js');
13
- var utils = require('./utils-DAyWinG2.js');
14
- var parts = require('./parts-BXshb_S-.js');
15
- var utils$1 = require('./utils-BHi4j5rB.js');
16
- var skeleton = require('./skeleton-DvRCiQlA.js');
17
- require('./event-types-YOY5TKUN.js');
18
- var inputHandlers = require('./input-handlers-_51J5q7J.js');
19
- var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
20
- var countryConfig = require('./country-config-D7fss2oF.js');
21
- var formControlErrorText = require('./form-control-error-text-BO58Y6zF.js');
22
- var paymentProvisioningActions = require('./payment-provisioning-actions-J6TGZZb9.js');
23
- var business_service = require('./business.service-mliLE8kX.js');
24
- var button = require('./button-CR9Rl1-o.js');
25
- var styledHost = require('./styled-host-DAi5SuFa.js');
26
- var plaid_service = require('./plaid.service-CK1ouCBC.js');
27
- require('./index-W-zoNiyM.js');
28
- require('./utils-DvUQQLmR.js');
29
- require('./Api-Bukk55YZ.js');
30
-
31
- const BankAccountDocumentFormInputs = class {
32
- constructor(hostRef) {
33
- index.registerInstance(this, hostRef);
34
- }
35
- render() {
36
- return (index.h("div", { key: '21704b76489b20612c7cdd58c88eece76b22eedc', class: "row gy-3" }, index.h("div", { key: '2ce2b542e045ab94cb09a15edd6f5856f94568b4', class: "col-12" }, index.h("form-control-file", { key: '5c00356384dc5c25005d90c40ccb9c0958f927da', name: "voided_check", label: "Voided Check", documentType: Plaid.EntityDocumentType.voidedCheck, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["voided_check"], multiple: true })), index.h("div", { key: '7736a13bf2055c797168260e3d8e3feb99f931d0', class: "col-12" }, index.h("form-control-file", { key: '14cc4abc95227840de14c5f4278b668fc759469e', name: "bank_statement", label: "Bank Statement", documentType: Plaid.EntityDocumentType.bankStatement, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["bank_statement"], multiple: true }))));
37
- }
38
- };
39
-
40
- const BankAccountFormInputs = class {
41
- constructor(hostRef) {
42
- index.registerInstance(this, hostRef);
43
- }
44
- render() {
45
- var _a, _b, _c, _d, _e, _f;
46
- return (index.h("div", { key: '99049fb4516527dfa898467b2bb990e408a41af5', class: "row gy-3" }, index.h("div", { key: '84f1acf2f116b9835642825cecd5acbce8a33b59', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (index.h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), index.h("div", { key: '53e7f5892b460196d73eff31f1549e144b919935', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (index.h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), index.h("div", { key: '07738bf8baacf5e0b5f336cfbd2a527423293de1', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (index.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 }))), index.h("div", { key: '4f616bad64f7f3c5cb81bbc17bb0c04b3090e1f3', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (index.h("form-control-select", { name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), index.h("div", { key: 'cb7294a8009929a7ff9c3a540ddfc82175845f07', class: "col-6" }, this.formDisabled ? (index.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}` : '' })) : (index.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: utils.numberOnlyHandler, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." }))), index.h("div", { key: '94a1ed2a323c53eb911126aed75300df5883165c', class: "col-6" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Routing Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.routing_number) || '' })) : (index.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: utils.numberOnlyHandler, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." })))));
47
- }
48
- };
49
-
50
- const BankAccountFormInputsCanada = class {
51
- constructor(hostRef) {
52
- index.registerInstance(this, hostRef);
53
- }
54
- render() {
55
- var _a, _b, _c, _d, _e, _f, _g;
56
- return (index.h("div", { key: '9c6cd8a4758f33bfa57f8db04ab69739ddbe47fa', class: "row gy-3" }, index.h("div", { key: '7d59df10771a07fcf04ab4ca80e0a8da15d76ec0', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Bank Name", value: (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.bank_name })) : (index.h("form-control-text", { name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler }))), index.h("div", { key: 'ab2d9643d66bd7ad481190a731e7f1d44daeaf35', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Nickname", value: (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.nickname })) : (index.h("form-control-text", { name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler }))), index.h("div", { key: '5a61a86d9f9170ab19adec07fe2e86951c3579d8', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Owner Name", value: (_c = this.defaultValue) === null || _c === void 0 ? void 0 : _c.account_owner_name })) : (index.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 }))), index.h("div", { key: '415209fa3008a1cb3e690d5638aae25b2d5bc627', class: "col-12" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Account Type", value: (_d = this.defaultValue) === null || _d === void 0 ? void 0 : _d.account_type })) : (index.h("form-control-select", { name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler }))), index.h("div", { key: 'b026df714d79815dd93906f7cff0f875d4d43216', class: "col-3" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Transit Number", value: ((_e = this.defaultValue) === null || _e === void 0 ? void 0 : _e.transit_number) || '' })) : (index.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: utils.numberOnlyHandler, helpText: "5 digits" }))), index.h("div", { key: '9ebdf63a1330f891556fa0b8ca4c76705f9671ea', class: "col-3" }, this.formDisabled ? (index.h("bank-account-read-only-value", { label: "Institution Number", value: ((_f = this.defaultValue) === null || _f === void 0 ? void 0 : _f.institution_number) || '' })) : (index.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: utils.numberOnlyHandler, helpText: "3 digits" }))), index.h("div", { key: '4735d605033bd646088b8701508000376cc690f3', class: "col-6" }, this.formDisabled ? (index.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}` : '' })) : (index.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: utils.numberOnlyHandler, helpText: "Please copy the account number as shown on your statement. Do not include spaces or dashes." })))));
57
- }
58
- };
59
-
60
- const BankAccountReadOnlyValue = class {
61
- constructor(hostRef) {
62
- index.registerInstance(this, hostRef);
63
- }
64
- render() {
65
- return (index.h("div", { key: 'eb03c591b0c8169da34549d08b4964f6c6bf26cb' }, index.h("label", { key: '0864f3322be289d5213ab3bf689fab81768a55df', class: "form-label", part: parts.text }, this.label), index.h("div", { key: '5ffdc1c3a5b84d7c55c9dcdb25d58f14b51c34e3', part: parts.text }, this.value || '')));
66
- }
67
- };
68
-
69
- const BusinessDocumentsOnFile = class {
70
- constructor(hostRef) {
71
- index.registerInstance(this, hostRef);
72
- this.documents = [];
73
- this.isLoading = false;
74
- }
75
- render() {
76
- if (this.isLoading) {
77
- return index.h(skeleton.Skeleton, { height: "50px" });
78
- }
79
- if (!this.documents.length) {
80
- return null;
81
- }
82
- return (index.h(index.Host, null, index.h("div", { class: "card", part: parts.card }, index.h("div", { class: "card-body" }, index.h("h5", { class: "card-title", part: parts.heading2 }, "Documents Already on File"), index.h("div", { class: "table-responsive" }, index.h("table", { class: "table table-sm table-borderless", part: parts.table }, index.h("thead", null, index.h("tr", null, index.h("th", { style: { width: "25%" }, part: parts.tableHeadCell, scope: "col" }, "File Name"), index.h("th", { style: { width: "25%" }, part: parts.tableHeadCell, scope: "col" }, "File Type"), index.h("th", { style: { width: "25%" }, part: parts.tableHeadCell, scope: "col" }, "Document Type"), index.h("th", { style: { width: "25%" }, part: parts.tableHeadCell, scope: "col" }, "Date Uploaded"))), index.h("tbody", null, this.documents.sort((a, b) => a.document_type.localeCompare(b.document_type))
83
- .map((document, index$1) => {
84
- return (index.h("tr", { class: index$1 === 0 ? "border-bottom border-top" : "border-bottom" }, index.h("td", { part: parts.tableCell }, document.file_name), index.h("td", { part: parts.tableCell }, document.file_type), index.h("td", { part: parts.tableCell }, utils$1.snakeCaseToHumanReadable(document.document_type)), index.h("td", { part: parts.tableCell }, `${utils$1.formatDate(document.created_at)} - ${utils$1.formatTime(document.created_at)}`)));
85
- })))))), index.h("hr", null)));
86
- }
87
- };
88
-
89
- const BusinessRepresentativeFormInputs = class {
90
- constructor(hostRef) {
91
- index.registerInstance(this, hostRef);
92
- this.isEditingIdentification = false;
93
- this.inputHandler = (name, value) => {
94
- inputHandlers.updateFormValues(this.formController, { [name]: value });
95
- };
96
- this.onAddressFormUpdate = (values) => {
97
- inputHandlers.updateAddressFormValues(this.formController, Object.assign(Object.assign({}, this.formController.values.getValue().address), values));
98
- };
99
- }
100
- render() {
101
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
102
- return (index.h("form", { key: '580cc163d4a4ef66cbb0fe81af2166d759caeeeb' }, index.h("fieldset", { key: '08086211fcb72f513bd5be32356617573ef70490' }, index.h("div", { key: '6685a37111331c6a9398827bccc81983f0710dec', class: "d-flex align-items-center gap-2" }, index.h("legend", { key: '426288711b83c90a00b5fc5848d9ed73d5cba497', class: "mb-0", part: parts.heading2 }, "Representative"), index.h("form-control-tooltip", { key: '12fcc06fb816415b4e3ebaf500dbeffda0ada39b', helpText: "The representative for your business needs to be someone who has significant control over managing your business's finance. You will have an opportunity to add owners later in the form." })), index.h("hr", { key: 'a405d27e2fdf8cf582e64b13a7bc46ffb746200d', class: "mt-2" }), index.h("div", { key: '083901b24bf65cea21850e409d51d65d69d7755a', class: "row gy-3" }, index.h("div", { key: '1f5cc8b3478849a3ded3ac7d00a3235d281653fb', class: "col-12 col-md-8" }, index.h("form-control-text", { key: '123959d648781de5937725731e81659f886d8331', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), index.h("div", { key: 'a0184a9578b9c479795ef1647f0fd3afef9ca0be', class: "col-12 col-md-4" }, index.h("form-control-text", { key: 'c15816619a4d257dbe962ae0979472495e5cf9a4', 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." })), index.h("div", { key: '102d285365880f746517ee49f7bee1bd4753a4df', class: "col-12 col-md-6" }, index.h("form-control-text", { key: 'cd81f70f7ae01f06cebd66da58950943578cc5a1', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), index.h("div", { key: '7b2d40d02a5b7d21901aed889609bf168a2adbbe', class: "col-12 col-md-6" }, index.h("form-control-number-masked", { key: '43a781692abe57493fbdc40080c4f03919878791', 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: formInputMasks.PHONE_MASKS.US })), index.h("div", { key: '22e2d29dd536eb9ece522dad9b8138c0df4090f7', class: "col-12 col-md-4" }, index.h("form-control-date", { key: '7bc2e191dcca6b840d6d50e4714af5053844ffc7', 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) => inputHandlers.updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), index.h("div", { key: '80c790db5b938b70fb74642ab4e5ced869f46f3a', class: "col-12 col-md-8" }, (!((_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.ssn_last4) || this.isEditingIdentification) ? (index.h("form-control-number-masked", { name: "identification_number", label: countryConfig.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: formInputMasks.IDENTITY_MASKS[this.country], helpText: countryConfig.countryLabels[this.country].identityHelpText })) : (index.h("div", null, index.h("label", { class: "form-label", part: parts.label }, countryConfig.countryLabels[this.country].idNumberLabel), index.h("div", { class: "input-group mb-3" }, index.h("input", { type: "text", class: "form-control", part: parts.inputDisabled, value: `****${(_h = this.representativeDefaultValue) === null || _h === void 0 ? void 0 : _h.ssn_last4}`, disabled: true }), index.h("button", { class: "btn btn-secondary", type: "button", part: parts.buttonSecondary, onClick: () => {
103
- this.isEditingIdentification = true;
104
- // Clear current value to force validation
105
- inputHandlers.updateFormValues(this.formController, {
106
- identification_number: '',
107
- ssn_last4: null
108
- });
109
- } }, "Change"))))), index.h("div", { key: '84afac0a4f45f734bf1dd5266882feaed8e3a4ea', class: "col-12" }, index.h("identity-address-form", { key: 'dfe5ddbccc76a3b60e0594c8a7ba30b893682a59', errors: this.errors.address, defaultValues: (_j = this.representativeDefaultValue) === null || _j === void 0 ? void 0 : _j.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
110
- }
111
- };
112
-
113
- const FormControlFile = class {
114
- constructor(hostRef) {
115
- index.registerInstance(this, hostRef);
116
- this.formControlInput = index.createEvent(this, "formControlInput", 7);
117
- this.formControlBlur = index.createEvent(this, "formControlBlur", 7);
118
- this.fileSelected = index.createEvent(this, "fileSelected", 7);
119
- this.isFocused = false;
120
- this.errorText = '';
121
- this.inputHandler = () => { };
122
- this.disabled = false;
123
- this.handleFormControlInput = (event) => {
124
- const target = event.target;
125
- const name = target.getAttribute('name');
126
- this.inputHandler(name, target.value);
127
- this.formControlInput.emit({ name, value: target.value });
128
- };
129
- this.changeHandler = () => {
130
- const inputFileList = this.fileInput.files;
131
- if (inputFileList) {
132
- this.fileSelected.emit({
133
- fileList: inputFileList,
134
- document_type: this.documentType
135
- });
136
- }
137
- };
138
- }
139
- componentDidLoad() {
140
- this.fileInput = this.el.querySelector('input');
141
- }
142
- get part() {
143
- let part = parts.input;
144
- if (this.errorText) {
145
- part = parts.inputInvalid;
146
- }
147
- if (this.disabled) {
148
- part = parts.inputDisabled;
149
- }
150
- if (this.isFocused) {
151
- part = parts.inputFocused;
152
- }
153
- return part;
154
- }
155
- render() {
156
- return (index.h(index.Host, { key: '1f5c8bdc73c664cf40acb4f5b61db454bbda36a0' }, index.h("div", { key: '77f0007875132d26dd8df91dfb53386da9e15ce4', class: "form-group d-flex flex-column" }, index.h("div", { key: 'a6885165580120dbaffaedf60edf2e2cc9883a9f', class: "d-flex align-items-start gap-2" }, index.h("label", { key: '489b6d49a60f8339722537084f64746e5625297d', part: parts.label, class: "form-label", htmlFor: this.name }, this.label), index.h("form-control-tooltip", { key: 'fc581e32bfb8935e79648c0a670bcb26bf225fe4', helpText: this.helpText })), index.h("input", { key: '34ddfe0796848feadcd6249ed861c5fa623840d4', 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: () => {
157
- this.isFocused = false;
158
- this.formControlBlur.emit();
159
- } }), index.h(formControlErrorText.FormControlErrorText, { key: '4a0c1869b8b19a01273d8f1ca3f3cd92134ddb58', errorText: this.errorText, name: this.name }))));
160
- }
161
- get el() { return index.getElement(this); }
162
- };
163
-
164
- const OwnerForm = class {
165
- constructor(hostRef) {
166
- index.registerInstance(this, hostRef);
167
- this.errorEvent = index.createEvent(this, "error-event", 7);
168
- }
169
- async validate() {
170
- return this.coreComponent.validate();
171
- }
172
- async submit() {
173
- return this.coreComponent.submit();
174
- }
175
- async validateAndSubmit({ onSuccess }) {
176
- this.coreComponent.validateAndSubmit({ onSuccess });
177
- }
178
- componentWillLoad() {
179
- this.initializeApi();
180
- }
181
- initializeApi() {
182
- if (!this.authToken) {
183
- return;
184
- }
185
- this.getOwner = paymentProvisioningActions.makeGetIdentity({
186
- authToken: this.authToken,
187
- identityId: this.ownerId,
188
- service: new business_service.IdentityService()
189
- });
190
- this.patchOwner = paymentProvisioningActions.makePatchIdentity({
191
- authToken: this.authToken,
192
- identityId: this.ownerId,
193
- service: new business_service.IdentityService()
194
- });
195
- this.postOwner = paymentProvisioningActions.makePostIdentity({
196
- authToken: this.authToken,
197
- service: new business_service.IdentityService()
198
- });
199
- }
200
- render() {
201
- return (index.h("owner-form-core", { key: '82a1976007db4371de3c8da1cff48f27a9c7795e', 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 }));
202
- }
203
- };
204
-
205
- const PlaidVerification = class {
206
- constructor(hostRef) {
207
- index.registerInstance(this, hostRef);
208
- this.plaidVerificationSuccess = index.createEvent(this, "plaidVerificationSuccess", 7);
209
- this.plaidVerificationError = index.createEvent(this, "plaidVerificationError", 7);
210
- this.linkToken = null;
211
- this.linkTokenId = null;
212
- this.plaidLink = null;
213
- this.isAuthenticating = false;
214
- this.isSuccess = false;
215
- this.error = null;
216
- this.isLoading = false;
217
- this.plaidService = new plaid_service.PlaidService();
218
- this.abortController = null;
219
- this.timeoutId = null;
220
- this.initializePlaidLink = async () => {
221
- try {
222
- // Check if Plaid is available globally
223
- if (typeof window.Plaid === 'undefined') {
224
- this.handleError({
225
- code: Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
226
- message: Plaid.PLAID_ERROR_MESSAGES[Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
227
- severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
228
- retryable: true,
229
- userAction: 'Refresh the page and try again',
230
- });
231
- return;
232
- }
233
- // Get link token from backend
234
- await this.getLinkToken();
235
- if (!this.linkToken) {
236
- this.handleError({
237
- code: Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
238
- message: Plaid.PLAID_ERROR_MESSAGES[Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
239
- severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
240
- retryable: true,
241
- userAction: 'Click to try again',
242
- });
243
- return;
244
- }
245
- // Initialize Plaid Link
246
- const Plaid$1 = window.Plaid;
247
- this.plaidLink = Plaid$1.create({
248
- token: this.linkToken,
249
- onSuccess: this.handlePlaidSuccess,
250
- onExit: this.handlePlaidExit,
251
- onEvent: this.handlePlaidEvent,
252
- onLoad: this.handlePlaidLoad,
253
- });
254
- }
255
- catch (error) {
256
- this.handleError({
257
- code: Plaid.PlaidErrorCodes.PLAID_LINK_INIT_FAILED,
258
- message: Plaid.PLAID_ERROR_MESSAGES[Plaid.PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
259
- severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
260
- originalError: error,
261
- retryable: true,
262
- userAction: 'Click to try again',
263
- });
264
- }
265
- };
266
- this.getLinkToken = async () => {
267
- var _a, _b, _c, _d;
268
- try {
269
- if (!this.authToken || !this.accountId) {
270
- this.handleError({
271
- code: Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
272
- message: 'Missing authentication. Please provide authToken and accountId.',
273
- severity: ComponentError.ComponentErrorSeverity.ERROR,
274
- retryable: false,
275
- userAction: 'Provide required props',
276
- });
277
- return;
278
- }
279
- // Create abort controller for timeout handling
280
- this.abortController = new AbortController();
281
- // Set timeout for the request
282
- this.timeoutId = setTimeout(() => {
283
- var _a;
284
- (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
285
- }, 30000); // 30 second timeout
286
- const response = await this.plaidService.getLinkTokenForVerification(this.authToken, this.businessId, this.abortController.signal);
287
- // Clear timeout
288
- if (this.timeoutId) {
289
- clearTimeout(this.timeoutId);
290
- this.timeoutId = null;
291
- }
292
- if (response.error) {
293
- const errorMessage = typeof response.error === 'string'
294
- ? response.error
295
- : response.error.message || 'Failed to get link token';
296
- throw new Error(errorMessage);
297
- }
298
- this.linkToken = response.data.link_token;
299
- this.linkTokenId = response.data.id;
300
- }
301
- catch (error) {
302
- // Clear timeout
303
- if (this.timeoutId) {
304
- clearTimeout(this.timeoutId);
305
- this.timeoutId = null;
306
- }
307
- let errorCode = Plaid.PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED;
308
- let message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
309
- let retryable = true;
310
- // Handle specific error types
311
- if (error.name === 'AbortError') {
312
- errorCode = Plaid.PlaidErrorCodes.PLAID_TIMEOUT;
313
- message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
314
- retryable = true;
315
- }
316
- 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'))) {
317
- errorCode = Plaid.PlaidErrorCodes.PLAID_NETWORK_ERROR;
318
- message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
319
- retryable = true;
320
- }
321
- 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'))) {
322
- errorCode = Plaid.PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
323
- message = 'Authentication failed. Please check your credentials.';
324
- retryable = false;
325
- }
326
- this.handleError({
327
- code: errorCode,
328
- message: message,
329
- severity: Plaid.PLAID_ERROR_SEVERITY[errorCode],
330
- originalError: error,
331
- retryable,
332
- userAction: retryable ? 'Click to try again' : 'Check your credentials',
333
- });
334
- }
335
- };
336
- this.openPlaidLink = () => {
337
- if (this.plaidLink && this.linkToken) {
338
- this.isAuthenticating = true;
339
- this.clearError();
340
- this.plaidLink.open();
341
- }
342
- };
343
- this.handlePlaidSuccess = async (publicToken, _metadata) => {
344
- var _a;
345
- this.isAuthenticating = false;
346
- this.isLoading = true;
347
- this.clearError();
348
- try {
349
- // Send publicToken to backend
350
- 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);
351
- if (response.error) {
352
- const errorMessage = typeof response.error === 'string'
353
- ? response.error
354
- : response.error.message || 'Failed to verify bank account';
355
- throw new Error(errorMessage);
356
- }
357
- // Success - display success message
358
- this.isSuccess = true;
359
- this.isLoading = false;
360
- // Emit success event
361
- this.plaidVerificationSuccess.emit({ publicToken, bankAccount: response.data });
362
- }
363
- catch (error) {
364
- this.isLoading = false;
365
- this.handleError({
366
- code: Plaid.PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED,
367
- message: (error === null || error === void 0 ? void 0 : error.message) || 'Failed to verify bank account',
368
- severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED],
369
- originalError: error,
370
- retryable: true,
371
- userAction: 'Click to try again',
372
- });
373
- }
374
- };
375
- this.handlePlaidExit = (err, _metadata) => {
376
- this.isAuthenticating = false;
377
- if (err) {
378
- this.handlePlaidError(err);
379
- }
380
- };
381
- this.handlePlaidEvent = (eventName, metadata) => {
382
- // Handle specific events if needed
383
- switch (eventName) {
384
- case 'OPEN':
385
- this.isAuthenticating = true;
386
- break;
387
- case 'CLOSE':
388
- this.isAuthenticating = false;
389
- break;
390
- case 'ERROR':
391
- this.handlePlaidError(metadata);
392
- break;
393
- }
394
- };
395
- this.handlePlaidLoad = () => {
396
- // Plaid Link loaded successfully
397
- };
398
- this.handlePlaidError = (error) => {
399
- let errorCode = Plaid.PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED;
400
- let message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
401
- let retryable = true;
402
- let userAction = 'Click to try again';
403
- // Map Plaid error codes to our error codes
404
- if (error.error_code) {
405
- switch (error.error_code) {
406
- case 'INVALID_CREDENTIALS':
407
- errorCode = Plaid.PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
408
- message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
409
- retryable = true;
410
- break;
411
- case 'ITEM_LOGIN_REQUIRED':
412
- errorCode = Plaid.PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
413
- message = 'Your bank requires re-authentication. Please try again.';
414
- retryable = true;
415
- break;
416
- case 'ITEM_LOCKED':
417
- errorCode = Plaid.PlaidErrorCodes.PLAID_ACCOUNT_LOCKED;
418
- message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
419
- retryable = false;
420
- userAction = 'Contact your bank';
421
- break;
422
- case 'INSTITUTION_NOT_RESPONDING':
423
- errorCode = Plaid.PlaidErrorCodes.PLAID_MAINTENANCE;
424
- message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
425
- retryable = true;
426
- break;
427
- case 'RATE_LIMIT_EXCEEDED':
428
- errorCode = Plaid.PlaidErrorCodes.PLAID_RATE_LIMITED;
429
- message = Plaid.PLAID_ERROR_MESSAGES[errorCode];
430
- retryable = true;
431
- break;
432
- default:
433
- if (error.error_message) {
434
- message = error.error_message;
435
- }
436
- break;
437
- }
438
- }
439
- this.handleError({
440
- code: errorCode,
441
- message,
442
- severity: Plaid.PLAID_ERROR_SEVERITY[errorCode],
443
- originalError: error,
444
- retryable,
445
- userAction,
446
- });
447
- this.isAuthenticating = false;
448
- };
449
- this.handleError = (plaidError) => {
450
- this.error = plaidError;
451
- this.isLoading = false;
452
- // Emit error event for parent components
453
- this.plaidVerificationError.emit(plaidError);
454
- console.error('Plaid verification error:', plaidError);
455
- };
456
- this.clearError = () => {
457
- if (this.error) {
458
- this.error = null;
459
- }
460
- };
461
- }
462
- componentDidRender() {
463
- if (!this.scriptRef)
464
- return;
465
- this.scriptRef.onload = () => {
466
- this.initializePlaidLink();
467
- };
468
- this.scriptRef.onerror = () => {
469
- this.handleError({
470
- code: Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
471
- message: Plaid.PLAID_ERROR_MESSAGES[Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
472
- severity: Plaid.PLAID_ERROR_SEVERITY[Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
473
- retryable: true,
474
- userAction: 'Refresh the page and try again',
475
- });
476
- };
477
- }
478
- disconnectedCallback() {
479
- // Clean up timeouts and abort controllers
480
- if (this.timeoutId) {
481
- clearTimeout(this.timeoutId);
482
- }
483
- if (this.abortController) {
484
- this.abortController.abort();
485
- }
486
- }
487
- render() {
488
- const renderErrorState = () => {
489
- if (!this.error)
490
- return null;
491
- const errorClass = this.error.severity === ComponentError.ComponentErrorSeverity.ERROR
492
- ? 'text-danger'
493
- : this.error.severity === ComponentError.ComponentErrorSeverity.WARNING
494
- ? 'text-warning'
495
- : 'text-info';
496
- return (index.h("div", { class: `${errorClass} mt-2` }, index.h("small", null, this.error.message), index.h("br", null), this.error.userAction && (index.h("small", { class: "text-muted" }, this.error.userAction))));
497
- };
498
- const renderStatusState = () => {
499
- if (this.error)
500
- return null;
501
- if (this.isLoading) {
502
- return (index.h("div", { class: "text-info mt-2" }, index.h("small", null, "Verifying bank account...")));
503
- }
504
- if (this.isSuccess) {
505
- return (index.h("div", { class: "text-success mt-2" }, index.h("small", null, "\u2713 Bank account verified successfully")));
506
- }
507
- if (this.isAuthenticating) {
508
- return (index.h("div", { class: "text-info mt-2" }, index.h("small", null, "Connecting to your bank...")));
509
- }
510
- return null;
511
- };
512
- const plaidLogo = (index.h("svg", { class: "plaid-logo-img", height: "20", width: "20", viewBox: "0 0 28 29", xmlns: "http://www.w3.org/2000/svg", style: { display: 'inline', marginLeft: '5px', marginRight: '5px', marginTop: '-2px' } }, index.h("g", { fill: "#fff", "fill-rule": "evenodd" }, index.h("path", { d: "M25.7629 26.2628L28 17.5309L24.9691 14.5001L27.9999 11.4691L25.7628 2.73706L17.0309 0.5L14.0001 3.531L10.969 0.50014L2.23706 2.73734L0 11.4691L3.03128 14.4999L0.00014 17.531L2.2372 26.2629L10.9691 28.5L14.0001 25.469L17.031 28.4999L25.7629 26.2628ZM15.7321 23.7371L18.6186 20.8505L22.2912 24.5233L17.6956 25.7007L15.7321 23.7371ZM11.1136 9.88154L14.0003 6.99502L16.8868 9.8814L14.0001 12.7679L11.1136 9.88154ZM12.2682 14.5L9.38154 17.3865L6.49502 14.5L9.38154 11.6135L12.2682 14.5ZM18.6187 11.6133L21.5053 14.5L18.6186 17.3865L15.7321 14.5L18.6187 11.6133ZM16.8867 19.1186L14.0001 22.0051L11.1135 19.1185L14.0001 16.2319L16.8867 19.1186ZM10.3044 25.7007L5.70864 24.5233L9.38154 20.8504L12.2682 23.7371L10.3044 25.7007ZM4.76308 16.2319L7.6496 19.1185L3.9767 22.7914L2.7993 18.1957L4.76308 16.2319ZM3.9767 6.20836L7.64974 9.8814L4.76308 12.7681L2.7993 10.8041L3.9767 6.20836ZM12.2683 5.26294L9.38168 8.1496L5.70892 4.4767L10.3047 3.2993L12.2683 5.26294ZM17.6959 3.2993L22.2915 4.4767L18.6186 8.14946L15.7321 5.26294L17.6959 3.2993ZM23.2372 12.7681L20.3505 9.8814L24.0233 6.20878L25.2007 10.8046L23.2372 12.7681ZM24.0233 22.7914L20.3505 19.1186L23.2372 16.2321L25.2007 18.1957L24.0233 22.7914Z" }))));
513
- return (index.h(styledHost.StyledHost, null, index.h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), index.h("div", null, index.h("div", { class: "mb-3" }, index.h(button.Button, { variant: "primary", type: "button", onClick: (event) => { event.preventDefault(); this.openPlaidLink(); }, disabled: this.isLoading, part: parts.buttonPrimary }, "Connect with Plaid ", plaidLogo, " (instant verification)")), renderErrorState(), renderStatusState())));
514
- }
515
- };
516
-
517
- exports.bank_account_document_form_inputs = BankAccountDocumentFormInputs;
518
- exports.bank_account_form_inputs = BankAccountFormInputs;
519
- exports.bank_account_form_inputs_canada = BankAccountFormInputsCanada;
520
- exports.bank_account_read_only_value = BankAccountReadOnlyValue;
521
- exports.business_documents_on_file = BusinessDocumentsOnFile;
522
- exports.business_representative_form_inputs = BusinessRepresentativeFormInputs;
523
- exports.form_control_file = FormControlFile;
524
- exports.owner_form = OwnerForm;
525
- exports.plaid_verification = PlaidVerification;