@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
|
@@ -12,11 +12,22 @@ import './Payment.js';
|
|
|
12
12
|
import './Refund.js';
|
|
13
13
|
import './Business.js';
|
|
14
14
|
import { s as state } from './checkout.store.js';
|
|
15
|
-
import { d as defineCustomElement$
|
|
16
|
-
import { d as defineCustomElement$
|
|
15
|
+
import { d as defineCustomElement$h } from './bank-account-form2.js';
|
|
16
|
+
import { d as defineCustomElement$g } from './card-form2.js';
|
|
17
|
+
import { d as defineCustomElement$f } from './custom-popper2.js';
|
|
18
|
+
import { d as defineCustomElement$e } from './form-control-checkbox2.js';
|
|
19
|
+
import { d as defineCustomElement$d } from './form-control-help-text2.js';
|
|
20
|
+
import { d as defineCustomElement$c } from './form-control-radio2.js';
|
|
21
|
+
import { d as defineCustomElement$b } from './form-control-select2.js';
|
|
22
|
+
import { d as defineCustomElement$a } from './form-control-text2.js';
|
|
23
|
+
import { d as defineCustomElement$9 } from './form-control-tooltip2.js';
|
|
24
|
+
import { d as defineCustomElement$8 } from './hidden-input2.js';
|
|
25
|
+
import { d as defineCustomElement$7 } from './iframe-input2.js';
|
|
26
|
+
import { d as defineCustomElement$6 } from './billing-form.js';
|
|
27
|
+
import { d as defineCustomElement$5 } from './new-payment-method.js';
|
|
17
28
|
import { d as defineCustomElement$4 } from './payment-method-options.js';
|
|
18
|
-
import { d as defineCustomElement$3 } from './
|
|
19
|
-
import { d as defineCustomElement$2 } from './
|
|
29
|
+
import { d as defineCustomElement$3 } from './save-new-payment-method.js';
|
|
30
|
+
import { d as defineCustomElement$2 } from './saved-payment-method.js';
|
|
20
31
|
|
|
21
32
|
const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePaymentMethod extends HTMLElement {
|
|
22
33
|
constructor() {
|
|
@@ -99,19 +110,74 @@ function defineCustomElement$1() {
|
|
|
99
110
|
if (typeof customElements === "undefined") {
|
|
100
111
|
return;
|
|
101
112
|
}
|
|
102
|
-
const components = ["justifi-tokenize-payment-method", "form-control-help-text", "form-control-radio", "justifi-payment-method-options", "justifi-
|
|
113
|
+
const components = ["justifi-tokenize-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-new-payment-method", "justifi-payment-method-options", "justifi-save-new-payment-method", "justifi-saved-payment-method"];
|
|
103
114
|
components.forEach(tagName => { switch (tagName) {
|
|
104
115
|
case "justifi-tokenize-payment-method":
|
|
105
116
|
if (!customElements.get(tagName)) {
|
|
106
117
|
customElements.define(tagName, TokenizePaymentMethod);
|
|
107
118
|
}
|
|
108
119
|
break;
|
|
120
|
+
case "bank-account-form":
|
|
121
|
+
if (!customElements.get(tagName)) {
|
|
122
|
+
defineCustomElement$h();
|
|
123
|
+
}
|
|
124
|
+
break;
|
|
125
|
+
case "card-form":
|
|
126
|
+
if (!customElements.get(tagName)) {
|
|
127
|
+
defineCustomElement$g();
|
|
128
|
+
}
|
|
129
|
+
break;
|
|
130
|
+
case "custom-popper":
|
|
131
|
+
if (!customElements.get(tagName)) {
|
|
132
|
+
defineCustomElement$f();
|
|
133
|
+
}
|
|
134
|
+
break;
|
|
135
|
+
case "form-control-checkbox":
|
|
136
|
+
if (!customElements.get(tagName)) {
|
|
137
|
+
defineCustomElement$e();
|
|
138
|
+
}
|
|
139
|
+
break;
|
|
109
140
|
case "form-control-help-text":
|
|
110
141
|
if (!customElements.get(tagName)) {
|
|
111
|
-
defineCustomElement$
|
|
142
|
+
defineCustomElement$d();
|
|
112
143
|
}
|
|
113
144
|
break;
|
|
114
145
|
case "form-control-radio":
|
|
146
|
+
if (!customElements.get(tagName)) {
|
|
147
|
+
defineCustomElement$c();
|
|
148
|
+
}
|
|
149
|
+
break;
|
|
150
|
+
case "form-control-select":
|
|
151
|
+
if (!customElements.get(tagName)) {
|
|
152
|
+
defineCustomElement$b();
|
|
153
|
+
}
|
|
154
|
+
break;
|
|
155
|
+
case "form-control-text":
|
|
156
|
+
if (!customElements.get(tagName)) {
|
|
157
|
+
defineCustomElement$a();
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
160
|
+
case "form-control-tooltip":
|
|
161
|
+
if (!customElements.get(tagName)) {
|
|
162
|
+
defineCustomElement$9();
|
|
163
|
+
}
|
|
164
|
+
break;
|
|
165
|
+
case "hidden-input":
|
|
166
|
+
if (!customElements.get(tagName)) {
|
|
167
|
+
defineCustomElement$8();
|
|
168
|
+
}
|
|
169
|
+
break;
|
|
170
|
+
case "iframe-input":
|
|
171
|
+
if (!customElements.get(tagName)) {
|
|
172
|
+
defineCustomElement$7();
|
|
173
|
+
}
|
|
174
|
+
break;
|
|
175
|
+
case "justifi-billing-form":
|
|
176
|
+
if (!customElements.get(tagName)) {
|
|
177
|
+
defineCustomElement$6();
|
|
178
|
+
}
|
|
179
|
+
break;
|
|
180
|
+
case "justifi-new-payment-method":
|
|
115
181
|
if (!customElements.get(tagName)) {
|
|
116
182
|
defineCustomElement$5();
|
|
117
183
|
}
|
|
@@ -121,12 +187,12 @@ function defineCustomElement$1() {
|
|
|
121
187
|
defineCustomElement$4();
|
|
122
188
|
}
|
|
123
189
|
break;
|
|
124
|
-
case "justifi-
|
|
190
|
+
case "justifi-save-new-payment-method":
|
|
125
191
|
if (!customElements.get(tagName)) {
|
|
126
192
|
defineCustomElement$3();
|
|
127
193
|
}
|
|
128
194
|
break;
|
|
129
|
-
case "justifi-
|
|
195
|
+
case "justifi-saved-payment-method":
|
|
130
196
|
if (!customElements.get(tagName)) {
|
|
131
197
|
defineCustomElement$2();
|
|
132
198
|
}
|
|
@@ -0,0 +1,204 @@
|
|
|
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 };
|
package/dist/module/package.js
CHANGED
package/dist/module/parts.js
CHANGED
|
@@ -128,4 +128,4 @@ const orderTypeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam}
|
|
|
128
128
|
const createdAfterTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-after-terminal-orders-list-filter-param`;
|
|
129
129
|
const createdBeforeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-before-terminal-orders-list-filter-param`;
|
|
130
130
|
|
|
131
|
-
export {
|
|
131
|
+
export { billingForm as $, badgeWarning as A, badgeDanger as B, badgeSuccess as C, badgeSecondary as D, badgePrimary as E, badge as F, alertDanger as G, inputCheckboxInvalid as H, inputCheckboxCheckedFocused as I, inputCheckboxFocused as J, inputCheckboxChecked as K, inputCheckbox as L, inputAdornment as M, inputGroup as N, inputRadioInvalid as O, inputRadioCheckedFocused as P, inputRadioChecked as Q, inputRadioFocused as R, inputRadio as S, inputInvalidAndFocused as T, heading3 as U, checkoutSummary as V, radioListItem as W, heading4 as X, image as Y, buttonLink as Z, heading5 as _, heading1 as a, buttonSecondary as a0, buttonPrimary as a1, buttonLoading as a2, checkoutsListFilterMenu as a3, statusCheckoutsListFilterParam as a4, paymentModeCheckoutsListFilterParam as a5, dropdownMenuButton as a6, dropdownMenu as a7, getAlternateTableCellPart as a8, paymentsListFilterMenu as a9, paymentIdPaymentsListFilterParam as aa, terminalIdPaymentsListFilterParam as ab, paymentStatusPaymentsListFilterParam as ac, createdAfterPaymentsListFilterParam as ad, createdBeforePaymentsListFilterParam as ae, payoutsListFilterMenu as af, createdAfterPayoutsListFilterParam as ag, createdBeforePayoutsListFilterParam as ah, terminalOrdersListFilterMenu as ai, orderStatusTerminalOrdersListFilterParam as aj, orderTypeTerminalOrdersListFilterParam as ak, createdAfterTerminalOrdersListFilterParam as al, createdBeforeTerminalOrdersListFilterParam as am, terminalsListFilterMenu as an, terminalIdTerminalsListFilterParam as ao, terminalOrderIdTerminalsListFilterParam as ap, terminalStatusTerminalsListFilterParam as aq, tableHead as ar, tableHeadRow as as, tableRow as at, tableFoot as au, tableFootRow as av, tableFootCell as aw, tableEmpty as ax, tableError as ay, inputInvalid as b, inputDisabled as c, inputFocused as d, tooltipIcon as e, tooltip as f, tooltipInner as g, heading2 as h, input as i, textDanger as j, card as k, label as l, table as m, tableHeadCell as n, tableCell as o, paginationButton as p, paginationButtonDisabled as q, paginationButtonIconPrevious as r, skeleton as s, text as t, paginationButtonText as u, paginationButtonIconNext as v, loadingSpinner as w, badgeDark as x, badgeLight as y, badgeInfo as z };
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { P as PaymentMethodTypes } from './Payment.js';
|
|
3
3
|
import { P as PaymentMethodOption } from './payment-method-option-utils.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
4
|
+
import { d as defineCustomElement$f } from './bank-account-form2.js';
|
|
5
|
+
import { d as defineCustomElement$e } from './card-form2.js';
|
|
6
|
+
import { d as defineCustomElement$d } from './custom-popper2.js';
|
|
7
|
+
import { d as defineCustomElement$c } from './form-control-checkbox2.js';
|
|
8
|
+
import { d as defineCustomElement$b } from './form-control-help-text2.js';
|
|
9
|
+
import { d as defineCustomElement$a } from './form-control-radio2.js';
|
|
10
|
+
import { d as defineCustomElement$9 } from './form-control-select2.js';
|
|
11
|
+
import { d as defineCustomElement$8 } from './form-control-text2.js';
|
|
12
|
+
import { d as defineCustomElement$7 } from './form-control-tooltip2.js';
|
|
13
|
+
import { d as defineCustomElement$6 } from './hidden-input2.js';
|
|
14
|
+
import { d as defineCustomElement$5 } from './iframe-input2.js';
|
|
15
|
+
import { d as defineCustomElement$4 } from './billing-form.js';
|
|
16
|
+
import { d as defineCustomElement$3 } from './new-payment-method.js';
|
|
17
|
+
import { d as defineCustomElement$2 } from './save-new-payment-method.js';
|
|
18
|
+
import { d as defineCustomElement$1 } from './saved-payment-method.js';
|
|
10
19
|
|
|
11
|
-
const PaymentMethodTypeLabels = {
|
|
12
|
-
bankAccount: 'New bank account',
|
|
13
|
-
card: 'New credit or debit card',
|
|
14
|
-
};
|
|
15
20
|
const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMethodOptions extends HTMLElement {
|
|
16
21
|
constructor() {
|
|
17
22
|
super();
|
|
@@ -29,7 +34,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
29
34
|
this.paymentMethodsChanged();
|
|
30
35
|
}
|
|
31
36
|
paymentMethodsChanged() {
|
|
32
|
-
var _a
|
|
37
|
+
var _a;
|
|
33
38
|
this.paymentMethodOptions = this.savedPaymentMethods
|
|
34
39
|
.map((paymentMethod) => new PaymentMethodOption(paymentMethod))
|
|
35
40
|
.filter((paymentMethod) => {
|
|
@@ -37,24 +42,18 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
37
42
|
return ((this.showCard || paymentMethod.type !== PaymentMethodTypes.card) &&
|
|
38
43
|
(this.showAch || paymentMethod.type !== PaymentMethodTypes.bankAccount));
|
|
39
44
|
});
|
|
40
|
-
if (this.showBnpl && ((_a = this.bnpl) === null || _a === void 0 ? void 0 : _a.provider) === 'sezzle' && !this.insuranceToggled) {
|
|
41
|
-
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.sezzle }));
|
|
42
|
-
}
|
|
43
45
|
if (this.showCard) {
|
|
44
46
|
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.card }));
|
|
45
47
|
}
|
|
46
48
|
if (this.showAch) {
|
|
47
49
|
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
|
|
48
50
|
}
|
|
49
|
-
if (!
|
|
50
|
-
|
|
51
|
+
if (!this.selectedPaymentMethodId) {
|
|
52
|
+
this.selectedPaymentMethodId = (_a = this.paymentMethodOptions[0]) === null || _a === void 0 ? void 0 : _a.id;
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
paymentMethodOptionSelected(event) {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
get hiddenRadioInput() {
|
|
57
|
-
return !this.showAch || !this.showCard;
|
|
56
|
+
this.selectedPaymentMethodId = event.detail.id;
|
|
58
57
|
}
|
|
59
58
|
async resolvePaymentMethod(insuranceValidation) {
|
|
60
59
|
var _a;
|
|
@@ -65,7 +64,26 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
65
64
|
return newPaymentMethodElement.validate();
|
|
66
65
|
}
|
|
67
66
|
render() {
|
|
68
|
-
|
|
67
|
+
var _a;
|
|
68
|
+
return (h(Host, { key: '2d3dc8bc98cea3efbcf342a31b6883f30099b031' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
69
|
+
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
70
|
+
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
71
|
+
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
72
|
+
if (newCard || newBankAccount) {
|
|
73
|
+
return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, "show-card": this.showCard, "show-ach": this.showAch, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: (el) => {
|
|
74
|
+
if (isSelected) {
|
|
75
|
+
this.selectedPaymentMethodOptionRef = el;
|
|
76
|
+
}
|
|
77
|
+
} }));
|
|
78
|
+
}
|
|
79
|
+
else if (this.showSavedPaymentMethods) {
|
|
80
|
+
return (h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
|
|
81
|
+
if (isSelected) {
|
|
82
|
+
this.selectedPaymentMethodOptionRef = el;
|
|
83
|
+
}
|
|
84
|
+
} }));
|
|
85
|
+
}
|
|
86
|
+
})));
|
|
69
87
|
}
|
|
70
88
|
static get watchers() { return {
|
|
71
89
|
"savedPaymentMethods": ["paymentMethodsChanged"]
|
|
@@ -74,7 +92,6 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
74
92
|
"showCard": [4, "show-card"],
|
|
75
93
|
"showAch": [4, "show-ach"],
|
|
76
94
|
"showSavedPaymentMethods": [4, "show-saved-payment-methods"],
|
|
77
|
-
"showBnpl": [4, "show-bnpl"],
|
|
78
95
|
"paymentMethodGroupId": [1, "payment-method-group-id"],
|
|
79
96
|
"bnpl": [16],
|
|
80
97
|
"insuranceToggled": [4, "insurance-toggled"],
|
|
@@ -84,6 +101,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
84
101
|
"paymentAmount": [2, "payment-amount"],
|
|
85
102
|
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
86
103
|
"hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
|
|
104
|
+
"selectedPaymentMethodId": [32],
|
|
87
105
|
"paymentMethodOptions": [32],
|
|
88
106
|
"fillBillingForm": [64],
|
|
89
107
|
"resolvePaymentMethod": [64],
|
|
@@ -95,29 +113,84 @@ function defineCustomElement() {
|
|
|
95
113
|
if (typeof customElements === "undefined") {
|
|
96
114
|
return;
|
|
97
115
|
}
|
|
98
|
-
const components = ["justifi-payment-method-options", "form-control-help-text", "form-control-radio", "justifi-
|
|
116
|
+
const components = ["justifi-payment-method-options", "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-save-new-payment-method", "justifi-saved-payment-method"];
|
|
99
117
|
components.forEach(tagName => { switch (tagName) {
|
|
100
118
|
case "justifi-payment-method-options":
|
|
101
119
|
if (!customElements.get(tagName)) {
|
|
102
120
|
customElements.define(tagName, PaymentMethodOptions);
|
|
103
121
|
}
|
|
104
122
|
break;
|
|
123
|
+
case "bank-account-form":
|
|
124
|
+
if (!customElements.get(tagName)) {
|
|
125
|
+
defineCustomElement$f();
|
|
126
|
+
}
|
|
127
|
+
break;
|
|
128
|
+
case "card-form":
|
|
129
|
+
if (!customElements.get(tagName)) {
|
|
130
|
+
defineCustomElement$e();
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
case "custom-popper":
|
|
134
|
+
if (!customElements.get(tagName)) {
|
|
135
|
+
defineCustomElement$d();
|
|
136
|
+
}
|
|
137
|
+
break;
|
|
138
|
+
case "form-control-checkbox":
|
|
139
|
+
if (!customElements.get(tagName)) {
|
|
140
|
+
defineCustomElement$c();
|
|
141
|
+
}
|
|
142
|
+
break;
|
|
105
143
|
case "form-control-help-text":
|
|
106
144
|
if (!customElements.get(tagName)) {
|
|
107
|
-
defineCustomElement$
|
|
145
|
+
defineCustomElement$b();
|
|
108
146
|
}
|
|
109
147
|
break;
|
|
110
148
|
case "form-control-radio":
|
|
149
|
+
if (!customElements.get(tagName)) {
|
|
150
|
+
defineCustomElement$a();
|
|
151
|
+
}
|
|
152
|
+
break;
|
|
153
|
+
case "form-control-select":
|
|
154
|
+
if (!customElements.get(tagName)) {
|
|
155
|
+
defineCustomElement$9();
|
|
156
|
+
}
|
|
157
|
+
break;
|
|
158
|
+
case "form-control-text":
|
|
159
|
+
if (!customElements.get(tagName)) {
|
|
160
|
+
defineCustomElement$8();
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
case "form-control-tooltip":
|
|
164
|
+
if (!customElements.get(tagName)) {
|
|
165
|
+
defineCustomElement$7();
|
|
166
|
+
}
|
|
167
|
+
break;
|
|
168
|
+
case "hidden-input":
|
|
169
|
+
if (!customElements.get(tagName)) {
|
|
170
|
+
defineCustomElement$6();
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
173
|
+
case "iframe-input":
|
|
174
|
+
if (!customElements.get(tagName)) {
|
|
175
|
+
defineCustomElement$5();
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
case "justifi-billing-form":
|
|
179
|
+
if (!customElements.get(tagName)) {
|
|
180
|
+
defineCustomElement$4();
|
|
181
|
+
}
|
|
182
|
+
break;
|
|
183
|
+
case "justifi-new-payment-method":
|
|
111
184
|
if (!customElements.get(tagName)) {
|
|
112
185
|
defineCustomElement$3();
|
|
113
186
|
}
|
|
114
187
|
break;
|
|
115
|
-
case "justifi-
|
|
188
|
+
case "justifi-save-new-payment-method":
|
|
116
189
|
if (!customElements.get(tagName)) {
|
|
117
190
|
defineCustomElement$2();
|
|
118
191
|
}
|
|
119
192
|
break;
|
|
120
|
-
case "justifi-
|
|
193
|
+
case "justifi-saved-payment-method":
|
|
121
194
|
if (!customElements.get(tagName)) {
|
|
122
195
|
defineCustomElement$1();
|
|
123
196
|
}
|
|
@@ -13,7 +13,7 @@ const SaveNewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SaveNewPayme
|
|
|
13
13
|
this.checkboxChanged.emit(this.isChecked);
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: 'e6e7a75237ec2062188bf85deadac58892663b3b', class: "mt-4 form-check" }, h("form-control-checkbox", { key: 'abbaeb4e9119c4d41f0a727c7a070c14b7418302', label: "Save new payment method", name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange.bind(this) })));
|
|
17
17
|
}
|
|
18
18
|
}, [0, "justifi-save-new-payment-method", {
|
|
19
19
|
"isChecked": [32]
|
|
@@ -0,0 +1,59 @@
|
|
|
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 };
|
|
@@ -116,9 +116,9 @@ const SeasonInterruptionInsuranceCore = /*@__PURE__*/ proxyCustomElement(class S
|
|
|
116
116
|
var _a, _b, _c, _d;
|
|
117
117
|
if (this.isLoading)
|
|
118
118
|
return (h(StyledHost, null, h(SeasonInterruptionInsuranceLoading, null)));
|
|
119
|
-
return (h(StyledHost, null, h(Header2, { text: (_a = this.quote) === null || _a === void 0 ? void 0 : _a.product.title, class: "fs-5 fw-bold pb-3" }), h("small", { innerHTML: (_b = this.quote) === null || _b === void 0 ? void 0 : _b.product.description, part: text }), h("form-control-radio", { label: `Accept coverage for ${formatCurrency((_c = this.quote) === null || _c === void 0 ? void 0 : _c.total_cents)}`, name: "opt-in", value: 'true', checked: this.accepted === 'true', inputHandler: this.onChangeHandler.bind(this),
|
|
119
|
+
return (h(StyledHost, null, h("div", null, h(Header2, { text: (_a = this.quote) === null || _a === void 0 ? void 0 : _a.product.title, class: "fs-5 fw-bold pb-3" }), h("small", { innerHTML: (_b = this.quote) === null || _b === void 0 ? void 0 : _b.product.description, part: text }), h("form-control-radio", { label: `Accept coverage for ${formatCurrency((_c = this.quote) === null || _c === void 0 ? void 0 : _c.total_cents)}`, name: "opt-in", value: 'true', checked: this.accepted === 'true', inputHandler: this.onChangeHandler.bind(this),
|
|
120
120
|
// don't wanna show error message, but need to show the red border
|
|
121
|
-
errorText: this.error ? ' ' : undefined }), h("form-control-radio", { label: "Decline coverage", name: "opt-in", value: 'false', checked: this.accepted === 'false', inputHandler: this.onChangeHandler.bind(this), errorText: this.error ? ' ' : undefined }), h("div", { class: "invalid-feedback", style: { display: this.error ? 'block' : 'none' }, part: textDanger }, "Please select an option"), h("small", { innerHTML: (_d = this.quote) === null || _d === void 0 ? void 0 : _d.product.legal_disclaimer, part: text })));
|
|
121
|
+
errorText: this.error ? ' ' : undefined }), h("form-control-radio", { label: "Decline coverage", name: "opt-in", value: 'false', checked: this.accepted === 'false', inputHandler: this.onChangeHandler.bind(this), errorText: this.error ? ' ' : undefined }), h("div", { class: "invalid-feedback", style: { display: this.error ? 'block' : 'none' }, part: textDanger }, "Please select an option"), h("small", { innerHTML: (_d = this.quote) === null || _d === void 0 ? void 0 : _d.product.legal_disclaimer, part: text }))));
|
|
122
122
|
}
|
|
123
123
|
}, [1, "justifi-season-interruption-insurance-core", {
|
|
124
124
|
"checkoutId": [1, "checkout-id"],
|