@justifi/webcomponents 5.7.3-rc-01 → 5.7.3-rc-02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Checkout-BsYZoJ0a.js → Checkout-BTgAlgVL.js} +3 -3
- package/dist/cjs/{Refund-BDFOEJv_.js → Refund-BFE-2OxN.js} +56 -0
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +3 -4
- package/dist/cjs/{justifi-bank-account-form.cjs.entry.js → bank-account-form.cjs.entry.js} +8 -30
- package/dist/cjs/{business-additional-questions-schema-CHOaeZot.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
- package/dist/cjs/{business-identity-schema-DmpEndsx.js → business-identity-schema-Diqj_WVQ.js} +10 -10
- package/dist/cjs/{business.service-ev-3rHag.js → business.service-DNoCHqtI.js} +2 -3
- package/dist/cjs/{justifi-card-form.cjs.entry.js → card-form.cjs.entry.js} +9 -31
- package/dist/cjs/{Analytics-DYN4hp2b.js → check-pkg-version-CgQ8N_ta.js} +22 -23
- package/dist/cjs/{checkout.service-D4hTYr1i.js → checkout.service-C3R0uykH.js} +2 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -3
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper_2.cjs.entry.js} +0 -100
- package/dist/cjs/{dispute.service-Dru9NStj.js → dispute.service-CaA-mq-i.js} +2 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +105 -0
- package/dist/cjs/{get-payment-details-AOibpML7.js → get-payment-details-CnPsEZA8.js} +2 -3
- package/dist/cjs/{get-subaccounts-Dw7CbPDi.js → get-subaccounts-CgOAdXG4.js} +2 -3
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/{form-CWW8IM-X.js → index.esm-CVuJLXJZ.js} +10022 -10022
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +49 -23
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +9 -10
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +34 -34
- package/dist/cjs/justifi-bank-account-form_4.cjs.entry.js +234 -0
- package/dist/cjs/{justifi-billing-information-form.cjs.entry.js → justifi-billing-information-form_2.cjs.entry.js} +58 -6
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +13 -14
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
- package/dist/cjs/{justifi-modular-checkout.cjs.entry.js → justifi-checkout-summary_2.cjs.entry.js} +23 -11
- package/dist/cjs/justifi-checkout.cjs.entry.js +92 -48
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -9
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -8
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -8
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -7
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payment-method-options_3.cjs.entry.js +166 -0
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +8 -9
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +15 -16
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +32 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -8
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +6 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DF9mLjoQ.js → package-wSbEFwqE.js} +1 -1
- package/dist/cjs/{payment.service-rsnscZu7.js → payment.service-C-HKmIG6.js} +2 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -3
- package/dist/cjs/{payout.service-BnmI3X4n.js → payout.service-BHU3EPR2.js} +2 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +2 -3
- package/dist/cjs/{schema-validations-C0BNwMBi.js → schema-validations-BSeMee-o.js} +31 -54
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -4
- package/dist/cjs/{terminal-orders-table-OxMHSAJ1.js → terminal-orders-table-C3KZTeE5.js} +2 -3
- package/dist/cjs/{terminal.service--PPaq5xS.js → terminal.service-Bc1YJWi0.js} +2 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +2 -3
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +36 -8
- package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -47
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +2 -5
- package/dist/collection/components/checkout/checkout.js +102 -37
- package/dist/collection/components/checkout/new-payment-method.js +2 -2
- package/dist/collection/components/checkout/payment-method-options.js +37 -26
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -2
- package/dist/collection/components/modular-checkout/modular-checkout.js +2 -2
- package/dist/docs.json +177 -203
- package/dist/esm/{Checkout-CV6qgU0r.js → Checkout-CH19cJxH.js} +3 -3
- package/dist/esm/{Refund-CwUn_GFj.js → Refund-BKe90wSq.js} +55 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-D_Q0kAPD.js → badge-BoemLewg.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +5 -6
- package/dist/{module/bank-account-form2.js → esm/bank-account-form.entry.js} +12 -36
- package/dist/esm/{business-additional-questions-schema-0lssJqN7.js → business-additional-questions-schema-uQlQ8fXQ.js} +2 -2
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-Bel1K5mu.js → business-identity-schema-BsrgqgDl.js} +2 -2
- package/dist/esm/{business.service-BM8hLxHS.js → business.service-wY8gOZQr.js} +2 -3
- package/dist/esm/{button-BVAxQPpP.js → button-BcLzheaP.js} +1 -1
- package/dist/esm/{justifi-card-form.entry.js → card-form.entry.js} +12 -34
- package/dist/esm/{Analytics-DR277kvb.js → check-pkg-version-BmebRZ4u.js} +22 -23
- package/dist/esm/{checkout.service-CuCgG9hv.js → checkout.service-Ci9Zkxiz.js} +2 -3
- package/dist/esm/checkouts-list-core.entry.js +7 -8
- package/dist/esm/{checkouts-table-Cc6U-0md.js → checkouts-table-ub2cX2KR.js} +2 -2
- package/dist/esm/{custom-popper_4.entry.js → custom-popper_2.entry.js} +3 -101
- package/dist/esm/{dispute.service-rB4Hq6ot.js → dispute.service-D3IjL7Z8.js} +2 -3
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/{form-control-error-text-_SAT-ts2.js → form-control-error-text-C4vfc3el.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +2 -2
- package/dist/esm/{form-control-help-text-Cjeu_VrV.js → form-control-help-text-Dsr1zpTw.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +3 -3
- package/dist/esm/form-control-number-masked_2.entry.js +2 -2
- package/dist/esm/form-control-number.entry.js +3 -3
- package/dist/esm/form-control-radio.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +102 -0
- package/dist/esm/{get-payment-details-DtkGDTwo.js → get-payment-details-CmVKt1jR.js} +2 -3
- package/dist/esm/{get-subaccounts-C-ENQBmY.js → get-subaccounts-BRX7HFGO.js} +2 -3
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-5FIT-wD7.js → header-1-CmImLcLi.js} +1 -1
- package/dist/esm/{header-3-Ce9WLWBm.js → header-3-BMoxz2Hr.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +3 -3
- package/dist/esm/{form-BjGUIqxU.js → index.esm-BCNUj0Dx.js} +10022 -10022
- package/dist/esm/{insurance-state-BcwZy_5w.js → insurance-state-DMexHdvO.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +43 -17
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +6 -7
- package/dist/esm/justifi-additional-statement_8.entry.js +2 -2
- package/dist/esm/justifi-bank-account-form_4.entry.js +229 -0
- package/dist/esm/justifi-billing-information-form_2.entry.js +100 -0
- package/dist/esm/justifi-business-details.entry.js +7 -8
- package/dist/esm/justifi-business-form.entry.js +13 -14
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +7 -7
- package/dist/esm/{justifi-modular-checkout.entry.js → justifi-checkout-summary_2.entry.js} +22 -11
- package/dist/esm/justifi-checkout.entry.js +91 -47
- package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -4
- package/dist/esm/justifi-checkouts-list.entry.js +10 -11
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +5 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +8 -9
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -7
- package/dist/esm/justifi-new-payment-method.entry.js +97 -0
- package/dist/esm/justifi-order-terminals.entry.js +8 -9
- package/dist/esm/justifi-owner-form_3.entry.js +8 -9
- package/dist/esm/justifi-payment-details.entry.js +8 -9
- package/dist/esm/justifi-payment-method-options_3.entry.js +162 -0
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -9
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +9 -10
- package/dist/esm/justifi-payout-details.entry.js +7 -8
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -9
- package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +10 -11
- package/dist/esm/justifi-refund-payment.entry.js +10 -11
- package/dist/esm/justifi-saved-payment-method.entry.js +30 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +5 -5
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -6
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -4
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -8
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
- package/dist/esm/justifi-terminals-list.entry.js +9 -10
- package/dist/esm/justifi-tokenize-payment-method.entry.js +6 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CyXXks-Q.js → package-CJdXAC5R.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-_6eQgwfE.js → parts-C71Mxtso.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +5 -5
- package/dist/esm/{payment.service-DoUv1QsX.js → payment.service-ddFQWXPn.js} +2 -3
- package/dist/esm/payments-list-core.entry.js +8 -9
- package/dist/esm/{payments-status-BeL2gi3P.js → payments-status-DvsFQolO.js} +1 -1
- package/dist/esm/{payments-table-MrDAlH2o.js → payments-table-CCKeaI5x.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +6 -6
- package/dist/esm/{payout.service-B_Fm08zQ.js → payout.service-Ws4Pebcz.js} +2 -3
- package/dist/esm/payouts-list-core.entry.js +8 -9
- package/dist/esm/{payouts-status-BxbhUjA3.js → payouts-status-BkM4Gvme.js} +1 -1
- package/dist/esm/{payouts-table-HoX3UYIj.js → payouts-table-CqBOvPOo.js} +2 -2
- package/dist/esm/{schema-validations-DYV7urvw.js → schema-validations-DLWfpHyI.js} +2 -23
- package/dist/esm/{skeleton-CPNYhX-V.js → skeleton-BVM4XTj9.js} +1 -1
- package/dist/esm/{spinner-Cl-6YJPf.js → spinner-BsxFRVXW.js} +1 -1
- package/dist/esm/{table-RCk8zh4L.js → table-DxdC1lXb.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +7 -8
- package/dist/esm/{terminal-orders-table-DxHLNkx_.js → terminal-orders-table-DV7nRYuE.js} +4 -5
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-2VkdfNas.js → terminal.service-DH8gRG1H.js} +2 -3
- package/dist/esm/terminals-list-core.entry.js +7 -8
- package/dist/esm/{terminals-table-v-LOevYA.js → terminals-table-DUHel128.js} +2 -2
- package/dist/esm/{utils-1WrbuHVR.js → utils-B-aPFy3u.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +0 -1
- package/dist/module/Refund.js +55 -1
- package/dist/module/bank-account-document-inputs.js +1 -2
- package/dist/module/bank-account-form.js +83 -1
- package/dist/{esm/justifi-bank-account-form.entry.js → module/bank-account.js} +44 -27
- package/dist/module/billing-form.js +25 -19
- package/dist/{esm/justifi-billing-information-form.entry.js → module/billing-form2.js} +61 -19
- package/dist/module/business-bank-account-form-step-core.js +37 -11
- package/dist/module/business-bank-account-form-step.js +0 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -2
- package/dist/module/business.service.js +0 -1
- package/dist/module/button.js +1 -1
- package/dist/module/card-form.js +91 -1
- package/dist/module/card-form2.js +30 -15
- package/dist/module/checkout.service.js +0 -1
- package/dist/module/checkouts-list-core2.js +0 -1
- package/dist/module/dispute-response-actions.js +0 -1
- package/dist/module/form.js +1 -1
- package/dist/module/get-payment-details.js +0 -1
- package/dist/module/get-subaccounts.js +0 -1
- package/dist/module/header-3.js +8 -0
- package/dist/module/justifi-bank-account-form.js +1 -98
- package/dist/module/justifi-billing-information-form.js +1 -89
- package/dist/module/justifi-business-form.js +0 -1
- package/dist/module/justifi-card-form.js +1 -106
- package/dist/module/justifi-checkout-core.js +201 -1
- package/dist/module/justifi-checkout-summary.js +1 -32
- package/dist/module/justifi-checkout.js +104 -109
- package/dist/module/justifi-checkouts-list-filters.js +0 -1
- package/dist/module/justifi-checkouts-list.js +0 -1
- package/dist/module/justifi-gross-payment-chart.js +0 -1
- package/dist/module/justifi-modular-checkout.js +1 -214
- package/dist/module/justifi-new-payment-method.js +214 -1
- package/dist/module/justifi-order-terminals.js +2 -3
- package/dist/module/justifi-payment-provisioning.js +0 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -2
- package/dist/module/justifi-payments-list.js +0 -1
- package/dist/module/justifi-payout-details.js +0 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -2
- package/dist/module/justifi-payouts-list.js +0 -1
- package/dist/module/justifi-postal-code-form.js +1 -81
- package/dist/module/justifi-refund-payment.js +1 -2
- package/dist/module/justifi-saved-payment-method.js +57 -1
- package/dist/module/justifi-saved-payment-methods.js +1 -53
- package/dist/module/justifi-season-interruption-insurance.js +2 -4
- package/dist/module/justifi-sezzle-payment-method.js +1 -108
- package/dist/module/justifi-terminal-orders-list-filters.js +0 -1
- package/dist/module/justifi-terminal-orders-list.js +1 -2
- package/dist/module/justifi-terminals-list-filters.js +0 -1
- package/dist/module/justifi-terminals-list.js +1 -2
- package/dist/module/justifi-tokenize-payment-method.js +8 -75
- package/dist/module/modular-checkout.js +269 -0
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-method-options.js +27 -100
- package/dist/module/payment.service.js +0 -1
- package/dist/module/payments-list-core2.js +0 -1
- package/dist/module/payout.service.js +0 -1
- package/dist/module/payouts-list-core2.js +0 -1
- package/dist/module/postal-code-form.js +83 -0
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-methods.js +55 -0
- package/dist/module/schema-validations.js +2 -23
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/{esm/justifi-sezzle-payment-method.entry.js → module/sezzle-payment-method.js} +46 -14
- package/dist/module/summary.js +34 -0
- package/dist/module/terminal-orders-list-core2.js +0 -1
- package/dist/module/terminal.service.js +0 -1
- package/dist/module/terminals-list-core2.js +0 -1
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -7
- package/dist/types/components/checkout/checkout.d.ts +19 -9
- package/dist/types/components/checkout/payment-method-options.d.ts +2 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -1
- package/dist/types/components.d.ts +5 -1
- package/dist/webcomponents/p-07e8c50a.entry.js +1 -0
- package/dist/webcomponents/{p-be51c7c5.entry.js → p-0d038c74.entry.js} +1 -1
- package/dist/webcomponents/p-0d24f707.entry.js +1 -0
- package/dist/webcomponents/p-0f07e5d2.entry.js +1 -0
- package/dist/webcomponents/{p-ff223825.entry.js → p-114d2d7e.entry.js} +1 -1
- package/dist/webcomponents/p-16c567ac.entry.js +1 -0
- package/dist/webcomponents/{p-20d7db42.entry.js → p-1debe4fc.entry.js} +1 -1
- package/dist/webcomponents/p-1tXUo5Ef.js +1 -0
- package/dist/webcomponents/{p-ce291c6a.entry.js → p-20ac139f.entry.js} +1 -1
- package/dist/webcomponents/{p-b3e6d27c.entry.js → p-28190487.entry.js} +1 -1
- package/dist/webcomponents/p-30b1b0d4.entry.js +1 -0
- package/dist/webcomponents/{p-1d64d86b.entry.js → p-31b3575b.entry.js} +1 -1
- package/dist/webcomponents/p-32d41de6.entry.js +1 -0
- package/dist/webcomponents/p-3523e4d2.entry.js +1 -0
- package/dist/webcomponents/p-3c172b0a.entry.js +1 -0
- package/dist/webcomponents/{p-5ea3cfca.entry.js → p-498ef7fe.entry.js} +1 -1
- package/dist/webcomponents/p-4cdc323c.entry.js +1 -0
- package/dist/webcomponents/p-54487455.entry.js +1 -0
- package/dist/webcomponents/p-55b2ccd4.entry.js +1 -0
- package/dist/webcomponents/p-56368e10.entry.js +1 -0
- package/dist/webcomponents/{p-712220f9.entry.js → p-62308de3.entry.js} +1 -1
- package/dist/webcomponents/p-655e9c99.entry.js +1 -0
- package/dist/webcomponents/p-6ae0dad9.entry.js +1 -0
- package/dist/webcomponents/p-6ed72565.entry.js +1 -0
- package/dist/webcomponents/{p-8532c68c.entry.js → p-7982b38b.entry.js} +1 -1
- package/dist/webcomponents/p-7efbe6e6.entry.js +1 -0
- package/dist/webcomponents/p-803b249d.entry.js +1 -0
- package/dist/webcomponents/p-819c5da9.entry.js +1 -0
- package/dist/webcomponents/p-85b73bd5.entry.js +1 -0
- package/dist/webcomponents/p-8a2d963a.entry.js +1 -0
- package/dist/webcomponents/p-90521984.entry.js +1 -0
- package/dist/webcomponents/p-93564eb7.entry.js +1 -0
- package/dist/webcomponents/p-95aada97.entry.js +1 -0
- package/dist/webcomponents/{p-df2ad580.entry.js → p-9a4b9734.entry.js} +1 -1
- package/dist/webcomponents/{p-BSUCBhkJ.js → p-B1jCcGW-.js} +1 -1
- package/dist/webcomponents/{p-CwHYDF33.js → p-BRvTM0jE.js} +1 -1
- package/dist/webcomponents/p-BZAglFez.js +1 -0
- package/dist/webcomponents/p-BdTK0wi9.js +1 -0
- package/dist/webcomponents/p-BeOlrj_S.js +1 -0
- package/dist/webcomponents/p-BjIcn6FF.js +1 -0
- package/dist/webcomponents/{p-B7VsiIW-.js → p-BvkP2v3x.js} +1 -1
- package/dist/webcomponents/{p-_6eQgwfE.js → p-C71Mxtso.js} +1 -1
- package/dist/webcomponents/{p-Ctw40vkk.js → p-C8EG4ZSX.js} +1 -1
- package/dist/webcomponents/p-C8rAwXW9.js +1 -0
- package/dist/webcomponents/p-CA9D3qnA.js +1 -0
- package/dist/webcomponents/p-CFpYbRwn.js +1 -0
- package/dist/webcomponents/p-CGCMYhyV.js +1 -0
- package/dist/webcomponents/p-CJdXAC5R.js +1 -0
- package/dist/webcomponents/p-CO90ONTY.js +1 -0
- package/dist/webcomponents/{p-Dw6NWKHn.js → p-Cl-Q3cHB.js} +1 -1
- package/dist/webcomponents/p-DFPGAF4g.js +1 -0
- package/dist/webcomponents/p-DHP6oxsO.js +1 -0
- package/dist/webcomponents/{p-D3SYNGyb.js → p-DLr6u3Be.js} +1 -1
- package/dist/webcomponents/p-DT6jDcoi.js +1 -0
- package/dist/webcomponents/p-DVnVdicA.js +1 -0
- package/dist/webcomponents/p-DX1Drndq.js +1 -0
- package/dist/webcomponents/p-Db-JSm6-.js +1 -0
- package/dist/webcomponents/p-Dc10zfEZ.js +1 -0
- package/dist/webcomponents/p-Dw516k9e.js +1 -0
- package/dist/webcomponents/p-DwxSNAz7.js +1 -0
- package/dist/webcomponents/{p-CnnRWu7z.js → p-Fa3dQnb9.js} +1 -1
- package/dist/webcomponents/p-IrS5pxMU.js +1 -0
- package/dist/webcomponents/p-JOSiCHl7.js +1 -0
- package/dist/webcomponents/p-RadC5UjV.js +1 -0
- package/dist/webcomponents/p-SuXHDcwL.js +1 -0
- package/dist/webcomponents/p-_P2I6GdZ.js +1 -0
- package/dist/webcomponents/p-a3245777.entry.js +1 -0
- package/dist/webcomponents/{p-f7e24a51.entry.js → p-a8f1165e.entry.js} +1 -1
- package/dist/webcomponents/p-abcde13f.entry.js +1 -0
- package/dist/webcomponents/{p-e563df65.entry.js → p-b0c7f45a.entry.js} +1 -1
- package/dist/webcomponents/p-b122d960.entry.js +1 -0
- package/dist/webcomponents/{p-f71b1ff0.entry.js → p-badf50e2.entry.js} +1 -1
- package/dist/webcomponents/p-be676a47.entry.js +1 -0
- package/dist/webcomponents/p-bf9afbe6.entry.js +1 -0
- package/dist/webcomponents/p-c1dabcc9.entry.js +20 -0
- package/dist/webcomponents/p-c4989fc1.entry.js +1 -0
- package/dist/webcomponents/p-c6f6cca0.entry.js +1 -0
- package/dist/webcomponents/{p-d82b509a.entry.js → p-cbfb26e2.entry.js} +1 -1
- package/dist/webcomponents/p-cc26a8fa.entry.js +1 -0
- package/dist/webcomponents/p-cc5dfa3d.entry.js +1 -0
- package/dist/webcomponents/{p-ef9dcfe1.entry.js → p-cc7d0b8c.entry.js} +1 -1
- package/dist/webcomponents/p-d039c1ea.entry.js +1 -0
- package/dist/webcomponents/p-d5f95784.entry.js +1 -0
- package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
- package/dist/webcomponents/p-dad85acd.entry.js +1 -0
- package/dist/webcomponents/{p-3edd5ebd.entry.js → p-db13afe8.entry.js} +1 -1
- package/dist/webcomponents/{p-9a17fd5a.entry.js → p-dd5c8738.entry.js} +1 -1
- package/dist/webcomponents/{p-6b229318.entry.js → p-e2ac6f48.entry.js} +1 -1
- package/dist/webcomponents/{p-1ac365b4.entry.js → p-e2adbafd.entry.js} +1 -1
- package/dist/webcomponents/p-ea883d7c.entry.js +1 -0
- package/dist/webcomponents/{p-15c63931.entry.js → p-ed8eb110.entry.js} +1 -1
- package/dist/webcomponents/{p-e8294f7e.entry.js → p-f0a849be.entry.js} +1 -1
- package/dist/webcomponents/p-f165c5fc.entry.js +1 -0
- package/dist/webcomponents/p-f1dcc9c2.entry.js +1 -0
- package/dist/webcomponents/p-f21e1351.entry.js +1 -0
- package/dist/webcomponents/p-f2d283e5.entry.js +1 -0
- package/dist/webcomponents/p-f55f054a.entry.js +1 -0
- package/dist/webcomponents/p-f7ae2df8.entry.js +1 -0
- package/dist/webcomponents/p-f7ef66ba.entry.js +1 -0
- package/dist/webcomponents/p-f8750427.entry.js +1 -0
- package/dist/webcomponents/p-fa781ff0.entry.js +1 -0
- package/dist/webcomponents/p-fe5b7b4c.entry.js +1 -0
- package/dist/webcomponents/{p-CqVelcDt.js → p-kfHhaHAJ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Document-rXGBUaOh.js +0 -58
- package/dist/cjs/bank-account-form_7.cjs.entry.js +0 -411
- package/dist/cjs/billing-form-schema-oZ4GROWP.js +0 -26
- package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -50
- package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +0 -31
- package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +0 -80
- package/dist/esm/Document-Ct-uNz2r.js +0 -55
- package/dist/esm/bank-account-form_7.entry.js +0 -403
- package/dist/esm/billing-form-schema-PFvYpvy4.js +0 -24
- package/dist/esm/justifi-checkout-summary.entry.js +0 -19
- package/dist/esm/justifi-postal-code-form.entry.js +0 -48
- package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
- package/dist/module/Document.js +0 -55
- package/dist/module/checkout-actions.js +0 -58
- package/dist/module/checkout-core.js +0 -268
- package/dist/module/new-payment-method.js +0 -204
- package/dist/module/saved-payment-method.js +0 -59
- package/dist/webcomponents/p-00900e52.entry.js +0 -1
- package/dist/webcomponents/p-025ae692.entry.js +0 -1
- package/dist/webcomponents/p-02e26641.entry.js +0 -1
- package/dist/webcomponents/p-04c91ec1.entry.js +0 -1
- package/dist/webcomponents/p-0d5e93b3.entry.js +0 -1
- package/dist/webcomponents/p-19b5f93a.entry.js +0 -1
- package/dist/webcomponents/p-25b310f0.entry.js +0 -1
- package/dist/webcomponents/p-271b131d.entry.js +0 -1
- package/dist/webcomponents/p-2882b4e9.entry.js +0 -1
- package/dist/webcomponents/p-2a08ba01.entry.js +0 -1
- package/dist/webcomponents/p-2f027626.entry.js +0 -1
- package/dist/webcomponents/p-2fa36c0e.entry.js +0 -1
- package/dist/webcomponents/p-379584fb.entry.js +0 -1
- package/dist/webcomponents/p-39f31e23.entry.js +0 -1
- package/dist/webcomponents/p-3b6888c5.entry.js +0 -1
- package/dist/webcomponents/p-3d62f9a5.entry.js +0 -1
- package/dist/webcomponents/p-4232760b.entry.js +0 -1
- package/dist/webcomponents/p-4be4f7b4.entry.js +0 -1
- package/dist/webcomponents/p-531738ae.entry.js +0 -1
- package/dist/webcomponents/p-54019e68.entry.js +0 -1
- package/dist/webcomponents/p-584ba20d.entry.js +0 -1
- package/dist/webcomponents/p-5bc6f1e6.entry.js +0 -20
- package/dist/webcomponents/p-5bfbb0f8.entry.js +0 -1
- package/dist/webcomponents/p-5da3ba38.entry.js +0 -1
- package/dist/webcomponents/p-5f9dbaff.entry.js +0 -1
- package/dist/webcomponents/p-6fc1ace5.entry.js +0 -1
- package/dist/webcomponents/p-716d41f2.entry.js +0 -1
- package/dist/webcomponents/p-7253f1ea.entry.js +0 -1
- package/dist/webcomponents/p-80b662de.entry.js +0 -1
- package/dist/webcomponents/p-82164a5e.entry.js +0 -1
- package/dist/webcomponents/p-8590c5df.entry.js +0 -1
- package/dist/webcomponents/p-8e555a6e.entry.js +0 -1
- package/dist/webcomponents/p-96f89c69.entry.js +0 -1
- package/dist/webcomponents/p-98a39544.entry.js +0 -1
- package/dist/webcomponents/p-9a9f9c57.entry.js +0 -1
- package/dist/webcomponents/p-B4MIwTdb.js +0 -1
- package/dist/webcomponents/p-B8Ovjy6S.js +0 -1
- package/dist/webcomponents/p-BE5Nvydk.js +0 -1
- package/dist/webcomponents/p-BGHVK-vQ.js +0 -1
- package/dist/webcomponents/p-BPCw4WEY.js +0 -1
- package/dist/webcomponents/p-BhLPwu1L.js +0 -1
- package/dist/webcomponents/p-Bond4qGX.js +0 -1
- package/dist/webcomponents/p-BpEw7AJl.js +0 -1
- package/dist/webcomponents/p-C-WgCIei.js +0 -1
- package/dist/webcomponents/p-CCpqJxzB.js +0 -1
- package/dist/webcomponents/p-CLpgfEbx.js +0 -1
- package/dist/webcomponents/p-CRYPNa2o.js +0 -1
- package/dist/webcomponents/p-CeNlJX4-.js +0 -1
- package/dist/webcomponents/p-Ct-uNz2r.js +0 -1
- package/dist/webcomponents/p-CvChBLtI.js +0 -1
- package/dist/webcomponents/p-CyXXks-Q.js +0 -1
- package/dist/webcomponents/p-Czro_9VO.js +0 -1
- package/dist/webcomponents/p-D7js9xfx.js +0 -1
- package/dist/webcomponents/p-DOB09NZD.js +0 -1
- package/dist/webcomponents/p-DUdzWNqB.js +0 -1
- package/dist/webcomponents/p-DaS3t0DL.js +0 -1
- package/dist/webcomponents/p-Dge4w7_c.js +0 -1
- package/dist/webcomponents/p-DkWBoLsd.js +0 -1
- package/dist/webcomponents/p-DknV-QPT.js +0 -1
- package/dist/webcomponents/p-DuiQuWNq.js +0 -1
- package/dist/webcomponents/p-DzPrenCi.js +0 -1
- package/dist/webcomponents/p-YDuIVoos.js +0 -1
- package/dist/webcomponents/p-a2db11b5.entry.js +0 -1
- package/dist/webcomponents/p-a31913e3.entry.js +0 -1
- package/dist/webcomponents/p-a4d457e9.entry.js +0 -1
- package/dist/webcomponents/p-b8ee41c1.entry.js +0 -1
- package/dist/webcomponents/p-bde749ac.entry.js +0 -1
- package/dist/webcomponents/p-bf16b11c.entry.js +0 -1
- package/dist/webcomponents/p-d9b06582.entry.js +0 -1
- package/dist/webcomponents/p-dbc02ba8.entry.js +0 -1
- package/dist/webcomponents/p-dcad0df5.entry.js +0 -1
- package/dist/webcomponents/p-e03630ec.entry.js +0 -1
- package/dist/webcomponents/p-e07sVz4Z.js +0 -1
- package/dist/webcomponents/p-ec9bb3f6.entry.js +0 -1
- package/dist/webcomponents/p-ecf6a315.entry.js +0 -1
|
@@ -1,411 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-2GwnTbNA.js');
|
|
4
|
-
var skeleton = require('./skeleton-ByLavxr1.js');
|
|
5
|
-
var configState = require('./config-state-BTfJl-LU.js');
|
|
6
|
-
var form = require('./form-CWW8IM-X.js');
|
|
7
|
-
var schemaValidations = require('./schema-validations-C0BNwMBi.js');
|
|
8
|
-
var parts = require('./parts-9jMf1erK.js');
|
|
9
|
-
var header3 = require('./header-3-DxUQJ7TT.js');
|
|
10
|
-
require('./event-types-YOY5TKUN.js');
|
|
11
|
-
var utils = require('./utils-DAyWinG2.js');
|
|
12
|
-
var stateOptions = require('./state-options-CIT9xdTz.js');
|
|
13
|
-
var Payment = require('./Payment-D5UynU2f.js');
|
|
14
|
-
var paymentMethodOptionUtils = require('./payment-method-option-utils-imuSE7KV.js');
|
|
15
|
-
require('./index-DEMVrrsF.js');
|
|
16
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
17
|
-
require('./business-form-options-CMII7nIK.js');
|
|
18
|
-
require('./Business-DCRzZf0w.js');
|
|
19
|
-
require('./helpers-B5OCqlIM.js');
|
|
20
|
-
require('./Document-rXGBUaOh.js');
|
|
21
|
-
require('./utils-qOon0GWm.js');
|
|
22
|
-
require('./Dispute-CruQTF6_.js');
|
|
23
|
-
|
|
24
|
-
const BankAccountFormSkeleton = (props) => {
|
|
25
|
-
const { isReady } = props;
|
|
26
|
-
if (isReady) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
return (index.h("div", { class: "container-fluid p-0" },
|
|
30
|
-
index.h("div", { class: "row mb-3" },
|
|
31
|
-
index.h("div", { class: "col-12 align-content-end" },
|
|
32
|
-
index.h(skeleton.Skeleton, { height: "18px", width: "120px" }),
|
|
33
|
-
index.h(skeleton.Skeleton, { height: "36px" }))),
|
|
34
|
-
index.h("div", { class: "row" },
|
|
35
|
-
index.h("div", { class: "col-12 align-content-end" },
|
|
36
|
-
index.h(skeleton.Skeleton, { height: "18px", width: "110px" }),
|
|
37
|
-
index.h(skeleton.Skeleton, { height: "36px" })))));
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const BankAccountForm = class {
|
|
41
|
-
constructor(hostRef) {
|
|
42
|
-
index.registerInstance(this, hostRef);
|
|
43
|
-
this.isReady = false;
|
|
44
|
-
}
|
|
45
|
-
async componentWillLoad() {
|
|
46
|
-
await configState.waitForConfig();
|
|
47
|
-
this.iframeOrigin = configState.configState.iframeOrigin;
|
|
48
|
-
}
|
|
49
|
-
componentDidRender() {
|
|
50
|
-
const elements = [
|
|
51
|
-
this.accountNumberIframeElement,
|
|
52
|
-
this.routingNumberIframeElement,
|
|
53
|
-
];
|
|
54
|
-
Promise.all(elements.map((element) => {
|
|
55
|
-
return new Promise((resolve) => {
|
|
56
|
-
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
57
|
-
});
|
|
58
|
-
})).then(() => {
|
|
59
|
-
this.isReady = true;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
async validate() {
|
|
63
|
-
const accountNumberIsValid = await this.accountNumberIframeElement.validate();
|
|
64
|
-
const routingNumberIsValid = await this.routingNumberIframeElement.validate();
|
|
65
|
-
return accountNumberIsValid && routingNumberIsValid;
|
|
66
|
-
}
|
|
67
|
-
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
68
|
-
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
69
|
-
}
|
|
70
|
-
render() {
|
|
71
|
-
return (index.h(index.Host, { key: 'cdddf967e7142731f3b5aef31bfc3d004ce97733' }, index.h(BankAccountFormSkeleton, { key: '5eafa58bd31bbbd5ff5ca90a036fc696f7bd05fb', isReady: this.isReady }), index.h("div", { key: 'c8486e0337df9a61bd1979014f3de53eef22b071', class: "container-fluid p-0", style: {
|
|
72
|
-
opacity: this.isReady ? '1' : '0',
|
|
73
|
-
height: this.isReady ? 'auto' : '0',
|
|
74
|
-
} }, index.h("div", { key: '3db2146e4d770c024efab6e777dbfa4ace26f23a', class: "row mb-3" }, index.h("iframe-input", { key: '5f9da4873119c1a1e771c7663b98e283766a37a1', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), index.h("div", { key: '7ed20c940afd5ffc4348e4102a4cfd351d8e2198', class: "row" }, index.h("iframe-input", { key: '0667de245764f1d9181682beb674c4a376447a68', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
const CardFormSkeleton = (props) => {
|
|
79
|
-
const { isReady } = props;
|
|
80
|
-
if (isReady) {
|
|
81
|
-
return null;
|
|
82
|
-
}
|
|
83
|
-
return (index.h("div", { class: "container-fluid p-0" },
|
|
84
|
-
index.h("div", { class: "mb-3" },
|
|
85
|
-
index.h(skeleton.Skeleton, { height: "18px", width: "100px" }),
|
|
86
|
-
index.h(skeleton.Skeleton, { height: "36px" })),
|
|
87
|
-
index.h("div", { class: "row" },
|
|
88
|
-
index.h("div", { class: "col-4 align-content-end" },
|
|
89
|
-
index.h(skeleton.Skeleton, { height: "18px", width: "80px" }),
|
|
90
|
-
index.h(skeleton.Skeleton, { height: "36px" })),
|
|
91
|
-
index.h("div", { class: "col-4 align-content-end" },
|
|
92
|
-
index.h(skeleton.Skeleton, { height: "36px" })),
|
|
93
|
-
index.h("div", { class: "col-4 align-content-end" },
|
|
94
|
-
index.h(skeleton.Skeleton, { height: "18px", width: "30px" }),
|
|
95
|
-
index.h(skeleton.Skeleton, { height: "36px" })))));
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
const CardForm = class {
|
|
99
|
-
constructor(hostRef) {
|
|
100
|
-
index.registerInstance(this, hostRef);
|
|
101
|
-
this.isReady = false;
|
|
102
|
-
}
|
|
103
|
-
async componentWillLoad() {
|
|
104
|
-
await configState.waitForConfig();
|
|
105
|
-
this.iframeOrigin = configState.configState.iframeOrigin;
|
|
106
|
-
}
|
|
107
|
-
componentDidRender() {
|
|
108
|
-
const elements = [
|
|
109
|
-
this.cardNumberIframeElement,
|
|
110
|
-
this.expirationMonthIframeElement,
|
|
111
|
-
this.expirationYearIframeElement,
|
|
112
|
-
this.cvvIframeElement,
|
|
113
|
-
];
|
|
114
|
-
Promise.all(elements.map((element) => {
|
|
115
|
-
return new Promise((resolve) => {
|
|
116
|
-
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
117
|
-
});
|
|
118
|
-
})).then(() => {
|
|
119
|
-
this.isReady = true;
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
async validate() {
|
|
123
|
-
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
124
|
-
const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
|
|
125
|
-
const expirationYearIsValid = await this.expirationYearIframeElement.validate();
|
|
126
|
-
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
127
|
-
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
128
|
-
}
|
|
129
|
-
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
130
|
-
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
131
|
-
}
|
|
132
|
-
render() {
|
|
133
|
-
return (index.h(index.Host, { key: 'c43351c7ab1eb6bf413f162634f55007798bb076' }, index.h(CardFormSkeleton, { key: 'f0a29497de2270108868e892d666b552dea27a1e', isReady: this.isReady }), index.h("div", { key: '2734b111c1f2f2275435d2141445ac30482946be', class: "container-fluid p-0", style: {
|
|
134
|
-
opacity: this.isReady ? '1' : '0',
|
|
135
|
-
height: this.isReady ? 'auto' : '0',
|
|
136
|
-
} }, index.h("div", { key: '036c359caaf8fc36fa6ba56bbcad5d01de1fe9c9', class: "mb-3" }, index.h("iframe-input", { key: '9baf7dc76ff18f8dee6e6cd08b93e1ba155d5cf2', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), index.h("div", { key: 'cd54e4a30da50cfe5151b557fe1d92ebb483ad7e', class: "row" }, index.h("div", { key: '6b3e84079d606a6ffd5580deae0d6e4563d4c7ef', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '9ea2ad1c93ca90bbb4bc7a4c83a72e8f4cc9da61', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), index.h("div", { key: '9478f77f64decfcdfd77f888d54cb37f46ad8ab7', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '43191d41eb743e0c509236ea316c1afb180b8fbb', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), index.h("div", { key: '65599647fc750e6c62fb2866190ffa87689d8a5b', class: "col-4 align-content-end" }, index.h("iframe-input", { key: 'df367f3143aaff25ba9147698090ccbcea902cbf', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const billingFormSchema = (postalOnly) => {
|
|
141
|
-
const fullBillingForm = form.create$3({
|
|
142
|
-
name: schemaValidations.identityNameValidation.required('Enter full name'),
|
|
143
|
-
address_line1: schemaValidations.lineOneValidation.required('Enter street address'),
|
|
144
|
-
address_line2: schemaValidations.lineTwoValidation.nullable(),
|
|
145
|
-
address_city: schemaValidations.cityValidation.required('Enter city'),
|
|
146
|
-
address_state: schemaValidations.stateValidation.required('Select state'),
|
|
147
|
-
address_postal_code: schemaValidations.postalValidation.required('Enter postal code')
|
|
148
|
-
});
|
|
149
|
-
const postalForm = form.create$3({
|
|
150
|
-
name: schemaValidations.identityNameValidation.nullable(),
|
|
151
|
-
address_line1: schemaValidations.lineOneValidation.nullable(),
|
|
152
|
-
address_line2: schemaValidations.lineTwoValidation.nullable(),
|
|
153
|
-
address_city: schemaValidations.cityValidation.nullable(),
|
|
154
|
-
address_state: schemaValidations.stateValidation.nullable(),
|
|
155
|
-
address_postal_code: schemaValidations.postalValidation.required('Enter postal code')
|
|
156
|
-
});
|
|
157
|
-
return postalOnly ? postalForm : fullBillingForm;
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
const BillingForm = class {
|
|
161
|
-
constructor(hostRef) {
|
|
162
|
-
index.registerInstance(this, hostRef);
|
|
163
|
-
this.errors = {};
|
|
164
|
-
this.inputHandler = (name, value) => {
|
|
165
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
componentWillLoad() {
|
|
169
|
-
const postalOnly = this.isPostalOnlyMode;
|
|
170
|
-
this.formController = new form.FormController(billingFormSchema(postalOnly));
|
|
171
|
-
}
|
|
172
|
-
componentDidLoad() {
|
|
173
|
-
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
174
|
-
this.formController.errors.subscribe(errors => {
|
|
175
|
-
this.errors = Object.assign({}, errors);
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
get isPostalOnlyMode() {
|
|
179
|
-
return this.paymentMethodType === 'card' && this.hideCardBillingForm;
|
|
180
|
-
}
|
|
181
|
-
get hideAllBillingFields() {
|
|
182
|
-
return this.paymentMethodType === 'bankAccount' && this.hideBankAccountBillingForm;
|
|
183
|
-
}
|
|
184
|
-
async getValues() {
|
|
185
|
-
return this.formController.values.getValue();
|
|
186
|
-
}
|
|
187
|
-
async fill(fields) {
|
|
188
|
-
this.formController.setInitialValues(fields);
|
|
189
|
-
}
|
|
190
|
-
async validate() {
|
|
191
|
-
const isValid = await this.formController.validate();
|
|
192
|
-
const errors = this.formController.errors.getValue();
|
|
193
|
-
return { isValid, errors };
|
|
194
|
-
}
|
|
195
|
-
render() {
|
|
196
|
-
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
197
|
-
const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
|
|
198
|
-
return (index.h(index.Host, { key: 'ffffb2d8a4571222645d3c47eb1e2286b8597140' }, index.h("div", { key: '69b4f6c623cacbf32a30a9b9f23c3de427835c25', part: parts.billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && index.h(header3.Header3, { key: '96c0781a9b3dd7c5ef0b75ac8667664fee0bd95e', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), index.h("form", { key: '97380a90146a9732594f1c356fab952089280f99' }, index.h("fieldset", { key: 'fd8bbea485c10633f1d8cca62b222a8abb0d022f' }, this.legend && index.h("legend", { key: '8febee534a2d055093309e8f8f06078b0b35f4e4' }, this.legend), index.h("div", { key: '16ac8abe899cdb964d83322fa74cb00f737ab338', class: "row gy-3" }, index.h("div", { key: '866f73c45b807aeeea4e6addf4de5f2d3a1a232d', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-text", { key: '1734b2aac3eb0508f9ae2e4bf41836fc5dd71cad', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), index.h("div", { key: '569c0dc60b47d3e9077af401b720d7777c903bde', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-text", { key: '74406a7f4efde53a41141a218d246408c4807fc8', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), index.h("div", { key: 'a7f3b7f137b0dd6a92cce6999ef65f13bcff4a31', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-text", { key: '8b6d28170c44af6b7701499a8a4626749d4cd36d', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), index.h("div", { key: '3a9031a0ddbea7e1020c420cdd6811ea9c86b9e4', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-text", { key: '730b395bb97c349a63f669669830cbce6ba86f83', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), index.h("div", { key: '7998420d30b1957a086303862f7200f20541ead2', class: "col-12", hidden: this.isPostalOnlyMode }, index.h("form-control-select", { key: 'b94b623a26891646957f25e59cb03038a989eabf', name: 'address_state', label: 'State', options: stateOptions.StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), index.h("div", { key: '7b0d6eae7eb90f4b33b3e73f920b6ea25920f809', class: "col-12", hidden: this.hideAllBillingFields }, index.h("form-control-text", { key: '703e429c7999f5cc143c5648bd9fbdc4f5bb6ee9', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: utils.numberOnlyHandler }))))))));
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
const PaymentMethodTypeLabels = {
|
|
203
|
-
bankAccount: 'New bank account',
|
|
204
|
-
card: 'New credit or debit card',
|
|
205
|
-
};
|
|
206
|
-
const NewPaymentMethod = class {
|
|
207
|
-
constructor(hostRef) {
|
|
208
|
-
index.registerInstance(this, hostRef);
|
|
209
|
-
this.paymentMethodOptionSelected = index.createEvent(this, "paymentMethodOptionSelected");
|
|
210
|
-
this.saveNewPaymentMethodChecked = false;
|
|
211
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
212
|
-
e.preventDefault();
|
|
213
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
handleCheckboxChanged(event) {
|
|
217
|
-
this.saveNewPaymentMethodChecked = event.detail;
|
|
218
|
-
}
|
|
219
|
-
async fillBillingForm(fields) {
|
|
220
|
-
this.billingFormRef.fill(fields);
|
|
221
|
-
}
|
|
222
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
223
|
-
var _a, _b;
|
|
224
|
-
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
225
|
-
return;
|
|
226
|
-
try {
|
|
227
|
-
const { isValid, errors } = await this.validate();
|
|
228
|
-
if (!isValid || !insuranceValidation.isValid) {
|
|
229
|
-
// get propety value from first property in errors object
|
|
230
|
-
const message = `${Object.values(errors)[0] || 'Validation error'}`;
|
|
231
|
-
return {
|
|
232
|
-
validationError: true,
|
|
233
|
-
error: {
|
|
234
|
-
code: 'validation_error',
|
|
235
|
-
message,
|
|
236
|
-
decline_code: undefined
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
const tokenizeResponse = await this.tokenize();
|
|
241
|
-
if (tokenizeResponse.error) {
|
|
242
|
-
return { error: tokenizeResponse.error };
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
const tokenizeRessponseData = tokenizeResponse.data;
|
|
246
|
-
return {
|
|
247
|
-
token: ((_a = tokenizeRessponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeRessponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
|
|
248
|
-
data: tokenizeRessponseData
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
catch (error) {
|
|
253
|
-
return { error };
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
async validate() {
|
|
257
|
-
const billingFormValidation = await this.billingFormRef.validate();
|
|
258
|
-
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
259
|
-
const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
|
|
260
|
-
const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
|
|
261
|
-
return { isValid, errors };
|
|
262
|
-
}
|
|
263
|
-
async tokenize() {
|
|
264
|
-
try {
|
|
265
|
-
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
266
|
-
let paymentMethodData;
|
|
267
|
-
if (this.saveNewPaymentMethodChecked) {
|
|
268
|
-
paymentMethodData = Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupId });
|
|
269
|
-
}
|
|
270
|
-
else {
|
|
271
|
-
paymentMethodData = Object.assign({}, billingFormFieldValues);
|
|
272
|
-
}
|
|
273
|
-
const clientId = this.authToken;
|
|
274
|
-
const tokenizeResponse = await this.paymentMethodFormRef.tokenize(clientId, paymentMethodData, this.accountId);
|
|
275
|
-
return tokenizeResponse;
|
|
276
|
-
}
|
|
277
|
-
catch (error) {
|
|
278
|
-
return error;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
showNewPaymentMethodForm() {
|
|
282
|
-
var _a;
|
|
283
|
-
const paymentMethodType = (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id;
|
|
284
|
-
return (index.h("div", { class: "mt-4 pb-4" }, index.h("hidden-input", null), paymentMethodType === 'card' ? (index.h("card-form", { ref: (el) => this.paymentMethodFormRef = el })) : (index.h("bank-account-form", { ref: (el) => this.paymentMethodFormRef = el })), index.h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodType }), index.h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
|
|
285
|
-
}
|
|
286
|
-
get hiddenRadioInput() {
|
|
287
|
-
return !this.showAch || !this.showCard;
|
|
288
|
-
}
|
|
289
|
-
render() {
|
|
290
|
-
var _a, _b;
|
|
291
|
-
return (index.h(index.Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, index.h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, index.h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
const PaymentMethodOptions = class {
|
|
296
|
-
constructor(hostRef) {
|
|
297
|
-
index.registerInstance(this, hostRef);
|
|
298
|
-
this.savedPaymentMethods = [];
|
|
299
|
-
this.paymentMethodOptions = [];
|
|
300
|
-
}
|
|
301
|
-
async fillBillingForm(fields) {
|
|
302
|
-
const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
|
|
303
|
-
if (newPaymentMethodElement.fillBillingForm) {
|
|
304
|
-
newPaymentMethodElement.fillBillingForm(fields);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
connectedCallback() {
|
|
308
|
-
this.paymentMethodsChanged();
|
|
309
|
-
}
|
|
310
|
-
paymentMethodsChanged() {
|
|
311
|
-
var _a;
|
|
312
|
-
this.paymentMethodOptions = this.savedPaymentMethods
|
|
313
|
-
.map((paymentMethod) => new paymentMethodOptionUtils.PaymentMethodOption(paymentMethod))
|
|
314
|
-
.filter((paymentMethod) => {
|
|
315
|
-
// Don't saved card or bank account if they are disabled
|
|
316
|
-
return ((this.showCard || paymentMethod.type !== Payment.PaymentMethodTypes.card) &&
|
|
317
|
-
(this.showAch || paymentMethod.type !== Payment.PaymentMethodTypes.bankAccount));
|
|
318
|
-
});
|
|
319
|
-
if (this.showCard) {
|
|
320
|
-
this.paymentMethodOptions.push(new paymentMethodOptionUtils.PaymentMethodOption({ id: Payment.PaymentMethodTypes.card }));
|
|
321
|
-
}
|
|
322
|
-
if (this.showAch) {
|
|
323
|
-
this.paymentMethodOptions.push(new paymentMethodOptionUtils.PaymentMethodOption({ id: Payment.PaymentMethodTypes.bankAccount }));
|
|
324
|
-
}
|
|
325
|
-
if (!this.selectedPaymentMethodId) {
|
|
326
|
-
this.selectedPaymentMethodId = (_a = this.paymentMethodOptions[0]) === null || _a === void 0 ? void 0 : _a.id;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
paymentMethodOptionSelected(event) {
|
|
330
|
-
this.selectedPaymentMethodId = event.detail.id;
|
|
331
|
-
}
|
|
332
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
333
|
-
var _a;
|
|
334
|
-
return await ((_a = this.selectedPaymentMethodOptionRef) === null || _a === void 0 ? void 0 : _a.resolvePaymentMethod(insuranceValidation));
|
|
335
|
-
}
|
|
336
|
-
async validate() {
|
|
337
|
-
const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
|
|
338
|
-
return newPaymentMethodElement.validate();
|
|
339
|
-
}
|
|
340
|
-
render() {
|
|
341
|
-
var _a;
|
|
342
|
-
return (index.h(index.Host, { key: '2d3dc8bc98cea3efbcf342a31b6883f30099b031' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
343
|
-
const newCard = paymentMethodOption.id === Payment.PaymentMethodTypes.card;
|
|
344
|
-
const newBankAccount = paymentMethodOption.id === Payment.PaymentMethodTypes.bankAccount;
|
|
345
|
-
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
346
|
-
if (newCard || newBankAccount) {
|
|
347
|
-
return (index.h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, "show-card": this.showCard, "show-ach": this.showAch, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: (el) => {
|
|
348
|
-
if (isSelected) {
|
|
349
|
-
this.selectedPaymentMethodOptionRef = el;
|
|
350
|
-
}
|
|
351
|
-
} }));
|
|
352
|
-
}
|
|
353
|
-
else if (this.showSavedPaymentMethods) {
|
|
354
|
-
return (index.h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
|
|
355
|
-
if (isSelected) {
|
|
356
|
-
this.selectedPaymentMethodOptionRef = el;
|
|
357
|
-
}
|
|
358
|
-
} }));
|
|
359
|
-
}
|
|
360
|
-
})));
|
|
361
|
-
}
|
|
362
|
-
static get watchers() { return {
|
|
363
|
-
"savedPaymentMethods": ["paymentMethodsChanged"]
|
|
364
|
-
}; }
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
const SaveNewPaymentMethod = class {
|
|
368
|
-
constructor(hostRef) {
|
|
369
|
-
index.registerInstance(this, hostRef);
|
|
370
|
-
this.checkboxChanged = index.createEvent(this, "checkboxChanged");
|
|
371
|
-
this.isChecked = false;
|
|
372
|
-
}
|
|
373
|
-
handleCheckboxChange(_name, value) {
|
|
374
|
-
this.isChecked = value;
|
|
375
|
-
this.checkboxChanged.emit(this.isChecked);
|
|
376
|
-
}
|
|
377
|
-
render() {
|
|
378
|
-
return (index.h("div", { key: 'e6e7a75237ec2062188bf85deadac58892663b3b', class: "mt-4 form-check" }, index.h("form-control-checkbox", { key: 'abbaeb4e9119c4d41f0a727c7a070c14b7418302', label: "Save new payment method", name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange.bind(this) })));
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
const SavedPaymentMethod = class {
|
|
383
|
-
constructor(hostRef) {
|
|
384
|
-
index.registerInstance(this, hostRef);
|
|
385
|
-
this.paymentMethodOptionSelected = index.createEvent(this, "paymentMethodOptionSelected");
|
|
386
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
387
|
-
e.preventDefault();
|
|
388
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
392
|
-
var _a;
|
|
393
|
-
if (!insuranceValidation.isValid) {
|
|
394
|
-
return { validationError: true };
|
|
395
|
-
}
|
|
396
|
-
return { token: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id };
|
|
397
|
-
}
|
|
398
|
-
;
|
|
399
|
-
render() {
|
|
400
|
-
var _a, _b, _c;
|
|
401
|
-
return (index.h(index.Host, { key: '78487e52f549547f4c89f48a238a8916d77d4f1c', class: "payment-method" }, index.h("div", { key: 'd437a5f9e79356b1177703da2b5d7f4ca98072ce', class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick }, index.h("form-control-radio", { key: '0dd03b9ebae98c441c63717aba310d77e587b1c8', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${paymentMethodOptionUtils.CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
exports.bank_account_form = BankAccountForm;
|
|
406
|
-
exports.card_form = CardForm;
|
|
407
|
-
exports.justifi_billing_form = BillingForm;
|
|
408
|
-
exports.justifi_new_payment_method = NewPaymentMethod;
|
|
409
|
-
exports.justifi_payment_method_options = PaymentMethodOptions;
|
|
410
|
-
exports.justifi_save_new_payment_method = SaveNewPaymentMethod;
|
|
411
|
-
exports.justifi_saved_payment_method = SavedPaymentMethod;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var form = require('./form-CWW8IM-X.js');
|
|
4
|
-
var schemaValidations = require('./schema-validations-C0BNwMBi.js');
|
|
5
|
-
|
|
6
|
-
const billingFormSchema = (postalOnly) => {
|
|
7
|
-
const fullBillingForm = form.create$3({
|
|
8
|
-
name: schemaValidations.identityNameValidation.required('Enter full name'),
|
|
9
|
-
address_line1: schemaValidations.lineOneValidation.required('Enter street address'),
|
|
10
|
-
address_line2: schemaValidations.lineTwoValidation.nullable(),
|
|
11
|
-
address_city: schemaValidations.cityValidation.required('Enter city'),
|
|
12
|
-
address_state: schemaValidations.stateValidation.required('Select state'),
|
|
13
|
-
address_postal_code: schemaValidations.postalValidation.required('Enter postal code'),
|
|
14
|
-
});
|
|
15
|
-
const postalForm = form.create$3({
|
|
16
|
-
name: schemaValidations.identityNameValidation.nullable(),
|
|
17
|
-
address_line1: schemaValidations.lineOneValidation.nullable(),
|
|
18
|
-
address_line2: schemaValidations.lineTwoValidation.nullable(),
|
|
19
|
-
address_city: schemaValidations.cityValidation.nullable(),
|
|
20
|
-
address_state: schemaValidations.stateValidation.nullable(),
|
|
21
|
-
address_postal_code: schemaValidations.postalValidation.required('Enter postal code'),
|
|
22
|
-
});
|
|
23
|
-
return postalOnly ? postalForm : fullBillingForm;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
exports.billingFormSchema = billingFormSchema;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-2GwnTbNA.js');
|
|
4
|
-
var parts = require('./parts-9jMf1erK.js');
|
|
5
|
-
var utils = require('./utils-qOon0GWm.js');
|
|
6
|
-
var checkout_store = require('./checkout.store-osqdxFMq.js');
|
|
7
|
-
var styledHost = require('./styled-host-IMxk64cc.js');
|
|
8
|
-
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
10
|
-
require('./index-DEMVrrsF.js');
|
|
11
|
-
|
|
12
|
-
const Summary = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
return (index.h(styledHost.StyledHost, { key: '9a2eea1693287ad73dfedd3ddc24e949e9d75148' }, index.h("section", { key: '1943be6cef0c4a1c830ddfc14d893c3906482534' }, index.h("div", { key: 'cf3f41d3dd3c9829d93d7e56e3d2dfabbd99ccef' }, index.h("div", { key: 'b5bc944a5310252dc0720e3e7d709f1a57f898c8', part: parts.text }, checkout_store.state === null || checkout_store.state === void 0 ? void 0 : checkout_store.state.paymentDescription), index.h("div", { key: 'dbe53880d7c3ff8d4513a570e1b024f1e2f43028' }, index.h("span", { key: 'd8986a9265463d8f9d7f62598cc4ec3203081c09', part: parts.text }, "Total"), "\u00A0", index.h("span", { key: '32cbc6e259fdee2c71ad72fcf59ab157704c4758', part: parts.text }, utils.formatCurrency(+(checkout_store.state === null || checkout_store.state === void 0 ? void 0 : checkout_store.state.totalAmount))))))));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.justifi_checkout_summary = Summary;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-2GwnTbNA.js');
|
|
4
|
-
var styledHost = require('./styled-host-IMxk64cc.js');
|
|
5
|
-
require('./event-types-YOY5TKUN.js');
|
|
6
|
-
var utils = require('./utils-DAyWinG2.js');
|
|
7
|
-
var form = require('./form-CWW8IM-X.js');
|
|
8
|
-
var billingFormSchema = require('./billing-form-schema-oZ4GROWP.js');
|
|
9
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
10
|
-
require('./schema-validations-C0BNwMBi.js');
|
|
11
|
-
require('./state-options-CIT9xdTz.js');
|
|
12
|
-
require('./business-form-options-CMII7nIK.js');
|
|
13
|
-
require('./Business-DCRzZf0w.js');
|
|
14
|
-
require('./helpers-B5OCqlIM.js');
|
|
15
|
-
require('./Document-rXGBUaOh.js');
|
|
16
|
-
|
|
17
|
-
const PostalCodeForm = class {
|
|
18
|
-
constructor(hostRef) {
|
|
19
|
-
index.registerInstance(this, hostRef);
|
|
20
|
-
this.errors = {};
|
|
21
|
-
this.inputHandler = (name, value) => {
|
|
22
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
componentWillLoad() {
|
|
26
|
-
this.formController = new form.FormController(billingFormSchema.billingFormSchema(true));
|
|
27
|
-
}
|
|
28
|
-
componentDidLoad() {
|
|
29
|
-
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
30
|
-
this.formController.errors.subscribe(errors => {
|
|
31
|
-
this.errors = Object.assign({}, errors);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
async getValues() {
|
|
35
|
-
return this.formController.values.getValue();
|
|
36
|
-
}
|
|
37
|
-
async fill(fields) {
|
|
38
|
-
this.formController.setInitialValues(fields);
|
|
39
|
-
}
|
|
40
|
-
async validate() {
|
|
41
|
-
let isValid = await this.formController.validate();
|
|
42
|
-
return { isValid: isValid };
|
|
43
|
-
}
|
|
44
|
-
render() {
|
|
45
|
-
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
46
|
-
return (index.h(styledHost.StyledHost, { key: 'e5cdb9b21be1e5f4ee6fd21a2d919b2d9271b163' }, index.h("form", { key: '29c0a3edaad9877d50ecc9e4424ca2f5e667dc30' }, index.h("form-control-text", { key: '00e8688c8a8e9b91df5089e2fb97c8b71673a3fd', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: utils.numberOnlyHandler }))));
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
exports.justifi_postal_code_form = PostalCodeForm;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-2GwnTbNA.js');
|
|
4
|
-
var parts = require('./parts-9jMf1erK.js');
|
|
5
|
-
var styledHost = require('./styled-host-IMxk64cc.js');
|
|
6
|
-
require('./event-types-YOY5TKUN.js');
|
|
7
|
-
var checkout_store = require('./checkout.store-osqdxFMq.js');
|
|
8
|
-
var paymentMethodOptionUtils = require('./payment-method-option-utils-imuSE7KV.js');
|
|
9
|
-
require('./index-DEMVrrsF.js');
|
|
10
|
-
require('./utils-qOon0GWm.js');
|
|
11
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
12
|
-
|
|
13
|
-
const SavedPaymentMethods = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
index.registerInstance(this, hostRef);
|
|
16
|
-
this.onPaymentMethodOptionClick = (paymentMethodId) => (e) => {
|
|
17
|
-
e.preventDefault();
|
|
18
|
-
checkout_store.state.selectedPaymentMethod = paymentMethodId;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
if (!checkout_store.state.paymentMethods.length) {
|
|
23
|
-
console.warn('No saved payment methods available.');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return (index.h(styledHost.StyledHost, { key: '7bebb3f8ff2a2abe400e1d099154a1729913140c' }, index.h("div", { key: '3a5798c5ceba63160dceecb0dc65f8a211bb5110', class: "saved-payment-methods" }, checkout_store.state.paymentMethods.length ? checkout_store.state.paymentMethods.map((paymentMethod) => (index.h("div", { class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick(paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id) }, index.h("form-control-radio", { name: "paymentMethodType", value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id, checked: checkout_store.state.selectedPaymentMethod === (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id), label: `${paymentMethodOptionUtils.CardBrandLabels[paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.brand] || ''} *${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.acct_last_four}` })))) : null)));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
exports.justifi_saved_payment_methods = SavedPaymentMethods;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-2GwnTbNA.js');
|
|
4
|
-
var utils = require('./utils-qOon0GWm.js');
|
|
5
|
-
var parts = require('./parts-9jMf1erK.js');
|
|
6
|
-
var checkout_store = require('./checkout.store-osqdxFMq.js');
|
|
7
|
-
var styledHost = require('./styled-host-IMxk64cc.js');
|
|
8
|
-
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
10
|
-
require('./index-DEMVrrsF.js');
|
|
11
|
-
|
|
12
|
-
const sezzleLogo = (index.h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
13
|
-
display: 'inline',
|
|
14
|
-
width: '80px',
|
|
15
|
-
marginLeft: '5px',
|
|
16
|
-
marginTop: '-5px',
|
|
17
|
-
} }));
|
|
18
|
-
const SezzlePaymentMethod = class {
|
|
19
|
-
constructor(hostRef) {
|
|
20
|
-
index.registerInstance(this, hostRef);
|
|
21
|
-
this.paymentMethodOptionSelected = index.createEvent(this, "paymentMethodOptionSelected");
|
|
22
|
-
this.paymentMethodOptionId = 'sezzle';
|
|
23
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
24
|
-
e.preventDefault();
|
|
25
|
-
checkout_store.state.selectedPaymentMethod = this.paymentMethodOptionId;
|
|
26
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId);
|
|
27
|
-
};
|
|
28
|
-
this.initializeSezzleCheckout = () => {
|
|
29
|
-
let resolveSezzlePromise;
|
|
30
|
-
this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
|
|
31
|
-
const amount = Number(checkout_store.state.paymentAmount);
|
|
32
|
-
const Checkout = window.Checkout;
|
|
33
|
-
const checkout = new Checkout({
|
|
34
|
-
mode: 'popup',
|
|
35
|
-
publicKey: checkout_store.state.bnplProviderClientId,
|
|
36
|
-
apiMode: checkout_store.state.bnplProviderMode,
|
|
37
|
-
apiVersion: checkout_store.state.bnplProviderApiVersion,
|
|
38
|
-
});
|
|
39
|
-
checkout.sezzleButtonElement = this.sezzleButtonRef;
|
|
40
|
-
checkout.init({
|
|
41
|
-
onClick: function (event) {
|
|
42
|
-
event.preventDefault();
|
|
43
|
-
checkout.startCheckout({
|
|
44
|
-
checkout_url: checkout_store.state.bnplProviderCheckoutUrl,
|
|
45
|
-
});
|
|
46
|
-
},
|
|
47
|
-
onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
48
|
-
onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
49
|
-
onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
50
|
-
});
|
|
51
|
-
this.sezzleCheckout = checkout;
|
|
52
|
-
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
componentDidRender() {
|
|
56
|
-
if (!this.scriptRef)
|
|
57
|
-
return;
|
|
58
|
-
this.scriptRef.onload = () => {
|
|
59
|
-
this.sezzleButtonRef = document.createElement('button');
|
|
60
|
-
this.initializeSezzleCheckout();
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
64
|
-
if (!insuranceValidation.isValid) {
|
|
65
|
-
return { validationError: true };
|
|
66
|
-
}
|
|
67
|
-
this.sezzleButtonRef.click();
|
|
68
|
-
return this.sezzlePromise;
|
|
69
|
-
}
|
|
70
|
-
render() {
|
|
71
|
-
var _a, _b;
|
|
72
|
-
if (!checkout_store.state.bnplEnabled) {
|
|
73
|
-
console.warn('justifi-sezzle-payment-method: BNPL is not enabled for this account.');
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
return (index.h(styledHost.StyledHost, { class: "payment-method" }, index.h("script", { src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), index.h("div", { class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick }, index.h("form-control-radio", { name: "paymentMethodType", value: this.paymentMethodOptionId, checked: checkout_store.state.selectedPaymentMethod === this.paymentMethodOptionId, label: index.h("div", null, index.h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (index.h("small", null, index.h("span", null, (_a = this.installmentPlan) === null || _a === void 0 ? void 0 : _a.installments.length), "\u00A0", index.h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", index.h("span", { class: "fw-bold" }, utils.formatCurrency((_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments[0].amountInCents))))) }))));
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
exports.justifi_sezzle_payment_method = SezzlePaymentMethod;
|