@justifi/webcomponents 6.7.3 → 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 (287) hide show
  1. package/dist/cjs/{Business-uoeKyW_a.js → Business-CB8EVrhD.js} +1 -0
  2. package/dist/cjs/{GooglePay-CbKCUEfb.js → Plaid-DxPvVu0H.js} +53 -0
  3. package/dist/cjs/{bank-account-document-form-inputs_8.cjs.entry.js → bank-account-document-form-inputs_9.cjs.entry.js} +330 -8
  4. package/dist/cjs/{business-additional-questions-schema-BtOuMq_U.js → business-additional-questions-schema-Cnh6AXQU.js} +3 -3
  5. package/dist/cjs/{business-form-options-D1r-wJpo.js → business-form-options-B3CbEmdc.js} +1 -1
  6. package/dist/cjs/{business-identity-schema-CMvq6f8m.js → business-identity-schema-0jg2Thn9.js} +2 -2
  7. package/dist/cjs/{business.service-DR4Ce5XV.js → business.service-zGEitIbP.js} +2 -2
  8. package/dist/cjs/{check-pkg-version-Bs_9oZb4.js → check-pkg-version-DKH70uPq.js} +11 -10
  9. package/dist/cjs/{checkout.service-CQqd4X4y.js → checkout.service-DT13pWxH.js} +2 -2
  10. package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -2
  11. package/dist/cjs/{country-config-DGi9t3Ma.js → country-config-ETD-7Wb7.js} +1 -1
  12. package/dist/cjs/custom-popper_2.cjs.entry.js +48 -17
  13. package/dist/cjs/{dispute.service-aok1_zRv.js → dispute.service-GDUl1Wjs.js} +2 -2
  14. package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
  15. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-number_3.cjs.entry.js +6 -6
  17. package/dist/cjs/{get-business-CtsxSYA6.js → get-business-CP0ALW9n.js} +1 -1
  18. package/dist/cjs/{get-payment-details-tCICJHBb.js → get-payment-details-IA5Toi7Z.js} +3 -3
  19. package/dist/cjs/{get-subaccounts-BcsCQAVN.js → get-subaccounts-DNMZjAyT.js} +3 -3
  20. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  21. package/dist/cjs/{input-handlers-DaRKFvGI.js → input-handlers-gV1LyFy3.js} +1 -1
  22. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +15 -15
  23. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +31 -18
  24. package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +220 -290
  25. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +4 -4
  26. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
  27. package/dist/cjs/justifi-business-form.cjs.entry.js +10 -10
  28. package/dist/cjs/justifi-checkout.cjs.entry.js +12 -12
  29. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -9
  30. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -7
  31. package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -5
  32. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +5 -5
  33. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  34. package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
  35. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
  36. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  37. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
  38. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -6
  39. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
  40. package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
  41. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
  42. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -7
  43. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
  44. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
  45. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -10
  46. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
  47. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -7
  48. package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
  49. package/dist/cjs/loader.cjs.js +1 -1
  50. package/dist/cjs/{package-DcGEg97O.js → package-B4vs5j7c.js} +1 -1
  51. package/dist/cjs/payment-details-core.cjs.entry.js +3 -3
  52. package/dist/cjs/{payment.service-B4ACB8Q3.js → payment.service-QODfB293.js} +2 -2
  53. package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
  54. package/dist/cjs/{payout.service-qVbNnemO.js → payout.service-k7GBuYzk.js} +2 -2
  55. package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
  56. package/dist/cjs/plaid-icon-DTpONc_Q.js +46 -0
  57. package/dist/cjs/{schema-validations-DYYDrVol.js → schema-validations-BakyfJpE.js} +3 -3
  58. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -3
  59. package/dist/cjs/{terminal-orders-table-C2jG4WQa.js → terminal-orders-table-C6j6Mx_r.js} +4 -4
  60. package/dist/cjs/{terminal.service-D1ohedi-.js → terminal.service-A90K3XNq.js} +2 -2
  61. package/dist/cjs/terminals-list-core.cjs.entry.js +2 -2
  62. package/dist/cjs/webcomponents.cjs.js +1 -1
  63. package/dist/collection/api/Analytics.js +8 -7
  64. package/dist/collection/api/Business.js +1 -0
  65. package/dist/collection/api/Plaid.js +50 -0
  66. package/dist/collection/api/index.js +1 -0
  67. package/dist/collection/api/services/plaid.service.js +13 -0
  68. package/dist/collection/collection-manifest.json +1 -0
  69. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +20 -5
  70. package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +433 -0
  71. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +4 -51
  72. package/dist/collection/ui-components/custom-popper/custom-popper.js +52 -18
  73. package/dist/docs.json +145 -4
  74. package/dist/esm/{Business-CHJTjG_5.js → Business-GgW1g7FQ.js} +1 -0
  75. package/dist/esm/{GooglePay-5EiPffHy.js → Plaid-CBrksnBN.js} +52 -1
  76. package/dist/esm/{bank-account-document-form-inputs_8.entry.js → bank-account-document-form-inputs_9.entry.js} +329 -8
  77. package/dist/esm/{business-additional-questions-schema-DQb10ehS.js → business-additional-questions-schema-CQ8CuEfQ.js} +3 -3
  78. package/dist/esm/{business-form-options-Bm89rMmk.js → business-form-options-DamBLV7N.js} +1 -1
  79. package/dist/esm/{business-identity-schema-CaMnpPqx.js → business-identity-schema-BTyJz7M9.js} +2 -2
  80. package/dist/esm/{business.service-C7smiL6_.js → business.service-BWm7Kqs4.js} +2 -2
  81. package/dist/esm/{check-pkg-version-DIZ2yD72.js → check-pkg-version-CioeuqLV.js} +11 -10
  82. package/dist/esm/{checkout.service-CYq6KXZv.js → checkout.service-D4Mljqjr.js} +2 -2
  83. package/dist/esm/checkouts-list-core.entry.js +2 -2
  84. package/dist/esm/{country-config-CQxaTFuP.js → country-config-D-9YmU94.js} +1 -1
  85. package/dist/esm/custom-popper_2.entry.js +48 -17
  86. package/dist/esm/{dispute.service-D7Dv8LTn.js → dispute.service-ZpqfPDC0.js} +2 -2
  87. package/dist/esm/form-alert_5.entry.js +3 -3
  88. package/dist/esm/form-control-number-masked_3.entry.js +2 -2
  89. package/dist/esm/form-control-number_3.entry.js +6 -6
  90. package/dist/esm/{get-business-BAmwId14.js → get-business-BMB2IxN_.js} +1 -1
  91. package/dist/esm/{get-payment-details-CPJZp31y.js → get-payment-details-B71Qi6mF.js} +2 -2
  92. package/dist/esm/{get-subaccounts-CqMFocN0.js → get-subaccounts-DXJdRbWg.js} +2 -2
  93. package/dist/esm/hidden-input_2.entry.js +1 -1
  94. package/dist/esm/{input-handlers-AgwQ-yKX.js → input-handlers-CzWCJ849.js} +1 -1
  95. package/dist/esm/internal-tokenize-payment-method_7.entry.js +4 -4
  96. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +25 -12
  97. package/dist/esm/justifi-apple-pay_8.entry.js +6 -76
  98. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +4 -4
  99. package/dist/esm/justifi-business-details.entry.js +6 -6
  100. package/dist/esm/justifi-business-form.entry.js +10 -10
  101. package/dist/esm/justifi-checkout.entry.js +4 -4
  102. package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
  103. package/dist/esm/justifi-checkouts-list.entry.js +6 -6
  104. package/dist/esm/justifi-dispute-management.entry.js +5 -5
  105. package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
  106. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  107. package/dist/esm/justifi-order-terminals.entry.js +7 -7
  108. package/dist/esm/justifi-payment-details.entry.js +6 -6
  109. package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
  110. package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
  111. package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
  112. package/dist/esm/justifi-payments-list.entry.js +5 -5
  113. package/dist/esm/justifi-payout-details.entry.js +5 -5
  114. package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
  115. package/dist/esm/justifi-payouts-list.entry.js +6 -6
  116. package/dist/esm/justifi-refund-payment.entry.js +6 -6
  117. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -4
  118. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
  119. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
  120. package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
  121. package/dist/esm/justifi-terminals-list.entry.js +6 -6
  122. package/dist/esm/loader.js +1 -1
  123. package/dist/esm/{package-ZkBwsSuI.js → package-CekpA_KC.js} +1 -1
  124. package/dist/esm/payment-details-core.entry.js +2 -2
  125. package/dist/esm/{payment.service-BGf8F56_.js → payment.service-C2lFq1yV.js} +2 -2
  126. package/dist/esm/payments-list-core.entry.js +2 -2
  127. package/dist/esm/{payout.service-Co3xg-7j.js → payout.service-ChupMPKT.js} +2 -2
  128. package/dist/esm/payouts-list-core.entry.js +2 -2
  129. package/dist/esm/plaid-icon-wJLd-2NX.js +43 -0
  130. package/dist/esm/{schema-validations-jBrJ0mYI.js → schema-validations-CfHWzMvr.js} +3 -3
  131. package/dist/esm/terminal-orders-list-core.entry.js +3 -3
  132. package/dist/esm/{terminal-orders-table-uNYLd8i5.js → terminal-orders-table-B4_RAxxx.js} +2 -2
  133. package/dist/esm/{terminal.service-Cxs-IO0Z.js → terminal.service-DqibXFHt.js} +2 -2
  134. package/dist/esm/terminals-list-core.entry.js +2 -2
  135. package/dist/esm/webcomponents.js +1 -1
  136. package/dist/module/Analytics.js +9 -8
  137. package/dist/module/Business.js +1 -0
  138. package/dist/module/{Refund.js → Plaid.js} +51 -1
  139. package/dist/module/bank-account-document-inputs.js +1 -1
  140. package/dist/module/business-additional-questions-form-step.js +1 -1
  141. package/dist/module/business-bank-account-form-step.js +46 -25
  142. package/dist/module/business-core-info-form-step.js +1 -1
  143. package/dist/module/business-owners-form-step.js +1 -1
  144. package/dist/module/business-representative-form-step.js +1 -1
  145. package/dist/module/business-terms-conditions-form-step.js +1 -1
  146. package/dist/module/business.service.js +1 -1
  147. package/dist/module/checkout.service.js +1 -1
  148. package/dist/module/checkout.store.js +1 -1
  149. package/dist/module/checkouts-list-core2.js +1 -1
  150. package/dist/module/custom-popper2.js +50 -17
  151. package/dist/module/dispute-management-core.js +1 -1
  152. package/dist/module/dispute-response-actions.js +1 -1
  153. package/dist/module/dispute-response.js +1 -1
  154. package/dist/module/get-business.js +1 -1
  155. package/dist/module/get-payment-details.js +1 -1
  156. package/dist/module/get-payout-csv.js +1 -1
  157. package/dist/module/get-subaccounts.js +1 -1
  158. package/dist/module/google-pay.js +1 -1
  159. package/dist/module/internal-tokenize-payment-method2.js +1 -1
  160. package/dist/module/justifi-business-details.js +1 -1
  161. package/dist/module/justifi-business-form.js +1 -1
  162. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  163. package/dist/module/justifi-checkouts-list.js +1 -1
  164. package/dist/module/justifi-dispute-management.js +1 -1
  165. package/dist/module/justifi-gross-payment-chart.js +1 -1
  166. package/dist/module/justifi-order-terminals.js +1 -1
  167. package/dist/module/justifi-payment-details.js +1 -1
  168. package/dist/module/justifi-payment-provisioning.js +69 -63
  169. package/dist/module/justifi-payment-transactions-list.js +1 -1
  170. package/dist/module/justifi-payments-list.js +1 -1
  171. package/dist/module/justifi-payout-details.js +1 -1
  172. package/dist/module/justifi-payout-transactions-list.js +1 -1
  173. package/dist/module/justifi-payouts-list.js +1 -1
  174. package/dist/module/justifi-refund-payment.js +1 -1
  175. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  176. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  177. package/dist/module/justifi-terminal-orders-list.js +1 -1
  178. package/dist/module/justifi-terminals-list-filters.js +1 -1
  179. package/dist/module/justifi-terminals-list.js +1 -1
  180. package/dist/module/legal-address-form-step.js +1 -1
  181. package/dist/module/modular-checkout.js +2 -2
  182. package/dist/module/package.js +1 -1
  183. package/dist/module/payment-details-core2.js +1 -1
  184. package/dist/module/payment-provisioning-actions.js +1 -1
  185. package/dist/module/payment-provisioning-core.js +67 -61
  186. package/dist/module/payment-provisioning-form-steps.js +62 -56
  187. package/dist/module/payment.service.js +1 -1
  188. package/dist/module/payments-list-core2.js +1 -1
  189. package/dist/module/payout.service.js +1 -1
  190. package/dist/module/payouts-list-core2.js +1 -1
  191. package/dist/module/plaid-icon.js +3 -0
  192. package/dist/module/plaid-payment-method.js +3 -53
  193. package/dist/module/plaid-verification.d.ts +11 -0
  194. package/dist/module/plaid-verification.js +6 -0
  195. package/dist/module/plaid-verification2.js +358 -0
  196. package/dist/module/plaid.service.js +14 -1
  197. package/dist/module/terminal-orders-list-core2.js +1 -1
  198. package/dist/module/terminal.service.js +1 -1
  199. package/dist/module/terminals-list-core2.js +1 -1
  200. package/dist/module/utils4.js +1 -1
  201. package/dist/types/api/Analytics.d.ts +1 -0
  202. package/dist/types/api/BankAccount.d.ts +1 -0
  203. package/dist/types/api/Business.d.ts +2 -0
  204. package/dist/types/api/Plaid.d.ts +54 -0
  205. package/dist/types/api/index.d.ts +1 -0
  206. package/dist/types/api/services/plaid.service.d.ts +8 -0
  207. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
  208. package/dist/types/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.d.ts +36 -0
  209. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +1 -25
  210. package/dist/types/components.d.ts +40 -1
  211. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +4 -0
  212. package/dist/webcomponents/{p-BXdZKjdB.js → p--cI8fPJx.js} +1 -1
  213. package/dist/webcomponents/{p-66e8b443.entry.js → p-02f360c5.entry.js} +1 -1
  214. package/dist/webcomponents/{p-d0d6d1cc.entry.js → p-073ca03f.entry.js} +1 -1
  215. package/dist/webcomponents/{p-e9daf75f.entry.js → p-0eb97b54.entry.js} +1 -1
  216. package/dist/webcomponents/p-0fcb7ebb.entry.js +1 -0
  217. package/dist/webcomponents/{p-b2371f43.entry.js → p-110bec2e.entry.js} +1 -1
  218. package/dist/webcomponents/{p-931ea171.entry.js → p-1ec3d1e7.entry.js} +1 -1
  219. package/dist/webcomponents/{p-86db9040.entry.js → p-20cab5fe.entry.js} +1 -1
  220. package/dist/webcomponents/{p-a9b493c1.entry.js → p-238ba771.entry.js} +1 -1
  221. package/dist/webcomponents/{p-e11c7df0.entry.js → p-2454c140.entry.js} +1 -1
  222. package/dist/webcomponents/{p-5af4bb01.entry.js → p-25666afe.entry.js} +1 -1
  223. package/dist/webcomponents/{p-f5f46f2d.entry.js → p-26430bfe.entry.js} +1 -1
  224. package/dist/webcomponents/p-33ab9174.entry.js +1 -0
  225. package/dist/webcomponents/{p-f13c4a88.entry.js → p-3a254390.entry.js} +1 -1
  226. package/dist/webcomponents/p-4a802f82.entry.js +1 -0
  227. package/dist/webcomponents/p-4b928d2e.entry.js +1 -0
  228. package/dist/webcomponents/{p-252bd81d.entry.js → p-4d3e4e56.entry.js} +1 -1
  229. package/dist/webcomponents/{p-7184c2f8.entry.js → p-5ae3401d.entry.js} +1 -1
  230. package/dist/webcomponents/{p-4165281d.entry.js → p-7068c2ad.entry.js} +1 -1
  231. package/dist/webcomponents/{p-4786d1ea.entry.js → p-785e8ef7.entry.js} +1 -1
  232. package/dist/webcomponents/{p-50f16cca.entry.js → p-81bbd944.entry.js} +1 -1
  233. package/dist/webcomponents/{p-3d2495df.entry.js → p-8ac883e4.entry.js} +1 -1
  234. package/dist/webcomponents/{p-6ed0be7f.entry.js → p-8e6f2dc8.entry.js} +1 -1
  235. package/dist/webcomponents/{p-53be30e9.entry.js → p-8ed4f485.entry.js} +1 -1
  236. package/dist/webcomponents/p-922ddfb4.entry.js +1 -0
  237. package/dist/webcomponents/p-9643fe36.entry.js +1 -0
  238. package/dist/webcomponents/{p-Ce785aMx.js → p-B1AMrMly.js} +1 -1
  239. package/dist/webcomponents/{p-DDjKoqh6.js → p-BRPbLfCN.js} +1 -1
  240. package/dist/webcomponents/{p-BAu40WfT.js → p-BZbvHgMz.js} +1 -1
  241. package/dist/webcomponents/{p-APob2Eta.js → p-Bj9n56jK.js} +1 -1
  242. package/dist/webcomponents/p-By-Mu1IX.js +1 -0
  243. package/dist/webcomponents/p-C0dMwnDO.js +1 -0
  244. package/dist/webcomponents/p-C3RQHKL5.js +1 -0
  245. package/dist/webcomponents/{p-DBOsYeYk.js → p-CWyW004b.js} +1 -1
  246. package/dist/webcomponents/p-CekpA_KC.js +1 -0
  247. package/dist/webcomponents/p-CkYB1zGe.js +1 -0
  248. package/dist/webcomponents/p-D-07jgNC.js +1 -0
  249. package/dist/webcomponents/{p-C-LV3hNf.js → p-DCwnBXF7.js} +1 -1
  250. package/dist/webcomponents/p-DKemQxaE.js +1 -0
  251. package/dist/webcomponents/{p-CHJTjG_5.js → p-GgW1g7FQ.js} +1 -1
  252. package/dist/webcomponents/{p-NO0z-S2W.js → p-MVBgKFOv.js} +1 -1
  253. package/dist/webcomponents/{p-mhEMV8M-.js → p-Y-EhaLdV.js} +1 -1
  254. package/dist/webcomponents/{p-e5651bb1.entry.js → p-aa02e3d7.entry.js} +1 -1
  255. package/dist/webcomponents/p-adbe280f.entry.js +1 -0
  256. package/dist/webcomponents/{p-ea0cd47d.entry.js → p-af11ac6a.entry.js} +1 -1
  257. package/dist/webcomponents/{p-73b9cc29.entry.js → p-bbffb17f.entry.js} +1 -1
  258. package/dist/webcomponents/{p-782ccafb.entry.js → p-c0829d61.entry.js} +1 -1
  259. package/dist/webcomponents/{p-001ce9f8.entry.js → p-c2db5db6.entry.js} +1 -1
  260. package/dist/webcomponents/{p-79d1d6b3.entry.js → p-d4535236.entry.js} +1 -1
  261. package/dist/webcomponents/{p-e1a8785d.entry.js → p-d5827cb2.entry.js} +1 -1
  262. package/dist/webcomponents/{p-1eefdd41.entry.js → p-ed9db5b2.entry.js} +1 -1
  263. package/dist/webcomponents/{p-c11512e7.entry.js → p-f1e012f6.entry.js} +1 -1
  264. package/dist/webcomponents/{p-1dbf3473.entry.js → p-f1f0f100.entry.js} +1 -1
  265. package/dist/webcomponents/{p-7c4fa66f.entry.js → p-f5b7c322.entry.js} +1 -1
  266. package/dist/webcomponents/{p-bc56446a.entry.js → p-f9475bb0.entry.js} +1 -1
  267. package/dist/webcomponents/{p-4d7a2565.entry.js → p-ff1cff1d.entry.js} +1 -1
  268. package/dist/webcomponents/{p-D81X4BBI.js → p-g0kDRH6Z.js} +1 -1
  269. package/dist/webcomponents/{p-Bz97Ujvk.js → p-m_Ly-YPk.js} +1 -1
  270. package/dist/webcomponents/p-wSi5d4-j.js +1 -0
  271. package/dist/webcomponents/{p-BhvkOTYA.js → p-ygekUw3Q.js} +1 -1
  272. package/dist/webcomponents/webcomponents.esm.js +1 -1
  273. package/package.json +2 -1
  274. package/dist/webcomponents/p-0fb3fd77.entry.js +0 -1
  275. package/dist/webcomponents/p-198d2941.entry.js +0 -1
  276. package/dist/webcomponents/p-52203b01.entry.js +0 -1
  277. package/dist/webcomponents/p-639e5ce9.entry.js +0 -1
  278. package/dist/webcomponents/p-7ec771bc.entry.js +0 -1
  279. package/dist/webcomponents/p-D0PhRMmy.js +0 -1
  280. package/dist/webcomponents/p-DLLFAj4z.js +0 -1
  281. package/dist/webcomponents/p-DpkIbI5R.js +0 -1
  282. package/dist/webcomponents/p-MBH9QO2m.js +0 -1
  283. package/dist/webcomponents/p-ZkBwsSuI.js +0 -1
  284. package/dist/webcomponents/p-_LSWCi-4.js +0 -1
  285. package/dist/webcomponents/p-c5afb831.entry.js +0 -1
  286. package/dist/webcomponents/p-d55c348b.entry.js +0 -1
  287. package/dist/webcomponents/p-y-FoILTI.js +0 -1
@@ -1800,38 +1800,66 @@ const CustomPopper = class {
1800
1800
  this.placement = 'bottom';
1801
1801
  this.offset = [0, 10];
1802
1802
  this.strategy = 'absolute';
1803
- this.trigger = 'click'; // 'click', 'hover', 'focus'
1803
+ this.trigger = 'click';
1804
1804
  this.isOpen = false;
1805
+ this.initialized = false;
1806
+ this.boundHandlers = {
1807
+ show: null,
1808
+ hide: null,
1809
+ handleClick: null,
1810
+ };
1811
+ }
1812
+ onAnchorRefChange(newValue) {
1813
+ if (newValue && this.popperContentRef && !this.initialized) {
1814
+ this.initPopper();
1815
+ }
1805
1816
  }
1806
1817
  componentDidLoad() {
1818
+ if (this.anchorRef && this.popperContentRef) {
1819
+ this.initPopper();
1820
+ }
1821
+ }
1822
+ initPopper() {
1823
+ if (this.initialized)
1824
+ return;
1825
+ this.initialized = true;
1826
+ // Store bound references
1827
+ this.boundHandlers.show = this.show.bind(this);
1828
+ this.boundHandlers.hide = this.hide.bind(this);
1829
+ this.boundHandlers.handleClick = this.handleClick.bind(this);
1807
1830
  this.popperInstance = createPopper(this.anchorRef, this.popperContentRef, this.popperOptions);
1808
1831
  if (this.trigger === 'click') {
1809
- window.addEventListener('click', this.handleClick.bind(this));
1832
+ window.addEventListener('click', this.boundHandlers.handleClick);
1810
1833
  }
1811
1834
  else if (this.trigger === 'hover') {
1812
- this.anchorRef.addEventListener('mouseenter', this.show.bind(this));
1813
- this.anchorRef.addEventListener('mouseleave', this.hide.bind(this));
1814
- this.popperContentRef.addEventListener('mouseenter', this.show.bind(this));
1815
- this.popperContentRef.addEventListener('mouseleave', this.hide.bind(this));
1835
+ this.anchorRef.addEventListener('mouseenter', this.boundHandlers.show);
1836
+ this.anchorRef.addEventListener('mouseleave', this.boundHandlers.hide);
1837
+ this.popperContentRef.addEventListener('mouseenter', this.boundHandlers.show);
1838
+ this.popperContentRef.addEventListener('mouseleave', this.boundHandlers.hide);
1816
1839
  }
1817
1840
  else if (this.trigger === 'focus') {
1818
- this.anchorRef.addEventListener('focus', this.show.bind(this));
1819
- this.anchorRef.addEventListener('blur', this.hide.bind(this));
1841
+ this.anchorRef.addEventListener('focus', this.boundHandlers.show);
1842
+ this.anchorRef.addEventListener('blur', this.boundHandlers.hide);
1820
1843
  }
1821
1844
  }
1822
1845
  disconnectedCallback() {
1846
+ var _a, _b, _c, _d, _e, _f, _g;
1847
+ if (!this.initialized)
1848
+ return;
1849
+ // Clean up popper instance
1850
+ (_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
1823
1851
  if (this.trigger === 'click') {
1824
- window.removeEventListener('click', this.handleClick.bind(this));
1852
+ window.removeEventListener('click', this.boundHandlers.handleClick);
1825
1853
  }
1826
1854
  else if (this.trigger === 'hover') {
1827
- this.anchorRef.removeEventListener('mouseenter', this.show.bind(this));
1828
- this.anchorRef.removeEventListener('mouseleave', this.hide.bind(this));
1829
- this.popperContentRef.removeEventListener('mouseenter', this.show.bind(this));
1830
- this.popperContentRef.removeEventListener('mouseleave', this.hide.bind(this));
1855
+ (_b = this.anchorRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseenter', this.boundHandlers.show);
1856
+ (_c = this.anchorRef) === null || _c === void 0 ? void 0 : _c.removeEventListener('mouseleave', this.boundHandlers.hide);
1857
+ (_d = this.popperContentRef) === null || _d === void 0 ? void 0 : _d.removeEventListener('mouseenter', this.boundHandlers.show);
1858
+ (_e = this.popperContentRef) === null || _e === void 0 ? void 0 : _e.removeEventListener('mouseleave', this.boundHandlers.hide);
1831
1859
  }
1832
1860
  else if (this.trigger === 'focus') {
1833
- this.anchorRef.removeEventListener('focus', this.show.bind(this));
1834
- this.anchorRef.removeEventListener('blur', this.hide.bind(this));
1861
+ (_f = this.anchorRef) === null || _f === void 0 ? void 0 : _f.removeEventListener('focus', this.boundHandlers.show);
1862
+ (_g = this.anchorRef) === null || _g === void 0 ? void 0 : _g.removeEventListener('blur', this.boundHandlers.hide);
1835
1863
  }
1836
1864
  }
1837
1865
  handleClick(event) {
@@ -1875,7 +1903,7 @@ const CustomPopper = class {
1875
1903
  this.hideEvent.emit();
1876
1904
  }
1877
1905
  render() {
1878
- return (index.h("div", { key: 'd9ed696150f2def459af17d43a2a06e0fb24b2d1' }, index.h("style", { key: 'eb3f2a09ace3aa7d0d6225947a0d511cf73b107b' }, `
1906
+ return (index.h("div", { key: '2d57f47cc668826c2a72d70d3a0404837398a646' }, index.h("style", { key: '6d02bdb47dd36a529d2e8ae3f2b4adad6c8cdf88' }, `
1879
1907
  .popper-content {
1880
1908
  display: none;
1881
1909
  }
@@ -1883,8 +1911,11 @@ const CustomPopper = class {
1883
1911
  display: block;
1884
1912
  z-index: 1030;
1885
1913
  }
1886
- `), index.h("div", { key: '3221d4cc026a4b9ef06aaaa38a5ad4bc5f190f81', class: "popper-content", ref: (el) => this.popperContentRef = el }, index.h("slot", { key: '6481dcba1041571349cb8c91c350c497453fe054' }))));
1914
+ `), index.h("div", { key: 'fdcb769c70b92532427e09fdaa5bbdffc59c8ac3', class: "popper-content", ref: (el) => this.popperContentRef = el }, index.h("slot", { key: '1cdd517d323181dee0f2a345406d07432889ee21' }))));
1887
1915
  }
1916
+ static get watchers() { return {
1917
+ "anchorRef": ["onAnchorRefChange"]
1918
+ }; }
1888
1919
  };
1889
1920
 
1890
1921
  const TooltipComponent = class {
@@ -2,9 +2,9 @@
2
2
 
3
3
  var Api = require('./Api-CVbEWBG6.js');
4
4
  require('./ComponentError-D4OLnOkg.js');
5
- require('./GooglePay-CbKCUEfb.js');
5
+ require('./Plaid-DxPvVu0H.js');
6
6
  require('./Pagination-Dediz133.js');
7
- require('./Business-uoeKyW_a.js');
7
+ require('./Business-CB8EVrhD.js');
8
8
  require('./Dispute-CruQTF6_.js');
9
9
 
10
10
  const api = Api.Api();
@@ -2,10 +2,10 @@
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var parts = require('./parts-BsBVknuf.js');
5
- var businessFormOptions = require('./business-form-options-D1r-wJpo.js');
5
+ var businessFormOptions = require('./business-form-options-B3CbEmdc.js');
6
6
  var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
7
- var Business = require('./Business-uoeKyW_a.js');
8
- var countryConfig = require('./country-config-DGi9t3Ma.js');
7
+ var Business = require('./Business-CB8EVrhD.js');
8
+ var countryConfig = require('./country-config-ETD-7Wb7.js');
9
9
 
10
10
  const FormAlert = class {
11
11
  constructor(hostRef) {
@@ -5,9 +5,9 @@ var index$1 = require('./index-1MT3Z4XI.js');
5
5
  var parts = require('./parts-BsBVknuf.js');
6
6
  var formControlErrorText = require('./form-control-error-text-BC5aRpfl.js');
7
7
  require('./event-types-YOY5TKUN.js');
8
- var Business = require('./Business-uoeKyW_a.js');
8
+ var Business = require('./Business-CB8EVrhD.js');
9
9
  var utils = require('./utils-DAyWinG2.js');
10
- var countryConfig = require('./country-config-DGi9t3Ma.js');
10
+ var countryConfig = require('./country-config-ETD-7Wb7.js');
11
11
 
12
12
  const NumberInputMasked = class {
13
13
  constructor(hostRef) {
@@ -6,16 +6,16 @@ var formControlHelpText = require('./form-control-help-text-B2yMic8i.js');
6
6
  var formControlErrorText = require('./form-control-error-text-BC5aRpfl.js');
7
7
  require('./event-types-YOY5TKUN.js');
8
8
  var index_esm = require('./index.esm-ByC0D4sJ.js');
9
- var Business = require('./Business-uoeKyW_a.js');
10
- var businessIdentitySchema = require('./business-identity-schema-CMvq6f8m.js');
9
+ var Business = require('./Business-CB8EVrhD.js');
10
+ var businessIdentitySchema = require('./business-identity-schema-0jg2Thn9.js');
11
11
  var button = require('./button-C2p1BMP-.js');
12
12
  var eventTypes = require('./event-types-DNOUef41.js');
13
13
  var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
14
- var inputHandlers = require('./input-handlers-DaRKFvGI.js');
15
- var countryConfig = require('./country-config-DGi9t3Ma.js');
14
+ var inputHandlers = require('./input-handlers-gV1LyFy3.js');
15
+ var countryConfig = require('./country-config-ETD-7Wb7.js');
16
16
  require('./_commonjsHelpers-BJu3ubxk.js');
17
- require('./schema-validations-DYYDrVol.js');
18
- require('./business-form-options-D1r-wJpo.js');
17
+ require('./schema-validations-BakyfJpE.js');
18
+ require('./business-form-options-B3CbEmdc.js');
19
19
 
20
20
  const NumberInput = class {
21
21
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Business = require('./Business-uoeKyW_a.js');
3
+ var Business = require('./Business-CB8EVrhD.js');
4
4
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
5
5
  var utils = require('./utils-DvUQQLmR.js');
6
6
 
@@ -3,9 +3,9 @@
3
3
  require('./config-state-BIgGhhe9.js');
4
4
  require('./dinero-BwNN_k7x.js');
5
5
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
6
- var GooglePay = require('./GooglePay-CbKCUEfb.js');
6
+ var Plaid = require('./Plaid-DxPvVu0H.js');
7
7
  require('./Pagination-Dediz133.js');
8
- require('./Business-uoeKyW_a.js');
8
+ require('./Business-CB8EVrhD.js');
9
9
  require('./Dispute-CruQTF6_.js');
10
10
  var utils = require('./utils-DvUQQLmR.js');
11
11
 
@@ -14,7 +14,7 @@ const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess
14
14
  try {
15
15
  const response = await service.fetchPayment(id, authToken);
16
16
  if (!response.error) {
17
- onSuccess({ payment: new GooglePay.Payment(response.data) });
17
+ onSuccess({ payment: new Plaid.Payment(response.data) });
18
18
  }
19
19
  else {
20
20
  const responseError = utils.getErrorMessage(response.error);
@@ -2,9 +2,9 @@
2
2
 
3
3
  var Api = require('./Api-CVbEWBG6.js');
4
4
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
5
- var GooglePay = require('./GooglePay-CbKCUEfb.js');
5
+ var Plaid = require('./Plaid-DxPvVu0H.js');
6
6
  require('./Pagination-Dediz133.js');
7
- require('./Business-uoeKyW_a.js');
7
+ require('./Business-CB8EVrhD.js');
8
8
  require('./Dispute-CruQTF6_.js');
9
9
  require('./config-state-BIgGhhe9.js');
10
10
  require('./dinero-BwNN_k7x.js');
@@ -25,7 +25,7 @@ const makeGetSubAccounts = ({ accountId, authToken, service }) => async ({ param
25
25
  const response = await service.fetchSubAccounts(accountId, authToken, params);
26
26
  if (!response.error) {
27
27
  const pagingInfo = Object.assign({}, response.page_info);
28
- const subAccounts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new GooglePay.SubAccount(dataItem))) || [];
28
+ const subAccounts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Plaid.SubAccount(dataItem))) || [];
29
29
  onSuccess({ subAccounts, pagingInfo });
30
30
  }
31
31
  else {
@@ -5,7 +5,7 @@ var index = require('./index-W-zoNiyM.js');
5
5
  var parts = require('./parts-BsBVknuf.js');
6
6
  var _commonjsHelpers = require('./_commonjsHelpers-BJu3ubxk.js');
7
7
  var formControlErrorText = require('./form-control-error-text-BC5aRpfl.js');
8
- var _package = require('./package-DcGEg97O.js');
8
+ var _package = require('./package-B4vs5j7c.js');
9
9
 
10
10
  const iframeInputStylesStore = index.createStore({
11
11
  focused: {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Business = require('./Business-uoeKyW_a.js');
3
+ var Business = require('./Business-CB8EVrhD.js');
4
4
 
5
5
  const updateFormValues = (formController, newValues) => {
6
6
  formController.setValues(Object.assign(Object.assign({}, formController.values.getValue()), newValues));
@@ -3,20 +3,20 @@
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var styledHost = require('./styled-host-DAi5SuFa.js');
5
5
  require('./event-types-YOY5TKUN.js');
6
- var checkPkgVersion = require('./check-pkg-version-Bs_9oZb4.js');
6
+ var checkPkgVersion = require('./check-pkg-version-DKH70uPq.js');
7
7
  var configState = require('./config-state-BIgGhhe9.js');
8
8
  require('./dinero-BwNN_k7x.js');
9
9
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
10
- var GooglePay = require('./GooglePay-CbKCUEfb.js');
10
+ var Plaid = require('./Plaid-DxPvVu0H.js');
11
11
  require('./Pagination-Dediz133.js');
12
- require('./Business-uoeKyW_a.js');
12
+ require('./Business-CB8EVrhD.js');
13
13
  require('./Dispute-CruQTF6_.js');
14
14
  var index$1 = require('./index-CajjbB9t.js');
15
15
  var skeleton = require('./skeleton-BGGMhPJj.js');
16
16
  var utils = require('./utils-D4WPxuzW.js');
17
17
  var button = require('./button-C2p1BMP-.js');
18
18
  var parts = require('./parts-BsBVknuf.js');
19
- require('./package-DcGEg97O.js');
19
+ require('./package-B4vs5j7c.js');
20
20
  require('./Api-CVbEWBG6.js');
21
21
  require('./index-W-zoNiyM.js');
22
22
 
@@ -75,7 +75,7 @@ const InternalTokenizePaymentMethod = class {
75
75
  }
76
76
  handleRadioClick(event) {
77
77
  this.selectedPaymentMethod = event.detail;
78
- GooglePay.checkoutStore.selectedPaymentMethod = { type: event.detail };
78
+ Plaid.checkoutStore.selectedPaymentMethod = { type: event.detail };
79
79
  }
80
80
  async fillBillingForm(fields) {
81
81
  var _a;
@@ -136,8 +136,8 @@ const InternalTokenizePaymentMethod = class {
136
136
  try {
137
137
  const billingFormFieldValues = await this.billingFormRef.getValues();
138
138
  const config = {
139
- clientId: this.authToken || GooglePay.checkoutStore.authToken,
140
- account: this.accountId || GooglePay.checkoutStore.accountId,
139
+ clientId: this.authToken || Plaid.checkoutStore.authToken,
140
+ account: this.accountId || Plaid.checkoutStore.accountId,
141
141
  paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
142
142
  };
143
143
  return await this.paymentMethodFormRef.tokenize(config);
@@ -148,13 +148,13 @@ const InternalTokenizePaymentMethod = class {
148
148
  }
149
149
  // 9. Local methods
150
150
  validateRequiredProps() {
151
- if (!this.authToken && !GooglePay.checkoutStore.authToken) {
151
+ if (!this.authToken && !Plaid.checkoutStore.authToken) {
152
152
  this.emitError({
153
153
  errorCode: ComponentError.ComponentErrorCodes.TOKENIZE_ERROR,
154
154
  message: ERROR_MESSAGES.AUTH_TOKEN_REQUIRED,
155
155
  });
156
156
  }
157
- if (!this.accountId && !GooglePay.checkoutStore.accountId) {
157
+ if (!this.accountId && !Plaid.checkoutStore.accountId) {
158
158
  this.emitError({
159
159
  errorCode: ComponentError.ComponentErrorCodes.TOKENIZE_ERROR,
160
160
  message: ERROR_MESSAGES.ACCOUNT_ID_REQUIRED,
@@ -167,11 +167,11 @@ const InternalTokenizePaymentMethod = class {
167
167
  }
168
168
  if (!this.disableCreditCard) {
169
169
  this.selectedPaymentMethod = index$1.PAYMENT_METHODS.NEW_CARD;
170
- GooglePay.checkoutStore.selectedPaymentMethod = { type: index$1.PAYMENT_METHODS.NEW_CARD };
170
+ Plaid.checkoutStore.selectedPaymentMethod = { type: index$1.PAYMENT_METHODS.NEW_CARD };
171
171
  }
172
172
  else if (!this.disableBankAccount) {
173
173
  this.selectedPaymentMethod = index$1.PAYMENT_METHODS.NEW_BANK_ACCOUNT;
174
- GooglePay.checkoutStore.selectedPaymentMethod = { type: index$1.PAYMENT_METHODS.NEW_BANK_ACCOUNT };
174
+ Plaid.checkoutStore.selectedPaymentMethod = { type: index$1.PAYMENT_METHODS.NEW_BANK_ACCOUNT };
175
175
  }
176
176
  }
177
177
  setComputedHideSubmitButton() {
@@ -261,16 +261,16 @@ const InternalTokenizePaymentMethod = class {
261
261
  ? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupID }) : Object.assign({}, billingFormFieldValues);
262
262
  }
263
263
  get paymentMethodGroupID() {
264
- return this.paymentMethodGroupId || GooglePay.checkoutStore.paymentMethodGroupId;
264
+ return this.paymentMethodGroupId || Plaid.checkoutStore.paymentMethodGroupId;
265
265
  }
266
266
  get shouldSavePaymentMethod() {
267
- return !!(this.paymentMethodGroupId || GooglePay.checkoutStore.savePaymentMethod);
267
+ return !!(this.paymentMethodGroupId || Plaid.checkoutStore.savePaymentMethod);
268
268
  }
269
269
  get shouldHideRadioInput() {
270
270
  return this.disableCreditCard || this.disableBankAccount;
271
271
  }
272
272
  renderPaymentMethodOption(paymentMethodType) {
273
- const isSelected = this.selectedPaymentMethod === paymentMethodType && GooglePay.checkoutStore.selectedPaymentMethod.id === undefined;
273
+ const isSelected = this.selectedPaymentMethod === paymentMethodType && Plaid.checkoutStore.selectedPaymentMethod.id === undefined;
274
274
  return (index.h("div", { class: "payment-method" }, index.h("justifi-radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
275
275
  }
276
276
  renderSelectedPaymentMethodForm(paymentMethodType) {
@@ -451,7 +451,7 @@ const SaveNewPaymentMethod = class {
451
451
  this.isChecked = false;
452
452
  this.handleCheckboxChange = (_name, value) => {
453
453
  this.isChecked = value;
454
- GooglePay.checkoutStore.savePaymentMethod = value;
454
+ Plaid.checkoutStore.savePaymentMethod = value;
455
455
  this.checkboxChanged.emit(this.isChecked);
456
456
  };
457
457
  }
@@ -3,25 +3,25 @@
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
5
5
  var paymentProvisioningActions = require('./payment-provisioning-actions-CZVlnRA0.js');
6
- var business_service = require('./business.service-DR4Ce5XV.js');
7
- var businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-BtOuMq_U.js');
6
+ var business_service = require('./business.service-zGEitIbP.js');
7
+ var businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-Cnh6AXQU.js');
8
8
  var index_esm = require('./index.esm-ByC0D4sJ.js');
9
- var Business = require('./Business-uoeKyW_a.js');
9
+ var Business = require('./Business-CB8EVrhD.js');
10
10
  var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
11
11
  var parts = require('./parts-BsBVknuf.js');
12
12
  var paymentProvisioningLoading = require('./payment-provisioning-loading-B3hvtd9o.js');
13
- var businessFormOptions = require('./business-form-options-D1r-wJpo.js');
13
+ var businessFormOptions = require('./business-form-options-B3CbEmdc.js');
14
14
  var eventTypes = require('./event-types-DNOUef41.js');
15
15
  require('./config-state-BIgGhhe9.js');
16
16
  require('./dinero-BwNN_k7x.js');
17
- var GooglePay = require('./GooglePay-CbKCUEfb.js');
17
+ var Plaid = require('./Plaid-DxPvVu0H.js');
18
18
  require('./Pagination-Dediz133.js');
19
19
  require('./Dispute-CruQTF6_.js');
20
- var schemaValidations = require('./schema-validations-DYYDrVol.js');
20
+ var schemaValidations = require('./schema-validations-BakyfJpE.js');
21
21
  var button = require('./button-C2p1BMP-.js');
22
22
  require('./event-types-YOY5TKUN.js');
23
- var countryConfig = require('./country-config-DGi9t3Ma.js');
24
- var businessIdentitySchema = require('./business-identity-schema-CMvq6f8m.js');
23
+ var countryConfig = require('./country-config-ETD-7Wb7.js');
24
+ var businessIdentitySchema = require('./business-identity-schema-0jg2Thn9.js');
25
25
  var Api = require('./Api-CVbEWBG6.js');
26
26
  require('./utils-DvUQQLmR.js');
27
27
  require('./_commonjsHelpers-BJu3ubxk.js');
@@ -218,8 +218,8 @@ const buildDocumentRules = (documents, allowOptionalFields) => {
218
218
  bank_statement: index_esm.create$8().nullable(),
219
219
  };
220
220
  }
221
- const existingVoidedCheck = checkExistingDocs(documents, GooglePay.EntityDocumentType.voidedCheck);
222
- const existingBankStatement = checkExistingDocs(documents, GooglePay.EntityDocumentType.bankStatement);
221
+ const existingVoidedCheck = checkExistingDocs(documents, Plaid.EntityDocumentType.voidedCheck);
222
+ const existingBankStatement = checkExistingDocs(documents, Plaid.EntityDocumentType.bankStatement);
223
223
  const existingDocument = existingVoidedCheck || existingBankStatement;
224
224
  const documentErrorText = 'Please upload either a voided check or a bank statement. Only one is required.';
225
225
  return {
@@ -281,9 +281,11 @@ const BusinessBankAccountFormStep = class {
281
281
  this.errors = {};
282
282
  this.bankAccount = {};
283
283
  this.existingDocuments = [];
284
- this.documentData = new GooglePay.EntityDocumentStorage();
284
+ this.documentData = new Plaid.EntityDocumentStorage();
285
285
  this.isLoading = false;
286
286
  this.isAddingNewBankAccount = true;
287
+ this.bankAccountVerification = false;
288
+ this.platformAccountId = null;
287
289
  this.getSchema = () => {
288
290
  const schema = bankAccountSchemaByCountry[this.country];
289
291
  return schema(this.allowOptionalFields, this.existingDocuments);
@@ -307,7 +309,7 @@ const BusinessBankAccountFormStep = class {
307
309
  this.storeFiles = (e) => {
308
310
  const fileList = Array.from(e.detail.fileList);
309
311
  const docType = e.detail.document_type;
310
- const documentList = fileList.map(file => new GooglePay.EntityDocument({ file, document_type: docType }, this.businessId));
312
+ const documentList = fileList.map(file => new Plaid.EntityDocument({ file, document_type: docType }, this.businessId));
311
313
  this.documentData[docType] = documentList;
312
314
  };
313
315
  this.getData = () => {
@@ -326,6 +328,8 @@ const BusinessBankAccountFormStep = class {
326
328
  this.bankAccount.business_id = this.businessId;
327
329
  }
328
330
  this.existingDocuments = response.data.documents;
331
+ this.bankAccountVerification = response.data.settings.bank_account_verification === true;
332
+ this.platformAccountId = response.data.platform_account_id;
329
333
  },
330
334
  onError: ({ error, code, severity }) => {
331
335
  this.errorEvent.emit({
@@ -342,12 +346,12 @@ const BusinessBankAccountFormStep = class {
342
346
  };
343
347
  this.handleChangeBankAccount = () => {
344
348
  this.isAddingNewBankAccount = true;
345
- this.documentData = new GooglePay.EntityDocumentStorage();
349
+ this.documentData = new Plaid.EntityDocumentStorage();
346
350
  this.initializeFormController();
347
351
  };
348
352
  this.handleCancel = () => {
349
353
  this.isAddingNewBankAccount = false;
350
- this.documentData = new GooglePay.EntityDocumentStorage();
354
+ this.documentData = new Plaid.EntityDocumentStorage();
351
355
  this.initializeFormController();
352
356
  };
353
357
  this.handleSaveBankAccount = async () => {
@@ -541,13 +545,17 @@ const BusinessBankAccountFormStep = class {
541
545
  this.isLoading = true;
542
546
  this.getBusiness({
543
547
  onSuccess: (response) => {
544
- if (response.data.bank_accounts.length > 0) {
548
+ const { data } = response;
549
+ const { bank_accounts, documents, settings, platform_account_id } = data;
550
+ if (bank_accounts.length > 0) {
545
551
  // Get the latest bank account (last in array)
546
- const bankAccounts = response.data.bank_accounts;
552
+ const bankAccounts = bank_accounts;
547
553
  const latestBankAccount = bankAccounts[bankAccounts.length - 1];
548
554
  this.bankAccount = new BankAccount(latestBankAccount);
549
555
  }
550
- this.existingDocuments = response.data.documents;
556
+ this.existingDocuments = documents;
557
+ this.bankAccountVerification = settings.bank_account_verification === true;
558
+ this.platformAccountId = platform_account_id;
551
559
  this.initializeFormController();
552
560
  },
553
561
  onError: ({ error, code, severity }) => {
@@ -587,10 +595,15 @@ const BusinessBankAccountFormStep = class {
587
595
  }
588
596
  render() {
589
597
  const bankAccountDefaultValue = this.formController.getInitialValues();
598
+ const shouldShowPlaidVerification = this.bankAccountVerification && this.platformAccountId;
590
599
  if (this.isLoading) {
591
600
  return index.h(paymentProvisioningLoading.PaymentProvisioningLoading, null);
592
601
  }
593
- return (index.h("form", null, index.h("fieldset", { class: "mb-4" }, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Bank Account Info"), index.h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), index.h("hr", { class: "mt-2" }), this.country === Business.CountryCode.CAN ? (index.h("bank-account-form-inputs-canada", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })) : (index.h("bank-account-form-inputs", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })), this.showReadOnlyView && (index.h("div", { class: "mt-3" }, index.h(button.Button, { variant: "secondary", type: "button", onClick: this.handleChangeBankAccount, disabled: this.isLoading, part: parts.buttonSecondary }, "Change Bank Account"))), (!this.existingBankAccount || this.isAddingNewBankAccount) && (index.h("div", { class: "mt-3 d-flex gap-2" }, this.isAddingNewBankAccount && (index.h(button.Button, { variant: "secondary", type: "button", onClick: this.handleCancel, disabled: this.isLoading, part: parts.buttonSecondary }, "Cancel")), index.h(button.Button, { variant: "primary", type: "button", onClick: this.handleSaveBankAccount, disabled: this.isLoading, isLoading: this.isLoading }, "Save Bank Account")))), index.h("fieldset", { class: "mt-4" }, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Document Uploads"), index.h("form-control-tooltip", { helpText: "One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category." })), index.h("hr", { class: "mt-2" }), index.h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), index.h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles }))));
602
+ return (index.h("form", null, index.h("fieldset", { class: "mb-4" }, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Bank Account Info"), index.h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), index.h("hr", { class: "mt-2" }), shouldShowPlaidVerification && (index.h("div", { class: "mt-3" }, index.h("plaid-verification", { authToken: this.authToken, accountId: this.platformAccountId, businessId: this.businessId, onPlaidVerificationSuccess: () => {
603
+ // Refresh bank account data after successful Plaid verification
604
+ this.isAddingNewBankAccount = false;
605
+ this.refreshBankAccountData();
606
+ } }))), this.country === Business.CountryCode.CAN ? (index.h("bank-account-form-inputs-canada", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })) : (index.h("bank-account-form-inputs", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.showReadOnlyView })), this.showReadOnlyView && (index.h("div", { class: "mt-3" }, index.h(button.Button, { variant: "secondary", type: "button", onClick: this.handleChangeBankAccount, disabled: this.isLoading, part: parts.buttonSecondary }, "Change Bank Account"))), (!this.existingBankAccount || this.isAddingNewBankAccount) && (index.h("div", { class: "mt-3 d-flex gap-2" }, this.isAddingNewBankAccount && (index.h(button.Button, { variant: "secondary", type: "button", onClick: this.handleCancel, disabled: this.isLoading, part: parts.buttonSecondary }, "Cancel")), index.h(button.Button, { variant: "primary", type: "button", onClick: this.handleSaveBankAccount, disabled: this.isLoading, isLoading: this.isLoading }, "Save Bank Account")))), index.h("fieldset", { class: "mt-4" }, index.h("div", { class: "d-flex align-items-center gap-2" }, index.h("legend", { class: "mb-0", part: parts.heading2 }, "Document Uploads"), index.h("form-control-tooltip", { helpText: "One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category." })), index.h("hr", { class: "mt-2" }), index.h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), index.h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles }))));
594
607
  }
595
608
  static get watchers() { return {
596
609
  "authToken": ["propChanged"],