@justifi/webcomponents 5.7.2 → 5.7.3-rc-02

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 (689) hide show
  1. package/dist/cjs/{Api-Dp4CW5K6.js → Api-BTdkb3Zh.js} +1 -1
  2. package/dist/cjs/{Checkout-TZnRz3-3.js → Checkout-BTgAlgVL.js} +4 -6
  3. package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
  4. package/dist/cjs/{Document-Qt0qiXeh.js → Payment-D5UynU2f.js} +0 -56
  5. package/dist/cjs/{Refund-BDFOEJv_.js → Refund-BFE-2OxN.js} +56 -0
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  7. package/dist/cjs/{badge-BxoJOyTJ.js → badge-sO_Hcamo.js} +1 -1
  8. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +12 -12
  9. package/dist/cjs/bank-account-form.cjs.entry.js +63 -0
  10. package/dist/cjs/{business-additional-questions-schema-JlysTRE3.js → business-additional-questions-schema-e3GCIHk5.js} +1 -1
  11. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  12. package/dist/cjs/{business-identity-schema-BksYFWls.js → business-identity-schema-Diqj_WVQ.js} +1 -1
  13. package/dist/cjs/{business.service-DMIMZpx4.js → business.service-DNoCHqtI.js} +5 -5
  14. package/dist/cjs/{button-BPFSRx4d.js → button-CCZd8WSY.js} +1 -1
  15. package/dist/cjs/card-form.cjs.entry.js +71 -0
  16. package/dist/cjs/{check-pkg-version-hqYwYpQq.js → check-pkg-version-CgQ8N_ta.js} +6 -6
  17. package/dist/cjs/checkout-actions-CRbQgLn0.js +61 -0
  18. package/dist/cjs/{checkout.service-DKH8NODe.js → checkout.service-C3R0uykH.js} +5 -5
  19. package/dist/cjs/checkout.store-osqdxFMq.js +29 -0
  20. package/dist/cjs/checkouts-list-core.cjs.entry.js +13 -13
  21. package/dist/cjs/{checkouts-list-params-state-BvG5Ysrg.js → checkouts-list-params-state-fVsfZZ5G.js} +1 -1
  22. package/dist/cjs/{checkouts-table-Cj2iSB_P.js → checkouts-table-C1Jv_A7m.js} +2 -2
  23. package/dist/cjs/{config-state-D7p-XunE.js → config-state-BTfJl-LU.js} +1 -1
  24. package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper_2.cjs.entry.js} +3 -103
  25. package/dist/cjs/{dispute.service-8j6tLV4i.js → dispute.service-CaA-mq-i.js} +5 -5
  26. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  27. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  28. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  29. package/dist/cjs/{form-control-error-text-D9XDyFoW.js → form-control-error-text-DPDsFdAT.js} +1 -1
  30. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  31. package/dist/cjs/{form-control-help-text-J_boqSMc.js → form-control-help-text-CT5HzEnX.js} +1 -1
  32. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  33. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  34. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  35. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  36. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  37. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  38. package/dist/cjs/form-control-select_2.cjs.entry.js +105 -0
  39. package/dist/cjs/{get-business-BJrtsomz.js → get-business-BiEc-jdH.js} +2 -2
  40. package/dist/cjs/{get-payment-details-MM1u5jMc.js → get-payment-details-CnPsEZA8.js} +7 -7
  41. package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
  42. package/dist/cjs/{get-subaccounts-CkjWYxIU.js → get-subaccounts-CgOAdXG4.js} +7 -7
  43. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  44. package/dist/cjs/{header-1-auSUfIpO.js → header-1--wdCXxjA.js} +1 -1
  45. package/dist/cjs/{header-3-B-bXHCpC.js → header-3-DxUQJ7TT.js} +1 -1
  46. package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +112 -15
  47. package/dist/cjs/{index-BYd8IvAa.js → index-2GwnTbNA.js} +22 -4
  48. package/dist/cjs/{index-B8ljHEN1.js → index-DEMVrrsF.js} +1 -1
  49. package/dist/cjs/{insurance-state-CFxbKNWH.js → insurance-state-BmAF1Sef.js} +2 -2
  50. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +48 -21
  51. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -12
  52. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  53. package/dist/cjs/justifi-bank-account-form_4.cjs.entry.js +234 -0
  54. package/dist/cjs/justifi-billing-information-form_2.cjs.entry.js +103 -0
  55. package/dist/cjs/justifi-business-details.cjs.entry.js +14 -14
  56. package/dist/cjs/justifi-business-form.cjs.entry.js +20 -20
  57. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  58. package/dist/cjs/justifi-checkout-core.cjs.entry.js +9 -9
  59. package/dist/cjs/justifi-checkout-summary_2.cjs.entry.js +217 -0
  60. package/dist/cjs/justifi-checkout.cjs.entry.js +100 -99
  61. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +10 -10
  62. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +17 -17
  63. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  64. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  65. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  66. package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -13
  67. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +18 -18
  68. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +12 -12
  69. package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
  70. package/dist/cjs/justifi-order-terminals.cjs.entry.js +17 -17
  71. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +14 -14
  72. package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
  73. package/dist/cjs/justifi-payment-method-options_3.cjs.entry.js +166 -0
  74. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  75. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +13 -13
  76. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +16 -16
  77. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  78. package/dist/cjs/justifi-payments-list.cjs.entry.js +18 -18
  79. package/dist/cjs/justifi-payout-details.cjs.entry.js +14 -14
  80. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +16 -16
  81. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
  82. package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -19
  83. package/dist/cjs/justifi-refund-payment.cjs.entry.js +16 -16
  84. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +32 -0
  85. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +7 -7
  86. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +19 -21
  87. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +11 -11
  88. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +15 -15
  89. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +10 -10
  90. package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -17
  91. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +20 -13
  92. package/dist/cjs/loader.cjs.js +3 -4
  93. package/dist/cjs/{package-BCOEGxFC.js → package-wSbEFwqE.js} +1 -1
  94. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  95. package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
  96. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +25 -0
  97. package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-SNMCdsyF.js} +2 -2
  98. package/dist/cjs/{payment.service-CCxGhTwZ.js → payment.service-C-HKmIG6.js} +5 -5
  99. package/dist/cjs/payments-list-core.cjs.entry.js +14 -14
  100. package/dist/cjs/{payments-list-params-state-BvG5Ysrg.js → payments-list-params-state-fVsfZZ5G.js} +1 -1
  101. package/dist/cjs/{payments-status-BTykBx8i.js → payments-status-DPqU5v9h.js} +2 -2
  102. package/dist/cjs/{payments-table-BR97ybd6.js → payments-table-BM3AoAJf.js} +2 -2
  103. package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
  104. package/dist/cjs/{payout.service-CtphIhUK.js → payout.service-BHU3EPR2.js} +5 -5
  105. package/dist/cjs/payouts-list-core.cjs.entry.js +14 -14
  106. package/dist/cjs/{payouts-list-params-state-BvG5Ysrg.js → payouts-list-params-state-fVsfZZ5G.js} +1 -1
  107. package/dist/cjs/{payouts-status-YCqmbd4K.js → payouts-status-CU8aqIhH.js} +2 -2
  108. package/dist/cjs/{payouts-table-DMcQiC1g.js → payouts-table-1HL4kk9B.js} +2 -2
  109. package/dist/cjs/{schema-validations-BUor-ySb.js → schema-validations-BSeMee-o.js} +0 -23
  110. package/dist/cjs/{skeleton-aMh0RMHq.js → skeleton-ByLavxr1.js} +1 -1
  111. package/dist/cjs/{spinner-BTyIjlMM.js → spinner-DOC4Ab7M.js} +1 -1
  112. package/dist/cjs/{styled-host-udkBJV5h.js → styled-host-IMxk64cc.js} +1 -1
  113. package/dist/cjs/{table-DKVauFHc.js → table-BgQP2M2-.js} +2 -2
  114. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  115. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +13 -13
  116. package/dist/cjs/{terminal-orders-list-params-state-BvG5Ysrg.js → terminal-orders-list-params-state-fVsfZZ5G.js} +1 -1
  117. package/dist/cjs/{terminal-orders-table-D-CLcZws.js → terminal-orders-table-C3KZTeE5.js} +7 -7
  118. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  119. package/dist/cjs/{terminal.service-Dv_WJkue.js → terminal.service-Bc1YJWi0.js} +5 -5
  120. package/dist/cjs/terminals-list-core.cjs.entry.js +13 -13
  121. package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +22 -0
  122. package/dist/cjs/{terminals-table-BEJ6sF7w.js → terminals-table-yRGsrfBw.js} +2 -2
  123. package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
  124. package/dist/cjs/{utils-5lco6NzU.js → utils-bn0fXuc-.js} +1 -1
  125. package/dist/cjs/webcomponents.cjs.js +4 -5
  126. package/dist/collection/api/BillingInformation.js +1 -0
  127. package/dist/collection/api/Checkout.js +1 -3
  128. package/dist/collection/api/ComponentError.js +2 -0
  129. package/dist/collection/api/PaymentMethod.js +1 -0
  130. package/dist/collection/collection-manifest.json +9 -2
  131. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +1 -1
  132. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +36 -8
  133. package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -47
  134. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  135. package/dist/collection/components/checkout/billing-form/billing-form.js +2 -5
  136. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  137. package/dist/collection/components/checkout/checkout.js +109 -35
  138. package/dist/collection/components/checkout/new-payment-method.js +2 -2
  139. package/dist/collection/components/checkout/payment-method-options.js +18 -37
  140. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  141. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  142. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  143. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  144. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  145. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  146. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  152. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  153. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  154. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  158. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  159. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  160. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  161. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +10 -13
  162. package/dist/collection/components/modular-checkout/modular-checkout.js +345 -0
  163. package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +10 -0
  164. package/dist/collection/components/modular-checkout-parts/bank-account.js +119 -0
  165. package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +21 -0
  166. package/dist/collection/components/modular-checkout-parts/billing-form.js +116 -0
  167. package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +10 -0
  168. package/dist/collection/components/modular-checkout-parts/card-form.js +123 -0
  169. package/dist/collection/components/modular-checkout-parts/postal-code-form.js +114 -0
  170. package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +23 -0
  171. package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +127 -0
  172. package/dist/collection/components/modular-checkout-parts/summary.js +12 -0
  173. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  174. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  175. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  176. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  177. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  178. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  179. package/dist/collection/components/payments-list/payments-list.js +1 -1
  180. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  181. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  182. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  183. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  184. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  185. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  186. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  187. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  188. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  189. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  190. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  191. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -3
  192. package/dist/collection/store/checkout.store.js +25 -0
  193. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  194. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  195. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  196. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  197. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  198. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  199. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  200. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  201. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  202. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  203. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  204. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  205. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  206. package/dist/collection/ui-components/form/iframe-input.js +10 -5
  207. package/dist/docs.json +1239 -454
  208. package/dist/esm/{Api-cgKcLG0y.js → Api-CqimcNgb.js} +2 -2
  209. package/dist/esm/{Checkout-B9LrTq63.js → Checkout-CH19cJxH.js} +5 -7
  210. package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
  211. package/dist/esm/{Dispute-BH0Xfn-F.js → Dispute-7MWRbTXI.js} +1 -1
  212. package/dist/esm/{Document-DvWsQBM6.js → Payment-BEvE6jAC.js} +3 -57
  213. package/dist/esm/{Refund-zZewCvey.js → Refund-BKe90wSq.js} +56 -2
  214. package/dist/esm/additional-questions-details_5.entry.js +4 -4
  215. package/dist/esm/{badge-Du9GTXoB.js → badge-BoemLewg.js} +2 -2
  216. package/dist/esm/bank-account-document-form-inputs_4.entry.js +14 -14
  217. package/dist/esm/bank-account-form.entry.js +61 -0
  218. package/dist/esm/{business-additional-questions-schema-CBUm3D7O.js → business-additional-questions-schema-uQlQ8fXQ.js} +1 -1
  219. package/dist/esm/business-details-core.entry.js +5 -5
  220. package/dist/esm/{business-identity-schema-CntGz8jo.js → business-identity-schema-BsrgqgDl.js} +1 -1
  221. package/dist/esm/{business.service-BWivPbyO.js → business.service-wY8gOZQr.js} +6 -6
  222. package/dist/esm/{button-CjH5C0pG.js → button-BcLzheaP.js} +2 -2
  223. package/dist/esm/card-form.entry.js +69 -0
  224. package/dist/esm/{check-pkg-version-BykGn7tx.js → check-pkg-version-BmebRZ4u.js} +7 -7
  225. package/dist/esm/checkout-actions-UQ6g1s7I.js +58 -0
  226. package/dist/esm/{checkout.service-Bh-Q24Cr.js → checkout.service-Ci9Zkxiz.js} +6 -6
  227. package/dist/esm/checkout.store-DQrlfeus.js +27 -0
  228. package/dist/esm/checkouts-list-core.entry.js +16 -16
  229. package/dist/esm/{checkouts-list-params-state-Bn7pL-8x.js → checkouts-list-params-state-DhPyCV-V.js} +1 -1
  230. package/dist/esm/{checkouts-table-DcVkD83l.js → checkouts-table-ub2cX2KR.js} +4 -4
  231. package/dist/esm/{config-state-CkKrqnpZ.js → config-state-BjXhUj2q.js} +1 -1
  232. package/dist/esm/{custom-popper_4.entry.js → custom-popper_2.entry.js} +5 -103
  233. package/dist/esm/{dispute.service-1AYcALSg.js → dispute.service-D3IjL7Z8.js} +6 -6
  234. package/dist/esm/form-alert_5.entry.js +2 -2
  235. package/dist/esm/form-control-checkbox.entry.js +6 -6
  236. package/dist/esm/form-control-date.entry.js +5 -5
  237. package/dist/esm/{form-control-error-text-tGFxd6kW.js → form-control-error-text-C4vfc3el.js} +2 -2
  238. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  239. package/dist/esm/{form-control-help-text-2DawN8-N.js → form-control-help-text-Dsr1zpTw.js} +2 -2
  240. package/dist/esm/form-control-help-text.entry.js +1 -1
  241. package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
  242. package/dist/esm/form-control-monetary.entry.js +7 -7
  243. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  244. package/dist/esm/form-control-number.entry.js +6 -6
  245. package/dist/esm/form-control-radio.entry.js +4 -4
  246. package/dist/esm/form-control-select_2.entry.js +102 -0
  247. package/dist/esm/{get-business-GEPTefIj.js → get-business-BSRtbTh7.js} +2 -2
  248. package/dist/esm/{get-payment-details-DXhXxFPr.js → get-payment-details-CmVKt1jR.js} +8 -8
  249. package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
  250. package/dist/esm/{get-subaccounts-CtHj1UM6.js → get-subaccounts-BRX7HFGO.js} +9 -9
  251. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  252. package/dist/esm/{header-1-D2gZb3iT.js → header-1-CmImLcLi.js} +2 -2
  253. package/dist/esm/{header-3-DAg8Vh4B.js → header-3-BMoxz2Hr.js} +2 -2
  254. package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
  255. package/dist/esm/{index-D6FDxSyt.js → index-Bta_r52Z.js} +22 -5
  256. package/dist/esm/{index-Cc3u0uDC.js → index-Cf8VXyXg.js} +1 -1
  257. package/dist/esm/{insurance-state-CsZbKSgm.js → insurance-state-DMexHdvO.js} +3 -3
  258. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +50 -23
  259. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +15 -15
  260. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  261. package/dist/esm/justifi-bank-account-form_4.entry.js +229 -0
  262. package/dist/esm/justifi-billing-information-form_2.entry.js +100 -0
  263. package/dist/esm/justifi-business-details.entry.js +17 -17
  264. package/dist/esm/justifi-business-form.entry.js +23 -23
  265. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  266. package/dist/esm/justifi-checkout-core.entry.js +12 -12
  267. package/dist/esm/justifi-checkout-summary_2.entry.js +214 -0
  268. package/dist/esm/justifi-checkout.entry.js +101 -100
  269. package/dist/esm/justifi-checkouts-list-filters.entry.js +13 -13
  270. package/dist/esm/justifi-checkouts-list.entry.js +21 -21
  271. package/dist/esm/justifi-config-provider.entry.js +3 -3
  272. package/dist/esm/justifi-details.entry.js +3 -3
  273. package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
  274. package/dist/esm/justifi-dispute-management.entry.js +15 -15
  275. package/dist/esm/justifi-dispute-notification_3.entry.js +21 -21
  276. package/dist/esm/justifi-gross-payment-chart.entry.js +15 -15
  277. package/dist/esm/justifi-new-payment-method.entry.js +97 -0
  278. package/dist/esm/justifi-order-terminals.entry.js +20 -20
  279. package/dist/esm/justifi-owner-form_3.entry.js +17 -17
  280. package/dist/esm/justifi-payment-details.entry.js +17 -17
  281. package/dist/esm/justifi-payment-method-options_3.entry.js +162 -0
  282. package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
  283. package/dist/esm/justifi-payment-provisioning.entry.js +15 -15
  284. package/dist/esm/justifi-payment-transactions-list.entry.js +19 -19
  285. package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
  286. package/dist/esm/justifi-payments-list.entry.js +20 -20
  287. package/dist/esm/justifi-payout-details.entry.js +17 -17
  288. package/dist/esm/justifi-payout-transactions-list.entry.js +19 -19
  289. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  290. package/dist/esm/justifi-payouts-list.entry.js +22 -22
  291. package/dist/esm/justifi-refund-payment.entry.js +19 -19
  292. package/dist/esm/justifi-saved-payment-method.entry.js +30 -0
  293. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +9 -9
  294. package/dist/esm/justifi-season-interruption-insurance.entry.js +21 -23
  295. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +14 -14
  296. package/dist/esm/justifi-terminal-orders-list.entry.js +18 -18
  297. package/dist/esm/justifi-terminals-list-filters.entry.js +13 -13
  298. package/dist/esm/justifi-terminals-list.entry.js +20 -20
  299. package/dist/esm/justifi-tokenize-payment-method.entry.js +23 -16
  300. package/dist/esm/loader.js +3 -4
  301. package/dist/esm/{package-BjMTOtI1.js → package-CJdXAC5R.js} +1 -1
  302. package/dist/esm/pagination-menu.entry.js +2 -2
  303. package/dist/esm/{parts-BrLVc_85.js → parts-C71Mxtso.js} +1 -1
  304. package/dist/esm/payment-details-core.entry.js +16 -16
  305. package/dist/esm/payment-method-option-utils-8n_ALxec.js +23 -0
  306. package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-2qP7AtHj.js} +2 -2
  307. package/dist/esm/{payment.service-2afJc31y.js → payment.service-ddFQWXPn.js} +6 -6
  308. package/dist/esm/payments-list-core.entry.js +17 -17
  309. package/dist/esm/{payments-list-params-state-Bn7pL-8x.js → payments-list-params-state-DhPyCV-V.js} +1 -1
  310. package/dist/esm/{payments-status-CIUXcA0w.js → payments-status-DvsFQolO.js} +2 -2
  311. package/dist/esm/{payments-table-B8316Kqz.js → payments-table-CCKeaI5x.js} +4 -4
  312. package/dist/esm/payout-details-core.entry.js +12 -12
  313. package/dist/esm/{payout.service-Bd8Tc7-Q.js → payout.service-Ws4Pebcz.js} +6 -6
  314. package/dist/esm/payouts-list-core.entry.js +17 -17
  315. package/dist/esm/{payouts-list-params-state-Bn7pL-8x.js → payouts-list-params-state-DhPyCV-V.js} +1 -1
  316. package/dist/esm/{payouts-status-Clo03qUI.js → payouts-status-BkM4Gvme.js} +2 -2
  317. package/dist/esm/{payouts-table-Ip10eH4Q.js → payouts-table-CqBOvPOo.js} +4 -4
  318. package/dist/esm/{schema-validations-C7D5tPzq.js → schema-validations-DLWfpHyI.js} +2 -23
  319. package/dist/esm/{skeleton-Dlpibtr0.js → skeleton-BVM4XTj9.js} +2 -2
  320. package/dist/esm/{spinner-onCBxbdo.js → spinner-BsxFRVXW.js} +2 -2
  321. package/dist/esm/{styled-host-C7vaWLiB.js → styled-host-BSX_LSdk.js} +1 -1
  322. package/dist/esm/{table-p4dOlFPi.js → table-DxdC1lXb.js} +3 -3
  323. package/dist/esm/table-filters-menu.entry.js +4 -4
  324. package/dist/esm/terminal-orders-list-core.entry.js +16 -16
  325. package/dist/esm/{terminal-orders-list-params-state-Bn7pL-8x.js → terminal-orders-list-params-state-DhPyCV-V.js} +1 -1
  326. package/dist/esm/{terminal-orders-table-CCJT7oq4.js → terminal-orders-table-DV7nRYuE.js} +10 -10
  327. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  328. package/dist/esm/{terminal.service-8kwGru35.js → terminal.service-DH8gRG1H.js} +6 -6
  329. package/dist/esm/terminals-list-core.entry.js +16 -16
  330. package/dist/esm/terminals-list-params-state-DhPyCV-V.js +16 -0
  331. package/dist/esm/{terminals-table-cMkKUVff.js → terminals-table-DUHel128.js} +4 -4
  332. package/dist/esm/{utils-BpP_VJGf.js → utils-B-aPFy3u.js} +2 -2
  333. package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
  334. package/dist/esm/{utils-DB5fh6Iv.js → utils-BjLkBMLe.js} +1 -1
  335. package/dist/esm/webcomponents.js +4 -5
  336. package/dist/module/{check-pkg-version.js → Analytics.js} +21 -22
  337. package/dist/module/Checkout.js +3 -3
  338. package/dist/module/Refund.js +55 -1
  339. package/dist/module/additional-statement.js +1 -1
  340. package/dist/module/bank-account-document-inputs.js +1 -2
  341. package/dist/module/bank-account-form.js +83 -1
  342. package/dist/module/{bank-account-form2.js → bank-account.js} +27 -12
  343. package/dist/module/billing-form-schema.js +24 -0
  344. package/dist/module/billing-form.js +26 -20
  345. package/dist/module/billing-form2.js +91 -0
  346. package/dist/module/business-address-schema.js +1 -1
  347. package/dist/module/business-bank-account-form-step-core.js +37 -11
  348. package/dist/module/business-bank-account-form-step.js +0 -1
  349. package/dist/module/business-core-info-schema.js +1 -1
  350. package/dist/module/business-identity-schema.js +1 -1
  351. package/dist/module/business-terms-conditions-form-step.js +1 -2
  352. package/dist/module/business.service.js +0 -1
  353. package/dist/module/cancellation-policy.js +1 -1
  354. package/dist/module/card-form.js +91 -1
  355. package/dist/module/card-form2.js +30 -15
  356. package/dist/module/checkout.service.js +0 -1
  357. package/dist/module/checkout.store.js +27 -0
  358. package/dist/module/checkouts-list-core2.js +2 -3
  359. package/dist/module/custom-popper2.js +2 -2
  360. package/dist/module/customer-details.js +1 -1
  361. package/dist/module/dispute-management-core.js +1 -1
  362. package/dist/module/dispute-notification.js +1 -1
  363. package/dist/module/dispute-response-actions.js +0 -1
  364. package/dist/module/dispute-response-core.js +1 -1
  365. package/dist/module/dispute-response.js +2 -2
  366. package/dist/module/duplicate-charge.js +1 -1
  367. package/dist/module/electronic-evidence.js +1 -1
  368. package/dist/module/form-control-checkbox2.js +2 -2
  369. package/dist/module/form-control-date2.js +2 -2
  370. package/dist/module/form-control-file-v22.js +1 -1
  371. package/dist/module/form-control-file2.js +2 -2
  372. package/dist/module/form-control-monetary2.js +2 -2
  373. package/dist/module/form-control-number-masked2.js +2 -2
  374. package/dist/module/form-control-number.js +2 -2
  375. package/dist/module/form-control-radio2.js +2 -2
  376. package/dist/module/form-control-select2.js +2 -2
  377. package/dist/module/form-control-text2.js +2 -2
  378. package/dist/module/form-control-textarea2.js +2 -2
  379. package/dist/module/form.js +1 -1
  380. package/dist/module/get-payment-details.js +0 -1
  381. package/dist/module/get-subaccounts.js +0 -1
  382. package/dist/module/gross-payment-chart-core2.js +1 -1
  383. package/dist/module/header-3.js +8 -0
  384. package/dist/module/hidden-input2.js +1 -1
  385. package/dist/module/iframe-input2.js +5 -5
  386. package/dist/module/justifi-bank-account-form.d.ts +11 -0
  387. package/dist/module/justifi-bank-account-form.js +6 -0
  388. package/dist/module/justifi-billing-information-form.d.ts +11 -0
  389. package/dist/module/justifi-billing-information-form.js +6 -0
  390. package/dist/module/justifi-business-details.js +1 -1
  391. package/dist/module/justifi-business-form.js +1 -2
  392. package/dist/module/justifi-card-form.d.ts +11 -0
  393. package/dist/module/justifi-card-form.js +6 -0
  394. package/dist/module/justifi-checkout-core.js +201 -1
  395. package/dist/module/justifi-checkout-summary.d.ts +11 -0
  396. package/dist/module/justifi-checkout-summary.js +6 -0
  397. package/dist/module/justifi-checkout.js +112 -168
  398. package/dist/module/justifi-checkouts-list-filters.js +2 -3
  399. package/dist/module/justifi-checkouts-list.js +2 -3
  400. package/dist/module/justifi-dispute-management.js +2 -2
  401. package/dist/module/justifi-gross-payment-chart.js +1 -2
  402. package/dist/module/justifi-modular-checkout.d.ts +11 -0
  403. package/dist/module/justifi-modular-checkout.js +6 -0
  404. package/dist/module/justifi-new-payment-method.js +214 -1
  405. package/dist/module/justifi-order-terminals.js +3 -4
  406. package/dist/module/justifi-payment-details.js +1 -1
  407. package/dist/module/justifi-payment-provisioning.js +1 -2
  408. package/dist/module/justifi-payment-transactions-list.js +4 -5
  409. package/dist/module/justifi-payments-list-filters.js +3 -3
  410. package/dist/module/justifi-payments-list.js +2 -3
  411. package/dist/module/justifi-payout-details.js +1 -2
  412. package/dist/module/justifi-payout-transactions-list.js +4 -5
  413. package/dist/module/justifi-payouts-list-filters.js +3 -3
  414. package/dist/module/justifi-payouts-list.js +2 -3
  415. package/dist/module/justifi-postal-code-form.d.ts +11 -0
  416. package/dist/module/justifi-postal-code-form.js +6 -0
  417. package/dist/module/justifi-refund-payment.js +2 -3
  418. package/dist/module/justifi-saved-payment-method.js +57 -1
  419. package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
  420. package/dist/module/justifi-saved-payment-methods.js +6 -0
  421. package/dist/module/justifi-season-interruption-insurance.js +10 -14
  422. package/dist/module/justifi-terminal-orders-list-filters.js +3 -4
  423. package/dist/module/justifi-terminal-orders-list.js +3 -4
  424. package/dist/module/justifi-terminals-list-filters.js +2 -3
  425. package/dist/module/justifi-terminals-list.js +3 -4
  426. package/dist/module/justifi-tokenize-payment-method.js +17 -83
  427. package/dist/module/modular-checkout.js +269 -0
  428. package/dist/module/package.js +3 -3
  429. package/dist/module/parts.js +1 -1
  430. package/dist/module/payment-details-core2.js +8 -8
  431. package/dist/module/payment-method-option-utils.js +23 -0
  432. package/dist/module/payment-method-options.js +22 -112
  433. package/dist/module/payment.service.js +0 -1
  434. package/dist/module/payments-list-core2.js +2 -3
  435. package/dist/module/payout-details-core2.js +3 -3
  436. package/dist/module/payout.service.js +0 -1
  437. package/dist/module/payouts-list-core2.js +2 -3
  438. package/dist/module/postal-code-form.js +83 -0
  439. package/dist/module/product-or-service.js +1 -1
  440. package/dist/module/refund-policy.js +1 -1
  441. package/dist/module/save-new-payment-method.js +1 -1
  442. package/dist/module/saved-payment-methods.js +55 -0
  443. package/dist/module/schema-validations.js +2 -23
  444. package/dist/module/season-interruption-insurance-core.js +2 -2
  445. package/dist/module/sezzle-payment-method.js +23 -17
  446. package/dist/module/shipping-details.js +1 -1
  447. package/dist/module/summary.js +34 -0
  448. package/dist/module/table-filters-menu2.js +2 -2
  449. package/dist/module/terminal-orders-list-core2.js +2 -3
  450. package/dist/module/terminal-quantity-selector2.js +1 -1
  451. package/dist/module/terminal.service.js +0 -1
  452. package/dist/module/terminals-list-core2.js +2 -3
  453. package/dist/types/api/BillingInformation.d.ts +13 -0
  454. package/dist/types/api/Checkout.d.ts +14 -13
  455. package/dist/types/api/ComponentError.d.ts +3 -1
  456. package/dist/types/api/PaymentMethod.d.ts +21 -0
  457. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -7
  458. package/dist/types/components/checkout/checkout.d.ts +20 -9
  459. package/dist/types/components/checkout/payment-method-options.d.ts +2 -2
  460. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  461. package/dist/types/components/modular-checkout/modular-checkout.d.ts +31 -0
  462. package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +6 -0
  463. package/dist/types/components/modular-checkout-parts/bank-account.d.ts +18 -0
  464. package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +23 -0
  465. package/dist/types/components/modular-checkout-parts/billing-form.d.ts +16 -0
  466. package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +6 -0
  467. package/dist/types/components/modular-checkout-parts/card-form.d.ts +20 -0
  468. package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +16 -0
  469. package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +5 -0
  470. package/dist/types/components/{checkout → modular-checkout-parts}/sezzle-payment-method.d.ts +2 -8
  471. package/dist/types/components/modular-checkout-parts/summary.d.ts +3 -0
  472. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
  473. package/dist/types/components.d.ts +431 -20
  474. package/dist/types/stencil-public-runtime.d.ts +1 -1
  475. package/dist/types/store/checkout.store.d.ts +19 -0
  476. package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
  477. package/dist/webcomponents/p-07e8c50a.entry.js +1 -0
  478. package/dist/webcomponents/{p-bf3e8295.entry.js → p-0c13f2da.entry.js} +1 -1
  479. package/dist/webcomponents/{p-a136ff22.entry.js → p-0d038c74.entry.js} +1 -1
  480. package/dist/webcomponents/p-0d24f707.entry.js +1 -0
  481. package/dist/webcomponents/p-0f07e5d2.entry.js +1 -0
  482. package/dist/webcomponents/{p-5e467788.entry.js → p-114d2d7e.entry.js} +1 -1
  483. package/dist/webcomponents/p-16c567ac.entry.js +1 -0
  484. package/dist/webcomponents/{p-b40108c0.entry.js → p-1d59c747.entry.js} +1 -1
  485. package/dist/webcomponents/p-1debe4fc.entry.js +1 -0
  486. package/dist/webcomponents/p-1tXUo5Ef.js +1 -0
  487. package/dist/webcomponents/p-20ac139f.entry.js +1 -0
  488. package/dist/webcomponents/{p-a8119fda.entry.js → p-28190487.entry.js} +1 -1
  489. package/dist/webcomponents/{p-4b51a896.entry.js → p-30b1b0d4.entry.js} +1 -1
  490. package/dist/webcomponents/p-31b3575b.entry.js +1 -0
  491. package/dist/webcomponents/p-32d41de6.entry.js +1 -0
  492. package/dist/webcomponents/p-3523e4d2.entry.js +1 -0
  493. package/dist/webcomponents/p-3c172b0a.entry.js +1 -0
  494. package/dist/webcomponents/{p-bb50155f.entry.js → p-498ef7fe.entry.js} +1 -1
  495. package/dist/webcomponents/{p-5df5aa41.entry.js → p-4cdc323c.entry.js} +1 -1
  496. package/dist/webcomponents/p-54487455.entry.js +1 -0
  497. package/dist/webcomponents/p-55b2ccd4.entry.js +1 -0
  498. package/dist/webcomponents/p-56368e10.entry.js +1 -0
  499. package/dist/webcomponents/{p-7733b67b.entry.js → p-62308de3.entry.js} +1 -1
  500. package/dist/webcomponents/p-655e9c99.entry.js +1 -0
  501. package/dist/webcomponents/p-6ae0dad9.entry.js +1 -0
  502. package/dist/webcomponents/p-6ed72565.entry.js +1 -0
  503. package/dist/webcomponents/p-7982b38b.entry.js +1 -0
  504. package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
  505. package/dist/webcomponents/{p-c01544c3.entry.js → p-7efbe6e6.entry.js} +1 -1
  506. package/dist/webcomponents/p-803b249d.entry.js +1 -0
  507. package/dist/webcomponents/p-819c5da9.entry.js +1 -0
  508. package/dist/webcomponents/p-85b73bd5.entry.js +1 -0
  509. package/dist/webcomponents/p-8a2d963a.entry.js +1 -0
  510. package/dist/webcomponents/p-90521984.entry.js +1 -0
  511. package/dist/webcomponents/{p-a0662195.entry.js → p-93564eb7.entry.js} +1 -1
  512. package/dist/webcomponents/{p-77896e7b.entry.js → p-95aada97.entry.js} +1 -1
  513. package/dist/webcomponents/{p-BnE7qgLh.js → p-9REosSLu.js} +1 -1
  514. package/dist/webcomponents/{p-59abf1de.entry.js → p-9a4b9734.entry.js} +1 -1
  515. package/dist/webcomponents/p-B1jCcGW-.js +1 -0
  516. package/dist/webcomponents/{p-DuYlA4lj.js → p-BEDtXmpq.js} +1 -1
  517. package/dist/webcomponents/{p-D0ptm6-3.js → p-BRvTM0jE.js} +1 -1
  518. package/dist/webcomponents/{p-clwP6zk3.js → p-BZAglFez.js} +1 -1
  519. package/dist/webcomponents/{p-DR89sFne.js → p-BdTK0wi9.js} +1 -1
  520. package/dist/webcomponents/p-BeOlrj_S.js +1 -0
  521. package/dist/webcomponents/p-BhrFjjAs.js +1 -0
  522. package/dist/webcomponents/p-BjIcn6FF.js +1 -0
  523. package/dist/webcomponents/p-BoGb-Wsw.js +1 -0
  524. package/dist/webcomponents/p-Bta_r52Z.js +2 -0
  525. package/dist/webcomponents/{p-n2YROtpe.js → p-BvkP2v3x.js} +1 -1
  526. package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
  527. package/dist/webcomponents/{p-BrLVc_85.js → p-C71Mxtso.js} +1 -1
  528. package/dist/webcomponents/{p-uSM1EMk-.js → p-C8EG4ZSX.js} +1 -1
  529. package/dist/webcomponents/p-C8rAwXW9.js +1 -0
  530. package/dist/webcomponents/p-CA9D3qnA.js +1 -0
  531. package/dist/webcomponents/p-CBs671Ol.js +1 -0
  532. package/dist/webcomponents/p-CDTncSrX.js +1 -0
  533. package/dist/webcomponents/p-CFpYbRwn.js +1 -0
  534. package/dist/webcomponents/p-CGCMYhyV.js +1 -0
  535. package/dist/webcomponents/p-CJdXAC5R.js +1 -0
  536. package/dist/webcomponents/{p-r__elyG4.js → p-CO90ONTY.js} +1 -1
  537. package/dist/webcomponents/p-CbGBEkk3.js +1 -0
  538. package/dist/webcomponents/p-Cl-Q3cHB.js +1 -0
  539. package/dist/webcomponents/{p-Cd06j2SL.js → p-D3BIZZrc.js} +1 -1
  540. package/dist/webcomponents/p-DFPGAF4g.js +1 -0
  541. package/dist/webcomponents/p-DHP6oxsO.js +1 -0
  542. package/dist/webcomponents/p-DKClunJd.js +1 -0
  543. package/dist/webcomponents/{p-DnB1x5JE.js → p-DLr6u3Be.js} +1 -1
  544. package/dist/webcomponents/p-DT6jDcoi.js +1 -0
  545. package/dist/webcomponents/p-DX1Drndq.js +1 -0
  546. package/dist/webcomponents/p-D_FOQEGU.js +1 -0
  547. package/dist/webcomponents/p-Db-JSm6-.js +1 -0
  548. package/dist/webcomponents/{p-BR7flk4G.js → p-Dc10zfEZ.js} +1 -1
  549. package/dist/webcomponents/p-DddGO-XR.js +1 -0
  550. package/dist/webcomponents/p-DnX5CZFd.js +1 -0
  551. package/dist/webcomponents/p-Dw516k9e.js +1 -0
  552. package/dist/webcomponents/p-DwxSNAz7.js +1 -0
  553. package/dist/webcomponents/p-Fa3dQnb9.js +1 -0
  554. package/dist/webcomponents/p-IrS5pxMU.js +1 -0
  555. package/dist/webcomponents/p-JOSiCHl7.js +1 -0
  556. package/dist/webcomponents/p-NqdaxjDT.js +1 -0
  557. package/dist/webcomponents/p-RadC5UjV.js +1 -0
  558. package/dist/webcomponents/p-SuXHDcwL.js +1 -0
  559. package/dist/webcomponents/{p-D2ZiLcDE.js → p-Yj41tobi.js} +1 -1
  560. package/dist/webcomponents/{p-DvhDilDP.js → p-_P2I6GdZ.js} +1 -1
  561. package/dist/webcomponents/{p-70c498d4.entry.js → p-a3245777.entry.js} +1 -1
  562. package/dist/webcomponents/{p-99b080d9.entry.js → p-a8f1165e.entry.js} +1 -1
  563. package/dist/webcomponents/p-abcde13f.entry.js +1 -0
  564. package/dist/webcomponents/p-b0c7f45a.entry.js +1 -0
  565. package/dist/webcomponents/{p-abdae97a.entry.js → p-b122d960.entry.js} +1 -1
  566. package/dist/webcomponents/{p-33b23638.entry.js → p-badf50e2.entry.js} +1 -1
  567. package/dist/webcomponents/p-be676a47.entry.js +1 -0
  568. package/dist/webcomponents/p-bf9afbe6.entry.js +1 -0
  569. package/dist/webcomponents/{p-758ce5e5.entry.js → p-c1dabcc9.entry.js} +3 -3
  570. package/dist/webcomponents/p-c4989fc1.entry.js +1 -0
  571. package/dist/webcomponents/{p-5d81f36e.entry.js → p-c6f6cca0.entry.js} +1 -1
  572. package/dist/webcomponents/p-cbfb26e2.entry.js +1 -0
  573. package/dist/webcomponents/p-cc26a8fa.entry.js +1 -0
  574. package/dist/webcomponents/p-cc5dfa3d.entry.js +1 -0
  575. package/dist/webcomponents/{p-2c7ae3ac.entry.js → p-cc7d0b8c.entry.js} +1 -1
  576. package/dist/webcomponents/p-d039c1ea.entry.js +1 -0
  577. package/dist/webcomponents/p-d5f95784.entry.js +1 -0
  578. package/dist/webcomponents/{p-eHhqPyVW.js → p-d6tXI5Iw.js} +1 -1
  579. package/dist/webcomponents/p-dad85acd.entry.js +1 -0
  580. package/dist/webcomponents/p-db13afe8.entry.js +1 -0
  581. package/dist/webcomponents/{p-1678e9e3.entry.js → p-dd5c8738.entry.js} +1 -1
  582. package/dist/webcomponents/p-e2ac6f48.entry.js +1 -0
  583. package/dist/webcomponents/p-e2adbafd.entry.js +1 -0
  584. package/dist/webcomponents/p-ea664ada.entry.js +1 -0
  585. package/dist/webcomponents/{p-292da2d4.entry.js → p-ea883d7c.entry.js} +1 -1
  586. package/dist/webcomponents/{p-90c24cda.entry.js → p-ed8eb110.entry.js} +1 -1
  587. package/dist/webcomponents/{p-57c89023.entry.js → p-f0a849be.entry.js} +1 -1
  588. package/dist/webcomponents/p-f165c5fc.entry.js +1 -0
  589. package/dist/webcomponents/{p-a94952f6.entry.js → p-f1dcc9c2.entry.js} +1 -1
  590. package/dist/webcomponents/{p-10d41e17.entry.js → p-f21e1351.entry.js} +1 -1
  591. package/dist/webcomponents/p-f2d283e5.entry.js +1 -0
  592. package/dist/webcomponents/p-f55f054a.entry.js +1 -0
  593. package/dist/webcomponents/p-f7ae2df8.entry.js +1 -0
  594. package/dist/webcomponents/p-f7ef66ba.entry.js +1 -0
  595. package/dist/webcomponents/p-f8750427.entry.js +1 -0
  596. package/dist/webcomponents/{p-c5628e09.entry.js → p-fa781ff0.entry.js} +1 -1
  597. package/dist/webcomponents/p-fe5b7b4c.entry.js +1 -0
  598. package/dist/webcomponents/p-hDoH7hHP.js +1 -0
  599. package/dist/webcomponents/{p-C0WFYqwq.js → p-kfHhaHAJ.js} +1 -1
  600. package/dist/webcomponents/p-pGzabKc7.js +1 -0
  601. package/dist/webcomponents/p-uLUlLQpP.js +1 -0
  602. package/dist/webcomponents/p-zucQG3cz.js +1 -0
  603. package/dist/webcomponents/webcomponents.esm.js +1 -1
  604. package/package.json +1 -1
  605. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  606. package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -581
  607. package/dist/cjs/iframe-input-styles-state-D9vhHzZQ.js +0 -26
  608. package/dist/cjs/terminals-list-params-state-BvG5Ysrg.js +0 -22
  609. package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
  610. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  611. package/dist/esm/bank-account-form_9.entry.js +0 -571
  612. package/dist/esm/iframe-input-styles-state-ibYqbF--.js +0 -23
  613. package/dist/esm/terminals-list-params-state-Bn7pL-8x.js +0 -16
  614. package/dist/module/Document.js +0 -55
  615. package/dist/module/checkout-core.js +0 -274
  616. package/dist/module/new-payment-method.js +0 -204
  617. package/dist/module/saved-payment-method.js +0 -79
  618. package/dist/webcomponents/p-16d29d0b.entry.js +0 -1
  619. package/dist/webcomponents/p-19b9c96a.entry.js +0 -1
  620. package/dist/webcomponents/p-22a0b397.entry.js +0 -1
  621. package/dist/webcomponents/p-2c8d7aa9.entry.js +0 -1
  622. package/dist/webcomponents/p-3368d3d5.entry.js +0 -1
  623. package/dist/webcomponents/p-3a979295.entry.js +0 -1
  624. package/dist/webcomponents/p-3e94cf62.entry.js +0 -1
  625. package/dist/webcomponents/p-40f7e3af.entry.js +0 -1
  626. package/dist/webcomponents/p-4680f931.entry.js +0 -1
  627. package/dist/webcomponents/p-4a070b7a.entry.js +0 -1
  628. package/dist/webcomponents/p-4f8b9b99.entry.js +0 -1
  629. package/dist/webcomponents/p-57fc593a.entry.js +0 -1
  630. package/dist/webcomponents/p-639baa7d.entry.js +0 -1
  631. package/dist/webcomponents/p-6429afb4.entry.js +0 -1
  632. package/dist/webcomponents/p-6n7viK-J.js +0 -1
  633. package/dist/webcomponents/p-722c5e42.entry.js +0 -1
  634. package/dist/webcomponents/p-77ac321c.entry.js +0 -1
  635. package/dist/webcomponents/p-7d3cf734.entry.js +0 -1
  636. package/dist/webcomponents/p-8183c2d1.entry.js +0 -1
  637. package/dist/webcomponents/p-8ad67f87.entry.js +0 -1
  638. package/dist/webcomponents/p-8c107267.entry.js +0 -1
  639. package/dist/webcomponents/p-935bbc62.entry.js +0 -1
  640. package/dist/webcomponents/p-93df56e1.entry.js +0 -1
  641. package/dist/webcomponents/p-B0cQ2RjH.js +0 -1
  642. package/dist/webcomponents/p-B190pN0v.js +0 -1
  643. package/dist/webcomponents/p-BjMTOtI1.js +0 -1
  644. package/dist/webcomponents/p-Bk4gk-f7.js +0 -1
  645. package/dist/webcomponents/p-C0IqfGFc.js +0 -1
  646. package/dist/webcomponents/p-C1sOJl-_.js +0 -1
  647. package/dist/webcomponents/p-C5RuuShs.js +0 -1
  648. package/dist/webcomponents/p-COcul8pX.js +0 -1
  649. package/dist/webcomponents/p-CQdeVKF8.js +0 -1
  650. package/dist/webcomponents/p-CaGOSFHG.js +0 -1
  651. package/dist/webcomponents/p-CgxzrbM_.js +0 -1
  652. package/dist/webcomponents/p-Cm_0sqXz.js +0 -1
  653. package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
  654. package/dist/webcomponents/p-Cx60eQXT.js +0 -1
  655. package/dist/webcomponents/p-D4Mv5jCp.js +0 -1
  656. package/dist/webcomponents/p-D5XSsLKb.js +0 -1
  657. package/dist/webcomponents/p-D6FDxSyt.js +0 -2
  658. package/dist/webcomponents/p-DClC2nMO.js +0 -1
  659. package/dist/webcomponents/p-DDEz7_ad.js +0 -1
  660. package/dist/webcomponents/p-DJzjeg3x.js +0 -1
  661. package/dist/webcomponents/p-DQuL1Twl.js +0 -1
  662. package/dist/webcomponents/p-DgfzEZny.js +0 -1
  663. package/dist/webcomponents/p-DjGTAHJM.js +0 -1
  664. package/dist/webcomponents/p-DniQ6yo6.js +0 -1
  665. package/dist/webcomponents/p-DzFysjCc.js +0 -1
  666. package/dist/webcomponents/p-HBDBB6lL.js +0 -1
  667. package/dist/webcomponents/p-SdntD1xf.js +0 -1
  668. package/dist/webcomponents/p-U30-0DaA.js +0 -1
  669. package/dist/webcomponents/p-_pH3Hg4P.js +0 -1
  670. package/dist/webcomponents/p-a33cfcfe.entry.js +0 -1
  671. package/dist/webcomponents/p-a6722f44.entry.js +0 -1
  672. package/dist/webcomponents/p-af09b6ee.entry.js +0 -1
  673. package/dist/webcomponents/p-b0d3aab7.entry.js +0 -1
  674. package/dist/webcomponents/p-b1586aa2.entry.js +0 -1
  675. package/dist/webcomponents/p-c3c7be24.entry.js +0 -1
  676. package/dist/webcomponents/p-c5b6b76f.entry.js +0 -1
  677. package/dist/webcomponents/p-c6490254.entry.js +0 -1
  678. package/dist/webcomponents/p-cNABKY0P.js +0 -1
  679. package/dist/webcomponents/p-ceefc483.entry.js +0 -1
  680. package/dist/webcomponents/p-d8b8b17c.entry.js +0 -1
  681. package/dist/webcomponents/p-e2bfdba5.entry.js +0 -1
  682. package/dist/webcomponents/p-e73fe424.entry.js +0 -1
  683. package/dist/webcomponents/p-f23d4fdb.entry.js +0 -1
  684. package/dist/webcomponents/p-ffd197c2.entry.js +0 -1
  685. package/dist/webcomponents/p-gZGxqQgQ.js +0 -1
  686. package/dist/webcomponents/p-l3o3Ndc0.js +0 -1
  687. package/dist/webcomponents/p-l3uWWMRW.js +0 -1
  688. package/dist/webcomponents/p-um3YdOwW.js +0 -1
  689. package/dist/webcomponents/p-wqUvt1PB.js +0 -1
@@ -1,16 +1,44 @@
1
- import { object } from "yup";
2
- import { accountNumberValidation, accountTypeValidation, bankNameValidation, identityNameValidation, nicknameValidation, routingNumberValidation, voidedCheckValidation, bankStatementValidation } from "./schema-validations";
1
+ import { object, mixed } from "yup";
2
+ import { EntityDocumentType } from "../../../api/Document";
3
+ import { accountNumberValidation, accountTypeValidation, bankNameValidation, identityNameValidation, nicknameValidation, routingNumberValidation } from "./schema-validations";
4
+ const checkExistingDocs = (documents, documentType) => {
5
+ return documents.some((doc) => doc.document_type === documentType);
6
+ };
7
+ const documentErrorText = 'Please upload either a voided check or a bank statement. Only one is required.';
3
8
  export const businessBankAccountSchema = (documents, allowOptionalFields) => {
4
- const schema = object({
9
+ const existingVoidedCheck = checkExistingDocs(documents, EntityDocumentType.voidedCheck);
10
+ const existingBankStatement = checkExistingDocs(documents, EntityDocumentType.bankStatement);
11
+ const existingDocument = existingVoidedCheck || existingBankStatement;
12
+ const schema = object().shape({
5
13
  bank_name: bankNameValidation.required('Enter bank name'),
6
14
  nickname: nicknameValidation.required('Enter nickname'),
7
15
  account_owner_name: identityNameValidation.required('Enter account owner name'),
8
16
  account_type: accountTypeValidation.required('Select account type'),
9
17
  account_number: accountNumberValidation.required('Enter account number'),
10
18
  routing_number: routingNumberValidation.required('Enter routing number'),
11
- voided_check: voidedCheckValidation(documents, allowOptionalFields),
12
- bank_statement: bankStatementValidation(documents, allowOptionalFields)
13
- });
19
+ voided_check: mixed().when('bank_statement', {
20
+ is: (val) => {
21
+ return !val && !existingDocument;
22
+ },
23
+ then: (schema) => {
24
+ return schema.required(documentErrorText);
25
+ },
26
+ otherwise: (schema) => {
27
+ return schema.notRequired();
28
+ }
29
+ }),
30
+ bank_statement: mixed().when('voided_check', {
31
+ is: (val) => {
32
+ return !val && !existingDocument;
33
+ },
34
+ then: (schema) => {
35
+ return schema.required(documentErrorText);
36
+ },
37
+ otherwise: (schema) => {
38
+ return schema.notRequired();
39
+ }
40
+ }),
41
+ }, [['voided_check', 'bank_statement']]);
14
42
  const easySchema = object({
15
43
  bank_name: bankNameValidation.nullable(),
16
44
  nickname: nicknameValidation.nullable(),
@@ -18,8 +46,8 @@ export const businessBankAccountSchema = (documents, allowOptionalFields) => {
18
46
  account_type: accountTypeValidation.nullable(),
19
47
  account_number: accountNumberValidation.nullable(),
20
48
  routing_number: routingNumberValidation.nullable(),
21
- voided_check: voidedCheckValidation(documents, allowOptionalFields),
22
- bank_statement: bankStatementValidation(documents, allowOptionalFields)
49
+ voided_check: mixed().nullable(),
50
+ bank_statement: mixed().nullable(),
23
51
  });
24
52
  return allowOptionalFields ? easySchema : schema;
25
53
  };
@@ -1,8 +1,7 @@
1
- import { mixed, string } from "yup";
1
+ import { string } from "yup";
2
2
  import StateOptions from "../../../utils/state-options";
3
3
  import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, businessClassificationOptions, } from "../utils/business-form-options";
4
4
  import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber, } from "./schema-helpers";
5
- import { EntityDocumentType } from "../../../api/Document";
6
5
  // Common Validations
7
6
  export const emailValidation = string()
8
7
  .email('Enter valid email')
@@ -161,48 +160,3 @@ export const routingNumberValidation = string()
161
160
  return validateRoutingNumber(value);
162
161
  })
163
162
  .transform(transformEmptyString);
164
- // Document Upload Validations
165
- const documentUploadValidation = mixed();
166
- export const ss4Validation = documentUploadValidation;
167
- export const governmentIdValidation = documentUploadValidation;
168
- export const otherDocumentValidation = documentUploadValidation;
169
- export const voidedCheckValidation = (documents, allowOptionalFields) => {
170
- const existingDoc = documents.some((doc) => doc.document_type === EntityDocumentType.voidedCheck);
171
- if (existingDoc || allowOptionalFields) {
172
- return documentUploadValidation.nullable();
173
- }
174
- else {
175
- return documentUploadValidation.required('Please select one or more files');
176
- }
177
- };
178
- export const bankStatementValidation = (documents, allowOptionalFields) => {
179
- const existingDoc = documents.some((doc) => doc.document_type === EntityDocumentType.bankStatement);
180
- if (existingDoc || allowOptionalFields) {
181
- return documentUploadValidation.nullable();
182
- }
183
- else {
184
- return documentUploadValidation.required('Please select one or more files');
185
- }
186
- };
187
- export const balanceSheetValidation = (volume, documents, allowOptionalFields) => {
188
- const vol = parseInt(volume);
189
- const balanceSheetRequiredAmount = 1000000;
190
- const existingDoc = documents.some((doc) => doc.document_type === EntityDocumentType.balanceSheet);
191
- if (existingDoc || allowOptionalFields) {
192
- return documentUploadValidation.nullable();
193
- }
194
- else if (vol >= balanceSheetRequiredAmount && !allowOptionalFields) {
195
- return documentUploadValidation.required('Please select one or more files');
196
- }
197
- };
198
- export const profitAndLossStatementValidation = (volume, documents, allowOptionalFields) => {
199
- const vol = parseInt(volume);
200
- const profitLossRequiredAmount = 1000000;
201
- const existingDoc = documents.some((doc) => doc.document_type === EntityDocumentType.profitAndLossStatement);
202
- if (existingDoc || allowOptionalFields) {
203
- return documentUploadValidation.nullable();
204
- }
205
- else if (vol >= profitLossRequiredAmount && !allowOptionalFields) {
206
- return documentUploadValidation.required('Please select one or more files');
207
- }
208
- };
@@ -31,10 +31,10 @@ export class BankAccountForm {
31
31
  return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: 'b6cdf5a9320d92a5390daaa0a5218274f2dfc178' }, h(BankAccountFormSkeleton, { key: '286fcc38a26820d166ced0bc886143ed3d880da4', isReady: this.isReady }), h("div", { key: '041fcacff70d7cdfc0c8f41258bd9db18703e4c1', class: "container-fluid p-0", style: {
34
+ return (h(Host, { key: '1b0156c264d4eddde8a97f78fefb70bd0c997aa0' }, h(BankAccountFormSkeleton, { key: '34cc2e35f9f3e5d88e03343db3b2a1fcf5d1b9e2', isReady: this.isReady }), h("div", { key: '472a483b7061174762ff3413f1da3af8952e100d', class: "container-fluid p-0", style: {
35
35
  opacity: this.isReady ? '1' : '0',
36
36
  height: this.isReady ? 'auto' : '0',
37
- } }, h("div", { key: '94dc0eb0d79b40ade96e1961611e3e7a8eef20ea', class: "row mb-3" }, h("iframe-input", { key: '41c82b772e7873a45409e35ed56dfea16c20c2ee', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '1c95618a50e2d36a3a9a3a7b691ae0dfa6a09936', class: "row" }, h("iframe-input", { key: '28a4dde70c8f55b4f6bf6ce2d3beee6acbebbc0b', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
37
+ } }, h("div", { key: '975830a13c6f33fe89c1a40ac6d78c1a2342154d', class: "row mb-3" }, h("iframe-input", { key: '0c97e7e9fcc461ff67d572d6628639eb71368502', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '0648b42be75e251e20e47ebcc2599e597e03f1b3', class: "row" }, h("iframe-input", { key: 'e33011481a387bd05335804b82957b40129ddf4e', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
38
38
  }
39
39
  static get is() { return "bank-account-form"; }
40
40
  static get states() {
@@ -1,9 +1,7 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { billingFormSchema } from "./billing-form-schema";
3
3
  import { billingForm } from "../../../styles/parts";
4
4
  import { Header3 } from "../../../ui-components";
5
- import { numberOnlyHandler } from "../../../ui-components/form/utils";
6
- import StateOptions from "../../../utils/state-options";
7
5
  import { FormController } from "../../../ui-components/form/form";
8
6
  export class BillingForm {
9
7
  constructor() {
@@ -40,9 +38,8 @@ export class BillingForm {
40
38
  return { isValid, errors };
41
39
  }
42
40
  render() {
43
- const billingFormDefaultValue = this.formController.getInitialValues();
44
41
  const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
45
- return (h(Host, { key: 'df86239c476aadde3af18742bbf643d61825c051' }, h("div", { key: '186f3ef6c2295223da888b7645a0af7aa8df4535', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '72284e3fcea18cbdfe879989fb7f1b007e2a37df', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '9479d696a0486e63edfad4bd0dbe374a21cb7b8c' }, h("fieldset", { key: 'b780abf09a714f2e9588670ad149c3ca999cbc87' }, this.legend && h("legend", { key: 'f102dc51722fe2f050c951e7b56117c9577f3b83' }, this.legend), h("div", { key: '00d6c7e35d768f3357cc17836c916e2bf24e3a7e', class: "row gy-3" }, h("div", { key: 'cb2b29aa769c97ccab246dc74e463d389497edbd', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '3cb8ca5e3ecd0817f8e16aafbb5d3ca5ee7824ed', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '781338b1c79fd815d2ab2dbc15e7b56b534a2278', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '682a37c6b417fbc0edf76b89122b5bf618603360', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '50d657891e492c8568bf179d752b9aadf10f2387', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'ce1f04bfc3307af7a025390bcbcce6a6b3da6fab', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: 'ddb45c1cbdc6aa5d27c6a0c4b6f29366ed0e8eba', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '410efdbcd5381bdf61d9c752f292f794d8e12670', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: 'a65811acc25443a07cdb1401231ce1e703096fd4', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'bed28d564c9e5a2ebfc10b6ab47e43e2b17bd6e6', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '8aca307d318e87b17e09122fa91e817c0a59c8d5', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: '4dd06dc9ae01fc2953780e52f9e9c918a38a7bbd', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
42
+ return (h("div", { key: 'e1834cb4638e0b5ea99c55e7a2f73542d2e5ea8d', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '9936d16177d2c83219872c44b9ca91c264ae7052', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), this.legend && h("legend", { key: 'c467223d7571122ea5c17885eed658c6cd6faf36' }, this.legend), this.isPostalOnlyMode ? (h("justifi-postal-code-form", null)) : (h("justifi-billing-information-form", null))));
46
43
  }
47
44
  static get is() { return "justifi-billing-form"; }
48
45
  static get properties() {
@@ -35,10 +35,10 @@ export class CardForm {
35
35
  return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
36
36
  }
37
37
  render() {
38
- return (h(Host, { key: '3d28e96f020196a359a359507237b50dd9fed020' }, h(CardFormSkeleton, { key: 'ee07eb10acf142fcaab1398278e335df49f1abe9', isReady: this.isReady }), h("div", { key: 'bfce475f392cbb2bad3fd1c76f16c6e6a6718c1f', class: "container-fluid p-0", style: {
38
+ return (h(Host, { key: 'c43351c7ab1eb6bf413f162634f55007798bb076' }, h(CardFormSkeleton, { key: 'f0a29497de2270108868e892d666b552dea27a1e', isReady: this.isReady }), h("div", { key: '2734b111c1f2f2275435d2141445ac30482946be', class: "container-fluid p-0", style: {
39
39
  opacity: this.isReady ? '1' : '0',
40
40
  height: this.isReady ? 'auto' : '0',
41
- } }, h("div", { key: 'e8517852800a9a165e61308f8d1cf875a87c021e', class: "mb-3" }, h("iframe-input", { key: '6efe224b7f4a2f63eec601d3e48c454d78c30300', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: 'cb6df3c5d9788a22c26255d1fe94331544730d24', class: "row" }, h("div", { key: '895943798b131da4215b24da822f7109e045e05b', class: "col-4 align-content-end" }, h("iframe-input", { key: 'ebea71cabe9f783734f924cfd0b03797cd203ce7', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: 'a65042ba66ca4a2a6f520147d316eb20f82369ea', class: "col-4 align-content-end" }, h("iframe-input", { key: '8ef921245a3075ba36c310955bea671b71aca658', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'e37d637b078a36736ba698d0d96465e138fcf5ab', class: "col-4 align-content-end" }, h("iframe-input", { key: 'df20adb17524ea29f55e1c223267a9f0294b6062', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
41
+ } }, 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: 'cd54e4a30da50cfe5151b557fe1d92ebb483ad7e', class: "row" }, h("div", { key: '6b3e84079d606a6ffd5580deae0d6e4563d4c7ef', class: "col-4 align-content-end" }, h("iframe-input", { key: '9ea2ad1c93ca90bbb4bc7a4c83a72e8f4cc9da61', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '9478f77f64decfcdfd77f888d54cb37f46ad8ab7', class: "col-4 align-content-end" }, h("iframe-input", { key: '43191d41eb743e0c509236ea316c1afb180b8fbb', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: '65599647fc750e6c62fb2866190ffa87689d8a5b', class: "col-4 align-content-end" }, h("iframe-input", { key: 'df367f3143aaff25ba9147698090ccbcea902cbf', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
42
42
  }
43
43
  static get is() { return "card-form"; }
44
44
  static get states() {
@@ -1,62 +1,112 @@
1
1
  import { h } from "@stencil/core";
2
- import { makeGetCheckout, makeCheckoutComplete } from "../../actions/checkout/checkout-actions";
2
+ import { makeGetCheckout } from "../../actions/checkout/checkout-actions";
3
3
  import { CheckoutService } from "../../api/services/checkout.service";
4
- import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
5
4
  import JustifiAnalytics from "../../api/Analytics";
5
+ import { Checkout as CheckoutConstructor } from "../../api";
6
6
  import { checkPkgVersion } from "../../utils/check-pkg-version";
7
+ import checkoutStore from "../../store/checkout.store";
8
+ import { Button, Header2, Header3, Skeleton, StyledHost } from "../../ui-components";
9
+ import { checkoutSummary } from "../../styles/parts";
10
+ import { insuranceValues, insuranceValuesOn, validateInsuranceValues } from "../insurance/insurance-state";
7
11
  export class Checkout {
8
12
  constructor() {
9
13
  this.errorMessage = '';
14
+ this.insuranceToggled = false;
15
+ this.renderState = 'loading';
16
+ this.fetchData = () => {
17
+ this.renderState = 'loading';
18
+ const actionsConfig = {
19
+ authToken: this.authToken,
20
+ checkoutId: this.checkoutId,
21
+ service: new CheckoutService()
22
+ };
23
+ const getCheckout = makeGetCheckout(actionsConfig);
24
+ getCheckout({
25
+ onSuccess: ({ checkout }) => {
26
+ this.checkout = new CheckoutConstructor(checkout);
27
+ const { status } = this.checkout;
28
+ this.loadedEvent.emit({ checkout_status: status });
29
+ this.renderState = 'success';
30
+ },
31
+ onError: ({ error, code, severity }) => {
32
+ this.serverError = error;
33
+ this.renderState = 'error';
34
+ this.errorEvent.emit({
35
+ errorCode: code,
36
+ message: error,
37
+ severity,
38
+ });
39
+ }
40
+ });
41
+ };
42
+ }
43
+ propChanged() {
44
+ checkoutStore.authToken = this.authToken;
45
+ checkoutStore.checkoutId = this.checkoutId;
46
+ this.fetchData();
47
+ }
48
+ connectedCallback() {
49
+ if (this.authToken && this.checkoutId) {
50
+ checkoutStore.checkoutId = this.checkoutId;
51
+ checkoutStore.authToken = this.authToken;
52
+ }
10
53
  }
11
54
  componentWillLoad() {
12
55
  checkPkgVersion();
13
56
  this.analytics = new JustifiAnalytics(this);
14
- this.initializeGetCheckout();
57
+ this.fetchData();
58
+ // Refresh the checkout data when insurance is added or removed
59
+ insuranceValuesOn('set', (key) => {
60
+ const value = insuranceValues[key];
61
+ if (value !== undefined) {
62
+ this.insuranceToggled = value;
63
+ this.fetchData();
64
+ }
65
+ });
15
66
  }
16
67
  disconnectedCallback() {
17
68
  var _a;
18
69
  (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
19
70
  }
20
71
  ;
21
- initializeGetCheckout() {
22
- if (this.authToken && this.checkoutId) {
23
- this.getCheckout = makeGetCheckout({
24
- authToken: this.authToken,
25
- checkoutId: this.checkoutId,
26
- service: new CheckoutService()
27
- });
28
- this.complete = makeCheckoutComplete({
29
- authToken: this.authToken,
30
- checkoutId: this.checkoutId,
31
- service: new CheckoutService()
32
- });
33
- }
34
- else {
35
- this.errorEvent.emit({
36
- message: 'auth-token and checkout-id are required',
37
- errorCode: ComponentErrorCodes.MISSING_PROPS,
38
- severity: ComponentErrorSeverity.ERROR,
39
- });
40
- }
72
+ async submit(_event) {
73
+ // calls the submitCheckout method on the checkout wrapper
74
+ this.modularCheckoutRef.submitCheckout();
41
75
  }
42
- propChanged() {
43
- this.initializeGetCheckout();
76
+ get isLoading() {
77
+ return this.renderState === 'loading';
78
+ }
79
+ get summary() {
80
+ return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("justifi-checkout-summary", null)));
81
+ }
82
+ get paymentTypeHeader() {
83
+ const showPaymentTypeHeader = !this.disableCreditCard && !this.disableBankAccount;
84
+ if (!showPaymentTypeHeader)
85
+ return null;
86
+ return (h(Header3, { text: "Select payment type", class: "fs-6 fw-bold lh-lg" }));
87
+ }
88
+ get paymentType() {
89
+ var _a, _b, _c, _d, _e;
90
+ return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "300px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, paymentMethodGroupId: (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_method_group_id, "show-saved-payment-methods": !this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, authToken: this.authToken, "account-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.account_id, savedPaymentMethods: ((_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_methods) || [], paymentAmount: (_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_amount, insuranceToggled: this.insuranceToggled }))));
44
91
  }
45
92
  async fillBillingForm(fields) {
46
- this.checkoutCoreRef.fillBillingForm(fields);
93
+ this.paymentMethodOptionsRef.fillBillingForm(fields);
47
94
  }
48
95
  async validate() {
49
- const { isValid } = await this.checkoutCoreRef.validate();
50
- return { isValid };
96
+ const insuranceValidation = validateInsuranceValues();
97
+ const { isValid } = await this.paymentMethodOptionsRef.validate();
98
+ if (!insuranceValidation.isValid || !isValid) {
99
+ return { isValid: false };
100
+ }
101
+ else {
102
+ return { isValid: true };
103
+ }
51
104
  }
52
105
  render() {
53
- return (h("justifi-checkout-core", { key: 'c1c7cf4f1aadce928e3ed6a6ae05a7824d875d68', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: el => {
54
- if (el) {
55
- this.checkoutCoreRef = el;
56
- }
57
- } }, h("div", { key: '7a4be7220e5eb199f94c5086c23e10dce68d4854', slot: "insurance" }, h("slot", { key: 'f5db23ef6dc82d0521518ea2dbfe99d8c8b6c2cc', name: "insurance" }))));
106
+ return (h(StyledHost, { key: '1a7978a2b2ae5f483ded09e8c2b49a1c3bee1dc1' }, h("justifi-modular-checkout", { key: '4da7015d6634fa1f703b88cd153bc55db256476a', ref: (el) => (this.modularCheckoutRef = el), authToken: this.authToken, checkoutId: this.checkoutId }, h("div", { key: 'e3560a86e3634836bab94ad424850dfb72789674', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '31bde37f031dc3b18fe1da5f2a30d615aa3d079f', class: "col-12", part: checkoutSummary }, h(Header2, { key: 'd46cd4136ad4f0cac076e866f8fe095510a6361d', text: "Summary", class: "fs-5 fw-bold pb-3" }), this.summary), h("div", { key: 'efbba765415361bea56bc20d511640da23708c6a', class: "col-12" }, h("slot", { key: 'ca4d2531fb55c15ea1326921fb90d6a7cd14e579', name: "insurance" })), h("div", { key: '58b01f658771ef6be037713add40e7ff03361dc3', class: "col-12 mt-4" }, h(Header2, { key: '990723c85b6adf8eaa0711017d023d9103e1b8f2', text: "Payment", class: "fs-5 fw-bold pb-3" }), this.paymentTypeHeader, h("div", { key: 'dcc79ad150a87e7c67a78ff50b94585562d64d11', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: '592f0c0d86c9f1bf9c56f82e8cdcfdcc12e7c5c4', class: "col-12" }, h("div", { key: '8130711b909ffca43c37b4eacab515c8a7acb77c', class: "d-flex justify-content-end" }, h(Button, { key: '7da0c99ff8438b22f6cf6a3f2d3bfc5d32a97ad2', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay")))))));
58
107
  }
59
108
  static get is() { return "justifi-checkout"; }
109
+ static get encapsulation() { return "shadow"; }
60
110
  static get properties() {
61
111
  return {
62
112
  "authToken": {
@@ -215,9 +265,12 @@ export class Checkout {
215
265
  }
216
266
  static get states() {
217
267
  return {
218
- "getCheckout": {},
268
+ "checkout": {},
219
269
  "complete": {},
220
- "errorMessage": {}
270
+ "errorMessage": {},
271
+ "insuranceToggled": {},
272
+ "renderState": {},
273
+ "serverError": {}
221
274
  };
222
275
  }
223
276
  static get events() {
@@ -242,6 +295,27 @@ export class Checkout {
242
295
  }
243
296
  }
244
297
  }
298
+ }, {
299
+ "method": "submitEvent",
300
+ "name": "submit-event",
301
+ "bubbles": true,
302
+ "cancelable": true,
303
+ "composed": true,
304
+ "docs": {
305
+ "tags": [],
306
+ "text": ""
307
+ },
308
+ "complexType": {
309
+ "original": "ComponentSubmitEvent",
310
+ "resolved": "ComponentSubmitEvent",
311
+ "references": {
312
+ "ComponentSubmitEvent": {
313
+ "location": "import",
314
+ "path": "../../api/ComponentEvents",
315
+ "id": "src/api/ComponentEvents.ts::ComponentSubmitEvent"
316
+ }
317
+ }
318
+ }
245
319
  }, {
246
320
  "method": "loadedEvent",
247
321
  "name": "loaded",
@@ -80,14 +80,14 @@ export class NewPaymentMethod {
80
80
  showNewPaymentMethodForm() {
81
81
  var _a;
82
82
  const paymentMethodType = (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id;
83
- 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 })));
83
+ return (h("div", { class: "mt-4 pb-4" }, h("hidden-input", null), paymentMethodType === 'card' ? (h("justifi-card-form", null)) : (h("justifi-bank-account-form", null)), h("justifi-billing-form", { hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodType }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
84
84
  }
85
85
  get hiddenRadioInput() {
86
86
  return !this.showAch || !this.showCard;
87
87
  }
88
88
  render() {
89
89
  var _a, _b;
90
- 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));
90
+ return (h(Host, { key: '86a50eecba10706b674e3517c7b1e5ba6674035a', class: "payment-method" }, h("div", { key: '54ec6ea1d0eb1f1bcbb0b5c145858a270dc7ccf4', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: '348ab53888c29f3b942f2698dcb72450d73ed90d', 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));
91
91
  }
92
92
  static get is() { return "justifi-new-payment-method"; }
93
93
  static get properties() {
@@ -1,6 +1,12 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { PaymentMethodTypes } from "../../api/Payment";
3
3
  import { PaymentMethodOption } from "./payment-method-option-utils";
4
+ import checkoutStore from "../../store/checkout.store";
5
+ import { radioListItem } from "../../styles/parts";
6
+ const PaymentMethodTypeLabels = {
7
+ bankAccount: 'New bank account',
8
+ card: 'New credit or debit card',
9
+ };
4
10
  export class PaymentMethodOptions {
5
11
  constructor() {
6
12
  this.savedPaymentMethods = [];
@@ -33,12 +39,15 @@ export class PaymentMethodOptions {
33
39
  if (this.showAch) {
34
40
  this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
35
41
  }
36
- if (!this.selectedPaymentMethodId) {
37
- this.selectedPaymentMethodId = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
42
+ if (!checkoutStore.selectedPaymentMethod) {
43
+ checkoutStore.selectedPaymentMethod = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
38
44
  }
39
45
  }
40
46
  paymentMethodOptionSelected(event) {
41
- this.selectedPaymentMethodId = event.detail.id;
47
+ checkoutStore.selectedPaymentMethod = event.detail.id;
48
+ }
49
+ get hiddenRadioInput() {
50
+ return !this.showAch || !this.showCard;
42
51
  }
43
52
  async resolvePaymentMethod(insuranceValidation) {
44
53
  var _a;
@@ -49,34 +58,7 @@ export class PaymentMethodOptions {
49
58
  return newPaymentMethodElement.validate();
50
59
  }
51
60
  render() {
52
- var _a;
53
- return (h(Host, { key: 'c61e82c72aaa25e87ded723799a1eb0961c05444' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
54
- const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
55
- const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
56
- const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
57
- const sezzle = paymentMethodOption.id === PaymentMethodTypes.sezzle;
58
- if (newCard || newBankAccount) {
59
- 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) => {
60
- if (isSelected) {
61
- this.selectedPaymentMethodOptionRef = el;
62
- }
63
- } }));
64
- }
65
- else if (sezzle) {
66
- return (h("justifi-sezzle-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, paymentAmount: this.paymentAmount, bnpl: this.bnpl, ref: (el) => {
67
- if (isSelected) {
68
- this.selectedPaymentMethodOptionRef = el;
69
- }
70
- } }));
71
- }
72
- else if (this.showSavedPaymentMethods) {
73
- return (h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
74
- if (isSelected) {
75
- this.selectedPaymentMethodOptionRef = el;
76
- }
77
- } }));
78
- }
79
- })));
61
+ return (h("div", { key: '43947388e9c3e84f5af7ebefb379dcb0fc89bae7' }, h("div", { key: '203dde4a60f39cfb38408f58670b89047cadd3b3', class: "radio-list-item p-3", part: radioListItem, onClick: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.card; }, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'c26d64e69722cbdcdd1d573c93328d322b2db256', name: "paymentMethodType", value: PaymentMethodTypes.card, checked: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card, label: PaymentMethodTypeLabels[PaymentMethodTypes.card] })), h("div", { key: '87799dce96c87b24d3f7ecc597021dbfde851a22', class: "radio-list-item p-3", part: radioListItem, onClick: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.bankAccount; }, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: '22df7be58ce8a58a8ce38a52912234bd313c4d2e', name: "paymentMethodType", value: PaymentMethodTypes.bankAccount, checked: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.bankAccount, label: PaymentMethodTypeLabels[PaymentMethodTypes.bankAccount] })), h("justifi-sezzle-payment-method", { key: '3ce43229e7268a453e5a2bad83f573105e8a6727' }), h("justifi-saved-payment-methods", { key: 'e6de7f6010736a702337dd91defc8bf00604ee34', exportparts: radioListItem.split(' ').join(',') })));
80
62
  }
81
63
  static get is() { return "justifi-payment-method-options"; }
82
64
  static get properties() {
@@ -119,9 +101,9 @@ export class PaymentMethodOptions {
119
101
  "setter": false,
120
102
  "reflect": false
121
103
  },
122
- "showBnpl": {
104
+ "showSavedPaymentMethods": {
123
105
  "type": "boolean",
124
- "attribute": "show-bnpl",
106
+ "attribute": "show-saved-payment-methods",
125
107
  "mutable": false,
126
108
  "complexType": {
127
109
  "original": "boolean",
@@ -138,9 +120,9 @@ export class PaymentMethodOptions {
138
120
  "setter": false,
139
121
  "reflect": false
140
122
  },
141
- "showSavedPaymentMethods": {
123
+ "showBnpl": {
142
124
  "type": "boolean",
143
- "attribute": "show-saved-payment-methods",
125
+ "attribute": "show-bnpl",
144
126
  "mutable": false,
145
127
  "complexType": {
146
128
  "original": "boolean",
@@ -337,7 +319,6 @@ export class PaymentMethodOptions {
337
319
  }
338
320
  static get states() {
339
321
  return {
340
- "selectedPaymentMethodId": {},
341
322
  "paymentMethodOptions": {}
342
323
  };
343
324
  }
@@ -8,7 +8,7 @@ export class SaveNewPaymentMethod {
8
8
  this.checkboxChanged.emit(this.isChecked);
9
9
  }
10
10
  render() {
11
- 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) })));
11
+ return (h("div", { key: 'b196a8d34fb4afe1293f4ff9f6eea8bb3ed4c1a6', class: "mt-4 form-check" }, h("form-control-checkbox", { key: '1f35cb80578373e1f77f2a95f08310f0830e1c90', label: "Save new payment method", name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange.bind(this) })));
12
12
  }
13
13
  static get is() { return "justifi-save-new-payment-method"; }
14
14
  static get states() {
@@ -18,7 +18,7 @@ export class SavedPaymentMethod {
18
18
  ;
19
19
  render() {
20
20
  var _a, _b, _c;
21
- 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}` }))));
21
+ return (h(Host, { key: '96a1e315728d17d67ef35f2a269210ec28b7eb24', class: "payment-method" }, h("div", { key: 'fb9edf8f6a5a2f76138a83f36c949ffdee4f0f01', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '14388b6e3ba9e631719587b798485e4d30664639', 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}` }))));
22
22
  }
23
23
  static get is() { return "justifi-saved-payment-method"; }
24
24
  static get properties() {
@@ -118,7 +118,7 @@ export class CheckoutsListCore {
118
118
  return !this.showEmptyState && !this.showErrorState && !this.loading;
119
119
  }
120
120
  render() {
121
- return (h(TableWrapper, { key: '79f36b8dd358285868187892962f5e2138942fe8' }, h(TableComponent, { key: 'e48c644e425ac45ab27b92548bc49af35b599245' }, h(TableHead, { key: '6d47b68c0a74f0eff3146dfc4720b0cc0f6fc24d' }, h(TableHeadRow, { key: 'a3660ae82b53ba7dead2e577fd8d573426935dc6' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '08fbd465bae0afa3de8d472c84e0410150509673' }, h(TableLoadingState, { key: 'ba7d778f9fc029166d6228fe9b1a8f1598a68c5a', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '312b176371526658852b74ae228524695f5c1947', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'a24680fb1d681397a3cb266ec34ab5c9310dfa64', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '503ffd707d958a353a18a6f06d1280a0cb01c741' }, h(TableFootRow, { key: '250fcfc3961881ab460221e5e0160d5b6d35e5c3' }, h(TableFootCell, { key: '2631d54b49bbee1502e5412cd9303d7d67746525', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: 'd7bb27501b62a1089090b06c82b2a2c328a2e0b6', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
121
+ return (h(TableWrapper, { key: 'c496328d1840fb1f823f233c04c78525b5f12553' }, h(TableComponent, { key: 'f994cfed9bf75a299fc94dd22306911d84b44541' }, h(TableHead, { key: '0ffb6ce97ebe1a35eb0143b43767223d844a70e0' }, h(TableHeadRow, { key: 'd063eaafc44bf75be0de5463a1f9b2789ec8b76e' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '624a316c1631070a999c48342e71c55207b51be3' }, h(TableLoadingState, { key: '0f7444acf626537bf2179fdb64a435550bcf20d3', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'ea68f85498d3bcbb44c8d9158d5cc6a228867e6c', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'db72f0190431182f410f246ad00fceb51901fd66', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '855184d90f85a1dd299c372b5b065e1af2151a99' }, h(TableFootRow, { key: 'b216c505abd04f79c0a733312fc5babdb35f2b77' }, h(TableFootCell, { key: 'efa83af6ee8543443826ccfe4efc230afc5d05f6', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '70664e167672a40b63c7fdd2603c52e8584870e9', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
122
122
  }
123
123
  static get is() { return "checkouts-list-core"; }
124
124
  static get properties() {
@@ -38,7 +38,7 @@ export class CheckoutsListFilters {
38
38
  }
39
39
  render() {
40
40
  const filterMenuParams = Object.assign({}, filterParams);
41
- return (h(StyledHost, { key: 'bcae6fee83117dde40a29ebcab8e85089bcdc37e' }, h("table-filters-menu", { key: '56c6a5d205836fe010917f0f0d978507cf227a3f', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'c82691f9b863368a2b7523dc7d9d348c3fe2e776', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '9abbb01e53139ebd376a638400b199d88288b175', class: "p-2" }, h("form-control-select", { key: '3859777cf1f4ee451a65440a90dfe9e5f4a2f069', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '3c23d4b820ea2424d6ddc01e6952c8c46cd7d975', class: "p-2" }, h("form-control-select", { key: 'c376228f82419b959b3fefa6b32d25c584c6ea3b', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
41
+ return (h(StyledHost, { key: '75225e92af6efb7185735a63adf83ed7699452b1' }, h("table-filters-menu", { key: '086762cdd3a08d9221be6d374d4fd4d1b82c717f', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: '23f5d2938419a2e92cbacf79d82a3893b6d256c2', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '43bf85dccce2233d59720defbea2897df488d880', class: "p-2" }, h("form-control-select", { key: '61c381ec0a205245311ba2e490a03b1e571d366b', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '4d01e881ca741302be99559209ab383aad4ee739', class: "p-2" }, h("form-control-select", { key: '82a1c6c3cfa9c77bc656aff5d7b0130436a54042', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
42
42
  }
43
43
  static get is() { return "justifi-checkouts-list-filters"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -61,7 +61,7 @@ export class CheckoutsList {
61
61
  }
62
62
  }
63
63
  render() {
64
- return (h(StyledHost, { key: 'c76ca3b186023ebea3ac3fe0cf6599786a2f2ea7' }, h("checkouts-list-core", { key: '484d31c0b0434181b3bd69cb9c3b6810aa0f2983', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
64
+ return (h(StyledHost, { key: '0e9e50e18983dad43cfab19f2271678d3f5e6abd' }, h("checkouts-list-core", { key: '6f128cc756477ff64638625d9a9ff9a5b4533948', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
65
65
  }
66
66
  static get is() { return "justifi-checkouts-list"; }
67
67
  static get encapsulation() { return "shadow"; }
@@ -46,7 +46,7 @@ export class DisputeManagementCore {
46
46
  });
47
47
  }
48
48
  render() {
49
- return (h("div", { key: '5a8663529813801b730d449c835cfafb9924d860' }, this.showDisputeResponseForm ? (h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
49
+ return (h("div", { key: '6374c478bc8907019b48e1a53b0ecb2e171ab2e4' }, this.showDisputeResponseForm ? (h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
50
50
  }
51
51
  static get is() { return "justifi-dispute-management-core"; }
52
52
  static get properties() {
@@ -43,7 +43,7 @@ export class DisputeManagement {
43
43
  }
44
44
  }
45
45
  render() {
46
- return (h("justifi-dispute-management-core", { key: '5abe4c29317f9baa7fc40d82e2cd533de321d58f', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
46
+ return (h("justifi-dispute-management-core", { key: 'e19f33cd7106c3c44fb86faeef743c62ff9004b9', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
47
47
  }
48
48
  static get is() { return "justifi-dispute-management"; }
49
49
  static get properties() {
@@ -30,7 +30,7 @@ export class DisputeNotification {
30
30
  }
31
31
  render() {
32
32
  var _a, _b, _c, _d, _e, _f, _g;
33
- return (h(StyledHost, { key: '77119b1227200909f4742e24df0a45e1f631c65c' }, this.isLoading && (h("div", { key: 'f0766ff057fb2f4b75b34c7d4a386bde43e49652', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'd7268194dea5ac2a3b87aea8e17573b4768e308f', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: 'f8863e45a917f56be302ca1b0b3d472119f6465c', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: 'c7b8c9c89d9488eea3be8ea0b4536f98a8151487', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: '875fe7def317ce1c4547e04e83baf2b232209058', part: text }, h("h1", { key: '09646afc2aac3bf4ef9737bc12442660bbafb2dd', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '14224cffb16726eaa589118be954e0f844ffaee8' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '415028b91872a2391796872fdffdbee837a2a511', class: "h5" }, "Dispute details"), h("div", { key: 'c2b8c6be3132f98eb8c686ab88a5a6a68f92a60e', class: "d-table gap-2" }, h("div", { key: 'd11bd8b3bc680183e8bee40281cc2c294aedbd5a', class: "d-table-row gap-2" }, h("span", { key: 'd77796c0d2764329c3b482ae49ceb8b4cac03d37', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '716d8af2a250c3237af6e23b43bf50e032e9f203', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_b = this.dispute) === null || _b === void 0 ? void 0 : _b.amount))), h("div", { key: 'daba4379197533d2a4b246e81139d81cd15761c6', class: "d-table-row gap-2" }, h("span", { key: 'a039fbf47aff16445e3411c33a7b53716c42866d', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '19087aba5c516d0c71e9f84e8b3323a044ae532a', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_c = this.dispute) === null || _c === void 0 ? void 0 : _c.reason)), h("div", { key: '68ef78b15627df3b22bcde4b90f7c216466e7468', class: "d-table-row gap-2" }, h("span", { key: '9463c281d76b5e201a55c2993253fc22d04168dc', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Dispute ID"), h("span", { key: '5cffed27038f5571f37377c5023a88c8b7773a59', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_d = this.dispute) === null || _d === void 0 ? void 0 : _d.id))), h("div", { key: 'e856d924edac10116781425f6d7c4c8c6b26ced2', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '6d5278a91f79c2fe8fbdd9e391b109a6491b13b6', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '242b9076b482aae731ab6bedc1592a1a826e24c5', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: 'f3711546ce5bf8b6a4a8689f5db3fdbf58f45bf4' }, h("h1", { key: '06e39be43cfacf667919adbd2f4f8c596702c340', class: "h4" }, "This payment is disputed and under review"), h("p", { key: 'b3bfef2d40e197f8dc9df6f71d9f13017a4b923d' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_f = this.dispute) === null || _f === void 0 ? void 0 : _f.won) && (h("div", { key: '580144b1439d6e017726b9731b7bb15e71900092' }, h("h1", { key: '42d74d215d23409672449af86e25c945aac33ea1', class: "h4" }, "This payment was disputed"), h("p", { key: '4c337e89a32f62c8f03a53eb84737785f4b0bdb4' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.lost) && (h("div", { key: '66c0f7bbada42053683dd25776a7c0abdb708315' }, h("h1", { key: '273f2d82dbe73a15da3186946763579be2801aa4', class: "h4" }, "This payment was disputed"), h("p", { key: '22172d1c6833eb5407c19dd31b85db805d07d177' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
33
+ return (h(StyledHost, { key: 'ec6f99be66b3b164c367b96d8274824d2e709dd5' }, this.isLoading && (h("div", { key: '26587e055eb4756785ae5935fd803746ddab355d', style: { marginBottom: '8px' } }, h(Skeleton, { key: '159c5d9b0fb16af4aac0125ea5e69bd9f7b4210e', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '5c89a8dd2244ddaed8c26b743cb22f20fa2e2742', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: '6f0a6ebf743bdbea125c6630cb98c5bda5bd9919', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && (h("div", { key: 'f44a0c9494731be14b75e3b25adc2b09c61c84a5', part: text }, h("h1", { key: 'd8820437a86bebcc0782607796b4f2c5429d40e7', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '8cf4a2b3194d781d5f17ae3067d9931be54159e2' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: 'd79312da2cc6715016be0b57d1b70e0ddbc2b8c5', class: "h5" }, "Dispute details"), h("div", { key: '958af1e87a119c4af76729b54bf322c16b966c54', class: "d-table gap-2" }, h("div", { key: 'e10802db747c99408371863c94c2f47737a03626', class: "d-table-row gap-2" }, h("span", { key: '84b151c7c9846fd395517ab14339504e56e5298d', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '197dffa3676aa9ff7425cea00eca69bb84bef427', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_b = this.dispute) === null || _b === void 0 ? void 0 : _b.amount))), h("div", { key: '4754429fa095be98083e34b32485cc45f379151b', class: "d-table-row gap-2" }, h("span", { key: 'c3e168a4d7dd902b9c4bc67531b7489dea32bda2', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: 'f08c9ce67f2b7b673de82963bacaf6ea8af87353', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_c = this.dispute) === null || _c === void 0 ? void 0 : _c.reason)), h("div", { key: '0de1ab69dbc18cb00b31df8c2c4ab421a5982b4b', class: "d-table-row gap-2" }, h("span", { key: '8217191859fed71cbeac5173b0a43ff4a98c397d', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Dispute ID"), h("span", { key: 'e63c3d2a1f0dbd98aae53a402be9fa96344e4f0b', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_d = this.dispute) === null || _d === void 0 ? void 0 : _d.id))), h("div", { key: '5767bc945b2fd3c7390011771b5c7a53c27c4447', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: 'dd6676ca0348579051cf13ce32bf6d9b1a2a3d21', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '27655bc90dd44e05180739e9c2a0f695ad294266', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_e = this.dispute) === null || _e === void 0 ? void 0 : _e.underReview) && (h("div", { key: '2b25123f6bf95ad7e847b4365f96eab71f1933f8' }, h("h1", { key: 'ab4b47f721ded5deb8b04a9b55b6c2978616f23b', class: "h4" }, "This payment is disputed and under review"), h("p", { key: 'bf4ee462258e4742ddf5722f470b597134489ee1' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_f = this.dispute) === null || _f === void 0 ? void 0 : _f.won) && (h("div", { key: 'ba1257cb1448cb8b4cd1aba4340f2ac65208e264' }, h("h1", { key: '203b5926fa96278cfd3a7b0a4d5398226b2361b6', class: "h4" }, "This payment was disputed"), h("p", { key: '8f05fc9fb0d7f5151519bbf82ed6abeca676e4b5' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.lost) && (h("div", { key: '1f6d1d4048cc011d61292934dd225ef07dcf260d' }, h("h1", { key: '3df3c3a6bf4c86e8eb0361b039d88f55b502177c', class: "h4" }, "This payment was disputed"), h("p", { key: '03f2dce54b06ad242f8e8d1d4c8194219013af1c' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
34
34
  }
35
35
  static get is() { return "justifi-dispute-notification"; }
36
36
  static get encapsulation() { return "shadow"; }