@justifi/webcomponents 6.7.3 → 6.8.1

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 (298) 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-BsCYiOlF.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 +10 -10
  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 +10 -6
  39. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  40. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
  41. package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
  42. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
  43. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -7
  44. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
  45. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
  46. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -10
  47. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
  48. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -8
  49. package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
  50. package/dist/cjs/loader.cjs.js +1 -1
  51. package/dist/cjs/{lodash-CvSCBJ_8.js → lodash-CxSkBibc.js} +43 -4
  52. package/dist/cjs/{package-DcGEg97O.js → package-Odd17EzW.js} +1 -1
  53. package/dist/cjs/payment-details-core.cjs.entry.js +3 -3
  54. package/dist/cjs/{payment.service-B4ACB8Q3.js → payment.service-QODfB293.js} +2 -2
  55. package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
  56. package/dist/cjs/{payout.service-qVbNnemO.js → payout.service-k7GBuYzk.js} +2 -2
  57. package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
  58. package/dist/cjs/plaid-icon-DTpONc_Q.js +46 -0
  59. package/dist/cjs/{schema-validations-DYYDrVol.js → schema-validations-BakyfJpE.js} +3 -3
  60. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -3
  61. package/dist/cjs/{terminal-orders-table-C2jG4WQa.js → terminal-orders-table-C6j6Mx_r.js} +4 -4
  62. package/dist/cjs/{terminal.service-D1ohedi-.js → terminal.service-A90K3XNq.js} +2 -2
  63. package/dist/cjs/terminals-list-core.cjs.entry.js +2 -2
  64. package/dist/cjs/webcomponents.cjs.js +1 -1
  65. package/dist/collection/api/Analytics.js +8 -7
  66. package/dist/collection/api/Business.js +1 -0
  67. package/dist/collection/api/Plaid.js +50 -0
  68. package/dist/collection/api/index.js +1 -0
  69. package/dist/collection/api/services/plaid.service.js +13 -0
  70. package/dist/collection/collection-manifest.json +1 -0
  71. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +20 -5
  72. package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +433 -0
  73. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +4 -51
  74. package/dist/collection/components/payment-transactions-list/payment-transactions-table.js +4 -0
  75. package/dist/collection/ui-components/custom-popper/custom-popper.js +52 -18
  76. package/dist/docs.json +145 -4
  77. package/dist/esm/{Business-CHJTjG_5.js → Business-GgW1g7FQ.js} +1 -0
  78. package/dist/esm/{GooglePay-5EiPffHy.js → Plaid-CBrksnBN.js} +52 -1
  79. package/dist/esm/{bank-account-document-form-inputs_8.entry.js → bank-account-document-form-inputs_9.entry.js} +329 -8
  80. package/dist/esm/{business-additional-questions-schema-DQb10ehS.js → business-additional-questions-schema-CQ8CuEfQ.js} +3 -3
  81. package/dist/esm/{business-form-options-Bm89rMmk.js → business-form-options-DamBLV7N.js} +1 -1
  82. package/dist/esm/{business-identity-schema-CaMnpPqx.js → business-identity-schema-BTyJz7M9.js} +2 -2
  83. package/dist/esm/{business.service-C7smiL6_.js → business.service-BWm7Kqs4.js} +2 -2
  84. package/dist/esm/{check-pkg-version-DIZ2yD72.js → check-pkg-version-BEQSf1m2.js} +11 -10
  85. package/dist/esm/{checkout.service-CYq6KXZv.js → checkout.service-D4Mljqjr.js} +2 -2
  86. package/dist/esm/checkouts-list-core.entry.js +2 -2
  87. package/dist/esm/{country-config-CQxaTFuP.js → country-config-D-9YmU94.js} +1 -1
  88. package/dist/esm/custom-popper_2.entry.js +48 -17
  89. package/dist/esm/{dispute.service-D7Dv8LTn.js → dispute.service-ZpqfPDC0.js} +2 -2
  90. package/dist/esm/form-alert_5.entry.js +3 -3
  91. package/dist/esm/form-control-number-masked_3.entry.js +2 -2
  92. package/dist/esm/form-control-number_3.entry.js +6 -6
  93. package/dist/esm/{get-business-BAmwId14.js → get-business-BMB2IxN_.js} +1 -1
  94. package/dist/esm/{get-payment-details-CPJZp31y.js → get-payment-details-B71Qi6mF.js} +2 -2
  95. package/dist/esm/{get-subaccounts-CqMFocN0.js → get-subaccounts-DXJdRbWg.js} +2 -2
  96. package/dist/esm/hidden-input_2.entry.js +1 -1
  97. package/dist/esm/{input-handlers-AgwQ-yKX.js → input-handlers-CzWCJ849.js} +1 -1
  98. package/dist/esm/internal-tokenize-payment-method_7.entry.js +4 -4
  99. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +25 -12
  100. package/dist/esm/justifi-apple-pay_8.entry.js +6 -76
  101. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +4 -4
  102. package/dist/esm/justifi-business-details.entry.js +6 -6
  103. package/dist/esm/justifi-business-form.entry.js +10 -10
  104. package/dist/esm/justifi-checkout.entry.js +4 -4
  105. package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -3
  106. package/dist/esm/justifi-checkouts-list.entry.js +6 -6
  107. package/dist/esm/justifi-dispute-management.entry.js +5 -5
  108. package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
  109. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  110. package/dist/esm/justifi-order-terminals.entry.js +7 -7
  111. package/dist/esm/justifi-payment-details.entry.js +6 -6
  112. package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
  113. package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
  114. package/dist/esm/justifi-payment-transactions-list.entry.js +9 -5
  115. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  116. package/dist/esm/justifi-payments-list.entry.js +5 -5
  117. package/dist/esm/justifi-payout-details.entry.js +5 -5
  118. package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
  119. package/dist/esm/justifi-payouts-list.entry.js +6 -6
  120. package/dist/esm/justifi-refund-payment.entry.js +6 -6
  121. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -4
  122. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
  123. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
  124. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
  125. package/dist/esm/justifi-terminals-list.entry.js +6 -6
  126. package/dist/esm/loader.js +1 -1
  127. package/dist/esm/{lodash-BqWxUrkh.js → lodash-CrGKVSPp.js} +43 -4
  128. package/dist/esm/{package-ZkBwsSuI.js → package-C6OQPUis.js} +1 -1
  129. package/dist/esm/payment-details-core.entry.js +2 -2
  130. package/dist/esm/{payment.service-BGf8F56_.js → payment.service-C2lFq1yV.js} +2 -2
  131. package/dist/esm/payments-list-core.entry.js +2 -2
  132. package/dist/esm/{payout.service-Co3xg-7j.js → payout.service-ChupMPKT.js} +2 -2
  133. package/dist/esm/payouts-list-core.entry.js +2 -2
  134. package/dist/esm/plaid-icon-wJLd-2NX.js +43 -0
  135. package/dist/esm/{schema-validations-jBrJ0mYI.js → schema-validations-CfHWzMvr.js} +3 -3
  136. package/dist/esm/terminal-orders-list-core.entry.js +3 -3
  137. package/dist/esm/{terminal-orders-table-uNYLd8i5.js → terminal-orders-table-B4_RAxxx.js} +2 -2
  138. package/dist/esm/{terminal.service-Cxs-IO0Z.js → terminal.service-DqibXFHt.js} +2 -2
  139. package/dist/esm/terminals-list-core.entry.js +2 -2
  140. package/dist/esm/webcomponents.js +1 -1
  141. package/dist/module/Analytics.js +9 -8
  142. package/dist/module/Business.js +1 -0
  143. package/dist/module/{Refund.js → Plaid.js} +51 -1
  144. package/dist/module/bank-account-document-inputs.js +1 -1
  145. package/dist/module/business-additional-questions-form-step.js +1 -1
  146. package/dist/module/business-bank-account-form-step.js +46 -25
  147. package/dist/module/business-core-info-form-step.js +1 -1
  148. package/dist/module/business-owners-form-step.js +1 -1
  149. package/dist/module/business-representative-form-step.js +1 -1
  150. package/dist/module/business-terms-conditions-form-step.js +1 -1
  151. package/dist/module/business.service.js +1 -1
  152. package/dist/module/checkout.service.js +1 -1
  153. package/dist/module/checkout.store.js +1 -1
  154. package/dist/module/checkouts-list-core2.js +1 -1
  155. package/dist/module/custom-popper2.js +50 -17
  156. package/dist/module/dispute-management-core.js +1 -1
  157. package/dist/module/dispute-response-actions.js +1 -1
  158. package/dist/module/dispute-response.js +1 -1
  159. package/dist/module/get-business.js +1 -1
  160. package/dist/module/get-payment-details.js +1 -1
  161. package/dist/module/get-payout-csv.js +1 -1
  162. package/dist/module/get-subaccounts.js +1 -1
  163. package/dist/module/google-pay.js +1 -1
  164. package/dist/module/internal-tokenize-payment-method2.js +1 -1
  165. package/dist/module/justifi-business-details.js +1 -1
  166. package/dist/module/justifi-business-form.js +1 -1
  167. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  168. package/dist/module/justifi-checkouts-list.js +1 -1
  169. package/dist/module/justifi-dispute-management.js +1 -1
  170. package/dist/module/justifi-gross-payment-chart.js +1 -1
  171. package/dist/module/justifi-order-terminals.js +1 -1
  172. package/dist/module/justifi-payment-details.js +1 -1
  173. package/dist/module/justifi-payment-provisioning.js +69 -63
  174. package/dist/module/justifi-payment-transactions-list.js +5 -1
  175. package/dist/module/justifi-payments-list.js +1 -1
  176. package/dist/module/justifi-payout-details.js +1 -1
  177. package/dist/module/justifi-payout-transactions-list.js +1 -1
  178. package/dist/module/justifi-payouts-list.js +1 -1
  179. package/dist/module/justifi-refund-payment.js +1 -1
  180. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  181. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  182. package/dist/module/justifi-terminal-orders-list.js +1 -1
  183. package/dist/module/justifi-terminals-list-filters.js +1 -1
  184. package/dist/module/justifi-terminals-list.js +1 -1
  185. package/dist/module/legal-address-form-step.js +1 -1
  186. package/dist/module/lodash.js +43 -4
  187. package/dist/module/modular-checkout.js +2 -2
  188. package/dist/module/package.js +1 -1
  189. package/dist/module/payment-details-core2.js +1 -1
  190. package/dist/module/payment-provisioning-actions.js +1 -1
  191. package/dist/module/payment-provisioning-core.js +67 -61
  192. package/dist/module/payment-provisioning-form-steps.js +62 -56
  193. package/dist/module/payment.service.js +1 -1
  194. package/dist/module/payments-list-core2.js +1 -1
  195. package/dist/module/payout.service.js +1 -1
  196. package/dist/module/payouts-list-core2.js +1 -1
  197. package/dist/module/plaid-icon.js +3 -0
  198. package/dist/module/plaid-payment-method.js +3 -53
  199. package/dist/module/plaid-verification.d.ts +11 -0
  200. package/dist/module/plaid-verification.js +6 -0
  201. package/dist/module/plaid-verification2.js +358 -0
  202. package/dist/module/plaid.service.js +14 -1
  203. package/dist/module/terminal-orders-list-core2.js +1 -1
  204. package/dist/module/terminal.service.js +1 -1
  205. package/dist/module/terminals-list-core2.js +1 -1
  206. package/dist/module/utils4.js +1 -1
  207. package/dist/types/api/Analytics.d.ts +1 -0
  208. package/dist/types/api/BankAccount.d.ts +1 -0
  209. package/dist/types/api/Business.d.ts +2 -0
  210. package/dist/types/api/Plaid.d.ts +54 -0
  211. package/dist/types/api/index.d.ts +1 -0
  212. package/dist/types/api/services/plaid.service.d.ts +8 -0
  213. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
  214. package/dist/types/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.d.ts +36 -0
  215. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +1 -25
  216. package/dist/types/components/payment-transactions-list/payment-transactions-table.d.ts +4 -0
  217. package/dist/types/components.d.ts +40 -1
  218. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +4 -0
  219. package/dist/webcomponents/{p-BXdZKjdB.js → p--cI8fPJx.js} +1 -1
  220. package/dist/webcomponents/{p-5af4bb01.entry.js → p-0867211b.entry.js} +1 -1
  221. package/dist/webcomponents/{p-e9daf75f.entry.js → p-0eb97b54.entry.js} +1 -1
  222. package/dist/webcomponents/{p-1eefdd41.entry.js → p-1407a8b0.entry.js} +1 -1
  223. package/dist/webcomponents/{p-931ea171.entry.js → p-1ec3d1e7.entry.js} +1 -1
  224. package/dist/webcomponents/{p-c11512e7.entry.js → p-20105c1d.entry.js} +1 -1
  225. package/dist/webcomponents/{p-4d7a2565.entry.js → p-25322799.entry.js} +1 -1
  226. package/dist/webcomponents/{p-f5f46f2d.entry.js → p-26430bfe.entry.js} +1 -1
  227. package/dist/webcomponents/p-33ab9174.entry.js +1 -0
  228. package/dist/webcomponents/p-47e3fed2.entry.js +1 -0
  229. package/dist/webcomponents/p-4a802f82.entry.js +1 -0
  230. package/dist/webcomponents/{p-7184c2f8.entry.js → p-5ae3401d.entry.js} +1 -1
  231. package/dist/webcomponents/{p-f13c4a88.entry.js → p-5ff13a4c.entry.js} +1 -1
  232. package/dist/webcomponents/{p-e926be0d.entry.js → p-601da5ba.entry.js} +1 -1
  233. package/dist/webcomponents/{p-ea0cd47d.entry.js → p-66c8104f.entry.js} +1 -1
  234. package/dist/webcomponents/p-7e64bf3d.entry.js +1 -0
  235. package/dist/webcomponents/{p-782ccafb.entry.js → p-800d6a1d.entry.js} +1 -1
  236. package/dist/webcomponents/{p-50f16cca.entry.js → p-81bbd944.entry.js} +1 -1
  237. package/dist/webcomponents/{p-53be30e9.entry.js → p-8ed4f485.entry.js} +1 -1
  238. package/dist/webcomponents/p-922ddfb4.entry.js +1 -0
  239. package/dist/webcomponents/{p-Ce785aMx.js → p-B1AMrMly.js} +1 -1
  240. package/dist/webcomponents/{p-DDjKoqh6.js → p-BRPbLfCN.js} +1 -1
  241. package/dist/webcomponents/{p-BAu40WfT.js → p-BZbvHgMz.js} +1 -1
  242. package/dist/webcomponents/{p-APob2Eta.js → p-Bj9n56jK.js} +1 -1
  243. package/dist/webcomponents/p-By-Mu1IX.js +1 -0
  244. package/dist/webcomponents/p-C0dMwnDO.js +1 -0
  245. package/dist/webcomponents/p-C6OQPUis.js +1 -0
  246. package/dist/webcomponents/{p-DBOsYeYk.js → p-CWyW004b.js} +1 -1
  247. package/dist/webcomponents/p-C_ifLmT1.js +9 -0
  248. package/dist/webcomponents/p-CkYB1zGe.js +1 -0
  249. package/dist/webcomponents/p-D-07jgNC.js +1 -0
  250. package/dist/webcomponents/{p-C-LV3hNf.js → p-DCwnBXF7.js} +1 -1
  251. package/dist/webcomponents/p-DKR9kDCI.js +1 -0
  252. package/dist/webcomponents/p-DKemQxaE.js +1 -0
  253. package/dist/webcomponents/{p-CHJTjG_5.js → p-GgW1g7FQ.js} +1 -1
  254. package/dist/webcomponents/{p-NO0z-S2W.js → p-MVBgKFOv.js} +1 -1
  255. package/dist/webcomponents/{p-mhEMV8M-.js → p-Y-EhaLdV.js} +1 -1
  256. package/dist/webcomponents/p-a48ebd78.entry.js +1 -0
  257. package/dist/webcomponents/{p-e5651bb1.entry.js → p-aa02e3d7.entry.js} +1 -1
  258. package/dist/webcomponents/{p-66e8b443.entry.js → p-aa0d7406.entry.js} +1 -1
  259. package/dist/webcomponents/{p-4165281d.entry.js → p-ae958833.entry.js} +1 -1
  260. package/dist/webcomponents/{p-86db9040.entry.js → p-af1c485f.entry.js} +1 -1
  261. package/dist/webcomponents/{p-001ce9f8.entry.js → p-b14a5f0e.entry.js} +1 -1
  262. package/dist/webcomponents/{p-73b9cc29.entry.js → p-bbffb17f.entry.js} +1 -1
  263. package/dist/webcomponents/p-bdb6c1b1.entry.js +1 -0
  264. package/dist/webcomponents/{p-d0d6d1cc.entry.js → p-ccc5149f.entry.js} +1 -1
  265. package/dist/webcomponents/{p-6ed0be7f.entry.js → p-cf0a87f8.entry.js} +1 -1
  266. package/dist/webcomponents/{p-e1a8785d.entry.js → p-d5827cb2.entry.js} +1 -1
  267. package/dist/webcomponents/{p-e11c7df0.entry.js → p-df178a7a.entry.js} +1 -1
  268. package/dist/webcomponents/{p-4786d1ea.entry.js → p-e7466503.entry.js} +1 -1
  269. package/dist/webcomponents/{p-3d2495df.entry.js → p-ec00a303.entry.js} +1 -1
  270. package/dist/webcomponents/{p-79d1d6b3.entry.js → p-edb3973c.entry.js} +1 -1
  271. package/dist/webcomponents/p-eec7be4a.entry.js +1 -0
  272. package/dist/webcomponents/{p-b2371f43.entry.js → p-f09a4d16.entry.js} +1 -1
  273. package/dist/webcomponents/{p-1dbf3473.entry.js → p-f1f0f100.entry.js} +1 -1
  274. package/dist/webcomponents/{p-7c4fa66f.entry.js → p-f5b7c322.entry.js} +1 -1
  275. package/dist/webcomponents/{p-bc56446a.entry.js → p-f9475bb0.entry.js} +1 -1
  276. package/dist/webcomponents/{p-a9b493c1.entry.js → p-f99d3a3e.entry.js} +1 -1
  277. package/dist/webcomponents/{p-D81X4BBI.js → p-g0kDRH6Z.js} +1 -1
  278. package/dist/webcomponents/{p-Bz97Ujvk.js → p-m_Ly-YPk.js} +1 -1
  279. package/dist/webcomponents/p-wSi5d4-j.js +1 -0
  280. package/dist/webcomponents/{p-BhvkOTYA.js → p-ygekUw3Q.js} +1 -1
  281. package/dist/webcomponents/webcomponents.esm.js +1 -1
  282. package/package.json +2 -1
  283. package/dist/webcomponents/p-0fb3fd77.entry.js +0 -1
  284. package/dist/webcomponents/p-198d2941.entry.js +0 -1
  285. package/dist/webcomponents/p-252bd81d.entry.js +0 -1
  286. package/dist/webcomponents/p-52203b01.entry.js +0 -1
  287. package/dist/webcomponents/p-639e5ce9.entry.js +0 -1
  288. package/dist/webcomponents/p-7ec771bc.entry.js +0 -1
  289. package/dist/webcomponents/p-Bde7dY9t.js +0 -9
  290. package/dist/webcomponents/p-D0PhRMmy.js +0 -1
  291. package/dist/webcomponents/p-DLLFAj4z.js +0 -1
  292. package/dist/webcomponents/p-DpkIbI5R.js +0 -1
  293. package/dist/webcomponents/p-MBH9QO2m.js +0 -1
  294. package/dist/webcomponents/p-ZkBwsSuI.js +0 -1
  295. package/dist/webcomponents/p-_LSWCi-4.js +0 -1
  296. package/dist/webcomponents/p-c5afb831.entry.js +0 -1
  297. package/dist/webcomponents/p-d55c348b.entry.js +0 -1
  298. package/dist/webcomponents/p-y-FoILTI.js +0 -1
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-CV0Pyo1O.js';
2
2
  import './config-state-kKn89dp1.js';
3
3
  import './dinero-HXpYMWUU.js';
4
- import './ComponentError-Cjcsf8ku.js';
5
- import { E as EntityDocumentType } from './GooglePay-5EiPffHy.js';
4
+ import { C as ComponentErrorSeverity } from './ComponentError-Cjcsf8ku.js';
5
+ import { E as EntityDocumentType, m as PLAID_ERROR_SEVERITY, n as PLAID_ERROR_MESSAGES, o as PlaidErrorCodes } from './Plaid-CBrksnBN.js';
6
6
  import './Pagination-CLHwhyvu.js';
7
- import './Business-CHJTjG_5.js';
7
+ import './Business-GgW1g7FQ.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
- import { a as bankAccountTypeOptions } from './business-form-options-Bm89rMmk.js';
9
+ import { a as bankAccountTypeOptions } from './business-form-options-DamBLV7N.js';
10
10
  import './event-types-XYgDHrVL.js';
11
11
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
12
12
  import { B as text, $ as card, D as heading2, ap as table, P as tableHeadCell, ay as tableCell, U as input, V as label, R as inputInvalid, S as inputDisabled, T as inputFocused, ag as buttonSecondary } from './parts-DrquDBSk.js';
@@ -14,11 +14,14 @@ import { s as snakeCaseToHumanReadable, e as formatDate, d as formatTime } from
14
14
  import { S as Skeleton } from './skeleton-D9UXuoik.js';
15
15
  import './event-types-CZfYo5-1.js';
16
16
  import { F as FormControlErrorText } from './form-control-error-text-CTQxgr7_.js';
17
- import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-AgwQ-yKX.js';
17
+ import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-CzWCJ849.js';
18
18
  import { P as PHONE_MASKS, I as IDENTITY_MASKS } from './form-input-masks-CVaOFfrI.js';
19
- import { c as countryLabels } from './country-config-CQxaTFuP.js';
19
+ import { c as countryLabels } from './country-config-D-9YmU94.js';
20
20
  import { c as makeGetIdentity, d as makePatchIdentity, e as makePostIdentity } from './payment-provisioning-actions-ONP8lDnV.js';
21
- import { I as IdentityService } from './business.service-C7smiL6_.js';
21
+ import { I as IdentityService } from './business.service-BWm7Kqs4.js';
22
+ import { B as Button } from './button-DMeChykB.js';
23
+ import { S as StyledHost } from './styled-host-D6byRazK.js';
24
+ import { P as PlaidService, p as plaidIconSvg } from './plaid-icon-wJLd-2NX.js';
22
25
  import './index-cDVGjRkU.js';
23
26
  import './index-DkoufM1t.js';
24
27
  import './utils-BeQLScSm.js';
@@ -198,4 +201,322 @@ const BusinessOwnerForm = class {
198
201
  }
199
202
  };
200
203
 
201
- export { BankAccountDocumentFormInputs as bank_account_document_form_inputs, BankAccountFormInputs as bank_account_form_inputs, BankAccountFormInputsCanada as bank_account_form_inputs_canada, BankAccountReadOnlyValue as bank_account_read_only_value, BusinessDocumentsOnFile as business_documents_on_file, FileInput as form_control_file, RepresentativeFormInputs as justifi_business_representative_form_inputs, BusinessOwnerForm as justifi_owner_form };
204
+ const PlaidVerification = class {
205
+ constructor(hostRef) {
206
+ registerInstance(this, hostRef);
207
+ this.plaidVerificationSuccess = createEvent(this, "plaidVerificationSuccess", 7);
208
+ this.plaidVerificationError = createEvent(this, "plaidVerificationError", 7);
209
+ this.linkToken = null;
210
+ this.linkTokenId = null;
211
+ this.plaidLink = null;
212
+ this.isAuthenticating = false;
213
+ this.isSuccess = false;
214
+ this.error = null;
215
+ this.isLoading = false;
216
+ this.plaidService = new PlaidService();
217
+ this.abortController = null;
218
+ this.timeoutId = null;
219
+ this.initializePlaidLink = async () => {
220
+ try {
221
+ // Check if Plaid is available globally
222
+ if (typeof window.Plaid === 'undefined') {
223
+ this.handleError({
224
+ code: PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
225
+ message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
226
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
227
+ retryable: true,
228
+ userAction: 'Refresh the page and try again',
229
+ });
230
+ return;
231
+ }
232
+ // Get link token from backend
233
+ await this.getLinkToken();
234
+ if (!this.linkToken) {
235
+ this.handleError({
236
+ code: PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
237
+ message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
238
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED],
239
+ retryable: true,
240
+ userAction: 'Click to try again',
241
+ });
242
+ return;
243
+ }
244
+ // Initialize Plaid Link
245
+ const Plaid = window.Plaid;
246
+ this.plaidLink = Plaid.create({
247
+ token: this.linkToken,
248
+ onSuccess: this.handlePlaidSuccess,
249
+ onExit: this.handlePlaidExit,
250
+ onEvent: this.handlePlaidEvent,
251
+ onLoad: this.handlePlaidLoad,
252
+ });
253
+ }
254
+ catch (error) {
255
+ this.handleError({
256
+ code: PlaidErrorCodes.PLAID_LINK_INIT_FAILED,
257
+ message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
258
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_LINK_INIT_FAILED],
259
+ originalError: error,
260
+ retryable: true,
261
+ userAction: 'Click to try again',
262
+ });
263
+ }
264
+ };
265
+ this.getLinkToken = async () => {
266
+ var _a, _b, _c, _d;
267
+ try {
268
+ if (!this.authToken || !this.accountId) {
269
+ this.handleError({
270
+ code: PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED,
271
+ message: 'Missing authentication. Please provide authToken and accountId.',
272
+ severity: ComponentErrorSeverity.ERROR,
273
+ retryable: false,
274
+ userAction: 'Provide required props',
275
+ });
276
+ return;
277
+ }
278
+ // Create abort controller for timeout handling
279
+ this.abortController = new AbortController();
280
+ // Set timeout for the request
281
+ this.timeoutId = setTimeout(() => {
282
+ var _a;
283
+ (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
284
+ }, 30000); // 30 second timeout
285
+ const response = await this.plaidService.getLinkTokenForVerification(this.authToken, this.businessId, this.abortController.signal);
286
+ // Clear timeout
287
+ if (this.timeoutId) {
288
+ clearTimeout(this.timeoutId);
289
+ this.timeoutId = null;
290
+ }
291
+ if (response.error) {
292
+ const errorMessage = typeof response.error === 'string'
293
+ ? response.error
294
+ : response.error.message || 'Failed to get link token';
295
+ throw new Error(errorMessage);
296
+ }
297
+ this.linkToken = response.data.link_token;
298
+ this.linkTokenId = response.data.id;
299
+ }
300
+ catch (error) {
301
+ // Clear timeout
302
+ if (this.timeoutId) {
303
+ clearTimeout(this.timeoutId);
304
+ this.timeoutId = null;
305
+ }
306
+ let errorCode = PlaidErrorCodes.PLAID_LINK_TOKEN_FAILED;
307
+ let message = PLAID_ERROR_MESSAGES[errorCode];
308
+ let retryable = true;
309
+ // Handle specific error types
310
+ if (error.name === 'AbortError') {
311
+ errorCode = PlaidErrorCodes.PLAID_TIMEOUT;
312
+ message = PLAID_ERROR_MESSAGES[errorCode];
313
+ retryable = true;
314
+ }
315
+ else if (((_a = error.message) === null || _a === void 0 ? void 0 : _a.includes('network')) || ((_b = error.message) === null || _b === void 0 ? void 0 : _b.includes('fetch'))) {
316
+ errorCode = PlaidErrorCodes.PLAID_NETWORK_ERROR;
317
+ message = PLAID_ERROR_MESSAGES[errorCode];
318
+ retryable = true;
319
+ }
320
+ else if (((_c = error.message) === null || _c === void 0 ? void 0 : _c.includes('401')) || ((_d = error.message) === null || _d === void 0 ? void 0 : _d.includes('unauthorized'))) {
321
+ errorCode = PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
322
+ message = 'Authentication failed. Please check your credentials.';
323
+ retryable = false;
324
+ }
325
+ this.handleError({
326
+ code: errorCode,
327
+ message: message,
328
+ severity: PLAID_ERROR_SEVERITY[errorCode],
329
+ originalError: error,
330
+ retryable,
331
+ userAction: retryable ? 'Click to try again' : 'Check your credentials',
332
+ });
333
+ }
334
+ };
335
+ this.openPlaidLink = () => {
336
+ if (this.plaidLink && this.linkToken) {
337
+ this.isAuthenticating = true;
338
+ this.clearError();
339
+ this.plaidLink.open();
340
+ }
341
+ };
342
+ this.handlePlaidSuccess = async (publicToken, _metadata) => {
343
+ var _a;
344
+ this.isAuthenticating = false;
345
+ this.isLoading = true;
346
+ this.clearError();
347
+ try {
348
+ // Send publicToken to backend
349
+ const response = await this.plaidService.postPlaidVerifiedBankAccountData(this.authToken, this.businessId, { public_token: publicToken, link_token_id: this.linkTokenId }, (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.signal);
350
+ if (response.error) {
351
+ const errorMessage = typeof response.error === 'string'
352
+ ? response.error
353
+ : response.error.message || 'Failed to verify bank account';
354
+ throw new Error(errorMessage);
355
+ }
356
+ // Success - display success message
357
+ this.isSuccess = true;
358
+ this.isLoading = false;
359
+ // Emit success event
360
+ this.plaidVerificationSuccess.emit({ publicToken, bankAccount: response.data });
361
+ }
362
+ catch (error) {
363
+ this.isLoading = false;
364
+ this.handleError({
365
+ code: PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED,
366
+ message: (error === null || error === void 0 ? void 0 : error.message) || 'Failed to verify bank account',
367
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED],
368
+ originalError: error,
369
+ retryable: true,
370
+ userAction: 'Click to try again',
371
+ });
372
+ }
373
+ };
374
+ this.handlePlaidExit = (err, _metadata) => {
375
+ this.isAuthenticating = false;
376
+ if (err) {
377
+ this.handlePlaidError(err);
378
+ }
379
+ };
380
+ this.handlePlaidEvent = (eventName, metadata) => {
381
+ // Handle specific events if needed
382
+ switch (eventName) {
383
+ case 'OPEN':
384
+ this.isAuthenticating = true;
385
+ break;
386
+ case 'CLOSE':
387
+ this.isAuthenticating = false;
388
+ break;
389
+ case 'ERROR':
390
+ this.handlePlaidError(metadata);
391
+ break;
392
+ }
393
+ };
394
+ this.handlePlaidLoad = () => {
395
+ // Plaid Link loaded successfully
396
+ };
397
+ this.handlePlaidError = (error) => {
398
+ let errorCode = PlaidErrorCodes.PLAID_AUTHENTICATION_FAILED;
399
+ let message = PLAID_ERROR_MESSAGES[errorCode];
400
+ let retryable = true;
401
+ let userAction = 'Click to try again';
402
+ // Map Plaid error codes to our error codes
403
+ if (error.error_code) {
404
+ switch (error.error_code) {
405
+ case 'INVALID_CREDENTIALS':
406
+ errorCode = PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
407
+ message = PLAID_ERROR_MESSAGES[errorCode];
408
+ retryable = true;
409
+ break;
410
+ case 'ITEM_LOGIN_REQUIRED':
411
+ errorCode = PlaidErrorCodes.PLAID_INVALID_CREDENTIALS;
412
+ message = 'Your bank requires re-authentication. Please try again.';
413
+ retryable = true;
414
+ break;
415
+ case 'ITEM_LOCKED':
416
+ errorCode = PlaidErrorCodes.PLAID_ACCOUNT_LOCKED;
417
+ message = PLAID_ERROR_MESSAGES[errorCode];
418
+ retryable = false;
419
+ userAction = 'Contact your bank';
420
+ break;
421
+ case 'INSTITUTION_NOT_RESPONDING':
422
+ errorCode = PlaidErrorCodes.PLAID_MAINTENANCE;
423
+ message = PLAID_ERROR_MESSAGES[errorCode];
424
+ retryable = true;
425
+ break;
426
+ case 'RATE_LIMIT_EXCEEDED':
427
+ errorCode = PlaidErrorCodes.PLAID_RATE_LIMITED;
428
+ message = PLAID_ERROR_MESSAGES[errorCode];
429
+ retryable = true;
430
+ break;
431
+ default:
432
+ if (error.error_message) {
433
+ message = error.error_message;
434
+ }
435
+ break;
436
+ }
437
+ }
438
+ this.handleError({
439
+ code: errorCode,
440
+ message,
441
+ severity: PLAID_ERROR_SEVERITY[errorCode],
442
+ originalError: error,
443
+ retryable,
444
+ userAction,
445
+ });
446
+ this.isAuthenticating = false;
447
+ };
448
+ this.handleError = (plaidError) => {
449
+ this.error = plaidError;
450
+ this.isLoading = false;
451
+ // Emit error event for parent components
452
+ this.plaidVerificationError.emit(plaidError);
453
+ console.error('Plaid verification error:', plaidError);
454
+ };
455
+ this.clearError = () => {
456
+ if (this.error) {
457
+ this.error = null;
458
+ }
459
+ };
460
+ }
461
+ componentDidRender() {
462
+ if (!this.scriptRef)
463
+ return;
464
+ this.scriptRef.onload = () => {
465
+ this.initializePlaidLink();
466
+ };
467
+ this.scriptRef.onerror = () => {
468
+ this.handleError({
469
+ code: PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
470
+ message: PLAID_ERROR_MESSAGES[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
471
+ severity: PLAID_ERROR_SEVERITY[PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
472
+ retryable: true,
473
+ userAction: 'Refresh the page and try again',
474
+ });
475
+ };
476
+ }
477
+ disconnectedCallback() {
478
+ // Clean up timeouts and abort controllers
479
+ if (this.timeoutId) {
480
+ clearTimeout(this.timeoutId);
481
+ }
482
+ if (this.abortController) {
483
+ this.abortController.abort();
484
+ }
485
+ }
486
+ render() {
487
+ const renderErrorState = () => {
488
+ if (!this.error)
489
+ return null;
490
+ const errorClass = this.error.severity === ComponentErrorSeverity.ERROR
491
+ ? 'text-danger'
492
+ : this.error.severity === ComponentErrorSeverity.WARNING
493
+ ? 'text-warning'
494
+ : 'text-info';
495
+ return (h("div", { class: `${errorClass} mt-2` }, h("small", null, this.error.message), h("br", null), this.error.userAction && (h("small", { class: "text-muted" }, this.error.userAction))));
496
+ };
497
+ const renderStatusState = () => {
498
+ if (this.error)
499
+ return null;
500
+ if (this.isLoading) {
501
+ return (h("div", { class: "text-info mt-2" }, h("small", null, "Verifying bank account...")));
502
+ }
503
+ if (this.isSuccess) {
504
+ return (h("div", { class: "text-success mt-2" }, h("small", null, "\u2713 Bank account verified successfully")));
505
+ }
506
+ if (this.isAuthenticating) {
507
+ return (h("div", { class: "text-info mt-2" }, h("small", null, "Connecting to your bank...")));
508
+ }
509
+ return null;
510
+ };
511
+ const plaidLogo = (h("img", { class: "plaid-logo-img", src: plaidIconSvg, alt: "Plaid", title: "Plaid", style: {
512
+ display: 'inline',
513
+ width: '20px',
514
+ height: '20px',
515
+ marginLeft: '5px',
516
+ marginTop: '-2px',
517
+ } }));
518
+ return (h(StyledHost, null, h("script", { src: "https://cdn.plaid.com/link/v2/stable/link-initialize.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", { class: "mb-3" }, h(Button, { variant: "secondary", type: "button", onClick: (event) => { event.preventDefault(); this.openPlaidLink(); }, disabled: this.isLoading, part: buttonSecondary }, "Link Bank Account with ", plaidLogo)), renderErrorState(), renderStatusState())));
519
+ }
520
+ };
521
+
522
+ export { BankAccountDocumentFormInputs as bank_account_document_form_inputs, BankAccountFormInputs as bank_account_form_inputs, BankAccountFormInputsCanada as bank_account_form_inputs_canada, BankAccountReadOnlyValue as bank_account_read_only_value, BusinessDocumentsOnFile as business_documents_on_file, FileInput as form_control_file, RepresentativeFormInputs as justifi_business_representative_form_inputs, BusinessOwnerForm as justifi_owner_form, PlaidVerification as plaid_verification };
@@ -1,7 +1,7 @@
1
1
  import { c as create$3, a as create$6 } from './index.esm-IWS0494Y.js';
2
- import { m as makeTaxIdValidation, d as dateOfIncorporationValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, t as taxIdValidation, o as otherPaymentDetailsValidation, f as whenServiceReceivedValidation, r as revenueValidation, g as paymentVolumeValidation } from './schema-validations-jBrJ0mYI.js';
3
- import { C as CountryCode } from './Business-CHJTjG_5.js';
4
- import { c as countryLabels } from './country-config-CQxaTFuP.js';
2
+ import { m as makeTaxIdValidation, d as dateOfIncorporationValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, t as taxIdValidation, o as otherPaymentDetailsValidation, f as whenServiceReceivedValidation, r as revenueValidation, g as paymentVolumeValidation } from './schema-validations-CfHWzMvr.js';
3
+ import { C as CountryCode } from './Business-GgW1g7FQ.js';
4
+ import { c as countryLabels } from './country-config-D-9YmU94.js';
5
5
 
6
6
  // Base schema (no country-specific rules for classification/tax id)
7
7
  const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
@@ -1,4 +1,4 @@
1
- import { a as BusinessClassification } from './Business-CHJTjG_5.js';
1
+ import { a as BusinessClassification } from './Business-GgW1g7FQ.js';
2
2
 
3
3
  const businessClassificationOptions = [
4
4
  {
@@ -1,6 +1,6 @@
1
1
  import { c as create$3, a as create$6 } from './index.esm-IWS0494Y.js';
2
- import { h as cityValidation, l as lineTwoValidation, j as lineOneValidation, k as makePostalValidation, n as ownershipPercentageValidation, s as ssnValidation, q as dobValidation, p as phoneValidation, e as emailValidation, u as identityTitleValidation, v as identityNameValidation, x as makeIdentityNumberValidation } from './schema-validations-jBrJ0mYI.js';
3
- import { C as CountryCode } from './Business-CHJTjG_5.js';
2
+ import { h as cityValidation, l as lineTwoValidation, j as lineOneValidation, k as makePostalValidation, n as ownershipPercentageValidation, s as ssnValidation, q as dobValidation, p as phoneValidation, e as emailValidation, u as identityTitleValidation, v as identityNameValidation, x as makeIdentityNumberValidation } from './schema-validations-CfHWzMvr.js';
3
+ import { C as CountryCode } from './Business-GgW1g7FQ.js';
4
4
 
5
5
  // Internal USA schemas
6
6
  const schemaUSA$1 = () => create$3({
@@ -1,8 +1,8 @@
1
1
  import { A as Api } from './Api-ohkSjyhl.js';
2
2
  import './ComponentError-Cjcsf8ku.js';
3
- import './GooglePay-5EiPffHy.js';
3
+ import './Plaid-CBrksnBN.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Business-CHJTjG_5.js';
5
+ import './Business-GgW1g7FQ.js';
6
6
  import './Dispute-BH0Xfn-F.js';
7
7
 
8
8
  const api = Api();
@@ -1,9 +1,9 @@
1
- import { p as packageJson } from './package-ZkBwsSuI.js';
1
+ import { p as packageJson } from './package-C6OQPUis.js';
2
2
  import { A as Api } from './Api-ohkSjyhl.js';
3
3
  import './ComponentError-Cjcsf8ku.js';
4
- import './GooglePay-5EiPffHy.js';
4
+ import './Plaid-CBrksnBN.js';
5
5
  import './Pagination-CLHwhyvu.js';
6
- import './Business-CHJTjG_5.js';
6
+ import './Business-GgW1g7FQ.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
8
 
9
9
  const api = Api();
@@ -22,6 +22,7 @@ class AnalyticsService {
22
22
  */
23
23
  class JustifiAnalytics {
24
24
  constructor(component) {
25
+ this.eventListeners = new Map();
25
26
  this.handleCustomEvent = async (data) => {
26
27
  // Track the event
27
28
  await this.service.record(data);
@@ -61,10 +62,12 @@ class JustifiAnalytics {
61
62
  this.eventEmitters.forEach((eventName) => {
62
63
  // if this.componentInstance.addEventListener is a function add the event listener
63
64
  if (typeof this.componentInstance.addEventListener === 'function') {
64
- this.componentInstance.addEventListener(eventName, (event) => this.handleCustomEvent({
65
+ const boundHandler = (event) => this.handleCustomEvent({
65
66
  event_type: eventName,
66
67
  data: Object.assign(Object.assign({}, this.basicData), { error: event.detail }),
67
- }));
68
+ });
69
+ this.eventListeners.set(eventName, boundHandler);
70
+ this.componentInstance.addEventListener(eventName, boundHandler);
68
71
  }
69
72
  });
70
73
  }
@@ -79,12 +82,10 @@ class JustifiAnalytics {
79
82
  }
80
83
  cleanup() {
81
84
  // Remove event listeners
82
- if (!this.eventEmitters) {
83
- return;
84
- }
85
- this.eventEmitters.forEach((event) => {
86
- this.componentInstance.removeEventListener(event, this.handleCustomEvent);
85
+ this.eventListeners.forEach((handler, eventName) => {
86
+ this.componentInstance.removeEventListener(eventName, handler);
87
87
  });
88
+ this.eventListeners.clear();
88
89
  }
89
90
  }
90
91
 
@@ -1,8 +1,8 @@
1
1
  import { A as Api } from './Api-ohkSjyhl.js';
2
2
  import './ComponentError-Cjcsf8ku.js';
3
- import './GooglePay-5EiPffHy.js';
3
+ import './Plaid-CBrksnBN.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Business-CHJTjG_5.js';
5
+ import './Business-GgW1g7FQ.js';
6
6
  import './Dispute-BH0Xfn-F.js';
7
7
 
8
8
  const api = Api();
@@ -2,9 +2,9 @@ import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js'
2
2
  import './config-state-kKn89dp1.js';
3
3
  import './dinero-HXpYMWUU.js';
4
4
  import './ComponentError-Cjcsf8ku.js';
5
- import './GooglePay-5EiPffHy.js';
5
+ import './Plaid-CBrksnBN.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
- import './Business-CHJTjG_5.js';
7
+ import './Business-GgW1g7FQ.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
  import { T as Table, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell, l as TableWrapper } from './table-BbMG2jg9.js';
10
10
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
@@ -1,4 +1,4 @@
1
- import { S as StateOptions } from './Business-CHJTjG_5.js';
1
+ import { S as StateOptions } from './Business-GgW1g7FQ.js';
2
2
 
3
3
  const ProvinceOptions = [
4
4
  {
@@ -1798,38 +1798,66 @@ const CustomPopper = class {
1798
1798
  this.placement = 'bottom';
1799
1799
  this.offset = [0, 10];
1800
1800
  this.strategy = 'absolute';
1801
- this.trigger = 'click'; // 'click', 'hover', 'focus'
1801
+ this.trigger = 'click';
1802
1802
  this.isOpen = false;
1803
+ this.initialized = false;
1804
+ this.boundHandlers = {
1805
+ show: null,
1806
+ hide: null,
1807
+ handleClick: null,
1808
+ };
1809
+ }
1810
+ onAnchorRefChange(newValue) {
1811
+ if (newValue && this.popperContentRef && !this.initialized) {
1812
+ this.initPopper();
1813
+ }
1803
1814
  }
1804
1815
  componentDidLoad() {
1816
+ if (this.anchorRef && this.popperContentRef) {
1817
+ this.initPopper();
1818
+ }
1819
+ }
1820
+ initPopper() {
1821
+ if (this.initialized)
1822
+ return;
1823
+ this.initialized = true;
1824
+ // Store bound references
1825
+ this.boundHandlers.show = this.show.bind(this);
1826
+ this.boundHandlers.hide = this.hide.bind(this);
1827
+ this.boundHandlers.handleClick = this.handleClick.bind(this);
1805
1828
  this.popperInstance = createPopper(this.anchorRef, this.popperContentRef, this.popperOptions);
1806
1829
  if (this.trigger === 'click') {
1807
- window.addEventListener('click', this.handleClick.bind(this));
1830
+ window.addEventListener('click', this.boundHandlers.handleClick);
1808
1831
  }
1809
1832
  else if (this.trigger === 'hover') {
1810
- this.anchorRef.addEventListener('mouseenter', this.show.bind(this));
1811
- this.anchorRef.addEventListener('mouseleave', this.hide.bind(this));
1812
- this.popperContentRef.addEventListener('mouseenter', this.show.bind(this));
1813
- this.popperContentRef.addEventListener('mouseleave', this.hide.bind(this));
1833
+ this.anchorRef.addEventListener('mouseenter', this.boundHandlers.show);
1834
+ this.anchorRef.addEventListener('mouseleave', this.boundHandlers.hide);
1835
+ this.popperContentRef.addEventListener('mouseenter', this.boundHandlers.show);
1836
+ this.popperContentRef.addEventListener('mouseleave', this.boundHandlers.hide);
1814
1837
  }
1815
1838
  else if (this.trigger === 'focus') {
1816
- this.anchorRef.addEventListener('focus', this.show.bind(this));
1817
- this.anchorRef.addEventListener('blur', this.hide.bind(this));
1839
+ this.anchorRef.addEventListener('focus', this.boundHandlers.show);
1840
+ this.anchorRef.addEventListener('blur', this.boundHandlers.hide);
1818
1841
  }
1819
1842
  }
1820
1843
  disconnectedCallback() {
1844
+ var _a, _b, _c, _d, _e, _f, _g;
1845
+ if (!this.initialized)
1846
+ return;
1847
+ // Clean up popper instance
1848
+ (_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
1821
1849
  if (this.trigger === 'click') {
1822
- window.removeEventListener('click', this.handleClick.bind(this));
1850
+ window.removeEventListener('click', this.boundHandlers.handleClick);
1823
1851
  }
1824
1852
  else if (this.trigger === 'hover') {
1825
- this.anchorRef.removeEventListener('mouseenter', this.show.bind(this));
1826
- this.anchorRef.removeEventListener('mouseleave', this.hide.bind(this));
1827
- this.popperContentRef.removeEventListener('mouseenter', this.show.bind(this));
1828
- this.popperContentRef.removeEventListener('mouseleave', this.hide.bind(this));
1853
+ (_b = this.anchorRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseenter', this.boundHandlers.show);
1854
+ (_c = this.anchorRef) === null || _c === void 0 ? void 0 : _c.removeEventListener('mouseleave', this.boundHandlers.hide);
1855
+ (_d = this.popperContentRef) === null || _d === void 0 ? void 0 : _d.removeEventListener('mouseenter', this.boundHandlers.show);
1856
+ (_e = this.popperContentRef) === null || _e === void 0 ? void 0 : _e.removeEventListener('mouseleave', this.boundHandlers.hide);
1829
1857
  }
1830
1858
  else if (this.trigger === 'focus') {
1831
- this.anchorRef.removeEventListener('focus', this.show.bind(this));
1832
- this.anchorRef.removeEventListener('blur', this.hide.bind(this));
1859
+ (_f = this.anchorRef) === null || _f === void 0 ? void 0 : _f.removeEventListener('focus', this.boundHandlers.show);
1860
+ (_g = this.anchorRef) === null || _g === void 0 ? void 0 : _g.removeEventListener('blur', this.boundHandlers.hide);
1833
1861
  }
1834
1862
  }
1835
1863
  handleClick(event) {
@@ -1873,7 +1901,7 @@ const CustomPopper = class {
1873
1901
  this.hideEvent.emit();
1874
1902
  }
1875
1903
  render() {
1876
- return (h("div", { key: 'd9ed696150f2def459af17d43a2a06e0fb24b2d1' }, h("style", { key: 'eb3f2a09ace3aa7d0d6225947a0d511cf73b107b' }, `
1904
+ return (h("div", { key: '2d57f47cc668826c2a72d70d3a0404837398a646' }, h("style", { key: '6d02bdb47dd36a529d2e8ae3f2b4adad6c8cdf88' }, `
1877
1905
  .popper-content {
1878
1906
  display: none;
1879
1907
  }
@@ -1881,8 +1909,11 @@ const CustomPopper = class {
1881
1909
  display: block;
1882
1910
  z-index: 1030;
1883
1911
  }
1884
- `), h("div", { key: '3221d4cc026a4b9ef06aaaa38a5ad4bc5f190f81', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '6481dcba1041571349cb8c91c350c497453fe054' }))));
1912
+ `), h("div", { key: 'fdcb769c70b92532427e09fdaa5bbdffc59c8ac3', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '1cdd517d323181dee0f2a345406d07432889ee21' }))));
1885
1913
  }
1914
+ static get watchers() { return {
1915
+ "anchorRef": ["onAnchorRefChange"]
1916
+ }; }
1886
1917
  };
1887
1918
 
1888
1919
  const TooltipComponent = class {
@@ -1,8 +1,8 @@
1
1
  import { A as Api } from './Api-ohkSjyhl.js';
2
2
  import './ComponentError-Cjcsf8ku.js';
3
- import './GooglePay-5EiPffHy.js';
3
+ import './Plaid-CBrksnBN.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Business-CHJTjG_5.js';
5
+ import './Business-GgW1g7FQ.js';
6
6
  import './Dispute-BH0Xfn-F.js';
7
7
 
8
8
  const api = Api();
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-CV0Pyo1O.js';
2
2
  import { az as alertDanger, D as heading2, V as label, S as inputDisabled, ag as buttonSecondary } from './parts-DrquDBSk.js';
3
- import { b as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, c as businessClassificationOptions } from './business-form-options-Bm89rMmk.js';
3
+ import { b as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, c as businessClassificationOptions } from './business-form-options-DamBLV7N.js';
4
4
  import { C as CURRENCY_MASK, I as IDENTITY_MASKS, P as PHONE_MASKS } from './form-input-masks-CVaOFfrI.js';
5
- import { e as CoreBusinessInfo, d as deconstructDate } from './Business-CHJTjG_5.js';
6
- import { c as countryLabels } from './country-config-CQxaTFuP.js';
5
+ import { e as CoreBusinessInfo, d as deconstructDate } from './Business-GgW1g7FQ.js';
6
+ import { c as countryLabels } from './country-config-D-9YmU94.js';
7
7
 
8
8
  const FormAlert = class {
9
9
  constructor(hostRef) {
@@ -3,9 +3,9 @@ import { I as IMask } from './index-Ce_F4E0f.js';
3
3
  import { R as inputInvalid, S as inputDisabled, T as inputFocused, U as input, V as label } from './parts-DrquDBSk.js';
4
4
  import { F as FormControlErrorText } from './form-control-error-text-CTQxgr7_.js';
5
5
  import './event-types-CZfYo5-1.js';
6
- import { C as CountryCode } from './Business-CHJTjG_5.js';
6
+ import { C as CountryCode } from './Business-GgW1g7FQ.js';
7
7
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
8
- import { b as countryOptions, c as countryLabels } from './country-config-CQxaTFuP.js';
8
+ import { b as countryOptions, c as countryLabels } from './country-config-D-9YmU94.js';
9
9
 
10
10
  const NumberInputMasked = class {
11
11
  constructor(hostRef) {