@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,58 +0,0 @@
|
|
|
1
|
-
import { C as ComponentErrorSeverity } from './Checkout.js';
|
|
2
|
-
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
3
|
-
|
|
4
|
-
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
5
|
-
var _a;
|
|
6
|
-
try {
|
|
7
|
-
const response = await service.fetchCheckout(authToken, checkoutId);
|
|
8
|
-
if (!response.error) {
|
|
9
|
-
const checkout = response.data;
|
|
10
|
-
onSuccess({ checkout });
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
const responseError = getErrorMessage(response.error);
|
|
14
|
-
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
15
|
-
return onError({
|
|
16
|
-
error: responseError,
|
|
17
|
-
code,
|
|
18
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
24
|
-
return onError({
|
|
25
|
-
error: error.message || error,
|
|
26
|
-
code,
|
|
27
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ payment, onSuccess, onError }) => {
|
|
32
|
-
var _a;
|
|
33
|
-
try {
|
|
34
|
-
const response = await service.complete(authToken, checkoutId, payment);
|
|
35
|
-
if (!response.error) {
|
|
36
|
-
onSuccess(response);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
const responseError = getErrorMessage(response.error);
|
|
40
|
-
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
41
|
-
return onError({
|
|
42
|
-
error: responseError,
|
|
43
|
-
code,
|
|
44
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
50
|
-
return onError({
|
|
51
|
-
error: error.message || error,
|
|
52
|
-
code,
|
|
53
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export { makeCheckoutComplete as a, makeGetCheckout as m };
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as formatCurrency } from './utils2.js';
|
|
3
|
-
import { b as Checkout, C as ComponentErrorSeverity } from './Checkout.js';
|
|
4
|
-
import { v as validateInsuranceValues, i as insuranceValuesOn, a as insuranceValues, H as Header2 } from './insurance-state.js';
|
|
5
|
-
import { B as Button } from './button.js';
|
|
6
|
-
import { S as StyledHost } from './styled-host.js';
|
|
7
|
-
import { S as Skeleton } from './skeleton.js';
|
|
8
|
-
import { t as text, V as checkoutSummary } from './parts.js';
|
|
9
|
-
import { d as defineCustomElement$5, H as Header3 } from './billing-form.js';
|
|
10
|
-
import './details.js';
|
|
11
|
-
import './event-types.js';
|
|
12
|
-
import { d as defineCustomElement$g } from './bank-account-form2.js';
|
|
13
|
-
import { d as defineCustomElement$f } from './card-form2.js';
|
|
14
|
-
import { d as defineCustomElement$e } from './custom-popper2.js';
|
|
15
|
-
import { d as defineCustomElement$d } from './form-control-checkbox2.js';
|
|
16
|
-
import { d as defineCustomElement$c } from './form-control-help-text2.js';
|
|
17
|
-
import { d as defineCustomElement$b } from './form-control-radio2.js';
|
|
18
|
-
import { d as defineCustomElement$a } from './form-control-select2.js';
|
|
19
|
-
import { d as defineCustomElement$9 } from './form-control-text2.js';
|
|
20
|
-
import { d as defineCustomElement$8 } from './form-control-tooltip2.js';
|
|
21
|
-
import { d as defineCustomElement$7 } from './hidden-input2.js';
|
|
22
|
-
import { d as defineCustomElement$6 } from './iframe-input2.js';
|
|
23
|
-
import { d as defineCustomElement$4 } from './new-payment-method.js';
|
|
24
|
-
import { d as defineCustomElement$3 } from './payment-method-options.js';
|
|
25
|
-
import { d as defineCustomElement$2 } from './save-new-payment-method.js';
|
|
26
|
-
import { d as defineCustomElement$1 } from './saved-payment-method.js';
|
|
27
|
-
|
|
28
|
-
const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends HTMLElement {
|
|
29
|
-
constructor() {
|
|
30
|
-
super();
|
|
31
|
-
this.__registerHost();
|
|
32
|
-
this.__attachShadow();
|
|
33
|
-
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
34
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
35
|
-
this.loaded = createEvent(this, "loaded", 7);
|
|
36
|
-
this.hasLoadedFonts = false;
|
|
37
|
-
this.renderState = 'loading';
|
|
38
|
-
this.creatingNewPaymentMethod = false;
|
|
39
|
-
this.insuranceToggled = false;
|
|
40
|
-
this.completeCheckout = async (payment) => {
|
|
41
|
-
this.complete({
|
|
42
|
-
payment,
|
|
43
|
-
onSuccess: this.onSubmitted,
|
|
44
|
-
onError: this.onError,
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
this.onSubmitted = (response) => {
|
|
48
|
-
this.submitEvent.emit({ response: response });
|
|
49
|
-
this.renderState = 'success';
|
|
50
|
-
};
|
|
51
|
-
this.onError = ({ error, code, severity }) => {
|
|
52
|
-
this.serverError = error;
|
|
53
|
-
this.errorEvent.emit({
|
|
54
|
-
errorCode: code,
|
|
55
|
-
message: error,
|
|
56
|
-
severity,
|
|
57
|
-
});
|
|
58
|
-
this.renderState = 'error';
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
async fillBillingForm(fields) {
|
|
62
|
-
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
63
|
-
}
|
|
64
|
-
async validate() {
|
|
65
|
-
const insuranceValidation = validateInsuranceValues();
|
|
66
|
-
const { isValid } = await this.paymentMethodOptionsRef.validate();
|
|
67
|
-
if (!insuranceValidation.isValid || !isValid) {
|
|
68
|
-
return { isValid: false };
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return { isValid: true };
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
componentWillLoad() {
|
|
75
|
-
if (this.getCheckout) {
|
|
76
|
-
this.fetchData();
|
|
77
|
-
// Refresh the checkout data when insurance is added or removed
|
|
78
|
-
insuranceValuesOn('set', (key) => {
|
|
79
|
-
const value = insuranceValues[key];
|
|
80
|
-
if (value !== undefined) {
|
|
81
|
-
this.insuranceToggled = value;
|
|
82
|
-
this.fetchData();
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
fetchData() {
|
|
88
|
-
this.renderState = 'loading';
|
|
89
|
-
this.getCheckout({
|
|
90
|
-
onSuccess: ({ checkout }) => {
|
|
91
|
-
this.checkout = new Checkout(checkout);
|
|
92
|
-
const { status } = this.checkout;
|
|
93
|
-
this.loaded.emit({ checkout_status: status });
|
|
94
|
-
this.renderState = 'success';
|
|
95
|
-
},
|
|
96
|
-
onError: ({ error, code, severity }) => {
|
|
97
|
-
this.serverError = error;
|
|
98
|
-
this.renderState = 'error';
|
|
99
|
-
this.errorEvent.emit({
|
|
100
|
-
errorCode: code,
|
|
101
|
-
message: error,
|
|
102
|
-
severity,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
;
|
|
108
|
-
async submit(event) {
|
|
109
|
-
var _a;
|
|
110
|
-
event.preventDefault();
|
|
111
|
-
this.renderState = 'loading';
|
|
112
|
-
const insuranceValidation = validateInsuranceValues();
|
|
113
|
-
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod(insuranceValidation);
|
|
114
|
-
if (payload.validationError) {
|
|
115
|
-
this.renderState = 'error';
|
|
116
|
-
}
|
|
117
|
-
else if (payload.error) {
|
|
118
|
-
this.renderState = 'error';
|
|
119
|
-
this.serverError = payload.error.message;
|
|
120
|
-
this.onError({
|
|
121
|
-
code: payload.error.code,
|
|
122
|
-
error: payload.error.message,
|
|
123
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
else if (payload.token) {
|
|
127
|
-
this.completeCheckout({ payment_mode: 'ecom', payment_token: payload.token });
|
|
128
|
-
}
|
|
129
|
-
else if (((_a = payload.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
130
|
-
this.completeCheckout({ payment_mode: 'bnpl' });
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
this.renderState = 'error';
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
get isLoading() {
|
|
137
|
-
return this.renderState === 'loading';
|
|
138
|
-
}
|
|
139
|
-
get isError() {
|
|
140
|
-
return this.renderState === 'error';
|
|
141
|
-
}
|
|
142
|
-
get paymentType() {
|
|
143
|
-
var _a, _b, _c, _d, _e;
|
|
144
|
-
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "300px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, paymentMethodGroupId: (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_method_group_id, "show-saved-payment-methods": !this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, authToken: this.authToken, "account-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.account_id, savedPaymentMethods: ((_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_methods) || [], paymentAmount: (_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_amount, insuranceToggled: this.insuranceToggled }))));
|
|
145
|
-
}
|
|
146
|
-
get summary() {
|
|
147
|
-
var _a, _b;
|
|
148
|
-
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("div", { part: text }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", null, h("span", { part: text }, "Total"), "\u00A0", h("span", { part: text }, formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
149
|
-
}
|
|
150
|
-
render() {
|
|
151
|
-
return (h(StyledHost, { key: '2fb8b2c2b543712023c74cf9b41dc57675c89237' }, h("div", { key: 'caba36e076e4162d9c92844f7c0632b5bf678de6', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '6a27d64005d785815d5567894d6e2a6e1e515cf8', class: "col-12", part: checkoutSummary }, h(Header2, { key: '645fe4250331805e86811700b453458f065188bd', text: "Summary", class: "fs-5 fw-bold pb-3" }), this.summary), h("div", { key: 'c49c73eb3462ad17e0344e74be508abe958a9358', class: "col-12" }, h("slot", { key: 'be626bff57c95b92f9853e2e9b63dd9279834142', name: "insurance" })), h("div", { key: '025b0400164935f10d6c79d445bfdcf157290fd6', class: "col-12 mt-4" }, h(Header2, { key: '483b5d53b5cea3ae6fccfbb3aa9d3efe0dc8fcab', text: "Payment", class: "fs-5 fw-bold pb-3" }), h(Header3, { key: '21abbd4d669e351c8ad0a87b7b408a4998948b46', text: "Select payment type", class: "fs-6 fw-bold lh-lg" }), h("div", { key: '9441e97e1bd64b796ebcf1404d4ca04964990982', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: '9db2e4fccff5b868e7d329d9b0be864942adcc3d', class: "col-12" }, h("div", { key: '2eaef4ed6062b27de2516de7b71a056c829f8cab', class: "d-flex justify-content-end" }, h(Button, { key: '505869afa61094d628b58a32749c44f678e4fda3', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
152
|
-
}
|
|
153
|
-
}, [1, "justifi-checkout-core", {
|
|
154
|
-
"authToken": [1, "auth-token"],
|
|
155
|
-
"getCheckout": [16, "get-checkout"],
|
|
156
|
-
"complete": [16],
|
|
157
|
-
"checkoutId": [1, "checkout-id"],
|
|
158
|
-
"disableCreditCard": [4, "disable-credit-card"],
|
|
159
|
-
"disableBankAccount": [4, "disable-bank-account"],
|
|
160
|
-
"disableBnpl": [4, "disable-bnpl"],
|
|
161
|
-
"disablePaymentMethodGroup": [4, "disable-payment-method-group"],
|
|
162
|
-
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
163
|
-
"hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
|
|
164
|
-
"hasLoadedFonts": [32],
|
|
165
|
-
"checkout": [32],
|
|
166
|
-
"serverError": [32],
|
|
167
|
-
"renderState": [32],
|
|
168
|
-
"creatingNewPaymentMethod": [32],
|
|
169
|
-
"insuranceToggled": [32],
|
|
170
|
-
"fillBillingForm": [64],
|
|
171
|
-
"validate": [64]
|
|
172
|
-
}]);
|
|
173
|
-
function defineCustomElement() {
|
|
174
|
-
if (typeof customElements === "undefined") {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
const components = ["justifi-checkout-core", "bank-account-form", "card-form", "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-billing-form", "justifi-new-payment-method", "justifi-payment-method-options", "justifi-save-new-payment-method", "justifi-saved-payment-method"];
|
|
178
|
-
components.forEach(tagName => { switch (tagName) {
|
|
179
|
-
case "justifi-checkout-core":
|
|
180
|
-
if (!customElements.get(tagName)) {
|
|
181
|
-
customElements.define(tagName, CheckoutCore);
|
|
182
|
-
}
|
|
183
|
-
break;
|
|
184
|
-
case "bank-account-form":
|
|
185
|
-
if (!customElements.get(tagName)) {
|
|
186
|
-
defineCustomElement$g();
|
|
187
|
-
}
|
|
188
|
-
break;
|
|
189
|
-
case "card-form":
|
|
190
|
-
if (!customElements.get(tagName)) {
|
|
191
|
-
defineCustomElement$f();
|
|
192
|
-
}
|
|
193
|
-
break;
|
|
194
|
-
case "custom-popper":
|
|
195
|
-
if (!customElements.get(tagName)) {
|
|
196
|
-
defineCustomElement$e();
|
|
197
|
-
}
|
|
198
|
-
break;
|
|
199
|
-
case "form-control-checkbox":
|
|
200
|
-
if (!customElements.get(tagName)) {
|
|
201
|
-
defineCustomElement$d();
|
|
202
|
-
}
|
|
203
|
-
break;
|
|
204
|
-
case "form-control-help-text":
|
|
205
|
-
if (!customElements.get(tagName)) {
|
|
206
|
-
defineCustomElement$c();
|
|
207
|
-
}
|
|
208
|
-
break;
|
|
209
|
-
case "form-control-radio":
|
|
210
|
-
if (!customElements.get(tagName)) {
|
|
211
|
-
defineCustomElement$b();
|
|
212
|
-
}
|
|
213
|
-
break;
|
|
214
|
-
case "form-control-select":
|
|
215
|
-
if (!customElements.get(tagName)) {
|
|
216
|
-
defineCustomElement$a();
|
|
217
|
-
}
|
|
218
|
-
break;
|
|
219
|
-
case "form-control-text":
|
|
220
|
-
if (!customElements.get(tagName)) {
|
|
221
|
-
defineCustomElement$9();
|
|
222
|
-
}
|
|
223
|
-
break;
|
|
224
|
-
case "form-control-tooltip":
|
|
225
|
-
if (!customElements.get(tagName)) {
|
|
226
|
-
defineCustomElement$8();
|
|
227
|
-
}
|
|
228
|
-
break;
|
|
229
|
-
case "hidden-input":
|
|
230
|
-
if (!customElements.get(tagName)) {
|
|
231
|
-
defineCustomElement$7();
|
|
232
|
-
}
|
|
233
|
-
break;
|
|
234
|
-
case "iframe-input":
|
|
235
|
-
if (!customElements.get(tagName)) {
|
|
236
|
-
defineCustomElement$6();
|
|
237
|
-
}
|
|
238
|
-
break;
|
|
239
|
-
case "justifi-billing-form":
|
|
240
|
-
if (!customElements.get(tagName)) {
|
|
241
|
-
defineCustomElement$5();
|
|
242
|
-
}
|
|
243
|
-
break;
|
|
244
|
-
case "justifi-new-payment-method":
|
|
245
|
-
if (!customElements.get(tagName)) {
|
|
246
|
-
defineCustomElement$4();
|
|
247
|
-
}
|
|
248
|
-
break;
|
|
249
|
-
case "justifi-payment-method-options":
|
|
250
|
-
if (!customElements.get(tagName)) {
|
|
251
|
-
defineCustomElement$3();
|
|
252
|
-
}
|
|
253
|
-
break;
|
|
254
|
-
case "justifi-save-new-payment-method":
|
|
255
|
-
if (!customElements.get(tagName)) {
|
|
256
|
-
defineCustomElement$2();
|
|
257
|
-
}
|
|
258
|
-
break;
|
|
259
|
-
case "justifi-saved-payment-method":
|
|
260
|
-
if (!customElements.get(tagName)) {
|
|
261
|
-
defineCustomElement$1();
|
|
262
|
-
}
|
|
263
|
-
break;
|
|
264
|
-
} });
|
|
265
|
-
}
|
|
266
|
-
defineCustomElement();
|
|
267
|
-
|
|
268
|
-
export { CheckoutCore as C, defineCustomElement as d };
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { W as radioListItem } from './parts.js';
|
|
3
|
-
import { d as defineCustomElement$d } from './bank-account-form2.js';
|
|
4
|
-
import { d as defineCustomElement$c } from './card-form2.js';
|
|
5
|
-
import { d as defineCustomElement$b } from './custom-popper2.js';
|
|
6
|
-
import { d as defineCustomElement$a } from './form-control-checkbox2.js';
|
|
7
|
-
import { d as defineCustomElement$9 } from './form-control-help-text2.js';
|
|
8
|
-
import { d as defineCustomElement$8 } from './form-control-radio2.js';
|
|
9
|
-
import { d as defineCustomElement$7 } from './form-control-select2.js';
|
|
10
|
-
import { d as defineCustomElement$6 } from './form-control-text2.js';
|
|
11
|
-
import { d as defineCustomElement$5 } from './form-control-tooltip2.js';
|
|
12
|
-
import { d as defineCustomElement$4 } from './hidden-input2.js';
|
|
13
|
-
import { d as defineCustomElement$3 } from './iframe-input2.js';
|
|
14
|
-
import { d as defineCustomElement$2 } from './billing-form.js';
|
|
15
|
-
import { d as defineCustomElement$1 } from './save-new-payment-method.js';
|
|
16
|
-
|
|
17
|
-
const PaymentMethodTypeLabels = {
|
|
18
|
-
bankAccount: 'New bank account',
|
|
19
|
-
card: 'New credit or debit card',
|
|
20
|
-
};
|
|
21
|
-
const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod extends HTMLElement {
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
this.__registerHost();
|
|
25
|
-
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
26
|
-
this.saveNewPaymentMethodChecked = false;
|
|
27
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
28
|
-
e.preventDefault();
|
|
29
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
handleCheckboxChanged(event) {
|
|
33
|
-
this.saveNewPaymentMethodChecked = event.detail;
|
|
34
|
-
}
|
|
35
|
-
async fillBillingForm(fields) {
|
|
36
|
-
this.billingFormRef.fill(fields);
|
|
37
|
-
}
|
|
38
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
39
|
-
var _a, _b;
|
|
40
|
-
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
41
|
-
return;
|
|
42
|
-
try {
|
|
43
|
-
const { isValid, errors } = await this.validate();
|
|
44
|
-
if (!isValid || !insuranceValidation.isValid) {
|
|
45
|
-
// get propety value from first property in errors object
|
|
46
|
-
const message = `${Object.values(errors)[0] || 'Validation error'}`;
|
|
47
|
-
return {
|
|
48
|
-
validationError: true,
|
|
49
|
-
error: {
|
|
50
|
-
code: 'validation_error',
|
|
51
|
-
message,
|
|
52
|
-
decline_code: undefined
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
const tokenizeResponse = await this.tokenize();
|
|
57
|
-
if (tokenizeResponse.error) {
|
|
58
|
-
return { error: tokenizeResponse.error };
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
const tokenizeRessponseData = tokenizeResponse.data;
|
|
62
|
-
return {
|
|
63
|
-
token: ((_a = tokenizeRessponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeRessponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
|
|
64
|
-
data: tokenizeRessponseData
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
catch (error) {
|
|
69
|
-
return { error };
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
async validate() {
|
|
73
|
-
const billingFormValidation = await this.billingFormRef.validate();
|
|
74
|
-
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
75
|
-
const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
|
|
76
|
-
const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
|
|
77
|
-
return { isValid, errors };
|
|
78
|
-
}
|
|
79
|
-
async tokenize() {
|
|
80
|
-
try {
|
|
81
|
-
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
82
|
-
let paymentMethodData;
|
|
83
|
-
if (this.saveNewPaymentMethodChecked) {
|
|
84
|
-
paymentMethodData = Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupId });
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
paymentMethodData = Object.assign({}, billingFormFieldValues);
|
|
88
|
-
}
|
|
89
|
-
const clientId = this.authToken;
|
|
90
|
-
const tokenizeResponse = await this.paymentMethodFormRef.tokenize(clientId, paymentMethodData, this.accountId);
|
|
91
|
-
return tokenizeResponse;
|
|
92
|
-
}
|
|
93
|
-
catch (error) {
|
|
94
|
-
return error;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
showNewPaymentMethodForm() {
|
|
98
|
-
var _a;
|
|
99
|
-
const paymentMethodType = (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id;
|
|
100
|
-
return (h("div", { class: "mt-4 pb-4" }, h("hidden-input", null), paymentMethodType === 'card' ? (h("card-form", { ref: (el) => this.paymentMethodFormRef = el })) : (h("bank-account-form", { ref: (el) => this.paymentMethodFormRef = el })), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodType }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
|
|
101
|
-
}
|
|
102
|
-
get hiddenRadioInput() {
|
|
103
|
-
return !this.showAch || !this.showCard;
|
|
104
|
-
}
|
|
105
|
-
render() {
|
|
106
|
-
var _a, _b;
|
|
107
|
-
return (h(Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
108
|
-
}
|
|
109
|
-
}, [0, "justifi-new-payment-method", {
|
|
110
|
-
"authToken": [1, "auth-token"],
|
|
111
|
-
"accountId": [1, "account-id"],
|
|
112
|
-
"paymentMethodOption": [16, "payment-method-option"],
|
|
113
|
-
"paymentMethodGroupId": [1, "payment-method-group-id"],
|
|
114
|
-
"isSelected": [4, "is-selected"],
|
|
115
|
-
"showCard": [4, "show-card"],
|
|
116
|
-
"showAch": [4, "show-ach"],
|
|
117
|
-
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
118
|
-
"hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
|
|
119
|
-
"saveNewPaymentMethodChecked": [32],
|
|
120
|
-
"fillBillingForm": [64],
|
|
121
|
-
"resolvePaymentMethod": [64],
|
|
122
|
-
"validate": [64]
|
|
123
|
-
}, [[0, "checkboxChanged", "handleCheckboxChanged"]]]);
|
|
124
|
-
function defineCustomElement() {
|
|
125
|
-
if (typeof customElements === "undefined") {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
const components = ["justifi-new-payment-method", "bank-account-form", "card-form", "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-billing-form", "justifi-save-new-payment-method"];
|
|
129
|
-
components.forEach(tagName => { switch (tagName) {
|
|
130
|
-
case "justifi-new-payment-method":
|
|
131
|
-
if (!customElements.get(tagName)) {
|
|
132
|
-
customElements.define(tagName, NewPaymentMethod);
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
|
-
case "bank-account-form":
|
|
136
|
-
if (!customElements.get(tagName)) {
|
|
137
|
-
defineCustomElement$d();
|
|
138
|
-
}
|
|
139
|
-
break;
|
|
140
|
-
case "card-form":
|
|
141
|
-
if (!customElements.get(tagName)) {
|
|
142
|
-
defineCustomElement$c();
|
|
143
|
-
}
|
|
144
|
-
break;
|
|
145
|
-
case "custom-popper":
|
|
146
|
-
if (!customElements.get(tagName)) {
|
|
147
|
-
defineCustomElement$b();
|
|
148
|
-
}
|
|
149
|
-
break;
|
|
150
|
-
case "form-control-checkbox":
|
|
151
|
-
if (!customElements.get(tagName)) {
|
|
152
|
-
defineCustomElement$a();
|
|
153
|
-
}
|
|
154
|
-
break;
|
|
155
|
-
case "form-control-help-text":
|
|
156
|
-
if (!customElements.get(tagName)) {
|
|
157
|
-
defineCustomElement$9();
|
|
158
|
-
}
|
|
159
|
-
break;
|
|
160
|
-
case "form-control-radio":
|
|
161
|
-
if (!customElements.get(tagName)) {
|
|
162
|
-
defineCustomElement$8();
|
|
163
|
-
}
|
|
164
|
-
break;
|
|
165
|
-
case "form-control-select":
|
|
166
|
-
if (!customElements.get(tagName)) {
|
|
167
|
-
defineCustomElement$7();
|
|
168
|
-
}
|
|
169
|
-
break;
|
|
170
|
-
case "form-control-text":
|
|
171
|
-
if (!customElements.get(tagName)) {
|
|
172
|
-
defineCustomElement$6();
|
|
173
|
-
}
|
|
174
|
-
break;
|
|
175
|
-
case "form-control-tooltip":
|
|
176
|
-
if (!customElements.get(tagName)) {
|
|
177
|
-
defineCustomElement$5();
|
|
178
|
-
}
|
|
179
|
-
break;
|
|
180
|
-
case "hidden-input":
|
|
181
|
-
if (!customElements.get(tagName)) {
|
|
182
|
-
defineCustomElement$4();
|
|
183
|
-
}
|
|
184
|
-
break;
|
|
185
|
-
case "iframe-input":
|
|
186
|
-
if (!customElements.get(tagName)) {
|
|
187
|
-
defineCustomElement$3();
|
|
188
|
-
}
|
|
189
|
-
break;
|
|
190
|
-
case "justifi-billing-form":
|
|
191
|
-
if (!customElements.get(tagName)) {
|
|
192
|
-
defineCustomElement$2();
|
|
193
|
-
}
|
|
194
|
-
break;
|
|
195
|
-
case "justifi-save-new-payment-method":
|
|
196
|
-
if (!customElements.get(tagName)) {
|
|
197
|
-
defineCustomElement$1();
|
|
198
|
-
}
|
|
199
|
-
break;
|
|
200
|
-
} });
|
|
201
|
-
}
|
|
202
|
-
defineCustomElement();
|
|
203
|
-
|
|
204
|
-
export { NewPaymentMethod as N, defineCustomElement as d };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { C as CardBrandLabels } from './payment-method-option-utils.js';
|
|
3
|
-
import { W as radioListItem } from './parts.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './form-control-help-text2.js';
|
|
5
|
-
import { d as defineCustomElement$1 } from './form-control-radio2.js';
|
|
6
|
-
|
|
7
|
-
const SavedPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SavedPaymentMethod extends HTMLElement {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
12
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
13
|
-
e.preventDefault();
|
|
14
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
18
|
-
var _a;
|
|
19
|
-
if (!insuranceValidation.isValid) {
|
|
20
|
-
return { validationError: true };
|
|
21
|
-
}
|
|
22
|
-
return { token: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id };
|
|
23
|
-
}
|
|
24
|
-
;
|
|
25
|
-
render() {
|
|
26
|
-
var _a, _b, _c;
|
|
27
|
-
return (h(Host, { key: '78487e52f549547f4c89f48a238a8916d77d4f1c', class: "payment-method" }, h("div", { key: 'd437a5f9e79356b1177703da2b5d7f4ca98072ce', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '0dd03b9ebae98c441c63717aba310d77e587b1c8', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
|
|
28
|
-
}
|
|
29
|
-
}, [0, "justifi-saved-payment-method", {
|
|
30
|
-
"paymentMethodOption": [16, "payment-method-option"],
|
|
31
|
-
"isSelected": [4, "is-selected"],
|
|
32
|
-
"resolvePaymentMethod": [64]
|
|
33
|
-
}]);
|
|
34
|
-
function defineCustomElement() {
|
|
35
|
-
if (typeof customElements === "undefined") {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
const components = ["justifi-saved-payment-method", "form-control-help-text", "form-control-radio"];
|
|
39
|
-
components.forEach(tagName => { switch (tagName) {
|
|
40
|
-
case "justifi-saved-payment-method":
|
|
41
|
-
if (!customElements.get(tagName)) {
|
|
42
|
-
customElements.define(tagName, SavedPaymentMethod);
|
|
43
|
-
}
|
|
44
|
-
break;
|
|
45
|
-
case "form-control-help-text":
|
|
46
|
-
if (!customElements.get(tagName)) {
|
|
47
|
-
defineCustomElement$2();
|
|
48
|
-
}
|
|
49
|
-
break;
|
|
50
|
-
case "form-control-radio":
|
|
51
|
-
if (!customElements.get(tagName)) {
|
|
52
|
-
defineCustomElement$1();
|
|
53
|
-
}
|
|
54
|
-
break;
|
|
55
|
-
} });
|
|
56
|
-
}
|
|
57
|
-
defineCustomElement();
|
|
58
|
-
|
|
59
|
-
export { SavedPaymentMethod as S, defineCustomElement as d };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import{C as o,a as r}from"./p-BhrFjjAs.js";import{C as e}from"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as p,a}from"./p-NqdaxjDT.js";import{c,J as n}from"./p-DzPrenCi.js";import{C as h}from"./p-DaS3t0DL.js";import{m,S as u}from"./p-Czro_9VO.js";import{S as j}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{d}from"./p-D3SYNGyb.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CyXXks-Q.js";import"./p-Yj41tobi.js";import"./p-B4MIwTdb.js";import"./p-_6eQgwfE.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){c(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:c,onError:n})=>{var h,m;try{const u=await i.fetchCheckouts(t,s,r);if(u.error)return n({error:a(u.error),code:p(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);c({checkouts:(null===(h=u.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(j,{key:"0e9e50e18983dad43cfab19f2271678d3f5e6abd"},i("checkouts-list-core",{key:"6f128cc756477ff64638625d9a9ff9a5b4533948",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_checkouts_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,r as i,c as t}from"./p-Bta_r52Z.js";import{am as e,aj as r,af as o,t as l}from"./p-_6eQgwfE.js";import{S as d}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-DzPrenCi.js";import{C as h,a as c}from"./p-BhrFjjAs.js";import{B as p}from"./p-BpEw7AJl.js";import{B as u}from"./p-BlJnA265.js";import{m as v}from"./p-DKClunJd.js";import{S as m}from"./p-DOB09NZD.js";import"./p-CBs671Ol.js";import{k as f}from"./p-9REosSLu.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{f as j,e as w,a as x}from"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-7MWRbTXI.js";import{g as y,a as g}from"./p-NqdaxjDT.js";import{T as b}from"./p-YDuIVoos.js";import"./p-CyXXks-Q.js";import"./p-Yj41tobi.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";const B=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(m,{width:"25%"})),s("div",{class:"col-12"},s(m,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(m,{width:"50%"}),s(m,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(m,{width:"65%"}),s(m,{width:"35%"}))),C=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(m,{width:"40%",height:"40px"})),s(B,null)),S=()=>s("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},s("div",{class:"d-flex align-items-center gap-3"},s(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),s("div",{class:"flex-grow-1"},s("div",{class:"d-flex row flex-row"},s("div",{class:"col-6 flex-column"},s(m,null),s(m,{width:"60%"})),s("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},s(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),s(m,{width:"80px",height:"32px"}),s(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),s("div",{class:"mt-4"},s("div",{class:"d-flex flex-column gap-2"},s(m,null),s(m,null)))))),k=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?x.boardingShipping:x.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}handleError(s,i,t){this.error={message:s,code:i,severity:t},this.errorEvent.emit({errorCode:i,message:s,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){v({id:this.businessId,authToken:this.authToken,service:new p})({onSuccess:({business:s})=>{this.business=new u(s),this.loading.business=!1},onError:({error:s,code:i,severity:t})=>{this.handleError(s,i,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:s,authToken:i,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(s,i);if(a.error)return r({error:g(a.error),code:y(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((s=>new j(s))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(s){const i=y(null==s?void 0:s.code);return r({error:s.message||s,code:i,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new b})({onSuccess:({terminals:s,orderLimit:i})=>{this.terminalModels=s,this.orderLimit=i,this.loading.terminals=!1},onError:({error:s,code:i,severity:t})=>{this.handleError(s,i,t),this.loading.terminals=!1}})}submitOrder(){const s=(({authToken:s,service:i,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await i.orderTerminals(s,e,t);if(d.error)return o({error:g(d.error),code:y(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:s}=d;r({data:s})}}catch(s){const i=y(null==s?void 0:s.code);return o({error:s.message||s,code:i,severity:h.ERROR})}})({authToken:this.authToken,service:new b});this.submitting=!0,s({terminalOrder:this.order.payload,onSuccess:({data:s})=>{this.submitted.emit(s),this.submitting=!1},onError:({error:s,code:i,severity:t})=>{this.handleError(s,i,t),this.submitting=!1}})}onSelectedQuantityChange(s){this.order.updateTerminal(s.detail.modelName,s.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return s("div",null,this.loading.business&&s(C,null),this.loading.terminals&&s("div",{class:"mt-5"},s(S,null),s(S,null),s(S,null)))}renderBusinessDetails(){var i,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return s("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},s("div",{class:"row"},s("div",{class:"col-12"},s("h2",{part:r},this.business.legal_name))),s("div",{class:"row"},s("div",{class:"col-6"},s("h5",{part:e},"Representative:"),s("div",null,s("div",null,null===(t=null===(i=this.business)||void 0===i?void 0:i.representative)||void 0===t?void 0:t.name),s("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),s("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),s("div",null,f(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),s("div",{class:"col-6"},s("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),s("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",s("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return s("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((i=>s("terminal-quantity-selector",{modelName:i.model_name,description:i.description,imageUrl:i.image_url,helpUrl:i.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return s("div",{class:"mt-3"},s("div",{class:"text-end"},"Order limit: ",this.orderLimit),s("div",{class:"d-flex justify-content-end mt-3"},s("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return s(d,{key:"80d01331179298720ebc453702a6db644ea51ff4"},s("div",{key:"895f5315bf90607eae80c6cd471d8adcab542d14",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{k as justifi_order_terminals}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as a,c as s,a as r}from"./p-Bta_r52Z.js";import"./p-CBs671Ol.js";import{i,d as o,j as c}from"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-BPCw4WEY.js";import{E as l}from"./p-Ct-uNz2r.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as d}from"./p-yH3TC3ZQ.js";import"./p-XYgDHrVL.js";import{n}from"./p-BnjCmwMr.js";import{Z as f,x as b,ak as h,I as p,al as m,c as u,l as y,b as k,T as j,a as x}from"./p-_6eQgwfE.js";import{S as v}from"./p-DOB09NZD.js";import"./p-CZfYo5-1.js";import{F as _}from"./p-B8Ovjy6S.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const T=class{constructor(t){e(this,t)}render(){return t("div",{key:"a3ff8b1ff23923beb847e66d6c56a39de9a86434",class:"row gy-3"},t("div",{key:"86f9ba3a8f0f87f7fa67ba0fcf1d7c04f67e9bc5",class:"col-12"},t("form-control-file",{key:"9cc2bc21414c8e3f4b25ac47b76340a4ce569c42",name:"voided_check",label:"Voided Check",documentType:l.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"bee72d6c63514cdbd3200910d3a53b045c60d05d",class:"col-12"},t("form-control-file",{key:"80a79f352d078cd210768b4060cad7014b1060c5",name:"bank_statement",label:"Bank Statement",documentType:l.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},g=class{constructor(t){e(this,t)}render(){return t("div",{key:"b18e803521d67b40e4e5af03a66dcdca0b678968",class:"row gy-3"},t("div",{key:"e2e6667ffbcebb6a9aa50739814e7bbebceaabfa",class:"col-12"},t("form-control-text",{key:"e1ad63fb7db32dbb6ed67cf18919c681d6d192ef",name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"54db821813e7eb931b8f19fad7fce976cdeb0045",class:"col-12"},t("form-control-text",{key:"4ecf222c1918e364f319d07e0a770d68dba099d0",name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"a92c38f2abbcb3dcaee4bc5ea73df44b31adc3f9",class:"col-12"},t("form-control-text",{key:"492ff1a4d1e9c4f2fa9d0e527a34dc5ccb09afe6",name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"8e14e6e3de43822d139085d3a05bfd0e7ae5b1be",class:"col-12"},t("form-control-select",{key:"f6648b6f7c4a475f88b849bf3a75d446bb539c69",name:"account_type",label:"Account Type",options:d,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"68a2efc082f5b6414ebde10b6da4365677dbefca",class:"col-12"},t("form-control-text",{key:"3ef9b3db5882063708ccf1eb282f3e90ed53ce82",name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:n,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"e3270db28269bc25dd4d5a99274f042c1efd1fc6",class:"col-12"},t("form-control-text",{key:"a8e801f65a4cc164cdc7bf186fed67f87abc828f",name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:n,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},w=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(v,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:f},t("div",{class:"card-body"},t("h5",{class:"card-title",part:b},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:h},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},i(e.document_type)),t("td",{part:m},`${o(e.created_at)} - ${c(e.created_at)}`))))))))),t("hr",null)):null}},B=class{constructor(t){e(this,t),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.fileSelected=s(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=u;return this.errorText&&(e=k),this.disabled&&(e=j),this.isFocused&&(e=x),e}render(){return t(a,{key:"329fd1cedefedb6bd17acfbb30adfefecefb19ca"},t("div",{key:"abdd1db599e47f367bc56008386026361ee8aa3b",class:"form-group d-flex flex-column"},t("div",{key:"9306d438e038947b68cc3b8b2faa2ab412fab203",class:"d-flex align-items-start gap-2"},t("label",{key:"164c4e92e01d5219013623d0edaa3c96a814ff6c",part:y,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"2d7fe58881cfa259f3d2ba8edbc6f07411ea26c6",helpText:this.helpText})),t("input",{key:"1964930b98527640df99e1e22b6322e0627bc668",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(_,{key:"02ffabfccf4e06936e0ed44fe2ad715f7f44fe3f",errorText:this.errorText,name:this.name})))}get el(){return r(this)}};export{T as bank_account_document_form_inputs,g as bank_account_form_inputs,w as business_documents_on_file,B as form_control_file}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as e,h as t,H as a}from"./p-Bta_r52Z.js";import{$ as i,a0 as h,a1 as r,a2 as c,a3 as o,l as f}from"./p-_6eQgwfE.js";import{F as m}from"./p-Dge4w7_c.js";import{F as n}from"./p-B8Ovjy6S.js";import"./p-CZfYo5-1.js";const b=class{constructor(t){s(this,t),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=s=>{s.preventDefault();const e=s.target,t=e.getAttribute("name");this.inputHandler(t,e.checked),this.formControlInput.emit({name:t,value:e.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?i:this.isFocused&&this.checked?h:this.isFocused?r:this.checked?c:o}render(){return t(a,{key:"a3b0fd8435bde51d1e2e0aaa0e322f10c599d60b"},t("div",{key:"1bf5c142fc98a80f66bb51343bcd2aa8ece2376a",class:"form-group d-flex flex-column"},t("div",{key:"7e006d94b3716d4a93239e4f5e9e5f0058e5f460",class:"form-check"},t("input",{key:"29d7b5552ce996fea4b71be9745372aa6804890f",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),t("label",{key:"9731752e9eabd937800492a9ae9f64a96deebb5a",class:"form-check-label",htmlFor:this.name,part:f},this.label)),t(m,{key:"d333c061d00a23f0ef368e54094989cd7b892229",helpText:this.helpText,name:this.name}),t(n,{key:"ec2734c748e851499d6699e7acb32bb74a04e256",errorText:this.errorText,name:this.name})))}};export{b as form_control_checkbox}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as d,h as e}from"./p-Bta_r52Z.js";import{t as c}from"./p-_6eQgwfE.js";import{f}from"./p-9REosSLu.js";import{s as r}from"./p-D_FOQEGU.js";import{S as a}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";const s=class{constructor(e){d(this,e)}render(){return e(a,{key:"9a2eea1693287ad73dfedd3ddc24e949e9d75148"},e("section",{key:"1943be6cef0c4a1c830ddfc14d893c3906482534"},e("div",{key:"cf3f41d3dd3c9829d93d7e56e3d2dfabbd99ccef"},e("div",{key:"b5bc944a5310252dc0720e3e7d709f1a57f898c8",part:c},null==r?void 0:r.paymentDescription),e("div",{key:"dbe53880d7c3ff8d4513a570e1b024f1e2f43028"},e("span",{key:"d8986a9265463d8f9d7f62598cc4ec3203081c09",part:c},"Total")," ",e("span",{key:"32cbc6e259fdee2c71ad72fcf59ab157704c4758",part:c},f(+(null==r?void 0:r.totalAmount)))))))}};export{s as justifi_checkout_summary}
|