@justifi/webcomponents 5.7.4 → 5.7.6-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/{Api-BTdkb3Zh.js → Api-c8NBCwu4.js} +1 -1
- package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
- package/dist/cjs/{Refund-BFE-2OxN.js → Refund-Dt1CMUjx.js} +114 -8
- 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 +9 -10
- package/dist/cjs/bank-account-form.cjs.entry.js +63 -0
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business.service-DNvLrr-n.js → business.service-W2PRAU9J.js} +3 -4
- package/dist/cjs/{button-CCZd8WSY.js → button-0HYMPryx.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +71 -0
- package/dist/cjs/{check-pkg-version-BlUxyRaM.js → check-pkg-version-Dn-3Aibs.js} +4 -5
- package/dist/cjs/{checkout.service-Bx0RBq-I.js → checkout.service-XwOh98gt.js} +3 -4
- package/dist/cjs/checkout.store--pVCO0L1.js +37 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -12
- package/dist/cjs/{checkouts-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_4.cjs.entry.js → custom-popper.cjs.entry.js} +3 -123
- package/dist/cjs/{dispute.service-DbUcp4sD.js → dispute.service-Dh82Wru1.js} +3 -4
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- 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 +5 -5
- 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 +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_3.cjs.entry.js +124 -0
- package/dist/cjs/{get-business-BJrtsomz.js → get-business-BiEc-jdH.js} +2 -2
- package/dist/cjs/{get-payment-details-C7Ezks0M.js → get-payment-details-W4PgTPkL.js} +4 -5
- package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
- package/dist/cjs/{get-subaccounts-UpfFbDHH.js → get-subaccounts-D4woaGSs.js} +5 -6
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +28 -9
- 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/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +112 -15
- 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 +9 -9
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +10 -11
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +13 -16
- package/dist/cjs/justifi-bank-account-form_5.cjs.entry.js +277 -0
- package/dist/cjs/justifi-billing-form.cjs.entry.js +76 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +12 -13
- package/dist/cjs/justifi-business-form.cjs.entry.js +15 -16
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-button_5.cjs.entry.js +322 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +84 -99
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +14 -15
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +16 -17
- 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 +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +11 -12
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +16 -17
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -11
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +15 -16
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +12 -13
- package/dist/cjs/justifi-payment-method-options.cjs.entry.js +76 -0
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +15 -16
- package/dist/cjs/justifi-payout-details.cjs.entry.js +12 -13
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +17 -18
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +14 -15
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +32 -0
- package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +117 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +7 -7
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +17 -20
- package/dist/cjs/justifi-skeleton.cjs.entry.js +17 -0
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +9 -10
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +13 -14
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -9
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -16
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +18 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-v-c3ZR5a.js → package-ClqzRJoK.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
- package/dist/cjs/payment-method-option-utils-imuSE7KV.js +25 -0
- package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-SNMCdsyF.js} +2 -2
- package/dist/cjs/{payment.service-CVZgDrZw.js → payment.service-BrvtS3F7.js} +3 -4
- package/dist/cjs/payments-list-core.cjs.entry.js +12 -13
- package/dist/cjs/{payments-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 +10 -10
- package/dist/cjs/{payout.service-D6kmeDsy.js → payout.service-DNH6gRrP.js} +3 -4
- package/dist/cjs/payouts-list-core.cjs.entry.js +12 -13
- package/dist/cjs/{payouts-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/{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 +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +11 -12
- 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-CUOWHQ6V.js → terminal-orders-table-xi_a-EnM.js} +5 -6
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-BxRchD7X.js → terminal.service-CdzmTRQE.js} +3 -4
- package/dist/cjs/terminals-list-core.cjs.entry.js +11 -12
- 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-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
- package/dist/cjs/{utils-bn0fXuc-.js → utils-wkdkLmDI.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/BillingInformation.js +1 -0
- package/dist/collection/api/Checkout.js +1 -3
- package/dist/collection/api/ComponentError.js +2 -0
- package/dist/collection/api/DisputeEvidenceDocument.js +4 -7
- package/dist/collection/api/Document.js +17 -8
- package/dist/collection/api/PaymentMethod.js +1 -0
- package/dist/collection/collection-manifest.json +14 -4
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +2 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form-schema.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +2 -5
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +158 -53
- package/dist/collection/components/checkout/new-payment-method.js +2 -2
- package/dist/collection/components/checkout/payment-method-options.js +18 -37
- package/dist/collection/components/checkout/save-new-payment-method.js +3 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.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 +10 -13
- package/dist/collection/components/modular-checkout/modular-checkout.js +337 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +98 -0
- package/dist/collection/components/modular-checkout/sub-components/billing-form-schema.js +21 -0
- package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +97 -0
- package/dist/collection/components/modular-checkout/sub-components/card-form-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +102 -0
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +113 -0
- package/dist/collection/components/modular-checkout/sub-components/postal-code-form.js +124 -0
- package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +40 -0
- package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +127 -0
- package/dist/collection/components/modular-checkout/sub-components/summary.js +12 -0
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -3
- package/dist/collection/store/checkout.store.js +32 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +10 -5
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +176 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +83 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +108 -0
- package/dist/docs.json +1676 -873
- package/dist/esm/{Api-BNYhCiE2.js → Api-C3T8XYbb.js} +2 -2
- package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
- package/dist/esm/{Payment-BGiKmQYR.js → Payment-00TwhwCx.js} +2 -2
- package/dist/esm/{Refund-DDIEc_gu.js → Refund-0aZtuMmz.js} +115 -10
- package/dist/esm/additional-questions-details_5.entry.js +4 -4
- package/dist/esm/{badge-C-nwyQ3h.js → badge-Dr7gkD2I.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -13
- package/dist/esm/bank-account-form.entry.js +61 -0
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business.service-DP2HUV0w.js → business.service-C5vrjgZf.js} +4 -5
- package/dist/esm/{button-BGlG9iX5.js → button-xfPDSpPt.js} +2 -2
- package/dist/esm/card-form.entry.js +69 -0
- package/dist/esm/{check-pkg-version-Dff5h73V.js → check-pkg-version-DZCwpP0g.js} +5 -6
- package/dist/esm/{checkout.service-DkTEFCSZ.js → checkout.service-CW2_CEte.js} +4 -5
- package/dist/esm/checkout.store-GXtlf5-4.js +34 -0
- package/dist/esm/checkouts-list-core.entry.js +14 -15
- package/dist/esm/{checkouts-list-params-state-DhPyCV-V.js → checkouts-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{checkouts-table-rhDm-zAB.js → checkouts-table-BHhaS5bv.js} +4 -4
- package/dist/esm/{config-state-BjXhUj2q.js → config-state-B3mtRA6f.js} +1 -1
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -121
- package/dist/esm/{dispute.service-CUcw-v4N.js → dispute.service-C3bmfjsZ.js} +4 -5
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-CwJc1ShT.js → form-control-error-text-Cn0aPzHx.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-COx__-BM.js → form-control-help-text-C91TeHXs.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 +7 -7
- package/dist/esm/form-control-number-masked_2.entry.js +5 -5
- package/dist/esm/form-control-number.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_3.entry.js +120 -0
- package/dist/esm/{get-business-GEPTefIj.js → get-business-BSRtbTh7.js} +2 -2
- package/dist/esm/{get-payment-details-Ea6HDOQH.js → get-payment-details-BdPvFl1W.js} +6 -7
- package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
- package/dist/esm/{get-subaccounts-DcHphsRK.js → get-subaccounts-BqqR44dV.js} +7 -8
- package/dist/esm/gross-payment-chart-core.entry.js +30 -11
- package/dist/esm/{header-1-Dj4_I_9S.js → header-1-noRVFQY9.js} +2 -2
- package/dist/esm/{header-3-CLoMDfp0.js → header-3-Bsi4loU1.js} +2 -2
- package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
- 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-CUJP_TDB.js → insurance-state-pL8MRpxn.js} +4 -4
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -12
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +13 -14
- package/dist/esm/justifi-additional-statement_8.entry.js +14 -17
- package/dist/esm/justifi-bank-account-form_5.entry.js +271 -0
- package/dist/esm/justifi-billing-form.entry.js +74 -0
- package/dist/esm/justifi-business-details.entry.js +15 -16
- package/dist/esm/justifi-business-form.entry.js +18 -19
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-button_5.entry.js +316 -0
- package/dist/esm/justifi-checkout.entry.js +85 -100
- package/dist/esm/justifi-checkouts-list-filters.entry.js +11 -12
- package/dist/esm/justifi-checkouts-list.entry.js +18 -19
- 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 +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +13 -14
- package/dist/esm/justifi-dispute-notification_3.entry.js +19 -20
- package/dist/esm/justifi-gross-payment-chart.entry.js +13 -14
- package/dist/esm/justifi-new-payment-method.entry.js +97 -0
- package/dist/esm/justifi-order-terminals.entry.js +18 -19
- package/dist/esm/justifi-owner-form_3.entry.js +13 -14
- package/dist/esm/justifi-payment-details.entry.js +15 -16
- package/dist/esm/justifi-payment-method-options.entry.js +74 -0
- package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +13 -14
- package/dist/esm/justifi-payment-transactions-list.entry.js +17 -18
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +18 -19
- package/dist/esm/justifi-payout-details.entry.js +15 -16
- package/dist/esm/justifi-payout-transactions-list.entry.js +17 -18
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +20 -21
- package/dist/esm/justifi-refund-payment.entry.js +17 -18
- package/dist/esm/justifi-saved-payment-method.entry.js +30 -0
- package/dist/esm/justifi-saved-payment-methods_2.entry.js +114 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +9 -9
- package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -22
- package/dist/esm/justifi-skeleton.entry.js +15 -0
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +12 -13
- package/dist/esm/justifi-terminal-orders-list.entry.js +16 -17
- package/dist/esm/justifi-terminals-list-filters.entry.js +11 -12
- package/dist/esm/justifi-terminals-list.entry.js +18 -19
- package/dist/esm/justifi-tokenize-payment-method.entry.js +21 -15
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-DzXsHdKv.js → package-BWmYRnrR.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-BrLVc_85.js → parts-D3G5aVLy.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +16 -16
- package/dist/esm/payment-method-option-utils-8n_ALxec.js +23 -0
- package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-2qP7AtHj.js} +2 -2
- package/dist/esm/{payment.service-BBse35Bb.js → payment.service-CnQdP32J.js} +4 -5
- package/dist/esm/payments-list-core.entry.js +15 -16
- package/dist/esm/{payments-list-params-state-DhPyCV-V.js → payments-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{payments-status-CO0mZyxH.js → payments-status-DUM0WZkk.js} +2 -2
- package/dist/esm/{payments-table-BYmcN_eJ.js → payments-table-DVQzx7MJ.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +12 -12
- package/dist/esm/{payout.service-DYk7xoLp.js → payout.service-EJuPNpfs.js} +4 -5
- package/dist/esm/payouts-list-core.entry.js +15 -16
- package/dist/esm/{payouts-list-params-state-DhPyCV-V.js → payouts-list-params-state-DFWVMJRJ.js} +1 -1
- package/dist/esm/{payouts-status-BqhlFWZJ.js → payouts-status-7saoFNoA.js} +2 -2
- package/dist/esm/{payouts-table-BoNMXUDt.js → payouts-table-dca-F2iQ.js} +4 -4
- package/dist/esm/{skeleton-D6agoQ_l.js → skeleton-C1-JoGFC.js} +2 -2
- package/dist/esm/{spinner-C8twYXzL.js → spinner-Ca9uu5Nd.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 +4 -4
- package/dist/esm/{table-BzdzS7PI.js → table-fsCYq8m9.js} +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +14 -15
- 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-BxZFOqli.js → terminal-orders-table-BNasCnjz.js} +8 -9
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-WIpzxBkU.js → terminal.service-Cfacmeto.js} +4 -5
- package/dist/esm/terminals-list-core.entry.js +14 -15
- package/dist/esm/terminals-list-params-state-DFWVMJRJ.js +16 -0
- package/dist/esm/{terminals-table-DVreYpwc.js → terminals-table-DBk-eg_3.js} +4 -4
- package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
- package/dist/esm/{utils-DB5fh6Iv.js → utils-BjLkBMLe.js} +1 -1
- package/dist/esm/{utils-DGozGJLI.js → utils-CNwvOLkk.js} +2 -2
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/{check-pkg-version.js → Analytics.js} +22 -23
- package/dist/module/Payment.js +1 -1
- package/dist/module/Refund.js +136 -9
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -2
- package/dist/module/bank-account-form.js +83 -1
- package/dist/module/{bank-account-form2.js → bank-account.js} +25 -8
- package/dist/module/billing-form-schema.js +24 -0
- package/dist/module/billing-form.js +28 -22
- package/dist/module/billing-information-form.js +97 -0
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +4 -4
- package/dist/module/business-bank-account-form-step.js +1 -2
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -2
- package/dist/module/business.service.js +1 -2
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form.js +91 -1
- package/dist/module/card-form2.js +27 -10
- package/dist/module/checkout.service.js +1 -2
- package/dist/module/checkout.store.js +34 -0
- package/dist/module/checkouts-list-core2.js +3 -4
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-actions.js +1 -2
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +3 -3
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/file-input-handler.js +4 -7
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/get-business.js +1 -1
- package/dist/module/get-payment-details.js +2 -3
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +1 -2
- package/dist/module/gross-payment-chart-core2.js +25 -6
- package/dist/module/header-2.js +8 -0
- package/dist/module/header-3.js +8 -0
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/insurance-state.js +1 -7
- package/dist/module/justifi-bank-account-form.d.ts +11 -0
- package/dist/module/justifi-bank-account-form.js +6 -0
- package/dist/module/justifi-billing-information-form.d.ts +11 -0
- package/dist/module/justifi-billing-information-form.js +6 -0
- package/dist/module/justifi-business-details.js +2 -2
- package/dist/module/justifi-business-form.js +2 -3
- package/dist/module/{justifi-checkout-core.d.ts → justifi-button.d.ts} +4 -4
- package/dist/module/justifi-button.js +6 -0
- package/dist/module/justifi-button2.js +41 -0
- package/dist/module/justifi-card-form.d.ts +11 -0
- package/dist/module/justifi-card-form.js +6 -0
- package/dist/module/justifi-checkout-summary.d.ts +11 -0
- package/dist/module/justifi-checkout-summary.js +6 -0
- package/dist/module/justifi-checkout.js +146 -132
- package/dist/module/justifi-checkouts-list-filters.js +3 -4
- package/dist/module/justifi-checkouts-list.js +3 -4
- package/dist/module/justifi-dispute-management.js +3 -3
- package/dist/module/justifi-gross-payment-chart.js +2 -3
- package/dist/module/justifi-header.d.ts +11 -0
- package/dist/module/justifi-header.js +6 -0
- package/dist/module/justifi-header2.js +43 -0
- package/dist/module/justifi-modular-checkout.d.ts +11 -0
- package/dist/module/justifi-modular-checkout.js +6 -0
- package/dist/module/justifi-new-payment-method.js +214 -1
- package/dist/module/justifi-order-terminals.js +3 -4
- package/dist/module/justifi-payment-details.js +2 -2
- package/dist/module/justifi-payment-provisioning.js +2 -3
- package/dist/module/justifi-payment-transactions-list.js +4 -5
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +4 -5
- package/dist/module/justifi-payout-details.js +2 -3
- package/dist/module/justifi-payout-transactions-list.js +4 -5
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +3 -4
- package/dist/module/justifi-postal-code-form.d.ts +11 -0
- package/dist/module/justifi-postal-code-form.js +6 -0
- package/dist/module/justifi-refund-payment.js +2 -3
- package/dist/module/justifi-saved-payment-method.js +57 -1
- package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
- package/dist/module/justifi-saved-payment-methods.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +11 -15
- package/dist/module/justifi-skeleton.d.ts +11 -0
- package/dist/module/justifi-skeleton.js +39 -0
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -5
- package/dist/module/justifi-terminal-orders-list.js +3 -4
- package/dist/module/justifi-terminals-list-filters.js +3 -4
- package/dist/module/justifi-terminals-list.js +3 -4
- package/dist/module/justifi-tokenize-payment-method.js +18 -84
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/modular-checkout.js +278 -0
- package/dist/module/package.js +3 -3
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option-utils.js +23 -0
- package/dist/module/payment-method-option.d.ts +11 -0
- package/dist/module/payment-method-option.js +6 -0
- package/dist/module/payment-method-option2.js +50 -0
- package/dist/module/payment-method-options.js +23 -113
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payment.service.js +1 -2
- package/dist/module/payments-list-core2.js +3 -4
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +1 -2
- package/dist/module/payouts-list-core2.js +3 -4
- package/dist/module/postal-code-form.js +93 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +6 -2
- package/dist/module/saved-payment-methods.js +72 -0
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +4 -3
- package/dist/module/sezzle-payment-method.js +23 -17
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +34 -0
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/terminal-orders-list-core2.js +3 -4
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +1 -2
- package/dist/module/terminals-list-core2.js +3 -4
- package/dist/module/utils4.js +1 -1
- package/dist/types/api/BillingInformation.d.ts +13 -0
- package/dist/types/api/Checkout.d.ts +15 -13
- package/dist/types/api/ComponentError.d.ts +3 -1
- package/dist/types/api/DisputeEvidenceDocument.d.ts +1 -1
- package/dist/types/api/Document.d.ts +2 -2
- package/dist/types/api/PaymentMethod.d.ts +21 -0
- package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +4 -4
- package/dist/types/components/checkout/checkout.d.ts +30 -11
- package/dist/types/components/checkout/payment-method-options.d.ts +2 -2
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +31 -0
- package/dist/types/components/modular-checkout/sub-components/bank-account-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +18 -0
- package/dist/types/components/modular-checkout/sub-components/billing-form-schema.d.ts +23 -0
- package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +18 -0
- package/dist/types/components/modular-checkout/sub-components/card-form-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +20 -0
- package/dist/types/components/modular-checkout/sub-components/payment-method-option.d.ts +8 -0
- package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +19 -0
- package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +7 -0
- package/dist/types/components/{checkout → modular-checkout/sub-components}/sezzle-payment-method.d.ts +3 -9
- package/dist/types/components/modular-checkout/sub-components/summary.d.ts +3 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
- package/dist/types/components.d.ts +290 -73
- package/dist/types/store/checkout.store.d.ts +25 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
- package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +13 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-skeleton.d.ts +10 -0
- package/dist/webcomponents/p-00d7c2e6.entry.js +1 -0
- package/dist/webcomponents/p-03e9a98c.entry.js +1 -0
- package/dist/webcomponents/p-05c604d2.entry.js +1 -0
- package/dist/webcomponents/p-05fc864a.entry.js +1 -0
- package/dist/webcomponents/{p-7a254093.entry.js → p-0890869b.entry.js} +6 -6
- package/dist/webcomponents/p-09c24135.entry.js +1 -0
- package/dist/webcomponents/p-0f511cc1.entry.js +1 -0
- package/dist/webcomponents/p-100008fa.entry.js +1 -0
- package/dist/webcomponents/p-18b941d3.entry.js +1 -0
- package/dist/webcomponents/p-19308a1b.entry.js +1 -0
- package/dist/webcomponents/p-1a7942f7.entry.js +1 -0
- package/dist/webcomponents/{p-DmLTJr3R.js → p-1adN6FVa.js} +1 -1
- package/dist/webcomponents/p-1bddf354.entry.js +1 -0
- package/dist/webcomponents/p-26bf2fda.entry.js +1 -0
- package/dist/webcomponents/p-2b154f45.entry.js +1 -0
- package/dist/webcomponents/p-2d3949f7.entry.js +1 -0
- package/dist/webcomponents/{p-9be5b03a.entry.js → p-2f482f5b.entry.js} +1 -1
- package/dist/webcomponents/{p-3ddaea2d.entry.js → p-326f4860.entry.js} +1 -1
- package/dist/webcomponents/p-33936fa9.entry.js +1 -0
- package/dist/webcomponents/p-359b8f54.entry.js +1 -0
- package/dist/webcomponents/p-37aeeeee.entry.js +1 -0
- package/dist/webcomponents/p-40da517f.entry.js +1 -0
- package/dist/webcomponents/p-4887bcb3.entry.js +1 -0
- package/dist/webcomponents/p-4d23e69a.entry.js +1 -0
- package/dist/webcomponents/p-4f744286.entry.js +1 -0
- package/dist/webcomponents/{p-ded52cad.entry.js → p-50bfec55.entry.js} +1 -1
- package/dist/webcomponents/p-54406229.entry.js +1 -0
- package/dist/webcomponents/p-5d145701.entry.js +1 -0
- package/dist/webcomponents/p-5d84207a.entry.js +1 -0
- package/dist/webcomponents/p-5e813b93.entry.js +1 -0
- package/dist/webcomponents/p-64e9570d.entry.js +1 -0
- package/dist/webcomponents/{p-d144c5e5.entry.js → p-683630d0.entry.js} +1 -1
- package/dist/webcomponents/p-6bd83369.entry.js +1 -0
- package/dist/webcomponents/p-73afde1b.entry.js +1 -0
- package/dist/webcomponents/p-73bbd71c.entry.js +1 -0
- package/dist/webcomponents/p-74f78a4e.entry.js +1 -0
- package/dist/webcomponents/p-771cc1c2.entry.js +1 -0
- package/dist/webcomponents/{p-0c13f2da.entry.js → p-7a8a06d6.entry.js} +1 -1
- package/dist/webcomponents/p-7c456c10.entry.js +1 -0
- package/dist/webcomponents/{p-454d5cab.entry.js → p-7d2de2d4.entry.js} +1 -1
- package/dist/webcomponents/{p-27a7ba0d.entry.js → p-7e9832b3.entry.js} +1 -1
- package/dist/webcomponents/p-810cad17.entry.js +1 -0
- package/dist/webcomponents/p-831f3ba3.entry.js +1 -0
- package/dist/webcomponents/{p-1d59c747.entry.js → p-84df9f26.entry.js} +1 -1
- package/dist/webcomponents/p-8590d6f2.entry.js +1 -0
- package/dist/webcomponents/p-86c28849.entry.js +1 -0
- package/dist/webcomponents/p-8bfc5384.entry.js +1 -0
- package/dist/webcomponents/p-91a2707a.entry.js +1 -0
- package/dist/webcomponents/p-9348a7c8.entry.js +1 -0
- package/dist/webcomponents/p-967c3374.entry.js +1 -0
- package/dist/webcomponents/p-99f03f4b.entry.js +1 -0
- package/dist/webcomponents/{p-BnE7qgLh.js → p-9REosSLu.js} +1 -1
- package/dist/webcomponents/p-9b0417b5.entry.js +1 -0
- package/dist/webcomponents/p-9c27f87f.entry.js +1 -0
- package/dist/webcomponents/p-B9ROmZzw.js +1 -0
- package/dist/webcomponents/{p-vTsHmSQQ.js → p-BCPBc18Y.js} +1 -1
- package/dist/webcomponents/p-BSW9VS7r.js +1 -0
- package/dist/webcomponents/p-BSexQ2qc.js +1 -0
- package/dist/webcomponents/p-BWmYRnrR.js +1 -0
- package/dist/webcomponents/p-Bc5u1WjM.js +1 -0
- package/dist/webcomponents/p-BhrFjjAs.js +1 -0
- package/dist/webcomponents/p-BjQrbohd.js +1 -0
- package/dist/webcomponents/p-BqK0rIZQ.js +1 -0
- package/dist/webcomponents/p-BtT7kqMw.js +1 -0
- package/dist/webcomponents/p-BxWsrx5h.js +1 -0
- package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
- package/dist/webcomponents/p-By9Lz2e0.js +1 -0
- package/dist/webcomponents/p-CEp46FZK.js +1 -0
- package/dist/webcomponents/p-CKRDBISo.js +1 -0
- package/dist/webcomponents/p-CMNxLEJP.js +1 -0
- package/dist/webcomponents/p-CXLazxt0.js +1 -0
- package/dist/webcomponents/p-CZItg0Yo.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-CuHQZh6C.js +1 -0
- package/dist/webcomponents/p-Cwt_9Jzb.js +1 -0
- package/dist/webcomponents/{p-BrLVc_85.js → p-D3G5aVLy.js} +1 -1
- package/dist/webcomponents/p-D7WGjeDy.js +1 -0
- package/dist/webcomponents/{p-DOb1iL29.js → p-DAVX1-sW.js} +1 -1
- package/dist/webcomponents/{p-CgSKeuxa.js → p-DAoffYFW.js} +1 -1
- package/dist/webcomponents/{p-C-78OQ89.js → p-DDpc1huF.js} +1 -1
- package/dist/webcomponents/{p-BjDSEZvx.js → p-DHvfrLVU.js} +1 -1
- package/dist/webcomponents/p-DIDbcp63.js +1 -0
- package/dist/webcomponents/p-DKClunJd.js +1 -0
- package/dist/webcomponents/p-DUqRxn4Y.js +1 -0
- package/dist/webcomponents/p-DbcOhajT.js +1 -0
- package/dist/webcomponents/{p-D3BIZZrc.js → p-Dcbfnfn2.js} +1 -1
- package/dist/webcomponents/{p-CEqUppok.js → p-Dh6FEdp8.js} +1 -1
- package/dist/webcomponents/p-DhAmsAOH.js +1 -0
- package/dist/webcomponents/p-DoEkFs2i.js +1 -0
- package/dist/webcomponents/p-DvXSA0b0.js +1 -0
- package/dist/webcomponents/p-N3w5zrz2.js +2 -0
- package/dist/webcomponents/p-NqdaxjDT.js +1 -0
- package/dist/webcomponents/p-a05062d8.entry.js +1 -0
- package/dist/webcomponents/p-a2f0d61c.entry.js +1 -0
- package/dist/webcomponents/p-a95741ee.entry.js +1 -0
- package/dist/webcomponents/p-ab55ba10.entry.js +1 -0
- package/dist/webcomponents/p-ad78a564.entry.js +1 -0
- package/dist/webcomponents/p-ad99a022.entry.js +1 -0
- package/dist/webcomponents/p-b193bf46.entry.js +1 -0
- package/dist/webcomponents/p-c851fc9e.entry.js +1 -0
- package/dist/webcomponents/{p-a7f5262a.entry.js → p-cb7c712f.entry.js} +1 -1
- package/dist/webcomponents/{p-9e7c8e33.entry.js → p-d3f438ca.entry.js} +1 -1
- package/dist/webcomponents/p-d59aabe1.entry.js +1 -0
- package/dist/webcomponents/p-d6602c92.entry.js +1 -0
- package/dist/webcomponents/p-d7f62287.entry.js +1 -0
- package/dist/webcomponents/p-ddc9fc4f.entry.js +1 -0
- package/dist/webcomponents/p-e151b970.entry.js +1 -0
- package/dist/webcomponents/{p-ba7c7025.entry.js → p-e48a2d25.entry.js} +1 -1
- package/dist/webcomponents/p-e8c3ea67.entry.js +1 -0
- package/dist/webcomponents/p-eba620cd.entry.js +1 -0
- package/dist/webcomponents/p-ecdda6e6.entry.js +1 -0
- package/dist/webcomponents/p-f5d12ae3.entry.js +1 -0
- package/dist/webcomponents/{p-BC1KMlPG.js → p-fUv1jFAw.js} +1 -1
- package/dist/webcomponents/p-m2jmX-Hz.js +1 -0
- package/dist/webcomponents/{p-BEDtXmpq.js → p-o5iASgog.js} +1 -1
- package/dist/webcomponents/p-pGzabKc7.js +1 -0
- package/dist/webcomponents/p-sT4o5vru.js +1 -0
- package/dist/webcomponents/p-w128-0Mj.js +1 -0
- package/dist/webcomponents/p-ys9CWfNG.js +1 -0
- package/dist/webcomponents/p-zucQG3cz.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Checkout-TZnRz3-3.js +0 -103
- package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -581
- package/dist/cjs/iframe-input-styles-state-BJ9xnomM.js +0 -26
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +0 -142
- package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +0 -22
- package/dist/collection/components/checkout/checkout-core.js +0 -454
- package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
- package/dist/esm/Checkout-B9LrTq63.js +0 -101
- package/dist/esm/bank-account-form_9.entry.js +0 -571
- package/dist/esm/iframe-input-styles-state-CfSmDqfA.js +0 -23
- package/dist/esm/justifi-checkout-core.entry.js +0 -140
- package/dist/esm/terminals-list-params-state-DhPyCV-V.js +0 -16
- package/dist/module/Checkout.js +0 -121
- package/dist/module/checkout-core.js +0 -274
- package/dist/module/justifi-checkout-core.js +0 -6
- package/dist/module/new-payment-method.js +0 -204
- package/dist/module/saved-payment-method.js +0 -79
- package/dist/types/components/checkout/checkout-core.d.ts +0 -49
- package/dist/webcomponents/p--B09FkmB.js +0 -1
- package/dist/webcomponents/p-08b3ec57.entry.js +0 -1
- package/dist/webcomponents/p-0b28597b.entry.js +0 -1
- package/dist/webcomponents/p-0b52d1dd.entry.js +0 -1
- package/dist/webcomponents/p-0b964616.entry.js +0 -1
- package/dist/webcomponents/p-186a25e3.entry.js +0 -1
- package/dist/webcomponents/p-234c0b0a.entry.js +0 -1
- package/dist/webcomponents/p-297b4a1a.entry.js +0 -1
- package/dist/webcomponents/p-299c215b.entry.js +0 -1
- package/dist/webcomponents/p-2GKzt6ql.js +0 -1
- package/dist/webcomponents/p-39236b05.entry.js +0 -1
- package/dist/webcomponents/p-3af7b1ee.entry.js +0 -1
- package/dist/webcomponents/p-41ce682a.entry.js +0 -1
- package/dist/webcomponents/p-4bf6f767.entry.js +0 -1
- package/dist/webcomponents/p-59a2ccdb.entry.js +0 -1
- package/dist/webcomponents/p-68425065.entry.js +0 -1
- package/dist/webcomponents/p-69e8b394.entry.js +0 -1
- package/dist/webcomponents/p-6ab28931.entry.js +0 -1
- package/dist/webcomponents/p-6f08cc3e.entry.js +0 -1
- package/dist/webcomponents/p-74412d52.entry.js +0 -1
- package/dist/webcomponents/p-77957f7f.entry.js +0 -1
- package/dist/webcomponents/p-7db9f780.entry.js +0 -1
- package/dist/webcomponents/p-7fbdaa8a.entry.js +0 -1
- package/dist/webcomponents/p-86112ed3.entry.js +0 -1
- package/dist/webcomponents/p-863d53ef.entry.js +0 -1
- package/dist/webcomponents/p-8a62bc7a.entry.js +0 -1
- package/dist/webcomponents/p-8b02e43a.entry.js +0 -1
- package/dist/webcomponents/p-8f354461.entry.js +0 -1
- package/dist/webcomponents/p-90d36a2f.entry.js +0 -1
- package/dist/webcomponents/p-959d5f08.entry.js +0 -1
- package/dist/webcomponents/p-972531a2.entry.js +0 -1
- package/dist/webcomponents/p-99ff608b.entry.js +0 -1
- package/dist/webcomponents/p-9bb3ccba.entry.js +0 -1
- package/dist/webcomponents/p-9ef53bb1.entry.js +0 -1
- package/dist/webcomponents/p-AW4YV_IW.js +0 -1
- package/dist/webcomponents/p-B2ts3XP0.js +0 -1
- package/dist/webcomponents/p-BBEApkWm.js +0 -1
- package/dist/webcomponents/p-BERbc4aX.js +0 -1
- package/dist/webcomponents/p-BLm_qZkx.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-C26QVwoo.js +0 -1
- package/dist/webcomponents/p-C5RuuShs.js +0 -1
- package/dist/webcomponents/p-C6qAZgXn.js +0 -1
- package/dist/webcomponents/p-CDTncSrX.js +0 -1
- package/dist/webcomponents/p-CNv7zeGM.js +0 -1
- package/dist/webcomponents/p-CU_goaUQ.js +0 -1
- package/dist/webcomponents/p-CbGBEkk3.js +0 -1
- package/dist/webcomponents/p-Co9WxzRf.js +0 -1
- package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
- package/dist/webcomponents/p-DPUXZApk.js +0 -1
- package/dist/webcomponents/p-DbhOyu_u.js +0 -1
- package/dist/webcomponents/p-DcwpS5VC.js +0 -1
- package/dist/webcomponents/p-DgPQlpzy.js +0 -1
- package/dist/webcomponents/p-DnX5CZFd.js +0 -1
- package/dist/webcomponents/p-DniQ6yo6.js +0 -1
- package/dist/webcomponents/p-DzFysjCc.js +0 -1
- package/dist/webcomponents/p-DzXsHdKv.js +0 -1
- package/dist/webcomponents/p-EVfmZi89.js +0 -1
- package/dist/webcomponents/p-SdntD1xf.js +0 -1
- package/dist/webcomponents/p-UyFPa3Jb.js +0 -1
- package/dist/webcomponents/p-a1860b96.entry.js +0 -1
- package/dist/webcomponents/p-ae62bc55.entry.js +0 -1
- package/dist/webcomponents/p-am93SGf-.js +0 -1
- package/dist/webcomponents/p-b2086753.entry.js +0 -1
- package/dist/webcomponents/p-b3de3312.entry.js +0 -1
- package/dist/webcomponents/p-b4da0e31.entry.js +0 -1
- package/dist/webcomponents/p-bd387500.entry.js +0 -1
- package/dist/webcomponents/p-c3b8c25f.entry.js +0 -1
- package/dist/webcomponents/p-c5f3f2cc.entry.js +0 -1
- package/dist/webcomponents/p-c60219ba.entry.js +0 -1
- package/dist/webcomponents/p-caa90e8c.entry.js +0 -1
- package/dist/webcomponents/p-d44c7900.entry.js +0 -1
- package/dist/webcomponents/p-df044e50.entry.js +0 -1
- package/dist/webcomponents/p-e0c8e41a.entry.js +0 -1
- package/dist/webcomponents/p-e8a1dbe2.entry.js +0 -1
- package/dist/webcomponents/p-ef930355.entry.js +0 -1
- package/dist/webcomponents/p-f4aa30b8.entry.js +0 -1
- package/dist/webcomponents/p-f7c23a96.entry.js +0 -1
- package/dist/webcomponents/p-f9510372.entry.js +0 -1
- package/dist/webcomponents/p-fe8938ba.entry.js +0 -1
- package/dist/webcomponents/p-iPHDHB_q.js +0 -1
- package/dist/webcomponents/p-lfLAtTgJ.js +0 -1
- package/dist/webcomponents/p-n0Sbmvzb.js +0 -1
- package/dist/webcomponents/p-oE-E7kjN.js +0 -1
- package/dist/webcomponents/p-uLUlLQpP.js +0 -1
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as checkoutStore } from './checkout.store.js';
|
|
3
|
+
import { J as JustifiAnalytics, c as checkPkgVersion } from './Analytics.js';
|
|
4
|
+
import './config-state.js';
|
|
5
|
+
import './utils2.js';
|
|
6
|
+
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
|
|
7
|
+
import './Pagination.js';
|
|
8
|
+
import './Payment.js';
|
|
9
|
+
import './Business.js';
|
|
10
|
+
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
11
|
+
import { C as CheckoutService } from './checkout.service.js';
|
|
12
|
+
import { i as insuranceValuesOn, a as insuranceValues } from './insurance-state.js';
|
|
13
|
+
|
|
14
|
+
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
15
|
+
var _a;
|
|
16
|
+
try {
|
|
17
|
+
const response = await service.fetchCheckout(authToken, checkoutId);
|
|
18
|
+
if (!response.error) {
|
|
19
|
+
const checkout = response.data;
|
|
20
|
+
onSuccess({ checkout });
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
const responseError = getErrorMessage(response.error);
|
|
24
|
+
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
25
|
+
return onError({
|
|
26
|
+
error: responseError,
|
|
27
|
+
code,
|
|
28
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
34
|
+
return onError({
|
|
35
|
+
error: error.message || error,
|
|
36
|
+
code,
|
|
37
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ payment, onSuccess, onError }) => {
|
|
42
|
+
var _a;
|
|
43
|
+
try {
|
|
44
|
+
const response = await service.complete(authToken, checkoutId, payment);
|
|
45
|
+
if (!response.error) {
|
|
46
|
+
onSuccess(response);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
const responseError = getErrorMessage(response.error);
|
|
50
|
+
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
51
|
+
return onError({
|
|
52
|
+
error: responseError,
|
|
53
|
+
code,
|
|
54
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
60
|
+
return onError({
|
|
61
|
+
error: error.message || error,
|
|
62
|
+
code,
|
|
63
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const CheckoutWrapper = /*@__PURE__*/ proxyCustomElement(class CheckoutWrapper extends HTMLElement {
|
|
69
|
+
constructor() {
|
|
70
|
+
super();
|
|
71
|
+
this.__registerHost();
|
|
72
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
73
|
+
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
74
|
+
this.savePaymentMethod = false;
|
|
75
|
+
}
|
|
76
|
+
connectedCallback() {
|
|
77
|
+
this.observer = new MutationObserver(() => {
|
|
78
|
+
this.queryFormRefs();
|
|
79
|
+
});
|
|
80
|
+
this.observer.observe(this.hostEl, {
|
|
81
|
+
childList: true,
|
|
82
|
+
subtree: true
|
|
83
|
+
});
|
|
84
|
+
checkoutStore.checkoutId = this.checkoutId;
|
|
85
|
+
const config = {
|
|
86
|
+
authToken: this.authToken,
|
|
87
|
+
checkoutId: this.checkoutId,
|
|
88
|
+
service: new CheckoutService()
|
|
89
|
+
};
|
|
90
|
+
this.getCheckout = makeGetCheckout(config);
|
|
91
|
+
this.completeCheckout = makeCheckoutComplete(config);
|
|
92
|
+
}
|
|
93
|
+
componentWillLoad() {
|
|
94
|
+
this.analytics = new JustifiAnalytics(this);
|
|
95
|
+
checkPkgVersion();
|
|
96
|
+
checkoutStore.authToken = this.authToken;
|
|
97
|
+
this.fetchCheckout();
|
|
98
|
+
// Refresh the checkout data when insurance is added or removed
|
|
99
|
+
insuranceValuesOn('set', (key) => {
|
|
100
|
+
const value = insuranceValues[key];
|
|
101
|
+
if (value !== undefined) {
|
|
102
|
+
this.fetchCheckout();
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
componentDidLoad() {
|
|
107
|
+
this.queryFormRefs();
|
|
108
|
+
}
|
|
109
|
+
disconnectedCallback() {
|
|
110
|
+
var _a;
|
|
111
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
112
|
+
}
|
|
113
|
+
fetchCheckout() {
|
|
114
|
+
if (this.getCheckout) {
|
|
115
|
+
this.getCheckout({
|
|
116
|
+
onSuccess: ({ checkout }) => {
|
|
117
|
+
this.updateStore(checkout);
|
|
118
|
+
},
|
|
119
|
+
onError: (error) => {
|
|
120
|
+
this.errorEvent.emit({
|
|
121
|
+
message: error.message,
|
|
122
|
+
errorCode: ComponentErrorCodes.FETCH_ERROR,
|
|
123
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
updateStore(checkout) {
|
|
130
|
+
var _a, _b, _c, _d;
|
|
131
|
+
checkoutStore.accountId = checkout.account_id;
|
|
132
|
+
checkoutStore.paymentMethods = checkout.payment_methods;
|
|
133
|
+
checkoutStore.paymentMethodGroupId = checkout.payment_method_group_id;
|
|
134
|
+
checkoutStore.paymentDescription = checkout.payment_description;
|
|
135
|
+
checkoutStore.totalAmount = checkout.total_amount;
|
|
136
|
+
checkoutStore.paymentAmount = checkout.payment_amount;
|
|
137
|
+
checkoutStore.bnplEnabled = checkout.payment_settings.bnpl_payments;
|
|
138
|
+
checkoutStore.bnplProviderClientId = (_a = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _a === void 0 ? void 0 : _a.provider_client_id;
|
|
139
|
+
checkoutStore.bnplProviderMode = (_b = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _b === void 0 ? void 0 : _b.provider_mode;
|
|
140
|
+
checkoutStore.bnplProviderApiVersion = (_c = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _c === void 0 ? void 0 : _c.provider_api_version;
|
|
141
|
+
checkoutStore.bnplProviderCheckoutUrl = (_d = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _d === void 0 ? void 0 : _d.provider_checkout_url;
|
|
142
|
+
}
|
|
143
|
+
queryFormRefs() {
|
|
144
|
+
this.paymentMethodFormRef = this.hostEl.querySelector('justifi-card-form, justifi-bank-account-form');
|
|
145
|
+
this.billingInformationFormRef = this.hostEl.querySelector('justifi-billing-information-form, justifi-postal-code-form');
|
|
146
|
+
this.insuranceFormRef = this.hostEl.querySelector('justifi-season-interruption-insurance');
|
|
147
|
+
this.sezzlePaymentMethodRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
|
|
148
|
+
}
|
|
149
|
+
async tokenizePaymentMethod(tokenizeArgs) {
|
|
150
|
+
var _a, _b;
|
|
151
|
+
const billingInfoValues = (_b = await ((_a = this.billingInformationFormRef) === null || _a === void 0 ? void 0 : _a.getValues())) !== null && _b !== void 0 ? _b : {};
|
|
152
|
+
const combinedBillingInfo = Object.assign(Object.assign({}, tokenizeArgs), billingInfoValues);
|
|
153
|
+
const paymentMethodMetadata = Object.assign({ accountId: checkoutStore.accountId, payment_method_group_id: undefined }, combinedBillingInfo);
|
|
154
|
+
if (this.savePaymentMethod) {
|
|
155
|
+
paymentMethodMetadata.payment_method_group_id = checkoutStore.paymentMethodGroupId;
|
|
156
|
+
}
|
|
157
|
+
return this.paymentMethodFormRef.tokenize({
|
|
158
|
+
clientId: this.authToken,
|
|
159
|
+
paymentMethodMetadata,
|
|
160
|
+
account: checkoutStore.accountId,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
async getPaymentMethod(submitCheckoutArgs) {
|
|
164
|
+
if (!this.paymentMethodFormRef) {
|
|
165
|
+
return checkoutStore.selectedPaymentMethod;
|
|
166
|
+
}
|
|
167
|
+
const { error, id: token } = await this.tokenizePaymentMethod(submitCheckoutArgs);
|
|
168
|
+
if (error) {
|
|
169
|
+
this.errorEvent.emit({
|
|
170
|
+
errorCode: error.code,
|
|
171
|
+
message: error.message,
|
|
172
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
173
|
+
});
|
|
174
|
+
return undefined;
|
|
175
|
+
}
|
|
176
|
+
return token;
|
|
177
|
+
}
|
|
178
|
+
async validate() {
|
|
179
|
+
var _a, _b;
|
|
180
|
+
const promises = [
|
|
181
|
+
(_a = this.paymentMethodFormRef) === null || _a === void 0 ? void 0 : _a.validate(),
|
|
182
|
+
(_b = this.billingInformationFormRef) === null || _b === void 0 ? void 0 : _b.validate()
|
|
183
|
+
];
|
|
184
|
+
if (this.insuranceFormRef) {
|
|
185
|
+
promises.push(this.insuranceFormRef.validate());
|
|
186
|
+
}
|
|
187
|
+
const validationResults = await Promise.all(promises);
|
|
188
|
+
return validationResults.every(result => (result === null || result === void 0 ? void 0 : result.isValid) !== false);
|
|
189
|
+
}
|
|
190
|
+
async submitCheckout(submitCheckoutArgs) {
|
|
191
|
+
var _a;
|
|
192
|
+
const isValid = await this.validate();
|
|
193
|
+
if (!isValid) {
|
|
194
|
+
this.errorEvent.emit({
|
|
195
|
+
message: 'Please fill in all required fields.',
|
|
196
|
+
errorCode: ComponentErrorCodes.VALIDATION_ERROR,
|
|
197
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
198
|
+
});
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
let payment;
|
|
202
|
+
if (checkoutStore.selectedPaymentMethod === 'sezzle') {
|
|
203
|
+
const insuranceValidation = this.insuranceFormRef ? await this.insuranceFormRef.validate() : { isValid: true };
|
|
204
|
+
const sezzleResult = await this.sezzlePaymentMethodRef.resolvePaymentMethod(insuranceValidation);
|
|
205
|
+
if (sezzleResult.error) {
|
|
206
|
+
this.errorEvent.emit({
|
|
207
|
+
message: sezzleResult.error.message,
|
|
208
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
209
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
210
|
+
});
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
else if (((_a = sezzleResult.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
214
|
+
payment = {
|
|
215
|
+
payment_mode: 'bnpl',
|
|
216
|
+
payment_token: undefined,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
const paymentMethod = await this.getPaymentMethod(submitCheckoutArgs);
|
|
222
|
+
if (!paymentMethod) {
|
|
223
|
+
this.errorEvent.emit({
|
|
224
|
+
message: 'Payment method tokenization failed.',
|
|
225
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
226
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
227
|
+
});
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
payment = {
|
|
231
|
+
payment_mode: 'ecom',
|
|
232
|
+
payment_token: paymentMethod,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
this.completeCheckout({
|
|
236
|
+
payment,
|
|
237
|
+
onSuccess: ({ checkout }) => {
|
|
238
|
+
this.submitEvent.emit({
|
|
239
|
+
checkout,
|
|
240
|
+
message: 'Checkout completed successfully',
|
|
241
|
+
});
|
|
242
|
+
},
|
|
243
|
+
onError: (error) => {
|
|
244
|
+
this.errorEvent.emit({
|
|
245
|
+
message: error.message,
|
|
246
|
+
errorCode: ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
|
|
247
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
248
|
+
});
|
|
249
|
+
},
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
render() {
|
|
253
|
+
return (h(Host, { key: 'a9a6bd46fce34ecd2aec40db02f04c25ed500396' }));
|
|
254
|
+
}
|
|
255
|
+
get hostEl() { return this; }
|
|
256
|
+
}, [0, "justifi-modular-checkout", {
|
|
257
|
+
"authToken": [1, "auth-token"],
|
|
258
|
+
"checkoutId": [1, "checkout-id"],
|
|
259
|
+
"savePaymentMethod": [4, "save-payment-method"],
|
|
260
|
+
"validate": [64],
|
|
261
|
+
"submitCheckout": [64]
|
|
262
|
+
}]);
|
|
263
|
+
function defineCustomElement() {
|
|
264
|
+
if (typeof customElements === "undefined") {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
const components = ["justifi-modular-checkout"];
|
|
268
|
+
components.forEach(tagName => { switch (tagName) {
|
|
269
|
+
case "justifi-modular-checkout":
|
|
270
|
+
if (!customElements.get(tagName)) {
|
|
271
|
+
customElements.define(tagName, CheckoutWrapper);
|
|
272
|
+
}
|
|
273
|
+
break;
|
|
274
|
+
} });
|
|
275
|
+
}
|
|
276
|
+
defineCustomElement();
|
|
277
|
+
|
|
278
|
+
export { CheckoutWrapper as C, defineCustomElement as d };
|
package/dist/module/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const name = "@justifi/webcomponents";
|
|
2
|
-
const version = "5.7.
|
|
3
|
-
var
|
|
2
|
+
const version = "5.7.6-rc-01";
|
|
3
|
+
var webcomponentsPackageJson = {
|
|
4
4
|
name: name,
|
|
5
5
|
version: version};
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { webcomponentsPackageJson as w };
|
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 { buttonSecondary 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,
|
|
131
|
+
export { buttonSecondary 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, billingForm as V, radioListItem as W, heading4 as X, image as Y, buttonLink as Z, heading5 as _, heading1 as a, buttonPrimary as a0, buttonLoading as a1, checkoutSummary 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 };
|
|
@@ -58,16 +58,16 @@ const PaymentDetailsCore = /*@__PURE__*/ proxyCustomElement(class PaymentDetails
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h(StyledHost, { key: '
|
|
62
|
-
this.payment && (h("justifi-details", { key: '
|
|
63
|
-
h(DetailSectionTitle, { key: '
|
|
64
|
-
h("div", { key: '
|
|
61
|
+
return (h(StyledHost, { key: '8585ffcde1ebe2da1200e7fcaade68c0360f2c1a' }, this.loading && h(PaymentDetailsLoading, { key: 'f6299c6ec9d66a9245741159cc43b11ee7b09ca1' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
62
|
+
this.payment && (h("justifi-details", { key: 'acc35bf0c47c91b3b843b4fcfa7818567b995ea7', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '603e435434b28cbdd8948a08974277936268fe70', slot: "head-info", badge: (h("div", { class: "d-flex gap-1" }, MapPaymentStatusToBadge(this.payment.status), this.payment.expedited ? (h(Badge, { variant: BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : null)), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: 'a098dd2bc67c702e1d7647d138ff97042da1de8f', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '10f5834de6a0409287aef8c92bd6c4c83b0b2bd0', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: 'd2af757628227d8733171c8f2be2835767226b61', title: "ID", value: this.payment.id })), h("div", { key: 'a22165ac2f43743ac21aec7a368ab8afb68c1fc9', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'c5de0c4fde5995b21e7ae5f17c6b51e3cbab57ad', sectionTitle: "Details" }), h("div", { key: 'd9a63e648c9451b09c3fad4228a930f40a6bb5e3', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '053219e35617c803aaf761887ea16eaa1d180799', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '362da49eb3a32b52952f8a962c59767b7d99893a', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '31eec3ba162f3e797b7f2e57ce0dd67ef699198f', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '319f49664029d1a4585a112ee20ba37d29ff86bb', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: '405970cce3d67d7a2b99a59703208dde68026e37', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: '2279263fa33f450b7a7a4c0cae7b6c5ce17d31d7', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '72a16f085fe07d51a60e29d4a446432b5ba9b647', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '30c28c112f2796119e5ba3be999d3af138b2638a', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '1751d564f87577e04b2e4d0674ed1613135c6fd9', title: "Description", value: this.payment.description }), h(DetailItem, { key: 'b7688698d4b14b07ccdd667fd49c83c462c58715', title: "Expedited", value: this.payment.expedited ? 'Yes' : 'No' })), this.payment.payment_method.card && [
|
|
63
|
+
h(DetailSectionTitle, { key: '8ce47b7e38b9560d782bcbc4a5b0d0867914e0a7', sectionTitle: "Payment Method" }),
|
|
64
|
+
h("div", { key: '35139a669b782e699d272c9569f78ee89cf78a4d', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'b63fd298d76b5cc74c6bd2bb9c72c776da76e60b', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: '8034323b79eba121450f84b98fecb329f04ee058', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '484afb22d8b083b127f2e82a2d16bed107f4ff93', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '3d018226d4e8b7d880d22095eb0f368b8e0447ce', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '3764d6de77ccf43f554d4713bd3a1dc4c2563a6d', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
65
65
|
], this.payment.payment_method.bank_account && [
|
|
66
|
-
h(DetailSectionTitle, { key: '
|
|
67
|
-
h("div", { key: '
|
|
66
|
+
h(DetailSectionTitle, { key: 'b3e05a55bf7ad71da8cf954c2b019983c724a4d2', sectionTitle: "Payment Method" }),
|
|
67
|
+
h("div", { key: '114e6995238d425538238fdb8a1aa6f8cdab2978', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'b63a6c4476a748cf04298c10b44547e6fd4a9a87', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '85abe1a494648a42c72f3cde23f6c63ee8d28f1b', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '589d98f88a2ebf42caf7b32f9358e7da1d927d5d', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: 'ee98c032b446963cba6f2e6a31ae5f444e5bfae6', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
68
68
|
], this.payment.metadata && [
|
|
69
|
-
h(DetailSectionTitle, { key: '
|
|
70
|
-
h("div", { key: '
|
|
69
|
+
h(DetailSectionTitle, { key: '38c0e695c4a14350a6f32ec60bedb8b7fa5f00ce', sectionTitle: 'Metadata' }),
|
|
70
|
+
h("div", { key: 'dfff9e06e175b7d523bb257989c5f79c15b99fff', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '35831d5d59cd4b3c89ae000fd8f1e2952f252e4b', metadata: this.payment.metadata }))
|
|
71
71
|
])))));
|
|
72
72
|
}
|
|
73
73
|
static get watchers() { return {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { d as snakeToCamel } from './utils2.js';
|
|
2
|
+
|
|
3
|
+
class PaymentMethodOption {
|
|
4
|
+
constructor(paymentMethod) {
|
|
5
|
+
this.id = paymentMethod.id;
|
|
6
|
+
this.brand = paymentMethod.brand;
|
|
7
|
+
this.acct_last_four = paymentMethod.acct_last_four;
|
|
8
|
+
this.type = snakeToCamel(paymentMethod.type);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
var CardBrandLabels;
|
|
12
|
+
(function (CardBrandLabels) {
|
|
13
|
+
CardBrandLabels["american_express"] = "American Express";
|
|
14
|
+
CardBrandLabels["diners_club"] = "Diners Club";
|
|
15
|
+
CardBrandLabels["discover"] = "Discover";
|
|
16
|
+
CardBrandLabels["jcb"] = "JCB";
|
|
17
|
+
CardBrandLabels["mastercard"] = "Mastercard";
|
|
18
|
+
CardBrandLabels["china_unionpay"] = "UnionPay";
|
|
19
|
+
CardBrandLabels["visa"] = "Visa";
|
|
20
|
+
CardBrandLabels["unknown"] = "Unknown";
|
|
21
|
+
})(CardBrandLabels || (CardBrandLabels = {}));
|
|
22
|
+
|
|
23
|
+
export { CardBrandLabels as C, PaymentMethodOption as P };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PaymentMethodOption extends Components.PaymentMethodOption, HTMLElement {}
|
|
4
|
+
export const PaymentMethodOption: {
|
|
5
|
+
prototype: PaymentMethodOption;
|
|
6
|
+
new (): PaymentMethodOption;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { W as radioListItem } from './parts.js';
|
|
3
|
+
import { S as StyledHost } from './styled-host.js';
|
|
4
|
+
import './details.js';
|
|
5
|
+
import './event-types.js';
|
|
6
|
+
import { d as defineCustomElement$2 } from './form-control-help-text2.js';
|
|
7
|
+
import { d as defineCustomElement$1 } from './form-control-radio2.js';
|
|
8
|
+
|
|
9
|
+
const PaymentMethodOption = /*@__PURE__*/ proxyCustomElement(class PaymentMethodOption extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.__attachShadow();
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(StyledHost, { key: 'bef445cfdd80c24e9b005f503cf4913ceac4eae8', class: "payment-method" }, h("div", { key: 'af292fe29e32858371b7a41fb3d1b983a33d4cc0', class: "radio-list-item p-3", part: radioListItem, onClick: this.clickHandler, hidden: this.radioButtonHidden }, h("form-control-radio", { key: '7f3e0ea48a5a8d9b655e1f8609065b7de06386eb', name: "paymentMethodType", value: this.paymentMethodOptionId, checked: this.isSelected, label: this.label }))));
|
|
17
|
+
}
|
|
18
|
+
}, [1, "payment-method-option", {
|
|
19
|
+
"paymentMethodOptionId": [1, "payment-method-option-id"],
|
|
20
|
+
"isSelected": [4, "is-selected"],
|
|
21
|
+
"clickHandler": [16, "click-handler"],
|
|
22
|
+
"radioButtonHidden": [4, "radio-button-hidden"],
|
|
23
|
+
"label": [1]
|
|
24
|
+
}]);
|
|
25
|
+
function defineCustomElement() {
|
|
26
|
+
if (typeof customElements === "undefined") {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const components = ["payment-method-option", "form-control-help-text", "form-control-radio"];
|
|
30
|
+
components.forEach(tagName => { switch (tagName) {
|
|
31
|
+
case "payment-method-option":
|
|
32
|
+
if (!customElements.get(tagName)) {
|
|
33
|
+
customElements.define(tagName, PaymentMethodOption);
|
|
34
|
+
}
|
|
35
|
+
break;
|
|
36
|
+
case "form-control-help-text":
|
|
37
|
+
if (!customElements.get(tagName)) {
|
|
38
|
+
defineCustomElement$2();
|
|
39
|
+
}
|
|
40
|
+
break;
|
|
41
|
+
case "form-control-radio":
|
|
42
|
+
if (!customElements.get(tagName)) {
|
|
43
|
+
defineCustomElement$1();
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
} });
|
|
47
|
+
}
|
|
48
|
+
defineCustomElement();
|
|
49
|
+
|
|
50
|
+
export { PaymentMethodOption as P, defineCustomElement as d };
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$b } from './form-control-radio2.js';
|
|
10
|
-
import { d as defineCustomElement$a } from './form-control-select2.js';
|
|
11
|
-
import { d as defineCustomElement$9 } from './form-control-text2.js';
|
|
12
|
-
import { d as defineCustomElement$8 } from './form-control-tooltip2.js';
|
|
13
|
-
import { d as defineCustomElement$7 } from './hidden-input2.js';
|
|
14
|
-
import { d as defineCustomElement$6 } from './iframe-input2.js';
|
|
15
|
-
import { d as defineCustomElement$5 } from './billing-form.js';
|
|
16
|
-
import { d as defineCustomElement$4 } from './new-payment-method.js';
|
|
17
|
-
import { d as defineCustomElement$3 } from './save-new-payment-method.js';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { b as PaymentMethodTypes } from './Payment.js';
|
|
3
|
+
import { P as PaymentMethodOption } from './payment-method-option-utils.js';
|
|
4
|
+
import { c as checkoutStore } from './checkout.store.js';
|
|
5
|
+
import { W as radioListItem } from './parts.js';
|
|
6
|
+
import { d as defineCustomElement$4 } from './form-control-help-text2.js';
|
|
7
|
+
import { d as defineCustomElement$3 } from './form-control-radio2.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './saved-payment-methods.js';
|
|
18
9
|
import { d as defineCustomElement$1 } from './sezzle-payment-method.js';
|
|
19
10
|
|
|
11
|
+
const PaymentMethodTypeLabels = {
|
|
12
|
+
bankAccount: 'New bank account',
|
|
13
|
+
card: 'New credit or debit card',
|
|
14
|
+
};
|
|
20
15
|
const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMethodOptions extends HTMLElement {
|
|
21
16
|
constructor() {
|
|
22
17
|
super();
|
|
@@ -51,12 +46,15 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
51
46
|
if (this.showAch) {
|
|
52
47
|
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
|
|
53
48
|
}
|
|
54
|
-
if (!
|
|
55
|
-
|
|
49
|
+
if (!checkoutStore.selectedPaymentMethod) {
|
|
50
|
+
checkoutStore.selectedPaymentMethod = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
|
|
56
51
|
}
|
|
57
52
|
}
|
|
58
53
|
paymentMethodOptionSelected(event) {
|
|
59
|
-
|
|
54
|
+
checkoutStore.selectedPaymentMethod = event.detail.id;
|
|
55
|
+
}
|
|
56
|
+
get hiddenRadioInput() {
|
|
57
|
+
return !this.showAch || !this.showCard;
|
|
60
58
|
}
|
|
61
59
|
async resolvePaymentMethod(insuranceValidation) {
|
|
62
60
|
var _a;
|
|
@@ -67,34 +65,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
67
65
|
return newPaymentMethodElement.validate();
|
|
68
66
|
}
|
|
69
67
|
render() {
|
|
70
|
-
|
|
71
|
-
return (h(Host, { key: 'c61e82c72aaa25e87ded723799a1eb0961c05444' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
72
|
-
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
73
|
-
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
74
|
-
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
75
|
-
const sezzle = paymentMethodOption.id === PaymentMethodTypes.sezzle;
|
|
76
|
-
if (newCard || newBankAccount) {
|
|
77
|
-
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) => {
|
|
78
|
-
if (isSelected) {
|
|
79
|
-
this.selectedPaymentMethodOptionRef = el;
|
|
80
|
-
}
|
|
81
|
-
} }));
|
|
82
|
-
}
|
|
83
|
-
else if (sezzle) {
|
|
84
|
-
return (h("justifi-sezzle-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, paymentAmount: this.paymentAmount, bnpl: this.bnpl, ref: (el) => {
|
|
85
|
-
if (isSelected) {
|
|
86
|
-
this.selectedPaymentMethodOptionRef = el;
|
|
87
|
-
}
|
|
88
|
-
} }));
|
|
89
|
-
}
|
|
90
|
-
else if (this.showSavedPaymentMethods) {
|
|
91
|
-
return (h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
|
|
92
|
-
if (isSelected) {
|
|
93
|
-
this.selectedPaymentMethodOptionRef = el;
|
|
94
|
-
}
|
|
95
|
-
} }));
|
|
96
|
-
}
|
|
97
|
-
})));
|
|
68
|
+
return (h("div", { key: 'e1a46216f766f12306302210bcba3147a4312cfa' }, h("justifi-saved-payment-methods", { key: '72ac4e440719ed1bbafc90f4cf0a2e3a52530713' }), h("justifi-sezzle-payment-method", { key: 'aaa89521f18ac4833d561c08b3fa50b00800a4bf' }), h("div", { key: '209001587e9f7e23f1147d4ef2d8ec4691f6c9fb', class: "radio-list-item p-3", part: radioListItem, onClick: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.card; }, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: '0baed32a40efc6ff0d77dcf53ae9e3ff3aab1185', name: "paymentMethodType", value: PaymentMethodTypes.card, checked: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card, label: PaymentMethodTypeLabels[PaymentMethodTypes.card] })), h("div", { key: '53d8360fdecec5a6860f480901911bd2c396e1a2', class: "radio-list-item p-3", part: radioListItem, onClick: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.bankAccount; }, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: '901a45bae4b3faeed8daa147db5c8264c4bee08c', name: "paymentMethodType", value: PaymentMethodTypes.bankAccount, checked: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.bankAccount, label: PaymentMethodTypeLabels[PaymentMethodTypes.bankAccount] }))));
|
|
98
69
|
}
|
|
99
70
|
static get watchers() { return {
|
|
100
71
|
"savedPaymentMethods": ["paymentMethodsChanged"]
|
|
@@ -102,8 +73,8 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
102
73
|
}, [0, "justifi-payment-method-options", {
|
|
103
74
|
"showCard": [4, "show-card"],
|
|
104
75
|
"showAch": [4, "show-ach"],
|
|
105
|
-
"showBnpl": [4, "show-bnpl"],
|
|
106
76
|
"showSavedPaymentMethods": [4, "show-saved-payment-methods"],
|
|
77
|
+
"showBnpl": [4, "show-bnpl"],
|
|
107
78
|
"paymentMethodGroupId": [1, "payment-method-group-id"],
|
|
108
79
|
"bnpl": [16],
|
|
109
80
|
"insuranceToggled": [4, "insurance-toggled"],
|
|
@@ -113,7 +84,6 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
|
|
|
113
84
|
"paymentAmount": [2, "payment-amount"],
|
|
114
85
|
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
115
86
|
"hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
|
|
116
|
-
"selectedPaymentMethodId": [32],
|
|
117
87
|
"paymentMethodOptions": [32],
|
|
118
88
|
"fillBillingForm": [64],
|
|
119
89
|
"resolvePaymentMethod": [64],
|
|
@@ -125,84 +95,24 @@ function defineCustomElement() {
|
|
|
125
95
|
if (typeof customElements === "undefined") {
|
|
126
96
|
return;
|
|
127
97
|
}
|
|
128
|
-
const components = ["justifi-payment-method-options", "
|
|
98
|
+
const components = ["justifi-payment-method-options", "form-control-help-text", "form-control-radio", "justifi-saved-payment-methods", "justifi-sezzle-payment-method"];
|
|
129
99
|
components.forEach(tagName => { switch (tagName) {
|
|
130
100
|
case "justifi-payment-method-options":
|
|
131
101
|
if (!customElements.get(tagName)) {
|
|
132
102
|
customElements.define(tagName, PaymentMethodOptions);
|
|
133
103
|
}
|
|
134
104
|
break;
|
|
135
|
-
case "bank-account-form":
|
|
136
|
-
if (!customElements.get(tagName)) {
|
|
137
|
-
defineCustomElement$g();
|
|
138
|
-
}
|
|
139
|
-
break;
|
|
140
|
-
case "card-form":
|
|
141
|
-
if (!customElements.get(tagName)) {
|
|
142
|
-
defineCustomElement$f();
|
|
143
|
-
}
|
|
144
|
-
break;
|
|
145
|
-
case "custom-popper":
|
|
146
|
-
if (!customElements.get(tagName)) {
|
|
147
|
-
defineCustomElement$e();
|
|
148
|
-
}
|
|
149
|
-
break;
|
|
150
|
-
case "form-control-checkbox":
|
|
151
|
-
if (!customElements.get(tagName)) {
|
|
152
|
-
defineCustomElement$d();
|
|
153
|
-
}
|
|
154
|
-
break;
|
|
155
105
|
case "form-control-help-text":
|
|
156
|
-
if (!customElements.get(tagName)) {
|
|
157
|
-
defineCustomElement$c();
|
|
158
|
-
}
|
|
159
|
-
break;
|
|
160
|
-
case "form-control-radio":
|
|
161
|
-
if (!customElements.get(tagName)) {
|
|
162
|
-
defineCustomElement$b();
|
|
163
|
-
}
|
|
164
|
-
break;
|
|
165
|
-
case "form-control-select":
|
|
166
|
-
if (!customElements.get(tagName)) {
|
|
167
|
-
defineCustomElement$a();
|
|
168
|
-
}
|
|
169
|
-
break;
|
|
170
|
-
case "form-control-text":
|
|
171
|
-
if (!customElements.get(tagName)) {
|
|
172
|
-
defineCustomElement$9();
|
|
173
|
-
}
|
|
174
|
-
break;
|
|
175
|
-
case "form-control-tooltip":
|
|
176
|
-
if (!customElements.get(tagName)) {
|
|
177
|
-
defineCustomElement$8();
|
|
178
|
-
}
|
|
179
|
-
break;
|
|
180
|
-
case "hidden-input":
|
|
181
|
-
if (!customElements.get(tagName)) {
|
|
182
|
-
defineCustomElement$7();
|
|
183
|
-
}
|
|
184
|
-
break;
|
|
185
|
-
case "iframe-input":
|
|
186
|
-
if (!customElements.get(tagName)) {
|
|
187
|
-
defineCustomElement$6();
|
|
188
|
-
}
|
|
189
|
-
break;
|
|
190
|
-
case "justifi-billing-form":
|
|
191
|
-
if (!customElements.get(tagName)) {
|
|
192
|
-
defineCustomElement$5();
|
|
193
|
-
}
|
|
194
|
-
break;
|
|
195
|
-
case "justifi-new-payment-method":
|
|
196
106
|
if (!customElements.get(tagName)) {
|
|
197
107
|
defineCustomElement$4();
|
|
198
108
|
}
|
|
199
109
|
break;
|
|
200
|
-
case "
|
|
110
|
+
case "form-control-radio":
|
|
201
111
|
if (!customElements.get(tagName)) {
|
|
202
112
|
defineCustomElement$3();
|
|
203
113
|
}
|
|
204
114
|
break;
|
|
205
|
-
case "justifi-saved-payment-
|
|
115
|
+
case "justifi-saved-payment-methods":
|
|
206
116
|
if (!customElements.get(tagName)) {
|
|
207
117
|
defineCustomElement$2();
|
|
208
118
|
}
|