@justifi/webcomponents 6.15.0 → 6.16.0-rc.1
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/{Analytics-BjZHa0wt.js → Analytics-jQsZxClw.js} +2 -2
- package/dist/cjs/{Api-us3AxMRC.js → Api-DqXlEWR1.js} +1 -1
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +8 -8
- package/dist/cjs/additional-questions_4.cjs.entry.js +1 -1
- package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +13 -7
- package/dist/cjs/bank-account-form.cjs.entry.js +66 -12
- package/dist/cjs/{business-identity-schema-XiCLzxWM.js → business-identity-schema-DuOIMFjG.js} +2 -2
- package/dist/cjs/{business.service-_Sl3vWmu.js → business.service-Ca-olopC.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +14 -10
- package/dist/cjs/{checkout.service-B_qymeqJ.js → checkout.service-DBHPH2ji.js} +1 -1
- package/dist/cjs/{checkout.store-DaV9lvEQ.js → checkout.store-B5lTwvUV.js} +1 -0
- package/dist/cjs/{country-config-DQQujh5h.js → country-config-CFC3KuVD.js} +24 -2
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/detect-duplicate-version-D8ZajVUT.js +29 -0
- package/dist/cjs/dispute-notification_2.cjs.entry.js +9 -9
- package/dist/cjs/{event-types-DmY59QXs.js → event-types-luy3xnYR.js} +1 -1
- package/dist/cjs/form-address-fields_3.cjs.entry.js +5 -5
- package/dist/cjs/form-alert_3.cjs.entry.js +116 -15
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +1 -1
- package/dist/cjs/form-control-file.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +22 -6
- package/dist/cjs/{get-subaccounts-BMY2bOFj.js → get-subaccounts-D11aTYj1.js} +1 -1
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +41 -25
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -7
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -7
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +9 -6
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +6 -6
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -6
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-30T__1wH.js → package-B414Jbra.js} +1 -3
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-DRXVT-uB.js → payment.service-CNTe8vrp.js} +1 -1
- package/dist/cjs/{payout.service-CuQ-mXKB.js → payout.service-BmU3q9jO.js} +1 -1
- package/dist/cjs/{plaid.service-B58nzlUE.js → plaid.service-d9LAwbnX.js} +1 -1
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/{schema-validations-sjRvL4KO.js → schema-validations-BDFa_oIq.js} +8 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-CmtSEgTc.js → terminal.service-BkQWZv9b.js} +1 -1
- package/dist/cjs/utils-Ct_X5q0U.js +62 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/business-details/justifi-business-details.js +3 -3
- package/dist/collection/components/business-forms/business-form/justifi-business-form.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +2 -2
- package/dist/collection/components/business-forms/schemas/schema-validations.js +8 -1
- package/dist/collection/components/business-forms/utils/country-config.js +3 -2
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +90 -12
- package/dist/collection/components/checkout/billing-form/billing-form-full.js +6 -2
- package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +6 -2
- package/dist/collection/components/checkout/card-form/card-form.js +39 -11
- package/dist/collection/components/checkout/justifi-checkout.js +26 -4
- package/dist/collection/components/checkout/message-event-types.js +2 -0
- package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout-qr-code/justifi-checkout-qr-code.js +2 -2
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +4 -4
- package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
- 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.js +3 -3
- 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/dispute-management/justifi-dispute-management.js +3 -3
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +2 -2
- package/dist/collection/components/insurance/season-interruption/justifi-season-interruption-insurance.js +2 -2
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +50 -12
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +3 -3
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +33 -6
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +28 -3
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +1 -1
- package/dist/collection/components/order-terminals/justifi-order-terminals.js +3 -3
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/justifi-payment-details.js +10 -10
- package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +3 -3
- package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/justifi-payments-list.js +3 -3
- package/dist/collection/components/payout-details/justifi-payout-details.js +5 -5
- package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +3 -3
- package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/justifi-payouts-list.js +3 -3
- package/dist/collection/components/qr-terminal/justifi-qr-terminal.js +2 -2
- package/dist/collection/components/refund-payment/justifi-refund-payment.js +2 -2
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +4 -4
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +3 -3
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +45 -6
- package/dist/collection/store/checkout.store.js +1 -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 +37 -4
- package/dist/collection/ui-components/form/iframe-input.js +136 -14
- package/dist/collection/ui-components/form/utils.js +32 -0
- package/dist/collection/ui-components/internal-button.js +1 -1
- package/dist/collection/ui-components/radio-list-item.js +1 -1
- package/dist/collection/utils/detect-duplicate-version.js +24 -0
- package/dist/collection/utils/postal-code.js +19 -0
- package/dist/docs.json +286 -17
- package/dist/esm/{Analytics-BtMYbHD0.js → Analytics-DihSSvAP.js} +2 -2
- package/dist/esm/{Api-nVK-rgbk.js → Api-INJHjnya.js} +1 -1
- package/dist/esm/additional-questions-form-step_15.entry.js +8 -8
- package/dist/esm/additional-questions_4.entry.js +1 -1
- package/dist/esm/additional-statement_8.entry.js +8 -8
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +13 -7
- package/dist/esm/bank-account-form.entry.js +66 -12
- package/dist/esm/{business-identity-schema-BP61Unwf.js → business-identity-schema-BLKCH6xV.js} +2 -2
- package/dist/esm/{business.service-Cq7H5w1T.js → business.service-C8f7OSEu.js} +1 -1
- package/dist/esm/card-form.entry.js +14 -10
- package/dist/esm/{checkout.service-JA7oTq5d.js → checkout.service-BYDkC7uy.js} +1 -1
- package/dist/esm/{checkout.store-B2mtQcB5.js → checkout.store-B8CGkx0o.js} +1 -0
- package/dist/esm/{country-config-F5YwgHgR.js → country-config-DJFj1v-Q.js} +23 -3
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/detect-duplicate-version-C4r1WAzO.js +27 -0
- package/dist/esm/dispute-notification_2.entry.js +9 -9
- package/dist/esm/{event-types-Dsf8IwD6.js → event-types-S8CgMbPg.js} +1 -1
- package/dist/esm/form-address-fields_3.entry.js +5 -5
- package/dist/esm/form-alert_3.entry.js +116 -15
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +1 -1
- package/dist/esm/form-control-file.entry.js +2 -2
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/form-control-number_2.entry.js +3 -3
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +22 -6
- package/dist/esm/{get-subaccounts-B-S2TGRa.js → get-subaccounts-BHWiH8q9.js} +1 -1
- package/dist/esm/internal-button.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_12.entry.js +41 -25
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +8 -7
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +7 -7
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +9 -6
- package/dist/esm/justifi-checkout-qr-code.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +10 -8
- package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +9 -9
- package/dist/esm/justifi-dispute-management.entry.js +7 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +8 -8
- package/dist/esm/justifi-payment-details.entry.js +14 -14
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
- package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +7 -7
- package/dist/esm/justifi-payout-details.entry.js +9 -9
- package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +8 -8
- package/dist/esm/justifi-qr-terminal.entry.js +6 -6
- package/dist/esm/justifi-refund-payment.entry.js +6 -6
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-BQpbTebi.js +5 -0
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment.service-B42sKlQE.js → payment.service-CQXRsu6Y.js} +1 -1
- package/dist/esm/{payout.service-BIoAgNJJ.js → payout.service-RRyWfpEK.js} +1 -1
- package/dist/esm/{plaid.service-C6Ltk2ef.js → plaid.service-Cg3E3Plo.js} +1 -1
- package/dist/esm/radio-list-item.entry.js +1 -1
- package/dist/esm/save-new-payment-method.entry.js +2 -2
- package/dist/esm/{schema-validations-De7Qe0VU.js → schema-validations-8GJ34Do1.js} +8 -2
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-DV3qIwBy.js → terminal.service-Dy6D8bnl.js} +1 -1
- package/dist/esm/utils-Cpck08K0.js +59 -0
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/additional-statement2.js +1 -1
- package/dist/module/bank-account-form2.js +65 -10
- package/dist/module/billing-form-full2.js +6 -2
- package/dist/module/cancellation-policy2.js +1 -1
- package/dist/module/card-billing-form-simple2.js +6 -2
- package/dist/module/card-form2.js +14 -9
- package/dist/module/checkout.store.js +1 -0
- package/dist/module/country-config.js +23 -3
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details2.js +1 -1
- package/dist/module/detect-duplicate-version.js +27 -0
- package/dist/module/dispute-notification2.js +2 -2
- package/dist/module/dispute-response2.js +3 -3
- package/dist/module/duplicate-charge2.js +1 -1
- package/dist/module/electronic-evidence2.js +1 -1
- package/dist/module/form-address-fields2.js +3 -3
- 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-number2.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 +21 -4
- package/dist/module/iframe-input2.js +119 -15
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-bank-account-billing-form-simple.js +3 -3
- package/dist/module/justifi-bank-account-form.js +6 -4
- package/dist/module/justifi-billing-form-full.js +1 -1
- package/dist/module/justifi-business-details.js +3 -3
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-card-billing-form-simple.js +1 -1
- package/dist/module/justifi-card-form.js +6 -3
- package/dist/module/justifi-checkout-qr-code2.js +2 -2
- package/dist/module/justifi-checkout-summary2.js +1 -1
- package/dist/module/justifi-checkout.js +7 -4
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +4 -4
- package/dist/module/justifi-dispute-management.js +3 -3
- package/dist/module/justifi-gross-payment-chart.js +2 -2
- package/dist/module/justifi-modular-checkout2.js +30 -12
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +10 -10
- package/dist/module/justifi-payment-provisioning.js +2 -2
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +3 -3
- package/dist/module/justifi-payout-details.js +5 -5
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +3 -3
- package/dist/module/justifi-paypal2.js +1 -1
- package/dist/module/justifi-qr-terminal.js +2 -2
- package/dist/module/justifi-refund-payment.js +2 -2
- package/dist/module/justifi-save-new-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -2
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +4 -4
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +3 -3
- package/dist/module/justifi-tokenize-payment-method2.js +9 -6
- package/dist/module/package.js +1 -3
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/product-or-service2.js +1 -1
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/refund-policy2.js +1 -1
- package/dist/module/save-new-payment-method2.js +1 -1
- package/dist/module/schema-validations.js +8 -2
- package/dist/module/shipping-details2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/utils4.js +33 -1
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +8 -1
- package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
- package/dist/types/components/checkout/justifi-checkout.d.ts +2 -0
- package/dist/types/components/checkout/message-event-types.d.ts +2 -0
- package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +9 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts +4 -1
- package/dist/types/components/modular-checkout/sub-components/justifi-card-form.d.ts +9 -0
- package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +9 -0
- package/dist/types/components.d.ts +85 -3
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/ui-components/form/form-control-text.d.ts +1 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +24 -0
- package/dist/types/ui-components/form/utils.d.ts +1 -0
- package/dist/types/utils/detect-duplicate-version.d.ts +7 -0
- package/dist/types/utils/postal-code.d.ts +3 -0
- package/dist/webcomponents/p-12daf522.entry.js +1 -0
- package/dist/webcomponents/p-1a1aef42.entry.js +1 -0
- package/dist/webcomponents/p-1ceb65cc.entry.js +1 -0
- package/dist/webcomponents/{p-0f7e3515.entry.js → p-1ff1dcc5.entry.js} +4 -4
- package/dist/webcomponents/{p-777470cb.entry.js → p-2272a65b.entry.js} +1 -1
- package/dist/webcomponents/{p-c4889a06.entry.js → p-2d25f1d1.entry.js} +1 -1
- package/dist/webcomponents/{p-f2b3c7d5.entry.js → p-30ec1cd6.entry.js} +1 -1
- package/dist/webcomponents/p-357d14ee.entry.js +1 -0
- package/dist/webcomponents/{p-ead48010.entry.js → p-4450dbe9.entry.js} +1 -1
- package/dist/webcomponents/p-4c7e7880.entry.js +1 -0
- package/dist/webcomponents/{p-6c7fca1a.entry.js → p-4d85dd63.entry.js} +1 -1
- package/dist/webcomponents/p-521c534c.entry.js +1 -0
- package/dist/webcomponents/p-5babaaa9.entry.js +1 -0
- package/dist/webcomponents/{p-88a44a02.entry.js → p-5e8f26ec.entry.js} +1 -1
- package/dist/webcomponents/p-622c2af4.entry.js +1 -0
- package/dist/webcomponents/{p-9e3e2e32.entry.js → p-6aaf2758.entry.js} +1 -1
- package/dist/webcomponents/p-6bfdc443.entry.js +1 -0
- package/dist/webcomponents/{p-42021e67.entry.js → p-6f3b035b.entry.js} +1 -1
- package/dist/webcomponents/p-73af269e.entry.js +1 -0
- package/dist/webcomponents/{p-a7c594d1.entry.js → p-7ff788f8.entry.js} +1 -1
- package/dist/webcomponents/{p-a10beb26.entry.js → p-846ae5d5.entry.js} +1 -1
- package/dist/webcomponents/p-8758aec4.entry.js +1 -0
- package/dist/webcomponents/p-87f8d4e7.entry.js +1 -0
- package/dist/webcomponents/p-8c22ff9c.entry.js +1 -0
- package/dist/webcomponents/p-91358854.entry.js +1 -0
- package/dist/webcomponents/{p-13814028.entry.js → p-956707a2.entry.js} +1 -1
- package/dist/webcomponents/p-9c1863d5.entry.js +1 -0
- package/dist/webcomponents/{p-B_2zgnvM.js → p-BG8NxEUn.js} +1 -1
- package/dist/webcomponents/{p-DC2djVls.js → p-BKtKrQzN.js} +1 -1
- package/dist/webcomponents/p-BQpbTebi.js +1 -0
- package/dist/webcomponents/{p-BjjKkMO1.js → p-Bh5BNj74.js} +1 -1
- package/dist/webcomponents/{p-C6Jq8YDT.js → p-BtiJJJwv.js} +1 -1
- package/dist/webcomponents/p-BzESNgd8.js +1 -0
- package/dist/webcomponents/p-CkrzG0pB.js +1 -0
- package/dist/webcomponents/{p-D694H6co.js → p-Cl6irPVE.js} +1 -1
- package/dist/webcomponents/p-Cpck08K0.js +1 -0
- package/dist/webcomponents/{p-D7fNBSlC.js → p-Cy_sz0Tx.js} +1 -1
- package/dist/webcomponents/{p-pueOrhXO.js → p-D42DvqTW.js} +1 -1
- package/dist/webcomponents/{p-C60AkJ6a.js → p-DBudSN_h.js} +1 -1
- package/dist/webcomponents/p-DMzYgqml.js +1 -0
- package/dist/webcomponents/p-FsWkrvEF.js +1 -0
- package/dist/webcomponents/{p-BmaQUnqv.js → p-MLQyjvrV.js} +1 -1
- package/dist/webcomponents/p-a095b86d.entry.js +1 -0
- package/dist/webcomponents/p-a1e1afa4.entry.js +1 -0
- package/dist/webcomponents/p-a2c4e99f.entry.js +1 -0
- package/dist/webcomponents/p-a8f1c9b3.entry.js +1 -0
- package/dist/webcomponents/{p-f5cb6a26.entry.js → p-b665841f.entry.js} +1 -1
- package/dist/webcomponents/p-b925d666.entry.js +1 -0
- package/dist/webcomponents/p-bc3e46af.entry.js +1 -0
- package/dist/webcomponents/p-c172decb.entry.js +1 -0
- package/dist/webcomponents/p-c9871158.entry.js +1 -0
- package/dist/webcomponents/p-d19d7d41.entry.js +1 -0
- package/dist/webcomponents/{p-f40fa614.entry.js → p-d35cde99.entry.js} +1 -1
- package/dist/webcomponents/{p-1cfa634a.entry.js → p-d48f80d1.entry.js} +1 -1
- package/dist/webcomponents/{p-cec7164e.entry.js → p-dae31a59.entry.js} +1 -1
- package/dist/webcomponents/p-deff4422.entry.js +1 -0
- package/dist/webcomponents/{p-1365a46b.entry.js → p-e3c7b4e5.entry.js} +1 -1
- package/dist/webcomponents/p-e6d1e3e2.entry.js +1 -0
- package/dist/webcomponents/{p-97c6593d.entry.js → p-ebae270b.entry.js} +1 -1
- package/dist/webcomponents/p-ebed68aa.entry.js +1 -0
- package/dist/webcomponents/{p-16261d8a.entry.js → p-f0084d20.entry.js} +1 -1
- package/dist/webcomponents/{p-065b854f.entry.js → p-f0da2ca5.entry.js} +1 -1
- package/dist/webcomponents/{p-9b43b90d.entry.js → p-f23d7d13.entry.js} +1 -1
- package/dist/webcomponents/p-f2c99647.entry.js +1 -0
- package/dist/webcomponents/p-f458928d.entry.js +1 -0
- package/dist/webcomponents/{p-429046e1.entry.js → p-f5686720.entry.js} +1 -1
- package/dist/webcomponents/p-f681f747.entry.js +1 -0
- package/dist/webcomponents/{p-0e9351c4.entry.js → p-f6efd9e0.entry.js} +1 -1
- package/dist/webcomponents/{p-a71cc8e2.entry.js → p-fa0427d5.entry.js} +1 -1
- package/dist/webcomponents/p-fb1f2fe8.entry.js +1 -0
- package/dist/webcomponents/p-fcc5af24.entry.js +1 -0
- package/dist/webcomponents/{p-iA-Amt2z.js → p-hdPjEOdB.js} +1 -1
- package/dist/webcomponents/{p-rFpPIJgu.js → p-l3JhjHLW.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +14 -14
- package/LICENSE +0 -21
- package/dist/cjs/check-pkg-version-CjJab8fX.js +0 -47
- package/dist/cjs/utils-DAyWinG2.js +0 -29
- package/dist/collection/utils/check-pkg-version.js +0 -42
- package/dist/esm/check-pkg-version-BW9zgceK.js +0 -45
- package/dist/esm/package-BC9n8nB2.js +0 -7
- package/dist/esm/utils-BnjCmwMr.js +0 -27
- package/dist/module/check-pkg-version.js +0 -45
- package/dist/types/utils/check-pkg-version.d.ts +0 -1
- package/dist/webcomponents/p-082f912c.entry.js +0 -1
- package/dist/webcomponents/p-0cd689f4.entry.js +0 -1
- package/dist/webcomponents/p-0fbc806f.entry.js +0 -1
- package/dist/webcomponents/p-10787684.entry.js +0 -1
- package/dist/webcomponents/p-19cabdaf.entry.js +0 -1
- package/dist/webcomponents/p-1fa62eba.entry.js +0 -1
- package/dist/webcomponents/p-2ef913b8.entry.js +0 -1
- package/dist/webcomponents/p-36340e63.entry.js +0 -1
- package/dist/webcomponents/p-388082cd.entry.js +0 -1
- package/dist/webcomponents/p-3a1f8c5b.entry.js +0 -1
- package/dist/webcomponents/p-3f2fb856.entry.js +0 -1
- package/dist/webcomponents/p-44ff4f2c.entry.js +0 -1
- package/dist/webcomponents/p-4740601b.entry.js +0 -1
- package/dist/webcomponents/p-59b95eae.entry.js +0 -1
- package/dist/webcomponents/p-72bb4aff.entry.js +0 -1
- package/dist/webcomponents/p-735d397e.entry.js +0 -1
- package/dist/webcomponents/p-8432cb42.entry.js +0 -1
- package/dist/webcomponents/p-89f0c2aa.entry.js +0 -1
- package/dist/webcomponents/p-9db15fac.entry.js +0 -1
- package/dist/webcomponents/p-9eb00966.entry.js +0 -1
- package/dist/webcomponents/p-9f0ef3f3.entry.js +0 -1
- package/dist/webcomponents/p-BAvoKtN2.js +0 -1
- package/dist/webcomponents/p-BC9n8nB2.js +0 -1
- package/dist/webcomponents/p-BnjCmwMr.js +0 -1
- package/dist/webcomponents/p-Fpaf7CLD.js +0 -1
- package/dist/webcomponents/p-_MjmE9YT.js +0 -1
- package/dist/webcomponents/p-a8d25057.entry.js +0 -1
- package/dist/webcomponents/p-acb0b66c.entry.js +0 -1
- package/dist/webcomponents/p-b9ba7c95.entry.js +0 -1
- package/dist/webcomponents/p-c385f10d.entry.js +0 -1
- package/dist/webcomponents/p-c55fdbbf.entry.js +0 -1
- package/dist/webcomponents/p-ca6c5365.entry.js +0 -1
- package/dist/webcomponents/p-d3544e86.entry.js +0 -1
- package/dist/webcomponents/p-de047614.entry.js +0 -1
- package/dist/webcomponents/p-f0434a13.entry.js +0 -1
- package/dist/webcomponents/p-f9f310dc.entry.js +0 -1
- package/dist/webcomponents/p-fda6f27d.entry.js +0 -1
- package/dist/webcomponents/p-riZDHN5-.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as create$6 } from './form.js';
|
|
2
|
-
import { P as ProvinceOptions, b as countryValidation } from './country-config.js';
|
|
2
|
+
import { P as ProvinceOptions, n as normalizePostalCode, C as CA_OR_US_POSTAL_REGEX, b as countryValidation } from './country-config.js';
|
|
3
3
|
import { S as StateOptions, a as CountryCode } from './Business.js';
|
|
4
4
|
import { b as businessServiceReceivedOptions, a as bankAccountTypeOptions } from './business-form-options.js';
|
|
5
5
|
|
|
@@ -71,6 +71,11 @@ const taxIdValidation = create$6()
|
|
|
71
71
|
.transform(transformEmptyString);
|
|
72
72
|
// Country-aware helpers (backward compatible)
|
|
73
73
|
const makePostalValidation = (country) => create$6()
|
|
74
|
+
// Normalize before matching so a stored value that predates the canonical
|
|
75
|
+
// format — 'm5v2t6', 'M5V-2T6' — still validates. Nothing in vault or
|
|
76
|
+
// entity_management ever enforced a format, and Stripe imports copy the
|
|
77
|
+
// merchant's own spelling verbatim.
|
|
78
|
+
.transform(normalizePostalCode)
|
|
74
79
|
.matches(countryValidation[country].postalRegex, 'Enter valid postal code')
|
|
75
80
|
.transform(transformEmptyString);
|
|
76
81
|
const makeIdentityNumberValidation = (country) => {
|
|
@@ -193,7 +198,8 @@ const stateValidation = create$6()
|
|
|
193
198
|
.oneOf(checkoutBillingStateOptions.map((option) => option.value), 'Select a valid state or province')
|
|
194
199
|
.transform(transformEmptyString);
|
|
195
200
|
const postalValidation = create$6()
|
|
196
|
-
.
|
|
201
|
+
.transform(normalizePostalCode)
|
|
202
|
+
.matches(CA_OR_US_POSTAL_REGEX, 'Enter valid postal code')
|
|
197
203
|
.transform(transformEmptyString);
|
|
198
204
|
// Additional Questions Validations
|
|
199
205
|
const revenueValidation = create$6()
|
|
@@ -46,7 +46,7 @@ const ShippingDetails = /*@__PURE__*/ proxyCustomElement(class ShippingDetails e
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b, _c, _d, _e;
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '6673b30e9af36cb2e560d0653776a42ab1777c22' }, h("div", { key: 'f687e69208f470a40699f870c4d09b04a0487faa', class: "row gy-3" }, h("div", { key: 'ffb1b65e29b6b912cefe862a2139e57f3d81087b', class: "col-12" }, h("h2", { key: '2cea703b6f228aa127bbdb6f8c97f3f79e05d351', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'fe2ae3034571b5ed2a8e5678ae5c32d84f750835', class: "col-12" }, h("form-control-text", { key: '3b5c43c4b8baa62a756cc2dd7edb54fc0c118ede', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '807d7e0860265cb629083bb026e812e4d2ac06ff', class: "col-12" }, h("form-control-text", { key: '5367ef8b37625d6e3ca42eb68eda5e142ff5d783', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '25e85572762af0d9964849d276dd18c5b8905d6e', class: "col-12" }, h("form-control-date", { key: '821d218825643775282742b0c63f8c803a6c47e5', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '376e527d339217b897f02f0de111ea9377539769', class: "col-12" }, h("form-control-textarea", { key: 'f0130e6c0a7ca54e20f6406fbe6276fa8cffbf61', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '74699370d18065f453e68449749d5481772c4c08', class: "col-12" }, h("form-control-file-v2", { key: '5d3f0d1a199b563c9ed433cb971f541a4cb54083', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
|
|
50
50
|
}
|
|
51
51
|
}, [256, "shipping-details", {
|
|
52
52
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -31,7 +31,7 @@ const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu
|
|
|
31
31
|
this.showClearButton = hasFilters(this.params);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: 'dfea7fc09cd4d3799af064eb413088d2e68b379e', class: "d-flex gap-2" }, h("div", { key: 'dfc0ff09dc4117ce6871167376ce0b66d2df123a', class: "dropdown pb-3" }, h("button", { key: '2796cf3464e59b95edbd77e3bc9e0d60f22a9a86', type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", part: dropdownMenuButton, "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: 'e9edff3a2c800ab9fbfd834cb55338caebac1fdc', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'abf8d0f0f059a9981897e231a2255c7f2b545a0c', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '1816909bb5bc3c9f7ddd2c37a6edc5bb00260900' })))), h("div", { key: '2e3dbb4b5b8caeacc1a64dc74e2df9f7d975b680' }, h(Button, { key: '2b588ef261aa1ff4db00a90c21ca4e6c7cc90f1e', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
|
|
35
35
|
}
|
|
36
36
|
static get watchers() { return {
|
|
37
37
|
"params": ["watchParamsHandler"]
|
|
@@ -26,7 +26,7 @@ const TerminalQuantitySelector = /*@__PURE__*/ proxyCustomElement(class Terminal
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h("div", { key: '
|
|
29
|
+
return (h("div", { key: '38cd0765871fd366af0adc09910add544ecefb93', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '5e367d97287d3fef28e4f24d78384c6d02ab1540', class: "d-flex gap-3" }, h("div", { key: 'e031d923a5a01665a7f1a37e1d7df529ba51b0b2', class: "d-flex align-items-center" }, h("img", { key: 'b520afcdbd4946105324410499aa4ede31da1a72', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '5bdb4760b16241d9cd76e70245a19555dce6f723', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: '598bab6407c43f94896a1782b60f048696361113', class: "row" }, h("div", { key: 'c340942cadb9dc0411f7d7815f1ccc9df75cbfbc', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '1f0a3deeb00abcf3e3cd01fecdeb0435f091cbac', helpText: this.description })), h("div", { key: 'df8b8567640a567a4b8f238a21c6ed57d60e444a', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: 'baf59d5ede260d44a8ebfaaf95d8d134f3ef60da', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: 'cd3f528e9a56385cd17b23eb85185c51cd0dff67', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: '6a55baa1403892f79600ff4ee85734c14a5f2ecc', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
|
|
30
30
|
}
|
|
31
31
|
}, [256, "terminal-quantity-selector", {
|
|
32
32
|
"modelName": [1, "model-name"],
|
package/dist/module/utils4.js
CHANGED
|
@@ -23,5 +23,37 @@ const numberOnlyHandler = (e) => {
|
|
|
23
23
|
e.preventDefault();
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
+
// A US ZIP+4 ("44240-5555") carries a hyphen, which numberOnlyHandler blocks,
|
|
27
|
+
// so the postal field gets its own handler: digits plus a single hyphen.
|
|
28
|
+
const zipCodeOnlyHandler = (e) => {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
const specialKeys = ['Backspace', 'Tab', 'Enter', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Delete'];
|
|
31
|
+
// Handle paste event. `ClipboardEvent` is not a global in the spec
|
|
32
|
+
// environment, so the paste branch is recognized by its payload.
|
|
33
|
+
if ('clipboardData' in e) {
|
|
34
|
+
const clipboardData = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
|
|
35
|
+
if (clipboardData && !/^\d+(-\d+)?$/.test(clipboardData)) {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
}
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
// Check if the key is a special key
|
|
41
|
+
if (specialKeys.includes(e.key)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
// Allow Ctrl+V / Command+V for pasting
|
|
45
|
+
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v') {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
// A single hyphen separates the ZIP from the +4; a second one never does.
|
|
49
|
+
const alreadyHyphenated = !!((_c = (_b = e.target) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.includes('-'));
|
|
50
|
+
if (e.key === '-' && !alreadyHyphenated) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
// Prevent default action if the key is not a digit
|
|
54
|
+
if (!/^\d$/.test(e.key)) {
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
26
58
|
|
|
27
|
-
export { numberOnlyHandler as n };
|
|
59
|
+
export { numberOnlyHandler as n, zipCodeOnlyHandler as z };
|
|
@@ -5,21 +5,28 @@ export declare class BankAccountForm {
|
|
|
5
5
|
iframeOrigin: string;
|
|
6
6
|
tabId: string;
|
|
7
7
|
iframeState: 'loading' | 'ready' | 'error';
|
|
8
|
+
showAccountNumberConfirmation?: boolean;
|
|
8
9
|
private accountNumberIframeElement;
|
|
10
|
+
private accountNumberConfirmationIframeElement?;
|
|
9
11
|
private routingNumberIframeElement;
|
|
10
12
|
private hasLoggedAchDisabledWarning;
|
|
11
13
|
private loadAbortController?;
|
|
14
|
+
private loadedInputIds;
|
|
15
|
+
private watchedInputIds;
|
|
12
16
|
componentWillLoad(): Promise<void>;
|
|
13
17
|
componentDidRender(): void;
|
|
14
18
|
disconnectedCallback(): void;
|
|
15
19
|
private isAchDisabledForCheckout;
|
|
16
|
-
validate(): Promise<
|
|
20
|
+
validate(): Promise<{
|
|
21
|
+
isValid: boolean;
|
|
22
|
+
}>;
|
|
17
23
|
tokenize({ clientId, paymentMethodMetadata, account }: {
|
|
18
24
|
clientId: string;
|
|
19
25
|
paymentMethodMetadata: any;
|
|
20
26
|
account?: string;
|
|
21
27
|
}): Promise<any>;
|
|
22
28
|
private get isReady();
|
|
29
|
+
private get expectedIframeCount();
|
|
23
30
|
private get iframeElements();
|
|
24
31
|
private watchIframesLoad;
|
|
25
32
|
private reloadIframes;
|
|
@@ -5,6 +5,8 @@ export declare class CardForm {
|
|
|
5
5
|
iframeOrigin: string;
|
|
6
6
|
tabId: string;
|
|
7
7
|
iframeState: 'loading' | 'ready' | 'error';
|
|
8
|
+
/** Mask the card number to its last four digits when the field blurs. */
|
|
9
|
+
maskCardNumber?: boolean;
|
|
8
10
|
private cardNumberIframeElement;
|
|
9
11
|
private expirationMonthIframeElement;
|
|
10
12
|
private expirationYearIframeElement;
|
|
@@ -13,7 +15,9 @@ export declare class CardForm {
|
|
|
13
15
|
componentWillLoad(): Promise<void>;
|
|
14
16
|
componentDidLoad(): void;
|
|
15
17
|
disconnectedCallback(): void;
|
|
16
|
-
validate(): Promise<
|
|
18
|
+
validate(): Promise<{
|
|
19
|
+
isValid: boolean;
|
|
20
|
+
}>;
|
|
17
21
|
tokenize({ clientId, paymentMethodMetadata, account, }: {
|
|
18
22
|
clientId: string;
|
|
19
23
|
paymentMethodMetadata: any;
|
|
@@ -29,6 +29,8 @@ export declare class JustifiCheckout {
|
|
|
29
29
|
/** Passed to `justifi-google-pay` as `environment`. Omit to let the child use its default. */
|
|
30
30
|
googlePayEnv?: 'TEST' | 'PRODUCTION';
|
|
31
31
|
preCompleteHook?: Hook<CheckoutState>;
|
|
32
|
+
/** Renders a "Confirm Account Number" field in the bank account form. */
|
|
33
|
+
showAccountNumberConfirmation?: boolean;
|
|
32
34
|
propChanged(): void;
|
|
33
35
|
errorEvent: EventEmitter<ComponentErrorEvent>;
|
|
34
36
|
loadedEvent: EventEmitter<ILoadedEventResponse>;
|
|
@@ -19,6 +19,15 @@ export declare class JustifiModularCheckout {
|
|
|
19
19
|
authToken: string;
|
|
20
20
|
checkoutId: string;
|
|
21
21
|
preCompleteHook?: Hook<CheckoutState>;
|
|
22
|
+
/**
|
|
23
|
+
* Mask the card number to its last four digits when the field loses focus,
|
|
24
|
+
* with an eye toggle to reveal it. Applies to the `justifi-card-form`
|
|
25
|
+
* rendered inside this checkout. Defaults to false.
|
|
26
|
+
*
|
|
27
|
+
* Anti-shoulder-surfing only, not a secrecy boundary.
|
|
28
|
+
*/
|
|
29
|
+
maskCardNumber?: boolean;
|
|
30
|
+
maskCardNumberChanged(): void;
|
|
22
31
|
hostEl: HTMLElement;
|
|
23
32
|
errorEvent: EventEmitter;
|
|
24
33
|
submitEvent: EventEmitter;
|
package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import JustifiAnalytics from "../../../api/Analytics";
|
|
2
2
|
export declare class JustifiBankAccountForm {
|
|
3
|
+
showAccountNumberConfirmation?: boolean;
|
|
3
4
|
private bankAccountFormElement?;
|
|
4
5
|
analytics: JustifiAnalytics;
|
|
5
6
|
componentWillLoad(): Promise<void>;
|
|
6
7
|
disconnectedCallback(): void;
|
|
7
|
-
validate(): Promise<
|
|
8
|
+
validate(): Promise<{
|
|
9
|
+
isValid: boolean;
|
|
10
|
+
}>;
|
|
8
11
|
tokenize({ clientId, paymentMethodMetadata, account }: {
|
|
9
12
|
clientId: string;
|
|
10
13
|
paymentMethodMetadata: any;
|
|
@@ -2,6 +2,15 @@ import JustifiAnalytics from "../../../api/Analytics";
|
|
|
2
2
|
export declare class JustifiCardForm {
|
|
3
3
|
private cardFormElement;
|
|
4
4
|
analytics: JustifiAnalytics;
|
|
5
|
+
/**
|
|
6
|
+
* Mask the card number to its last four digits when the field loses focus,
|
|
7
|
+
* with an eye toggle to reveal it. Defaults to false. Inside
|
|
8
|
+
* `justifi-modular-checkout` the wrapper's `mask-card-number` sets this;
|
|
9
|
+
* an explicit value here wins.
|
|
10
|
+
*
|
|
11
|
+
* Anti-shoulder-surfing only, not a secrecy boundary.
|
|
12
|
+
*/
|
|
13
|
+
maskCardNumber?: boolean;
|
|
5
14
|
componentWillLoad(): Promise<void>;
|
|
6
15
|
disconnectedCallback(): void;
|
|
7
16
|
validate(): Promise<any>;
|
|
@@ -25,8 +25,17 @@ export declare class JustifiTokenizePaymentMethod {
|
|
|
25
25
|
hideCardBillingForm?: boolean;
|
|
26
26
|
hideSubmitButton?: boolean;
|
|
27
27
|
paymentMethodGroupId?: string;
|
|
28
|
+
/** Renders a "Confirm Account Number" field in the bank account form. */
|
|
29
|
+
showAccountNumberConfirmation?: boolean;
|
|
28
30
|
submitButtonText?: string;
|
|
29
31
|
savePaymentMethodLabel?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Mask the card number to its last four digits when the field loses focus,
|
|
34
|
+
* with an eye toggle to reveal it. Defaults to false.
|
|
35
|
+
*
|
|
36
|
+
* Anti-shoulder-surfing only, not a secrecy boundary.
|
|
37
|
+
*/
|
|
38
|
+
maskCardNumber?: boolean;
|
|
30
39
|
paymentMethodsChanged(): void;
|
|
31
40
|
errorEvent: EventEmitter<ComponentErrorEvent>;
|
|
32
41
|
submitEvent: EventEmitter<ComponentSubmitEvent>;
|
|
@@ -83,8 +83,12 @@ export namespace Components {
|
|
|
83
83
|
"storeFiles": (e: CustomEvent<FileSelectEvent>) => void;
|
|
84
84
|
}
|
|
85
85
|
interface BankAccountForm {
|
|
86
|
+
/**
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
"showAccountNumberConfirmation"?: boolean;
|
|
86
90
|
"tokenize": ({ clientId, paymentMethodMetadata, account }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
|
|
87
|
-
"validate": () => Promise<
|
|
91
|
+
"validate": () => Promise<{ isValid: boolean; }>;
|
|
88
92
|
}
|
|
89
93
|
interface BankAccountFormInputs {
|
|
90
94
|
"defaultValue": any;
|
|
@@ -192,8 +196,13 @@ export namespace Components {
|
|
|
192
196
|
"validate": () => Promise<{ isValid: boolean; errors: any; }>;
|
|
193
197
|
}
|
|
194
198
|
interface CardForm {
|
|
199
|
+
/**
|
|
200
|
+
* Mask the card number to its last four digits when the field blurs.
|
|
201
|
+
* @default false
|
|
202
|
+
*/
|
|
203
|
+
"maskCardNumber"?: boolean;
|
|
195
204
|
"tokenize": ({ clientId, paymentMethodMetadata, account, }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
|
|
196
|
-
"validate": () => Promise<
|
|
205
|
+
"validate": () => Promise<{ isValid: boolean; }>;
|
|
197
206
|
}
|
|
198
207
|
interface CoreInfoDetails {
|
|
199
208
|
"business": Business;
|
|
@@ -463,6 +472,7 @@ export namespace Components {
|
|
|
463
472
|
"label": string;
|
|
464
473
|
"maxLength"?: number;
|
|
465
474
|
"name": any;
|
|
475
|
+
"transformValue"?: (value: string) => string;
|
|
466
476
|
}
|
|
467
477
|
interface FormControlTextarea {
|
|
468
478
|
"defaultValue": string;
|
|
@@ -502,6 +512,11 @@ export namespace Components {
|
|
|
502
512
|
"iframeOrigin": string;
|
|
503
513
|
"inputId": string;
|
|
504
514
|
"label": string;
|
|
515
|
+
/**
|
|
516
|
+
* Opt this field into masking its value to the last four characters when it loses focus. Forwarded to the hosted field, which owns the behavior.
|
|
517
|
+
* @default false
|
|
518
|
+
*/
|
|
519
|
+
"maskCardNumber"?: boolean;
|
|
505
520
|
"reload": () => Promise<void>;
|
|
506
521
|
"tokenize": (clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string) => Promise<any>;
|
|
507
522
|
"validate": () => Promise<any>;
|
|
@@ -570,8 +585,12 @@ export namespace Components {
|
|
|
570
585
|
"validate": () => Promise<{ isValid: boolean; errors: any; }>;
|
|
571
586
|
}
|
|
572
587
|
interface JustifiBankAccountForm {
|
|
588
|
+
/**
|
|
589
|
+
* @default false
|
|
590
|
+
*/
|
|
591
|
+
"showAccountNumberConfirmation"?: boolean;
|
|
573
592
|
"tokenize": ({ clientId, paymentMethodMetadata, account }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
|
|
574
|
-
"validate": () => Promise<
|
|
593
|
+
"validate": () => Promise<{ isValid: boolean; }>;
|
|
575
594
|
}
|
|
576
595
|
interface JustifiBillingForm {
|
|
577
596
|
"getValues": () => Promise<BillingFormFields>;
|
|
@@ -629,6 +648,10 @@ export namespace Components {
|
|
|
629
648
|
"validate": () => Promise<{ isValid: boolean; errors: any; }>;
|
|
630
649
|
}
|
|
631
650
|
interface JustifiCardForm {
|
|
651
|
+
/**
|
|
652
|
+
* Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Defaults to false. Inside `justifi-modular-checkout` the wrapper's `mask-card-number` sets this; an explicit value here wins. Anti-shoulder-surfing only, not a secrecy boundary.
|
|
653
|
+
*/
|
|
654
|
+
"maskCardNumber"?: boolean;
|
|
632
655
|
"tokenize": ({ clientId, paymentMethodMetadata, account, }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
|
|
633
656
|
"validate": () => Promise<any>;
|
|
634
657
|
}
|
|
@@ -665,6 +688,11 @@ export namespace Components {
|
|
|
665
688
|
*/
|
|
666
689
|
"hideCardBillingForm"?: boolean;
|
|
667
690
|
"preCompleteHook"?: Hook<CheckoutState>;
|
|
691
|
+
/**
|
|
692
|
+
* Renders a "Confirm Account Number" field in the bank account form.
|
|
693
|
+
* @default false
|
|
694
|
+
*/
|
|
695
|
+
"showAccountNumberConfirmation"?: boolean;
|
|
668
696
|
"validate": () => Promise<{ isValid: boolean; }>;
|
|
669
697
|
}
|
|
670
698
|
interface JustifiCheckoutQrCode {
|
|
@@ -745,6 +773,11 @@ export namespace Components {
|
|
|
745
773
|
"authToken": string;
|
|
746
774
|
"checkoutId": string;
|
|
747
775
|
"fillBillingForm": (fields: BillingFormFields1) => Promise<void>;
|
|
776
|
+
/**
|
|
777
|
+
* Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Applies to the `justifi-card-form` rendered inside this checkout. Defaults to false. Anti-shoulder-surfing only, not a secrecy boundary.
|
|
778
|
+
* @default false
|
|
779
|
+
*/
|
|
780
|
+
"maskCardNumber"?: boolean;
|
|
748
781
|
"preCompleteHook"?: Hook<CheckoutState>;
|
|
749
782
|
"setSelectedPaymentMethod": (paymentMethod: SelectedPaymentMethod) => Promise<void>;
|
|
750
783
|
"submitCheckout": (submitCheckoutArgs?: BillingFormFields1) => Promise<void>;
|
|
@@ -967,8 +1000,16 @@ export namespace Components {
|
|
|
967
1000
|
"hideBankAccountBillingForm"?: boolean;
|
|
968
1001
|
"hideCardBillingForm"?: boolean;
|
|
969
1002
|
"hideSubmitButton"?: boolean;
|
|
1003
|
+
/**
|
|
1004
|
+
* Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Defaults to false. Anti-shoulder-surfing only, not a secrecy boundary.
|
|
1005
|
+
*/
|
|
1006
|
+
"maskCardNumber"?: boolean;
|
|
970
1007
|
"paymentMethodGroupId"?: string;
|
|
971
1008
|
"savePaymentMethodLabel"?: string;
|
|
1009
|
+
/**
|
|
1010
|
+
* Renders a "Confirm Account Number" field in the bank account form.
|
|
1011
|
+
*/
|
|
1012
|
+
"showAccountNumberConfirmation"?: boolean;
|
|
972
1013
|
/**
|
|
973
1014
|
* @default 'Submit'
|
|
974
1015
|
*/
|
|
@@ -3015,6 +3056,10 @@ declare namespace LocalJSX {
|
|
|
3015
3056
|
}
|
|
3016
3057
|
interface BankAccountForm {
|
|
3017
3058
|
"onError-event"?: (event: BankAccountFormCustomEvent<ComponentErrorEvent1>) => void;
|
|
3059
|
+
/**
|
|
3060
|
+
* @default false
|
|
3061
|
+
*/
|
|
3062
|
+
"showAccountNumberConfirmation"?: boolean;
|
|
3018
3063
|
}
|
|
3019
3064
|
interface BankAccountFormInputs {
|
|
3020
3065
|
"defaultValue": any;
|
|
@@ -3127,6 +3172,11 @@ declare namespace LocalJSX {
|
|
|
3127
3172
|
"legend"?: string;
|
|
3128
3173
|
}
|
|
3129
3174
|
interface CardForm {
|
|
3175
|
+
/**
|
|
3176
|
+
* Mask the card number to its last four digits when the field blurs.
|
|
3177
|
+
* @default false
|
|
3178
|
+
*/
|
|
3179
|
+
"maskCardNumber"?: boolean;
|
|
3130
3180
|
"onError-event"?: (event: CardFormCustomEvent<ComponentErrorEvent1>) => void;
|
|
3131
3181
|
}
|
|
3132
3182
|
interface CoreInfoDetails {
|
|
@@ -3428,6 +3478,7 @@ declare namespace LocalJSX {
|
|
|
3428
3478
|
"name": any;
|
|
3429
3479
|
"onFormControlBlur"?: (event: FormControlTextCustomEvent<any>) => void;
|
|
3430
3480
|
"onFormControlInput"?: (event: FormControlTextCustomEvent<any>) => void;
|
|
3481
|
+
"transformValue"?: (value: string) => string;
|
|
3431
3482
|
}
|
|
3432
3483
|
interface FormControlTextarea {
|
|
3433
3484
|
"defaultValue": string;
|
|
@@ -3469,6 +3520,11 @@ declare namespace LocalJSX {
|
|
|
3469
3520
|
"iframeOrigin": string;
|
|
3470
3521
|
"inputId": string;
|
|
3471
3522
|
"label": string;
|
|
3523
|
+
/**
|
|
3524
|
+
* Opt this field into masking its value to the last four characters when it loses focus. Forwarded to the hosted field, which owns the behavior.
|
|
3525
|
+
* @default false
|
|
3526
|
+
*/
|
|
3527
|
+
"maskCardNumber"?: boolean;
|
|
3472
3528
|
"onIframeLoaded"?: (event: IframeInputCustomEvent<void>) => void;
|
|
3473
3529
|
}
|
|
3474
3530
|
interface InternalButton {
|
|
@@ -3539,6 +3595,10 @@ declare namespace LocalJSX {
|
|
|
3539
3595
|
"legend"?: string;
|
|
3540
3596
|
}
|
|
3541
3597
|
interface JustifiBankAccountForm {
|
|
3598
|
+
/**
|
|
3599
|
+
* @default false
|
|
3600
|
+
*/
|
|
3601
|
+
"showAccountNumberConfirmation"?: boolean;
|
|
3542
3602
|
}
|
|
3543
3603
|
interface JustifiBillingForm {
|
|
3544
3604
|
"hideBankAccountBillingForm"?: boolean;
|
|
@@ -3594,6 +3654,10 @@ declare namespace LocalJSX {
|
|
|
3594
3654
|
"legend"?: string;
|
|
3595
3655
|
}
|
|
3596
3656
|
interface JustifiCardForm {
|
|
3657
|
+
/**
|
|
3658
|
+
* Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Defaults to false. Inside `justifi-modular-checkout` the wrapper's `mask-card-number` sets this; an explicit value here wins. Anti-shoulder-surfing only, not a secrecy boundary.
|
|
3659
|
+
*/
|
|
3660
|
+
"maskCardNumber"?: boolean;
|
|
3597
3661
|
}
|
|
3598
3662
|
interface JustifiCheckout {
|
|
3599
3663
|
"authToken": string;
|
|
@@ -3630,6 +3694,11 @@ declare namespace LocalJSX {
|
|
|
3630
3694
|
"onLoaded"?: (event: JustifiCheckoutCustomEvent<ILoadedEventResponse>) => void;
|
|
3631
3695
|
"onSubmit-event"?: (event: JustifiCheckoutCustomEvent<ComponentSubmitEvent>) => void;
|
|
3632
3696
|
"preCompleteHook"?: Hook<CheckoutState>;
|
|
3697
|
+
/**
|
|
3698
|
+
* Renders a "Confirm Account Number" field in the bank account form.
|
|
3699
|
+
* @default false
|
|
3700
|
+
*/
|
|
3701
|
+
"showAccountNumberConfirmation"?: boolean;
|
|
3633
3702
|
}
|
|
3634
3703
|
interface JustifiCheckoutQrCode {
|
|
3635
3704
|
"checkoutId": string;
|
|
@@ -3722,6 +3791,11 @@ declare namespace LocalJSX {
|
|
|
3722
3791
|
interface JustifiModularCheckout {
|
|
3723
3792
|
"authToken": string;
|
|
3724
3793
|
"checkoutId": string;
|
|
3794
|
+
/**
|
|
3795
|
+
* Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Applies to the `justifi-card-form` rendered inside this checkout. Defaults to false. Anti-shoulder-surfing only, not a secrecy boundary.
|
|
3796
|
+
* @default false
|
|
3797
|
+
*/
|
|
3798
|
+
"maskCardNumber"?: boolean;
|
|
3725
3799
|
"onCheckout-changed"?: (event: JustifiModularCheckoutCustomEvent<CheckoutChangedEventDetail>) => void;
|
|
3726
3800
|
"onError-event"?: (event: JustifiModularCheckoutCustomEvent<any>) => void;
|
|
3727
3801
|
"onSubmit-event"?: (event: JustifiModularCheckoutCustomEvent<any>) => void;
|
|
@@ -3974,10 +4048,18 @@ declare namespace LocalJSX {
|
|
|
3974
4048
|
"hideBankAccountBillingForm"?: boolean;
|
|
3975
4049
|
"hideCardBillingForm"?: boolean;
|
|
3976
4050
|
"hideSubmitButton"?: boolean;
|
|
4051
|
+
/**
|
|
4052
|
+
* Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Defaults to false. Anti-shoulder-surfing only, not a secrecy boundary.
|
|
4053
|
+
*/
|
|
4054
|
+
"maskCardNumber"?: boolean;
|
|
3977
4055
|
"onError-event"?: (event: JustifiTokenizePaymentMethodCustomEvent<ComponentErrorEvent1>) => void;
|
|
3978
4056
|
"onSubmit-event"?: (event: JustifiTokenizePaymentMethodCustomEvent<ComponentSubmitEvent1>) => void;
|
|
3979
4057
|
"paymentMethodGroupId"?: string;
|
|
3980
4058
|
"savePaymentMethodLabel"?: string;
|
|
4059
|
+
/**
|
|
4060
|
+
* Renders a "Confirm Account Number" field in the bank account form.
|
|
4061
|
+
*/
|
|
4062
|
+
"showAccountNumberConfirmation"?: boolean;
|
|
3981
4063
|
/**
|
|
3982
4064
|
* @default 'Submit'
|
|
3983
4065
|
*/
|
|
@@ -10,6 +10,7 @@ export declare class FormControlText {
|
|
|
10
10
|
errorText?: string;
|
|
11
11
|
maxLength?: number;
|
|
12
12
|
keyDownHandler?: (event: any) => void;
|
|
13
|
+
transformValue?: (value: string) => string;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
handleDefaultValueChange(newValue: string): void;
|
|
15
16
|
formControlInput: EventEmitter<any>;
|
|
@@ -11,15 +11,39 @@ export declare class IframeInput {
|
|
|
11
11
|
inputId: string;
|
|
12
12
|
label: string;
|
|
13
13
|
iframeOrigin: string;
|
|
14
|
+
/**
|
|
15
|
+
* Opt this field into masking its value to the last four characters when it
|
|
16
|
+
* loses focus. Forwarded to the hosted field, which owns the behavior.
|
|
17
|
+
*/
|
|
18
|
+
maskCardNumber?: boolean;
|
|
19
|
+
maskCardNumberChanged(): void;
|
|
20
|
+
private hasLoaded;
|
|
21
|
+
private wrapperElement;
|
|
22
|
+
/**
|
|
23
|
+
* The <iframe> is created in the LIGHT DOM and slotted in: an iframe inside a
|
|
24
|
+
* shadow tree is invisible to `window.frames` (spec), so siblings could not
|
|
25
|
+
* resolve it. The ::part wrappers stay in the shadow tree — theming untouched.
|
|
26
|
+
*/
|
|
27
|
+
componentDidLoad(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Stencil runs componentDidLoad once per instance; a DOM move (framework
|
|
30
|
+
* reparenting, list reorder) fires disconnected → connected on the same
|
|
31
|
+
* instance, so the iframe has to be put back by hand.
|
|
32
|
+
*/
|
|
33
|
+
connectedCallback(): void;
|
|
34
|
+
private mountIframe;
|
|
35
|
+
componentDidRender(): void;
|
|
14
36
|
disconnectedCallback(): void;
|
|
15
37
|
validate(): Promise<any>;
|
|
16
38
|
tokenize(clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string): Promise<any>;
|
|
17
39
|
reload(): Promise<void>;
|
|
18
40
|
private initializeFrameCommunicationService;
|
|
19
41
|
private dispatchMessageEvent;
|
|
42
|
+
private sendMaskCardNumber;
|
|
20
43
|
private get part();
|
|
21
44
|
private get style();
|
|
22
45
|
private get urlParams();
|
|
23
46
|
private get iframeSrc();
|
|
47
|
+
private renderedSrc;
|
|
24
48
|
render(): any;
|
|
25
49
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records this bundle's version on globalThis and logs an error when a second,
|
|
3
|
+
* different version of @justifi/webcomponents is already on the page. The first
|
|
4
|
+
* version loaded wins — it has registered the custom elements, so any later
|
|
5
|
+
* bundle is inert.
|
|
6
|
+
*/
|
|
7
|
+
export declare const detectDuplicateVersion: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as i}from"./p-CV0Pyo1O.js";import{J as s}from"./p-Bh5BNj74.js";import{d as a}from"./p-BzESNgd8.js";import{c}from"./p-FsWkrvEF.js";import{c as d}from"./p-Bu7gdOaV.js";import{S as o}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{P as f}from"./p-DEx8fQeW.js";import"./p-BQpbTebi.js";import"./p-BtiJJJwv.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";const h=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.submitEvent=t(this,"submit-event",7),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1,this.showAccountNumberConfirmation=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){c.isSubmitting=!1}checkoutError(e){c.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=e.detail.availablePaymentMethodTypes}async fillBillingForm(e){c.billingFormFields=e}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){c.checkoutId=this.checkoutId,c.authToken=this.authToken,c.disableCreditCard=this.disableCreditCard,c.disableBankAccount=this.disableBankAccount,c.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(c.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"17fb502cfbf3a09b1bd59ded0cf5900cb8f9d441"},i("justifi-modular-checkout",{key:"726bfa331037983083c4246caaabf080e6d318a1",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId,preCompleteHook:this.preCompleteHook},i("div",{key:"791fcaec6a9dcae8b7388bdcd51d84acce4338d2",class:"row gy-3 jfi-checkout-core"},i("div",{key:"558b4603f48e7e60b51cfe01072c072020be3711",class:"col-12",part:d},i("justifi-header",{key:"560f2b20143721b0de9e43369aa7b1c80cdf462e",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"6c32d796b8f9f5b3124454ffab7649decf40bf0a"},i("justifi-checkout-summary",{key:"ff259c5635a56d75f54489986533ff4bbc44f9e1"}))),i("div",{key:"8541d52ae153d6b10952f8b5f92fa23241989cba",class:"col-12 mt-4"},i("slot",{key:"71d802a975a1c3cdd2fc5f4e2e97079533885d1e",name:"insurance"})),i("div",{key:"bdc8639a188f5b141ed59df898731e3872d994a8",class:"col-12 mt-4"},i("justifi-header",{key:"79f2374e4538c1478f0de462739d46c3d24dfc7f",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"2220521026073d7bb93b26abaf2c2b91dd5d0be6",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"4e809c7ba032149e32c97ce262254307ccd5e372",class:"d-flex flex-column"},i("section",{key:"2b25ebfb62a2e0293728987e4c362e799197f301"},i("div",{key:"1094a63702a042682b5de049968687db34d56340"},this.availablePaymentMethods.includes(f.APPLE_PAY)&&i("div",{key:"ac2b2083a082000f605a623a2b4e937dc67f773b",class:"mb-3"},i("justifi-apple-pay",{key:"e8d6dfcf70c3e645a6b8beefa107a904738c8013"})),this.availablePaymentMethods.includes(f.GOOGLE_PAY)&&i("div",{key:"e7551b4165ccacbab1f305e2ff2e592ec6cb13c7",class:"mb-3"},i("justifi-google-pay",Object.assign({key:"3905dd687cafbfd59a496492bddaea368584e7fa",ref:e=>this.googlePayRef=e},null!=this.googlePayEnv?{environment:this.googlePayEnv}:{}))),this.availablePaymentMethods.includes(f.PAYPAL)&&i("div",{key:"f11d39c2c4b7120b3b0fd8427bfc0c033115c28f",class:"mb-3"},i("justifi-paypal",{key:"3560bd46b2b4b2957936b8cfe67e70c2cc4d1798"})),i("justifi-saved-payment-methods",{key:"83298cc717152c8917b63c71c763812f8646f73e"}),this.availablePaymentMethods.includes(f.SEZZLE)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"b5c94c614920fd238dd490f1aa957bc9dbe7ce3f",name:"paymentMethodType",value:f.SEZZLE,checked:(null===(e=null==c?void 0:c.selectedPaymentMethod)||void 0===e?void 0:e.type)===f.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(f.PLAID)&&i("justifi-radio-list-item",{key:"53ce4f366dd81745c88987a5f88502c1d7cdc530",name:"paymentMethodType",value:f.PLAID,checked:(null===(t=null==c?void 0:c.selectedPaymentMethod)||void 0===t?void 0:t.type)===f.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"051f49f4c0ac5a2c27fab834658f5d0f51f51889",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:c.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:c.paymentMethodGroupId,showAccountNumberConfirmation:this.showAccountNumberConfirmation}))))),i("div",{key:"9d0653c43d59b2c671e4fb07dac828f822f4e8bd",class:"mt-4"},i("justifi-button",{key:"b4dcb91c821577fa98f0f2129eff849e70e541c7",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:c.isSubmitting||c.isWalletProcessing,isLoading:c.isSubmitting||c.isWalletProcessing,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{h as justifi_checkout}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as i,c as r}from"./p-CV0Pyo1O.js";import{S as s}from"./p-eBK-iWrz.js";import{w as e,c as o}from"./p-B4vLfYnZ.js";import{e as a}from"./p-Ds_P-dB8.js";import{d as n}from"./p-BzESNgd8.js";import{c as h}from"./p-FsWkrvEF.js";import{C as l,c,b as d}from"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import{B as m}from"./p-CU2Dwa94.js";import"./p-CZfYo5-1.js";import"./p-Bu7gdOaV.js";import"./p-DgTOxu8x.js";import"./p-HXpYMWUU.js";import"./p-BQpbTebi.js";import"./p-DEx8fQeW.js";const u=()=>t("div",{class:"container-fluid p-0"},t("div",{class:"row mb-3"},t("div",{class:"col-12 align-content-end"},t(s,{height:"18px",width:"120px"}),t(s,{height:"36px"}))),t("div",{class:"row"},t("div",{class:"col-12 align-content-end"},t(s,{height:"18px",width:"110px"}),t(s,{height:"36px"})))),p=class{constructor(t){i(this,t),this.errorEvent=r(this,"error-event",7),this.iframeState="loading",this.showAccountNumberConfirmation=!1,this.hasLoggedAchDisabledWarning=!1,this.loadedInputIds=new Set,this.watchedInputIds="",this.reloadIframes=()=>{this.iframeState="loading",this.loadedInputIds.clear(),this.iframeElements.forEach((t=>t.reload())),this.watchIframesLoad()}}async componentWillLoad(){await e(),this.iframeOrigin=o.iframeOrigin,this.tabId=a(),n()}componentDidRender(){if(this.iframeElements.length<this.expectedIframeCount)return;const t=this.iframeElements.map((t=>t.inputId)).join(",");t!==this.watchedInputIds&&(this.watchedInputIds=t,this.watchIframesLoad())}disconnectedCallback(){var t;null===(t=this.loadAbortController)||void 0===t||t.abort()}isAchDisabledForCheckout(){return h.checkoutLoaded&&!h.achPaymentsEnabled}async validate(){if(this.isAchDisabledForCheckout())return{isValid:!1};const t=this.iframeElements;if(t.length<this.expectedIframeCount)return{isValid:!1};const i=[];for(const r of t)i.push(await r.validate());return{isValid:i.every((t=>!0===(null==t?void 0:t.isValid)))}}async tokenize({clientId:t,paymentMethodMetadata:i,account:r}){var s,e;if(this.isAchDisabledForCheckout())return{error:{message:"ACH payments are disabled for this checkout (payment_settings.ach_payments=false)."}};if(this.showAccountNumberConfirmation){const t=await(null===(s=this.accountNumberConfirmationIframeElement)||void 0===s?void 0:s.validate());if(!0!==(null==t?void 0:t.isValid))return{error:{code:"validation_error",message:(null===(e=null==t?void 0:t.error)||void 0===e?void 0:e.message)||"The entered value does not match the account number"}}}return await this.accountNumberIframeElement.tokenize(t,i,r)}get isReady(){return"ready"===this.iframeState}get expectedIframeCount(){return this.showAccountNumberConfirmation?3:2}get iframeElements(){return[this.accountNumberIframeElement,...this.showAccountNumberConfirmation?[this.accountNumberConfirmationIframeElement]:[],this.routingNumberIframeElement].filter(Boolean)}watchIframesLoad(){var t;null===(t=this.loadAbortController)||void 0===t||t.abort();const{signal:i}=this.loadAbortController=new AbortController,r=new Set(this.iframeElements.filter((t=>!this.loadedInputIds.has(t.inputId))).map((t=>t.inputId))),s=Promise.all(this.iframeElements.map((t=>new Promise((s=>{this.loadedInputIds.has(t.inputId)?s():t.addEventListener("iframeLoaded",(()=>{this.loadedInputIds.add(t.inputId),r.delete(t.inputId),s()}),{once:!0,signal:i})}))))),e=new Promise(((t,s)=>{const e=window.setTimeout((()=>s(new Error(`Iframes failed to load: ${Array.from(r).join(", ")}`))),1e4);i.addEventListener("abort",(()=>{window.clearTimeout(e),s(new Error("iframe load watch aborted"))}),{once:!0})}));Promise.race([s,e]).then((()=>{var t;i.aborted||(this.iframeState="ready",null===(t=this.loadAbortController)||void 0===t||t.abort())})).catch((t=>{var s;i.aborted||(this.iframeState="error",null===(s=this.loadAbortController)||void 0===s||s.abort(),r.has("accountNumberConfirmation")&&console.error('[bank-account-form] "Confirm Account Number" field failed to load.'),this.errorEvent.emit({errorCode:d.IFRAME_LOAD_ERROR,message:c.IFRAME_LOAD_ERROR,severity:l.ERROR,data:{errorMessage:t.message}}))}))}renderIframeError(){return t("div",null,t("form-alert",{text:c.IFRAME_LOAD_ERROR,hideAlert:!1}),t(m,{variant:"link",clickHandler:this.reloadIframes,"aria-label":"Reload bank account form",type:"button"},"Try again"))}render(){return this.isAchDisabledForCheckout()?(this.hasLoggedAchDisabledWarning||(console.warn("[bank-account-form] ACH payments are disabled for this checkout (payment_settings.ach_payments=false)."),this.hasLoggedAchDisabledWarning=!0),null):t("div",null,"loading"===this.iframeState&&t(u,null),"error"===this.iframeState&&this.renderIframeError(),t("hidden-input",null),t("div",{class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},t("div",{class:"row mb-3"},t("iframe-input",{inputId:"accountNumber",ref:t=>this.accountNumberIframeElement=t,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),this.showAccountNumberConfirmation&&t("div",{class:"row mb-3"},t("iframe-input",{inputId:"accountNumberConfirmation",ref:t=>this.accountNumberConfirmationIframeElement=t,label:"Confirm Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumberConfirmation?tabId=${this.tabId}`})),t("div",{class:"row"},t("iframe-input",{inputId:"routingNumber",ref:t=>this.routingNumberIframeElement=t,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{p as bank_account_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as a,H as e}from"./p-CV0Pyo1O.js";import{q as i,u as o,v as r,w as h,x as d,y as c}from"./p-Bu7gdOaV.js";import{F as f}from"./p-BTuqVZ6O.js";import{F as n}from"./p-CLZcevBz.js";import"./p-CZfYo5-1.js";import{f as l}from"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";const p=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>l(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,a=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(a),this.inputHandler(s,a),this.formControlInput.emit({name:s,value:a})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:h}render(){return a(e,{key:"c93f2282272f252f5ebc3beaa2a9c8b5354d3e27"},a("div",{key:"7ae866ddbd1f59c41aa65e1403fc4bc50e339cad",class:"form-group d-flex flex-column"},a("label",{key:"1490d1484abf2bde39b66be0decf40cb631ec74f",part:d,class:"form-label",htmlFor:this.name},this.label),a(f,{key:"22134cce2d545a2890b1b8a3c7f65ed6d16dc56d",name:this.name,helpText:this.helpText}),a("div",{key:"d1630cf3ed7523af0c5138d3aa515d005f7d960e",class:"input-group"},a("span",{key:"6513844b4374ed9cac1b8e23036086bc002ea8f0",class:"input-group-text",part:c},"$"),a("input",{key:"a59d39b8d81bef0178556d4fa0094dba0c40fd6e",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),a(n,{key:"777cdcb4a8872899dfea021185b83ad0f73bf153",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}
|