@justifi/webcomponents 5.7.3-rc-02 → 5.7.4-rc-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{check-pkg-version-CgQ8N_ta.js → Analytics-CLEDjTfr.js} +22 -22
- package/dist/cjs/{Api-BTdkb3Zh.js → Api-c8NBCwu4.js} +1 -1
- package/dist/cjs/{Checkout-BTgAlgVL.js → Checkout-BsYZoJ0a.js} +3 -3
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-sO_Hcamo.js → badge-DDksduwk.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
- package/dist/cjs/bank-account-form_7.cjs.entry.js +410 -0
- package/dist/cjs/billing-form-schema-X1bkxteI.js +26 -0
- package/dist/cjs/{business-additional-questions-schema-e3GCIHk5.js → business-additional-questions-schema-C1Ot5vrv.js} +6 -6
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business-identity-schema-Diqj_WVQ.js → business-identity-schema-hk4UVEna.js} +10 -10
- package/dist/cjs/{business.service-DNoCHqtI.js → business.service-BjlK8M6t.js} +2 -2
- package/dist/cjs/{button-CCZd8WSY.js → button-0HYMPryx.js} +1 -1
- package/dist/cjs/{checkout.service-C3R0uykH.js → checkout.service-Bln6jCAj.js} +2 -2
- package/dist/cjs/{checkout.store-osqdxFMq.js → checkout.store-LEOetpmH.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{payments-list-params-state-fVsfZZ5G.js → checkouts-list-params-state-DZUKBmLC.js} +1 -1
- package/dist/cjs/{checkouts-table-C1Jv_A7m.js → checkouts-table-CrpOOe_e.js} +2 -2
- package/dist/cjs/{config-state-BTfJl-LU.js → config-state-Dz9bnWHg.js} +1 -1
- package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper_4.cjs.entry.js} +101 -1
- package/dist/cjs/{dispute.service-CaA-mq-i.js → dispute.service-Bo84yh33.js} +2 -2
- package/dist/cjs/{index.esm-CVuJLXJZ.js → form-CWW8IM-X.js} +10509 -10509
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-error-text-DPDsFdAT.js → form-control-error-text-CVPYL0lE.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-help-text-CT5HzEnX.js → form-control-help-text-B3jRgfoa.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +3 -3
- package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
- package/dist/cjs/{get-payment-details-CnPsEZA8.js → get-payment-details-OrAuseBX.js} +2 -2
- package/dist/cjs/{get-subaccounts-CgOAdXG4.js → get-subaccounts-CoC0XYqj.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +27 -8
- package/dist/cjs/{header-1--wdCXxjA.js → header-1-M-mc3bsa.js} +1 -1
- package/dist/cjs/{header-3-DxUQJ7TT.js → header-3-BnKbOjvz.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +4 -4
- package/dist/cjs/{index-DEMVrrsF.js → index-BCtVWU61.js} +1 -1
- package/dist/cjs/{index-2GwnTbNA.js → index-D5bL1DOi.js} +17 -7
- package/dist/cjs/{insurance-state-BmAF1Sef.js → insurance-state-BsGy_svD.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +22 -22
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +13 -13
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +35 -35
- package/dist/cjs/{bank-account-form.cjs.entry.js → justifi-bank-account-form.cjs.entry.js} +30 -8
- package/dist/cjs/{justifi-billing-information-form_2.cjs.entry.js → justifi-billing-information-form.cjs.entry.js} +7 -60
- package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-business-form.cjs.entry.js +20 -20
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/{card-form.cjs.entry.js → justifi-card-form.cjs.entry.js} +31 -9
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkout-summary.cjs.entry.js +21 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +48 -93
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -13
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -10
- package/dist/cjs/{justifi-checkout-summary_2.cjs.entry.js → justifi-modular-checkout.cjs.entry.js} +13 -26
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +13 -13
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +49 -0
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +21 -21
- package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +31 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +7 -7
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -11
- package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +80 -0
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +12 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-wSbEFwqE.js → package-D89BDRKu.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +6 -6
- package/dist/cjs/{payment.service-C-HKmIG6.js → payment.service-C0t9DRcu.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{payouts-list-params-state-fVsfZZ5G.js → payments-list-params-state-DZUKBmLC.js} +1 -1
- package/dist/cjs/{payments-status-DPqU5v9h.js → payments-status-DG50GuXR.js} +2 -2
- package/dist/cjs/{payments-table-BM3AoAJf.js → payments-table-BqxFc71K.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/{payout.service-BHU3EPR2.js → payout.service-DGeLS8BN.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{checkouts-list-params-state-fVsfZZ5G.js → payouts-list-params-state-DZUKBmLC.js} +1 -1
- package/dist/cjs/{payouts-status-CU8aqIhH.js → payouts-status-meuI7eBr.js} +2 -2
- package/dist/cjs/{payouts-table-1HL4kk9B.js → payouts-table-iT2IauEa.js} +2 -2
- package/dist/cjs/{schema-validations-BSeMee-o.js → schema-validations-CllkToCZ.js} +31 -31
- package/dist/cjs/{skeleton-ByLavxr1.js → skeleton-CbZBGO47.js} +1 -1
- package/dist/cjs/{spinner-DOC4Ab7M.js → spinner-CIZFX7bz.js} +1 -1
- package/dist/cjs/{styled-host-IMxk64cc.js → styled-host-DXNHOiqW.js} +1 -1
- package/dist/cjs/{table-BgQP2M2-.js → table-CxvETNS1.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{terminal-orders-list-params-state-fVsfZZ5G.js → terminal-orders-list-params-state-DZUKBmLC.js} +1 -1
- package/dist/cjs/{terminal-orders-table-C3KZTeE5.js → terminal-orders-table-Dw6uHG1R.js} +4 -4
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-Bc1YJWi0.js → terminal.service-Ck6PIO3G.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +9 -9
- package/dist/cjs/terminals-list-params-state-DZUKBmLC.js +22 -0
- package/dist/cjs/{terminals-table-yRGsrfBw.js → terminals-table-sf-s5v6D.js} +2 -2
- package/dist/cjs/{utils-bn0fXuc-.js → utils-wkdkLmDI.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +5 -2
- package/dist/collection/components/checkout/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout.js +37 -102
- package/dist/collection/components/checkout/new-payment-method.js +2 -2
- package/dist/collection/components/checkout/payment-method-options.js +26 -37
- 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 +2 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +2 -2
- package/dist/collection/components/modular-checkout-parts/bank-account.js +7 -28
- package/dist/collection/components/modular-checkout-parts/card-form.js +8 -29
- package/dist/docs.json +206 -240
- package/dist/esm/{check-pkg-version-BmebRZ4u.js → Analytics-B3nThWuq.js} +22 -22
- package/dist/esm/{Api-CqimcNgb.js → Api-C3T8XYbb.js} +1 -1
- package/dist/esm/{Checkout-CH19cJxH.js → Checkout-CV6qgU0r.js} +3 -3
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-BoemLewg.js → badge-DHaTxWwu.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
- package/dist/esm/bank-account-form_7.entry.js +402 -0
- package/dist/esm/billing-form-schema-BQf2Ydp0.js +24 -0
- package/dist/esm/{business-additional-questions-schema-uQlQ8fXQ.js → business-additional-questions-schema-D00MNMDJ.js} +2 -2
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business-identity-schema-BsrgqgDl.js → business-identity-schema-pxSsAdgG.js} +2 -2
- package/dist/esm/{business.service-wY8gOZQr.js → business.service-BMABw2vX.js} +2 -2
- package/dist/esm/{button-BcLzheaP.js → button-5hc5r__m.js} +2 -2
- package/dist/esm/{checkout.service-Ci9Zkxiz.js → checkout.service-jmweME4d.js} +2 -2
- package/dist/esm/{checkout.store-DQrlfeus.js → checkout.store-Ffl2B_i4.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +10 -10
- package/dist/esm/{checkouts-list-params-state-DhPyCV-V.js → checkouts-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{checkouts-table-ub2cX2KR.js → checkouts-table-BS_UiHaT.js} +3 -3
- package/dist/esm/{config-state-BjXhUj2q.js → config-state-B3mtRA6f.js} +1 -1
- package/dist/esm/{custom-popper_2.entry.js → custom-popper_4.entry.js} +101 -3
- package/dist/esm/{dispute.service-D3IjL7Z8.js → dispute.service-DWQ8DPZa.js} +2 -2
- package/dist/esm/{index.esm-BCNUj0Dx.js → form-BjGUIqxU.js} +10509 -10509
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +4 -4
- package/dist/esm/form-control-date.entry.js +3 -3
- package/dist/esm/{form-control-error-text-C4vfc3el.js → form-control-error-text-C93L7yFm.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/{form-control-help-text-Dsr1zpTw.js → form-control-help-text-p28euWGX.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
- package/dist/esm/form-control-monetary.entry.js +4 -4
- package/dist/esm/form-control-number-masked_2.entry.js +3 -3
- package/dist/esm/form-control-number.entry.js +4 -4
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/{get-payment-details-CmVKt1jR.js → get-payment-details-PSdVeuGc.js} +2 -2
- package/dist/esm/{get-subaccounts-BRX7HFGO.js → get-subaccounts-CownROrO.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +28 -9
- package/dist/esm/{header-1-CmImLcLi.js → header-1-CUc5m0Ge.js} +2 -2
- package/dist/esm/{header-3-BMoxz2Hr.js → header-3-BXU3iN46.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/{index-Cf8VXyXg.js → index-BAq5IUBW.js} +1 -1
- package/dist/esm/{index-Bta_r52Z.js → index-N3w5zrz2.js} +17 -7
- package/dist/esm/{insurance-state-DMexHdvO.js → insurance-state-Br0fBMFI.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +11 -11
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
- package/dist/esm/justifi-additional-statement_8.entry.js +3 -3
- package/dist/esm/{bank-account-form.entry.js → justifi-bank-account-form.entry.js} +31 -9
- package/dist/{module/billing-form2.js → esm/justifi-billing-information-form.entry.js} +18 -61
- package/dist/esm/justifi-business-details.entry.js +10 -10
- package/dist/esm/justifi-business-form.entry.js +17 -17
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/{card-form.entry.js → justifi-card-form.entry.js} +32 -10
- package/dist/esm/justifi-checkout-core.entry.js +10 -10
- package/dist/esm/justifi-checkout-summary.entry.js +19 -0
- package/dist/esm/justifi-checkout.entry.js +47 -92
- package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-checkouts-list.entry.js +14 -14
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +8 -8
- package/dist/esm/justifi-dispute-notification_3.entry.js +12 -12
- package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
- package/dist/esm/{justifi-checkout-summary_2.entry.js → justifi-modular-checkout.entry.js} +12 -24
- package/dist/esm/justifi-order-terminals.entry.js +12 -12
- package/dist/esm/justifi-owner-form_3.entry.js +11 -11
- package/dist/esm/justifi-payment-details.entry.js +11 -11
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
- package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
- package/dist/esm/justifi-payments-list-filters.entry.js +5 -5
- package/dist/esm/justifi-payments-list.entry.js +13 -13
- package/dist/esm/justifi-payout-details.entry.js +10 -10
- package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
- package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +14 -14
- package/dist/esm/justifi-postal-code-form.entry.js +47 -0
- package/dist/esm/justifi-refund-payment.entry.js +14 -14
- package/dist/esm/justifi-saved-payment-methods.entry.js +29 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +8 -8
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -9
- package/dist/{module/sezzle-payment-method.js → esm/justifi-sezzle-payment-method.entry.js} +14 -46
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
- package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
- package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
- package/dist/esm/justifi-terminals-list.entry.js +13 -13
- package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -11
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-CJdXAC5R.js → package-rzqedGq4.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-C71Mxtso.js → parts-_6eQgwfE.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +7 -7
- package/dist/esm/{payment.service-ddFQWXPn.js → payment.service-u8UGq6gX.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +11 -11
- package/dist/esm/{payments-list-params-state-DhPyCV-V.js → payments-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{payments-status-DvsFQolO.js → payments-status-BMqVM0kB.js} +2 -2
- package/dist/esm/{payments-table-CCKeaI5x.js → payments-table-BMIALfY5.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +8 -8
- package/dist/esm/{payout.service-Ws4Pebcz.js → payout.service-CXW3oJqI.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +11 -11
- package/dist/esm/{payouts-list-params-state-DhPyCV-V.js → payouts-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{payouts-status-BkM4Gvme.js → payouts-status-BGGBJaXG.js} +2 -2
- package/dist/esm/{payouts-table-CqBOvPOo.js → payouts-table-BNPc0Z6X.js} +3 -3
- package/dist/esm/{schema-validations-DLWfpHyI.js → schema-validations-C7pC-de1.js} +2 -2
- package/dist/esm/{skeleton-BVM4XTj9.js → skeleton-C0KgFH0Z.js} +2 -2
- package/dist/esm/{spinner-BsxFRVXW.js → spinner-Dtab-HTx.js} +2 -2
- package/dist/esm/{styled-host-BSX_LSdk.js → styled-host-DtvbNFVU.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/{table-DxdC1lXb.js → table-wp341KhD.js} +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +10 -10
- package/dist/esm/{terminal-orders-list-params-state-DhPyCV-V.js → terminal-orders-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{terminal-orders-table-DV7nRYuE.js → terminal-orders-table-CzEC1eXm.js} +5 -5
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-DH8gRG1H.js → terminal.service-Cw0RbYs3.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +10 -10
- package/dist/esm/terminals-list-params-state-DFWVMJRJ.js +16 -0
- package/dist/esm/{terminals-table-DUHel128.js → terminals-table-CcKZ_9re.js} +3 -3
- package/dist/esm/{utils-B-aPFy3u.js → utils-BGp_IJEa.js} +2 -2
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/bank-account-form.js +1 -83
- package/dist/module/{bank-account.js → bank-account-form2.js} +12 -27
- package/dist/module/billing-form.js +19 -25
- package/dist/module/button.js +1 -1
- package/dist/module/card-form.js +1 -91
- package/dist/module/card-form2.js +15 -30
- package/dist/module/checkout-actions.js +58 -0
- package/dist/module/checkout-core.js +268 -0
- package/dist/module/gross-payment-chart-core2.js +24 -5
- package/dist/module/justifi-bank-account-form.js +100 -1
- package/dist/module/justifi-billing-information-form.js +89 -1
- package/dist/module/justifi-card-form.js +108 -1
- package/dist/module/justifi-checkout-core.js +1 -201
- package/dist/module/justifi-checkout-summary.js +32 -1
- package/dist/module/justifi-checkout.js +109 -104
- package/dist/module/justifi-modular-checkout.js +213 -1
- package/dist/module/justifi-new-payment-method.js +1 -214
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-postal-code-form.js +81 -1
- package/dist/module/justifi-saved-payment-method.js +1 -57
- package/dist/module/justifi-saved-payment-methods.js +53 -1
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/justifi-sezzle-payment-method.js +108 -1
- package/dist/module/justifi-tokenize-payment-method.js +74 -8
- package/dist/module/new-payment-method.js +204 -0
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-method-options.js +100 -27
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +59 -0
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/types/components/checkout/checkout.d.ts +9 -19
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -2
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -1
- package/dist/types/components/modular-checkout-parts/bank-account.d.ts +3 -3
- package/dist/types/components/modular-checkout-parts/card-form.d.ts +2 -2
- package/dist/types/components.d.ts +1 -21
- package/dist/webcomponents/{p-badf50e2.entry.js → p-02e39fe2.entry.js} +1 -1
- package/dist/webcomponents/p-03ed0703.entry.js +1 -0
- package/dist/webcomponents/p-042c6784.entry.js +1 -0
- package/dist/webcomponents/p-05ab99e7.entry.js +1 -0
- package/dist/webcomponents/{p-54487455.entry.js → p-05d92d45.entry.js} +1 -1
- package/dist/webcomponents/{p-32d41de6.entry.js → p-0977a99a.entry.js} +1 -1
- package/dist/webcomponents/{p-e2adbafd.entry.js → p-0a7c3741.entry.js} +1 -1
- package/dist/webcomponents/{p-db13afe8.entry.js → p-0d8ebb69.entry.js} +1 -1
- package/dist/webcomponents/{p-114d2d7e.entry.js → p-0ed08f7b.entry.js} +1 -1
- package/dist/webcomponents/{p-dd5c8738.entry.js → p-0fc4a0df.entry.js} +1 -1
- package/dist/webcomponents/p-0lkrqFgg.js +1 -0
- package/dist/webcomponents/p-0wMiAwXe.js +1 -0
- package/dist/webcomponents/{p-c6f6cca0.entry.js → p-1301a9ae.entry.js} +1 -1
- package/dist/webcomponents/{p-b0c7f45a.entry.js → p-15db3b15.entry.js} +1 -1
- package/dist/webcomponents/{p-ed8eb110.entry.js → p-17727dd3.entry.js} +1 -1
- package/dist/webcomponents/p-1a0f21d1.entry.js +1 -0
- package/dist/webcomponents/{p-0d038c74.entry.js → p-31a9d45e.entry.js} +1 -1
- package/dist/webcomponents/p-33bf5d85.entry.js +1 -0
- package/dist/webcomponents/{p-90521984.entry.js → p-4126de9e.entry.js} +1 -1
- package/dist/webcomponents/{p-30b1b0d4.entry.js → p-41dffb12.entry.js} +1 -1
- package/dist/webcomponents/{p-a3245777.entry.js → p-46c0aa2e.entry.js} +1 -1
- package/dist/webcomponents/{p-fe5b7b4c.entry.js → p-4e38dfac.entry.js} +1 -1
- package/dist/webcomponents/{p-e2ac6f48.entry.js → p-4ed62ecf.entry.js} +1 -1
- package/dist/webcomponents/p-5f33350c.entry.js +1 -0
- package/dist/webcomponents/{p-f21e1351.entry.js → p-60abac93.entry.js} +1 -1
- package/dist/webcomponents/{p-ea883d7c.entry.js → p-6286917e.entry.js} +1 -1
- package/dist/webcomponents/p-631bbd5a.entry.js +1 -0
- package/dist/webcomponents/{p-7982b38b.entry.js → p-63e5e6f6.entry.js} +1 -1
- package/dist/webcomponents/{p-20ac139f.entry.js → p-64f047ea.entry.js} +1 -1
- package/dist/webcomponents/{p-28190487.entry.js → p-6d5833b4.entry.js} +1 -1
- package/dist/webcomponents/{p-498ef7fe.entry.js → p-6f6d7a87.entry.js} +1 -1
- package/dist/webcomponents/{p-be676a47.entry.js → p-6ff96203.entry.js} +1 -1
- package/dist/webcomponents/p-716dc79c.entry.js +1 -0
- package/dist/webcomponents/p-738ee098.entry.js +1 -0
- package/dist/webcomponents/{p-655e9c99.entry.js → p-783b70b5.entry.js} +1 -1
- package/dist/webcomponents/{p-0c13f2da.entry.js → p-7a8a06d6.entry.js} +1 -1
- package/dist/webcomponents/{p-62308de3.entry.js → p-7c466cc9.entry.js} +1 -1
- package/dist/webcomponents/{p-4cdc323c.entry.js → p-7c6f2fad.entry.js} +1 -1
- package/dist/webcomponents/p-7e484d46.entry.js +1 -0
- package/dist/webcomponents/{p-b122d960.entry.js → p-83037fd2.entry.js} +1 -1
- package/dist/webcomponents/{p-1d59c747.entry.js → p-84df9f26.entry.js} +1 -1
- package/dist/webcomponents/{p-85b73bd5.entry.js → p-8ba23f7f.entry.js} +1 -1
- package/dist/webcomponents/{p-fa781ff0.entry.js → p-8bb3513f.entry.js} +1 -1
- package/dist/webcomponents/p-8fefebd7.entry.js +1 -0
- package/dist/webcomponents/{p-cbfb26e2.entry.js → p-93a843db.entry.js} +1 -1
- package/dist/webcomponents/p-9b1992ef.entry.js +1 -0
- package/dist/webcomponents/p-9ba825c5.entry.js +1 -0
- package/dist/webcomponents/p-9c6479a4.entry.js +1 -0
- package/dist/webcomponents/{p-ea664ada.entry.js → p-9fe2281c.entry.js} +1 -1
- package/dist/webcomponents/{p-D_FOQEGU.js → p-BByypogb.js} +1 -1
- package/dist/webcomponents/p-BI7GlCtv.js +1 -0
- package/dist/webcomponents/p-BJatoeR1.js +1 -0
- package/dist/webcomponents/p-BKatPL5G.js +1 -0
- package/dist/webcomponents/{p-Cl-Q3cHB.js → p-BXeHgiPz.js} +1 -1
- package/dist/webcomponents/p-BaoXNxnc.js +1 -0
- package/dist/webcomponents/p-BgiXKaf2.js +1 -0
- package/dist/webcomponents/p-BmgpToYI.js +1 -0
- package/dist/webcomponents/{p-1tXUo5Ef.js → p-BnvoOeKL.js} +1 -1
- package/dist/webcomponents/p-Bond4qGX.js +1 -0
- package/dist/webcomponents/p-BooprPq0.js +1 -0
- package/dist/webcomponents/{p-BZAglFez.js → p-C39xg5_f.js} +1 -1
- package/dist/webcomponents/{p-JOSiCHl7.js → p-C8Zhkgm5.js} +1 -1
- package/dist/webcomponents/{p-C8EG4ZSX.js → p-CAdO_ZNx.js} +1 -1
- package/dist/webcomponents/p-CCPoezRw.js +1 -0
- package/dist/webcomponents/p-CKRDBISo.js +1 -0
- package/dist/webcomponents/p-CXLazxt0.js +1 -0
- package/dist/webcomponents/{p-kfHhaHAJ.js → p-CdkOB2ri.js} +1 -1
- package/dist/webcomponents/p-Cf4TMP3p.js +1 -0
- package/dist/webcomponents/{p-CBs671Ol.js → p-CfBKn_Vl.js} +1 -1
- package/dist/webcomponents/p-Cjf9yu8r.js +1 -0
- package/dist/webcomponents/p-Cwt_9Jzb.js +1 -0
- package/dist/webcomponents/p-D5ny0x8_.js +1 -0
- package/dist/webcomponents/p-D7js9xfx.js +1 -0
- package/dist/webcomponents/p-D7uH6T8P.js +1 -0
- package/dist/webcomponents/{p-Yj41tobi.js → p-DHvfrLVU.js} +1 -1
- package/dist/webcomponents/p-DLopwJ61.js +1 -0
- package/dist/webcomponents/p-DRKOMqbX.js +1 -0
- package/dist/webcomponents/{p-DFPGAF4g.js → p-DXJXAroG.js} +1 -1
- package/dist/webcomponents/{p-D3BIZZrc.js → p-Dcbfnfn2.js} +1 -1
- package/dist/webcomponents/{p-_P2I6GdZ.js → p-DhyQbCOq.js} +1 -1
- package/dist/webcomponents/{p-CO90ONTY.js → p-Dqx8L05_.js} +1 -1
- package/dist/webcomponents/p-DyvT8iXz.js +1 -0
- package/dist/webcomponents/p-MNmf3fQL.js +1 -0
- package/dist/webcomponents/p-N3w5zrz2.js +2 -0
- package/dist/webcomponents/{p-DLr6u3Be.js → p-Rx3SLAbu.js} +1 -1
- package/dist/webcomponents/p-Smvec9tp.js +1 -0
- package/dist/webcomponents/p-XTXkuHkQ.js +1 -0
- package/dist/webcomponents/{p-C71Mxtso.js → p-_6eQgwfE.js} +1 -1
- package/dist/webcomponents/{p-7efbe6e6.entry.js → p-a76e0f42.entry.js} +1 -1
- package/dist/webcomponents/{p-f1dcc9c2.entry.js → p-acdf6a5f.entry.js} +1 -1
- package/dist/webcomponents/{p-9a4b9734.entry.js → p-bac895b4.entry.js} +1 -1
- package/dist/webcomponents/p-bc05e051.entry.js +1 -0
- package/dist/webcomponents/p-c102dea5.entry.js +1 -0
- package/dist/webcomponents/{p-95aada97.entry.js → p-c4d2ff85.entry.js} +1 -1
- package/dist/webcomponents/{p-1debe4fc.entry.js → p-cb84a2e6.entry.js} +1 -1
- package/dist/webcomponents/{p-cc7d0b8c.entry.js → p-cdc71a77.entry.js} +1 -1
- package/dist/webcomponents/p-ce242f4c.entry.js +1 -0
- package/dist/webcomponents/p-d0d83153.entry.js +1 -0
- package/dist/webcomponents/{p-cc26a8fa.entry.js → p-d5ada96f.entry.js} +1 -1
- package/dist/webcomponents/p-d81f30f6.entry.js +1 -0
- package/dist/webcomponents/p-d90e981c.entry.js +1 -0
- package/dist/webcomponents/{p-a8f1165e.entry.js → p-da961813.entry.js} +1 -1
- package/dist/webcomponents/{p-d5f95784.entry.js → p-dadd593a.entry.js} +1 -1
- package/dist/webcomponents/{p-f0a849be.entry.js → p-de969ec7.entry.js} +1 -1
- package/dist/webcomponents/p-e3437894.entry.js +1 -0
- package/dist/webcomponents/p-eb6f1a3f.entry.js +1 -0
- package/dist/webcomponents/p-ebc0b06d.entry.js +1 -0
- package/dist/webcomponents/p-ecfab304.entry.js +1 -0
- package/dist/webcomponents/{p-93564eb7.entry.js → p-ef520bb8.entry.js} +1 -1
- package/dist/webcomponents/{p-31b3575b.entry.js → p-efa7aef1.entry.js} +1 -1
- package/dist/webcomponents/{p-B1jCcGW-.js → p-eilUGO3o.js} +1 -1
- package/dist/webcomponents/p-fd7c5ac5.entry.js +1 -0
- package/dist/webcomponents/{p-c1dabcc9.entry.js → p-feea4bfd.entry.js} +6 -6
- package/dist/webcomponents/p-jA8bbxkp.js +1 -0
- package/dist/webcomponents/{p-BEDtXmpq.js → p-o5iASgog.js} +1 -1
- package/dist/webcomponents/p-rzqedGq4.js +1 -0
- package/dist/webcomponents/p-w128-0Mj.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/form-control-select_2.cjs.entry.js +0 -105
- package/dist/cjs/justifi-bank-account-form_4.cjs.entry.js +0 -234
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +0 -99
- package/dist/cjs/justifi-payment-method-options_3.cjs.entry.js +0 -166
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +0 -32
- package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +0 -22
- package/dist/esm/form-control-select_2.entry.js +0 -102
- package/dist/esm/justifi-bank-account-form_4.entry.js +0 -229
- package/dist/esm/justifi-billing-information-form_2.entry.js +0 -100
- package/dist/esm/justifi-new-payment-method.entry.js +0 -97
- package/dist/esm/justifi-payment-method-options_3.entry.js +0 -162
- package/dist/esm/justifi-saved-payment-method.entry.js +0 -30
- package/dist/esm/terminals-list-params-state-DhPyCV-V.js +0 -16
- package/dist/module/header-3.js +0 -8
- package/dist/module/modular-checkout.js +0 -269
- package/dist/module/postal-code-form.js +0 -83
- package/dist/module/saved-payment-methods.js +0 -55
- package/dist/module/summary.js +0 -34
- package/dist/webcomponents/p-07e8c50a.entry.js +0 -1
- package/dist/webcomponents/p-0d24f707.entry.js +0 -1
- package/dist/webcomponents/p-0f07e5d2.entry.js +0 -1
- package/dist/webcomponents/p-16c567ac.entry.js +0 -1
- package/dist/webcomponents/p-3523e4d2.entry.js +0 -1
- package/dist/webcomponents/p-3c172b0a.entry.js +0 -1
- package/dist/webcomponents/p-55b2ccd4.entry.js +0 -1
- package/dist/webcomponents/p-56368e10.entry.js +0 -1
- package/dist/webcomponents/p-6ae0dad9.entry.js +0 -1
- package/dist/webcomponents/p-6ed72565.entry.js +0 -1
- package/dist/webcomponents/p-803b249d.entry.js +0 -1
- package/dist/webcomponents/p-819c5da9.entry.js +0 -1
- package/dist/webcomponents/p-8a2d963a.entry.js +0 -1
- package/dist/webcomponents/p-BRvTM0jE.js +0 -1
- package/dist/webcomponents/p-BdTK0wi9.js +0 -1
- package/dist/webcomponents/p-BeOlrj_S.js +0 -1
- package/dist/webcomponents/p-BjIcn6FF.js +0 -1
- package/dist/webcomponents/p-BoGb-Wsw.js +0 -1
- package/dist/webcomponents/p-Bta_r52Z.js +0 -2
- package/dist/webcomponents/p-BvkP2v3x.js +0 -1
- package/dist/webcomponents/p-C8rAwXW9.js +0 -1
- package/dist/webcomponents/p-CA9D3qnA.js +0 -1
- package/dist/webcomponents/p-CDTncSrX.js +0 -1
- package/dist/webcomponents/p-CGCMYhyV.js +0 -1
- package/dist/webcomponents/p-CJdXAC5R.js +0 -1
- package/dist/webcomponents/p-CbGBEkk3.js +0 -1
- package/dist/webcomponents/p-DHP6oxsO.js +0 -1
- package/dist/webcomponents/p-DT6jDcoi.js +0 -1
- package/dist/webcomponents/p-DVnVdicA.js +0 -1
- package/dist/webcomponents/p-DX1Drndq.js +0 -1
- package/dist/webcomponents/p-Db-JSm6-.js +0 -1
- package/dist/webcomponents/p-Dc10zfEZ.js +0 -1
- package/dist/webcomponents/p-DnX5CZFd.js +0 -1
- package/dist/webcomponents/p-Dw516k9e.js +0 -1
- package/dist/webcomponents/p-DwxSNAz7.js +0 -1
- package/dist/webcomponents/p-Fa3dQnb9.js +0 -1
- package/dist/webcomponents/p-IrS5pxMU.js +0 -1
- package/dist/webcomponents/p-RadC5UjV.js +0 -1
- package/dist/webcomponents/p-SuXHDcwL.js +0 -1
- package/dist/webcomponents/p-abcde13f.entry.js +0 -1
- package/dist/webcomponents/p-bf9afbe6.entry.js +0 -1
- package/dist/webcomponents/p-c4989fc1.entry.js +0 -1
- package/dist/webcomponents/p-cc5dfa3d.entry.js +0 -1
- package/dist/webcomponents/p-d039c1ea.entry.js +0 -1
- package/dist/webcomponents/p-d6tXI5Iw.js +0 -1
- package/dist/webcomponents/p-dad85acd.entry.js +0 -1
- package/dist/webcomponents/p-f165c5fc.entry.js +0 -1
- package/dist/webcomponents/p-f2d283e5.entry.js +0 -1
- package/dist/webcomponents/p-f55f054a.entry.js +0 -1
- package/dist/webcomponents/p-f7ae2df8.entry.js +0 -1
- package/dist/webcomponents/p-f7ef66ba.entry.js +0 -1
- package/dist/webcomponents/p-f8750427.entry.js +0 -1
- package/dist/webcomponents/p-uLUlLQpP.js +0 -1
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement,
|
|
1
|
+
import { h, proxyCustomElement, HTMLElement, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, F as FormController } from './form.js';
|
|
3
3
|
import { c as postalValidation, d as stateValidation, e as cityValidation, l as lineTwoValidation, f as lineOneValidation, i as identityNameValidation } from './schema-validations.js';
|
|
4
|
-
import {
|
|
5
|
-
import { H as Header3 } from './header-3.js';
|
|
4
|
+
import { U as heading3, $ as billingForm } from './parts.js';
|
|
6
5
|
import './details.js';
|
|
7
6
|
import './event-types.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { d as defineCustomElement$4 } from './
|
|
11
|
-
import { d as defineCustomElement$3 } from './form-control-
|
|
12
|
-
import { d as defineCustomElement$2 } from './
|
|
13
|
-
import { d as defineCustomElement$1 } from './
|
|
7
|
+
import { n as numberOnlyHandler } from './utils3.js';
|
|
8
|
+
import { S as StateOptions } from './state-options.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './custom-popper2.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
12
|
+
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
13
|
+
|
|
14
|
+
const Header3 = (props) => {
|
|
15
|
+
return h("h3", { class: `header-3 ${props === null || props === void 0 ? void 0 : props.class}`, part: heading3 }, props.text);
|
|
16
|
+
};
|
|
14
17
|
|
|
15
18
|
const billingFormSchema = (postalOnly) => {
|
|
16
19
|
const fullBillingForm = create$3({
|
|
@@ -69,8 +72,9 @@ const BillingForm = /*@__PURE__*/ proxyCustomElement(class BillingForm extends H
|
|
|
69
72
|
return { isValid, errors };
|
|
70
73
|
}
|
|
71
74
|
render() {
|
|
75
|
+
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
72
76
|
const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
|
|
73
|
-
return (h("div", { key: '
|
|
77
|
+
return (h(Host, { key: 'ffffb2d8a4571222645d3c47eb1e2286b8597140' }, h("div", { key: '69b4f6c623cacbf32a30a9b9f23c3de427835c25', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '96c0781a9b3dd7c5ef0b75ac8667664fee0bd95e', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '97380a90146a9732594f1c356fab952089280f99' }, h("fieldset", { key: 'fd8bbea485c10633f1d8cca62b222a8abb0d022f' }, this.legend && h("legend", { key: '8febee534a2d055093309e8f8f06078b0b35f4e4' }, this.legend), h("div", { key: '16ac8abe899cdb964d83322fa74cb00f737ab338', class: "row gy-3" }, h("div", { key: '866f73c45b807aeeea4e6addf4de5f2d3a1a232d', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '1734b2aac3eb0508f9ae2e4bf41836fc5dd71cad', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '569c0dc60b47d3e9077af401b720d7777c903bde', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '74406a7f4efde53a41141a218d246408c4807fc8', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: 'a7f3b7f137b0dd6a92cce6999ef65f13bcff4a31', class: "col-12", hidden: this.isPostalOnlyMode }, 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 })), h("div", { key: '3a9031a0ddbea7e1020c420cdd6811ea9c86b9e4', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '730b395bb97c349a63f669669830cbce6ba86f83', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '7998420d30b1957a086303862f7200f20541ead2', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'b94b623a26891646957f25e59cb03038a989eabf', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '7b0d6eae7eb90f4b33b3e73f920b6ea25920f809', class: "col-12", hidden: this.hideAllBillingFields }, 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: numberOnlyHandler }))))))));
|
|
74
78
|
}
|
|
75
79
|
}, [0, "justifi-billing-form", {
|
|
76
80
|
"legend": [1025],
|
|
@@ -88,7 +92,7 @@ function defineCustomElement() {
|
|
|
88
92
|
if (typeof customElements === "undefined") {
|
|
89
93
|
return;
|
|
90
94
|
}
|
|
91
|
-
const components = ["justifi-billing-form", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip"
|
|
95
|
+
const components = ["justifi-billing-form", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip"];
|
|
92
96
|
components.forEach(tagName => { switch (tagName) {
|
|
93
97
|
case "justifi-billing-form":
|
|
94
98
|
if (!customElements.get(tagName)) {
|
|
@@ -96,31 +100,21 @@ function defineCustomElement() {
|
|
|
96
100
|
}
|
|
97
101
|
break;
|
|
98
102
|
case "custom-popper":
|
|
99
|
-
if (!customElements.get(tagName)) {
|
|
100
|
-
defineCustomElement$6();
|
|
101
|
-
}
|
|
102
|
-
break;
|
|
103
|
-
case "form-control-select":
|
|
104
|
-
if (!customElements.get(tagName)) {
|
|
105
|
-
defineCustomElement$5();
|
|
106
|
-
}
|
|
107
|
-
break;
|
|
108
|
-
case "form-control-text":
|
|
109
103
|
if (!customElements.get(tagName)) {
|
|
110
104
|
defineCustomElement$4();
|
|
111
105
|
}
|
|
112
106
|
break;
|
|
113
|
-
case "form-control-
|
|
107
|
+
case "form-control-select":
|
|
114
108
|
if (!customElements.get(tagName)) {
|
|
115
109
|
defineCustomElement$3();
|
|
116
110
|
}
|
|
117
111
|
break;
|
|
118
|
-
case "
|
|
112
|
+
case "form-control-text":
|
|
119
113
|
if (!customElements.get(tagName)) {
|
|
120
114
|
defineCustomElement$2();
|
|
121
115
|
}
|
|
122
116
|
break;
|
|
123
|
-
case "
|
|
117
|
+
case "form-control-tooltip":
|
|
124
118
|
if (!customElements.get(tagName)) {
|
|
125
119
|
defineCustomElement$1();
|
|
126
120
|
}
|
|
@@ -129,4 +123,4 @@ function defineCustomElement() {
|
|
|
129
123
|
}
|
|
130
124
|
defineCustomElement();
|
|
131
125
|
|
|
132
|
-
export { BillingForm as B, defineCustomElement as d };
|
|
126
|
+
export { BillingForm as B, Header3 as H, defineCustomElement as d };
|
package/dist/module/button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { a0 as buttonSecondary, a1 as buttonPrimary, a2 as buttonLoading } from './parts.js';
|
|
3
3
|
|
|
4
4
|
const ButtonSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status", part: "button-spinner" },
|
|
5
5
|
h("span", { class: "visually-hidden" }, "Loading...")));
|
package/dist/module/card-form.js
CHANGED
|
@@ -1,94 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as Skeleton } from './skeleton.js';
|
|
3
|
-
import { w as waitForConfig, c as configState } from './config-state.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './iframe-input2.js';
|
|
5
|
-
|
|
6
|
-
const CardFormSkeleton = (props) => {
|
|
7
|
-
const { isReady } = props;
|
|
8
|
-
if (isReady) {
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
return (h("div", { class: "container-fluid p-0" },
|
|
12
|
-
h("div", { class: "mb-3" },
|
|
13
|
-
h(Skeleton, { height: "18px", width: "100px" }),
|
|
14
|
-
h(Skeleton, { height: "36px" })),
|
|
15
|
-
h("div", { class: "row" },
|
|
16
|
-
h("div", { class: "col-4 align-content-end" },
|
|
17
|
-
h(Skeleton, { height: "18px", width: "80px" }),
|
|
18
|
-
h(Skeleton, { height: "36px" })),
|
|
19
|
-
h("div", { class: "col-4 align-content-end" },
|
|
20
|
-
h(Skeleton, { height: "36px" })),
|
|
21
|
-
h("div", { class: "col-4 align-content-end" },
|
|
22
|
-
h(Skeleton, { height: "18px", width: "30px" }),
|
|
23
|
-
h(Skeleton, { height: "36px" })))));
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const CardForm$1 = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLElement {
|
|
27
|
-
constructor() {
|
|
28
|
-
super();
|
|
29
|
-
this.__registerHost();
|
|
30
|
-
this.isReady = false;
|
|
31
|
-
}
|
|
32
|
-
async componentWillLoad() {
|
|
33
|
-
await waitForConfig();
|
|
34
|
-
this.iframeOrigin = configState.iframeOrigin;
|
|
35
|
-
}
|
|
36
|
-
componentDidRender() {
|
|
37
|
-
const elements = [
|
|
38
|
-
this.cardNumberIframeElement,
|
|
39
|
-
this.expirationMonthIframeElement,
|
|
40
|
-
this.expirationYearIframeElement,
|
|
41
|
-
this.cvvIframeElement,
|
|
42
|
-
];
|
|
43
|
-
Promise.all(elements.map((element) => {
|
|
44
|
-
return new Promise((resolve) => {
|
|
45
|
-
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
46
|
-
});
|
|
47
|
-
})).then(() => {
|
|
48
|
-
this.isReady = true;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
async validate() {
|
|
52
|
-
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
53
|
-
const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
|
|
54
|
-
const expirationYearIsValid = await this.expirationYearIframeElement.validate();
|
|
55
|
-
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
56
|
-
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
57
|
-
}
|
|
58
|
-
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
59
|
-
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
return (h(Host, { key: 'c43351c7ab1eb6bf413f162634f55007798bb076' }, h(CardFormSkeleton, { key: 'f0a29497de2270108868e892d666b552dea27a1e', isReady: this.isReady }), h("div", { key: '2734b111c1f2f2275435d2141445ac30482946be', class: "container-fluid p-0", style: {
|
|
63
|
-
opacity: this.isReady ? '1' : '0',
|
|
64
|
-
height: this.isReady ? 'auto' : '0',
|
|
65
|
-
} }, h("div", { key: '036c359caaf8fc36fa6ba56bbcad5d01de1fe9c9', class: "mb-3" }, h("iframe-input", { key: '9baf7dc76ff18f8dee6e6cd08b93e1ba155d5cf2', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: 'cd54e4a30da50cfe5151b557fe1d92ebb483ad7e', class: "row" }, h("div", { key: '6b3e84079d606a6ffd5580deae0d6e4563d4c7ef', class: "col-4 align-content-end" }, h("iframe-input", { key: '9ea2ad1c93ca90bbb4bc7a4c83a72e8f4cc9da61', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '9478f77f64decfcdfd77f888d54cb37f46ad8ab7', class: "col-4 align-content-end" }, h("iframe-input", { key: '43191d41eb743e0c509236ea316c1afb180b8fbb', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: '65599647fc750e6c62fb2866190ffa87689d8a5b', class: "col-4 align-content-end" }, h("iframe-input", { key: 'df367f3143aaff25ba9147698090ccbcea902cbf', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
66
|
-
}
|
|
67
|
-
}, [0, "card-form", {
|
|
68
|
-
"isReady": [32],
|
|
69
|
-
"iframeOrigin": [32],
|
|
70
|
-
"validate": [64],
|
|
71
|
-
"tokenize": [64]
|
|
72
|
-
}]);
|
|
73
|
-
function defineCustomElement$1() {
|
|
74
|
-
if (typeof customElements === "undefined") {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const components = ["card-form", "iframe-input"];
|
|
78
|
-
components.forEach(tagName => { switch (tagName) {
|
|
79
|
-
case "card-form":
|
|
80
|
-
if (!customElements.get(tagName)) {
|
|
81
|
-
customElements.define(tagName, CardForm$1);
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
case "iframe-input":
|
|
85
|
-
if (!customElements.get(tagName)) {
|
|
86
|
-
defineCustomElement$2();
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
} });
|
|
90
|
-
}
|
|
91
|
-
defineCustomElement$1();
|
|
1
|
+
import { C as CardForm$1, d as defineCustomElement$1 } from './card-form2.js';
|
|
92
2
|
|
|
93
3
|
const CardForm = CardForm$1;
|
|
94
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
1
|
+
import { h, proxyCustomElement, HTMLElement, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { S as Skeleton } from './skeleton.js';
|
|
3
|
-
import './
|
|
4
|
-
import './event-types.js';
|
|
5
|
-
import { S as StyledHost } from './styled-host.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
7
|
-
import { d as defineCustomElement$2 } from './hidden-input2.js';
|
|
3
|
+
import { w as waitForConfig, c as configState } from './config-state.js';
|
|
8
4
|
import { d as defineCustomElement$1 } from './iframe-input2.js';
|
|
9
5
|
|
|
10
6
|
const CardFormSkeleton = (props) => {
|
|
@@ -27,17 +23,15 @@ const CardFormSkeleton = (props) => {
|
|
|
27
23
|
h(Skeleton, { height: "36px" })))));
|
|
28
24
|
};
|
|
29
25
|
|
|
30
|
-
const
|
|
26
|
+
const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLElement {
|
|
31
27
|
constructor() {
|
|
32
28
|
super();
|
|
33
29
|
this.__registerHost();
|
|
34
|
-
this.__attachShadow();
|
|
35
|
-
this.iframeOrigin = "https://components.justifi.ai";
|
|
36
30
|
this.isReady = false;
|
|
37
31
|
}
|
|
38
|
-
componentWillLoad() {
|
|
39
|
-
|
|
40
|
-
this.
|
|
32
|
+
async componentWillLoad() {
|
|
33
|
+
await waitForConfig();
|
|
34
|
+
this.iframeOrigin = configState.iframeOrigin;
|
|
41
35
|
}
|
|
42
36
|
componentDidRender() {
|
|
43
37
|
const elements = [
|
|
@@ -54,10 +48,6 @@ const JustifiCardForm = /*@__PURE__*/ proxyCustomElement(class JustifiCardForm e
|
|
|
54
48
|
this.isReady = true;
|
|
55
49
|
});
|
|
56
50
|
}
|
|
57
|
-
disconnectedCallback() {
|
|
58
|
-
var _a;
|
|
59
|
-
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
60
|
-
}
|
|
61
51
|
async validate() {
|
|
62
52
|
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
63
53
|
const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
|
|
@@ -65,18 +55,18 @@ const JustifiCardForm = /*@__PURE__*/ proxyCustomElement(class JustifiCardForm e
|
|
|
65
55
|
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
66
56
|
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
67
57
|
}
|
|
68
|
-
async tokenize(
|
|
58
|
+
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
69
59
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
70
60
|
}
|
|
71
61
|
render() {
|
|
72
|
-
return (h(
|
|
62
|
+
return (h(Host, { key: 'c43351c7ab1eb6bf413f162634f55007798bb076' }, h(CardFormSkeleton, { key: 'f0a29497de2270108868e892d666b552dea27a1e', isReady: this.isReady }), h("div", { key: '2734b111c1f2f2275435d2141445ac30482946be', class: "container-fluid p-0", style: {
|
|
73
63
|
opacity: this.isReady ? '1' : '0',
|
|
74
64
|
height: this.isReady ? 'auto' : '0',
|
|
75
|
-
} }, h("div", { key: '
|
|
65
|
+
} }, h("div", { key: '036c359caaf8fc36fa6ba56bbcad5d01de1fe9c9', class: "mb-3" }, h("iframe-input", { key: '9baf7dc76ff18f8dee6e6cd08b93e1ba155d5cf2', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '080769719aa9b0d6abc9b18c46247eecd6428833', class: "d-flex align-items-start" }, h("div", { key: 'b3a825ed849ec0032d4a9018537f8ffab4b93ca3', class: "flex-fill me-3" }, h("iframe-input", { key: '5f60eb2d3b3e1303e1a0f6a3f0cd60270bb2d0b8', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Exp. Month", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: 'cfd000502f10593b59608e13f5de7911c546d030', class: "flex-fill me-3" }, h("iframe-input", { key: 'ab2a45264fe5890c171d03000f30720eafe354b5', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "Exp. Year", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: '637516bfd8030e56c9b1e97edfd3a635edb95f20', class: "flex-fill" }, h("iframe-input", { key: 'e407cc2470841fe12b1bdb84bbc8ecfb0165c72d', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
76
66
|
}
|
|
77
|
-
}, [
|
|
78
|
-
"iframeOrigin": [1, "iframe-origin"],
|
|
67
|
+
}, [0, "card-form", {
|
|
79
68
|
"isReady": [32],
|
|
69
|
+
"iframeOrigin": [32],
|
|
80
70
|
"validate": [64],
|
|
81
71
|
"tokenize": [64]
|
|
82
72
|
}]);
|
|
@@ -84,16 +74,11 @@ function defineCustomElement() {
|
|
|
84
74
|
if (typeof customElements === "undefined") {
|
|
85
75
|
return;
|
|
86
76
|
}
|
|
87
|
-
const components = ["
|
|
77
|
+
const components = ["card-form", "iframe-input"];
|
|
88
78
|
components.forEach(tagName => { switch (tagName) {
|
|
89
|
-
case "
|
|
90
|
-
if (!customElements.get(tagName)) {
|
|
91
|
-
customElements.define(tagName, JustifiCardForm);
|
|
92
|
-
}
|
|
93
|
-
break;
|
|
94
|
-
case "hidden-input":
|
|
79
|
+
case "card-form":
|
|
95
80
|
if (!customElements.get(tagName)) {
|
|
96
|
-
|
|
81
|
+
customElements.define(tagName, CardForm);
|
|
97
82
|
}
|
|
98
83
|
break;
|
|
99
84
|
case "iframe-input":
|
|
@@ -105,4 +90,4 @@ function defineCustomElement() {
|
|
|
105
90
|
}
|
|
106
91
|
defineCustomElement();
|
|
107
92
|
|
|
108
|
-
export {
|
|
93
|
+
export { CardForm as C, defineCustomElement as d };
|
|
@@ -0,0 +1,58 @@
|
|
|
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 };
|
|
@@ -0,0 +1,268 @@
|
|
|
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 };
|