@justifi/webcomponents 6.0.0-rc.1 → 6.0.0-rc.10
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.
- package/dist/cjs/{Api-CPuq_15r.js → Api-DyimBzKT.js} +2 -2
- package/dist/cjs/{Refund-CqWNG8sx.js → Refund-BefKONu4.js} +6 -3
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-CMmPvqtE.js → badge-CcJ9H85-.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form.cjs.entry.js +9 -6
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business.service-C3BdUPlm.js → business.service-BB6zl4Gc.js} +2 -2
- package/dist/cjs/{button-CfVQSysQ.js → button-DsHDMHaa.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +9 -6
- package/dist/cjs/{check-pkg-version-D_lazhBQ.js → check-pkg-version-DiQ-d5Nl.js} +9 -3
- package/dist/cjs/{checkout.service-B0ZmvWwI.js → checkout.service-B-R80p4f.js} +2 -2
- package/dist/cjs/checkout.store-BGvYPPz0.js +88 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{payments-list-params-state-BNbT1fuJ.js → checkouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{checkouts-table-UN5gPpQ_.js → checkouts-table-DjMdEiEW.js} +3 -3
- package/dist/cjs/{config-state-5xZf-jax.js → config-state-BBOZIS8x.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +1 -1
- package/dist/cjs/{dispute.service-DsPEAcDn.js → dispute.service-B5tITFAh.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-error-text-HM0zQerh.js → form-control-error-text-B-P5UDhm.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-help-text-5KIUw1IP.js → form-control-help-text-JoZjhb9m.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +3 -3
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
- package/dist/cjs/{get-payment-details-DtCXaIMx.js → get-payment-details-BfgRmNL4.js} +2 -2
- package/dist/cjs/{get-subaccounts-CwCH5rC8.js → get-subaccounts-Bnfv2tEN.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-DD41iNlG.js → header-1-DRA3f4Jh.js} +1 -1
- package/dist/cjs/{header-3-D9Wa0IfT.js → header-3-sOdOpfx3.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +4 -4
- package/dist/cjs/{index-Yd9aLenr.js → index-B32W0A3m.js} +1 -1
- package/dist/cjs/{index-dm_GlYlb.js → index-C9hBD-32.js} +2 -2
- package/dist/cjs/index-D-dD-aC2.js +30 -0
- package/dist/cjs/index.cjs.js +8 -0
- package/dist/cjs/{insurance-state-Cyva9u6S.js → insurance-state-d2thhXUX.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +7 -7
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +8 -8
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +782 -0
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +16 -15
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +1421 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +26 -48
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -12
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -9
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -13
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +17 -12
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-Cp_7Ls2E.js → package-Be2aoTf8.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-1H0VC3LV.js → payment.service-aR96UW5e.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{payouts-list-params-state-BNbT1fuJ.js → payments-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payments-status-PB63klt3.js → payments-status-DXRh_ekP.js} +2 -2
- package/dist/cjs/{payments-table-quF0NnsS.js → payments-table-BE8u0-i0.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
- package/dist/cjs/{payout.service-CIZFU-hV.js → payout.service-6Cl_yXXQ.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{checkouts-list-params-state-BNbT1fuJ.js → payouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payouts-status-Bk1JFzbP.js → payouts-status-DxTQZv3i.js} +2 -2
- package/dist/cjs/{payouts-table-D_CCTR_k.js → payouts-table-BbydhJUr.js} +3 -3
- package/dist/cjs/{skeleton-x-GSs3xk.js → skeleton-C7DQRD6r.js} +1 -1
- package/dist/cjs/{spinner-Kb1BFvnL.js → spinner-jmeA44Ee.js} +1 -1
- package/dist/cjs/{styled-host-CqQYxX-w.js → styled-host-BfVJlAsJ.js} +1 -1
- package/dist/cjs/{table-BJVUhh3s.js → table-Ccdrt0v_.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{terminal-orders-list-params-state-BNbT1fuJ.js → terminal-orders-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{terminal-orders-table-0O5jtzYj.js → terminal-orders-table-B4HjERrK.js} +5 -5
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-DUlyMTrX.js → terminal.service-D1FAYZzd.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +10 -10
- package/dist/cjs/terminals-list-params-state-Cewmin_p.js +22 -0
- package/dist/cjs/{terminals-table-C2BNRUS5.js → terminals-table-C79Xc4FI.js} +3 -3
- package/dist/cjs/{utils-Df-pajL7.js → utils-Bzyj4qWe.js} +1 -1
- package/dist/cjs/{utils-BaGF9XIe.js → utils-ChCUZgUy.js} +6 -0
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/ApplePay.js +119 -0
- package/dist/collection/api/Payment.js +5 -2
- package/dist/collection/api/services/apple-pay.service.js +293 -0
- package/dist/collection/api/services/plaid.service.js +20 -0
- package/dist/collection/assets/plaid-icon.svg +1 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +6 -3
- package/dist/collection/components/checkout/card-form/card-form.js +6 -3
- package/dist/collection/components/checkout/checkout.js +17 -39
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +4 -0
- package/dist/collection/components/modular-checkout/ModularCheckout.js +28 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +228 -125
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +509 -0
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +885 -0
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +124 -0
- package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +7 -5
- package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +25 -8
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +63 -34
- package/dist/collection/index.js +1 -0
- package/dist/collection/store/checkout.store.js +46 -2
- package/dist/collection/ui-components/apple-pay-button.js +146 -0
- package/dist/collection/ui-components/form/form-control-radio.js +5 -5
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +4 -4
- package/dist/collection/utils/check-pkg-version.js +6 -0
- package/dist/collection/utils/utils.js +5 -0
- package/dist/docs.json +1037 -212
- package/dist/esm/{Api-N_veT2p6.js → Api-DAWuvzbl.js} +2 -2
- package/dist/esm/{Refund-Di6J0oN2.js → Refund-CVh70dXA.js} +7 -4
- package/dist/esm/additional-questions-details_5.entry.js +4 -4
- package/dist/esm/{badge-D_mzXSCQ.js → badge-DSYSJcRy.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +8 -8
- package/dist/esm/bank-account-form.entry.js +10 -7
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business.service-Bdvhdc_d.js → business.service-cQrH5BqF.js} +2 -2
- package/dist/esm/{button-CeR8qVS3.js → button-CpllL0At.js} +2 -2
- package/dist/esm/card-form.entry.js +10 -7
- package/dist/esm/{check-pkg-version-Bb69ihTN.js → check-pkg-version-CAnDiqiu.js} +9 -3
- package/dist/esm/{checkout.service-XgGFa7H8.js → checkout.service-Bbgi1I6V.js} +2 -2
- package/dist/esm/checkout.store-CCdFOPCK.js +83 -0
- package/dist/esm/checkouts-list-core.entry.js +11 -11
- package/dist/esm/{checkouts-list-params-state-SMXQIZTt.js → checkouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{checkouts-table-CFZYoYjn.js → checkouts-table-Ddf2I-Ul.js} +4 -4
- package/dist/esm/{config-state-BrllxiM0.js → config-state-DZeVYerv.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/{dispute.service-CKPcmwhH.js → dispute.service-CrZsNDW8.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +4 -4
- package/dist/esm/form-control-date.entry.js +3 -3
- package/dist/esm/{form-control-error-text-D3ZwkOv-.js → form-control-error-text-R7U07nTg.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/{form-control-help-text-C39ZW65w.js → form-control-help-text-CRLH-2f7.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +3 -3
- package/dist/esm/form-control-number.entry.js +4 -4
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_2.entry.js +3 -3
- package/dist/esm/{get-payment-details-Dt-dr16k.js → get-payment-details-0VzpMNY9.js} +2 -2
- package/dist/esm/{get-subaccounts-BsoVLANw.js → get-subaccounts-9UMbyFiT.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-E-hEi3wF.js → header-1-3M9If0gM.js} +2 -2
- package/dist/esm/{header-3-Dm7M85kz.js → header-3-CWa41YWq.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/{index-B9me4yN2.js → index-B_KxSZIF.js} +1 -1
- package/dist/esm/{index-kpoIU4v_.js → index-Bn7inNWG.js} +2 -2
- package/dist/esm/index-CbL73B6U.js +30 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/{insurance-state-CB4l8sOv.js → insurance-state-CTalqbNa.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
- package/dist/esm/justifi-additional-statement_8.entry.js +2 -2
- package/dist/esm/justifi-apple-pay.entry.js +780 -0
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +17 -16
- package/dist/esm/justifi-business-details.entry.js +11 -11
- package/dist/esm/justifi-business-form.entry.js +14 -14
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +1413 -0
- package/dist/esm/justifi-checkout.entry.js +26 -48
- package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list.entry.js +14 -14
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +9 -9
- package/dist/esm/justifi-dispute-notification_3.entry.js +13 -13
- package/dist/esm/justifi-gross-payment-chart.entry.js +10 -10
- package/dist/esm/justifi-order-terminals.entry.js +13 -13
- package/dist/esm/justifi-owner-form_3.entry.js +9 -9
- package/dist/esm/justifi-payment-details.entry.js +12 -12
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payments-list-filters.entry.js +6 -6
- package/dist/esm/justifi-payments-list.entry.js +14 -14
- package/dist/esm/justifi-payout-details.entry.js +11 -11
- package/dist/esm/justifi-payout-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-payouts-list.entry.js +15 -15
- package/dist/esm/justifi-refund-payment.entry.js +14 -14
- package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +18 -13
- package/dist/esm/justifi-skeleton.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +12 -12
- package/dist/esm/justifi-terminals-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminals-list.entry.js +14 -14
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-O3LY2Da6.js → package-CnWtPu8L.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-CfF8KKwx.js → parts-RvUQ__Pq.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +8 -8
- package/dist/esm/payment-method-option.entry.js +3 -3
- package/dist/esm/{payment.service-BWO84KlP.js → payment.service-TxyxCg0E.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +12 -12
- package/dist/esm/{payments-list-params-state-SMXQIZTt.js → payments-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payments-status-XoZrlbiZ.js → payments-status-5orNU2Rd.js} +2 -2
- package/dist/esm/{payments-table-Dh4P9mTb.js → payments-table-gkJV5GNK.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +9 -9
- package/dist/esm/{payout.service-Cld6TS5W.js → payout.service-BOwZ4wWh.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +12 -12
- package/dist/esm/{payouts-list-params-state-SMXQIZTt.js → payouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payouts-status-Qm2jZG1-.js → payouts-status-CZPwa2AE.js} +2 -2
- package/dist/esm/{payouts-table-DMVAZp-r.js → payouts-table-0PtktGRd.js} +4 -4
- package/dist/esm/{skeleton-DrHwsgs_.js → skeleton-qMb0_Cjy.js} +2 -2
- package/dist/esm/{spinner-XBq6mVJW.js → spinner-DUzyWLhj.js} +2 -2
- package/dist/esm/{styled-host-B_XBaM7z.js → styled-host-CTAGIN84.js} +1 -1
- package/dist/esm/{table-qqt2Ew5y.js → table-Br3n9Xu-.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +11 -11
- package/dist/esm/{terminal-orders-list-params-state-SMXQIZTt.js → terminal-orders-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{terminal-orders-table-BN4Co4T8.js → terminal-orders-table-DTBSIMlJ.js} +6 -6
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-DmYCUQcA.js → terminal.service-E6dZlM43.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +11 -11
- package/dist/esm/terminals-list-params-state-D8tzsGR_.js +16 -0
- package/dist/esm/{terminals-table-C8LczeG_.js → terminals-table-TGUKTi7I.js} +4 -4
- package/dist/esm/{utils-lb8p1Exq.js → utils-BscIVFn8.js} +6 -1
- package/dist/esm/{utils-kWaZhFAd.js → utils-Dg6gMUTv.js} +2 -2
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/Analytics.js +6 -0
- package/dist/module/ModularCheckout.js +30 -0
- package/dist/module/Refund.js +5 -2
- package/dist/module/bank-account-form.js +5 -2
- package/dist/module/card-form.js +5 -2
- package/dist/module/checkout.store.js +47 -2
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/justifi-apple-pay.d.ts +11 -0
- package/dist/module/justifi-apple-pay.js +811 -0
- package/dist/module/justifi-checkout.js +63 -75
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-plaid-payment-method.d.ts +11 -0
- package/dist/module/justifi-plaid-payment-method.js +6 -0
- package/dist/module/justifi-radio-list-item2.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +5 -1
- package/dist/module/modular-checkout.js +179 -101
- package/dist/module/package.js +1 -1
- package/dist/module/plaid-payment-method.js +687 -0
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-methods.js +7 -5
- package/dist/module/sezzle-payment-method.js +14 -22
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +44 -34
- package/dist/module/utils2.js +6 -1
- package/dist/types/api/ApplePay.d.ts +196 -0
- package/dist/types/api/Checkout.d.ts +9 -14
- package/dist/types/api/Payment.d.ts +4 -3
- package/dist/types/api/services/apple-pay.service.d.ts +55 -0
- package/dist/types/api/services/plaid.service.d.ts +12 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +1 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +1 -0
- package/dist/types/components/checkout/checkout.d.ts +6 -7
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +31 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +13 -4
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +39 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +80 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +1 -1
- package/dist/types/components/modular-checkout/sub-components/sezzle-payment-method.d.ts +1 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +7 -6
- package/dist/types/components.d.ts +172 -11
- package/dist/types/index.d.ts +2 -0
- package/dist/types/store/checkout.store.d.ts +14 -3
- package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
- package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/index.esm.js +1 -0
- package/dist/webcomponents/p-0803d130.entry.js +1 -0
- package/dist/webcomponents/{p-Dvxpy_P1.js → p-0Om7jLBs.js} +1 -1
- package/dist/webcomponents/{p-0932f6a9.entry.js → p-117b7f47.entry.js} +1 -1
- package/dist/webcomponents/p-17093105.entry.js +1 -0
- package/dist/webcomponents/{p-f01953ea.entry.js → p-1a08b47f.entry.js} +1 -1
- package/dist/webcomponents/p-1bcb3852.entry.js +1 -0
- package/dist/webcomponents/{p-ae4297dd.entry.js → p-1eb2b847.entry.js} +1 -1
- package/dist/webcomponents/{p-dd257e60.entry.js → p-2f7aa249.entry.js} +1 -1
- package/dist/webcomponents/{p-28c7bef7.entry.js → p-2fa34c82.entry.js} +4 -4
- package/dist/webcomponents/{p-08ea8974.entry.js → p-33311d41.entry.js} +1 -1
- package/dist/webcomponents/p-336c31b3.entry.js +1 -0
- package/dist/webcomponents/{p-22be0859.entry.js → p-3f33c940.entry.js} +1 -1
- package/dist/webcomponents/{p-f3a757b2.entry.js → p-442f86e8.entry.js} +1 -1
- package/dist/webcomponents/{p-a8205044.entry.js → p-44450a94.entry.js} +1 -1
- package/dist/webcomponents/{p-cebe360b.entry.js → p-464e7a8e.entry.js} +1 -1
- package/dist/webcomponents/{p-ba8ae31f.entry.js → p-50392803.entry.js} +1 -1
- package/dist/webcomponents/p-52cbd667.entry.js +1 -0
- package/dist/webcomponents/{p-ded22005.entry.js → p-54ca3070.entry.js} +1 -1
- package/dist/webcomponents/{p-77515be6.entry.js → p-5ad0f438.entry.js} +1 -1
- package/dist/webcomponents/{p-6e18d13f.entry.js → p-613421d4.entry.js} +1 -1
- package/dist/webcomponents/{p-9b75aced.entry.js → p-62d12566.entry.js} +1 -1
- package/dist/webcomponents/p-65ed60bf.entry.js +1 -0
- package/dist/webcomponents/p-6cf30a24.entry.js +1 -0
- package/dist/webcomponents/{p-48bccf3b.entry.js → p-70f51444.entry.js} +1 -1
- package/dist/webcomponents/{p-a4172773.entry.js → p-729dbd8f.entry.js} +1 -1
- package/dist/webcomponents/p-77948b46.entry.js +1 -0
- package/dist/webcomponents/{p-1d53f0b8.entry.js → p-7bcfaff4.entry.js} +1 -1
- package/dist/webcomponents/{p-b0bfa20f.entry.js → p-7cf87637.entry.js} +1 -1
- package/dist/webcomponents/{p-dfd7c212.entry.js → p-7dd74e6f.entry.js} +1 -1
- package/dist/webcomponents/{p-I8XpD1TX.js → p-7s1gsXM5.js} +1 -1
- package/dist/webcomponents/{p-3d85d046.entry.js → p-80331983.entry.js} +1 -1
- package/dist/webcomponents/{p-d0e24727.entry.js → p-85f20746.entry.js} +1 -1
- package/dist/webcomponents/{p-79055216.entry.js → p-8687e5d6.entry.js} +1 -1
- package/dist/webcomponents/p-89ecd650.entry.js +1 -0
- package/dist/webcomponents/p-8a6718b6.entry.js +1 -0
- package/dist/webcomponents/p-8d6b81ba.entry.js +1 -0
- package/dist/webcomponents/{p-a7d5e434.entry.js → p-8d743490.entry.js} +1 -1
- package/dist/webcomponents/{p-8f0339de.entry.js → p-8f7396b1.entry.js} +1 -1
- package/dist/webcomponents/{p-15777cfe.entry.js → p-8ff839a4.entry.js} +1 -1
- package/dist/webcomponents/{p-57143978.entry.js → p-95cbb655.entry.js} +1 -1
- package/dist/webcomponents/{p-ae5a3c2a.entry.js → p-98cffba9.entry.js} +1 -1
- package/dist/webcomponents/{p-4ba144ac.entry.js → p-9a2c044f.entry.js} +1 -1
- package/dist/webcomponents/{p-904a95e5.entry.js → p-9be67b19.entry.js} +1 -1
- package/dist/webcomponents/{p-df199396.entry.js → p-9e8021a1.entry.js} +1 -1
- package/dist/webcomponents/{p-131d799c.entry.js → p-9fc0ea58.entry.js} +1 -1
- package/dist/webcomponents/p-9fc567d8.entry.js +1 -0
- package/dist/webcomponents/{p-424f491c.entry.js → p-9fcff84c.entry.js} +1 -1
- package/dist/webcomponents/p-B71k50jz.js +1 -0
- package/dist/webcomponents/p-BF4U0yVj.js +1 -0
- package/dist/webcomponents/{p-zdIeCUeh.js → p-BHf9IqGw.js} +1 -1
- package/dist/webcomponents/p-BQ2TIFoY.js +1 -0
- package/dist/webcomponents/p-BSt6p1oq.js +1 -0
- package/dist/webcomponents/p-BY1mRAvj.js +1 -0
- package/dist/webcomponents/{p-YND5pTuF.js → p-Bb-6bNcq.js} +1 -1
- package/dist/webcomponents/p-BbZwa5UI.js +1 -0
- package/dist/webcomponents/p-BdKWuCys.js +1 -0
- package/dist/webcomponents/p-BfM6X7lF.js +1 -0
- package/dist/webcomponents/{p-BbYVgLcf.js → p-BjVfIXWC.js} +1 -1
- package/dist/webcomponents/{p-kpoIU4v_.js → p-Bn7inNWG.js} +1 -1
- package/dist/webcomponents/{p-BisQ61nK.js → p-BsGE9UDv.js} +1 -1
- package/dist/webcomponents/{p-BeszVz87.js → p-C5id7s_l.js} +1 -1
- package/dist/webcomponents/{p-CsNubTqD.js → p-CAJnQLZF.js} +1 -1
- package/dist/webcomponents/{p-Bz164TKZ.js → p-CB0mCq1M.js} +1 -1
- package/dist/webcomponents/p-CaAVuW6B.js +1 -0
- package/dist/webcomponents/p-Cb0FhuyU.js +1 -0
- package/dist/webcomponents/p-CbL73B6U.js +1 -0
- package/dist/webcomponents/p-CnWtPu8L.js +1 -0
- package/dist/webcomponents/p-CpaS1Lex.js +1 -0
- package/dist/webcomponents/p-DD0Mvpeu.js +1 -0
- package/dist/webcomponents/p-DDUmOl3v.js +1 -0
- package/dist/webcomponents/p-DIDloHpm.js +1 -0
- package/dist/webcomponents/p-DIjoBk44.js +1 -0
- package/dist/webcomponents/{p-UD2JhYS2.js → p-DK2sRMlx.js} +1 -1
- package/dist/webcomponents/{p-DO3INvI2.js → p-DNo0OPOP.js} +1 -1
- package/dist/webcomponents/{p-BTkXk7ol.js → p-DRXvcLy9.js} +1 -1
- package/dist/webcomponents/{p-BNz6wy4f.js → p-DZYcH7jA.js} +1 -1
- package/dist/webcomponents/p-Da3idOSV.js +1 -0
- package/dist/webcomponents/p-Dgflaz6J.js +1 -0
- package/dist/webcomponents/{p-9y5MOK55.js → p-DhGNCW2f.js} +1 -1
- package/dist/webcomponents/p-DsZZxRXY.js +1 -0
- package/dist/webcomponents/{p-CRFzwZW6.js → p-DxqCFDtF.js} +1 -1
- package/dist/webcomponents/p-ED_TzwCp.js +1 -0
- package/dist/webcomponents/p-JyHlIFWl.js +1 -0
- package/dist/webcomponents/{p-CfF8KKwx.js → p-RvUQ__Pq.js} +1 -1
- package/dist/webcomponents/{p-DWUnL_zj.js → p-Wh1V0gvF.js} +1 -1
- package/dist/webcomponents/{p-c3a2c619.entry.js → p-a55f07af.entry.js} +1 -1
- package/dist/webcomponents/{p-40ba49e4.entry.js → p-aa6194ef.entry.js} +1 -1
- package/dist/webcomponents/{p-d77908ca.entry.js → p-ab6a5dc9.entry.js} +1 -1
- package/dist/webcomponents/{p-463ae23a.entry.js → p-abbf14b5.entry.js} +1 -1
- package/dist/webcomponents/{p-283cd78b.entry.js → p-af9c4174.entry.js} +1 -1
- package/dist/webcomponents/{p-f47095cd.entry.js → p-b7d2f2eb.entry.js} +1 -1
- package/dist/webcomponents/p-bbc4b4cb.entry.js +1 -0
- package/dist/webcomponents/{p-36d72e2d.entry.js → p-c599e526.entry.js} +1 -1
- package/dist/webcomponents/{p-5e10aa65.entry.js → p-d46dbb83.entry.js} +1 -1
- package/dist/webcomponents/{p-6849bf8e.entry.js → p-d62cd269.entry.js} +1 -1
- package/dist/webcomponents/{p-ff3377e7.entry.js → p-d9dd7d24.entry.js} +1 -1
- package/dist/webcomponents/p-dd7352da.entry.js +1 -0
- package/dist/webcomponents/{p-7c51805a.entry.js → p-e8a67dc7.entry.js} +1 -1
- package/dist/webcomponents/p-eP3fmhta.js +1 -0
- package/dist/webcomponents/p-eb2d9e5b.entry.js +1 -0
- package/dist/webcomponents/{p-1f8cd44e.entry.js → p-eddaca4e.entry.js} +1 -1
- package/dist/webcomponents/{p-9106fd74.entry.js → p-ef32fe0e.entry.js} +1 -1
- package/dist/webcomponents/{p-c5b48e8d.entry.js → p-f1cba43c.entry.js} +1 -1
- package/dist/webcomponents/{p-e830a580.entry.js → p-f1f0b405.entry.js} +1 -1
- package/dist/webcomponents/p-f499a8de.entry.js +1 -0
- package/dist/webcomponents/{p-828a61b9.entry.js → p-f4d0cdf0.entry.js} +1 -1
- package/dist/webcomponents/{p-818f51fd.entry.js → p-f680e617.entry.js} +1 -1
- package/dist/webcomponents/{p-bea4309d.entry.js → p-f7c4222f.entry.js} +1 -1
- package/dist/webcomponents/p-fa1884b4.entry.js +1 -0
- package/dist/webcomponents/p-sw5RO19U.js +1 -0
- package/dist/webcomponents/p-z-5r0gWn.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/checkout.store-CV_fuGQw.js +0 -39
- package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +0 -698
- package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +0 -22
- package/dist/esm/checkout.store-B60siz2l.js +0 -36
- package/dist/esm/justifi-checkout-summary_6.entry.js +0 -691
- package/dist/esm/terminals-list-params-state-SMXQIZTt.js +0 -16
- package/dist/webcomponents/p-09e768fe.entry.js +0 -1
- package/dist/webcomponents/p-0dcc83ac.entry.js +0 -1
- package/dist/webcomponents/p-1bdce018.entry.js +0 -1
- package/dist/webcomponents/p-2f31a4e5.entry.js +0 -1
- package/dist/webcomponents/p-3a4ca4df.entry.js +0 -1
- package/dist/webcomponents/p-466f33d7.entry.js +0 -1
- package/dist/webcomponents/p-57802e57.entry.js +0 -1
- package/dist/webcomponents/p-5rVtZ2GJ.js +0 -1
- package/dist/webcomponents/p-7322c86e.entry.js +0 -1
- package/dist/webcomponents/p-7WIgS5RM.js +0 -1
- package/dist/webcomponents/p-89e27079.entry.js +0 -1
- package/dist/webcomponents/p-BC8YDY7M.js +0 -1
- package/dist/webcomponents/p-BVD7g3cE.js +0 -1
- package/dist/webcomponents/p-Bb6FBEPP.js +0 -1
- package/dist/webcomponents/p-Bpcb3SsP.js +0 -1
- package/dist/webcomponents/p-Bt388eye.js +0 -1
- package/dist/webcomponents/p-BySyDTv5.js +0 -1
- package/dist/webcomponents/p-C1fMfnu0.js +0 -1
- package/dist/webcomponents/p-CCME-fyU.js +0 -1
- package/dist/webcomponents/p-CLwzqWk2.js +0 -1
- package/dist/webcomponents/p-CVQyw7ao.js +0 -1
- package/dist/webcomponents/p-C_CXv7AN.js +0 -1
- package/dist/webcomponents/p-CwZKT93w.js +0 -1
- package/dist/webcomponents/p-D599ZMGU.js +0 -1
- package/dist/webcomponents/p-DD74a16D.js +0 -1
- package/dist/webcomponents/p-DaDsBt65.js +0 -1
- package/dist/webcomponents/p-JgbsbAhz.js +0 -1
- package/dist/webcomponents/p-O3LY2Da6.js +0 -1
- package/dist/webcomponents/p-WEguiGt1.js +0 -1
- package/dist/webcomponents/p-be06d86a.entry.js +0 -1
- package/dist/webcomponents/p-dd689b5e.entry.js +0 -1
- package/dist/webcomponents/p-dd6d6ddb.entry.js +0 -1
- package/dist/webcomponents/p-e859ece8.entry.js +0 -1
- package/dist/webcomponents/p-eaea7cc1.entry.js +0 -1
- package/dist/webcomponents/p-fa33df9f.entry.js +0 -1
- package/dist/webcomponents/p-ff869ded.entry.js +0 -1
- package/dist/webcomponents/p-pska2q1M.js +0 -1
- package/dist/webcomponents/p-qMrd7_Gp.js +0 -1
- package/dist/webcomponents/p-vRhNRfmB.js +0 -1
- package/dist/webcomponents/p-zrUQD0Wr.js +0 -1
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
3
|
-
import
|
|
3
|
+
import './config-state.js';
|
|
4
|
+
import './dinero.js';
|
|
5
|
+
import { P as PaymentMethodTypes } from './Refund.js';
|
|
6
|
+
import './Pagination.js';
|
|
7
|
+
import './Business.js';
|
|
4
8
|
import { c as checkoutStore } from './checkout.store.js';
|
|
5
9
|
import { a2 as checkoutSummary } from './parts.js';
|
|
6
10
|
import { S as StyledHost } from './styled-host.js';
|
|
7
11
|
import './details.js';
|
|
8
12
|
import './event-types.js';
|
|
9
13
|
import { d as defineCustomElement$6 } from './justifi-radio-list-item2.js';
|
|
10
|
-
import {
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
14
|
-
import { d as defineCustomElement$
|
|
15
|
-
import { d as defineCustomElement$
|
|
16
|
-
import { d as defineCustomElement$
|
|
17
|
-
import { d as defineCustomElement$
|
|
18
|
-
import { d as defineCustomElement$
|
|
19
|
-
import { d as defineCustomElement$
|
|
20
|
-
import { d as defineCustomElement$
|
|
21
|
-
import { d as defineCustomElement$
|
|
22
|
-
import { d as defineCustomElement$
|
|
23
|
-
import { d as defineCustomElement$
|
|
24
|
-
import { d as defineCustomElement$
|
|
25
|
-
import { d as defineCustomElement$
|
|
26
|
-
import { d as defineCustomElement$
|
|
27
|
-
import { d as defineCustomElement$
|
|
28
|
-
import { d as defineCustomElement$
|
|
14
|
+
import { P as PAYMENT_METHODS } from './ModularCheckout.js';
|
|
15
|
+
import { d as defineCustomElement$q } from './custom-popper2.js';
|
|
16
|
+
import { d as defineCustomElement$p } from './form-control-checkbox2.js';
|
|
17
|
+
import { d as defineCustomElement$o } from './form-control-help-text2.js';
|
|
18
|
+
import { d as defineCustomElement$n } from './form-control-radio2.js';
|
|
19
|
+
import { d as defineCustomElement$m } from './form-control-select2.js';
|
|
20
|
+
import { d as defineCustomElement$l } from './form-control-text2.js';
|
|
21
|
+
import { d as defineCustomElement$k } from './form-control-tooltip2.js';
|
|
22
|
+
import { d as defineCustomElement$j } from './hidden-input2.js';
|
|
23
|
+
import { d as defineCustomElement$i } from './iframe-input2.js';
|
|
24
|
+
import { d as defineCustomElement$h } from './bank-account-billing-form-simple.js';
|
|
25
|
+
import { d as defineCustomElement$g } from './bank-account.js';
|
|
26
|
+
import { d as defineCustomElement$f } from './billing-form.js';
|
|
27
|
+
import { d as defineCustomElement$e } from './billing-form-full.js';
|
|
28
|
+
import { d as defineCustomElement$d } from './justifi-button2.js';
|
|
29
|
+
import { d as defineCustomElement$c } from './card-billing-form-simple.js';
|
|
30
|
+
import { d as defineCustomElement$b } from './card-form2.js';
|
|
31
|
+
import { d as defineCustomElement$a } from './summary.js';
|
|
32
|
+
import { d as defineCustomElement$9 } from './justifi-header2.js';
|
|
33
|
+
import { d as defineCustomElement$8 } from './modular-checkout.js';
|
|
34
|
+
import { d as defineCustomElement$7 } from './plaid-payment-method.js';
|
|
29
35
|
import { d as defineCustomElement$5 } from './save-new-payment-method.js';
|
|
30
36
|
import { d as defineCustomElement$4 } from './saved-payment-methods.js';
|
|
31
37
|
import { d as defineCustomElement$3 } from './sezzle-payment-method.js';
|
|
@@ -38,6 +44,7 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
38
44
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
39
45
|
this.loadedEvent = createEvent(this, "loaded", 7);
|
|
40
46
|
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
47
|
+
this.availablePaymentMethods = [];
|
|
41
48
|
this.errorMessage = '';
|
|
42
49
|
this.insuranceToggled = false;
|
|
43
50
|
this.isSubmitting = false; // This is used to prevent multiple submissions and is different from loading state
|
|
@@ -67,23 +74,11 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
67
74
|
checkoutComplete(_event) {
|
|
68
75
|
this.isSubmitting = false;
|
|
69
76
|
}
|
|
70
|
-
checkoutError(
|
|
77
|
+
checkoutError(_event) {
|
|
71
78
|
this.isSubmitting = false;
|
|
72
|
-
console.error('checkout error', event.detail);
|
|
73
79
|
}
|
|
74
|
-
|
|
75
|
-
this.
|
|
76
|
-
if (event.detail.response.error) {
|
|
77
|
-
this.isSubmitting = false;
|
|
78
|
-
this.errorEvent.emit({
|
|
79
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
80
|
-
message: event.detail.response.error.message,
|
|
81
|
-
severity: ComponentErrorSeverity.ERROR
|
|
82
|
-
});
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
// Now submit the checkout with the tokenized payment method
|
|
86
|
-
await this.submitCheckoutWithToken();
|
|
80
|
+
checkoutChanged(event) {
|
|
81
|
+
this.availablePaymentMethods = event.detail.availablePaymentMethodTypes;
|
|
87
82
|
}
|
|
88
83
|
async fillBillingForm(fields) {
|
|
89
84
|
var _a;
|
|
@@ -91,12 +86,9 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
91
86
|
(_a = this.tokenizePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.fillBillingForm(fields);
|
|
92
87
|
}
|
|
93
88
|
async validate() {
|
|
94
|
-
var _a
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
return {
|
|
98
|
-
isValid: ((_c = tokenizeValidation === null || tokenizeValidation === void 0 ? void 0 : tokenizeValidation.isValid) !== null && _c !== void 0 ? _c : true) && (modularValidation !== null && modularValidation !== void 0 ? modularValidation : true)
|
|
99
|
-
};
|
|
89
|
+
var _a;
|
|
90
|
+
const modularValidation = await ((_a = this.modularCheckoutRef) === null || _a === void 0 ? void 0 : _a.validate());
|
|
91
|
+
return { isValid: modularValidation };
|
|
100
92
|
}
|
|
101
93
|
updateStore() {
|
|
102
94
|
checkoutStore.checkoutId = this.checkoutId;
|
|
@@ -109,24 +101,15 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
109
101
|
async submit(_event) {
|
|
110
102
|
var _a;
|
|
111
103
|
this.isSubmitting = true;
|
|
112
|
-
|
|
113
|
-
(_a = this.tokenizePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.tokenizePaymentMethod();
|
|
114
|
-
}
|
|
115
|
-
async submitCheckoutWithToken() {
|
|
116
|
-
if (!this.tokenizedPaymentMethod || this.tokenizedPaymentMethod.error) {
|
|
117
|
-
this.isSubmitting = false;
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
// Set the payment token in the store for the modular checkout to use
|
|
121
|
-
checkoutStore.paymentToken = this.tokenizedPaymentMethod.token;
|
|
122
|
-
// Submit the checkout
|
|
123
|
-
this.modularCheckoutRef.submitCheckout(checkoutStore.billingFormFields);
|
|
104
|
+
(_a = this.modularCheckoutRef) === null || _a === void 0 ? void 0 : _a.submitCheckout(checkoutStore.billingFormFields);
|
|
124
105
|
}
|
|
125
106
|
get showPaymentTypeHeader() {
|
|
126
107
|
return !this.disableCreditCard && !this.disableBankAccount;
|
|
127
108
|
}
|
|
128
109
|
render() {
|
|
129
|
-
return (h(StyledHost, { key: '
|
|
110
|
+
return (h(StyledHost, { key: '61cab7c3b5ca01ea70f35d23df100c2e7bd0c03a' }, h("justifi-modular-checkout", { key: '3e0c1729d51ca5e89108723b4a6ee14761965546', ref: (el) => {
|
|
111
|
+
this.modularCheckoutRef = el;
|
|
112
|
+
}, authToken: this.authToken, checkoutId: this.checkoutId, savePaymentMethod: checkoutStore.savePaymentMethod }, h("div", { key: '04a19f4c090bd8b70801b48ce24fd734bbce5b73', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '50e11e53ca4274441da3813504c9a2af223a0e28', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '2de0fb5500246c8c2ea63b6beade5fea57611a6d', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '918f05a55424d4a2e46011b6c5fa0c71fc19bec3' }, h("justifi-checkout-summary", { key: 'e34604b589685ee13af794c15fd25cc19f9d2ee8' }))), h("div", { key: '7d1390340bfa79592f5643a56f15a65b6dc4faac', class: "col-12 mt-4" }, h("slot", { key: '783667c66419f8718378a705c5c313f8a763f64b', name: "insurance" })), h("div", { key: '63cc63309104557bc5dfd97f2cff3c366cbd62ae', class: "col-12 mt-4" }, h("justifi-header", { key: '8981556e7dc5f4f27a81415c222c274a6aa29173', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '86d3b2e89c5fedaf8d9023a1597134b0a3556e22', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'da9b779071f32fe740f74061aa021a980db3aa34', class: "d-flex flex-column" }, h("section", { key: 'e0e953bfbd7f2ab7f558cc226878f74cde55e5dd' }, h("div", { key: 'b28c99a3298b8aa9ec65b254b43944af42c31e56' }, h("justifi-saved-payment-methods", { key: 'b22333168f775bc0ff58fd9ec502828b27ed3063' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && (h("justifi-radio-list-item", { key: '9eac787dc5ce5a2c2f2d4a54ee1e2f9b2a48bbf7', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.sezzle, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && (h("justifi-radio-list-item", { key: '005fb466a494525ac651893afcf38a8998511e9e', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.plaid, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: '75eaa74fc65172ecbcde91ddaf397ca367ba84be', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: '3ae7b4ad2a464ec02eaaecbef65128ea204160c0', class: "mt-4" }, h("justifi-button", { key: '387e7fde5250bcf651a9ce1639fde76ac398dd3c', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: this.isSubmitting, isLoading: this.isSubmitting, customStyle: { width: '100%', textAlign: "center" } }))))));
|
|
130
113
|
}
|
|
131
114
|
static get watchers() { return {
|
|
132
115
|
"authToken": ["propChanged"],
|
|
@@ -145,16 +128,16 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
|
|
|
145
128
|
"disablePaymentMethodGroup": [4, "disable-payment-method-group"],
|
|
146
129
|
"hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
|
|
147
130
|
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
131
|
+
"availablePaymentMethods": [32],
|
|
148
132
|
"checkout": [32],
|
|
149
133
|
"complete": [32],
|
|
150
134
|
"errorMessage": [32],
|
|
151
135
|
"insuranceToggled": [32],
|
|
152
136
|
"isSubmitting": [32],
|
|
153
137
|
"serverError": [32],
|
|
154
|
-
"tokenizedPaymentMethod": [32],
|
|
155
138
|
"fillBillingForm": [64],
|
|
156
139
|
"validate": [64]
|
|
157
|
-
}, [[0, "submit-event", "checkoutComplete"], [0, "error-event", "checkoutError"], [0, "
|
|
140
|
+
}, [[0, "submit-event", "checkoutComplete"], [0, "error-event", "checkoutError"], [0, "checkout-changed", "checkoutChanged"]], {
|
|
158
141
|
"authToken": ["propChanged"],
|
|
159
142
|
"checkoutId": ["propChanged"],
|
|
160
143
|
"disableCreditCard": ["propChanged"],
|
|
@@ -166,7 +149,7 @@ function defineCustomElement$1() {
|
|
|
166
149
|
if (typeof customElements === "undefined") {
|
|
167
150
|
return;
|
|
168
151
|
}
|
|
169
|
-
const components = ["justifi-checkout", "custom-popper", "form-control-checkbox", "form-control-help-text", "form-control-radio", "form-control-select", "form-control-text", "form-control-tooltip", "hidden-input", "iframe-input", "justifi-bank-account-billing-form-simple", "justifi-bank-account-form", "justifi-billing-form", "justifi-billing-form-full", "justifi-button", "justifi-card-billing-form-simple", "justifi-card-form", "justifi-checkout-summary", "justifi-header", "justifi-modular-checkout", "justifi-radio-list-item", "justifi-save-new-payment-method", "justifi-saved-payment-methods", "justifi-sezzle-payment-method", "justifi-tokenize-payment-method"];
|
|
152
|
+
const components = ["justifi-checkout", "custom-popper", "form-control-checkbox", "form-control-help-text", "form-control-radio", "form-control-select", "form-control-text", "form-control-tooltip", "hidden-input", "iframe-input", "justifi-bank-account-billing-form-simple", "justifi-bank-account-form", "justifi-billing-form", "justifi-billing-form-full", "justifi-button", "justifi-card-billing-form-simple", "justifi-card-form", "justifi-checkout-summary", "justifi-header", "justifi-modular-checkout", "justifi-plaid-payment-method", "justifi-radio-list-item", "justifi-save-new-payment-method", "justifi-saved-payment-methods", "justifi-sezzle-payment-method", "justifi-tokenize-payment-method"];
|
|
170
153
|
components.forEach(tagName => { switch (tagName) {
|
|
171
154
|
case "justifi-checkout":
|
|
172
155
|
if (!customElements.get(tagName)) {
|
|
@@ -175,95 +158,100 @@ function defineCustomElement$1() {
|
|
|
175
158
|
break;
|
|
176
159
|
case "custom-popper":
|
|
177
160
|
if (!customElements.get(tagName)) {
|
|
178
|
-
defineCustomElement$
|
|
161
|
+
defineCustomElement$q();
|
|
179
162
|
}
|
|
180
163
|
break;
|
|
181
164
|
case "form-control-checkbox":
|
|
182
165
|
if (!customElements.get(tagName)) {
|
|
183
|
-
defineCustomElement$
|
|
166
|
+
defineCustomElement$p();
|
|
184
167
|
}
|
|
185
168
|
break;
|
|
186
169
|
case "form-control-help-text":
|
|
187
170
|
if (!customElements.get(tagName)) {
|
|
188
|
-
defineCustomElement$
|
|
171
|
+
defineCustomElement$o();
|
|
189
172
|
}
|
|
190
173
|
break;
|
|
191
174
|
case "form-control-radio":
|
|
192
175
|
if (!customElements.get(tagName)) {
|
|
193
|
-
defineCustomElement$
|
|
176
|
+
defineCustomElement$n();
|
|
194
177
|
}
|
|
195
178
|
break;
|
|
196
179
|
case "form-control-select":
|
|
197
180
|
if (!customElements.get(tagName)) {
|
|
198
|
-
defineCustomElement$
|
|
181
|
+
defineCustomElement$m();
|
|
199
182
|
}
|
|
200
183
|
break;
|
|
201
184
|
case "form-control-text":
|
|
202
185
|
if (!customElements.get(tagName)) {
|
|
203
|
-
defineCustomElement$
|
|
186
|
+
defineCustomElement$l();
|
|
204
187
|
}
|
|
205
188
|
break;
|
|
206
189
|
case "form-control-tooltip":
|
|
207
190
|
if (!customElements.get(tagName)) {
|
|
208
|
-
defineCustomElement$
|
|
191
|
+
defineCustomElement$k();
|
|
209
192
|
}
|
|
210
193
|
break;
|
|
211
194
|
case "hidden-input":
|
|
212
195
|
if (!customElements.get(tagName)) {
|
|
213
|
-
defineCustomElement$
|
|
196
|
+
defineCustomElement$j();
|
|
214
197
|
}
|
|
215
198
|
break;
|
|
216
199
|
case "iframe-input":
|
|
217
200
|
if (!customElements.get(tagName)) {
|
|
218
|
-
defineCustomElement$
|
|
201
|
+
defineCustomElement$i();
|
|
219
202
|
}
|
|
220
203
|
break;
|
|
221
204
|
case "justifi-bank-account-billing-form-simple":
|
|
222
205
|
if (!customElements.get(tagName)) {
|
|
223
|
-
defineCustomElement$
|
|
206
|
+
defineCustomElement$h();
|
|
224
207
|
}
|
|
225
208
|
break;
|
|
226
209
|
case "justifi-bank-account-form":
|
|
227
210
|
if (!customElements.get(tagName)) {
|
|
228
|
-
defineCustomElement$
|
|
211
|
+
defineCustomElement$g();
|
|
229
212
|
}
|
|
230
213
|
break;
|
|
231
214
|
case "justifi-billing-form":
|
|
232
215
|
if (!customElements.get(tagName)) {
|
|
233
|
-
defineCustomElement$
|
|
216
|
+
defineCustomElement$f();
|
|
234
217
|
}
|
|
235
218
|
break;
|
|
236
219
|
case "justifi-billing-form-full":
|
|
237
220
|
if (!customElements.get(tagName)) {
|
|
238
|
-
defineCustomElement$
|
|
221
|
+
defineCustomElement$e();
|
|
239
222
|
}
|
|
240
223
|
break;
|
|
241
224
|
case "justifi-button":
|
|
242
225
|
if (!customElements.get(tagName)) {
|
|
243
|
-
defineCustomElement$
|
|
226
|
+
defineCustomElement$d();
|
|
244
227
|
}
|
|
245
228
|
break;
|
|
246
229
|
case "justifi-card-billing-form-simple":
|
|
247
230
|
if (!customElements.get(tagName)) {
|
|
248
|
-
defineCustomElement$
|
|
231
|
+
defineCustomElement$c();
|
|
249
232
|
}
|
|
250
233
|
break;
|
|
251
234
|
case "justifi-card-form":
|
|
252
235
|
if (!customElements.get(tagName)) {
|
|
253
|
-
defineCustomElement$
|
|
236
|
+
defineCustomElement$b();
|
|
254
237
|
}
|
|
255
238
|
break;
|
|
256
239
|
case "justifi-checkout-summary":
|
|
257
240
|
if (!customElements.get(tagName)) {
|
|
258
|
-
defineCustomElement$
|
|
241
|
+
defineCustomElement$a();
|
|
259
242
|
}
|
|
260
243
|
break;
|
|
261
244
|
case "justifi-header":
|
|
262
245
|
if (!customElements.get(tagName)) {
|
|
263
|
-
defineCustomElement$
|
|
246
|
+
defineCustomElement$9();
|
|
264
247
|
}
|
|
265
248
|
break;
|
|
266
249
|
case "justifi-modular-checkout":
|
|
250
|
+
if (!customElements.get(tagName)) {
|
|
251
|
+
defineCustomElement$8();
|
|
252
|
+
}
|
|
253
|
+
break;
|
|
254
|
+
case "justifi-plaid-payment-method":
|
|
267
255
|
if (!customElements.get(tagName)) {
|
|
268
256
|
defineCustomElement$7();
|
|
269
257
|
}
|
|
@@ -15,7 +15,7 @@ import './dinero.js';
|
|
|
15
15
|
import './Pagination.js';
|
|
16
16
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
17
17
|
import { T as TerminalService } from './terminal.service.js';
|
|
18
|
-
import {
|
|
18
|
+
import { n as formatPhoneNumber } from './utils2.js';
|
|
19
19
|
import { d as defineCustomElement$4 } from './custom-popper2.js';
|
|
20
20
|
import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
|
|
21
21
|
import { d as defineCustomElement$2 } from './terminal-quantity-selector2.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface JustifiPlaidPaymentMethod extends Components.JustifiPlaidPaymentMethod, HTMLElement {}
|
|
4
|
+
export const JustifiPlaidPaymentMethod: {
|
|
5
|
+
prototype: JustifiPlaidPaymentMethod;
|
|
6
|
+
new (): JustifiPlaidPaymentMethod;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { P as PlaidPaymentMethod, d as defineCustomElement$1 } from './plaid-payment-method.js';
|
|
2
|
+
|
|
3
|
+
const JustifiPlaidPaymentMethod = PlaidPaymentMethod;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { JustifiPlaidPaymentMethod, defineCustomElement };
|
|
@@ -17,12 +17,12 @@ const JustifiRadioListItem = /*@__PURE__*/ proxyCustomElement(class JustifiRadio
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(StyledHost, { key: '
|
|
20
|
+
return (h(StyledHost, { key: '1ae40f787970160e38b72f917bda96f480d2a890' }, h("div", { key: '2130596c8294cc38365e6126806735da0f93ef4a', class: `radio-list-item p-3 ${this.class || ''}`, part: radioListItem, onClick: this.handleClick, hidden: this.hidden }, h("form-control-radio", { key: '7d5524f518430f2bfd1c9863f354318929353cfb', name: this.name, value: this.value, checked: this.checked, label: this.label, inputHandler: () => null }))));
|
|
21
21
|
}
|
|
22
22
|
}, [257, "justifi-radio-list-item", {
|
|
23
23
|
"name": [1],
|
|
24
24
|
"value": [1],
|
|
25
|
-
"label": [
|
|
25
|
+
"label": [8],
|
|
26
26
|
"checked": [4],
|
|
27
27
|
"hidden": [4],
|
|
28
28
|
"class": [1]
|
|
@@ -6,7 +6,7 @@ import './Business.js';
|
|
|
6
6
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
7
7
|
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
8
8
|
import { c as checkoutStore } from './checkout.store.js';
|
|
9
|
-
import { p as processHTML, c as formatCurrency, r as removeAttribute,
|
|
9
|
+
import { p as processHTML, c as formatCurrency, r as removeAttribute, m as addAttribute } from './utils2.js';
|
|
10
10
|
import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors } from './insurance-state.js';
|
|
11
11
|
import { t as text, j as textDanger } from './parts.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host.js';
|
|
@@ -213,6 +213,10 @@ const SeasonInterruptionInsurance = /*@__PURE__*/ proxyCustomElement(class Seaso
|
|
|
213
213
|
}
|
|
214
214
|
render() {
|
|
215
215
|
var _a, _b, _c, _d;
|
|
216
|
+
if (checkoutStore && checkoutStore.insuranceEnabled === false) {
|
|
217
|
+
console.warn('[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false).');
|
|
218
|
+
return null;
|
|
219
|
+
}
|
|
216
220
|
if (this.isLoading)
|
|
217
221
|
return (h(StyledHost, null, h(SeasonInterruptionInsuranceLoading, null)));
|
|
218
222
|
return (h(StyledHost, null, h("div", null, h(Header2, { text: (_a = this.quote) === null || _a === void 0 ? void 0 : _a.product.title, class: "fs-5 fw-bold pb-3" }), h("small", { part: text, innerHTML: (_b = this.quote) === null || _b === void 0 ? void 0 : _b.product.description }), h("form-control-radio", { label: `Accept coverage for ${formatCurrency((_c = this.quote) === null || _c === void 0 ? void 0 : _c.total_cents)}`, name: "opt-in", value: 'true', checked: this.accepted === 'true', inputHandler: this.onChangeHandler.bind(this),
|