@justifi/webcomponents 5.7.5 → 5.7.6-rc-01

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (650) hide show
  1. package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
  2. package/dist/cjs/{Refund-DN-yzFgy.js → Refund-Dt1CMUjx.js} +97 -0
  3. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +4 -5
  4. package/dist/cjs/bank-account-form.cjs.entry.js +63 -0
  5. package/dist/cjs/{business.service-U2eLTrq9.js → business.service-W2PRAU9J.js} +2 -3
  6. package/dist/cjs/card-form.cjs.entry.js +71 -0
  7. package/dist/cjs/{check-pkg-version-DuL7lRe2.js → check-pkg-version-Dn-3Aibs.js} +3 -4
  8. package/dist/cjs/{checkout.service-DtMzeEwi.js → checkout.service-XwOh98gt.js} +2 -3
  9. package/dist/cjs/checkout.store--pVCO0L1.js +37 -0
  10. package/dist/cjs/checkouts-list-core.cjs.entry.js +3 -4
  11. package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -122
  12. package/dist/cjs/{dispute.service-CGVAs-5M.js → dispute.service-Dh82Wru1.js} +2 -3
  13. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  14. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  16. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  17. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-select_3.cjs.entry.js +124 -0
  21. package/dist/cjs/{get-business-BJrtsomz.js → get-business-BiEc-jdH.js} +2 -2
  22. package/dist/cjs/{get-payment-details-CdVEiscr.js → get-payment-details-W4PgTPkL.js} +3 -4
  23. package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
  24. package/dist/cjs/{get-subaccounts-fBIoOr7m.js → get-subaccounts-D4woaGSs.js} +3 -4
  25. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  26. package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +111 -14
  27. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +2 -3
  28. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +5 -6
  29. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  30. package/dist/cjs/justifi-bank-account-form_5.cjs.entry.js +277 -0
  31. package/dist/cjs/justifi-billing-form.cjs.entry.js +76 -0
  32. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
  33. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -8
  34. package/dist/cjs/justifi-button_5.cjs.entry.js +322 -0
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +80 -95
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -10
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -10
  38. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -8
  40. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -10
  41. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -6
  42. package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
  43. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -10
  44. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -6
  45. package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -8
  46. package/dist/cjs/justifi-payment-method-options.cjs.entry.js +76 -0
  47. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  48. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
  49. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
  50. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  51. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
  52. package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -8
  53. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
  54. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -10
  56. package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -8
  57. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +32 -0
  58. package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +117 -0
  59. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -16
  61. package/dist/cjs/justifi-skeleton.cjs.entry.js +17 -0
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -8
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -4
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
  66. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +12 -6
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/cjs/{package-o4g7MDiy.js → package-ClqzRJoK.js} +1 -1
  69. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  70. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +25 -0
  71. package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-SNMCdsyF.js} +2 -2
  72. package/dist/cjs/{payment.service-DmpOOPu1.js → payment.service-BrvtS3F7.js} +2 -3
  73. package/dist/cjs/payments-list-core.cjs.entry.js +3 -4
  74. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  75. package/dist/cjs/{payout.service-BfO6L79f.js → payout.service-DNH6gRrP.js} +2 -3
  76. package/dist/cjs/payouts-list-core.cjs.entry.js +3 -4
  77. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  78. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +4 -5
  79. package/dist/cjs/{terminal-orders-table-DMjFmuxk.js → terminal-orders-table-xi_a-EnM.js} +2 -3
  80. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  81. package/dist/cjs/{terminal.service-h-LWztbo.js → terminal.service-CdzmTRQE.js} +2 -3
  82. package/dist/cjs/terminals-list-core.cjs.entry.js +3 -4
  83. package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
  84. package/dist/cjs/webcomponents.cjs.js +1 -1
  85. package/dist/collection/api/BillingInformation.js +1 -0
  86. package/dist/collection/api/Checkout.js +1 -3
  87. package/dist/collection/api/ComponentError.js +2 -0
  88. package/dist/collection/api/PaymentMethod.js +1 -0
  89. package/dist/collection/collection-manifest.json +13 -3
  90. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  91. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +2 -2
  92. package/dist/collection/components/checkout/billing-form/billing-form.js +2 -5
  93. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  94. package/dist/collection/components/checkout/checkout.js +158 -53
  95. package/dist/collection/components/checkout/new-payment-method.js +2 -2
  96. package/dist/collection/components/checkout/payment-method-options.js +18 -37
  97. package/dist/collection/components/checkout/save-new-payment-method.js +3 -1
  98. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  99. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  100. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  101. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  102. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  103. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  104. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  105. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  106. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  107. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  108. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  109. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  110. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  111. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  112. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  113. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  114. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  115. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  116. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  117. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  118. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +10 -13
  119. package/dist/collection/components/modular-checkout/modular-checkout.js +337 -0
  120. package/dist/collection/components/modular-checkout/sub-components/bank-account-skeleton.js +10 -0
  121. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +98 -0
  122. package/dist/collection/components/modular-checkout/sub-components/billing-form-schema.js +21 -0
  123. package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +97 -0
  124. package/dist/collection/components/modular-checkout/sub-components/card-form-skeleton.js +10 -0
  125. package/dist/collection/components/modular-checkout/sub-components/card-form.js +102 -0
  126. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +113 -0
  127. package/dist/collection/components/modular-checkout/sub-components/postal-code-form.js +124 -0
  128. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +40 -0
  129. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +127 -0
  130. package/dist/collection/components/modular-checkout/sub-components/summary.js +12 -0
  131. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  132. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  133. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  134. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  135. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  136. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  137. package/dist/collection/components/payments-list/payments-list.js +1 -1
  138. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  139. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  140. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  141. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  142. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  143. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  144. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  145. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  146. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  147. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  148. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  149. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -3
  150. package/dist/collection/store/checkout.store.js +32 -0
  151. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  152. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  153. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  154. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  155. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  156. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  157. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  158. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  159. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  160. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  161. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  162. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  163. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  164. package/dist/collection/ui-components/form/iframe-input.js +10 -5
  165. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +176 -0
  166. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +83 -0
  167. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +108 -0
  168. package/dist/docs.json +1675 -872
  169. package/dist/esm/{Api-69eVlLFc.js → Api-C3T8XYbb.js} +1 -1
  170. package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
  171. package/dist/esm/{Payment-BGiKmQYR.js → Payment-00TwhwCx.js} +2 -2
  172. package/dist/esm/{Refund-f_BCgcDa.js → Refund-0aZtuMmz.js} +98 -2
  173. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  174. package/dist/esm/{badge-VWumlkvS.js → badge-Dr7gkD2I.js} +1 -1
  175. package/dist/esm/bank-account-document-form-inputs_4.entry.js +9 -10
  176. package/dist/esm/bank-account-form.entry.js +61 -0
  177. package/dist/esm/business-details-core.entry.js +3 -3
  178. package/dist/esm/{business.service-BviUFOjP.js → business.service-C5vrjgZf.js} +4 -5
  179. package/dist/esm/{button-BfT7Ex96.js → button-xfPDSpPt.js} +1 -1
  180. package/dist/esm/card-form.entry.js +69 -0
  181. package/dist/esm/{check-pkg-version-phOwcSQM.js → check-pkg-version-DZCwpP0g.js} +5 -6
  182. package/dist/esm/{checkout.service-B8W_W-lc.js → checkout.service-CW2_CEte.js} +4 -5
  183. package/dist/esm/checkout.store-GXtlf5-4.js +34 -0
  184. package/dist/esm/checkouts-list-core.entry.js +10 -11
  185. package/dist/esm/{checkouts-table-zIrBvmQp.js → checkouts-table-BHhaS5bv.js} +3 -3
  186. package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -121
  187. package/dist/esm/{dispute.service-1e9677RK.js → dispute.service-C3bmfjsZ.js} +4 -5
  188. package/dist/esm/form-alert_5.entry.js +1 -1
  189. package/dist/esm/form-control-checkbox.entry.js +5 -5
  190. package/dist/esm/form-control-date.entry.js +4 -4
  191. package/dist/esm/{form-control-error-text-CYWqNNkG.js → form-control-error-text-Cn0aPzHx.js} +1 -1
  192. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  193. package/dist/esm/{form-control-help-text-DMdU5_la.js → form-control-help-text-C91TeHXs.js} +1 -1
  194. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  195. package/dist/esm/form-control-monetary.entry.js +6 -6
  196. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  197. package/dist/esm/form-control-number.entry.js +5 -5
  198. package/dist/esm/form-control-radio.entry.js +3 -3
  199. package/dist/esm/form-control-select_3.entry.js +120 -0
  200. package/dist/esm/{get-business-GEPTefIj.js → get-business-BSRtbTh7.js} +2 -2
  201. package/dist/esm/{get-payment-details-B5-Hzdrg.js → get-payment-details-BdPvFl1W.js} +5 -6
  202. package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
  203. package/dist/esm/{get-subaccounts-Cv7zn0lA.js → get-subaccounts-BqqR44dV.js} +6 -7
  204. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  205. package/dist/esm/{header-1-84nZCcj4.js → header-1-noRVFQY9.js} +1 -1
  206. package/dist/esm/{header-3-DpBr7qOY.js → header-3-Bsi4loU1.js} +1 -1
  207. package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
  208. package/dist/esm/{insurance-state-BDLlv3CM.js → insurance-state-pL8MRpxn.js} +2 -2
  209. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +7 -8
  210. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +10 -11
  211. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  212. package/dist/esm/justifi-bank-account-form_5.entry.js +271 -0
  213. package/dist/esm/justifi-billing-form.entry.js +74 -0
  214. package/dist/esm/justifi-business-details.entry.js +12 -13
  215. package/dist/esm/justifi-business-form.entry.js +14 -15
  216. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  217. package/dist/esm/justifi-button_5.entry.js +316 -0
  218. package/dist/esm/justifi-checkout.entry.js +82 -97
  219. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -7
  220. package/dist/esm/justifi-checkouts-list.entry.js +14 -15
  221. package/dist/esm/justifi-details.entry.js +2 -2
  222. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  223. package/dist/esm/justifi-dispute-management.entry.js +10 -11
  224. package/dist/esm/justifi-dispute-notification_3.entry.js +15 -16
  225. package/dist/esm/justifi-gross-payment-chart.entry.js +10 -11
  226. package/dist/esm/justifi-new-payment-method.entry.js +97 -0
  227. package/dist/esm/justifi-order-terminals.entry.js +14 -15
  228. package/dist/esm/justifi-owner-form_3.entry.js +10 -11
  229. package/dist/esm/justifi-payment-details.entry.js +12 -13
  230. package/dist/esm/justifi-payment-method-options.entry.js +74 -0
  231. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  232. package/dist/esm/justifi-payment-provisioning.entry.js +10 -11
  233. package/dist/esm/justifi-payment-transactions-list.entry.js +13 -14
  234. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  235. package/dist/esm/justifi-payments-list.entry.js +14 -15
  236. package/dist/esm/justifi-payout-details.entry.js +12 -13
  237. package/dist/esm/justifi-payout-transactions-list.entry.js +13 -14
  238. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  239. package/dist/esm/justifi-payouts-list.entry.js +16 -17
  240. package/dist/esm/justifi-refund-payment.entry.js +13 -14
  241. package/dist/esm/justifi-saved-payment-method.entry.js +30 -0
  242. package/dist/esm/justifi-saved-payment-methods_2.entry.js +114 -0
  243. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -6
  244. package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -19
  245. package/dist/esm/justifi-skeleton.entry.js +15 -0
  246. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -8
  247. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -13
  248. package/dist/esm/justifi-terminals-list-filters.entry.js +6 -7
  249. package/dist/esm/justifi-terminals-list.entry.js +14 -15
  250. package/dist/esm/justifi-tokenize-payment-method.entry.js +17 -11
  251. package/dist/esm/loader.js +1 -1
  252. package/dist/esm/{package-B0XIc_FO.js → package-BWmYRnrR.js} +1 -1
  253. package/dist/esm/pagination-menu.entry.js +1 -1
  254. package/dist/esm/{parts-BrLVc_85.js → parts-D3G5aVLy.js} +1 -1
  255. package/dist/esm/payment-details-core.entry.js +14 -14
  256. package/dist/esm/payment-method-option-utils-8n_ALxec.js +23 -0
  257. package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-2qP7AtHj.js} +2 -2
  258. package/dist/esm/{payment.service-BMbF1Svr.js → payment.service-CnQdP32J.js} +4 -5
  259. package/dist/esm/payments-list-core.entry.js +11 -12
  260. package/dist/esm/{payments-status-_qXPu883.js → payments-status-DUM0WZkk.js} +1 -1
  261. package/dist/esm/{payments-table-CrCdh5OV.js → payments-table-DVQzx7MJ.js} +3 -3
  262. package/dist/esm/payout-details-core.entry.js +10 -10
  263. package/dist/esm/{payout.service-HKpmn5XB.js → payout.service-EJuPNpfs.js} +4 -5
  264. package/dist/esm/payouts-list-core.entry.js +11 -12
  265. package/dist/esm/{payouts-status-C1XLgtWW.js → payouts-status-7saoFNoA.js} +1 -1
  266. package/dist/esm/{payouts-table-DIqsk6Oa.js → payouts-table-dca-F2iQ.js} +3 -3
  267. package/dist/esm/{skeleton-CdD_FIeP.js → skeleton-C1-JoGFC.js} +1 -1
  268. package/dist/esm/{spinner-DIlSUUzM.js → spinner-Ca9uu5Nd.js} +1 -1
  269. package/dist/esm/table-filters-menu.entry.js +3 -3
  270. package/dist/esm/{table-DjsimZwr.js → table-fsCYq8m9.js} +2 -2
  271. package/dist/esm/terminal-orders-list-core.entry.js +10 -11
  272. package/dist/esm/{terminal-orders-table-BnXCVH7W.js → terminal-orders-table-BNasCnjz.js} +6 -7
  273. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  274. package/dist/esm/{terminal.service-XpfOXoFl.js → terminal.service-Cfacmeto.js} +4 -5
  275. package/dist/esm/terminals-list-core.entry.js +10 -11
  276. package/dist/esm/{terminals-table-CCLlefFA.js → terminals-table-DBk-eg_3.js} +3 -3
  277. package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
  278. package/dist/esm/{utils-DB5fh6Iv.js → utils-BjLkBMLe.js} +1 -1
  279. package/dist/esm/{utils-6CI1OiOE.js → utils-CNwvOLkk.js} +1 -1
  280. package/dist/esm/webcomponents.js +1 -1
  281. package/dist/module/{check-pkg-version.js → Analytics.js} +22 -23
  282. package/dist/module/Payment.js +1 -1
  283. package/dist/module/Refund.js +119 -1
  284. package/dist/module/additional-statement.js +1 -1
  285. package/dist/module/bank-account-document-inputs.js +1 -2
  286. package/dist/module/bank-account-form.js +83 -1
  287. package/dist/module/{bank-account-form2.js → bank-account.js} +25 -8
  288. package/dist/module/billing-form-schema.js +24 -0
  289. package/dist/module/billing-form.js +28 -22
  290. package/dist/module/billing-information-form.js +97 -0
  291. package/dist/module/business-additional-questions-form-step.js +1 -1
  292. package/dist/module/business-address-schema.js +1 -1
  293. package/dist/module/business-bank-account-form-step-core.js +2 -3
  294. package/dist/module/business-bank-account-form-step.js +1 -2
  295. package/dist/module/business-core-info-form-step.js +1 -1
  296. package/dist/module/business-core-info-schema.js +1 -1
  297. package/dist/module/business-identity-schema.js +1 -1
  298. package/dist/module/business-owners-form-step.js +1 -1
  299. package/dist/module/business-representative-form-step.js +1 -1
  300. package/dist/module/business-terms-conditions-form-step.js +1 -2
  301. package/dist/module/business.service.js +1 -2
  302. package/dist/module/cancellation-policy.js +1 -1
  303. package/dist/module/card-form.js +91 -1
  304. package/dist/module/card-form2.js +27 -10
  305. package/dist/module/checkout.service.js +1 -2
  306. package/dist/module/checkout.store.js +34 -0
  307. package/dist/module/checkouts-list-core2.js +3 -4
  308. package/dist/module/custom-popper2.js +2 -2
  309. package/dist/module/customer-details.js +1 -1
  310. package/dist/module/dispute-management-core.js +1 -1
  311. package/dist/module/dispute-notification.js +1 -1
  312. package/dist/module/dispute-response-actions.js +1 -2
  313. package/dist/module/dispute-response-core.js +1 -1
  314. package/dist/module/dispute-response.js +3 -3
  315. package/dist/module/duplicate-charge.js +1 -1
  316. package/dist/module/electronic-evidence.js +1 -1
  317. package/dist/module/form-control-checkbox2.js +2 -2
  318. package/dist/module/form-control-date2.js +2 -2
  319. package/dist/module/form-control-file-v22.js +1 -1
  320. package/dist/module/form-control-file2.js +2 -2
  321. package/dist/module/form-control-monetary2.js +2 -2
  322. package/dist/module/form-control-number-masked2.js +2 -2
  323. package/dist/module/form-control-number.js +2 -2
  324. package/dist/module/form-control-radio2.js +2 -2
  325. package/dist/module/form-control-select2.js +2 -2
  326. package/dist/module/form-control-text2.js +2 -2
  327. package/dist/module/form-control-textarea2.js +2 -2
  328. package/dist/module/get-business.js +1 -1
  329. package/dist/module/get-payment-details.js +2 -3
  330. package/dist/module/get-payout-csv.js +1 -1
  331. package/dist/module/get-subaccounts.js +1 -2
  332. package/dist/module/gross-payment-chart-core2.js +1 -1
  333. package/dist/module/header-2.js +8 -0
  334. package/dist/module/header-3.js +8 -0
  335. package/dist/module/hidden-input2.js +1 -1
  336. package/dist/module/iframe-input2.js +5 -5
  337. package/dist/module/insurance-state.js +1 -7
  338. package/dist/module/justifi-bank-account-form.d.ts +11 -0
  339. package/dist/module/justifi-bank-account-form.js +6 -0
  340. package/dist/module/justifi-billing-information-form.d.ts +11 -0
  341. package/dist/module/justifi-billing-information-form.js +6 -0
  342. package/dist/module/justifi-business-details.js +2 -2
  343. package/dist/module/justifi-business-form.js +2 -3
  344. package/dist/module/{justifi-checkout-core.d.ts → justifi-button.d.ts} +4 -4
  345. package/dist/module/justifi-button.js +6 -0
  346. package/dist/module/justifi-button2.js +41 -0
  347. package/dist/module/justifi-card-form.d.ts +11 -0
  348. package/dist/module/justifi-card-form.js +6 -0
  349. package/dist/module/justifi-checkout-summary.d.ts +11 -0
  350. package/dist/module/justifi-checkout-summary.js +6 -0
  351. package/dist/module/justifi-checkout.js +146 -132
  352. package/dist/module/justifi-checkouts-list-filters.js +3 -4
  353. package/dist/module/justifi-checkouts-list.js +3 -4
  354. package/dist/module/justifi-dispute-management.js +3 -3
  355. package/dist/module/justifi-gross-payment-chart.js +2 -3
  356. package/dist/module/justifi-header.d.ts +11 -0
  357. package/dist/module/justifi-header.js +6 -0
  358. package/dist/module/justifi-header2.js +43 -0
  359. package/dist/module/justifi-modular-checkout.d.ts +11 -0
  360. package/dist/module/justifi-modular-checkout.js +6 -0
  361. package/dist/module/justifi-new-payment-method.js +214 -1
  362. package/dist/module/justifi-order-terminals.js +3 -4
  363. package/dist/module/justifi-payment-details.js +2 -2
  364. package/dist/module/justifi-payment-provisioning.js +2 -3
  365. package/dist/module/justifi-payment-transactions-list.js +4 -5
  366. package/dist/module/justifi-payments-list-filters.js +3 -3
  367. package/dist/module/justifi-payments-list.js +4 -5
  368. package/dist/module/justifi-payout-details.js +2 -3
  369. package/dist/module/justifi-payout-transactions-list.js +4 -5
  370. package/dist/module/justifi-payouts-list-filters.js +3 -3
  371. package/dist/module/justifi-payouts-list.js +3 -4
  372. package/dist/module/justifi-postal-code-form.d.ts +11 -0
  373. package/dist/module/justifi-postal-code-form.js +6 -0
  374. package/dist/module/justifi-refund-payment.js +2 -3
  375. package/dist/module/justifi-saved-payment-method.js +57 -1
  376. package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
  377. package/dist/module/justifi-saved-payment-methods.js +6 -0
  378. package/dist/module/justifi-season-interruption-insurance.js +11 -15
  379. package/dist/module/justifi-skeleton.d.ts +11 -0
  380. package/dist/module/justifi-skeleton.js +39 -0
  381. package/dist/module/justifi-terminal-orders-list-filters.js +4 -5
  382. package/dist/module/justifi-terminal-orders-list.js +3 -4
  383. package/dist/module/justifi-terminals-list-filters.js +3 -4
  384. package/dist/module/justifi-terminals-list.js +3 -4
  385. package/dist/module/justifi-tokenize-payment-method.js +18 -84
  386. package/dist/module/legal-address-form-step.js +1 -1
  387. package/dist/module/modular-checkout.js +278 -0
  388. package/dist/module/package.js +3 -3
  389. package/dist/module/parts.js +1 -1
  390. package/dist/module/payment-details-core2.js +8 -8
  391. package/dist/module/payment-method-option-utils.js +23 -0
  392. package/dist/module/payment-method-option.d.ts +11 -0
  393. package/dist/module/payment-method-option.js +6 -0
  394. package/dist/module/payment-method-option2.js +50 -0
  395. package/dist/module/payment-method-options.js +23 -113
  396. package/dist/module/payment-provisioning-actions.js +1 -1
  397. package/dist/module/payment-provisioning-core.js +1 -1
  398. package/dist/module/payment.service.js +1 -2
  399. package/dist/module/payments-list-core2.js +3 -4
  400. package/dist/module/payout-details-core2.js +3 -3
  401. package/dist/module/payout.service.js +1 -2
  402. package/dist/module/payouts-list-core2.js +3 -4
  403. package/dist/module/postal-code-form.js +93 -0
  404. package/dist/module/product-or-service.js +1 -1
  405. package/dist/module/refund-policy.js +1 -1
  406. package/dist/module/save-new-payment-method.js +6 -2
  407. package/dist/module/saved-payment-methods.js +72 -0
  408. package/dist/module/schema-validations.js +1 -1
  409. package/dist/module/season-interruption-insurance-core.js +4 -3
  410. package/dist/module/sezzle-payment-method.js +23 -17
  411. package/dist/module/shipping-details.js +1 -1
  412. package/dist/module/summary.js +34 -0
  413. package/dist/module/table-filters-menu2.js +2 -2
  414. package/dist/module/terminal-orders-list-core2.js +3 -4
  415. package/dist/module/terminal-quantity-selector2.js +1 -1
  416. package/dist/module/terminal.service.js +1 -2
  417. package/dist/module/terminals-list-core2.js +3 -4
  418. package/dist/module/utils4.js +1 -1
  419. package/dist/types/api/BillingInformation.d.ts +13 -0
  420. package/dist/types/api/Checkout.d.ts +15 -13
  421. package/dist/types/api/ComponentError.d.ts +3 -1
  422. package/dist/types/api/PaymentMethod.d.ts +21 -0
  423. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +4 -4
  424. package/dist/types/components/checkout/checkout.d.ts +30 -11
  425. package/dist/types/components/checkout/payment-method-options.d.ts +2 -2
  426. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  427. package/dist/types/components/modular-checkout/modular-checkout.d.ts +31 -0
  428. package/dist/types/components/modular-checkout/sub-components/bank-account-skeleton.d.ts +6 -0
  429. package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +18 -0
  430. package/dist/types/components/modular-checkout/sub-components/billing-form-schema.d.ts +23 -0
  431. package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +18 -0
  432. package/dist/types/components/modular-checkout/sub-components/card-form-skeleton.d.ts +6 -0
  433. package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +20 -0
  434. package/dist/types/components/modular-checkout/sub-components/payment-method-option.d.ts +8 -0
  435. package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +19 -0
  436. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +7 -0
  437. package/dist/types/components/{checkout → modular-checkout/sub-components}/sezzle-payment-method.d.ts +3 -9
  438. package/dist/types/components/modular-checkout/sub-components/summary.d.ts +3 -0
  439. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
  440. package/dist/types/components.d.ts +290 -73
  441. package/dist/types/store/checkout.store.d.ts +25 -0
  442. package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
  443. package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +13 -0
  444. package/dist/types/ui-components/shadow-dom-components/justifi-skeleton.d.ts +10 -0
  445. package/dist/webcomponents/p-00d7c2e6.entry.js +1 -0
  446. package/dist/webcomponents/p-03e9a98c.entry.js +1 -0
  447. package/dist/webcomponents/p-05c604d2.entry.js +1 -0
  448. package/dist/webcomponents/p-05fc864a.entry.js +1 -0
  449. package/dist/webcomponents/{p-4ac8d9d4.entry.js → p-0890869b.entry.js} +4 -4
  450. package/dist/webcomponents/p-09c24135.entry.js +1 -0
  451. package/dist/webcomponents/p-0f511cc1.entry.js +1 -0
  452. package/dist/webcomponents/p-100008fa.entry.js +1 -0
  453. package/dist/webcomponents/p-18b941d3.entry.js +1 -0
  454. package/dist/webcomponents/p-19308a1b.entry.js +1 -0
  455. package/dist/webcomponents/p-1a7942f7.entry.js +1 -0
  456. package/dist/webcomponents/{p-BLWOT0S7.js → p-1adN6FVa.js} +1 -1
  457. package/dist/webcomponents/{p-2b5a7776.entry.js → p-1bddf354.entry.js} +1 -1
  458. package/dist/webcomponents/p-26bf2fda.entry.js +1 -0
  459. package/dist/webcomponents/p-2b154f45.entry.js +1 -0
  460. package/dist/webcomponents/p-2d3949f7.entry.js +1 -0
  461. package/dist/webcomponents/{p-aa72125e.entry.js → p-2f482f5b.entry.js} +1 -1
  462. package/dist/webcomponents/{p-95d99ffc.entry.js → p-326f4860.entry.js} +1 -1
  463. package/dist/webcomponents/p-33936fa9.entry.js +1 -0
  464. package/dist/webcomponents/p-359b8f54.entry.js +1 -0
  465. package/dist/webcomponents/p-37aeeeee.entry.js +1 -0
  466. package/dist/webcomponents/p-40da517f.entry.js +1 -0
  467. package/dist/webcomponents/p-4887bcb3.entry.js +1 -0
  468. package/dist/webcomponents/p-4d23e69a.entry.js +1 -0
  469. package/dist/webcomponents/p-4f744286.entry.js +1 -0
  470. package/dist/webcomponents/{p-a38b3d9a.entry.js → p-50bfec55.entry.js} +1 -1
  471. package/dist/webcomponents/p-54406229.entry.js +1 -0
  472. package/dist/webcomponents/p-5d145701.entry.js +1 -0
  473. package/dist/webcomponents/p-5d84207a.entry.js +1 -0
  474. package/dist/webcomponents/p-5e813b93.entry.js +1 -0
  475. package/dist/webcomponents/p-64e9570d.entry.js +1 -0
  476. package/dist/webcomponents/{p-30415c7f.entry.js → p-683630d0.entry.js} +1 -1
  477. package/dist/webcomponents/p-6bd83369.entry.js +1 -0
  478. package/dist/webcomponents/p-73afde1b.entry.js +1 -0
  479. package/dist/webcomponents/p-73bbd71c.entry.js +1 -0
  480. package/dist/webcomponents/p-74f78a4e.entry.js +1 -0
  481. package/dist/webcomponents/p-771cc1c2.entry.js +1 -0
  482. package/dist/webcomponents/p-7c456c10.entry.js +1 -0
  483. package/dist/webcomponents/{p-e21ba107.entry.js → p-7d2de2d4.entry.js} +1 -1
  484. package/dist/webcomponents/{p-3bf842ea.entry.js → p-7e9832b3.entry.js} +1 -1
  485. package/dist/webcomponents/p-810cad17.entry.js +1 -0
  486. package/dist/webcomponents/p-831f3ba3.entry.js +1 -0
  487. package/dist/webcomponents/p-8590d6f2.entry.js +1 -0
  488. package/dist/webcomponents/p-86c28849.entry.js +1 -0
  489. package/dist/webcomponents/p-8bfc5384.entry.js +1 -0
  490. package/dist/webcomponents/p-91a2707a.entry.js +1 -0
  491. package/dist/webcomponents/p-9348a7c8.entry.js +1 -0
  492. package/dist/webcomponents/p-967c3374.entry.js +1 -0
  493. package/dist/webcomponents/p-99f03f4b.entry.js +1 -0
  494. package/dist/webcomponents/{p-BnE7qgLh.js → p-9REosSLu.js} +1 -1
  495. package/dist/webcomponents/p-9b0417b5.entry.js +1 -0
  496. package/dist/webcomponents/p-9c27f87f.entry.js +1 -0
  497. package/dist/webcomponents/p-B9ROmZzw.js +1 -0
  498. package/dist/webcomponents/{p-vTsHmSQQ.js → p-BCPBc18Y.js} +1 -1
  499. package/dist/webcomponents/p-BSW9VS7r.js +1 -0
  500. package/dist/webcomponents/p-BSexQ2qc.js +1 -0
  501. package/dist/webcomponents/p-BWmYRnrR.js +1 -0
  502. package/dist/webcomponents/p-Bc5u1WjM.js +1 -0
  503. package/dist/webcomponents/p-BhrFjjAs.js +1 -0
  504. package/dist/webcomponents/p-BjQrbohd.js +1 -0
  505. package/dist/webcomponents/{p-1CYqfEKd.js → p-BqK0rIZQ.js} +1 -1
  506. package/dist/webcomponents/p-BtT7kqMw.js +1 -0
  507. package/dist/webcomponents/p-BxWsrx5h.js +1 -0
  508. package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
  509. package/dist/webcomponents/p-By9Lz2e0.js +1 -0
  510. package/dist/webcomponents/p-CEp46FZK.js +1 -0
  511. package/dist/webcomponents/p-CMNxLEJP.js +1 -0
  512. package/dist/webcomponents/p-CZItg0Yo.js +1 -0
  513. package/dist/webcomponents/p-CuHQZh6C.js +1 -0
  514. package/dist/webcomponents/{p-BrLVc_85.js → p-D3G5aVLy.js} +1 -1
  515. package/dist/webcomponents/p-D7WGjeDy.js +1 -0
  516. package/dist/webcomponents/{p-Cw3BMq7G.js → p-DAVX1-sW.js} +1 -1
  517. package/dist/webcomponents/{p-Clv1feia.js → p-DAoffYFW.js} +1 -1
  518. package/dist/webcomponents/{p-Bnrk5pzA.js → p-DDpc1huF.js} +1 -1
  519. package/dist/webcomponents/{p-D9lioyBA.js → p-DHvfrLVU.js} +1 -1
  520. package/dist/webcomponents/p-DIDbcp63.js +1 -0
  521. package/dist/webcomponents/p-DKClunJd.js +1 -0
  522. package/dist/webcomponents/p-DUqRxn4Y.js +1 -0
  523. package/dist/webcomponents/p-DbcOhajT.js +1 -0
  524. package/dist/webcomponents/{p-CYTPbCLN.js → p-Dh6FEdp8.js} +1 -1
  525. package/dist/webcomponents/p-DhAmsAOH.js +1 -0
  526. package/dist/webcomponents/p-DoEkFs2i.js +1 -0
  527. package/dist/webcomponents/p-DvXSA0b0.js +1 -0
  528. package/dist/webcomponents/p-NqdaxjDT.js +1 -0
  529. package/dist/webcomponents/p-a05062d8.entry.js +1 -0
  530. package/dist/webcomponents/p-a2f0d61c.entry.js +1 -0
  531. package/dist/webcomponents/p-a95741ee.entry.js +1 -0
  532. package/dist/webcomponents/p-ab55ba10.entry.js +1 -0
  533. package/dist/webcomponents/p-ad78a564.entry.js +1 -0
  534. package/dist/webcomponents/p-ad99a022.entry.js +1 -0
  535. package/dist/webcomponents/p-b193bf46.entry.js +1 -0
  536. package/dist/webcomponents/p-c851fc9e.entry.js +1 -0
  537. package/dist/webcomponents/{p-7d324f45.entry.js → p-cb7c712f.entry.js} +1 -1
  538. package/dist/webcomponents/{p-a23dfac9.entry.js → p-d3f438ca.entry.js} +1 -1
  539. package/dist/webcomponents/p-d59aabe1.entry.js +1 -0
  540. package/dist/webcomponents/p-d6602c92.entry.js +1 -0
  541. package/dist/webcomponents/p-d7f62287.entry.js +1 -0
  542. package/dist/webcomponents/p-ddc9fc4f.entry.js +1 -0
  543. package/dist/webcomponents/p-e151b970.entry.js +1 -0
  544. package/dist/webcomponents/{p-36c99fce.entry.js → p-e48a2d25.entry.js} +1 -1
  545. package/dist/webcomponents/p-e8c3ea67.entry.js +1 -0
  546. package/dist/webcomponents/p-eba620cd.entry.js +1 -0
  547. package/dist/webcomponents/p-ecdda6e6.entry.js +1 -0
  548. package/dist/webcomponents/p-f5d12ae3.entry.js +1 -0
  549. package/dist/webcomponents/{p-BSl0X3r8.js → p-fUv1jFAw.js} +1 -1
  550. package/dist/webcomponents/p-m2jmX-Hz.js +1 -0
  551. package/dist/webcomponents/p-pGzabKc7.js +1 -0
  552. package/dist/webcomponents/p-sT4o5vru.js +1 -0
  553. package/dist/webcomponents/p-ys9CWfNG.js +1 -0
  554. package/dist/webcomponents/p-zucQG3cz.js +1 -0
  555. package/dist/webcomponents/webcomponents.esm.js +1 -1
  556. package/package.json +1 -1
  557. package/dist/cjs/Checkout-TZnRz3-3.js +0 -103
  558. package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -581
  559. package/dist/cjs/iframe-input-styles-state-DX5gGQQF.js +0 -26
  560. package/dist/cjs/justifi-checkout-core.cjs.entry.js +0 -142
  561. package/dist/collection/components/checkout/checkout-core.js +0 -454
  562. package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
  563. package/dist/esm/Checkout-B9LrTq63.js +0 -101
  564. package/dist/esm/bank-account-form_9.entry.js +0 -571
  565. package/dist/esm/iframe-input-styles-state-DqkcQMM1.js +0 -23
  566. package/dist/esm/justifi-checkout-core.entry.js +0 -140
  567. package/dist/module/Checkout.js +0 -121
  568. package/dist/module/checkout-core.js +0 -274
  569. package/dist/module/justifi-checkout-core.js +0 -6
  570. package/dist/module/new-payment-method.js +0 -204
  571. package/dist/module/saved-payment-method.js +0 -79
  572. package/dist/types/components/checkout/checkout-core.d.ts +0 -49
  573. package/dist/webcomponents/p-0da7c7e5.entry.js +0 -1
  574. package/dist/webcomponents/p-111535c9.entry.js +0 -1
  575. package/dist/webcomponents/p-18ddc883.entry.js +0 -1
  576. package/dist/webcomponents/p-1ANZF89K.js +0 -1
  577. package/dist/webcomponents/p-249d9a7f.entry.js +0 -1
  578. package/dist/webcomponents/p-312b81a6.entry.js +0 -1
  579. package/dist/webcomponents/p-39d3df56.entry.js +0 -1
  580. package/dist/webcomponents/p-3dc2d47c.entry.js +0 -1
  581. package/dist/webcomponents/p-40bbb25c.entry.js +0 -1
  582. package/dist/webcomponents/p-40fb2439.entry.js +0 -1
  583. package/dist/webcomponents/p-412805ce.entry.js +0 -1
  584. package/dist/webcomponents/p-43c3a433.entry.js +0 -1
  585. package/dist/webcomponents/p-5436c41f.entry.js +0 -1
  586. package/dist/webcomponents/p-5576322e.entry.js +0 -1
  587. package/dist/webcomponents/p-59db70c0.entry.js +0 -1
  588. package/dist/webcomponents/p-600da1ee.entry.js +0 -1
  589. package/dist/webcomponents/p-6daf7df0.entry.js +0 -1
  590. package/dist/webcomponents/p-867a4a55.entry.js +0 -1
  591. package/dist/webcomponents/p-878f26f7.entry.js +0 -1
  592. package/dist/webcomponents/p-8c0162b3.entry.js +0 -1
  593. package/dist/webcomponents/p-8e201c63.entry.js +0 -1
  594. package/dist/webcomponents/p-91b5da99.entry.js +0 -1
  595. package/dist/webcomponents/p-989f51bc.entry.js +0 -1
  596. package/dist/webcomponents/p-9f9002c1.entry.js +0 -1
  597. package/dist/webcomponents/p-B0XIc_FO.js +0 -1
  598. package/dist/webcomponents/p-B3AHoKpE.js +0 -1
  599. package/dist/webcomponents/p-BOQVwCyQ.js +0 -1
  600. package/dist/webcomponents/p-Bgdp97Tl.js +0 -1
  601. package/dist/webcomponents/p-BkDN6yJN.js +0 -1
  602. package/dist/webcomponents/p-BqoTJ9CO.js +0 -1
  603. package/dist/webcomponents/p-C5RuuShs.js +0 -1
  604. package/dist/webcomponents/p-C9oyC18r.js +0 -1
  605. package/dist/webcomponents/p-CNSeavdR.js +0 -1
  606. package/dist/webcomponents/p-CSO7ljYx.js +0 -1
  607. package/dist/webcomponents/p-CgEahdBL.js +0 -1
  608. package/dist/webcomponents/p-Ckf8pUs-.js +0 -1
  609. package/dist/webcomponents/p-Cm9gh1Sz.js +0 -1
  610. package/dist/webcomponents/p-CraCsD1A.js +0 -1
  611. package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
  612. package/dist/webcomponents/p-DgIkDBGX.js +0 -1
  613. package/dist/webcomponents/p-DniQ6yo6.js +0 -1
  614. package/dist/webcomponents/p-DpbCEDZ3.js +0 -1
  615. package/dist/webcomponents/p-Ds11n2AD.js +0 -1
  616. package/dist/webcomponents/p-DvuraFxP.js +0 -1
  617. package/dist/webcomponents/p-DzFysjCc.js +0 -1
  618. package/dist/webcomponents/p-KoNvNGKV.js +0 -1
  619. package/dist/webcomponents/p-SdntD1xf.js +0 -1
  620. package/dist/webcomponents/p-Zuu7wsNB.js +0 -1
  621. package/dist/webcomponents/p-a151a347.entry.js +0 -1
  622. package/dist/webcomponents/p-a48f8ec2.entry.js +0 -1
  623. package/dist/webcomponents/p-a7e9a1d1.entry.js +0 -1
  624. package/dist/webcomponents/p-a87c50de.entry.js +0 -1
  625. package/dist/webcomponents/p-b648fca4.entry.js +0 -1
  626. package/dist/webcomponents/p-b92737c4.entry.js +0 -1
  627. package/dist/webcomponents/p-bbf264c6.entry.js +0 -1
  628. package/dist/webcomponents/p-bdbd0c8e.entry.js +0 -1
  629. package/dist/webcomponents/p-be89720e.entry.js +0 -1
  630. package/dist/webcomponents/p-c18a5ebf.entry.js +0 -1
  631. package/dist/webcomponents/p-c87WhXVB.js +0 -1
  632. package/dist/webcomponents/p-d3a2fa7e.entry.js +0 -1
  633. package/dist/webcomponents/p-d768d814.entry.js +0 -1
  634. package/dist/webcomponents/p-d7883a41.entry.js +0 -1
  635. package/dist/webcomponents/p-d9a9279b.entry.js +0 -1
  636. package/dist/webcomponents/p-d9ae1fea.entry.js +0 -1
  637. package/dist/webcomponents/p-da872abc.entry.js +0 -1
  638. package/dist/webcomponents/p-db86c150.entry.js +0 -1
  639. package/dist/webcomponents/p-dbcc1a8e.entry.js +0 -1
  640. package/dist/webcomponents/p-e0345315.entry.js +0 -1
  641. package/dist/webcomponents/p-e2867ef6.entry.js +0 -1
  642. package/dist/webcomponents/p-e4fa3f41.entry.js +0 -1
  643. package/dist/webcomponents/p-edfcb58d.entry.js +0 -1
  644. package/dist/webcomponents/p-f37bb6d6.entry.js +0 -1
  645. package/dist/webcomponents/p-f5eeb11d.entry.js +0 -1
  646. package/dist/webcomponents/p-f6d5f392.entry.js +0 -1
  647. package/dist/webcomponents/p-f6debdb8.entry.js +0 -1
  648. package/dist/webcomponents/p-fcb85a8e.entry.js +0 -1
  649. package/dist/webcomponents/p-hBHbB3i6.js +0 -1
  650. package/dist/webcomponents/p-pOQo1ck9.js +0 -1
@@ -0,0 +1,322 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-D5bL1DOi.js');
4
+ var styledHost = require('./styled-host-DXNHOiqW.js');
5
+ var button = require('./button-0HYMPryx.js');
6
+ var parts = require('./parts-9jMf1erK.js');
7
+ var utils = require('./utils-qOon0GWm.js');
8
+ var checkout_store = require('./checkout.store--pVCO0L1.js');
9
+ require('./event-types-YOY5TKUN.js');
10
+ var header1 = require('./header-1-M-mc3bsa.js');
11
+ var insuranceState = require('./insurance-state-BsGy_svD.js');
12
+ var header3 = require('./header-3-BnKbOjvz.js');
13
+ var checkPkgVersion = require('./check-pkg-version-Dn-3Aibs.js');
14
+ require('./config-state-Dz9bnWHg.js');
15
+ var ComponentError = require('./ComponentError-CEv9ltwy.js');
16
+ require('./Refund-Dt1CMUjx.js');
17
+ require('./Pagination-Dediz133.js');
18
+ require('./Payment-D5UynU2f.js');
19
+ require('./Business-DCRzZf0w.js');
20
+ require('./Dispute-CruQTF6_.js');
21
+ var utils$1 = require('./utils-IGCnjtqc.js');
22
+ var checkout_service = require('./checkout.service-XwOh98gt.js');
23
+ require('./_commonjsHelpers-BJu3ubxk.js');
24
+ require('./index-BCtVWU61.js');
25
+ require('./package-ClqzRJoK.js');
26
+ require('./Api-c8NBCwu4.js');
27
+ require('./helpers-B5OCqlIM.js');
28
+ require('./state-options-CIT9xdTz.js');
29
+
30
+ const JustifiButton = class {
31
+ constructor(hostRef) {
32
+ index.registerInstance(this, hostRef);
33
+ this.variant = 'primary';
34
+ this.type = 'button';
35
+ }
36
+ render() {
37
+ return (index.h(styledHost.StyledHost, { key: 'e921657ff4c5aae07184ba6560a0f42b1e908643' }, index.h(button.Button, { key: '837cad8384e8d0e2e81d329beb4693ebb15b7d59', variant: this.variant, isLoading: this.isLoading, clickHandler: this.clickHandler, class: this.class, type: this.type, disabled: this.disabled, style: this.customStyle }, this.text)));
38
+ }
39
+ };
40
+
41
+ const Summary = class {
42
+ constructor(hostRef) {
43
+ index.registerInstance(this, hostRef);
44
+ }
45
+ render() {
46
+ return (index.h(styledHost.StyledHost, { key: '9057314b14d664a53f9027fe8931c9e06d40da06' }, index.h("section", { key: '7f9d83b6684b0e12b8ac2f77980a46a8645bf9eb' }, index.h("div", { key: 'dec6d2cfc844ea84c8b2ed432ff158336accf753' }, index.h("div", { key: 'a70a972e3dcdad849602dcc701a945c065711a8a', part: parts.text }, checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.paymentDescription), index.h("div", { key: 'cb2836ddfecd765399d596156cafeb2eec8e65eb' }, index.h("span", { key: '9578966828d25390357d15a0b20348a39b30ab4f', part: parts.text }, "Total"), "\u00A0", index.h("span", { key: '00643561d4e300539f43b970e4e31bc387d6e307', part: parts.text }, utils.formatCurrency(+(checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.totalAmount))))))));
47
+ }
48
+ };
49
+
50
+ const Header = class {
51
+ constructor(hostRef) {
52
+ index.registerInstance(this, hostRef);
53
+ this.levels = {
54
+ h1: header1.Header1,
55
+ h2: insuranceState.Header2,
56
+ h3: header3.Header3,
57
+ };
58
+ this.level = 'h1';
59
+ }
60
+ render() {
61
+ const HeaderComponent = this.levels[this.level];
62
+ return (index.h(styledHost.StyledHost, { key: '1aa6a2f69da4f32ddfaae58c751134b4a8bd20b9' }, index.h(HeaderComponent, { key: 'f2877d1ef32662ab1a17a993d80366df01120a00', text: this.text, class: this.class })));
63
+ }
64
+ };
65
+
66
+ const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
67
+ var _a;
68
+ try {
69
+ const response = await service.fetchCheckout(authToken, checkoutId);
70
+ if (!response.error) {
71
+ const checkout = response.data;
72
+ onSuccess({ checkout });
73
+ }
74
+ else {
75
+ const responseError = utils$1.getErrorMessage(response.error);
76
+ const code = utils$1.getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
77
+ return onError({
78
+ error: responseError,
79
+ code,
80
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
81
+ });
82
+ }
83
+ }
84
+ catch (error) {
85
+ const code = utils$1.getErrorCode(error === null || error === void 0 ? void 0 : error.code);
86
+ return onError({
87
+ error: error.message || error,
88
+ code,
89
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
90
+ });
91
+ }
92
+ };
93
+ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ payment, onSuccess, onError }) => {
94
+ var _a;
95
+ try {
96
+ const response = await service.complete(authToken, checkoutId, payment);
97
+ if (!response.error) {
98
+ onSuccess(response);
99
+ }
100
+ else {
101
+ const responseError = utils$1.getErrorMessage(response.error);
102
+ const code = utils$1.getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
103
+ return onError({
104
+ error: responseError,
105
+ code,
106
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
107
+ });
108
+ }
109
+ }
110
+ catch (error) {
111
+ const code = utils$1.getErrorCode(error === null || error === void 0 ? void 0 : error.code);
112
+ return onError({
113
+ error: error.message || error,
114
+ code,
115
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
116
+ });
117
+ }
118
+ };
119
+
120
+ const CheckoutWrapper = class {
121
+ constructor(hostRef) {
122
+ index.registerInstance(this, hostRef);
123
+ this.errorEvent = index.createEvent(this, "error-event");
124
+ this.submitEvent = index.createEvent(this, "submit-event");
125
+ this.savePaymentMethod = false;
126
+ }
127
+ connectedCallback() {
128
+ this.observer = new MutationObserver(() => {
129
+ this.queryFormRefs();
130
+ });
131
+ this.observer.observe(this.hostEl, {
132
+ childList: true,
133
+ subtree: true
134
+ });
135
+ checkout_store.checkoutStore.checkoutId = this.checkoutId;
136
+ const config = {
137
+ authToken: this.authToken,
138
+ checkoutId: this.checkoutId,
139
+ service: new checkout_service.CheckoutService()
140
+ };
141
+ this.getCheckout = makeGetCheckout(config);
142
+ this.completeCheckout = makeCheckoutComplete(config);
143
+ }
144
+ componentWillLoad() {
145
+ this.analytics = new checkPkgVersion.JustifiAnalytics(this);
146
+ checkPkgVersion.checkPkgVersion();
147
+ checkout_store.checkoutStore.authToken = this.authToken;
148
+ this.fetchCheckout();
149
+ // Refresh the checkout data when insurance is added or removed
150
+ insuranceState.insuranceValuesOn('set', (key) => {
151
+ const value = insuranceState.insuranceValues[key];
152
+ if (value !== undefined) {
153
+ this.fetchCheckout();
154
+ }
155
+ });
156
+ }
157
+ componentDidLoad() {
158
+ this.queryFormRefs();
159
+ }
160
+ disconnectedCallback() {
161
+ var _a;
162
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
163
+ }
164
+ fetchCheckout() {
165
+ if (this.getCheckout) {
166
+ this.getCheckout({
167
+ onSuccess: ({ checkout }) => {
168
+ this.updateStore(checkout);
169
+ },
170
+ onError: (error) => {
171
+ this.errorEvent.emit({
172
+ message: error.message,
173
+ errorCode: ComponentError.ComponentErrorCodes.FETCH_ERROR,
174
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
175
+ });
176
+ }
177
+ });
178
+ }
179
+ }
180
+ updateStore(checkout) {
181
+ var _a, _b, _c, _d;
182
+ checkout_store.checkoutStore.accountId = checkout.account_id;
183
+ checkout_store.checkoutStore.paymentMethods = checkout.payment_methods;
184
+ checkout_store.checkoutStore.paymentMethodGroupId = checkout.payment_method_group_id;
185
+ checkout_store.checkoutStore.paymentDescription = checkout.payment_description;
186
+ checkout_store.checkoutStore.totalAmount = checkout.total_amount;
187
+ checkout_store.checkoutStore.paymentAmount = checkout.payment_amount;
188
+ checkout_store.checkoutStore.bnplEnabled = checkout.payment_settings.bnpl_payments;
189
+ checkout_store.checkoutStore.bnplProviderClientId = (_a = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _a === void 0 ? void 0 : _a.provider_client_id;
190
+ checkout_store.checkoutStore.bnplProviderMode = (_b = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _b === void 0 ? void 0 : _b.provider_mode;
191
+ checkout_store.checkoutStore.bnplProviderApiVersion = (_c = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _c === void 0 ? void 0 : _c.provider_api_version;
192
+ checkout_store.checkoutStore.bnplProviderCheckoutUrl = (_d = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _d === void 0 ? void 0 : _d.provider_checkout_url;
193
+ }
194
+ queryFormRefs() {
195
+ this.paymentMethodFormRef = this.hostEl.querySelector('justifi-card-form, justifi-bank-account-form');
196
+ this.billingInformationFormRef = this.hostEl.querySelector('justifi-billing-information-form, justifi-postal-code-form');
197
+ this.insuranceFormRef = this.hostEl.querySelector('justifi-season-interruption-insurance');
198
+ this.sezzlePaymentMethodRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
199
+ }
200
+ async tokenizePaymentMethod(tokenizeArgs) {
201
+ var _a, _b;
202
+ const billingInfoValues = (_b = await ((_a = this.billingInformationFormRef) === null || _a === void 0 ? void 0 : _a.getValues())) !== null && _b !== void 0 ? _b : {};
203
+ const combinedBillingInfo = Object.assign(Object.assign({}, tokenizeArgs), billingInfoValues);
204
+ const paymentMethodMetadata = Object.assign({ accountId: checkout_store.checkoutStore.accountId, payment_method_group_id: undefined }, combinedBillingInfo);
205
+ if (this.savePaymentMethod) {
206
+ paymentMethodMetadata.payment_method_group_id = checkout_store.checkoutStore.paymentMethodGroupId;
207
+ }
208
+ return this.paymentMethodFormRef.tokenize({
209
+ clientId: this.authToken,
210
+ paymentMethodMetadata,
211
+ account: checkout_store.checkoutStore.accountId,
212
+ });
213
+ }
214
+ async getPaymentMethod(submitCheckoutArgs) {
215
+ if (!this.paymentMethodFormRef) {
216
+ return checkout_store.checkoutStore.selectedPaymentMethod;
217
+ }
218
+ const { error, id: token } = await this.tokenizePaymentMethod(submitCheckoutArgs);
219
+ if (error) {
220
+ this.errorEvent.emit({
221
+ errorCode: error.code,
222
+ message: error.message,
223
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
224
+ });
225
+ return undefined;
226
+ }
227
+ return token;
228
+ }
229
+ async validate() {
230
+ var _a, _b;
231
+ const promises = [
232
+ (_a = this.paymentMethodFormRef) === null || _a === void 0 ? void 0 : _a.validate(),
233
+ (_b = this.billingInformationFormRef) === null || _b === void 0 ? void 0 : _b.validate()
234
+ ];
235
+ if (this.insuranceFormRef) {
236
+ promises.push(this.insuranceFormRef.validate());
237
+ }
238
+ const validationResults = await Promise.all(promises);
239
+ return validationResults.every(result => (result === null || result === void 0 ? void 0 : result.isValid) !== false);
240
+ }
241
+ async submitCheckout(submitCheckoutArgs) {
242
+ var _a;
243
+ const isValid = await this.validate();
244
+ if (!isValid) {
245
+ this.errorEvent.emit({
246
+ message: 'Please fill in all required fields.',
247
+ errorCode: ComponentError.ComponentErrorCodes.VALIDATION_ERROR,
248
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
249
+ });
250
+ return;
251
+ }
252
+ let payment;
253
+ if (checkout_store.checkoutStore.selectedPaymentMethod === 'sezzle') {
254
+ const insuranceValidation = this.insuranceFormRef ? await this.insuranceFormRef.validate() : { isValid: true };
255
+ const sezzleResult = await this.sezzlePaymentMethodRef.resolvePaymentMethod(insuranceValidation);
256
+ if (sezzleResult.error) {
257
+ this.errorEvent.emit({
258
+ message: sezzleResult.error.message,
259
+ errorCode: ComponentError.ComponentErrorCodes.TOKENIZE_ERROR,
260
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
261
+ });
262
+ return;
263
+ }
264
+ else if (((_a = sezzleResult.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
265
+ payment = {
266
+ payment_mode: 'bnpl',
267
+ payment_token: undefined,
268
+ };
269
+ }
270
+ }
271
+ else {
272
+ const paymentMethod = await this.getPaymentMethod(submitCheckoutArgs);
273
+ if (!paymentMethod) {
274
+ this.errorEvent.emit({
275
+ message: 'Payment method tokenization failed.',
276
+ errorCode: ComponentError.ComponentErrorCodes.TOKENIZE_ERROR,
277
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
278
+ });
279
+ return;
280
+ }
281
+ payment = {
282
+ payment_mode: 'ecom',
283
+ payment_token: paymentMethod,
284
+ };
285
+ }
286
+ this.completeCheckout({
287
+ payment,
288
+ onSuccess: ({ checkout }) => {
289
+ this.submitEvent.emit({
290
+ checkout,
291
+ message: 'Checkout completed successfully',
292
+ });
293
+ },
294
+ onError: (error) => {
295
+ this.errorEvent.emit({
296
+ message: error.message,
297
+ errorCode: ComponentError.ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
298
+ severity: ComponentError.ComponentErrorSeverity.ERROR,
299
+ });
300
+ },
301
+ });
302
+ }
303
+ render() {
304
+ return (index.h(index.Host, { key: 'a9a6bd46fce34ecd2aec40db02f04c25ed500396' }));
305
+ }
306
+ get hostEl() { return index.getElement(this); }
307
+ };
308
+
309
+ const PaymentMethodOption = class {
310
+ constructor(hostRef) {
311
+ index.registerInstance(this, hostRef);
312
+ }
313
+ render() {
314
+ return (index.h(styledHost.StyledHost, { key: 'bef445cfdd80c24e9b005f503cf4913ceac4eae8', class: "payment-method" }, index.h("div", { key: 'af292fe29e32858371b7a41fb3d1b983a33d4cc0', class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.clickHandler, hidden: this.radioButtonHidden }, index.h("form-control-radio", { key: '7f3e0ea48a5a8d9b655e1f8609065b7de06386eb', name: "paymentMethodType", value: this.paymentMethodOptionId, checked: this.isSelected, label: this.label }))));
315
+ }
316
+ };
317
+
318
+ exports.justifi_button = JustifiButton;
319
+ exports.justifi_checkout_summary = Summary;
320
+ exports.justifi_header = Header;
321
+ exports.justifi_modular_checkout = CheckoutWrapper;
322
+ exports.payment_method_option = PaymentMethodOption;
@@ -1,137 +1,122 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-D5bL1DOi.js');
4
- var ComponentError = require('./ComponentError-C4MdBBMe.js');
5
- var utils = require('./utils-l0veqT9y.js');
6
- var checkout_service = require('./checkout.service-DtMzeEwi.js');
7
- var checkPkgVersion = require('./check-pkg-version-DuL7lRe2.js');
4
+ var checkPkgVersion = require('./check-pkg-version-Dn-3Aibs.js');
5
+ var checkout_store = require('./checkout.store--pVCO0L1.js');
6
+ var parts = require('./parts-9jMf1erK.js');
7
+ var Payment = require('./Payment-D5UynU2f.js');
8
+ var styledHost = require('./styled-host-DXNHOiqW.js');
9
+ require('./event-types-YOY5TKUN.js');
10
+ require('./package-ClqzRJoK.js');
8
11
  require('./Api-c8NBCwu4.js');
9
12
  require('./config-state-Dz9bnWHg.js');
10
13
  require('./index-BCtVWU61.js');
11
14
  require('./utils-qOon0GWm.js');
12
15
  require('./_commonjsHelpers-BJu3ubxk.js');
13
- require('./Checkout-TZnRz3-3.js');
16
+ require('./ComponentError-CEv9ltwy.js');
17
+ require('./Refund-Dt1CMUjx.js');
14
18
  require('./Pagination-Dediz133.js');
15
- require('./Payment-D5UynU2f.js');
16
- require('./Dispute-CruQTF6_.js');
17
- require('./Refund-DN-yzFgy.js');
18
19
  require('./Business-DCRzZf0w.js');
19
20
  require('./helpers-B5OCqlIM.js');
20
21
  require('./state-options-CIT9xdTz.js');
21
- require('./package-o4g7MDiy.js');
22
+ require('./Dispute-CruQTF6_.js');
22
23
 
23
- const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
24
- var _a;
25
- try {
26
- const response = await service.fetchCheckout(authToken, checkoutId);
27
- if (!response.error) {
28
- const checkout = response.data;
29
- onSuccess({ checkout });
30
- }
31
- else {
32
- const responseError = utils.getErrorMessage(response.error);
33
- const code = utils.getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
34
- return onError({
35
- error: responseError,
36
- code,
37
- severity: ComponentError.ComponentErrorSeverity.ERROR,
38
- });
39
- }
40
- }
41
- catch (error) {
42
- const code = utils.getErrorCode(error === null || error === void 0 ? void 0 : error.code);
43
- return onError({
44
- error: error.message || error,
45
- code,
46
- severity: ComponentError.ComponentErrorSeverity.ERROR,
47
- });
48
- }
49
- };
50
- const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ payment, onSuccess, onError }) => {
51
- var _a;
52
- try {
53
- const response = await service.complete(authToken, checkoutId, payment);
54
- if (!response.error) {
55
- onSuccess(response);
56
- }
57
- else {
58
- const responseError = utils.getErrorMessage(response.error);
59
- const code = utils.getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
60
- return onError({
61
- error: responseError,
62
- code,
63
- severity: ComponentError.ComponentErrorSeverity.ERROR,
64
- });
65
- }
66
- }
67
- catch (error) {
68
- const code = utils.getErrorCode(error === null || error === void 0 ? void 0 : error.code);
69
- return onError({
70
- error: error.message || error,
71
- code,
72
- severity: ComponentError.ComponentErrorSeverity.ERROR,
73
- });
74
- }
24
+ const PaymentMethodTypeLabels = {
25
+ bankAccount: 'New bank account',
26
+ card: 'New credit or debit card',
75
27
  };
76
-
77
28
  const Checkout = class {
78
29
  constructor(hostRef) {
79
30
  index.registerInstance(this, hostRef);
80
31
  this.errorEvent = index.createEvent(this, "error-event");
81
32
  this.loadedEvent = index.createEvent(this, "loaded");
33
+ this.submitEvent = index.createEvent(this, "submit-event");
82
34
  this.errorMessage = '';
35
+ this.insuranceToggled = false;
36
+ this.isSubmitting = false; // This is used to prevent multiple submissions and is different from loading state
37
+ this.paymentMethodOptions = [];
38
+ this.savePaymentMethod = false;
39
+ this.disableBankAccount = false;
40
+ this.disableBnpl = false;
41
+ this.disableCreditCard = false;
42
+ this.disablePaymentMethodGroup = false;
43
+ this.hideBankAccountBillingForm = false;
44
+ this.hideCardBillingForm = false;
45
+ }
46
+ propChanged() {
47
+ this.updateStore();
48
+ }
49
+ connectedCallback() {
50
+ if (this.authToken && this.checkoutId) {
51
+ this.updateStore();
52
+ }
83
53
  }
84
54
  componentWillLoad() {
85
55
  checkPkgVersion.checkPkgVersion();
86
56
  this.analytics = new checkPkgVersion.JustifiAnalytics(this);
87
- this.initializeGetCheckout();
88
57
  }
89
58
  disconnectedCallback() {
90
59
  var _a;
91
60
  (_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
92
61
  }
93
- ;
94
- initializeGetCheckout() {
95
- if (this.authToken && this.checkoutId) {
96
- this.getCheckout = makeGetCheckout({
97
- authToken: this.authToken,
98
- checkoutId: this.checkoutId,
99
- service: new checkout_service.CheckoutService()
100
- });
101
- this.complete = makeCheckoutComplete({
102
- authToken: this.authToken,
103
- checkoutId: this.checkoutId,
104
- service: new checkout_service.CheckoutService()
105
- });
106
- }
107
- else {
108
- this.errorEvent.emit({
109
- message: 'auth-token and checkout-id are required',
110
- errorCode: ComponentError.ComponentErrorCodes.MISSING_PROPS,
111
- severity: ComponentError.ComponentErrorSeverity.ERROR,
112
- });
113
- }
62
+ savePaymentMethodChanged(event) {
63
+ this.savePaymentMethod = event.detail;
114
64
  }
115
- propChanged() {
116
- this.initializeGetCheckout();
65
+ checkoutComplete(_event) {
66
+ this.isSubmitting = false;
67
+ }
68
+ checkoutError(event) {
69
+ this.isSubmitting = false;
70
+ console.error('checkout error', event.detail);
71
+ }
72
+ paymentMethodOptionSelected(event) {
73
+ checkout_store.checkoutStore.selectedPaymentMethod = event.detail.id;
117
74
  }
118
75
  async fillBillingForm(fields) {
119
- this.checkoutCoreRef.fillBillingForm(fields);
76
+ checkout_store.checkoutStore.billingFormFields = fields;
120
77
  }
121
78
  async validate() {
122
- const { isValid } = await this.checkoutCoreRef.validate();
123
- return { isValid };
79
+ var _a;
80
+ return { isValid: await ((_a = this.modularCheckoutRef) === null || _a === void 0 ? void 0 : _a.validate()) };
81
+ }
82
+ updateStore() {
83
+ checkout_store.checkoutStore.checkoutId = this.checkoutId;
84
+ checkout_store.checkoutStore.authToken = this.authToken;
85
+ checkout_store.checkoutStore.disableCreditCard = this.disableCreditCard;
86
+ checkout_store.checkoutStore.disableBankAccount = this.disableBankAccount;
87
+ checkout_store.checkoutStore.disableBnpl = this.disableBnpl;
88
+ checkout_store.checkoutStore.disablePaymentMethodGroup = this.disablePaymentMethodGroup;
89
+ }
90
+ async submit(_event) {
91
+ this.isSubmitting = true;
92
+ this.modularCheckoutRef.submitCheckout(checkout_store.checkoutStore.billingFormFields);
93
+ }
94
+ get canSavePaymentMethod() {
95
+ return checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.card || checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.bankAccount;
96
+ }
97
+ get showBillingForm() {
98
+ return (checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.card && !this.hideCardBillingForm)
99
+ || (checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.bankAccount && !this.hideBankAccountBillingForm);
100
+ }
101
+ get showBillingFormSection() {
102
+ return checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.card || checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.bankAccount;
103
+ }
104
+ get showPaymentTypeHeader() {
105
+ return !this.disableCreditCard && !this.disableBankAccount;
106
+ }
107
+ get showPostalCodeForm() {
108
+ return checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.card && this.hideCardBillingForm;
124
109
  }
125
110
  render() {
126
- return (index.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 => {
127
- if (el) {
128
- this.checkoutCoreRef = el;
129
- }
130
- } }, index.h("div", { key: '7a4be7220e5eb199f94c5086c23e10dce68d4854', slot: "insurance" }, index.h("slot", { key: 'f5db23ef6dc82d0521518ea2dbfe99d8c8b6c2cc', name: "insurance" }))));
111
+ return (index.h(styledHost.StyledHost, { key: '4fb1d82b065de6c1e4651a246a53f8e58451d6f6' }, index.h("justifi-modular-checkout", { key: '232cf32890422f474cf929b7c7ed7246d7b39c75', ref: (el) => (this.modularCheckoutRef = el), authToken: this.authToken, checkoutId: this.checkoutId, savePaymentMethod: this.canSavePaymentMethod && this.savePaymentMethod }, index.h("div", { key: '677ad110b05520be3b729995657086f0f6cbf337', class: "row gy-3 jfi-checkout-core" }, index.h("div", { key: '458c84541dd154dd8b4ad1d0f2320e2308cc1785', class: "col-12", part: parts.checkoutSummary }, index.h("justifi-header", { key: '440a7d1ad7b21da3db66e6c6f1f9afefb434a089', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), index.h("section", { key: '99bd431a8f70ce6e764cc04da3d0aaae6f0ebcbe' }, index.h("justifi-checkout-summary", { key: '52da663e5bed35f0deb220800c7ede8835a3671b' }))), index.h("div", { key: 'e95b1c6830d20c5af57c558badb04d07d3c48f23', class: "col-12 mt-4" }, index.h("slot", { key: '527d58d4806d2e1bbcba499e97ab65f6c9c7efb9', name: "insurance" })), index.h("div", { key: '69d1319d1e05852de4f5566ad3be20bc9a6ee499', class: "col-12 mt-4" }, index.h("justifi-header", { key: '1682f909f22172a44da54118aefe428f92908e91', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (index.h("justifi-header", { key: '7942a12143bea0235705969737e11d59bc5180e1', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), index.h("div", { key: '497664d455695693c4f9a1a4465c62ad4d5b6bdf', class: "d-flex flex-column" }, index.h("section", { key: 'd3da4c18b430e1b36f7b9ba20be517994e763b5e' }, index.h("div", { key: '1cc0f0462a0f70d2acc4c9fdee25fbb2fe953c22' }, index.h("justifi-saved-payment-methods", { key: '576da27df84d67bc69f2d95f00a6c440fa73f7ed' }), index.h("justifi-sezzle-payment-method", { key: '6544a3a250ee012870a9edce71dd763553d44554' }), !this.disableCreditCard && (index.h("div", { key: '79050f768d8d76c4d882bed667e85391c230a960' }, index.h("payment-method-option", { key: '5a6c1dc583766707e6215203fdba176bd65b501d', paymentMethodOptionId: Payment.PaymentMethodTypes.card, isSelected: checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.card, clickHandler: () => { checkout_store.checkoutStore.selectedPaymentMethod = Payment.PaymentMethodTypes.card; }, radioButtonHidden: this.disableCreditCard, label: PaymentMethodTypeLabels[Payment.PaymentMethodTypes.card] }), checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.card && (index.h("div", { key: '5e6f0b854191a9a5db8936b2e30518fba251e478', class: "mt-4 mb-4" }, index.h("justifi-card-form", { key: '6c3f72f27dfe36924fe94ab4f7c79b6b9ff19b47' }))))), !this.disableBankAccount && (index.h("div", { key: 'f6a88103b2c30e4dd10e733b19aaa29a7a44430c' }, index.h("payment-method-option", { key: '67ef047a8caad5bc389238d54bb3d7056ca4b9e6', paymentMethodOptionId: Payment.PaymentMethodTypes.bankAccount, isSelected: checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.bankAccount, clickHandler: () => { checkout_store.checkoutStore.selectedPaymentMethod = Payment.PaymentMethodTypes.bankAccount; }, radioButtonHidden: this.disableBankAccount, label: PaymentMethodTypeLabels[Payment.PaymentMethodTypes.bankAccount] }), checkout_store.checkoutStore.selectedPaymentMethod === Payment.PaymentMethodTypes.bankAccount && (index.h("div", { key: 'e67924184fc43811523081711f59865a01d7cf9f', class: "mt-4 mb-4" }, index.h("justifi-bank-account-form", { key: 'a01cdfe8be1bc98d4c0f75c2a9f2ca1cce519042' }))))))))), this.showBillingFormSection && (index.h("div", { key: 'a15f1202548c7d6c302c2b2827168a6a119f8634', class: "col-12 mt-4" }, this.showBillingForm && (index.h("justifi-header", { key: 'ee654c812cb097449937da4253e191de1ee669d5', text: "Billing Address", level: "h2", class: "fs-5 fw-bold pb-3" })), this.showPostalCodeForm && (index.h("justifi-postal-code-form", { key: '2a5736e6da3354f7a9d1a5b8870a2f61c09c2592' })), this.showBillingForm && (index.h("justifi-billing-information-form", { key: '7dd63931e75d7583b4f51a1f6bb2b1e84a46e078' })))), index.h("div", { key: '54aeb0f07f574ee004ec02cd279265202cffa9bf', class: "col-12" }, this.canSavePaymentMethod && (index.h("justifi-save-new-payment-method", { key: '2e010be22091cee1ebc4353d5dac3b49639175e7' }))), index.h("div", { key: '71df812c8a922ae8b447d647f69675230c092db9', class: "mt-4" }, index.h("justifi-button", { key: '057cd18c6235c73cc69ca85e9cb35a2a614a4d9a', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: this.isSubmitting, isLoading: this.isSubmitting, customStyle: { width: '100%', textAlign: "center" } }))))));
131
112
  }
132
113
  static get watchers() { return {
133
114
  "authToken": ["propChanged"],
134
- "checkoutId": ["propChanged"]
115
+ "checkoutId": ["propChanged"],
116
+ "disableCreditCard": ["propChanged"],
117
+ "disableBankAccount": ["propChanged"],
118
+ "disableBnpl": ["propChanged"],
119
+ "disablePaymentMethodGroup": ["propChanged"]
135
120
  }; }
136
121
  };
137
122
 
@@ -3,11 +3,10 @@
3
3
  var index = require('./index-D5bL1DOi.js');
4
4
  require('./config-state-Dz9bnWHg.js');
5
5
  require('./utils-qOon0GWm.js');
6
- require('./ComponentError-C4MdBBMe.js');
7
- var Checkout = require('./Checkout-TZnRz3-3.js');
6
+ require('./ComponentError-CEv9ltwy.js');
7
+ var Refund = require('./Refund-Dt1CMUjx.js');
8
8
  require('./Pagination-Dediz133.js');
9
9
  require('./Payment-D5UynU2f.js');
10
- require('./Refund-DN-yzFgy.js');
11
10
  require('./Business-DCRzZf0w.js');
12
11
  require('./Dispute-CruQTF6_.js');
13
12
  var checkoutsListParamsState = require('./checkouts-list-params-state-DZUKBmLC.js');
@@ -40,22 +39,22 @@ const CheckoutsListFilters = class {
40
39
  get checkoutStatusOptions() {
41
40
  return [
42
41
  { label: 'All', value: '' },
43
- { label: 'Created', value: Checkout.ICheckoutStatus.created },
44
- { label: 'Completed', value: Checkout.ICheckoutStatus.completed },
45
- { label: 'Attempted', value: Checkout.ICheckoutStatus.attempted },
46
- { label: 'Expired', value: Checkout.ICheckoutStatus.expired },
42
+ { label: 'Created', value: Refund.ICheckoutStatus.created },
43
+ { label: 'Completed', value: Refund.ICheckoutStatus.completed },
44
+ { label: 'Attempted', value: Refund.ICheckoutStatus.attempted },
45
+ { label: 'Expired', value: Refund.ICheckoutStatus.expired },
47
46
  ];
48
47
  }
49
48
  get checkoutPaymentModeOptions() {
50
49
  return [
51
50
  { label: 'All', value: '' },
52
- { label: 'E-commerce', value: Checkout.ICheckoutPaymentModeParam.ecom },
53
- { label: 'BNPL', value: Checkout.ICheckoutPaymentModeParam.bnpl },
51
+ { label: 'E-commerce', value: Refund.ICheckoutPaymentModeParam.ecom },
52
+ { label: 'BNPL', value: Refund.ICheckoutPaymentModeParam.bnpl },
54
53
  ];
55
54
  }
56
55
  render() {
57
56
  const filterMenuParams = Object.assign({}, checkoutsListParamsState.filterParams);
58
- return (index.h(styledHost.StyledHost, { key: 'bcae6fee83117dde40a29ebcab8e85089bcdc37e' }, index.h("table-filters-menu", { key: '56c6a5d205836fe010917f0f0d978507cf227a3f', params: filterMenuParams, clearParams: checkoutsListParamsState.clearParams, part: parts.checkoutsListFilterMenu }, index.h("div", { key: 'c82691f9b863368a2b7523dc7d9d348c3fe2e776', class: "grid-cols-2 gap-3 p-1" }, index.h("div", { key: '9abbb01e53139ebd376a638400b199d88288b175', class: "p-2" }, index.h("form-control-select", { key: '3859777cf1f4ee451a65440a90dfe9e5f4a2f069', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || checkoutsListParamsState.filterParams.status, disabled: !!this.checkoutStatus, part: parts.statusCheckoutsListFilterParam })), index.h("div", { key: '3c23d4b820ea2424d6ddc01e6952c8c46cd7d975', class: "p-2" }, index.h("form-control-select", { key: 'c376228f82419b959b3fefa6b32d25c584c6ea3b', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || checkoutsListParamsState.filterParams.payment_mode, disabled: !!this.paymentMode, part: parts.paymentModeCheckoutsListFilterParam }))))));
57
+ return (index.h(styledHost.StyledHost, { key: '5474a09b729c816bafb47101dbf5a25aff92eb1b' }, index.h("table-filters-menu", { key: '92e46a05e67bdf84b74cd644c1b89d0fc4c86af9', params: filterMenuParams, clearParams: checkoutsListParamsState.clearParams, part: parts.checkoutsListFilterMenu }, index.h("div", { key: 'd8562876f8a0c1d85caa5a298cccdb1143bd7512', class: "grid-cols-2 gap-3 p-1" }, index.h("div", { key: '4162644cf10861d91a79dc07f845dd21a6c8d6a5', class: "p-2" }, index.h("form-control-select", { key: '2b13ef4af25f6ac3865f3b0edde91929655537bf', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || checkoutsListParamsState.filterParams.status, disabled: !!this.checkoutStatus, part: parts.statusCheckoutsListFilterParam })), index.h("div", { key: '9aee7f453be147b03a548fe9ea9bd9bcc6a233aa', class: "p-2" }, index.h("form-control-select", { key: '8f375d5660c3414e5f3796e02694fa46ed761871', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || checkoutsListParamsState.filterParams.payment_mode, disabled: !!this.paymentMode, part: parts.paymentModeCheckoutsListFilterParam }))))));
59
58
  }
60
59
  };
61
60
 
@@ -3,17 +3,16 @@
3
3
  var index = require('./index-D5bL1DOi.js');
4
4
  require('./config-state-Dz9bnWHg.js');
5
5
  require('./utils-qOon0GWm.js');
6
- var ComponentError = require('./ComponentError-C4MdBBMe.js');
7
- var Checkout = require('./Checkout-TZnRz3-3.js');
6
+ var ComponentError = require('./ComponentError-CEv9ltwy.js');
7
+ var Refund = require('./Refund-Dt1CMUjx.js');
8
8
  require('./Pagination-Dediz133.js');
9
9
  require('./Payment-D5UynU2f.js');
10
- require('./Refund-DN-yzFgy.js');
11
10
  require('./Business-DCRzZf0w.js');
12
11
  require('./Dispute-CruQTF6_.js');
13
- var utils = require('./utils-l0veqT9y.js');
14
- var checkPkgVersion = require('./check-pkg-version-DuL7lRe2.js');
15
- var checkout_service = require('./checkout.service-DtMzeEwi.js');
16
- var getSubaccounts = require('./get-subaccounts-fBIoOr7m.js');
12
+ var utils = require('./utils-IGCnjtqc.js');
13
+ var checkPkgVersion = require('./check-pkg-version-Dn-3Aibs.js');
14
+ var checkout_service = require('./checkout.service-XwOh98gt.js');
15
+ var getSubaccounts = require('./get-subaccounts-D4woaGSs.js');
17
16
  var styledHost = require('./styled-host-DXNHOiqW.js');
18
17
  require('./event-types-YOY5TKUN.js');
19
18
  var checkoutsTable = require('./checkouts-table-CrpOOe_e.js');
@@ -21,7 +20,7 @@ require('./index-BCtVWU61.js');
21
20
  require('./_commonjsHelpers-BJu3ubxk.js');
22
21
  require('./helpers-B5OCqlIM.js');
23
22
  require('./state-options-CIT9xdTz.js');
24
- require('./package-o4g7MDiy.js');
23
+ require('./package-ClqzRJoK.js');
25
24
  require('./Api-c8NBCwu4.js');
26
25
  require('./badge-DDksduwk.js');
27
26
  require('./parts-9jMf1erK.js');
@@ -32,7 +31,7 @@ const makeGetCheckouts = ({ accountId, authToken, service }) => async ({ params,
32
31
  const response = await service.fetchCheckouts(accountId, authToken, params);
33
32
  if (!response.error) {
34
33
  const pagingInfo = Object.assign({}, response.page_info);
35
- const checkouts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Checkout.Checkout(dataItem))) || [];
34
+ const checkouts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Refund.Checkout(dataItem))) || [];
36
35
  onSuccess({ checkouts, pagingInfo });
37
36
  }
38
37
  else {
@@ -110,7 +109,7 @@ const CheckoutsList = class {
110
109
  }
111
110
  }
112
111
  render() {
113
- return (index.h(styledHost.StyledHost, { key: 'c76ca3b186023ebea3ac3fe0cf6599786a2f2ea7' }, index.h("checkouts-list-core", { key: '484d31c0b0434181b3bd69cb9c3b6810aa0f2983', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
112
+ return (index.h(styledHost.StyledHost, { key: '41bf633467138b6af13b1c02ccf1e1016ec54bfe' }, index.h("checkouts-list-core", { key: 'cd3ca431258ad73e701fe74612ecdf2c0f2a1bda', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
114
113
  }
115
114
  static get watchers() { return {
116
115
  "accountId": ["propChanged"],
@@ -51,7 +51,7 @@ const DisputeManagementCore = class {
51
51
  });
52
52
  }
53
53
  render() {
54
- return (index.h("div", { key: '5a8663529813801b730d449c835cfafb9924d860' }, this.showDisputeResponseForm ? (index.h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (index.h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
54
+ return (index.h("div", { key: 'c85852cbd1169f371eb30ae06b6a2a564a15ece7' }, this.showDisputeResponseForm ? (index.h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (index.h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
55
55
  }
56
56
  static get watchers() { return {
57
57
  "getDispute": ["updateOnPropChange"]