@justifi/webcomponents 6.10.2 → 6.10.4

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 (335) hide show
  1. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  2. package/dist/cjs/{badge-Cl6qJPK_.js → badge-Bd6H9TX2.js} +1 -1
  3. package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +7 -13
  4. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  5. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  6. package/dist/cjs/button-DAbSQPoU.js +43 -0
  7. package/dist/cjs/card-form.cjs.entry.js +2 -2
  8. package/dist/cjs/{check-pkg-version-axrC8Ato.js → check-pkg-version-Mv0ez8Cf.js} +1 -1
  9. package/dist/cjs/checkouts-list-core.cjs.entry.js +5 -5
  10. package/dist/cjs/{checkouts-table-CXgizBib.js → checkouts-table-KuNixae0.js} +2 -2
  11. package/dist/cjs/custom-popper_2.cjs.entry.js +1 -1
  12. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  13. package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
  14. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  15. package/dist/cjs/{form-control-error-text-6-HeM6bw.js → form-control-error-text-C4Wqr79O.js} +1 -1
  16. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
  17. package/dist/cjs/{form-control-help-text-D0LaZkGk.js → form-control-help-text-Bo9d_mCH.js} +1 -1
  18. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  19. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  20. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-number_3.cjs.entry.js +4 -4
  22. package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
  23. package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
  24. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  25. package/dist/cjs/{header-1-BOijdmPN.js → header-1-DR-eAlp1.js} +1 -1
  26. package/dist/cjs/{header-3-FeTJjrR1.js → header-3-kgnQtxEu.js} +1 -1
  27. package/dist/cjs/hidden-input_2.cjs.entry.js +3 -3
  28. package/dist/cjs/{insurance-state-DIV_moDI.js → insurance-state-CRhLwPxQ.js} +1 -1
  29. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +5 -5
  30. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +73 -65
  31. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
  32. package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +26 -19
  33. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +2 -2
  34. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
  35. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  36. package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
  37. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +5 -5
  39. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  40. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  41. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +5 -5
  42. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  43. package/dist/cjs/justifi-order-terminals.cjs.entry.js +4 -4
  44. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
  45. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  46. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  47. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -5
  48. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  49. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
  50. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
  51. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -5
  52. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -6
  54. package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -5
  55. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  56. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
  57. package/dist/cjs/justifi-skeleton.cjs.entry.js +2 -2
  58. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
  59. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -5
  60. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  61. package/dist/cjs/justifi-terminals-list.cjs.entry.js +5 -5
  62. package/dist/cjs/loader.cjs.js +1 -1
  63. package/dist/cjs/{package-CAxc3X25.js → package-OpgJzVo3.js} +1 -1
  64. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  65. package/dist/cjs/{parts-C0AyF3nd.js → parts-WjOn_TIy.js} +16 -0
  66. package/dist/cjs/payment-details-core.cjs.entry.js +5 -5
  67. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  68. package/dist/cjs/{payment-provisioning-loading-CbcFPETB.js → payment-provisioning-loading-BHAFHTuI.js} +1 -1
  69. package/dist/cjs/payments-list-core.cjs.entry.js +6 -6
  70. package/dist/cjs/{payments-status-EZ95BQex.js → payments-status-BngaUiWA.js} +1 -1
  71. package/dist/cjs/{payments-table-D5Hw3JDe.js → payments-table-DFOF8yrM.js} +2 -2
  72. package/dist/cjs/payout-details-core.cjs.entry.js +9 -9
  73. package/dist/cjs/payouts-list-core.cjs.entry.js +6 -6
  74. package/dist/cjs/{payouts-status-D1IbE3-c.js → payouts-status-CP5T9uAc.js} +1 -1
  75. package/dist/cjs/{payouts-table-DmVthJLU.js → payouts-table-CHNRLZ3K.js} +2 -2
  76. package/dist/cjs/plaid.service-DvbLnuph.js +43 -0
  77. package/dist/cjs/{skeleton-C9Aio7v_.js → skeleton-BfN_sjaY.js} +1 -1
  78. package/dist/cjs/{spinner-oLSXKwxU.js → spinner-51BOfCoS.js} +1 -1
  79. package/dist/cjs/{table-CEW0_wq-.js → table-CimkSek7.js} +2 -2
  80. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  81. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
  82. package/dist/cjs/{terminal-orders-table-DPHz95-0.js → terminal-orders-table-DDLvv83x.js} +2 -2
  83. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  84. package/dist/cjs/terminals-list-core.cjs.entry.js +5 -5
  85. package/dist/cjs/{terminals-table-C6rm50Mk.js → terminals-table-BU73whCF.js} +2 -2
  86. package/dist/cjs/{utils-Vwo0VR7n.js → utils-CowQ4GdN.js} +1 -1
  87. package/dist/cjs/webcomponents.cjs.js +1 -1
  88. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +71 -64
  89. package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +1 -8
  90. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +14 -9
  91. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  92. package/dist/collection/styles/parts.js +7 -0
  93. package/dist/collection/ui-components/button.js +27 -3
  94. package/dist/docs.json +14 -14
  95. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  96. package/dist/esm/{badge-AZ7Z3PKH.js → badge-BfWXAKIJ.js} +1 -1
  97. package/dist/esm/bank-account-document-form-inputs_9.entry.js +6 -12
  98. package/dist/esm/bank-account-form.entry.js +2 -2
  99. package/dist/esm/business-details-core.entry.js +3 -3
  100. package/dist/esm/button-DoF-zpiW.js +41 -0
  101. package/dist/esm/card-form.entry.js +2 -2
  102. package/dist/esm/{check-pkg-version-BVLXSZXz.js → check-pkg-version-QOngucT4.js} +1 -1
  103. package/dist/esm/checkouts-list-core.entry.js +5 -5
  104. package/dist/esm/{checkouts-table-C5aYyqpX.js → checkouts-table-XjFiAWCw.js} +2 -2
  105. package/dist/esm/custom-popper_2.entry.js +1 -1
  106. package/dist/esm/form-alert_5.entry.js +1 -1
  107. package/dist/esm/form-control-checkbox.entry.js +3 -3
  108. package/dist/esm/form-control-date.entry.js +2 -2
  109. package/dist/esm/{form-control-error-text-xEskXF-M.js → form-control-error-text-D5B0Wy4Q.js} +1 -1
  110. package/dist/esm/form-control-file-v2_2.entry.js +2 -2
  111. package/dist/esm/{form-control-help-text-Dgnv4IId.js → form-control-help-text-XuRclELV.js} +1 -1
  112. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  113. package/dist/esm/form-control-monetary.entry.js +3 -3
  114. package/dist/esm/form-control-number-masked_3.entry.js +2 -2
  115. package/dist/esm/form-control-number_3.entry.js +4 -4
  116. package/dist/esm/form-control-radio.entry.js +1 -1
  117. package/dist/esm/form-control-select_2.entry.js +2 -2
  118. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  119. package/dist/esm/{header-1-xlSavD5o.js → header-1-BIaO3iDb.js} +1 -1
  120. package/dist/esm/{header-3-egutsoDI.js → header-3-UswhFvUr.js} +1 -1
  121. package/dist/esm/hidden-input_2.entry.js +3 -3
  122. package/dist/esm/{insurance-state-jZTKdt60.js → insurance-state-MpA7uaXF.js} +1 -1
  123. package/dist/esm/internal-tokenize-payment-method_7.entry.js +5 -5
  124. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +73 -65
  125. package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
  126. package/dist/esm/justifi-apple-pay_8.entry.js +23 -16
  127. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +2 -2
  128. package/dist/esm/justifi-business-details.entry.js +4 -4
  129. package/dist/esm/justifi-business-form.entry.js +6 -6
  130. package/dist/esm/justifi-checkout.entry.js +3 -3
  131. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  132. package/dist/esm/justifi-checkouts-list.entry.js +5 -5
  133. package/dist/esm/justifi-details.entry.js +2 -2
  134. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  135. package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
  136. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  137. package/dist/esm/justifi-order-terminals.entry.js +4 -4
  138. package/dist/esm/justifi-payment-details.entry.js +4 -4
  139. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  140. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  141. package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
  142. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  143. package/dist/esm/justifi-payments-list.entry.js +6 -6
  144. package/dist/esm/justifi-payout-details.entry.js +4 -4
  145. package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
  146. package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
  147. package/dist/esm/justifi-payouts-list.entry.js +6 -6
  148. package/dist/esm/justifi-refund-payment.entry.js +5 -5
  149. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  150. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  151. package/dist/esm/justifi-skeleton.entry.js +2 -2
  152. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
  153. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
  154. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  155. package/dist/esm/justifi-terminals-list.entry.js +5 -5
  156. package/dist/esm/loader.js +1 -1
  157. package/dist/esm/{package-Bjv3eJBk.js → package-Cc6518FT.js} +1 -1
  158. package/dist/esm/pagination-menu.entry.js +1 -1
  159. package/dist/esm/{parts-C4FLe2pT.js → parts-c8J1gsDg.js} +9 -1
  160. package/dist/esm/payment-details-core.entry.js +5 -5
  161. package/dist/esm/payment-method-option.entry.js +1 -1
  162. package/dist/esm/{payment-provisioning-loading-D_VKtlLm.js → payment-provisioning-loading-DRFgrvp1.js} +1 -1
  163. package/dist/esm/payments-list-core.entry.js +6 -6
  164. package/dist/esm/{payments-status-D4XkcfLU.js → payments-status-Dkt38hpB.js} +1 -1
  165. package/dist/esm/{payments-table-BDaiD836.js → payments-table-ghXGJ-N6.js} +2 -2
  166. package/dist/esm/payout-details-core.entry.js +9 -9
  167. package/dist/esm/payouts-list-core.entry.js +6 -6
  168. package/dist/esm/{payouts-status-BR1vd6-D.js → payouts-status-B4iry-1w.js} +1 -1
  169. package/dist/esm/{payouts-table-B4nuJlpC.js → payouts-table-CBsTdL9_.js} +2 -2
  170. package/dist/esm/plaid.service-C59iS7tB.js +41 -0
  171. package/dist/esm/{skeleton-C162KC3u.js → skeleton-DzBAY0bs.js} +1 -1
  172. package/dist/esm/{spinner-BfjGGaND.js → spinner-DQpyMqKv.js} +1 -1
  173. package/dist/esm/{table-hHARNoRM.js → table-BwxLvetJ.js} +2 -2
  174. package/dist/esm/table-filters-menu.entry.js +2 -2
  175. package/dist/esm/terminal-orders-list-core.entry.js +5 -5
  176. package/dist/esm/{terminal-orders-table-B-xs6ocO.js → terminal-orders-table-Cy0qV96Y.js} +2 -2
  177. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  178. package/dist/esm/terminals-list-core.entry.js +5 -5
  179. package/dist/esm/{terminals-table-CnKH-UOw.js → terminals-table-BQQs_JoR.js} +2 -2
  180. package/dist/esm/{utils-BSpK1eMX.js → utils-BGbtbDiV.js} +1 -1
  181. package/dist/esm/webcomponents.js +1 -1
  182. package/dist/module/additional-statement.js +1 -1
  183. package/dist/module/apple-pay.js +13 -8
  184. package/dist/module/business-bank-account-form-step.js +71 -64
  185. package/dist/module/button.js +27 -3
  186. package/dist/module/cancellation-policy.js +1 -1
  187. package/dist/module/checkout.store.js +1 -1
  188. package/dist/module/checkouts-list-core2.js +1 -1
  189. package/dist/module/customer-details.js +1 -1
  190. package/dist/module/duplicate-charge.js +1 -1
  191. package/dist/module/electronic-evidence.js +1 -1
  192. package/dist/module/justifi-checkout.js +1 -1
  193. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  194. package/dist/module/justifi-order-terminals.js +1 -1
  195. package/dist/module/justifi-payment-transactions-list.js +1 -1
  196. package/dist/module/justifi-payments-list-filters.js +1 -1
  197. package/dist/module/justifi-payout-transactions-list.js +1 -1
  198. package/dist/module/justifi-payouts-list-filters.js +1 -1
  199. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  200. package/dist/module/justifi-terminals-list-filters.js +1 -1
  201. package/dist/module/modular-checkout.js +1 -1
  202. package/dist/module/package.js +1 -1
  203. package/dist/module/parts.js +9 -1
  204. package/dist/module/payments-list-core2.js +1 -1
  205. package/dist/module/payout-details-core2.js +3 -3
  206. package/dist/module/payouts-list-core2.js +1 -1
  207. package/dist/module/plaid-payment-method.js +3 -2
  208. package/dist/module/plaid-verification2.js +1 -8
  209. package/dist/module/product-or-service.js +1 -1
  210. package/dist/module/refund-policy.js +1 -1
  211. package/dist/module/shipping-details.js +1 -1
  212. package/dist/module/table-filters-menu2.js +1 -1
  213. package/dist/module/table.js +1 -1
  214. package/dist/module/terminal-orders-list-core2.js +1 -1
  215. package/dist/module/terminals-list-core2.js +1 -1
  216. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +10 -3
  217. package/dist/types/styles/parts.d.ts +7 -0
  218. package/dist/types/ui-components/button.d.ts +2 -1
  219. package/dist/webcomponents/{p-52dc271f.entry.js → p-01a84bc8.entry.js} +1 -1
  220. package/dist/webcomponents/p-02cf51ab.entry.js +1 -0
  221. package/dist/webcomponents/p-0559b9c1.entry.js +1 -0
  222. package/dist/webcomponents/{p-b61080bd.entry.js → p-06af9f9f.entry.js} +1 -1
  223. package/dist/webcomponents/{p-8e631781.entry.js → p-09401e56.entry.js} +1 -1
  224. package/dist/webcomponents/{p-05d11c40.entry.js → p-2531ee6c.entry.js} +1 -1
  225. package/dist/webcomponents/{p-8a42d4fe.entry.js → p-27518699.entry.js} +1 -1
  226. package/dist/webcomponents/{p-282134de.entry.js → p-277bc549.entry.js} +1 -1
  227. package/dist/webcomponents/{p-1b973781.entry.js → p-2b60c926.entry.js} +1 -1
  228. package/dist/webcomponents/{p-ec933218.entry.js → p-319ac08d.entry.js} +1 -1
  229. package/dist/webcomponents/p-32bf8202.entry.js +1 -0
  230. package/dist/webcomponents/p-3469a272.entry.js +1 -0
  231. package/dist/webcomponents/{p-19f1e643.entry.js → p-37407a7f.entry.js} +1 -1
  232. package/dist/webcomponents/{p-b54bf8da.entry.js → p-392c431d.entry.js} +1 -1
  233. package/dist/webcomponents/{p-11402020.entry.js → p-3cfc202a.entry.js} +1 -1
  234. package/dist/webcomponents/{p-BqpQa748.js → p-3kNggPyP.js} +1 -1
  235. package/dist/webcomponents/{p-6486555d.entry.js → p-43c70ddf.entry.js} +1 -1
  236. package/dist/webcomponents/{p-bcba5950.entry.js → p-4556535d.entry.js} +1 -1
  237. package/dist/webcomponents/{p-402ba9aa.entry.js → p-559ff95b.entry.js} +1 -1
  238. package/dist/webcomponents/p-56362fb6.entry.js +1 -0
  239. package/dist/webcomponents/{p-c7930f9a.entry.js → p-5895654d.entry.js} +1 -1
  240. package/dist/webcomponents/{p-154efb83.entry.js → p-5d4e607a.entry.js} +1 -1
  241. package/dist/webcomponents/{p-c72c5b99.entry.js → p-5d5e26f7.entry.js} +1 -1
  242. package/dist/webcomponents/{p-643f1616.entry.js → p-64d78daf.entry.js} +1 -1
  243. package/dist/webcomponents/{p-d36725a3.entry.js → p-654573c2.entry.js} +1 -1
  244. package/dist/webcomponents/p-6986bd9d.entry.js +1 -0
  245. package/dist/webcomponents/{p-0f1c100d.entry.js → p-6b6195c9.entry.js} +1 -1
  246. package/dist/webcomponents/{p-a105de67.entry.js → p-6b6d8263.entry.js} +1 -1
  247. package/dist/webcomponents/p-71b6fdd9.entry.js +1 -0
  248. package/dist/webcomponents/p-77CuiIig.js +1 -0
  249. package/dist/webcomponents/{p-c6aee723.entry.js → p-79975b5d.entry.js} +1 -1
  250. package/dist/webcomponents/{p-808bf425.entry.js → p-79d76cd4.entry.js} +1 -1
  251. package/dist/webcomponents/{p-2d39358b.entry.js → p-81b3f90f.entry.js} +1 -1
  252. package/dist/webcomponents/{p-e8f9b081.entry.js → p-91bf7445.entry.js} +1 -1
  253. package/dist/webcomponents/{p-c0592f5f.entry.js → p-91ee58e0.entry.js} +1 -1
  254. package/dist/webcomponents/{p-f1b99b0d.entry.js → p-941eac67.entry.js} +1 -1
  255. package/dist/webcomponents/{p-8dc8ad9a.entry.js → p-9438f755.entry.js} +1 -1
  256. package/dist/webcomponents/{p-d7bd9d76.entry.js → p-95b78da8.entry.js} +1 -1
  257. package/dist/webcomponents/{p-9a11f17b.entry.js → p-98a1b12a.entry.js} +1 -1
  258. package/dist/webcomponents/{p-5206cd09.entry.js → p-9eeaf2f9.entry.js} +1 -1
  259. package/dist/webcomponents/p-BBNT9yj5.js +1 -0
  260. package/dist/webcomponents/p-BMqYkvp1.js +1 -0
  261. package/dist/webcomponents/p-BnVuFEgH.js +1 -0
  262. package/dist/webcomponents/{p-DAZtHA62.js → p-BylxH1fV.js} +1 -1
  263. package/dist/webcomponents/{p-DyJ1zSHJ.js → p-C47u26qr.js} +1 -1
  264. package/dist/webcomponents/{p-CIh-k9yP.js → p-CMq8FpAG.js} +1 -1
  265. package/dist/webcomponents/{p-CGJ_mnry.js → p-CV5ZI_qC.js} +1 -1
  266. package/dist/webcomponents/{p-DsT0m0mo.js → p-CVa33GsE.js} +1 -1
  267. package/dist/webcomponents/p-CVkk7TvR.js +1 -0
  268. package/dist/webcomponents/p-Cc6518FT.js +1 -0
  269. package/dist/webcomponents/p-CmRrs0bo.js +1 -0
  270. package/dist/webcomponents/p-CmYy5XDp.js +1 -0
  271. package/dist/webcomponents/p-CncaMWc8.js +1 -0
  272. package/dist/webcomponents/{p-CJZ09QNH.js → p-CtxSp8dd.js} +1 -1
  273. package/dist/webcomponents/{p-5mt2ek0H.js → p-DL3PPUGZ.js} +1 -1
  274. package/dist/webcomponents/p-DmrpBh4P.js +1 -0
  275. package/dist/webcomponents/p-DrSNQm-e.js +1 -0
  276. package/dist/webcomponents/{p-HfLk4CG0.js → p-DvptzT44.js} +1 -1
  277. package/dist/webcomponents/{p-C3kbpEIZ.js → p-PtJwUDIK.js} +1 -1
  278. package/dist/webcomponents/p-a0134f5a.entry.js +1 -0
  279. package/dist/webcomponents/{p-cb9abd2c.entry.js → p-a6d56b36.entry.js} +1 -1
  280. package/dist/webcomponents/{p-c6a9410d.entry.js → p-a75bc18b.entry.js} +1 -1
  281. package/dist/webcomponents/{p-21620dd2.entry.js → p-abc769fa.entry.js} +1 -1
  282. package/dist/webcomponents/{p-4fc5ffda.entry.js → p-b3675b20.entry.js} +1 -1
  283. package/dist/webcomponents/{p-DYEXDs2k.js → p-b4MDVEve.js} +1 -1
  284. package/dist/webcomponents/{p-e71e4c49.entry.js → p-b9248f88.entry.js} +1 -1
  285. package/dist/webcomponents/p-bafe9deb.entry.js +1 -0
  286. package/dist/webcomponents/p-bb4da414.entry.js +1 -0
  287. package/dist/webcomponents/{p-4ebaafe3.entry.js → p-c5540693.entry.js} +1 -1
  288. package/dist/webcomponents/p-c8J1gsDg.js +1 -0
  289. package/dist/webcomponents/{p-9d69ae9f.entry.js → p-d07748fa.entry.js} +4 -4
  290. package/dist/webcomponents/{p-5862236f.entry.js → p-d0abe57d.entry.js} +1 -1
  291. package/dist/webcomponents/p-d47909f1.entry.js +1 -0
  292. package/dist/webcomponents/p-d6bf1592.entry.js +1 -0
  293. package/dist/webcomponents/{p-fbfe6211.entry.js → p-dbf2ba9e.entry.js} +1 -1
  294. package/dist/webcomponents/{p-7e14f6ac.entry.js → p-df110446.entry.js} +1 -1
  295. package/dist/webcomponents/{p-540e2ef2.entry.js → p-e0cca91e.entry.js} +1 -1
  296. package/dist/webcomponents/{p-479e4baf.entry.js → p-e4ef4a19.entry.js} +1 -1
  297. package/dist/webcomponents/{p-ff4d485f.entry.js → p-ec9f527d.entry.js} +1 -1
  298. package/dist/webcomponents/{p-7f3dcd42.entry.js → p-ee06f2fa.entry.js} +1 -1
  299. package/dist/webcomponents/{p-88c6713a.entry.js → p-f01cdb9f.entry.js} +1 -1
  300. package/dist/webcomponents/{p-eeee370f.entry.js → p-f2110cd2.entry.js} +1 -1
  301. package/dist/webcomponents/p-f9f0a5c8.entry.js +1 -0
  302. package/dist/webcomponents/{p-e89d0f36.entry.js → p-fa876b02.entry.js} +1 -1
  303. package/dist/webcomponents/{p-7e3030c2.entry.js → p-fe0feef1.entry.js} +1 -1
  304. package/dist/webcomponents/webcomponents.esm.js +1 -1
  305. package/package.json +4 -2
  306. package/dist/cjs/button-Cr3iHpyf.js +0 -19
  307. package/dist/cjs/plaid-icon-DiZrP1DM.js +0 -46
  308. package/dist/esm/button-DOkTCYSa.js +0 -17
  309. package/dist/esm/plaid-icon-B7a1QC7F.js +0 -43
  310. package/dist/module/plaid-icon.js +0 -3
  311. package/dist/webcomponents/p--Kvji7o2.js +0 -1
  312. package/dist/webcomponents/p-0588173b.entry.js +0 -1
  313. package/dist/webcomponents/p-1a4d5f16.entry.js +0 -1
  314. package/dist/webcomponents/p-21b5240d.entry.js +0 -1
  315. package/dist/webcomponents/p-35d1be0f.entry.js +0 -1
  316. package/dist/webcomponents/p-4d6031dd.entry.js +0 -1
  317. package/dist/webcomponents/p-62f9c008.entry.js +0 -1
  318. package/dist/webcomponents/p-6c503a00.entry.js +0 -1
  319. package/dist/webcomponents/p-6d565cd6.entry.js +0 -1
  320. package/dist/webcomponents/p-7318981d.entry.js +0 -1
  321. package/dist/webcomponents/p-7d122d5b.entry.js +0 -1
  322. package/dist/webcomponents/p-7dc5995e.entry.js +0 -1
  323. package/dist/webcomponents/p-8c55dac0.entry.js +0 -1
  324. package/dist/webcomponents/p-Bjv3eJBk.js +0 -1
  325. package/dist/webcomponents/p-BoO2BHR_.js +0 -1
  326. package/dist/webcomponents/p-BtFe5yQU.js +0 -1
  327. package/dist/webcomponents/p-C4FLe2pT.js +0 -1
  328. package/dist/webcomponents/p-CI11WF1E.js +0 -1
  329. package/dist/webcomponents/p-DFiTyYE9.js +0 -1
  330. package/dist/webcomponents/p-DO4RBao8.js +0 -1
  331. package/dist/webcomponents/p-DqVU8ohH.js +0 -1
  332. package/dist/webcomponents/p-DyETkJs3.js +0 -1
  333. package/dist/webcomponents/p-EaBIgUj8.js +0 -1
  334. package/dist/webcomponents/p-Jz9qdPhR.js +0 -1
  335. package/dist/webcomponents/p-ccb0a84a.entry.js +0 -1
@@ -8,8 +8,8 @@ var businessAdditionalQuestionsSchema = require('./business-additional-questions
8
8
  var index_esm = require('./index.esm-C1ZPG85l.js');
9
9
  var Business = require('./Business-oBifyXkW.js');
10
10
  var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
11
- var parts = require('./parts-C0AyF3nd.js');
12
- var paymentProvisioningLoading = require('./payment-provisioning-loading-CbcFPETB.js');
11
+ var parts = require('./parts-WjOn_TIy.js');
12
+ var paymentProvisioningLoading = require('./payment-provisioning-loading-BHAFHTuI.js');
13
13
  var businessFormOptions = require('./business-form-options-D_nM7NDk.js');
14
14
  var eventTypes = require('./event-types-DNOUef41.js');
15
15
  require('./config-state-BIgGhhe9.js');
@@ -18,14 +18,14 @@ var Plaid = require('./Plaid-B_UkFjIV.js');
18
18
  require('./Pagination-Dediz133.js');
19
19
  require('./Dispute-CruQTF6_.js');
20
20
  var schemaValidations = require('./schema-validations-_yWWnnaG.js');
21
- var button = require('./button-Cr3iHpyf.js');
21
+ var button = require('./button-DAbSQPoU.js');
22
22
  require('./event-types-YOY5TKUN.js');
23
23
  var countryConfig = require('./country-config-D7fss2oF.js');
24
24
  var businessIdentitySchema = require('./business-identity-schema-DWWtSiUF.js');
25
25
  var Api = require('./Api-Bukk55YZ.js');
26
26
  require('./utils-DvUQQLmR.js');
27
27
  require('./_commonjsHelpers-BJu3ubxk.js');
28
- require('./skeleton-C9Aio7v_.js');
28
+ require('./skeleton-BfN_sjaY.js');
29
29
  require('./index-W-zoNiyM.js');
30
30
  require('./utils-BHi4j5rB.js');
31
31
 
@@ -282,22 +282,20 @@ const BusinessBankAccountFormStep = class {
282
282
  this.existingDocuments = [];
283
283
  this.documentData = new Plaid.EntityDocumentStorage();
284
284
  this.isLoading = false;
285
- this.isAddingNewBankAccount = true;
285
+ this.viewMode = 'manual';
286
286
  this.bankAccountVerification = false;
287
287
  this.platformAccountId = null;
288
- this.usePlaidVerification = true;
289
288
  this.getSchema = () => {
290
289
  const schema = bankAccountSchemaByCountry[this.country];
291
290
  return schema(this.allowOptionalFields, this.existingDocuments);
292
291
  };
293
292
  this.initializeFormController = () => {
294
293
  this.formController = new index_esm.FormController(this.getSchema());
295
- if (this.isAddingNewBankAccount) {
296
- // Clear form when adding a new bank account
297
- this.formController.setInitialValues({ business_id: this.businessId });
294
+ if (this.viewMode === 'readonly') {
295
+ this.formController.setInitialValues(Object.assign({}, this.bankAccount));
298
296
  }
299
297
  else {
300
- this.formController.setInitialValues(Object.assign({}, this.bankAccount));
298
+ this.formController.setInitialValues({ business_id: this.businessId });
301
299
  }
302
300
  this.formController.errors.subscribe(errors => {
303
301
  this.errors = Object.assign({}, errors);
@@ -316,20 +314,8 @@ const BusinessBankAccountFormStep = class {
316
314
  this.isLoading = true;
317
315
  this.getBusiness({
318
316
  onSuccess: (response) => {
319
- if (response.data.bank_accounts.length > 0) {
320
- // Get the latest bank account (last in array)
321
- const bankAccounts = response.data.bank_accounts;
322
- const latestBankAccount = bankAccounts[bankAccounts.length - 1];
323
- this.bankAccount = new BankAccount(latestBankAccount);
324
- this.isAddingNewBankAccount = false;
325
- }
326
- else {
327
- this.bankAccount = new BankAccount({});
328
- this.bankAccount.business_id = this.businessId;
329
- }
330
- this.existingDocuments = response.data.documents;
331
- this.bankAccountVerification = response.data.settings.bank_account_verification === true;
332
- this.platformAccountId = response.data.platform_account_id;
317
+ this.processBusinessResponse(response.data);
318
+ this.determineViewMode();
333
319
  },
334
320
  onError: ({ error, code, severity }) => {
335
321
  this.errorEvent.emit({
@@ -345,24 +331,20 @@ const BusinessBankAccountFormStep = class {
345
331
  });
346
332
  };
347
333
  this.handleChangeBankAccount = () => {
348
- this.isAddingNewBankAccount = true;
334
+ this.viewMode = this.plaidAvailable ? 'plaid' : 'manual';
349
335
  this.documentData = new Plaid.EntityDocumentStorage();
350
- // Reset to Plaid if available when changing bank account
351
- this.usePlaidVerification = this.bankAccountVerification && !!this.platformAccountId;
352
336
  this.initializeFormController();
353
337
  };
354
338
  this.handleCancel = () => {
355
- this.isAddingNewBankAccount = false;
339
+ this.viewMode = this.existingBankAccount ? 'readonly' : 'plaid';
356
340
  this.documentData = new Plaid.EntityDocumentStorage();
357
- // Reset toggle state when canceling
358
- this.usePlaidVerification = true;
359
341
  this.initializeFormController();
360
342
  };
361
343
  this.handleToggleToManualEntry = () => {
362
- this.usePlaidVerification = false;
344
+ this.viewMode = 'manual';
363
345
  };
364
346
  this.handleToggleToPlaidVerification = () => {
365
- this.usePlaidVerification = true;
347
+ this.viewMode = 'plaid';
366
348
  };
367
349
  this.handleSaveBankAccount = async () => {
368
350
  this.formController.validateAndSubmit(() => {
@@ -439,12 +421,10 @@ const BusinessBankAccountFormStep = class {
439
421
  this.formLoading.emit(newValue);
440
422
  }
441
423
  async validateAndSubmit({ onSuccess }) {
442
- if (this.existingBankAccount && !this.isAddingNewBankAccount) {
443
- // If a bank account already exists and we're not adding a new one, skip bank account posting; proceed directly to document upload
424
+ if (this.viewMode === 'readonly') {
444
425
  this.sendData(onSuccess);
445
426
  }
446
427
  else {
447
- // If bank account is new, validate form inputs (bank account fields), then proceed
448
428
  this.formController.validateAndSubmit(() => this.sendData(onSuccess));
449
429
  }
450
430
  }
@@ -493,24 +473,48 @@ const BusinessBankAccountFormStep = class {
493
473
  var _a;
494
474
  return !!((_a = this.bankAccount) === null || _a === void 0 ? void 0 : _a.id);
495
475
  }
496
- get showReadOnlyView() {
497
- return this.existingBankAccount && !this.isAddingNewBankAccount;
476
+ get plaidAvailable() {
477
+ return this.bankAccountVerification && !!this.platformAccountId;
478
+ }
479
+ get showCancel() {
480
+ return this.bankAccountVerification || this.existingBankAccount;
481
+ }
482
+ processBusinessResponse(data) {
483
+ const { bank_accounts, documents, settings, platform_account_id } = data;
484
+ if (bank_accounts.length > 0) {
485
+ this.bankAccount = new BankAccount(bank_accounts[bank_accounts.length - 1]);
486
+ }
487
+ else {
488
+ this.bankAccount = new BankAccount({});
489
+ this.bankAccount.business_id = this.businessId;
490
+ }
491
+ this.existingDocuments = documents;
492
+ this.bankAccountVerification = settings.bank_account_verification === true;
493
+ this.platformAccountId = platform_account_id;
494
+ }
495
+ determineViewMode() {
496
+ if (this.existingBankAccount) {
497
+ this.viewMode = 'readonly';
498
+ }
499
+ else if (this.plaidAvailable) {
500
+ this.viewMode = 'plaid';
501
+ }
502
+ else {
503
+ this.viewMode = 'manual';
504
+ }
498
505
  }
499
506
  async sendData(onSuccess) {
500
507
  try {
501
- // Post bank account data if we're adding a new bank account
502
- const bankAccountPosted = this.isAddingNewBankAccount ? await this.postBankAccountData() : true;
503
- if (!bankAccountPosted) {
504
- return;
508
+ if (this.viewMode === 'manual') {
509
+ const bankAccountPosted = await this.postBankAccountData();
510
+ if (!bankAccountPosted)
511
+ return;
505
512
  }
506
- // Post documents only after bank account was successfully created
507
513
  const documentsUploaded = await this.postBusinessDocuments();
508
- if (!documentsUploaded) {
514
+ if (!documentsUploaded)
509
515
  return;
510
- }
511
- // Refresh bank account data after successful save
512
- if (this.isAddingNewBankAccount) {
513
- this.isAddingNewBankAccount = false;
516
+ if (this.viewMode === 'manual') {
517
+ this.viewMode = 'readonly';
514
518
  await this.refreshBankAccountData();
515
519
  }
516
520
  onSuccess();
@@ -555,17 +559,8 @@ const BusinessBankAccountFormStep = class {
555
559
  this.isLoading = true;
556
560
  this.getBusiness({
557
561
  onSuccess: (response) => {
558
- const { data } = response;
559
- const { bank_accounts, documents, settings, platform_account_id } = data;
560
- if (bank_accounts.length > 0) {
561
- // Get the latest bank account (last in array)
562
- const bankAccounts = bank_accounts;
563
- const latestBankAccount = bankAccounts[bankAccounts.length - 1];
564
- this.bankAccount = new BankAccount(latestBankAccount);
565
- }
566
- this.existingDocuments = documents;
567
- this.bankAccountVerification = settings.bank_account_verification === true;
568
- this.platformAccountId = platform_account_id;
562
+ this.processBusinessResponse(response.data);
563
+ this.determineViewMode();
569
564
  this.initializeFormController();
570
565
  },
571
566
  onError: ({ error, code, severity }) => {
@@ -603,17 +598,30 @@ const BusinessBankAccountFormStep = class {
603
598
  this.isLoading = false;
604
599
  }
605
600
  }
601
+ renderBankAccountInputs(disabled) {
602
+ const defaultValue = this.formController.getInitialValues();
603
+ return this.country === Business.CountryCode.CAN ? (index.h("bank-account-form-inputs-canada", { defaultValue: defaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: disabled })) : (index.h("bank-account-form-inputs", { defaultValue: defaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: disabled }));
604
+ }
605
+ renderReadonlyView() {
606
+ return (index.h("div", null, this.renderBankAccountInputs(true), 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"))));
607
+ }
608
+ renderPlaidView() {
609
+ return (index.h("div", { class: "mt-3" }, index.h("plaid-verification", { authToken: this.authToken, accountId: this.platformAccountId, businessId: this.businessId, onPlaidVerificationSuccess: () => {
610
+ this.viewMode = 'readonly';
611
+ this.refreshBankAccountData();
612
+ } }), index.h("div", { class: "mt-3" }, index.h(button.Button, { type: "button", variant: "link", className: "p-0", onClick: this.handleToggleToManualEntry, disabled: this.isLoading, part: parts.buttonLink }, "Enter bank details manually (document upload required)"))));
613
+ }
614
+ renderManualEntryView() {
615
+ return (index.h("div", null, this.plaidAvailable && (index.h("div", { class: "mb-3" }, index.h(button.Button, { type: "button", variant: "secondary", onClick: this.handleToggleToPlaidVerification, disabled: this.isLoading, part: parts.buttonSecondary }, "Link bank account with Plaid instead"))), this.renderBankAccountInputs(false), index.h("div", { class: "mt-3 d-flex gap-2" }, this.showCancel && (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"))));
616
+ }
617
+ renderDocumentUploads() {
618
+ return (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 })));
619
+ }
606
620
  render() {
607
- const bankAccountDefaultValue = this.formController.getInitialValues();
608
- const shouldShowPlaidVerification = this.bankAccountVerification && this.platformAccountId;
609
621
  if (this.isLoading) {
610
622
  return index.h(paymentProvisioningLoading.PaymentProvisioningLoading, null);
611
623
  }
612
- 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 && this.usePlaidVerification && !this.showReadOnlyView && (index.h("div", { class: "mt-3" }, index.h("plaid-verification", { authToken: this.authToken, accountId: this.platformAccountId, businessId: this.businessId, onPlaidVerificationSuccess: () => {
613
- // Refresh bank account data after successful Plaid verification
614
- this.isAddingNewBankAccount = false;
615
- this.refreshBankAccountData();
616
- } }), index.h("div", { class: "mt-3" }, index.h(button.Button, { type: "button", variant: "link", onClick: this.handleToggleToManualEntry, disabled: this.isLoading, part: parts.buttonLink }, "Enter bank details manually (document upload required)")))), (!this.usePlaidVerification || this.showReadOnlyView) && (index.h("div", null, shouldShowPlaidVerification && !this.usePlaidVerification && !this.showReadOnlyView && (index.h("div", { class: "mb-3" }, index.h(button.Button, { type: "button", variant: "secondary", onClick: this.handleToggleToPlaidVerification, disabled: this.isLoading, part: parts.buttonSecondary }, "Link bank account with Plaid instead"))), 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) && !this.usePlaidVerification && (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")))), (!this.usePlaidVerification || this.showReadOnlyView) && (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 })))));
624
+ 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.viewMode === 'readonly' && this.renderReadonlyView(), this.viewMode === 'plaid' && this.renderPlaidView(), this.viewMode === 'manual' && this.renderManualEntryView()), this.viewMode !== 'plaid' && this.renderDocumentUploads()));
617
625
  }
618
626
  static get watchers() { return {
619
627
  "authToken": ["propChanged"],
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var index_esm = require('./index.esm-C1ZPG85l.js');
5
- var parts = require('./parts-C0AyF3nd.js');
5
+ var parts = require('./parts-WjOn_TIy.js');
6
6
  require('./_commonjsHelpers-BJu3ubxk.js');
7
7
 
8
8
  const AdditionalStatementSchema = index_esm.create$3({
@@ -5,15 +5,15 @@ var Api = require('./Api-Bukk55YZ.js');
5
5
  var Plaid = require('./Plaid-B_UkFjIV.js');
6
6
  var styledHost = require('./styled-host-DAi5SuFa.js');
7
7
  require('./event-types-YOY5TKUN.js');
8
- var skeleton = require('./skeleton-C9Aio7v_.js');
8
+ var skeleton = require('./skeleton-BfN_sjaY.js');
9
9
  var checkout_store = require('./checkout.store-zTfjieKa.js');
10
- var parts = require('./parts-C0AyF3nd.js');
10
+ var parts = require('./parts-WjOn_TIy.js');
11
11
  var utils = require('./utils-BHi4j5rB.js');
12
12
  var configState = require('./config-state-BIgGhhe9.js');
13
- var header1 = require('./header-1-BOijdmPN.js');
14
- var insuranceState = require('./insurance-state-DIV_moDI.js');
15
- var header3 = require('./header-3-FeTJjrR1.js');
16
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
13
+ var header1 = require('./header-1-DR-eAlp1.js');
14
+ var insuranceState = require('./insurance-state-CRhLwPxQ.js');
15
+ var header3 = require('./header-3-kgnQtxEu.js');
16
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
17
17
  require('./dinero-BwNN_k7x.js');
18
18
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
19
19
  require('./Pagination-Dediz133.js');
@@ -21,11 +21,11 @@ require('./Business-oBifyXkW.js');
21
21
  require('./Dispute-CruQTF6_.js');
22
22
  var utils$1 = require('./utils-DvUQQLmR.js');
23
23
  var checkout_service = require('./checkout.service-B2toaeKY.js');
24
- var plaidIcon = require('./plaid-icon-DiZrP1DM.js');
24
+ var plaid_service = require('./plaid.service-DvbLnuph.js');
25
25
  var index$1 = require('./index-CajjbB9t.js');
26
26
  var paymentMethodOptionUtils = require('./payment-method-option-utils-WYHIHy-l.js');
27
27
  require('./index-W-zoNiyM.js');
28
- require('./package-CAxc3X25.js');
28
+ require('./package-OpgJzVo3.js');
29
29
 
30
30
  // Centralized error codes for Apple Pay service
31
31
  var ApplePayServiceErrorCode;
@@ -544,7 +544,7 @@ const ApplePay = class {
544
544
  this.isConfigValid = true;
545
545
  this.error = null;
546
546
  this.handleApplePayClick = async () => {
547
- var _a, _b;
547
+ var _a, _b, _c;
548
548
  if (this.isProcessing || this.disabled || !this.isAvailable) {
549
549
  return;
550
550
  }
@@ -583,13 +583,18 @@ const ApplePay = class {
583
583
  }
584
584
  }
585
585
  catch (error) {
586
- const errorMessage = error instanceof Error ? error.message : "Payment failed";
587
- this.error = errorMessage;
588
- this.applePayError.emit({ error: errorMessage, code: ApplePay.ErrorCode.PAYMENT_FAILED });
589
- this.applePayCompleted.emit({
590
- success: false,
591
- error: errorMessage,
592
- });
586
+ if (((_c = error === null || error === void 0 ? void 0 : error.error) === null || _c === void 0 ? void 0 : _c.code) === ApplePayServiceErrorCode.USER_CANCELLED) {
587
+ this.applePayCancelled.emit();
588
+ }
589
+ else {
590
+ const errorMessage = error instanceof Error ? error.message : "Payment failed";
591
+ this.error = errorMessage;
592
+ this.applePayError.emit({ error: errorMessage, code: ApplePay.ErrorCode.PAYMENT_FAILED });
593
+ this.applePayCompleted.emit({
594
+ success: false,
595
+ error: errorMessage,
596
+ });
597
+ }
593
598
  }
594
599
  finally {
595
600
  this.isProcessing = false;
@@ -914,7 +919,7 @@ const ModularCheckout = class {
914
919
  this.errorEvent = index.createEvent(this, "error-event", 7);
915
920
  this.submitEvent = index.createEvent(this, "submit-event", 7);
916
921
  this.checkoutChangedEvent = index.createEvent(this, "checkout-changed", 7);
917
- this.plaidService = new plaidIcon.PlaidService();
922
+ this.plaidService = new plaid_service.PlaidService();
918
923
  this.handleGooglePayCompleted = (event) => {
919
924
  const { success, paymentMethodId, error } = event.detail || {};
920
925
  if (success && paymentMethodId) {
@@ -1313,6 +1318,8 @@ const ModularCheckout = class {
1313
1318
  get hostEl() { return index.getElement(this); }
1314
1319
  };
1315
1320
 
1321
+ const plaidIconSvg = 'data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=';
1322
+
1316
1323
  const PlaidPaymentMethod = class {
1317
1324
  constructor(hostRef) {
1318
1325
  index.registerInstance(this, hostRef);
@@ -1328,7 +1335,7 @@ const PlaidPaymentMethod = class {
1328
1335
  this.isSelected = false;
1329
1336
  this.retryCount = 0;
1330
1337
  this.isRetrying = false;
1331
- this.plaidService = new plaidIcon.PlaidService();
1338
+ this.plaidService = new plaid_service.PlaidService();
1332
1339
  this.maxRetries = 3;
1333
1340
  this.retryDelay = 2000; // 2 seconds
1334
1341
  this.timeoutId = null;
@@ -1810,7 +1817,7 @@ const PlaidPaymentMethod = class {
1810
1817
  }
1811
1818
  return null;
1812
1819
  }
1813
- const plaidLogo = (index.h("img", { class: "plaid-logo-img", src: plaidIcon.plaidIconSvg, alt: "Plaid", title: "Plaid", style: {
1820
+ const plaidLogo = (index.h("img", { class: "plaid-logo-img", src: plaidIconSvg, alt: "Plaid", title: "Plaid", style: {
1814
1821
  display: 'inline',
1815
1822
  width: '20px',
1816
1823
  height: '20px',
@@ -3,10 +3,10 @@
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var index_esm = require('./index.esm-C1ZPG85l.js');
5
5
  var schemaValidations = require('./schema-validations-_yWWnnaG.js');
6
- var parts = require('./parts-C0AyF3nd.js');
6
+ var parts = require('./parts-WjOn_TIy.js');
7
7
  var styledHost = require('./styled-host-DAi5SuFa.js');
8
8
  require('./event-types-YOY5TKUN.js');
9
- var header3 = require('./header-3-FeTJjrR1.js');
9
+ var header3 = require('./header-3-kgnQtxEu.js');
10
10
  var Business = require('./Business-oBifyXkW.js');
11
11
  require('./_commonjsHelpers-BJu3ubxk.js');
12
12
  require('./country-config-D7fss2oF.js');
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
- var utils = require('./utils-Vwo0VR7n.js');
4
+ var utils = require('./utils-CowQ4GdN.js');
5
5
  var business_service = require('./business.service-Kplx8w_D.js');
6
6
  var getBusiness = require('./get-business-DF-XBH8G.js');
7
7
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
8
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
9
- require('./parts-C0AyF3nd.js');
8
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
9
+ require('./parts-WjOn_TIy.js');
10
10
  require('./Api-Bukk55YZ.js');
11
11
  require('./config-state-BIgGhhe9.js');
12
12
  require('./index-W-zoNiyM.js');
@@ -17,7 +17,7 @@ require('./Dispute-CruQTF6_.js');
17
17
  require('./Pagination-Dediz133.js');
18
18
  require('./Business-oBifyXkW.js');
19
19
  require('./utils-DvUQQLmR.js');
20
- require('./package-CAxc3X25.js');
20
+ require('./package-OpgJzVo3.js');
21
21
 
22
22
  const BusinessDetails = class {
23
23
  constructor(hostRef) {
@@ -11,12 +11,12 @@ require('./Plaid-B_UkFjIV.js');
11
11
  require('./Pagination-Dediz133.js');
12
12
  var Business = require('./Business-oBifyXkW.js');
13
13
  require('./Dispute-CruQTF6_.js');
14
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
15
- var button = require('./button-Cr3iHpyf.js');
14
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
15
+ var button = require('./button-DAbSQPoU.js');
16
16
  var styledHost = require('./styled-host-DAi5SuFa.js');
17
- var header1 = require('./header-1-BOijdmPN.js');
17
+ var header1 = require('./header-1-DR-eAlp1.js');
18
18
  require('./event-types-YOY5TKUN.js');
19
- var skeleton = require('./skeleton-C9Aio7v_.js');
19
+ var skeleton = require('./skeleton-BfN_sjaY.js');
20
20
  var eventTypes = require('./event-types-DNOUef41.js');
21
21
  var paymentProvisioningActions = require('./payment-provisioning-actions-J6TGZZb9.js');
22
22
  var business_service = require('./business.service-Kplx8w_D.js');
@@ -26,9 +26,9 @@ require('./country-config-D7fss2oF.js');
26
26
  require('./business-form-options-D_nM7NDk.js');
27
27
  require('./index-W-zoNiyM.js');
28
28
  require('./utils-BHi4j5rB.js');
29
- require('./package-CAxc3X25.js');
29
+ require('./package-OpgJzVo3.js');
30
30
  require('./Api-Bukk55YZ.js');
31
- require('./parts-C0AyF3nd.js');
31
+ require('./parts-WjOn_TIy.js');
32
32
  require('./utils-DvUQQLmR.js');
33
33
 
34
34
  const businessFormSchemaUSA = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchemaUSA().fields), { legal_address: businessIdentitySchema.addressSchemaUSA(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchemaUSA('representative') }));
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
4
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
5
5
  var checkout_store = require('./checkout.store-zTfjieKa.js');
6
- var parts = require('./parts-C0AyF3nd.js');
6
+ var parts = require('./parts-WjOn_TIy.js');
7
7
  var styledHost = require('./styled-host-DAi5SuFa.js');
8
8
  require('./event-types-YOY5TKUN.js');
9
9
  var index$1 = require('./index-CajjbB9t.js');
10
- require('./package-CAxc3X25.js');
10
+ require('./package-OpgJzVo3.js');
11
11
  require('./Api-Bukk55YZ.js');
12
12
  require('./config-state-BIgGhhe9.js');
13
13
  require('./index-W-zoNiyM.js');
@@ -10,7 +10,7 @@ require('./Pagination-Dediz133.js');
10
10
  require('./Business-oBifyXkW.js');
11
11
  require('./Dispute-CruQTF6_.js');
12
12
  var checkoutsListParamsState = require('./checkouts-list-params-state-vGJZ6Oe2.js');
13
- var parts = require('./parts-C0AyF3nd.js');
13
+ var parts = require('./parts-WjOn_TIy.js');
14
14
  var styledHost = require('./styled-host-DAi5SuFa.js');
15
15
  require('./event-types-YOY5TKUN.js');
16
16
  require('./_commonjsHelpers-BJu3ubxk.js');
@@ -9,18 +9,18 @@ require('./Pagination-Dediz133.js');
9
9
  require('./Business-oBifyXkW.js');
10
10
  require('./Dispute-CruQTF6_.js');
11
11
  var utils = require('./utils-DvUQQLmR.js');
12
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
12
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
13
13
  var checkout_service = require('./checkout.service-B2toaeKY.js');
14
14
  var getSubaccounts = require('./get-subaccounts-BUyf9EhG.js');
15
15
  var styledHost = require('./styled-host-DAi5SuFa.js');
16
16
  require('./event-types-YOY5TKUN.js');
17
- var checkoutsTable = require('./checkouts-table-CXgizBib.js');
17
+ var checkoutsTable = require('./checkouts-table-KuNixae0.js');
18
18
  require('./index-W-zoNiyM.js');
19
19
  require('./utils-BHi4j5rB.js');
20
- require('./package-CAxc3X25.js');
20
+ require('./package-OpgJzVo3.js');
21
21
  require('./Api-Bukk55YZ.js');
22
- require('./badge-Cl6qJPK_.js');
23
- require('./parts-C0AyF3nd.js');
22
+ require('./badge-Bd6H9TX2.js');
23
+ require('./parts-WjOn_TIy.js');
24
24
 
25
25
  const makeGetCheckouts = ({ accountId, authToken, service }) => async ({ params, onSuccess, onError }) => {
26
26
  var _a, _b;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
- var utils = require('./utils-Vwo0VR7n.js');
5
- require('./parts-C0AyF3nd.js');
4
+ var utils = require('./utils-CowQ4GdN.js');
5
+ require('./parts-WjOn_TIy.js');
6
6
 
7
7
  const Details = class {
8
8
  constructor(hostRef) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
5
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
5
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
6
6
  var Dispute = require('./Dispute-CruQTF6_.js');
7
7
  var utils = require('./utils-DvUQQLmR.js');
8
8
  var dispute_service = require('./dispute.service-C4n1SOsu.js');
9
- require('./package-CAxc3X25.js');
9
+ require('./package-OpgJzVo3.js');
10
10
  require('./Api-Bukk55YZ.js');
11
11
  require('./config-state-BIgGhhe9.js');
12
12
  require('./index-W-zoNiyM.js');
@@ -2,16 +2,16 @@
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var utils$1 = require('./utils-BHi4j5rB.js');
5
- var parts = require('./parts-C0AyF3nd.js');
6
- var button = require('./button-Cr3iHpyf.js');
5
+ var parts = require('./parts-WjOn_TIy.js');
6
+ var button = require('./button-DAbSQPoU.js');
7
7
  var styledHost = require('./styled-host-DAi5SuFa.js');
8
- var skeleton = require('./skeleton-C9Aio7v_.js');
8
+ var skeleton = require('./skeleton-BfN_sjaY.js');
9
9
  require('./event-types-YOY5TKUN.js');
10
10
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
11
11
  var utils = require('./utils-DvUQQLmR.js');
12
12
  var dispute_service = require('./dispute.service-C4n1SOsu.js');
13
13
  var eventTypes = require('./event-types-BWQT2lwu.js');
14
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
14
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
15
15
  require('./dinero-BwNN_k7x.js');
16
16
  require('./Api-Bukk55YZ.js');
17
17
  require('./config-state-BIgGhhe9.js');
@@ -20,7 +20,7 @@ require('./Plaid-B_UkFjIV.js');
20
20
  require('./Dispute-CruQTF6_.js');
21
21
  require('./Pagination-Dediz133.js');
22
22
  require('./Business-oBifyXkW.js');
23
- require('./package-CAxc3X25.js');
23
+ require('./package-OpgJzVo3.js');
24
24
 
25
25
  const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
26
26
  var _a;
@@ -8,14 +8,14 @@ require('./Pagination-Dediz133.js');
8
8
  require('./Business-oBifyXkW.js');
9
9
  require('./Dispute-CruQTF6_.js');
10
10
  var utils = require('./utils-DvUQQLmR.js');
11
- var utils$1 = require('./utils-Vwo0VR7n.js');
12
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
11
+ var utils$1 = require('./utils-CowQ4GdN.js');
12
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
13
13
  require('./config-state-BIgGhhe9.js');
14
14
  require('./index-W-zoNiyM.js');
15
15
  require('./utils-BHi4j5rB.js');
16
16
  require('./dinero-BwNN_k7x.js');
17
- require('./parts-C0AyF3nd.js');
18
- require('./package-CAxc3X25.js');
17
+ require('./parts-WjOn_TIy.js');
18
+ require('./package-OpgJzVo3.js');
19
19
 
20
20
  const api = Api.Api();
21
21
  class ReportsService {
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
- var parts = require('./parts-C0AyF3nd.js');
4
+ var parts = require('./parts-WjOn_TIy.js');
5
5
  var styledHost = require('./styled-host-DAi5SuFa.js');
6
6
  require('./event-types-YOY5TKUN.js');
7
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
7
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
8
8
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
9
9
  var business_service = require('./business.service-Kplx8w_D.js');
10
10
  var Business = require('./Business-oBifyXkW.js');
11
11
  var getBusiness = require('./get-business-DF-XBH8G.js');
12
- var skeleton = require('./skeleton-C9Aio7v_.js');
12
+ var skeleton = require('./skeleton-BfN_sjaY.js');
13
13
  require('./config-state-BIgGhhe9.js');
14
14
  require('./dinero-BwNN_k7x.js');
15
15
  var Plaid = require('./Plaid-B_UkFjIV.js');
@@ -18,7 +18,7 @@ require('./Dispute-CruQTF6_.js');
18
18
  var utils = require('./utils-DvUQQLmR.js');
19
19
  var terminal_service = require('./terminal.service-CUVwCH-a.js');
20
20
  var utils$1 = require('./utils-BHi4j5rB.js');
21
- require('./package-CAxc3X25.js');
21
+ require('./package-OpgJzVo3.js');
22
22
  require('./Api-Bukk55YZ.js');
23
23
  require('./index-W-zoNiyM.js');
24
24
 
@@ -3,9 +3,9 @@
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var payment_service = require('./payment.service-CxSGTv_O.js');
5
5
  var getPaymentDetails = require('./get-payment-details-Atcodhcd.js');
6
- var utils = require('./utils-Vwo0VR7n.js');
6
+ var utils = require('./utils-CowQ4GdN.js');
7
7
  var ComponentError = require('./ComponentError-D4OLnOkg.js');
8
- var checkPkgVersion = require('./check-pkg-version-axrC8Ato.js');
8
+ var checkPkgVersion = require('./check-pkg-version-Mv0ez8Cf.js');
9
9
  require('./Api-Bukk55YZ.js');
10
10
  require('./config-state-BIgGhhe9.js');
11
11
  require('./index-W-zoNiyM.js');
@@ -16,8 +16,8 @@ require('./Dispute-CruQTF6_.js');
16
16
  require('./Pagination-Dediz133.js');
17
17
  require('./Business-oBifyXkW.js');
18
18
  require('./utils-DvUQQLmR.js');
19
- require('./parts-C0AyF3nd.js');
20
- require('./package-CAxc3X25.js');
19
+ require('./parts-WjOn_TIy.js');
20
+ require('./package-OpgJzVo3.js');
21
21
 
22
22
  const PaymentDetails = class {
23
23
  constructor(hostRef) {