@justifi/webcomponents 5.7.3-rc-02 → 5.7.4-rc-01

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 (479) hide show
  1. package/dist/cjs/{check-pkg-version-CgQ8N_ta.js → Analytics-CLEDjTfr.js} +22 -22
  2. package/dist/cjs/{Api-BTdkb3Zh.js → Api-c8NBCwu4.js} +1 -1
  3. package/dist/cjs/{Checkout-BTgAlgVL.js → Checkout-BsYZoJ0a.js} +3 -3
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  5. package/dist/cjs/{badge-sO_Hcamo.js → badge-DDksduwk.js} +1 -1
  6. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
  7. package/dist/cjs/bank-account-form_7.cjs.entry.js +410 -0
  8. package/dist/cjs/billing-form-schema-X1bkxteI.js +26 -0
  9. package/dist/cjs/{business-additional-questions-schema-e3GCIHk5.js → business-additional-questions-schema-C1Ot5vrv.js} +6 -6
  10. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  11. package/dist/cjs/{business-identity-schema-Diqj_WVQ.js → business-identity-schema-hk4UVEna.js} +10 -10
  12. package/dist/cjs/{business.service-DNoCHqtI.js → business.service-BjlK8M6t.js} +2 -2
  13. package/dist/cjs/{button-CCZd8WSY.js → button-0HYMPryx.js} +1 -1
  14. package/dist/cjs/{checkout.service-C3R0uykH.js → checkout.service-Bln6jCAj.js} +2 -2
  15. package/dist/cjs/{checkout.store-osqdxFMq.js → checkout.store-LEOetpmH.js} +1 -1
  16. package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -9
  17. package/dist/cjs/{payments-list-params-state-fVsfZZ5G.js → checkouts-list-params-state-DZUKBmLC.js} +1 -1
  18. package/dist/cjs/{checkouts-table-C1Jv_A7m.js → checkouts-table-CrpOOe_e.js} +2 -2
  19. package/dist/cjs/{config-state-BTfJl-LU.js → config-state-Dz9bnWHg.js} +1 -1
  20. package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper_4.cjs.entry.js} +101 -1
  21. package/dist/cjs/{dispute.service-CaA-mq-i.js → dispute.service-Bo84yh33.js} +2 -2
  22. package/dist/cjs/{index.esm-CVuJLXJZ.js → form-CWW8IM-X.js} +10509 -10509
  23. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  24. package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
  25. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  26. package/dist/cjs/{form-control-error-text-DPDsFdAT.js → form-control-error-text-CVPYL0lE.js} +1 -1
  27. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
  28. package/dist/cjs/{form-control-help-text-CT5HzEnX.js → form-control-help-text-B3jRgfoa.js} +1 -1
  29. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  30. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  31. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  32. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  33. package/dist/cjs/form-control-number.cjs.entry.js +3 -3
  34. package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
  35. package/dist/cjs/{get-payment-details-CnPsEZA8.js → get-payment-details-OrAuseBX.js} +2 -2
  36. package/dist/cjs/{get-subaccounts-CgOAdXG4.js → get-subaccounts-CoC0XYqj.js} +3 -3
  37. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +27 -8
  38. package/dist/cjs/{header-1--wdCXxjA.js → header-1-M-mc3bsa.js} +1 -1
  39. package/dist/cjs/{header-3-DxUQJ7TT.js → header-3-BnKbOjvz.js} +1 -1
  40. package/dist/cjs/hidden-input_2.cjs.entry.js +4 -4
  41. package/dist/cjs/{index-DEMVrrsF.js → index-BCtVWU61.js} +1 -1
  42. package/dist/cjs/{index-2GwnTbNA.js → index-D5bL1DOi.js} +17 -7
  43. package/dist/cjs/{insurance-state-BmAF1Sef.js → insurance-state-BsGy_svD.js} +2 -2
  44. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +22 -22
  45. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +13 -13
  46. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +35 -35
  47. package/dist/cjs/{bank-account-form.cjs.entry.js → justifi-bank-account-form.cjs.entry.js} +30 -8
  48. package/dist/cjs/{justifi-billing-information-form_2.cjs.entry.js → justifi-billing-information-form.cjs.entry.js} +7 -60
  49. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
  50. package/dist/cjs/justifi-business-form.cjs.entry.js +20 -20
  51. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  52. package/dist/cjs/{card-form.cjs.entry.js → justifi-card-form.cjs.entry.js} +31 -9
  53. package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
  54. package/dist/cjs/justifi-checkout-summary.cjs.entry.js +21 -0
  55. package/dist/cjs/justifi-checkout.cjs.entry.js +48 -93
  56. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  57. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
  58. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  60. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  61. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  62. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -13
  63. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -10
  64. package/dist/cjs/{justifi-checkout-summary_2.cjs.entry.js → justifi-modular-checkout.cjs.entry.js} +13 -26
  65. package/dist/cjs/justifi-order-terminals.cjs.entry.js +13 -13
  66. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +11 -11
  67. package/dist/cjs/justifi-payment-details.cjs.entry.js +12 -12
  68. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  69. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  70. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +13 -13
  71. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  72. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
  73. package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -11
  74. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +13 -13
  75. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  76. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
  77. package/dist/cjs/justifi-postal-code-form.cjs.entry.js +49 -0
  78. package/dist/cjs/justifi-refund-payment.cjs.entry.js +21 -21
  79. package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +31 -0
  80. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +7 -7
  81. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -11
  82. package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +80 -0
  83. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -6
  84. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +12 -12
  85. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +6 -6
  86. package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
  87. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +12 -12
  88. package/dist/cjs/loader.cjs.js +2 -2
  89. package/dist/cjs/{package-wSbEFwqE.js → package-D89BDRKu.js} +1 -1
  90. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  91. package/dist/cjs/payment-details-core.cjs.entry.js +6 -6
  92. package/dist/cjs/{payment.service-C-HKmIG6.js → payment.service-C0t9DRcu.js} +2 -2
  93. package/dist/cjs/payments-list-core.cjs.entry.js +10 -10
  94. package/dist/cjs/{payouts-list-params-state-fVsfZZ5G.js → payments-list-params-state-DZUKBmLC.js} +1 -1
  95. package/dist/cjs/{payments-status-DPqU5v9h.js → payments-status-DG50GuXR.js} +2 -2
  96. package/dist/cjs/{payments-table-BM3AoAJf.js → payments-table-BqxFc71K.js} +2 -2
  97. package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
  98. package/dist/cjs/{payout.service-BHU3EPR2.js → payout.service-DGeLS8BN.js} +2 -2
  99. package/dist/cjs/payouts-list-core.cjs.entry.js +10 -10
  100. package/dist/cjs/{checkouts-list-params-state-fVsfZZ5G.js → payouts-list-params-state-DZUKBmLC.js} +1 -1
  101. package/dist/cjs/{payouts-status-CU8aqIhH.js → payouts-status-meuI7eBr.js} +2 -2
  102. package/dist/cjs/{payouts-table-1HL4kk9B.js → payouts-table-iT2IauEa.js} +2 -2
  103. package/dist/cjs/{schema-validations-BSeMee-o.js → schema-validations-CllkToCZ.js} +31 -31
  104. package/dist/cjs/{skeleton-ByLavxr1.js → skeleton-CbZBGO47.js} +1 -1
  105. package/dist/cjs/{spinner-DOC4Ab7M.js → spinner-CIZFX7bz.js} +1 -1
  106. package/dist/cjs/{styled-host-IMxk64cc.js → styled-host-DXNHOiqW.js} +1 -1
  107. package/dist/cjs/{table-BgQP2M2-.js → table-CxvETNS1.js} +2 -2
  108. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  109. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +9 -9
  110. package/dist/cjs/{terminal-orders-list-params-state-fVsfZZ5G.js → terminal-orders-list-params-state-DZUKBmLC.js} +1 -1
  111. package/dist/cjs/{terminal-orders-table-C3KZTeE5.js → terminal-orders-table-Dw6uHG1R.js} +4 -4
  112. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  113. package/dist/cjs/{terminal.service-Bc1YJWi0.js → terminal.service-Ck6PIO3G.js} +2 -2
  114. package/dist/cjs/terminals-list-core.cjs.entry.js +9 -9
  115. package/dist/cjs/terminals-list-params-state-DZUKBmLC.js +22 -0
  116. package/dist/cjs/{terminals-table-yRGsrfBw.js → terminals-table-sf-s5v6D.js} +2 -2
  117. package/dist/cjs/{utils-bn0fXuc-.js → utils-wkdkLmDI.js} +1 -1
  118. package/dist/cjs/webcomponents.cjs.js +3 -3
  119. package/dist/collection/collection-manifest.json +1 -1
  120. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  121. package/dist/collection/components/checkout/billing-form/billing-form.js +5 -2
  122. package/dist/collection/components/checkout/card-form/card-form.js +1 -1
  123. package/dist/collection/components/checkout/checkout.js +37 -102
  124. package/dist/collection/components/checkout/new-payment-method.js +2 -2
  125. package/dist/collection/components/checkout/payment-method-options.js +26 -37
  126. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  127. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  128. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  129. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +2 -1
  130. package/dist/collection/components/modular-checkout/modular-checkout.js +2 -2
  131. package/dist/collection/components/modular-checkout-parts/bank-account.js +7 -28
  132. package/dist/collection/components/modular-checkout-parts/card-form.js +8 -29
  133. package/dist/docs.json +206 -240
  134. package/dist/esm/{check-pkg-version-BmebRZ4u.js → Analytics-B3nThWuq.js} +22 -22
  135. package/dist/esm/{Api-CqimcNgb.js → Api-C3T8XYbb.js} +1 -1
  136. package/dist/esm/{Checkout-CH19cJxH.js → Checkout-CV6qgU0r.js} +3 -3
  137. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  138. package/dist/esm/{badge-BoemLewg.js → badge-DHaTxWwu.js} +2 -2
  139. package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
  140. package/dist/esm/bank-account-form_7.entry.js +402 -0
  141. package/dist/esm/billing-form-schema-BQf2Ydp0.js +24 -0
  142. package/dist/esm/{business-additional-questions-schema-uQlQ8fXQ.js → business-additional-questions-schema-D00MNMDJ.js} +2 -2
  143. package/dist/esm/business-details-core.entry.js +5 -5
  144. package/dist/esm/{business-identity-schema-BsrgqgDl.js → business-identity-schema-pxSsAdgG.js} +2 -2
  145. package/dist/esm/{business.service-wY8gOZQr.js → business.service-BMABw2vX.js} +2 -2
  146. package/dist/esm/{button-BcLzheaP.js → button-5hc5r__m.js} +2 -2
  147. package/dist/esm/{checkout.service-Ci9Zkxiz.js → checkout.service-jmweME4d.js} +2 -2
  148. package/dist/esm/{checkout.store-DQrlfeus.js → checkout.store-Ffl2B_i4.js} +1 -1
  149. package/dist/esm/checkouts-list-core.entry.js +10 -10
  150. package/dist/esm/{checkouts-list-params-state-DhPyCV-V.js → checkouts-list-params-state-DFWVMJRJ.js} +1 -1
  151. package/dist/esm/{checkouts-table-ub2cX2KR.js → checkouts-table-BS_UiHaT.js} +3 -3
  152. package/dist/esm/{config-state-BjXhUj2q.js → config-state-B3mtRA6f.js} +1 -1
  153. package/dist/esm/{custom-popper_2.entry.js → custom-popper_4.entry.js} +101 -3
  154. package/dist/esm/{dispute.service-D3IjL7Z8.js → dispute.service-DWQ8DPZa.js} +2 -2
  155. package/dist/esm/{index.esm-BCNUj0Dx.js → form-BjGUIqxU.js} +10509 -10509
  156. package/dist/esm/form-alert_5.entry.js +2 -2
  157. package/dist/esm/form-control-checkbox.entry.js +4 -4
  158. package/dist/esm/form-control-date.entry.js +3 -3
  159. package/dist/esm/{form-control-error-text-C4vfc3el.js → form-control-error-text-C93L7yFm.js} +2 -2
  160. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  161. package/dist/esm/{form-control-help-text-Dsr1zpTw.js → form-control-help-text-p28euWGX.js} +2 -2
  162. package/dist/esm/form-control-help-text.entry.js +1 -1
  163. package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
  164. package/dist/esm/form-control-monetary.entry.js +4 -4
  165. package/dist/esm/form-control-number-masked_2.entry.js +3 -3
  166. package/dist/esm/form-control-number.entry.js +4 -4
  167. package/dist/esm/form-control-radio.entry.js +2 -2
  168. package/dist/esm/{get-payment-details-CmVKt1jR.js → get-payment-details-PSdVeuGc.js} +2 -2
  169. package/dist/esm/{get-subaccounts-BRX7HFGO.js → get-subaccounts-CownROrO.js} +3 -3
  170. package/dist/esm/gross-payment-chart-core.entry.js +28 -9
  171. package/dist/esm/{header-1-CmImLcLi.js → header-1-CUc5m0Ge.js} +2 -2
  172. package/dist/esm/{header-3-BMoxz2Hr.js → header-3-BXU3iN46.js} +2 -2
  173. package/dist/esm/hidden-input_2.entry.js +5 -5
  174. package/dist/esm/{index-Cf8VXyXg.js → index-BAq5IUBW.js} +1 -1
  175. package/dist/esm/{index-Bta_r52Z.js → index-N3w5zrz2.js} +17 -7
  176. package/dist/esm/{insurance-state-DMexHdvO.js → insurance-state-Br0fBMFI.js} +3 -3
  177. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +11 -11
  178. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
  179. package/dist/esm/justifi-additional-statement_8.entry.js +3 -3
  180. package/dist/esm/{bank-account-form.entry.js → justifi-bank-account-form.entry.js} +31 -9
  181. package/dist/{module/billing-form2.js → esm/justifi-billing-information-form.entry.js} +18 -61
  182. package/dist/esm/justifi-business-details.entry.js +10 -10
  183. package/dist/esm/justifi-business-form.entry.js +17 -17
  184. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  185. package/dist/esm/{card-form.entry.js → justifi-card-form.entry.js} +32 -10
  186. package/dist/esm/justifi-checkout-core.entry.js +10 -10
  187. package/dist/esm/justifi-checkout-summary.entry.js +19 -0
  188. package/dist/esm/justifi-checkout.entry.js +47 -92
  189. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
  190. package/dist/esm/justifi-checkouts-list.entry.js +14 -14
  191. package/dist/esm/justifi-config-provider.entry.js +3 -3
  192. package/dist/esm/justifi-details.entry.js +3 -3
  193. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  194. package/dist/esm/justifi-dispute-management.entry.js +8 -8
  195. package/dist/esm/justifi-dispute-notification_3.entry.js +12 -12
  196. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
  197. package/dist/esm/{justifi-checkout-summary_2.entry.js → justifi-modular-checkout.entry.js} +12 -24
  198. package/dist/esm/justifi-order-terminals.entry.js +12 -12
  199. package/dist/esm/justifi-owner-form_3.entry.js +11 -11
  200. package/dist/esm/justifi-payment-details.entry.js +11 -11
  201. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  202. package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
  203. package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
  204. package/dist/esm/justifi-payments-list-filters.entry.js +5 -5
  205. package/dist/esm/justifi-payments-list.entry.js +13 -13
  206. package/dist/esm/justifi-payout-details.entry.js +10 -10
  207. package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
  208. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
  209. package/dist/esm/justifi-payouts-list.entry.js +14 -14
  210. package/dist/esm/justifi-postal-code-form.entry.js +47 -0
  211. package/dist/esm/justifi-refund-payment.entry.js +14 -14
  212. package/dist/esm/justifi-saved-payment-methods.entry.js +29 -0
  213. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +8 -8
  214. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -9
  215. package/dist/{module/sezzle-payment-method.js → esm/justifi-sezzle-payment-method.entry.js} +14 -46
  216. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
  217. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  218. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
  219. package/dist/esm/justifi-terminals-list.entry.js +13 -13
  220. package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -11
  221. package/dist/esm/loader.js +3 -3
  222. package/dist/esm/{package-CJdXAC5R.js → package-rzqedGq4.js} +1 -1
  223. package/dist/esm/pagination-menu.entry.js +2 -2
  224. package/dist/esm/{parts-C71Mxtso.js → parts-_6eQgwfE.js} +1 -1
  225. package/dist/esm/payment-details-core.entry.js +7 -7
  226. package/dist/esm/{payment.service-ddFQWXPn.js → payment.service-u8UGq6gX.js} +2 -2
  227. package/dist/esm/payments-list-core.entry.js +11 -11
  228. package/dist/esm/{payments-list-params-state-DhPyCV-V.js → payments-list-params-state-DFWVMJRJ.js} +1 -1
  229. package/dist/esm/{payments-status-DvsFQolO.js → payments-status-BMqVM0kB.js} +2 -2
  230. package/dist/esm/{payments-table-CCKeaI5x.js → payments-table-BMIALfY5.js} +3 -3
  231. package/dist/esm/payout-details-core.entry.js +8 -8
  232. package/dist/esm/{payout.service-Ws4Pebcz.js → payout.service-CXW3oJqI.js} +2 -2
  233. package/dist/esm/payouts-list-core.entry.js +11 -11
  234. package/dist/esm/{payouts-list-params-state-DhPyCV-V.js → payouts-list-params-state-DFWVMJRJ.js} +1 -1
  235. package/dist/esm/{payouts-status-BkM4Gvme.js → payouts-status-BGGBJaXG.js} +2 -2
  236. package/dist/esm/{payouts-table-CqBOvPOo.js → payouts-table-BNPc0Z6X.js} +3 -3
  237. package/dist/esm/{schema-validations-DLWfpHyI.js → schema-validations-C7pC-de1.js} +2 -2
  238. package/dist/esm/{skeleton-BVM4XTj9.js → skeleton-C0KgFH0Z.js} +2 -2
  239. package/dist/esm/{spinner-BsxFRVXW.js → spinner-Dtab-HTx.js} +2 -2
  240. package/dist/esm/{styled-host-BSX_LSdk.js → styled-host-DtvbNFVU.js} +1 -1
  241. package/dist/esm/table-filters-menu.entry.js +3 -3
  242. package/dist/esm/{table-DxdC1lXb.js → table-wp341KhD.js} +3 -3
  243. package/dist/esm/terminal-orders-list-core.entry.js +10 -10
  244. package/dist/esm/{terminal-orders-list-params-state-DhPyCV-V.js → terminal-orders-list-params-state-DFWVMJRJ.js} +1 -1
  245. package/dist/esm/{terminal-orders-table-DV7nRYuE.js → terminal-orders-table-CzEC1eXm.js} +5 -5
  246. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  247. package/dist/esm/{terminal.service-DH8gRG1H.js → terminal.service-Cw0RbYs3.js} +2 -2
  248. package/dist/esm/terminals-list-core.entry.js +10 -10
  249. package/dist/esm/terminals-list-params-state-DFWVMJRJ.js +16 -0
  250. package/dist/esm/{terminals-table-DUHel128.js → terminals-table-CcKZ_9re.js} +3 -3
  251. package/dist/esm/{utils-B-aPFy3u.js → utils-BGp_IJEa.js} +2 -2
  252. package/dist/esm/webcomponents.js +4 -4
  253. package/dist/module/bank-account-form.js +1 -83
  254. package/dist/module/{bank-account.js → bank-account-form2.js} +12 -27
  255. package/dist/module/billing-form.js +19 -25
  256. package/dist/module/button.js +1 -1
  257. package/dist/module/card-form.js +1 -91
  258. package/dist/module/card-form2.js +15 -30
  259. package/dist/module/checkout-actions.js +58 -0
  260. package/dist/module/checkout-core.js +268 -0
  261. package/dist/module/gross-payment-chart-core2.js +24 -5
  262. package/dist/module/justifi-bank-account-form.js +100 -1
  263. package/dist/module/justifi-billing-information-form.js +89 -1
  264. package/dist/module/justifi-card-form.js +108 -1
  265. package/dist/module/justifi-checkout-core.js +1 -201
  266. package/dist/module/justifi-checkout-summary.js +32 -1
  267. package/dist/module/justifi-checkout.js +109 -104
  268. package/dist/module/justifi-modular-checkout.js +213 -1
  269. package/dist/module/justifi-new-payment-method.js +1 -214
  270. package/dist/module/justifi-order-terminals.js +1 -1
  271. package/dist/module/justifi-postal-code-form.js +81 -1
  272. package/dist/module/justifi-saved-payment-method.js +1 -57
  273. package/dist/module/justifi-saved-payment-methods.js +53 -1
  274. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  275. package/dist/module/justifi-sezzle-payment-method.js +108 -1
  276. package/dist/module/justifi-tokenize-payment-method.js +74 -8
  277. package/dist/module/new-payment-method.js +204 -0
  278. package/dist/module/package.js +1 -1
  279. package/dist/module/parts.js +1 -1
  280. package/dist/module/payment-method-options.js +100 -27
  281. package/dist/module/save-new-payment-method.js +1 -1
  282. package/dist/module/saved-payment-method.js +59 -0
  283. package/dist/module/season-interruption-insurance-core.js +2 -2
  284. package/dist/types/components/checkout/checkout.d.ts +9 -19
  285. package/dist/types/components/checkout/payment-method-options.d.ts +1 -2
  286. package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -1
  287. package/dist/types/components/modular-checkout-parts/bank-account.d.ts +3 -3
  288. package/dist/types/components/modular-checkout-parts/card-form.d.ts +2 -2
  289. package/dist/types/components.d.ts +1 -21
  290. package/dist/webcomponents/{p-badf50e2.entry.js → p-02e39fe2.entry.js} +1 -1
  291. package/dist/webcomponents/p-03ed0703.entry.js +1 -0
  292. package/dist/webcomponents/p-042c6784.entry.js +1 -0
  293. package/dist/webcomponents/p-05ab99e7.entry.js +1 -0
  294. package/dist/webcomponents/{p-54487455.entry.js → p-05d92d45.entry.js} +1 -1
  295. package/dist/webcomponents/{p-32d41de6.entry.js → p-0977a99a.entry.js} +1 -1
  296. package/dist/webcomponents/{p-e2adbafd.entry.js → p-0a7c3741.entry.js} +1 -1
  297. package/dist/webcomponents/{p-db13afe8.entry.js → p-0d8ebb69.entry.js} +1 -1
  298. package/dist/webcomponents/{p-114d2d7e.entry.js → p-0ed08f7b.entry.js} +1 -1
  299. package/dist/webcomponents/{p-dd5c8738.entry.js → p-0fc4a0df.entry.js} +1 -1
  300. package/dist/webcomponents/p-0lkrqFgg.js +1 -0
  301. package/dist/webcomponents/p-0wMiAwXe.js +1 -0
  302. package/dist/webcomponents/{p-c6f6cca0.entry.js → p-1301a9ae.entry.js} +1 -1
  303. package/dist/webcomponents/{p-b0c7f45a.entry.js → p-15db3b15.entry.js} +1 -1
  304. package/dist/webcomponents/{p-ed8eb110.entry.js → p-17727dd3.entry.js} +1 -1
  305. package/dist/webcomponents/p-1a0f21d1.entry.js +1 -0
  306. package/dist/webcomponents/{p-0d038c74.entry.js → p-31a9d45e.entry.js} +1 -1
  307. package/dist/webcomponents/p-33bf5d85.entry.js +1 -0
  308. package/dist/webcomponents/{p-90521984.entry.js → p-4126de9e.entry.js} +1 -1
  309. package/dist/webcomponents/{p-30b1b0d4.entry.js → p-41dffb12.entry.js} +1 -1
  310. package/dist/webcomponents/{p-a3245777.entry.js → p-46c0aa2e.entry.js} +1 -1
  311. package/dist/webcomponents/{p-fe5b7b4c.entry.js → p-4e38dfac.entry.js} +1 -1
  312. package/dist/webcomponents/{p-e2ac6f48.entry.js → p-4ed62ecf.entry.js} +1 -1
  313. package/dist/webcomponents/p-5f33350c.entry.js +1 -0
  314. package/dist/webcomponents/{p-f21e1351.entry.js → p-60abac93.entry.js} +1 -1
  315. package/dist/webcomponents/{p-ea883d7c.entry.js → p-6286917e.entry.js} +1 -1
  316. package/dist/webcomponents/p-631bbd5a.entry.js +1 -0
  317. package/dist/webcomponents/{p-7982b38b.entry.js → p-63e5e6f6.entry.js} +1 -1
  318. package/dist/webcomponents/{p-20ac139f.entry.js → p-64f047ea.entry.js} +1 -1
  319. package/dist/webcomponents/{p-28190487.entry.js → p-6d5833b4.entry.js} +1 -1
  320. package/dist/webcomponents/{p-498ef7fe.entry.js → p-6f6d7a87.entry.js} +1 -1
  321. package/dist/webcomponents/{p-be676a47.entry.js → p-6ff96203.entry.js} +1 -1
  322. package/dist/webcomponents/p-716dc79c.entry.js +1 -0
  323. package/dist/webcomponents/p-738ee098.entry.js +1 -0
  324. package/dist/webcomponents/{p-655e9c99.entry.js → p-783b70b5.entry.js} +1 -1
  325. package/dist/webcomponents/{p-0c13f2da.entry.js → p-7a8a06d6.entry.js} +1 -1
  326. package/dist/webcomponents/{p-62308de3.entry.js → p-7c466cc9.entry.js} +1 -1
  327. package/dist/webcomponents/{p-4cdc323c.entry.js → p-7c6f2fad.entry.js} +1 -1
  328. package/dist/webcomponents/p-7e484d46.entry.js +1 -0
  329. package/dist/webcomponents/{p-b122d960.entry.js → p-83037fd2.entry.js} +1 -1
  330. package/dist/webcomponents/{p-1d59c747.entry.js → p-84df9f26.entry.js} +1 -1
  331. package/dist/webcomponents/{p-85b73bd5.entry.js → p-8ba23f7f.entry.js} +1 -1
  332. package/dist/webcomponents/{p-fa781ff0.entry.js → p-8bb3513f.entry.js} +1 -1
  333. package/dist/webcomponents/p-8fefebd7.entry.js +1 -0
  334. package/dist/webcomponents/{p-cbfb26e2.entry.js → p-93a843db.entry.js} +1 -1
  335. package/dist/webcomponents/p-9b1992ef.entry.js +1 -0
  336. package/dist/webcomponents/p-9ba825c5.entry.js +1 -0
  337. package/dist/webcomponents/p-9c6479a4.entry.js +1 -0
  338. package/dist/webcomponents/{p-ea664ada.entry.js → p-9fe2281c.entry.js} +1 -1
  339. package/dist/webcomponents/{p-D_FOQEGU.js → p-BByypogb.js} +1 -1
  340. package/dist/webcomponents/p-BI7GlCtv.js +1 -0
  341. package/dist/webcomponents/p-BJatoeR1.js +1 -0
  342. package/dist/webcomponents/p-BKatPL5G.js +1 -0
  343. package/dist/webcomponents/{p-Cl-Q3cHB.js → p-BXeHgiPz.js} +1 -1
  344. package/dist/webcomponents/p-BaoXNxnc.js +1 -0
  345. package/dist/webcomponents/p-BgiXKaf2.js +1 -0
  346. package/dist/webcomponents/p-BmgpToYI.js +1 -0
  347. package/dist/webcomponents/{p-1tXUo5Ef.js → p-BnvoOeKL.js} +1 -1
  348. package/dist/webcomponents/p-Bond4qGX.js +1 -0
  349. package/dist/webcomponents/p-BooprPq0.js +1 -0
  350. package/dist/webcomponents/{p-BZAglFez.js → p-C39xg5_f.js} +1 -1
  351. package/dist/webcomponents/{p-JOSiCHl7.js → p-C8Zhkgm5.js} +1 -1
  352. package/dist/webcomponents/{p-C8EG4ZSX.js → p-CAdO_ZNx.js} +1 -1
  353. package/dist/webcomponents/p-CCPoezRw.js +1 -0
  354. package/dist/webcomponents/p-CKRDBISo.js +1 -0
  355. package/dist/webcomponents/p-CXLazxt0.js +1 -0
  356. package/dist/webcomponents/{p-kfHhaHAJ.js → p-CdkOB2ri.js} +1 -1
  357. package/dist/webcomponents/p-Cf4TMP3p.js +1 -0
  358. package/dist/webcomponents/{p-CBs671Ol.js → p-CfBKn_Vl.js} +1 -1
  359. package/dist/webcomponents/p-Cjf9yu8r.js +1 -0
  360. package/dist/webcomponents/p-Cwt_9Jzb.js +1 -0
  361. package/dist/webcomponents/p-D5ny0x8_.js +1 -0
  362. package/dist/webcomponents/p-D7js9xfx.js +1 -0
  363. package/dist/webcomponents/p-D7uH6T8P.js +1 -0
  364. package/dist/webcomponents/{p-Yj41tobi.js → p-DHvfrLVU.js} +1 -1
  365. package/dist/webcomponents/p-DLopwJ61.js +1 -0
  366. package/dist/webcomponents/p-DRKOMqbX.js +1 -0
  367. package/dist/webcomponents/{p-DFPGAF4g.js → p-DXJXAroG.js} +1 -1
  368. package/dist/webcomponents/{p-D3BIZZrc.js → p-Dcbfnfn2.js} +1 -1
  369. package/dist/webcomponents/{p-_P2I6GdZ.js → p-DhyQbCOq.js} +1 -1
  370. package/dist/webcomponents/{p-CO90ONTY.js → p-Dqx8L05_.js} +1 -1
  371. package/dist/webcomponents/p-DyvT8iXz.js +1 -0
  372. package/dist/webcomponents/p-MNmf3fQL.js +1 -0
  373. package/dist/webcomponents/p-N3w5zrz2.js +2 -0
  374. package/dist/webcomponents/{p-DLr6u3Be.js → p-Rx3SLAbu.js} +1 -1
  375. package/dist/webcomponents/p-Smvec9tp.js +1 -0
  376. package/dist/webcomponents/p-XTXkuHkQ.js +1 -0
  377. package/dist/webcomponents/{p-C71Mxtso.js → p-_6eQgwfE.js} +1 -1
  378. package/dist/webcomponents/{p-7efbe6e6.entry.js → p-a76e0f42.entry.js} +1 -1
  379. package/dist/webcomponents/{p-f1dcc9c2.entry.js → p-acdf6a5f.entry.js} +1 -1
  380. package/dist/webcomponents/{p-9a4b9734.entry.js → p-bac895b4.entry.js} +1 -1
  381. package/dist/webcomponents/p-bc05e051.entry.js +1 -0
  382. package/dist/webcomponents/p-c102dea5.entry.js +1 -0
  383. package/dist/webcomponents/{p-95aada97.entry.js → p-c4d2ff85.entry.js} +1 -1
  384. package/dist/webcomponents/{p-1debe4fc.entry.js → p-cb84a2e6.entry.js} +1 -1
  385. package/dist/webcomponents/{p-cc7d0b8c.entry.js → p-cdc71a77.entry.js} +1 -1
  386. package/dist/webcomponents/p-ce242f4c.entry.js +1 -0
  387. package/dist/webcomponents/p-d0d83153.entry.js +1 -0
  388. package/dist/webcomponents/{p-cc26a8fa.entry.js → p-d5ada96f.entry.js} +1 -1
  389. package/dist/webcomponents/p-d81f30f6.entry.js +1 -0
  390. package/dist/webcomponents/p-d90e981c.entry.js +1 -0
  391. package/dist/webcomponents/{p-a8f1165e.entry.js → p-da961813.entry.js} +1 -1
  392. package/dist/webcomponents/{p-d5f95784.entry.js → p-dadd593a.entry.js} +1 -1
  393. package/dist/webcomponents/{p-f0a849be.entry.js → p-de969ec7.entry.js} +1 -1
  394. package/dist/webcomponents/p-e3437894.entry.js +1 -0
  395. package/dist/webcomponents/p-eb6f1a3f.entry.js +1 -0
  396. package/dist/webcomponents/p-ebc0b06d.entry.js +1 -0
  397. package/dist/webcomponents/p-ecfab304.entry.js +1 -0
  398. package/dist/webcomponents/{p-93564eb7.entry.js → p-ef520bb8.entry.js} +1 -1
  399. package/dist/webcomponents/{p-31b3575b.entry.js → p-efa7aef1.entry.js} +1 -1
  400. package/dist/webcomponents/{p-B1jCcGW-.js → p-eilUGO3o.js} +1 -1
  401. package/dist/webcomponents/p-fd7c5ac5.entry.js +1 -0
  402. package/dist/webcomponents/{p-c1dabcc9.entry.js → p-feea4bfd.entry.js} +6 -6
  403. package/dist/webcomponents/p-jA8bbxkp.js +1 -0
  404. package/dist/webcomponents/{p-BEDtXmpq.js → p-o5iASgog.js} +1 -1
  405. package/dist/webcomponents/p-rzqedGq4.js +1 -0
  406. package/dist/webcomponents/p-w128-0Mj.js +1 -0
  407. package/dist/webcomponents/webcomponents.esm.js +1 -1
  408. package/package.json +1 -1
  409. package/dist/cjs/form-control-select_2.cjs.entry.js +0 -105
  410. package/dist/cjs/justifi-bank-account-form_4.cjs.entry.js +0 -234
  411. package/dist/cjs/justifi-new-payment-method.cjs.entry.js +0 -99
  412. package/dist/cjs/justifi-payment-method-options_3.cjs.entry.js +0 -166
  413. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +0 -32
  414. package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +0 -22
  415. package/dist/esm/form-control-select_2.entry.js +0 -102
  416. package/dist/esm/justifi-bank-account-form_4.entry.js +0 -229
  417. package/dist/esm/justifi-billing-information-form_2.entry.js +0 -100
  418. package/dist/esm/justifi-new-payment-method.entry.js +0 -97
  419. package/dist/esm/justifi-payment-method-options_3.entry.js +0 -162
  420. package/dist/esm/justifi-saved-payment-method.entry.js +0 -30
  421. package/dist/esm/terminals-list-params-state-DhPyCV-V.js +0 -16
  422. package/dist/module/header-3.js +0 -8
  423. package/dist/module/modular-checkout.js +0 -269
  424. package/dist/module/postal-code-form.js +0 -83
  425. package/dist/module/saved-payment-methods.js +0 -55
  426. package/dist/module/summary.js +0 -34
  427. package/dist/webcomponents/p-07e8c50a.entry.js +0 -1
  428. package/dist/webcomponents/p-0d24f707.entry.js +0 -1
  429. package/dist/webcomponents/p-0f07e5d2.entry.js +0 -1
  430. package/dist/webcomponents/p-16c567ac.entry.js +0 -1
  431. package/dist/webcomponents/p-3523e4d2.entry.js +0 -1
  432. package/dist/webcomponents/p-3c172b0a.entry.js +0 -1
  433. package/dist/webcomponents/p-55b2ccd4.entry.js +0 -1
  434. package/dist/webcomponents/p-56368e10.entry.js +0 -1
  435. package/dist/webcomponents/p-6ae0dad9.entry.js +0 -1
  436. package/dist/webcomponents/p-6ed72565.entry.js +0 -1
  437. package/dist/webcomponents/p-803b249d.entry.js +0 -1
  438. package/dist/webcomponents/p-819c5da9.entry.js +0 -1
  439. package/dist/webcomponents/p-8a2d963a.entry.js +0 -1
  440. package/dist/webcomponents/p-BRvTM0jE.js +0 -1
  441. package/dist/webcomponents/p-BdTK0wi9.js +0 -1
  442. package/dist/webcomponents/p-BeOlrj_S.js +0 -1
  443. package/dist/webcomponents/p-BjIcn6FF.js +0 -1
  444. package/dist/webcomponents/p-BoGb-Wsw.js +0 -1
  445. package/dist/webcomponents/p-Bta_r52Z.js +0 -2
  446. package/dist/webcomponents/p-BvkP2v3x.js +0 -1
  447. package/dist/webcomponents/p-C8rAwXW9.js +0 -1
  448. package/dist/webcomponents/p-CA9D3qnA.js +0 -1
  449. package/dist/webcomponents/p-CDTncSrX.js +0 -1
  450. package/dist/webcomponents/p-CGCMYhyV.js +0 -1
  451. package/dist/webcomponents/p-CJdXAC5R.js +0 -1
  452. package/dist/webcomponents/p-CbGBEkk3.js +0 -1
  453. package/dist/webcomponents/p-DHP6oxsO.js +0 -1
  454. package/dist/webcomponents/p-DT6jDcoi.js +0 -1
  455. package/dist/webcomponents/p-DVnVdicA.js +0 -1
  456. package/dist/webcomponents/p-DX1Drndq.js +0 -1
  457. package/dist/webcomponents/p-Db-JSm6-.js +0 -1
  458. package/dist/webcomponents/p-Dc10zfEZ.js +0 -1
  459. package/dist/webcomponents/p-DnX5CZFd.js +0 -1
  460. package/dist/webcomponents/p-Dw516k9e.js +0 -1
  461. package/dist/webcomponents/p-DwxSNAz7.js +0 -1
  462. package/dist/webcomponents/p-Fa3dQnb9.js +0 -1
  463. package/dist/webcomponents/p-IrS5pxMU.js +0 -1
  464. package/dist/webcomponents/p-RadC5UjV.js +0 -1
  465. package/dist/webcomponents/p-SuXHDcwL.js +0 -1
  466. package/dist/webcomponents/p-abcde13f.entry.js +0 -1
  467. package/dist/webcomponents/p-bf9afbe6.entry.js +0 -1
  468. package/dist/webcomponents/p-c4989fc1.entry.js +0 -1
  469. package/dist/webcomponents/p-cc5dfa3d.entry.js +0 -1
  470. package/dist/webcomponents/p-d039c1ea.entry.js +0 -1
  471. package/dist/webcomponents/p-d6tXI5Iw.js +0 -1
  472. package/dist/webcomponents/p-dad85acd.entry.js +0 -1
  473. package/dist/webcomponents/p-f165c5fc.entry.js +0 -1
  474. package/dist/webcomponents/p-f2d283e5.entry.js +0 -1
  475. package/dist/webcomponents/p-f55f054a.entry.js +0 -1
  476. package/dist/webcomponents/p-f7ae2df8.entry.js +0 -1
  477. package/dist/webcomponents/p-f7ef66ba.entry.js +0 -1
  478. package/dist/webcomponents/p-f8750427.entry.js +0 -1
  479. package/dist/webcomponents/p-uLUlLQpP.js +0 -1
@@ -1,13 +1,32 @@
1
- import { p as packageJson } from './package-CJdXAC5R.js';
2
- import { A as Api } from './Api-CqimcNgb.js';
1
+ import { p as packageJson } from './package-rzqedGq4.js';
2
+ import { A as Api } from './Api-C3T8XYbb.js';
3
3
  import './ComponentError-BhrFjjAs.js';
4
- import './Checkout-CH19cJxH.js';
4
+ import './Checkout-CV6qgU0r.js';
5
5
  import './Pagination-CLHwhyvu.js';
6
6
  import './Payment-BEvE6jAC.js';
7
7
  import './Refund-BKe90wSq.js';
8
8
  import './Business-BCoP0TAV.js';
9
9
  import './Dispute-7MWRbTXI.js';
10
10
 
11
+ const latestVersion = async (packageName) => {
12
+ const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
13
+ const json = await response.json();
14
+ return json.version;
15
+ };
16
+ const checkPkgVersion = async () => {
17
+ const version = packageJson.version;
18
+ const packageName = packageJson.name;
19
+ const latest = await latestVersion(packageName);
20
+ // remove rc from version and everything that comes after -rc
21
+ const latestNotRC = latest.replace(/-rc.*/, '');
22
+ // checkif there's a major version difference
23
+ const versionParts = version.split('.');
24
+ const latestParts = latest.split('.');
25
+ if (versionParts[0] !== latestParts[0]) {
26
+ console.warn(`The package ${packageName} is out of date. The latest version is ${latestNotRC}. Please update.`);
27
+ }
28
+ };
29
+
11
30
  const api = Api();
12
31
  class AnalyticsService {
13
32
  async record(body) {
@@ -90,23 +109,4 @@ class JustifiAnalytics {
90
109
  }
91
110
  }
92
111
 
93
- const latestVersion = async (packageName) => {
94
- const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
95
- const json = await response.json();
96
- return json.version;
97
- };
98
- const checkPkgVersion = async () => {
99
- const version = packageJson.version;
100
- const packageName = packageJson.name;
101
- const latest = await latestVersion(packageName);
102
- // remove rc from version and everything that comes after -rc
103
- const latestNotRC = latest.replace(/-rc.*/, '');
104
- // checkif there's a major version difference
105
- const versionParts = version.split('.');
106
- const latestParts = latest.split('.');
107
- if (versionParts[0] !== latestParts[0]) {
108
- console.warn(`The package ${packageName} is out of date. The latest version is ${latestNotRC}. Please update.`);
109
- }
110
- };
111
-
112
112
  export { JustifiAnalytics as J, checkPkgVersion as c };
@@ -1,4 +1,4 @@
1
- import { w as waitForConfig, c as configState } from './config-state-BjXhUj2q.js';
1
+ import { w as waitForConfig, c as configState } from './config-state-B3mtRA6f.js';
2
2
  import { g as generateId } from './utils-BjLkBMLe.js';
3
3
 
4
4
  const Api = () => {
@@ -17,7 +17,7 @@ class Completion {
17
17
  this.updated_at = data.updated_at;
18
18
  }
19
19
  }
20
- let Checkout$1 = class Checkout {
20
+ class Checkout {
21
21
  constructor(data) {
22
22
  var _a;
23
23
  this.id = data.id;
@@ -68,7 +68,7 @@ let Checkout$1 = class Checkout {
68
68
  formattedPaymentAmount(amount) {
69
69
  return formatCurrency(amount, this.payment_currency);
70
70
  }
71
- };
71
+ }
72
72
  var ICheckoutPaymentMode;
73
73
  (function (ICheckoutPaymentMode) {
74
74
  ICheckoutPaymentMode["bnpl"] = "Buy Now Pay Later";
@@ -96,4 +96,4 @@ var CompletionStatuses;
96
96
  CompletionStatuses["succeeded"] = "succeeded";
97
97
  })(CompletionStatuses || (CompletionStatuses = {}));
98
98
 
99
- export { Checkout$1 as C, ICheckoutStatus as I, ICheckoutPaymentModeParam as a };
99
+ export { Checkout as C, ICheckoutStatus as I, ICheckoutPaymentModeParam as a };
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h, H as Host } from './index-Bta_r52Z.js';
2
- import { c as DetailItem, D as DetailSectionTitle } from './utils-B-aPFy3u.js';
1
+ import { r as registerInstance, h, H as Host } from './index-N3w5zrz2.js';
2
+ import { c as DetailItem, D as DetailSectionTitle } from './utils-BGp_IJEa.js';
3
3
  import { m as isEmptyObject, i as snakeCaseToHumanReadable, n as formatMediumDate } from './utils-BjLkBMLe.js';
4
- import './parts-C71Mxtso.js';
4
+ import './parts-_6eQgwfE.js';
5
5
  import './_commonjsHelpers-BFTU3MAI.js';
6
6
 
7
7
  const AdditionalQuestionsDetails = class {
@@ -1,5 +1,5 @@
1
- import { h } from './index-Bta_r52Z.js';
2
- import { E as badgeDark, F as badgeLight, G as badgeInfo, H as badgeWarning, I as badgeDanger, J as badgeSuccess, K as badgeSecondary, L as badgePrimary, M as badge } from './parts-C71Mxtso.js';
1
+ import { h } from './index-N3w5zrz2.js';
2
+ import { y as badgeDark, z as badgeLight, A as badgeInfo, B as badgeWarning, C as badgeDanger, D as badgeSuccess, E as badgeSecondary, F as badgePrimary, G as badge } from './parts-_6eQgwfE.js';
3
3
 
4
4
  var BadgeVariant;
5
5
  (function (BadgeVariant) {
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, h, H as Host, c as createEvent, a as getElement } from './index-Bta_r52Z.js';
2
- import './config-state-BjXhUj2q.js';
1
+ import { r as registerInstance, h, H as Host, c as createEvent, a as getElement } from './index-N3w5zrz2.js';
2
+ import './config-state-B3mtRA6f.js';
3
3
  import { i as snakeCaseToHumanReadable, d as formatDate, j as formatTimeSeconds } from './utils-BjLkBMLe.js';
4
4
  import './ComponentError-BhrFjjAs.js';
5
- import './Checkout-CH19cJxH.js';
5
+ import './Checkout-CV6qgU0r.js';
6
6
  import './Pagination-CLHwhyvu.js';
7
7
  import './Payment-BEvE6jAC.js';
8
8
  import { E as EntityDocumentType } from './Refund-BKe90wSq.js';
@@ -11,11 +11,11 @@ import './Dispute-7MWRbTXI.js';
11
11
  import { c as bankAccountTypeOptions } from './business-form-options-CgssATyg.js';
12
12
  import './event-types-XYgDHrVL.js';
13
13
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
14
- import { Y as card, C as heading2, ak as table, O as tableHeadCell, al as tableCell, c as input, l as label, b as inputInvalid, U as inputDisabled, a as inputFocused } from './parts-C71Mxtso.js';
15
- import { S as Skeleton } from './skeleton-BVM4XTj9.js';
14
+ import { Z as card, x as heading2, ak as table, I as tableHeadCell, al as tableCell, c as input, l as label, b as inputInvalid, T as inputDisabled, a as inputFocused } from './parts-_6eQgwfE.js';
15
+ import { S as Skeleton } from './skeleton-C0KgFH0Z.js';
16
16
  import './event-types-CZfYo5-1.js';
17
- import { F as FormControlErrorText } from './form-control-error-text-C4vfc3el.js';
18
- import './index-Cf8VXyXg.js';
17
+ import { F as FormControlErrorText } from './form-control-error-text-C93L7yFm.js';
18
+ import './index-BAq5IUBW.js';
19
19
  import './_commonjsHelpers-BFTU3MAI.js';
20
20
  import './helpers-Mu7LQT-w.js';
21
21
  import './state-options-BX8GieXu.js';
@@ -0,0 +1,402 @@
1
+ import { h, r as registerInstance, H as Host, c as createEvent } from './index-N3w5zrz2.js';
2
+ import { S as Skeleton } from './skeleton-C0KgFH0Z.js';
3
+ import { w as waitForConfig, c as configState } from './config-state-B3mtRA6f.js';
4
+ import { c as create$3, F as FormController } from './form-BjGUIqxU.js';
5
+ import { p as postalValidation, s as stateValidation, c as cityValidation, l as lineTwoValidation, a as lineOneValidation, i as identityNameValidation } from './schema-validations-C7pC-de1.js';
6
+ import { d as billingForm, r as radioListItem } from './parts-_6eQgwfE.js';
7
+ import { H as Header3 } from './header-3-BXU3iN46.js';
8
+ import './event-types-CZfYo5-1.js';
9
+ import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
10
+ import { S as StateOptions } from './state-options-BX8GieXu.js';
11
+ import { a as PaymentMethodTypes } from './Payment-BEvE6jAC.js';
12
+ import { P as PaymentMethodOption, C as CardBrandLabels } from './payment-method-option-utils-8n_ALxec.js';
13
+ import './index-BAq5IUBW.js';
14
+ import './_commonjsHelpers-BFTU3MAI.js';
15
+ import './business-form-options-CgssATyg.js';
16
+ import './Business-BCoP0TAV.js';
17
+ import './helpers-Mu7LQT-w.js';
18
+ import './utils-BjLkBMLe.js';
19
+ import './Dispute-7MWRbTXI.js';
20
+
21
+ const BankAccountFormSkeleton = (props) => {
22
+ const { isReady } = props;
23
+ if (isReady) {
24
+ return null;
25
+ }
26
+ return (h("div", { class: "container-fluid p-0" },
27
+ h("div", { class: "row mb-3" },
28
+ h("div", { class: "col-12 align-content-end" },
29
+ h(Skeleton, { height: "18px", width: "120px" }),
30
+ h(Skeleton, { height: "36px" }))),
31
+ h("div", { class: "row" },
32
+ h("div", { class: "col-12 align-content-end" },
33
+ h(Skeleton, { height: "18px", width: "110px" }),
34
+ h(Skeleton, { height: "36px" })))));
35
+ };
36
+
37
+ const BankAccountForm = class {
38
+ constructor(hostRef) {
39
+ registerInstance(this, hostRef);
40
+ this.isReady = false;
41
+ }
42
+ async componentWillLoad() {
43
+ await waitForConfig();
44
+ this.iframeOrigin = configState.iframeOrigin;
45
+ }
46
+ componentDidRender() {
47
+ const elements = [
48
+ this.accountNumberIframeElement,
49
+ this.routingNumberIframeElement,
50
+ ];
51
+ Promise.all(elements.map((element) => {
52
+ return new Promise((resolve) => {
53
+ element.addEventListener('iframeLoaded', () => { resolve(); });
54
+ });
55
+ })).then(() => {
56
+ this.isReady = true;
57
+ });
58
+ }
59
+ async validate() {
60
+ const accountNumberIsValid = await this.accountNumberIframeElement.validate();
61
+ const routingNumberIsValid = await this.routingNumberIframeElement.validate();
62
+ return accountNumberIsValid && routingNumberIsValid;
63
+ }
64
+ async tokenize(clientId, paymentMethodMetadata, account) {
65
+ return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
66
+ }
67
+ render() {
68
+ return (h(Host, { key: 'cdddf967e7142731f3b5aef31bfc3d004ce97733' }, h(BankAccountFormSkeleton, { key: '5eafa58bd31bbbd5ff5ca90a036fc696f7bd05fb', isReady: this.isReady }), h("div", { key: 'c8486e0337df9a61bd1979014f3de53eef22b071', class: "container-fluid p-0", style: {
69
+ opacity: this.isReady ? '1' : '0',
70
+ height: this.isReady ? 'auto' : '0',
71
+ } }, h("div", { key: '3db2146e4d770c024efab6e777dbfa4ace26f23a', class: "row mb-3" }, h("iframe-input", { key: '5f9da4873119c1a1e771c7663b98e283766a37a1', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '7ed20c940afd5ffc4348e4102a4cfd351d8e2198', class: "row" }, h("iframe-input", { key: '0667de245764f1d9181682beb674c4a376447a68', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
72
+ }
73
+ };
74
+
75
+ const CardFormSkeleton = (props) => {
76
+ const { isReady } = props;
77
+ if (isReady) {
78
+ return null;
79
+ }
80
+ return (h("div", { class: "container-fluid p-0" },
81
+ h("div", { class: "mb-3" },
82
+ h(Skeleton, { height: "18px", width: "100px" }),
83
+ h(Skeleton, { height: "36px" })),
84
+ h("div", { class: "row" },
85
+ h("div", { class: "col-4 align-content-end" },
86
+ h(Skeleton, { height: "18px", width: "80px" }),
87
+ h(Skeleton, { height: "36px" })),
88
+ h("div", { class: "col-4 align-content-end" },
89
+ h(Skeleton, { height: "36px" })),
90
+ h("div", { class: "col-4 align-content-end" },
91
+ h(Skeleton, { height: "18px", width: "30px" }),
92
+ h(Skeleton, { height: "36px" })))));
93
+ };
94
+
95
+ const CardForm = class {
96
+ constructor(hostRef) {
97
+ registerInstance(this, hostRef);
98
+ this.isReady = false;
99
+ }
100
+ async componentWillLoad() {
101
+ await waitForConfig();
102
+ this.iframeOrigin = configState.iframeOrigin;
103
+ }
104
+ componentDidRender() {
105
+ const elements = [
106
+ this.cardNumberIframeElement,
107
+ this.expirationMonthIframeElement,
108
+ this.expirationYearIframeElement,
109
+ this.cvvIframeElement,
110
+ ];
111
+ Promise.all(elements.map((element) => {
112
+ return new Promise((resolve) => {
113
+ element.addEventListener('iframeLoaded', () => { resolve(); });
114
+ });
115
+ })).then(() => {
116
+ this.isReady = true;
117
+ });
118
+ }
119
+ async validate() {
120
+ const cardNumberIsValid = await this.cardNumberIframeElement.validate();
121
+ const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
122
+ const expirationYearIsValid = await this.expirationYearIframeElement.validate();
123
+ const cvvIsValid = await this.cvvIframeElement.validate();
124
+ return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
125
+ }
126
+ async tokenize(clientId, paymentMethodMetadata, account) {
127
+ return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
128
+ }
129
+ render() {
130
+ return (h(Host, { key: 'c43351c7ab1eb6bf413f162634f55007798bb076' }, h(CardFormSkeleton, { key: 'f0a29497de2270108868e892d666b552dea27a1e', isReady: this.isReady }), h("div", { key: '2734b111c1f2f2275435d2141445ac30482946be', class: "container-fluid p-0", style: {
131
+ opacity: this.isReady ? '1' : '0',
132
+ height: this.isReady ? 'auto' : '0',
133
+ } }, h("div", { key: '036c359caaf8fc36fa6ba56bbcad5d01de1fe9c9', class: "mb-3" }, h("iframe-input", { key: '9baf7dc76ff18f8dee6e6cd08b93e1ba155d5cf2', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '080769719aa9b0d6abc9b18c46247eecd6428833', class: "d-flex align-items-start" }, h("div", { key: 'b3a825ed849ec0032d4a9018537f8ffab4b93ca3', class: "flex-fill me-3" }, h("iframe-input", { key: '5f60eb2d3b3e1303e1a0f6a3f0cd60270bb2d0b8', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: 'cfd000502f10593b59608e13f5de7911c546d030', class: "flex-fill me-3" }, h("iframe-input", { key: 'ab2a45264fe5890c171d03000f30720eafe354b5', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: '637516bfd8030e56c9b1e97edfd3a635edb95f20', class: "flex-fill" }, h("iframe-input", { key: 'e407cc2470841fe12b1bdb84bbc8ecfb0165c72d', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
134
+ }
135
+ };
136
+
137
+ const billingFormSchema = (postalOnly) => {
138
+ const fullBillingForm = create$3({
139
+ name: identityNameValidation.required('Enter full name'),
140
+ address_line1: lineOneValidation.required('Enter street address'),
141
+ address_line2: lineTwoValidation.nullable(),
142
+ address_city: cityValidation.required('Enter city'),
143
+ address_state: stateValidation.required('Select state'),
144
+ address_postal_code: postalValidation.required('Enter postal code')
145
+ });
146
+ const postalForm = create$3({
147
+ name: identityNameValidation.nullable(),
148
+ address_line1: lineOneValidation.nullable(),
149
+ address_line2: lineTwoValidation.nullable(),
150
+ address_city: cityValidation.nullable(),
151
+ address_state: stateValidation.nullable(),
152
+ address_postal_code: postalValidation.required('Enter postal code')
153
+ });
154
+ return postalOnly ? postalForm : fullBillingForm;
155
+ };
156
+
157
+ const BillingForm = class {
158
+ constructor(hostRef) {
159
+ registerInstance(this, hostRef);
160
+ this.errors = {};
161
+ this.inputHandler = (name, value) => {
162
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
163
+ };
164
+ }
165
+ componentWillLoad() {
166
+ const postalOnly = this.isPostalOnlyMode;
167
+ this.formController = new FormController(billingFormSchema(postalOnly));
168
+ }
169
+ componentDidLoad() {
170
+ this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
171
+ this.formController.errors.subscribe(errors => {
172
+ this.errors = Object.assign({}, errors);
173
+ });
174
+ }
175
+ get isPostalOnlyMode() {
176
+ return this.paymentMethodType === 'card' && this.hideCardBillingForm;
177
+ }
178
+ get hideAllBillingFields() {
179
+ return this.paymentMethodType === 'bankAccount' && this.hideBankAccountBillingForm;
180
+ }
181
+ async getValues() {
182
+ return this.formController.values.getValue();
183
+ }
184
+ async fill(fields) {
185
+ this.formController.setInitialValues(fields);
186
+ }
187
+ async validate() {
188
+ const isValid = await this.formController.validate();
189
+ const errors = this.formController.errors.getValue();
190
+ return { isValid, errors };
191
+ }
192
+ render() {
193
+ const billingFormDefaultValue = this.formController.getInitialValues();
194
+ const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
195
+ return (h(Host, { key: 'ffffb2d8a4571222645d3c47eb1e2286b8597140' }, h("div", { key: '69b4f6c623cacbf32a30a9b9f23c3de427835c25', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '96c0781a9b3dd7c5ef0b75ac8667664fee0bd95e', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '97380a90146a9732594f1c356fab952089280f99' }, h("fieldset", { key: 'fd8bbea485c10633f1d8cca62b222a8abb0d022f' }, this.legend && h("legend", { key: '8febee534a2d055093309e8f8f06078b0b35f4e4' }, this.legend), h("div", { key: '16ac8abe899cdb964d83322fa74cb00f737ab338', class: "row gy-3" }, h("div", { key: '866f73c45b807aeeea4e6addf4de5f2d3a1a232d', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '1734b2aac3eb0508f9ae2e4bf41836fc5dd71cad', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '569c0dc60b47d3e9077af401b720d7777c903bde', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '74406a7f4efde53a41141a218d246408c4807fc8', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: 'a7f3b7f137b0dd6a92cce6999ef65f13bcff4a31', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '8b6d28170c44af6b7701499a8a4626749d4cd36d', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '3a9031a0ddbea7e1020c420cdd6811ea9c86b9e4', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '730b395bb97c349a63f669669830cbce6ba86f83', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '7998420d30b1957a086303862f7200f20541ead2', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'b94b623a26891646957f25e59cb03038a989eabf', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '7b0d6eae7eb90f4b33b3e73f920b6ea25920f809', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: '703e429c7999f5cc143c5648bd9fbdc4f5bb6ee9', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
196
+ }
197
+ };
198
+
199
+ const PaymentMethodTypeLabels = {
200
+ bankAccount: 'New bank account',
201
+ card: 'New credit or debit card',
202
+ };
203
+ const NewPaymentMethod = class {
204
+ constructor(hostRef) {
205
+ registerInstance(this, hostRef);
206
+ this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected");
207
+ this.saveNewPaymentMethodChecked = false;
208
+ this.onPaymentMethodOptionClick = (e) => {
209
+ e.preventDefault();
210
+ this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
211
+ };
212
+ }
213
+ handleCheckboxChanged(event) {
214
+ this.saveNewPaymentMethodChecked = event.detail;
215
+ }
216
+ async fillBillingForm(fields) {
217
+ this.billingFormRef.fill(fields);
218
+ }
219
+ async resolvePaymentMethod(insuranceValidation) {
220
+ var _a, _b;
221
+ if (!this.paymentMethodFormRef || !this.billingFormRef)
222
+ return;
223
+ try {
224
+ const { isValid, errors } = await this.validate();
225
+ if (!isValid || !insuranceValidation.isValid) {
226
+ // get propety value from first property in errors object
227
+ const message = `${Object.values(errors)[0] || 'Validation error'}`;
228
+ return {
229
+ validationError: true,
230
+ error: {
231
+ code: 'validation_error',
232
+ message,
233
+ decline_code: undefined
234
+ }
235
+ };
236
+ }
237
+ const tokenizeResponse = await this.tokenize();
238
+ if (tokenizeResponse.error) {
239
+ return { error: tokenizeResponse.error };
240
+ }
241
+ else {
242
+ const tokenizeRessponseData = tokenizeResponse.data;
243
+ return {
244
+ token: ((_a = tokenizeRessponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeRessponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
245
+ data: tokenizeRessponseData
246
+ };
247
+ }
248
+ }
249
+ catch (error) {
250
+ return { error };
251
+ }
252
+ }
253
+ async validate() {
254
+ const billingFormValidation = await this.billingFormRef.validate();
255
+ const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
256
+ const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
257
+ const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
258
+ return { isValid, errors };
259
+ }
260
+ async tokenize() {
261
+ try {
262
+ const billingFormFieldValues = await this.billingFormRef.getValues();
263
+ let paymentMethodData;
264
+ if (this.saveNewPaymentMethodChecked) {
265
+ paymentMethodData = Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupId });
266
+ }
267
+ else {
268
+ paymentMethodData = Object.assign({}, billingFormFieldValues);
269
+ }
270
+ const clientId = this.authToken;
271
+ const tokenizeResponse = await this.paymentMethodFormRef.tokenize(clientId, paymentMethodData, this.accountId);
272
+ return tokenizeResponse;
273
+ }
274
+ catch (error) {
275
+ return error;
276
+ }
277
+ }
278
+ showNewPaymentMethodForm() {
279
+ var _a;
280
+ const paymentMethodType = (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id;
281
+ return (h("div", { class: "mt-4 pb-4" }, h("hidden-input", null), paymentMethodType === 'card' ? (h("card-form", { ref: (el) => this.paymentMethodFormRef = el })) : (h("bank-account-form", { ref: (el) => this.paymentMethodFormRef = el })), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodType }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
282
+ }
283
+ get hiddenRadioInput() {
284
+ return !this.showAch || !this.showCard;
285
+ }
286
+ render() {
287
+ var _a, _b;
288
+ return (h(Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
289
+ }
290
+ };
291
+
292
+ const PaymentMethodOptions = class {
293
+ constructor(hostRef) {
294
+ registerInstance(this, hostRef);
295
+ this.savedPaymentMethods = [];
296
+ this.paymentMethodOptions = [];
297
+ }
298
+ async fillBillingForm(fields) {
299
+ const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
300
+ if (newPaymentMethodElement.fillBillingForm) {
301
+ newPaymentMethodElement.fillBillingForm(fields);
302
+ }
303
+ }
304
+ connectedCallback() {
305
+ this.paymentMethodsChanged();
306
+ }
307
+ paymentMethodsChanged() {
308
+ var _a;
309
+ this.paymentMethodOptions = this.savedPaymentMethods
310
+ .map((paymentMethod) => new PaymentMethodOption(paymentMethod))
311
+ .filter((paymentMethod) => {
312
+ // Don't saved card or bank account if they are disabled
313
+ return ((this.showCard || paymentMethod.type !== PaymentMethodTypes.card) &&
314
+ (this.showAch || paymentMethod.type !== PaymentMethodTypes.bankAccount));
315
+ });
316
+ if (this.showCard) {
317
+ this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.card }));
318
+ }
319
+ if (this.showAch) {
320
+ this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
321
+ }
322
+ if (!this.selectedPaymentMethodId) {
323
+ this.selectedPaymentMethodId = (_a = this.paymentMethodOptions[0]) === null || _a === void 0 ? void 0 : _a.id;
324
+ }
325
+ }
326
+ paymentMethodOptionSelected(event) {
327
+ this.selectedPaymentMethodId = event.detail.id;
328
+ }
329
+ async resolvePaymentMethod(insuranceValidation) {
330
+ var _a;
331
+ return await ((_a = this.selectedPaymentMethodOptionRef) === null || _a === void 0 ? void 0 : _a.resolvePaymentMethod(insuranceValidation));
332
+ }
333
+ async validate() {
334
+ const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
335
+ return newPaymentMethodElement.validate();
336
+ }
337
+ render() {
338
+ var _a;
339
+ return (h(Host, { key: '2d3dc8bc98cea3efbcf342a31b6883f30099b031' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
340
+ const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
341
+ const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
342
+ const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
343
+ if (newCard || newBankAccount) {
344
+ return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, "show-card": this.showCard, "show-ach": this.showAch, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: (el) => {
345
+ if (isSelected) {
346
+ this.selectedPaymentMethodOptionRef = el;
347
+ }
348
+ } }));
349
+ }
350
+ else if (this.showSavedPaymentMethods) {
351
+ return (h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
352
+ if (isSelected) {
353
+ this.selectedPaymentMethodOptionRef = el;
354
+ }
355
+ } }));
356
+ }
357
+ })));
358
+ }
359
+ static get watchers() { return {
360
+ "savedPaymentMethods": ["paymentMethodsChanged"]
361
+ }; }
362
+ };
363
+
364
+ const SaveNewPaymentMethod = class {
365
+ constructor(hostRef) {
366
+ registerInstance(this, hostRef);
367
+ this.checkboxChanged = createEvent(this, "checkboxChanged");
368
+ this.isChecked = false;
369
+ }
370
+ handleCheckboxChange(_name, value) {
371
+ this.isChecked = value;
372
+ this.checkboxChanged.emit(this.isChecked);
373
+ }
374
+ render() {
375
+ return (h("div", { key: 'e6e7a75237ec2062188bf85deadac58892663b3b', class: "mt-4 form-check" }, h("form-control-checkbox", { key: 'abbaeb4e9119c4d41f0a727c7a070c14b7418302', label: "Save new payment method", name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange.bind(this) })));
376
+ }
377
+ };
378
+
379
+ const SavedPaymentMethod = class {
380
+ constructor(hostRef) {
381
+ registerInstance(this, hostRef);
382
+ this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected");
383
+ this.onPaymentMethodOptionClick = (e) => {
384
+ e.preventDefault();
385
+ this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
386
+ };
387
+ }
388
+ async resolvePaymentMethod(insuranceValidation) {
389
+ var _a;
390
+ if (!insuranceValidation.isValid) {
391
+ return { validationError: true };
392
+ }
393
+ return { token: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id };
394
+ }
395
+ ;
396
+ render() {
397
+ var _a, _b, _c;
398
+ return (h(Host, { key: '78487e52f549547f4c89f48a238a8916d77d4f1c', class: "payment-method" }, h("div", { key: 'd437a5f9e79356b1177703da2b5d7f4ca98072ce', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '0dd03b9ebae98c441c63717aba310d77e587b1c8', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
399
+ }
400
+ };
401
+
402
+ export { BankAccountForm as bank_account_form, CardForm as card_form, BillingForm as justifi_billing_form, NewPaymentMethod as justifi_new_payment_method, PaymentMethodOptions as justifi_payment_method_options, SaveNewPaymentMethod as justifi_save_new_payment_method, SavedPaymentMethod as justifi_saved_payment_method };
@@ -0,0 +1,24 @@
1
+ import { c as create$3 } from './form-BjGUIqxU.js';
2
+ import { p as postalValidation, s as stateValidation, c as cityValidation, l as lineTwoValidation, a as lineOneValidation, i as identityNameValidation } from './schema-validations-C7pC-de1.js';
3
+
4
+ const billingFormSchema = (postalOnly) => {
5
+ const fullBillingForm = create$3({
6
+ name: identityNameValidation.required('Enter full name'),
7
+ address_line1: lineOneValidation.required('Enter street address'),
8
+ address_line2: lineTwoValidation.nullable(),
9
+ address_city: cityValidation.required('Enter city'),
10
+ address_state: stateValidation.required('Select state'),
11
+ address_postal_code: postalValidation.required('Enter postal code'),
12
+ });
13
+ const postalForm = create$3({
14
+ name: identityNameValidation.nullable(),
15
+ address_line1: lineOneValidation.nullable(),
16
+ address_line2: lineTwoValidation.nullable(),
17
+ address_city: cityValidation.nullable(),
18
+ address_state: stateValidation.nullable(),
19
+ address_postal_code: postalValidation.required('Enter postal code'),
20
+ });
21
+ return postalOnly ? postalForm : fullBillingForm;
22
+ };
23
+
24
+ export { billingFormSchema as b };
@@ -1,5 +1,5 @@
1
- import { c as create$3 } from './index.esm-BCNUj0Dx.js';
2
- import { d as dateOfIncorporationValidation, t as taxIdValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, o as otherPaymentDetailsValidation, s as seasonalBusinessValidation, r as recurringPaymentsPercentageValidation, f as recurringPaymentsValidation, g as whenServiceReceivedValidation, h as paymentVolumeValidation, j as revenueValidation } from './schema-validations-DLWfpHyI.js';
1
+ import { c as create$3 } from './form-BjGUIqxU.js';
2
+ import { d as dateOfIncorporationValidation, t as taxIdValidation, b as industryValidation, e as businessClassificationValidation, f as doingBusinessAsValidation, g as phoneValidation, h as emailValidation, w as websiteUrlValidation, j as businessNameValidation, o as otherPaymentDetailsValidation, k as seasonalBusinessValidation, r as recurringPaymentsPercentageValidation, m as recurringPaymentsValidation, n as whenServiceReceivedValidation, q as paymentVolumeValidation, u as revenueValidation } from './schema-validations-C7pC-de1.js';
3
3
 
4
4
  const businessCoreInfoSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -1,9 +1,9 @@
1
- import { h, F as Fragment, r as registerInstance, c as createEvent } from './index-Bta_r52Z.js';
2
- import { E as ErrorState } from './utils-B-aPFy3u.js';
3
- import { S as StyledHost } from './styled-host-BSX_LSdk.js';
1
+ import { h, F as Fragment, r as registerInstance, c as createEvent } from './index-N3w5zrz2.js';
2
+ import { E as ErrorState } from './utils-BGp_IJEa.js';
3
+ import { S as StyledHost } from './styled-host-DtvbNFVU.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { S as Skeleton } from './skeleton-BVM4XTj9.js';
6
- import './parts-C71Mxtso.js';
5
+ import { S as Skeleton } from './skeleton-C0KgFH0Z.js';
6
+ import './parts-_6eQgwfE.js';
7
7
 
8
8
  const BusinessDetailsLoading = () => {
9
9
  const Block = () => (h("div", { class: "mt-5" },
@@ -1,5 +1,5 @@
1
- import { c as create$3, a as create$6 } from './index.esm-BCNUj0Dx.js';
2
- import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, u as ssnValidation, v as dobValidation, p as phoneValidation, e as emailValidation, x as identityTitleValidation, y as identityNameValidation } from './schema-validations-DLWfpHyI.js';
1
+ import { c as create$3, a as create$6 } from './form-BjGUIqxU.js';
2
+ import { p as postalValidation, s as stateValidation, c as cityValidation, l as lineTwoValidation, a as lineOneValidation, v as ssnValidation, x as dobValidation, g as phoneValidation, h as emailValidation, y as identityTitleValidation, i as identityNameValidation } from './schema-validations-C7pC-de1.js';
3
3
 
4
4
  const addressSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -1,6 +1,6 @@
1
- import { A as Api } from './Api-CqimcNgb.js';
1
+ import { A as Api } from './Api-C3T8XYbb.js';
2
2
  import './ComponentError-BhrFjjAs.js';
3
- import './Checkout-CH19cJxH.js';
3
+ import './Checkout-CV6qgU0r.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
5
  import './Payment-BEvE6jAC.js';
6
6
  import './Refund-BKe90wSq.js';
@@ -1,5 +1,5 @@
1
- import { h } from './index-Bta_r52Z.js';
2
- import { ad as buttonSecondary, ae as buttonPrimary, af as buttonLoading } from './parts-C71Mxtso.js';
1
+ import { h } from './index-N3w5zrz2.js';
2
+ import { ae as buttonSecondary, af as buttonPrimary, ag as buttonLoading } from './parts-_6eQgwfE.js';
3
3
 
4
4
  const ButtonSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status", part: "button-spinner" },
5
5
  h("span", { class: "visually-hidden" }, "Loading...")));
@@ -1,6 +1,6 @@
1
- import { A as Api } from './Api-CqimcNgb.js';
1
+ import { A as Api } from './Api-C3T8XYbb.js';
2
2
  import './ComponentError-BhrFjjAs.js';
3
- import './Checkout-CH19cJxH.js';
3
+ import './Checkout-CV6qgU0r.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
5
  import './Payment-BEvE6jAC.js';
6
6
  import './Refund-BKe90wSq.js';
@@ -1,4 +1,4 @@
1
- import { c as createStore } from './index-Cf8VXyXg.js';
1
+ import { c as createStore } from './index-BAq5IUBW.js';
2
2
 
3
3
  const initialState = {
4
4
  authToken: '',