@justifi/webcomponents 5.7.1 → 5.7.3-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-BqC8BOhm.js → Analytics-DYN4hp2b.js} +27 -26
- package/dist/cjs/{Api-C8nf_gS9.js → Api-BTdkb3Zh.js} +2 -2
- package/dist/cjs/{Business-DyiDiIuO.js → Business-DCRzZf0w.js} +3 -1
- package/dist/cjs/{Checkout-RAGvjVPj.js → Checkout-BsYZoJ0a.js} +2 -4
- package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
- package/dist/cjs/Document-rXGBUaOh.js +58 -0
- package/dist/cjs/{Document-CL5Zc72Q.js → Payment-D5UynU2f.js} +1 -57
- package/dist/cjs/{Refund-CYxocU06.js → Refund-BDFOEJv_.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -15
- package/dist/cjs/{badge-BxoJOyTJ.js → badge-sO_Hcamo.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +15 -14
- package/dist/cjs/{bank-account-form_9.cjs.entry.js → bank-account-form_7.cjs.entry.js} +51 -210
- package/dist/cjs/billing-form-schema-oZ4GROWP.js +26 -0
- package/dist/cjs/{business-additional-questions-schema-DR8vt11M.js → business-additional-questions-schema-CHOaeZot.js} +6 -6
- package/dist/cjs/business-details-core.cjs.entry.js +5 -6
- package/dist/cjs/{business-form-options-BCj0efiD.js → business-form-options-CMII7nIK.js} +1 -1
- package/dist/cjs/{business-identity-schema-BYaCsboD.js → business-identity-schema-DmpEndsx.js} +10 -10
- package/dist/cjs/{business.service-C2rg_zSw.js → business.service-ev-3rHag.js} +7 -6
- package/dist/cjs/{button-BPFSRx4d.js → button-CCZd8WSY.js} +1 -1
- package/dist/cjs/checkout-actions-CRbQgLn0.js +61 -0
- package/dist/cjs/{checkout.service-CyvIIMeq.js → checkout.service-D4hTYr1i.js} +7 -6
- package/dist/cjs/checkout.store-osqdxFMq.js +29 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +16 -15
- package/dist/cjs/{checkouts-list-params-state-BvG5Ysrg.js → checkouts-list-params-state-fVsfZZ5G.js} +1 -1
- package/dist/cjs/{checkouts-table-_T5eblyc.js → checkouts-table-C1Jv_A7m.js} +3 -3
- package/dist/cjs/{config-state-D7p-XunE.js → config-state-BTfJl-LU.js} +1 -1
- package/dist/cjs/custom-popper_4.cjs.entry.js +8 -8
- package/dist/cjs/{dispute.service-CKPR1vFS.js → dispute.service-Dru9NStj.js} +7 -6
- package/dist/cjs/{index.esm-CVuJLXJZ.js → form-CWW8IM-X.js} +10509 -10509
- package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
- 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-D9XDyFoW.js → form-control-error-text-DPDsFdAT.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-J_boqSMc.js → form-control-help-text-CT5HzEnX.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 +6 -6
- 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/{get-business-DHg5rpse.js → get-business-BiEc-jdH.js} +3 -3
- package/dist/cjs/{get-payment-details-C9HqIv-M.js → get-payment-details-AOibpML7.js} +10 -9
- package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
- package/dist/cjs/{get-subaccounts-BNpIanJ9.js → get-subaccounts-Dw7CbPDi.js} +10 -9
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- package/dist/cjs/{header-1-auSUfIpO.js → header-1--wdCXxjA.js} +1 -1
- package/dist/cjs/{header-3-B-bXHCpC.js → header-3-DxUQJ7TT.js} +1 -1
- package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +112 -15
- package/dist/cjs/{index-BYd8IvAa.js → index-2GwnTbNA.js} +22 -4
- package/dist/cjs/{index-B8ljHEN1.js → index-DEMVrrsF.js} +1 -1
- package/dist/cjs/{insurance-state-CFxbKNWH.js → insurance-state-BmAF1Sef.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +25 -24
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +23 -22
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +43 -43
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +85 -0
- package/dist/cjs/justifi-billing-information-form.cjs.entry.js +51 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +26 -20
- package/dist/cjs/justifi-business-form.cjs.entry.js +29 -28
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +93 -0
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +10 -10
- package/dist/cjs/justifi-checkout-summary.cjs.entry.js +21 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +31 -74
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +13 -12
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +22 -21
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +18 -17
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +23 -22
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +17 -16
- package/dist/cjs/justifi-modular-checkout.cjs.entry.js +205 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +22 -21
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +20 -19
- package/dist/cjs/justifi-payment-details.cjs.entry.js +19 -18
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +18 -17
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +21 -20
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list.cjs.entry.js +23 -22
- package/dist/cjs/justifi-payout-details.cjs.entry.js +19 -18
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +21 -20
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +24 -23
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +50 -0
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +28 -27
- package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +31 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +6 -6
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +24 -25
- package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +80 -0
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +14 -13
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +20 -19
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +13 -12
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +22 -21
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +26 -19
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/{package-Biee4Hdo.js → package-DF9mLjoQ.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +15 -15
- 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-C996aLGw.js → payment.service-rsnscZu7.js} +7 -6
- package/dist/cjs/payments-list-core.cjs.entry.js +17 -16
- package/dist/cjs/{payments-list-params-state-BvG5Ysrg.js → payments-list-params-state-fVsfZZ5G.js} +1 -1
- package/dist/cjs/{payments-status-BTykBx8i.js → payments-status-DPqU5v9h.js} +2 -2
- package/dist/cjs/{payments-table-BkRhDePE.js → payments-table-BM3AoAJf.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +11 -11
- package/dist/cjs/{payout.service-BwKgEbDo.js → payout.service-BnmI3X4n.js} +7 -6
- package/dist/cjs/payouts-list-core.cjs.entry.js +17 -16
- package/dist/cjs/{payouts-list-params-state-BvG5Ysrg.js → payouts-list-params-state-fVsfZZ5G.js} +1 -1
- package/dist/cjs/{payouts-status-YCqmbd4K.js → payouts-status-CU8aqIhH.js} +2 -2
- package/dist/cjs/{payouts-table-DJMz3bVh.js → payouts-table-1HL4kk9B.js} +3 -3
- package/dist/cjs/{schema-validations-Bhz09M42.js → schema-validations-C0BNwMBi.js} +36 -37
- package/dist/cjs/{skeleton-aMh0RMHq.js → skeleton-ByLavxr1.js} +1 -1
- package/dist/cjs/{spinner-BTyIjlMM.js → spinner-DOC4Ab7M.js} +1 -1
- package/dist/cjs/{styled-host-udkBJV5h.js → styled-host-IMxk64cc.js} +1 -1
- package/dist/cjs/{table-DKVauFHc.js → table-BgQP2M2-.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +16 -15
- package/dist/cjs/{terminal-orders-list-params-state-BvG5Ysrg.js → terminal-orders-list-params-state-fVsfZZ5G.js} +1 -1
- package/dist/cjs/{terminal-orders-table-CxY1ykZ7.js → terminal-orders-table-OxMHSAJ1.js} +10 -9
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-D7dxg9ZQ.js → terminal.service--PPaq5xS.js} +7 -6
- package/dist/cjs/terminals-list-core.cjs.entry.js +16 -15
- package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +22 -0
- package/dist/cjs/{terminals-table-D2XUsf_J.js → terminals-table-yRGsrfBw.js} +3 -3
- package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
- package/dist/cjs/{utils-5lco6NzU.js → utils-bn0fXuc-.js} +1 -1
- package/dist/cjs/{utils-DmZ8Dia3.js → utils-qOon0GWm.js} +3 -0
- package/dist/cjs/webcomponents.cjs.js +4 -5
- package/dist/collection/api/BillingInformation.js +1 -0
- package/dist/collection/api/Business.js +3 -1
- package/dist/collection/api/Checkout.js +1 -3
- package/dist/collection/api/ComponentError.js +2 -0
- package/dist/collection/api/PaymentMethod.js +1 -0
- package/dist/collection/collection-manifest.json +10 -3
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +3 -4
- package/dist/collection/components/business-details/business-details-core.js +1 -2
- package/dist/collection/components/business-details/business-details.js +10 -3
- package/dist/collection/components/business-details/core-info-details/core-info-details.js +41 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +3 -3
- package/dist/collection/components/business-details/representative-details/representative-details.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/business-forms/schemas/schema-validations.js +6 -7
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +6 -5
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +11 -2
- package/dist/collection/components/checkout/new-payment-method.js +17 -6
- package/dist/collection/components/checkout/payment-method-options.js +6 -37
- 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.js +10 -12
- package/dist/collection/components/modular-checkout/modular-checkout.js +345 -0
- package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout-parts/bank-account.js +119 -0
- package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +21 -0
- package/dist/collection/components/modular-checkout-parts/billing-form.js +116 -0
- package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout-parts/card-form.js +123 -0
- package/dist/collection/components/modular-checkout-parts/postal-code-form.js +114 -0
- package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +23 -0
- package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +127 -0
- package/dist/collection/components/modular-checkout-parts/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 +13 -7
- package/dist/collection/store/checkout.store.js +25 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.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/utils/utils.js +3 -0
- package/dist/docs.json +1290 -472
- package/dist/esm/{check-pkg-version-DxnKX9GQ.js → Analytics-DR277kvb.js} +28 -27
- package/dist/esm/{Api-KYhsw8Nv.js → Api-CqimcNgb.js} +2 -2
- package/dist/esm/{Business-D6XNzizo.js → Business-BCoP0TAV.js} +3 -1
- package/dist/esm/{Checkout-Dfpql997.js → Checkout-CV6qgU0r.js} +2 -4
- package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
- package/dist/esm/{Dispute-BH0Xfn-F.js → Dispute-7MWRbTXI.js} +1 -1
- package/dist/esm/Document-Ct-uNz2r.js +55 -0
- package/dist/esm/{Document-cNXrKmGy.js → Payment-BEvE6jAC.js} +3 -57
- package/dist/esm/{Refund-2YJqP9qX.js → Refund-CwUn_GFj.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +15 -16
- package/dist/esm/{badge-Du9GTXoB.js → badge-D_Q0kAPD.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +17 -16
- package/dist/esm/{bank-account-form_9.entry.js → bank-account-form_7.entry.js} +43 -200
- package/dist/esm/billing-form-schema-PFvYpvy4.js +24 -0
- package/dist/esm/{business-additional-questions-schema-GpN_koGK.js → business-additional-questions-schema-0lssJqN7.js} +2 -2
- package/dist/esm/business-details-core.entry.js +6 -7
- package/dist/esm/{business-form-options-Bn05PRR4.js → business-form-options-CgssATyg.js} +1 -1
- package/dist/esm/{business-identity-schema-BjuQ6ajL.js → business-identity-schema-Bel1K5mu.js} +2 -2
- package/dist/esm/{business.service-ClD_YDeT.js → business.service-BM8hLxHS.js} +8 -7
- package/dist/esm/{button-CjH5C0pG.js → button-BVAxQPpP.js} +2 -2
- package/dist/esm/checkout-actions-UQ6g1s7I.js +58 -0
- package/dist/esm/{checkout.service-DfzkmIe4.js → checkout.service-CuCgG9hv.js} +8 -7
- package/dist/esm/checkout.store-DQrlfeus.js +27 -0
- package/dist/esm/checkouts-list-core.entry.js +18 -17
- package/dist/esm/{checkouts-list-params-state-Bn7pL-8x.js → checkouts-list-params-state-DhPyCV-V.js} +1 -1
- package/dist/esm/{checkouts-table-DKd0QLys.js → checkouts-table-Cc6U-0md.js} +4 -4
- package/dist/esm/{config-state-CkKrqnpZ.js → config-state-BjXhUj2q.js} +1 -1
- package/dist/esm/custom-popper_4.entry.js +9 -9
- package/dist/esm/{dispute.service-BTOWqnmk.js → dispute.service-rB4Hq6ot.js} +8 -7
- package/dist/esm/{index.esm-BCNUj0Dx.js → form-BjGUIqxU.js} +10509 -10509
- package/dist/esm/form-alert_5.entry.js +4 -4
- 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-tGFxd6kW.js → form-control-error-text-_SAT-ts2.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-2DawN8-N.js → form-control-help-text-Cjeu_VrV.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/{get-business-CIKToQur.js → get-business-BSRtbTh7.js} +3 -3
- package/dist/esm/{get-payment-details-D-prcfRc.js → get-payment-details-DtkGDTwo.js} +10 -9
- package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
- package/dist/esm/{get-subaccounts-B0uEyOp_.js → get-subaccounts-C-ENQBmY.js} +11 -10
- package/dist/esm/gross-payment-chart-core.entry.js +6 -6
- package/dist/esm/{header-1-D2gZb3iT.js → header-1-5FIT-wD7.js} +2 -2
- package/dist/esm/{header-3-DAg8Vh4B.js → header-3-Ce9WLWBm.js} +2 -2
- package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
- package/dist/esm/{index-D6FDxSyt.js → index-Bta_r52Z.js} +22 -5
- package/dist/esm/{index-Cc3u0uDC.js → index-Cf8VXyXg.js} +1 -1
- package/dist/esm/{insurance-state-CsZbKSgm.js → insurance-state-BcwZy_5w.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +19 -18
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +20 -19
- package/dist/esm/justifi-additional-statement_8.entry.js +11 -11
- package/dist/esm/justifi-bank-account-form.entry.js +83 -0
- package/dist/esm/justifi-billing-information-form.entry.js +49 -0
- package/dist/esm/justifi-business-details.entry.js +26 -20
- package/dist/esm/justifi-business-form.entry.js +27 -26
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-card-form.entry.js +91 -0
- package/dist/esm/justifi-checkout-core.entry.js +11 -11
- package/dist/esm/justifi-checkout-summary.entry.js +19 -0
- package/dist/esm/justifi-checkout.entry.js +28 -71
- package/dist/esm/justifi-checkouts-list-filters.entry.js +15 -14
- package/dist/esm/justifi-checkouts-list.entry.js +22 -21
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +4 -4
- package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +17 -16
- package/dist/esm/justifi-dispute-notification_3.entry.js +23 -22
- package/dist/esm/justifi-gross-payment-chart.entry.js +17 -16
- package/dist/esm/justifi-modular-checkout.entry.js +203 -0
- package/dist/esm/justifi-order-terminals.entry.js +22 -21
- package/dist/esm/justifi-owner-form_3.entry.js +21 -20
- package/dist/esm/justifi-payment-details.entry.js +19 -18
- package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +17 -16
- package/dist/esm/justifi-payment-transactions-list.entry.js +21 -20
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +22 -21
- package/dist/esm/justifi-payout-details.entry.js +19 -18
- package/dist/esm/justifi-payout-transactions-list.entry.js +21 -20
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +24 -23
- package/dist/esm/justifi-postal-code-form.entry.js +48 -0
- package/dist/esm/justifi-refund-payment.entry.js +22 -21
- package/dist/esm/justifi-saved-payment-methods.entry.js +29 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +7 -7
- package/dist/esm/justifi-season-interruption-insurance.entry.js +23 -24
- package/dist/esm/justifi-sezzle-payment-method.entry.js +78 -0
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +16 -15
- package/dist/esm/justifi-terminal-orders-list.entry.js +20 -19
- package/dist/esm/justifi-terminals-list-filters.entry.js +15 -14
- package/dist/esm/justifi-terminals-list.entry.js +22 -21
- package/dist/esm/justifi-tokenize-payment-method.entry.js +26 -19
- package/dist/esm/loader.js +3 -4
- package/dist/esm/{package-DPiTQ9dr.js → package-CyXXks-Q.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-BrLVc_85.js → parts-_6eQgwfE.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-CgwLo1_s.js → payment.service-DoUv1QsX.js} +8 -7
- package/dist/esm/payments-list-core.entry.js +19 -18
- package/dist/esm/{payments-list-params-state-Bn7pL-8x.js → payments-list-params-state-DhPyCV-V.js} +1 -1
- package/dist/esm/{payments-status-CIUXcA0w.js → payments-status-BeL2gi3P.js} +2 -2
- package/dist/esm/{payments-table-BBf5fV74.js → payments-table-MrDAlH2o.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +12 -12
- package/dist/esm/{payout.service-DYFCNfLa.js → payout.service-B_Fm08zQ.js} +8 -7
- package/dist/esm/payouts-list-core.entry.js +19 -18
- package/dist/esm/{payouts-list-params-state-Bn7pL-8x.js → payouts-list-params-state-DhPyCV-V.js} +1 -1
- package/dist/esm/{payouts-status-Clo03qUI.js → payouts-status-BxbhUjA3.js} +2 -2
- package/dist/esm/{payouts-table-DhZEXhGH.js → payouts-table-HoX3UYIj.js} +4 -4
- package/dist/esm/{schema-validations-D9YNVLiI.js → schema-validations-DYV7urvw.js} +8 -9
- package/dist/esm/{skeleton-Dlpibtr0.js → skeleton-CPNYhX-V.js} +2 -2
- package/dist/esm/{spinner-onCBxbdo.js → spinner-Cl-6YJPf.js} +2 -2
- package/dist/esm/{styled-host-C7vaWLiB.js → styled-host-BSX_LSdk.js} +1 -1
- package/dist/esm/{table-p4dOlFPi.js → table-RCk8zh4L.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +18 -17
- package/dist/esm/{terminal-orders-list-params-state-Bn7pL-8x.js → terminal-orders-list-params-state-DhPyCV-V.js} +1 -1
- package/dist/esm/{terminal-orders-table-BopP465z.js → terminal-orders-table-DxHLNkx_.js} +12 -11
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-f-whs_d4.js → terminal.service-2VkdfNas.js} +8 -7
- package/dist/esm/terminals-list-core.entry.js +18 -17
- package/dist/esm/terminals-list-params-state-DhPyCV-V.js +16 -0
- package/dist/esm/{terminals-table-CkWr-6tD.js → terminals-table-v-LOevYA.js} +4 -4
- package/dist/esm/{utils-BpP_VJGf.js → utils-1WrbuHVR.js} +2 -2
- package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
- package/dist/esm/{utils-BWcTxbSg.js → utils-BjLkBMLe.js} +4 -1
- package/dist/esm/webcomponents.js +4 -5
- package/dist/module/{check-pkg-version.js → Analytics.js} +21 -21
- package/dist/module/Business.js +3 -1
- package/dist/module/Checkout.js +3 -3
- package/dist/module/additional-questions-details2.js +3 -4
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-form2.js +2 -2
- package/dist/module/billing-form-schema.js +24 -0
- package/dist/module/billing-form.js +6 -5
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-details-core2.js +11 -7
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +2 -2
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout-actions.js +58 -0
- package/dist/module/checkout-core.js +32 -38
- package/dist/module/checkout.store.js +27 -0
- package/dist/module/checkouts-list-core2.js +2 -2
- package/dist/module/{generic-info-details.d.ts → core-info-details.d.ts} +4 -4
- package/dist/module/core-info-details.js +6 -0
- package/dist/module/core-info-details2.js +34 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/details.js +2 -2
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +2 -2
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- 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/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/justifi-bank-account-form.d.ts +11 -0
- package/dist/module/justifi-bank-account-form.js +103 -0
- package/dist/module/justifi-billing-information-form.d.ts +11 -0
- package/dist/module/justifi-billing-information-form.js +94 -0
- package/dist/module/justifi-business-details.js +21 -10
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-card-form.d.ts +11 -0
- package/dist/module/justifi-card-form.js +111 -0
- package/dist/module/justifi-checkout-summary.d.ts +11 -0
- package/dist/module/justifi-checkout-summary.js +37 -0
- package/dist/module/justifi-checkout.js +48 -99
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-modular-checkout.d.ts +11 -0
- package/dist/module/justifi-modular-checkout.js +219 -0
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-postal-code-form.d.ts +11 -0
- package/dist/module/justifi-postal-code-form.js +86 -0
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
- package/dist/module/justifi-saved-payment-methods.js +58 -0
- package/dist/module/justifi-season-interruption-insurance.js +9 -11
- package/dist/module/justifi-sezzle-payment-method.js +108 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/justifi-tokenize-payment-method.js +42 -42
- package/dist/module/legal-address-details2.js +3 -3
- package/dist/module/new-payment-method.js +15 -4
- 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-options.js +35 -53
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/representative-details2.js +3 -3
- package/dist/module/saved-payment-method.js +2 -22
- package/dist/module/schema-validations.js +5 -6
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/terminal-orders-list-core2.js +2 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/module/utils2.js +3 -0
- package/dist/types/api/BillingInformation.d.ts +13 -0
- package/dist/types/api/Checkout.d.ts +14 -13
- package/dist/types/api/ComponentError.d.ts +3 -1
- package/dist/types/api/PaymentMethod.d.ts +21 -0
- package/dist/types/components/business-details/business-details.d.ts +1 -0
- package/dist/types/components/business-details/core-info-details/core-info-details.d.ts +5 -0
- package/dist/types/components/business-forms/utils/helpers.d.ts +1 -1
- package/dist/types/components/checkout/billing-form/billing-form.d.ts +1 -0
- package/dist/types/components/checkout/checkout.d.ts +1 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +4 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
- 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-parts/bank-account-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout-parts/bank-account.d.ts +18 -0
- package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +23 -0
- package/dist/types/components/modular-checkout-parts/billing-form.d.ts +16 -0
- package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout-parts/card-form.d.ts +20 -0
- package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +16 -0
- package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +5 -0
- package/dist/types/components/{checkout → modular-checkout-parts}/sezzle-payment-method.d.ts +2 -8
- package/dist/types/components/modular-checkout-parts/summary.d.ts +3 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +3 -2
- package/dist/types/components.d.ts +449 -42
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/store/checkout.store.d.ts +19 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
- package/dist/types/utils/utils.d.ts +1 -1
- package/dist/webcomponents/p-00900e52.entry.js +1 -0
- package/dist/webcomponents/p-025ae692.entry.js +1 -0
- package/dist/webcomponents/p-02e26641.entry.js +1 -0
- package/dist/webcomponents/p-04c91ec1.entry.js +1 -0
- package/dist/webcomponents/{p-bf3e8295.entry.js → p-0c13f2da.entry.js} +1 -1
- package/dist/webcomponents/p-0d5e93b3.entry.js +1 -0
- package/dist/webcomponents/{p-90c24cda.entry.js → p-15c63931.entry.js} +1 -1
- package/dist/webcomponents/p-19b5f93a.entry.js +1 -0
- package/dist/webcomponents/p-1ac365b4.entry.js +1 -0
- package/dist/webcomponents/{p-b40108c0.entry.js → p-1d59c747.entry.js} +1 -1
- package/dist/webcomponents/p-1d64d86b.entry.js +1 -0
- package/dist/webcomponents/p-20d7db42.entry.js +1 -0
- package/dist/webcomponents/p-25b310f0.entry.js +1 -0
- package/dist/webcomponents/p-271b131d.entry.js +1 -0
- package/dist/webcomponents/p-2882b4e9.entry.js +1 -0
- package/dist/webcomponents/p-2a08ba01.entry.js +1 -0
- package/dist/webcomponents/p-2f027626.entry.js +1 -0
- package/dist/webcomponents/p-2fa36c0e.entry.js +1 -0
- package/dist/webcomponents/p-379584fb.entry.js +1 -0
- package/dist/webcomponents/p-39f31e23.entry.js +1 -0
- package/dist/webcomponents/p-3b6888c5.entry.js +1 -0
- package/dist/webcomponents/p-3d62f9a5.entry.js +1 -0
- package/dist/webcomponents/p-3edd5ebd.entry.js +1 -0
- package/dist/webcomponents/p-4232760b.entry.js +1 -0
- package/dist/webcomponents/p-4be4f7b4.entry.js +1 -0
- package/dist/webcomponents/p-531738ae.entry.js +1 -0
- package/dist/webcomponents/p-54019e68.entry.js +1 -0
- package/dist/webcomponents/{p-3e94cf62.entry.js → p-584ba20d.entry.js} +1 -1
- package/dist/webcomponents/p-5bc6f1e6.entry.js +20 -0
- package/dist/webcomponents/p-5bfbb0f8.entry.js +1 -0
- package/dist/webcomponents/{p-19b9c96a.entry.js → p-5da3ba38.entry.js} +1 -1
- package/dist/webcomponents/{p-bb50155f.entry.js → p-5ea3cfca.entry.js} +1 -1
- package/dist/webcomponents/p-5f9dbaff.entry.js +1 -0
- package/dist/webcomponents/p-6b229318.entry.js +1 -0
- package/dist/webcomponents/p-6fc1ace5.entry.js +1 -0
- package/dist/webcomponents/{p-7733b67b.entry.js → p-712220f9.entry.js} +1 -1
- package/dist/webcomponents/p-716d41f2.entry.js +1 -0
- package/dist/webcomponents/p-7253f1ea.entry.js +1 -0
- package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
- package/dist/webcomponents/p-80b662de.entry.js +1 -0
- package/dist/webcomponents/p-82164a5e.entry.js +1 -0
- package/dist/webcomponents/p-8532c68c.entry.js +1 -0
- package/dist/webcomponents/p-8590c5df.entry.js +1 -0
- package/dist/webcomponents/p-8e555a6e.entry.js +1 -0
- package/dist/webcomponents/p-96f89c69.entry.js +1 -0
- package/dist/webcomponents/p-98a39544.entry.js +1 -0
- package/dist/webcomponents/{p-CpTwq2jw.js → p-9REosSLu.js} +1 -1
- package/dist/webcomponents/{p-b2192f8b.entry.js → p-9a17fd5a.entry.js} +1 -1
- package/dist/webcomponents/p-9a9f9c57.entry.js +1 -0
- package/dist/webcomponents/{p-D5XSsLKb.js → p-B4MIwTdb.js} +1 -1
- package/dist/webcomponents/{p-n2YROtpe.js → p-B7VsiIW-.js} +1 -1
- package/dist/webcomponents/p-B8Ovjy6S.js +1 -0
- package/dist/webcomponents/p-BE5Nvydk.js +1 -0
- package/dist/webcomponents/{p-DuYlA4lj.js → p-BEDtXmpq.js} +1 -1
- package/dist/webcomponents/p-BGHVK-vQ.js +1 -0
- package/dist/webcomponents/{p-BzPi8Ea_.js → p-BPCw4WEY.js} +1 -1
- package/dist/webcomponents/p-BSUCBhkJ.js +1 -0
- package/dist/webcomponents/{p-DvHZ2jYI.js → p-BhLPwu1L.js} +1 -1
- package/dist/webcomponents/p-BhrFjjAs.js +1 -0
- package/dist/webcomponents/{p-BrvbVMVq.js → p-BlJnA265.js} +1 -1
- package/dist/webcomponents/p-BoGb-Wsw.js +1 -0
- package/dist/webcomponents/p-Bond4qGX.js +1 -0
- package/dist/webcomponents/p-BpEw7AJl.js +1 -0
- package/dist/webcomponents/p-Bta_r52Z.js +2 -0
- package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
- package/dist/webcomponents/p-C-WgCIei.js +1 -0
- package/dist/webcomponents/p-CBs671Ol.js +1 -0
- package/dist/webcomponents/p-CCpqJxzB.js +1 -0
- package/dist/webcomponents/p-CDTncSrX.js +1 -0
- package/dist/webcomponents/p-CLpgfEbx.js +1 -0
- package/dist/webcomponents/p-CRYPNa2o.js +1 -0
- package/dist/webcomponents/p-CbGBEkk3.js +1 -0
- package/dist/webcomponents/p-CeNlJX4-.js +1 -0
- package/dist/webcomponents/p-CnnRWu7z.js +1 -0
- package/dist/webcomponents/{p-C0WFYqwq.js → p-CqVelcDt.js} +1 -1
- package/dist/webcomponents/p-Ct-uNz2r.js +1 -0
- package/dist/webcomponents/{p-82kiZkHt.js → p-Ctw40vkk.js} +1 -1
- package/dist/webcomponents/p-CvChBLtI.js +1 -0
- package/dist/webcomponents/{p-D0ptm6-3.js → p-CwHYDF33.js} +1 -1
- package/dist/webcomponents/p-CyXXks-Q.js +1 -0
- package/dist/webcomponents/p-Czro_9VO.js +1 -0
- package/dist/webcomponents/{p-Cd06j2SL.js → p-D3BIZZrc.js} +1 -1
- package/dist/webcomponents/{p-ByRPlUBS.js → p-D3SYNGyb.js} +1 -1
- package/dist/webcomponents/{p-BjB_yKBJ.js → p-D7js9xfx.js} +1 -1
- package/dist/webcomponents/p-DKClunJd.js +1 -0
- package/dist/webcomponents/p-DOB09NZD.js +1 -0
- package/dist/webcomponents/p-DUdzWNqB.js +1 -0
- package/dist/webcomponents/p-D_FOQEGU.js +1 -0
- package/dist/webcomponents/p-DaS3t0DL.js +1 -0
- package/dist/webcomponents/p-DddGO-XR.js +1 -0
- package/dist/webcomponents/p-Dge4w7_c.js +1 -0
- package/dist/webcomponents/p-DkWBoLsd.js +1 -0
- package/dist/webcomponents/p-DknV-QPT.js +1 -0
- package/dist/webcomponents/p-DnX5CZFd.js +1 -0
- package/dist/webcomponents/p-DuiQuWNq.js +1 -0
- package/dist/webcomponents/p-Dw6NWKHn.js +1 -0
- package/dist/webcomponents/p-DzPrenCi.js +1 -0
- package/dist/webcomponents/p-NqdaxjDT.js +1 -0
- package/dist/webcomponents/p-YDuIVoos.js +1 -0
- package/dist/webcomponents/{p-OSmuQKbK.js → p-Yj41tobi.js} +1 -1
- package/dist/webcomponents/{p-BrLVc_85.js → p-_6eQgwfE.js} +1 -1
- package/dist/webcomponents/p-a2db11b5.entry.js +1 -0
- package/dist/webcomponents/p-a31913e3.entry.js +1 -0
- package/dist/webcomponents/p-a4d457e9.entry.js +1 -0
- package/dist/webcomponents/{p-24792e8e.entry.js → p-b3e6d27c.entry.js} +1 -1
- package/dist/webcomponents/p-b8ee41c1.entry.js +1 -0
- package/dist/webcomponents/p-bde749ac.entry.js +1 -0
- package/dist/webcomponents/{p-82515f70.entry.js → p-be51c7c5.entry.js} +1 -1
- package/dist/webcomponents/p-bf16b11c.entry.js +1 -0
- package/dist/webcomponents/p-ce291c6a.entry.js +1 -0
- package/dist/webcomponents/p-d82b509a.entry.js +1 -0
- package/dist/webcomponents/p-d9b06582.entry.js +1 -0
- package/dist/webcomponents/p-dbc02ba8.entry.js +1 -0
- package/dist/webcomponents/p-dcad0df5.entry.js +1 -0
- package/dist/webcomponents/{p-59abf1de.entry.js → p-df2ad580.entry.js} +1 -1
- package/dist/webcomponents/p-e03630ec.entry.js +1 -0
- package/dist/webcomponents/p-e07sVz4Z.js +1 -0
- package/dist/webcomponents/p-e563df65.entry.js +1 -0
- package/dist/webcomponents/p-e8294f7e.entry.js +1 -0
- package/dist/webcomponents/p-ea664ada.entry.js +1 -0
- package/dist/webcomponents/p-ec9bb3f6.entry.js +1 -0
- package/dist/webcomponents/p-ecf6a315.entry.js +1 -0
- package/dist/webcomponents/p-ef9dcfe1.entry.js +1 -0
- package/dist/webcomponents/p-f71b1ff0.entry.js +1 -0
- package/dist/webcomponents/{p-99b080d9.entry.js → p-f7e24a51.entry.js} +1 -1
- package/dist/webcomponents/{p-5e467788.entry.js → p-ff223825.entry.js} +1 -1
- package/dist/webcomponents/p-hDoH7hHP.js +1 -0
- package/dist/webcomponents/p-pGzabKc7.js +1 -0
- package/dist/webcomponents/p-uLUlLQpP.js +1 -0
- package/dist/webcomponents/{p-IA90llLO.js → p-yH3TC3ZQ.js} +1 -1
- package/dist/webcomponents/p-zucQG3cz.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/iframe-input-styles-state-D9vhHzZQ.js +0 -26
- package/dist/cjs/terminals-list-params-state-BvG5Ysrg.js +0 -22
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -40
- package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/iframe-input-styles-state-ibYqbF--.js +0 -23
- package/dist/esm/terminals-list-params-state-Bn7pL-8x.js +0 -16
- package/dist/module/generic-info-details.js +0 -6
- package/dist/module/generic-info-details2.js +0 -34
- package/dist/module/sezzle-payment-method.js +0 -104
- package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +0 -5
- package/dist/webcomponents/p-0ab2f675.entry.js +0 -1
- package/dist/webcomponents/p-0b57ecc3.entry.js +0 -1
- package/dist/webcomponents/p-0deb6a38.entry.js +0 -1
- package/dist/webcomponents/p-16adfe77.entry.js +0 -1
- package/dist/webcomponents/p-1a85f26f.entry.js +0 -1
- package/dist/webcomponents/p-1b22572d.entry.js +0 -1
- package/dist/webcomponents/p-22a0b397.entry.js +0 -1
- package/dist/webcomponents/p-22e9ff07.entry.js +0 -1
- package/dist/webcomponents/p-25ea4450.entry.js +0 -1
- package/dist/webcomponents/p-2adda453.entry.js +0 -1
- package/dist/webcomponents/p-2b8ac00a.entry.js +0 -1
- package/dist/webcomponents/p-2dbc4b19.entry.js +0 -1
- package/dist/webcomponents/p-3368d3d5.entry.js +0 -1
- package/dist/webcomponents/p-3a979295.entry.js +0 -1
- package/dist/webcomponents/p-3abc8eab.entry.js +0 -1
- package/dist/webcomponents/p-3babed12.entry.js +0 -1
- package/dist/webcomponents/p-40541e0c.entry.js +0 -1
- package/dist/webcomponents/p-4194214c.entry.js +0 -1
- package/dist/webcomponents/p-43d6bbed.entry.js +0 -1
- package/dist/webcomponents/p-44d8c2b1.entry.js +0 -1
- package/dist/webcomponents/p-4749e0d0.entry.js +0 -1
- package/dist/webcomponents/p-4ee0cd96.entry.js +0 -1
- package/dist/webcomponents/p-54281359.entry.js +0 -1
- package/dist/webcomponents/p-639baa7d.entry.js +0 -1
- package/dist/webcomponents/p-6429afb4.entry.js +0 -1
- package/dist/webcomponents/p-6n7viK-J.js +0 -1
- package/dist/webcomponents/p-799000c1.entry.js +0 -1
- package/dist/webcomponents/p-7c62b59d.entry.js +0 -1
- package/dist/webcomponents/p-83154291.entry.js +0 -1
- package/dist/webcomponents/p-84d27581.entry.js +0 -1
- package/dist/webcomponents/p-9105f700.entry.js +0 -1
- package/dist/webcomponents/p-916ea4fc.entry.js +0 -1
- package/dist/webcomponents/p-935bbc62.entry.js +0 -1
- package/dist/webcomponents/p-935fa555.entry.js +0 -1
- package/dist/webcomponents/p-947239a6.entry.js +0 -1
- package/dist/webcomponents/p-B0cQ2RjH.js +0 -1
- package/dist/webcomponents/p-B190pN0v.js +0 -1
- package/dist/webcomponents/p-BM5lviat.js +0 -1
- package/dist/webcomponents/p-BWJ7zamv.js +0 -1
- package/dist/webcomponents/p-BiPRf6d2.js +0 -1
- package/dist/webcomponents/p-BmWpHZ-Z.js +0 -1
- package/dist/webcomponents/p-C0IqfGFc.js +0 -1
- package/dist/webcomponents/p-C0UUR9CN.js +0 -1
- package/dist/webcomponents/p-C5RuuShs.js +0 -1
- package/dist/webcomponents/p-CCGhF18e.js +0 -1
- package/dist/webcomponents/p-CQdeVKF8.js +0 -1
- package/dist/webcomponents/p-CffckWWF.js +0 -1
- package/dist/webcomponents/p-CgxzrbM_.js +0 -1
- package/dist/webcomponents/p-D4Mv5jCp.js +0 -1
- package/dist/webcomponents/p-D5Sh88BE.js +0 -1
- package/dist/webcomponents/p-D6FDxSyt.js +0 -2
- package/dist/webcomponents/p-DDEz7_ad.js +0 -1
- package/dist/webcomponents/p-DJzjeg3x.js +0 -1
- package/dist/webcomponents/p-DNt_pMGt.js +0 -1
- package/dist/webcomponents/p-DPiTQ9dr.js +0 -1
- package/dist/webcomponents/p-DQuL1Twl.js +0 -1
- package/dist/webcomponents/p-DVnVdicA.js +0 -1
- package/dist/webcomponents/p-DZfxGQ1I.js +0 -1
- package/dist/webcomponents/p-DgfzEZny.js +0 -1
- package/dist/webcomponents/p-DjGTAHJM.js +0 -1
- package/dist/webcomponents/p-DniQ6yo6.js +0 -1
- package/dist/webcomponents/p-DuBhW0xA.js +0 -1
- package/dist/webcomponents/p-M61ygz6l.js +0 -1
- package/dist/webcomponents/p-SdntD1xf.js +0 -1
- package/dist/webcomponents/p-U30-0DaA.js +0 -1
- package/dist/webcomponents/p-ZE1NEnP3.js +0 -1
- package/dist/webcomponents/p-a46730eb.entry.js +0 -1
- package/dist/webcomponents/p-a4dd3835.entry.js +0 -1
- package/dist/webcomponents/p-ad85bd0d.entry.js +0 -1
- package/dist/webcomponents/p-af2c38f7.entry.js +0 -1
- package/dist/webcomponents/p-afa54e39.entry.js +0 -1
- package/dist/webcomponents/p-cNABKY0P.js +0 -1
- package/dist/webcomponents/p-cab175e9.entry.js +0 -1
- package/dist/webcomponents/p-ceefc483.entry.js +0 -1
- package/dist/webcomponents/p-d-_oUZor.js +0 -1
- package/dist/webcomponents/p-d1331dbb.entry.js +0 -1
- package/dist/webcomponents/p-d2dc6f22.entry.js +0 -20
- package/dist/webcomponents/p-d9c70010.entry.js +0 -1
- package/dist/webcomponents/p-dd05cce1.entry.js +0 -1
- package/dist/webcomponents/p-e00aeb33.entry.js +0 -1
- package/dist/webcomponents/p-e1c5ee0a.entry.js +0 -1
- package/dist/webcomponents/p-ea8dd3e7.entry.js +0 -1
- package/dist/webcomponents/p-f389c2aa.entry.js +0 -1
- package/dist/webcomponents/p-f8b205f7.entry.js +0 -1
- package/dist/webcomponents/p-l3o3Ndc0.js +0 -1
- package/dist/webcomponents/p-o_73WSki.js +0 -1
- package/dist/webcomponents/p-um3YdOwW.js +0 -1
- package/dist/webcomponents/p-vb3fTJEZ.js +0 -1
- package/dist/webcomponents/p-wqUvt1PB.js +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
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 { s as state } from './checkout.store.js';
|
|
7
|
+
import { C as CardBrandLabels } from './payment-method-option-utils.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './form-control-help-text2.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './form-control-radio2.js';
|
|
10
|
+
|
|
11
|
+
const SavedPaymentMethods = /*@__PURE__*/ proxyCustomElement(class SavedPaymentMethods extends HTMLElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.__registerHost();
|
|
15
|
+
this.__attachShadow();
|
|
16
|
+
this.onPaymentMethodOptionClick = (paymentMethodId) => (e) => {
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
state.selectedPaymentMethod = paymentMethodId;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
componentWillLoad() {
|
|
22
|
+
if (!state.paymentMethods.length) {
|
|
23
|
+
console.warn('No saved payment methods available.');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (h(StyledHost, { key: '7bebb3f8ff2a2abe400e1d099154a1729913140c' }, h("div", { key: '3a5798c5ceba63160dceecb0dc65f8a211bb5110', class: "saved-payment-methods" }, state.paymentMethods.length ? state.paymentMethods.map((paymentMethod) => (h("div", { class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick(paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id) }, h("form-control-radio", { name: "paymentMethodType", value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id, checked: state.selectedPaymentMethod === (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id), label: `${CardBrandLabels[paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.brand] || ''} *${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.acct_last_four}` })))) : null)));
|
|
28
|
+
}
|
|
29
|
+
}, [1, "justifi-saved-payment-methods"]);
|
|
30
|
+
function defineCustomElement$1() {
|
|
31
|
+
if (typeof customElements === "undefined") {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const components = ["justifi-saved-payment-methods", "form-control-help-text", "form-control-radio"];
|
|
35
|
+
components.forEach(tagName => { switch (tagName) {
|
|
36
|
+
case "justifi-saved-payment-methods":
|
|
37
|
+
if (!customElements.get(tagName)) {
|
|
38
|
+
customElements.define(tagName, SavedPaymentMethods);
|
|
39
|
+
}
|
|
40
|
+
break;
|
|
41
|
+
case "form-control-help-text":
|
|
42
|
+
if (!customElements.get(tagName)) {
|
|
43
|
+
defineCustomElement$3();
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
case "form-control-radio":
|
|
47
|
+
if (!customElements.get(tagName)) {
|
|
48
|
+
defineCustomElement$2();
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
} });
|
|
52
|
+
}
|
|
53
|
+
defineCustomElement$1();
|
|
54
|
+
|
|
55
|
+
const JustifiSavedPaymentMethods = SavedPaymentMethods;
|
|
56
|
+
const defineCustomElement = defineCustomElement$1;
|
|
57
|
+
|
|
58
|
+
export { JustifiSavedPaymentMethods, defineCustomElement };
|
|
@@ -7,7 +7,8 @@ import './Refund.js';
|
|
|
7
7
|
import './Document.js';
|
|
8
8
|
import './Business.js';
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
11
|
+
import { s as state } from './checkout.store.js';
|
|
11
12
|
import { d as defineCustomElement$4 } from './form-control-help-text2.js';
|
|
12
13
|
import { d as defineCustomElement$3 } from './form-control-radio2.js';
|
|
13
14
|
import { d as defineCustomElement$2 } from './season-interruption-insurance-core.js';
|
|
@@ -101,7 +102,8 @@ const SeasonInterruptionInsurance = /*@__PURE__*/ proxyCustomElement(class Seaso
|
|
|
101
102
|
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
102
103
|
}
|
|
103
104
|
initializeServiceMethods() {
|
|
104
|
-
|
|
105
|
+
const authToken = this.authToken || state.authToken;
|
|
106
|
+
if (!authToken) {
|
|
105
107
|
this.errorEvent.emit({
|
|
106
108
|
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
107
109
|
message: 'Missing authToken',
|
|
@@ -109,17 +111,13 @@ const SeasonInterruptionInsurance = /*@__PURE__*/ proxyCustomElement(class Seaso
|
|
|
109
111
|
});
|
|
110
112
|
return;
|
|
111
113
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
this.toggleCoverage = makeToggleCoverage({
|
|
117
|
-
authToken: this.authToken,
|
|
118
|
-
service: new InsuranceService(),
|
|
119
|
-
});
|
|
114
|
+
const service = new InsuranceService();
|
|
115
|
+
const config = { authToken, service };
|
|
116
|
+
this.getQuote = makeGetQuote(config);
|
|
117
|
+
this.toggleCoverage = makeToggleCoverage(config);
|
|
120
118
|
}
|
|
121
119
|
render() {
|
|
122
|
-
return (h("justifi-season-interruption-insurance-core", { key: '
|
|
120
|
+
return (h("justifi-season-interruption-insurance-core", { key: '6c412b4fc73345924b97add603216a61a697c206', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId || state.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
|
|
123
121
|
}
|
|
124
122
|
}, [1, "justifi-season-interruption-insurance", {
|
|
125
123
|
"authToken": [1, "auth-token"],
|
|
@@ -1,4 +1,111 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as formatCurrency } from './utils2.js';
|
|
3
|
+
import { W as radioListItem } from './parts.js';
|
|
4
|
+
import { s as state } from './checkout.store.js';
|
|
5
|
+
import { S as StyledHost } from './styled-host.js';
|
|
6
|
+
import './details.js';
|
|
7
|
+
import './event-types.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './form-control-help-text2.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './form-control-radio2.js';
|
|
10
|
+
|
|
11
|
+
const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
12
|
+
display: 'inline',
|
|
13
|
+
width: '80px',
|
|
14
|
+
marginLeft: '5px',
|
|
15
|
+
marginTop: '-5px',
|
|
16
|
+
} }));
|
|
17
|
+
const SezzlePaymentMethod = /*@__PURE__*/ proxyCustomElement(class SezzlePaymentMethod extends HTMLElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.__registerHost();
|
|
21
|
+
this.__attachShadow();
|
|
22
|
+
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
23
|
+
this.paymentMethodOptionId = 'sezzle';
|
|
24
|
+
this.onPaymentMethodOptionClick = (e) => {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
state.selectedPaymentMethod = this.paymentMethodOptionId;
|
|
27
|
+
this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId);
|
|
28
|
+
};
|
|
29
|
+
this.initializeSezzleCheckout = () => {
|
|
30
|
+
let resolveSezzlePromise;
|
|
31
|
+
this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
|
|
32
|
+
const amount = Number(state.paymentAmount);
|
|
33
|
+
const Checkout = window.Checkout;
|
|
34
|
+
const checkout = new Checkout({
|
|
35
|
+
mode: 'popup',
|
|
36
|
+
publicKey: state.bnplProviderClientId,
|
|
37
|
+
apiMode: state.bnplProviderMode,
|
|
38
|
+
apiVersion: state.bnplProviderApiVersion,
|
|
39
|
+
});
|
|
40
|
+
checkout.sezzleButtonElement = this.sezzleButtonRef;
|
|
41
|
+
checkout.init({
|
|
42
|
+
onClick: function (event) {
|
|
43
|
+
event.preventDefault();
|
|
44
|
+
checkout.startCheckout({
|
|
45
|
+
checkout_url: state.bnplProviderCheckoutUrl,
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
49
|
+
onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
50
|
+
onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
51
|
+
});
|
|
52
|
+
this.sezzleCheckout = checkout;
|
|
53
|
+
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
componentDidRender() {
|
|
57
|
+
if (!this.scriptRef)
|
|
58
|
+
return;
|
|
59
|
+
this.scriptRef.onload = () => {
|
|
60
|
+
this.sezzleButtonRef = document.createElement('button');
|
|
61
|
+
this.initializeSezzleCheckout();
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
65
|
+
if (!insuranceValidation.isValid) {
|
|
66
|
+
return { validationError: true };
|
|
67
|
+
}
|
|
68
|
+
this.sezzleButtonRef.click();
|
|
69
|
+
return this.sezzlePromise;
|
|
70
|
+
}
|
|
71
|
+
render() {
|
|
72
|
+
var _a, _b;
|
|
73
|
+
if (!state.bnplEnabled) {
|
|
74
|
+
console.warn('justifi-sezzle-payment-method: BNPL is not enabled for this account.');
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return (h(StyledHost, { class: "payment-method" }, h("script", { src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { name: "paymentMethodType", value: this.paymentMethodOptionId, checked: state.selectedPaymentMethod === this.paymentMethodOptionId, label: h("div", null, h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", null, h("span", null, (_a = this.installmentPlan) === null || _a === void 0 ? void 0 : _a.installments.length), "\u00A0", h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { class: "fw-bold" }, formatCurrency((_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments[0].amountInCents))))) }))));
|
|
78
|
+
}
|
|
79
|
+
}, [1, "justifi-sezzle-payment-method", {
|
|
80
|
+
"installmentPlan": [32],
|
|
81
|
+
"sezzleCheckout": [32],
|
|
82
|
+
"sezzlePromise": [32],
|
|
83
|
+
"resolvePaymentMethod": [64]
|
|
84
|
+
}]);
|
|
85
|
+
function defineCustomElement$1() {
|
|
86
|
+
if (typeof customElements === "undefined") {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const components = ["justifi-sezzle-payment-method", "form-control-help-text", "form-control-radio"];
|
|
90
|
+
components.forEach(tagName => { switch (tagName) {
|
|
91
|
+
case "justifi-sezzle-payment-method":
|
|
92
|
+
if (!customElements.get(tagName)) {
|
|
93
|
+
customElements.define(tagName, SezzlePaymentMethod);
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
case "form-control-help-text":
|
|
97
|
+
if (!customElements.get(tagName)) {
|
|
98
|
+
defineCustomElement$3();
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
case "form-control-radio":
|
|
102
|
+
if (!customElements.get(tagName)) {
|
|
103
|
+
defineCustomElement$2();
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
} });
|
|
107
|
+
}
|
|
108
|
+
defineCustomElement$1();
|
|
2
109
|
|
|
3
110
|
const JustifiSezzlePaymentMethod = SezzlePaymentMethod;
|
|
4
111
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { f as filterParams, p as propsParams, c as clearParams } from './terminal-orders-list-params-state.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ai as terminalOrdersListFilterMenu, aj as orderStatusTerminalOrdersListFilterParam, ak as orderTypeTerminalOrdersListFilterParam, al as createdAfterTerminalOrdersListFilterParam, am as createdBeforeTerminalOrdersListFilterParam } from './parts.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host.js';
|
|
5
5
|
import './details.js';
|
|
6
6
|
import './event-types.js';
|
|
@@ -64,8 +64,8 @@ const TerminalOrdersListFilters = /*@__PURE__*/ proxyCustomElement(class Termina
|
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
67
|
-
return (h(StyledHost, { key: '
|
|
68
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '
|
|
67
|
+
return (h(StyledHost, { key: '87569a0fbda61171597ae34502830a7689576c83' }, h("table-filters-menu", { key: '7fefbf17edeef40d13f34bd634e19afc1c3da9d7', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: '450de24e20ce880d93045c1d549e996db865d1d4', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'c3092da2cf616bea443603cfbca4924e58d281ee', class: "p-2" }, h("form-control-select", { key: '19746e7161033e740eb587cecf091b65e8d59246', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: '4cde261675fe5295798905ae6da64ef63d0b85d4', class: "p-2" }, h("form-control-select", { key: '1ca5fd3cdac0af84dff9e58afe73584d62e049d3', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: '001ec15d42b32b24e43f60a8e863f16539c272ea', class: "p-2" }, h("form-control-date", { key: 'eac9a1727d07629210952c1f25bd8ef5536c2a83', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
68
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '1ca6e942ed3ae19693542d73b074398e9b342005', class: "p-2" }, h("form-control-date", { key: 'fa02bc32fae8e9b3fa5cade5e20839062b64c754', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
69
69
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
|
|
70
70
|
}
|
|
71
71
|
}, [1, "justifi-terminal-orders-list-filters", {
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
2
|
import { S as StyledHost } from './styled-host.js';
|
|
3
3
|
import './details.js';
|
|
4
4
|
import './event-types.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
6
6
|
import { d as defineCustomElement$2, a as defaultColumnsKeys } from './terminal-orders-list-core2.js';
|
|
7
7
|
import './config-state.js';
|
|
8
8
|
import './utils2.js';
|
|
@@ -98,7 +98,7 @@ const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrders
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(StyledHost, { key: '
|
|
101
|
+
return (h(StyledHost, { key: '99fc0c7d8dccf1e8dd28aaeb9238097e78e0f4db' }, h("terminal-orders-list-core", { key: 'bbe636dea934044fced1306e8662d48580222387', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
102
102
|
}
|
|
103
103
|
}, [1, "justifi-terminal-orders-list", {
|
|
104
104
|
"accountId": [1, "account-id"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { l as lodashExports } from './lodash.js';
|
|
3
3
|
import { f as filterParams, p as propsParams, c as clearParams } from './terminals-list-params-state.js';
|
|
4
|
-
import {
|
|
4
|
+
import { an as terminalsListFilterMenu, ao as terminalIdTerminalsListFilterParam, ap as terminalOrderIdTerminalsListFilterParam, aq as terminalStatusTerminalsListFilterParam } from './parts.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host.js';
|
|
6
6
|
import './details.js';
|
|
7
7
|
import './event-types.js';
|
|
@@ -53,7 +53,7 @@ const TerminalsListFilters = /*@__PURE__*/ proxyCustomElement(class TerminalsLis
|
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
55
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
56
|
-
return (h(StyledHost, { key: '
|
|
56
|
+
return (h(StyledHost, { key: 'c8a9a83b3184a95474a428cfdb1135eadd680adb' }, h("table-filters-menu", { key: '4a4a12bbbdb3be98d61d177c02612c3213419b43', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: '6d6cdf7dc4a24cdb6195f17989b17f91c43cd064', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '158cb8665cdb140e25ed449d42fb147fb8da21bb', class: "p-2" }, h("form-control-text", { key: '33e06125bf7f7d5242a625aedae2c560f0cc6a8f', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: '3d8ad10f63e16a847caf944fef9567819a77d422', class: "p-2" }, h("form-control-text", { key: 'd6217d8aa97f2c03a35fcd3d51cb42ed26e246a7', name: "terminal_order_id", label: "Terminal Order ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalOrderId || filterParams.terminal_order_id, disabled: !!this.terminalOrderId, part: terminalOrderIdTerminalsListFilterParam })), h("div", { key: '2fbf61a905de7028371bcc4b3412f7cc00feb4f9', class: "p-2" }, h("form-control-select", { key: '55a297af239e4e09e4d89c06a9c2d1a90fa7ff1e', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
|
|
57
57
|
}
|
|
58
58
|
}, [1, "justifi-terminals-list-filters", {
|
|
59
59
|
"terminalId": [1, "terminal-id"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Checkout.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
4
4
|
import { T as TerminalService } from './terminal.service.js';
|
|
5
5
|
import './config-state.js';
|
|
6
6
|
import './utils2.js';
|
|
@@ -103,7 +103,7 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
render() {
|
|
106
|
-
return (h(StyledHost, { key: '
|
|
106
|
+
return (h(StyledHost, { key: 'fd66e35b3ef7396cda794cf025aded020c39c0e4' }, h("terminals-list-core", { key: 'f6452fa39029743a7858ed84ba83764ca7dfdcca', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
107
107
|
}
|
|
108
108
|
static get watchers() { return {
|
|
109
109
|
"accountId": ["propChanged"],
|
|
@@ -3,7 +3,7 @@ import { B as Button } from './button.js';
|
|
|
3
3
|
import { S as StyledHost } from './styled-host.js';
|
|
4
4
|
import './details.js';
|
|
5
5
|
import './event-types.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
7
7
|
import './config-state.js';
|
|
8
8
|
import './utils2.js';
|
|
9
9
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Checkout.js';
|
|
@@ -12,23 +12,23 @@ import './Payment.js';
|
|
|
12
12
|
import './Refund.js';
|
|
13
13
|
import './Document.js';
|
|
14
14
|
import './Business.js';
|
|
15
|
-
import {
|
|
16
|
-
import { d as defineCustomElement$h } from './
|
|
17
|
-
import { d as defineCustomElement$g } from './
|
|
18
|
-
import { d as defineCustomElement$f } from './
|
|
19
|
-
import { d as defineCustomElement$e } from './form-control-
|
|
20
|
-
import { d as defineCustomElement$d } from './form-control-
|
|
21
|
-
import { d as defineCustomElement$c } from './form-control-
|
|
22
|
-
import { d as defineCustomElement$b } from './form-control-
|
|
23
|
-
import { d as defineCustomElement$a } from './form-control-
|
|
24
|
-
import { d as defineCustomElement$9 } from './
|
|
25
|
-
import { d as defineCustomElement$8 } from './
|
|
26
|
-
import { d as defineCustomElement$7 } from './
|
|
27
|
-
import { d as defineCustomElement$6 } from './
|
|
28
|
-
import { d as defineCustomElement$5 } from './payment-method
|
|
29
|
-
import { d as defineCustomElement$4 } from './
|
|
30
|
-
import { d as defineCustomElement$3 } from './
|
|
31
|
-
import { d as defineCustomElement$2 } from './
|
|
15
|
+
import { s as state } from './checkout.store.js';
|
|
16
|
+
import { d as defineCustomElement$h } from './bank-account-form2.js';
|
|
17
|
+
import { d as defineCustomElement$g } from './card-form2.js';
|
|
18
|
+
import { d as defineCustomElement$f } from './custom-popper2.js';
|
|
19
|
+
import { d as defineCustomElement$e } from './form-control-checkbox2.js';
|
|
20
|
+
import { d as defineCustomElement$d } from './form-control-help-text2.js';
|
|
21
|
+
import { d as defineCustomElement$c } from './form-control-radio2.js';
|
|
22
|
+
import { d as defineCustomElement$b } from './form-control-select2.js';
|
|
23
|
+
import { d as defineCustomElement$a } from './form-control-text2.js';
|
|
24
|
+
import { d as defineCustomElement$9 } from './form-control-tooltip2.js';
|
|
25
|
+
import { d as defineCustomElement$8 } from './hidden-input2.js';
|
|
26
|
+
import { d as defineCustomElement$7 } from './iframe-input2.js';
|
|
27
|
+
import { d as defineCustomElement$6 } from './billing-form.js';
|
|
28
|
+
import { d as defineCustomElement$5 } from './new-payment-method.js';
|
|
29
|
+
import { d as defineCustomElement$4 } from './payment-method-options.js';
|
|
30
|
+
import { d as defineCustomElement$3 } from './save-new-payment-method.js';
|
|
31
|
+
import { d as defineCustomElement$2 } from './saved-payment-method.js';
|
|
32
32
|
|
|
33
33
|
const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePaymentMethod extends HTMLElement {
|
|
34
34
|
constructor() {
|
|
@@ -43,6 +43,12 @@ const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePay
|
|
|
43
43
|
componentWillLoad() {
|
|
44
44
|
checkPkgVersion();
|
|
45
45
|
this.analytics = new JustifiAnalytics(this);
|
|
46
|
+
if (!this.authToken) {
|
|
47
|
+
this.authToken = state.authToken;
|
|
48
|
+
}
|
|
49
|
+
if (!this.accountId) {
|
|
50
|
+
this.accountId = state.accountId;
|
|
51
|
+
}
|
|
46
52
|
}
|
|
47
53
|
disconnectedCallback() {
|
|
48
54
|
var _a;
|
|
@@ -81,11 +87,10 @@ const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePay
|
|
|
81
87
|
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
82
88
|
}
|
|
83
89
|
async validate() {
|
|
84
|
-
|
|
85
|
-
return { isValid };
|
|
90
|
+
return this.paymentMethodOptionsRef.validate();
|
|
86
91
|
}
|
|
87
92
|
render() {
|
|
88
|
-
return (h(StyledHost, { key: '
|
|
93
|
+
return (h(StyledHost, { key: '28bbe8fe3e9af2ced36216f5c5a4951daa82b4db' }, h("form", { key: '1aac4f1f0045a6b36160874afe650afdfcc68d14' }, h("fieldset", { key: 'cea4c054fbcb6e3cdd7eec1e6fd528c3a82eb24f' }, h("div", { key: '08fc6dd0621d9392d8236f7b75906c84a4ffc420', class: "row gy-3" }, h("div", { key: '54eeca6b19dbc25126312e4492d24e58e636c4f4', class: "col-12" }, h("justifi-payment-method-options", { key: 'c985cb5c1888ad62e45d51c8bcd60cac22115ea6', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, authToken: this.authToken, "account-id": this.accountId })), h("div", { key: '1c5006de7b3dd8872d100dbaba94a1f73bd9682f', class: "col-12" }, h(Button, { key: 'efc638ef35650335e7408b1dc5433f9ecb4f22ac', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText)))))));
|
|
89
94
|
}
|
|
90
95
|
}, [1, "justifi-tokenize-payment-method", {
|
|
91
96
|
"authToken": [1, "auth-token"],
|
|
@@ -106,7 +111,7 @@ function defineCustomElement$1() {
|
|
|
106
111
|
if (typeof customElements === "undefined") {
|
|
107
112
|
return;
|
|
108
113
|
}
|
|
109
|
-
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"
|
|
114
|
+
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"];
|
|
110
115
|
components.forEach(tagName => { switch (tagName) {
|
|
111
116
|
case "justifi-tokenize-payment-method":
|
|
112
117
|
if (!customElements.get(tagName)) {
|
|
@@ -114,86 +119,81 @@ function defineCustomElement$1() {
|
|
|
114
119
|
}
|
|
115
120
|
break;
|
|
116
121
|
case "bank-account-form":
|
|
117
|
-
if (!customElements.get(tagName)) {
|
|
118
|
-
defineCustomElement$i();
|
|
119
|
-
}
|
|
120
|
-
break;
|
|
121
|
-
case "card-form":
|
|
122
122
|
if (!customElements.get(tagName)) {
|
|
123
123
|
defineCustomElement$h();
|
|
124
124
|
}
|
|
125
125
|
break;
|
|
126
|
-
case "
|
|
126
|
+
case "card-form":
|
|
127
127
|
if (!customElements.get(tagName)) {
|
|
128
128
|
defineCustomElement$g();
|
|
129
129
|
}
|
|
130
130
|
break;
|
|
131
|
-
case "
|
|
131
|
+
case "custom-popper":
|
|
132
132
|
if (!customElements.get(tagName)) {
|
|
133
133
|
defineCustomElement$f();
|
|
134
134
|
}
|
|
135
135
|
break;
|
|
136
|
-
case "form-control-
|
|
136
|
+
case "form-control-checkbox":
|
|
137
137
|
if (!customElements.get(tagName)) {
|
|
138
138
|
defineCustomElement$e();
|
|
139
139
|
}
|
|
140
140
|
break;
|
|
141
|
-
case "form-control-
|
|
141
|
+
case "form-control-help-text":
|
|
142
142
|
if (!customElements.get(tagName)) {
|
|
143
143
|
defineCustomElement$d();
|
|
144
144
|
}
|
|
145
145
|
break;
|
|
146
|
-
case "form-control-
|
|
146
|
+
case "form-control-radio":
|
|
147
147
|
if (!customElements.get(tagName)) {
|
|
148
148
|
defineCustomElement$c();
|
|
149
149
|
}
|
|
150
150
|
break;
|
|
151
|
-
case "form-control-
|
|
151
|
+
case "form-control-select":
|
|
152
152
|
if (!customElements.get(tagName)) {
|
|
153
153
|
defineCustomElement$b();
|
|
154
154
|
}
|
|
155
155
|
break;
|
|
156
|
-
case "form-control-
|
|
156
|
+
case "form-control-text":
|
|
157
157
|
if (!customElements.get(tagName)) {
|
|
158
158
|
defineCustomElement$a();
|
|
159
159
|
}
|
|
160
160
|
break;
|
|
161
|
-
case "
|
|
161
|
+
case "form-control-tooltip":
|
|
162
162
|
if (!customElements.get(tagName)) {
|
|
163
163
|
defineCustomElement$9();
|
|
164
164
|
}
|
|
165
165
|
break;
|
|
166
|
-
case "
|
|
166
|
+
case "hidden-input":
|
|
167
167
|
if (!customElements.get(tagName)) {
|
|
168
168
|
defineCustomElement$8();
|
|
169
169
|
}
|
|
170
170
|
break;
|
|
171
|
-
case "
|
|
171
|
+
case "iframe-input":
|
|
172
172
|
if (!customElements.get(tagName)) {
|
|
173
173
|
defineCustomElement$7();
|
|
174
174
|
}
|
|
175
175
|
break;
|
|
176
|
-
case "justifi-
|
|
176
|
+
case "justifi-billing-form":
|
|
177
177
|
if (!customElements.get(tagName)) {
|
|
178
178
|
defineCustomElement$6();
|
|
179
179
|
}
|
|
180
180
|
break;
|
|
181
|
-
case "justifi-payment-method
|
|
181
|
+
case "justifi-new-payment-method":
|
|
182
182
|
if (!customElements.get(tagName)) {
|
|
183
183
|
defineCustomElement$5();
|
|
184
184
|
}
|
|
185
185
|
break;
|
|
186
|
-
case "justifi-
|
|
186
|
+
case "justifi-payment-method-options":
|
|
187
187
|
if (!customElements.get(tagName)) {
|
|
188
188
|
defineCustomElement$4();
|
|
189
189
|
}
|
|
190
190
|
break;
|
|
191
|
-
case "justifi-
|
|
191
|
+
case "justifi-save-new-payment-method":
|
|
192
192
|
if (!customElements.get(tagName)) {
|
|
193
193
|
defineCustomElement$3();
|
|
194
194
|
}
|
|
195
195
|
break;
|
|
196
|
-
case "justifi-
|
|
196
|
+
case "justifi-saved-payment-method":
|
|
197
197
|
if (!customElements.get(tagName)) {
|
|
198
198
|
defineCustomElement$2();
|
|
199
199
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { D as DetailSectionTitle, a as DetailItem } from './utils.js';
|
|
3
3
|
import { i as isEmptyObject } from './utils2.js';
|
|
4
4
|
|
|
@@ -9,9 +9,9 @@ const LegalAddressDetails = /*@__PURE__*/ proxyCustomElement(class LegalAddressD
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
12
|
-
if (isEmptyObject(this.legalAddress))
|
|
12
|
+
if (!this.legalAddress || isEmptyObject(this.legalAddress))
|
|
13
13
|
return null;
|
|
14
|
-
return (h(
|
|
14
|
+
return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
|
|
15
15
|
}
|
|
16
16
|
}, [0, "legal-address-details", {
|
|
17
17
|
"legalAddress": [16, "legal-address"]
|
|
@@ -40,9 +40,18 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
40
40
|
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
41
41
|
return;
|
|
42
42
|
try {
|
|
43
|
-
const isValid = await this.validate();
|
|
43
|
+
const { isValid, errors } = await this.validate();
|
|
44
44
|
if (!isValid || !insuranceValidation.isValid) {
|
|
45
|
-
|
|
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
|
+
};
|
|
46
55
|
}
|
|
47
56
|
const tokenizeResponse = await this.tokenize();
|
|
48
57
|
if (tokenizeResponse.error) {
|
|
@@ -63,7 +72,9 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
63
72
|
async validate() {
|
|
64
73
|
const billingFormValidation = await this.billingFormRef.validate();
|
|
65
74
|
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
66
|
-
|
|
75
|
+
const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
|
|
76
|
+
const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
|
|
77
|
+
return { isValid, errors };
|
|
67
78
|
}
|
|
68
79
|
async tokenize() {
|
|
69
80
|
try {
|
|
@@ -93,7 +104,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
|
|
|
93
104
|
}
|
|
94
105
|
render() {
|
|
95
106
|
var _a, _b;
|
|
96
|
-
return (h(Host, { key: '
|
|
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));
|
|
97
108
|
}
|
|
98
109
|
}, [0, "justifi-new-payment-method", {
|
|
99
110
|
"authToken": [1, "auth-token"],
|
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.3-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 {
|
|
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 };
|