@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,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-CV0Pyo1O.js';
|
|
2
2
|
import { c as create$3, F as FormController } from './index.esm-KCSohgHx.js';
|
|
3
|
-
import { z as postalValidation, A as stateValidation, h as cityValidation, l as lineTwoValidation, j as lineOneValidation, v as identityNameValidation, B as checkoutBillingStateOptions } from './schema-validations-
|
|
3
|
+
import { z as postalValidation, A as stateValidation, h as cityValidation, l as lineTwoValidation, j as lineOneValidation, v as identityNameValidation, B as checkoutBillingStateOptions } from './schema-validations-8GJ34Do1.js';
|
|
4
4
|
import { ak as billingForm } from './parts-Bu7gdOaV.js';
|
|
5
|
-
import { c as checkoutStore, o as onChange } from './checkout.store-
|
|
5
|
+
import { c as checkoutStore, o as onChange } from './checkout.store-B8CGkx0o.js';
|
|
6
6
|
import { P as PAYMENT_METHODS } from './index-DEx8fQeW.js';
|
|
7
7
|
import { H as Header3 } from './header-3-DNqRk_HO.js';
|
|
8
8
|
import './event-types-CZfYo5-1.js';
|
|
9
|
+
import { n as normalizePostalCode } from './country-config-DJFj1v-Q.js';
|
|
9
10
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
10
|
-
import './country-config-F5YwgHgR.js';
|
|
11
11
|
import './Business-CTtGaVYs.js';
|
|
12
12
|
import './business-form-options-DLRkVtee.js';
|
|
13
13
|
import './index-3wWWWrhn.js';
|
|
@@ -137,7 +137,10 @@ const BillingFormFull = class {
|
|
|
137
137
|
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
138
138
|
}
|
|
139
139
|
async getValues() {
|
|
140
|
-
|
|
140
|
+
const values = this.formController.values.getValue();
|
|
141
|
+
// checkoutStore values skip the input transform, so normalize on the way out.
|
|
142
|
+
return (values === null || values === void 0 ? void 0 : values.address_postal_code)
|
|
143
|
+
? Object.assign(Object.assign({}, values), { address_postal_code: normalizePostalCode(values.address_postal_code) }) : values;
|
|
141
144
|
}
|
|
142
145
|
async validate() {
|
|
143
146
|
const isValid = await this.formController.validate();
|
|
@@ -149,7 +152,7 @@ const BillingFormFull = class {
|
|
|
149
152
|
return null;
|
|
150
153
|
}
|
|
151
154
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
152
|
-
return (h("div", { part: billingForm, class: "mt-4" }, h(Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", null, h("fieldset", null, this.legend && (h("legend", null, this.legend)), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: 'address_state', label: 'State / Province', options: checkoutBillingStateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength:
|
|
155
|
+
return (h("div", { part: billingForm, class: "mt-4" }, h(Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", null, h("fieldset", null, this.legend && (h("legend", null, this.legend)), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: 'address_state', label: 'State / Province', options: checkoutBillingStateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, transformValue: normalizePostalCode, maxLength: 10 })))))));
|
|
153
156
|
}
|
|
154
157
|
};
|
|
155
158
|
|
|
@@ -182,7 +185,10 @@ const CardBillingFormSimple = class {
|
|
|
182
185
|
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
183
186
|
}
|
|
184
187
|
async getValues() {
|
|
185
|
-
|
|
188
|
+
const values = this.formController.values.getValue();
|
|
189
|
+
// checkoutStore values skip the input transform, so normalize on the way out.
|
|
190
|
+
return (values === null || values === void 0 ? void 0 : values.address_postal_code)
|
|
191
|
+
? Object.assign(Object.assign({}, values), { address_postal_code: normalizePostalCode(values.address_postal_code) }) : values;
|
|
186
192
|
}
|
|
187
193
|
async validate() {
|
|
188
194
|
const isValid = await this.formController.validate();
|
|
@@ -191,7 +197,7 @@ const CardBillingFormSimple = class {
|
|
|
191
197
|
}
|
|
192
198
|
render() {
|
|
193
199
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
194
|
-
return (h("div", { key: '
|
|
200
|
+
return (h("div", { key: 'afc6ba1fc118b81d3fd2963a86db38236c0871ac', part: billingForm }, h("form", { key: 'db49c3bdb2a243615704e42d9a2cedee6fbcc469' }, h("fieldset", { key: '9aa92c3a19f81f67e9be1a2a64b72975b96204d9' }, this.legend && (h("legend", { key: 'abdc6c1c28dc142ec7635871fa0b96f14de35c4e' }, this.legend)), h("div", { key: '19f69483b9fcd39d61cd8bdc20b8fa6ee80a5477', class: "row gy-3" }, h("div", { key: 'fff29f5a5920276125839cebeec10f8417b67805', class: "col-12" }, h("form-control-text", { key: 'd257c668d29a3c8f70ae125eff529a727cf7fcca', name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, transformValue: normalizePostalCode, maxLength: 10 })))))));
|
|
195
201
|
}
|
|
196
202
|
};
|
|
197
203
|
|
|
@@ -2,8 +2,8 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
|
|
|
2
2
|
import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
3
3
|
import { w as waitForConfig, c as configState } from './config-state-BKOsYBXZ.js';
|
|
4
4
|
import { e as generateTabId } from './utils-D8J8OvxY.js';
|
|
5
|
-
import {
|
|
6
|
-
import { c as checkoutStore } from './checkout.store-
|
|
5
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
|
|
6
|
+
import { c as checkoutStore } from './checkout.store-B8CGkx0o.js';
|
|
7
7
|
import { C as ComponentErrorSeverity, c as ComponentErrorMessages, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
8
8
|
import './Pagination-CLHwhyvu.js';
|
|
9
9
|
import './Business-CTtGaVYs.js';
|
|
@@ -12,7 +12,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
12
12
|
import './parts-Bu7gdOaV.js';
|
|
13
13
|
import './index-3wWWWrhn.js';
|
|
14
14
|
import './dinero-HXpYMWUU.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-BQpbTebi.js';
|
|
16
16
|
import './index-DEx8fQeW.js';
|
|
17
17
|
|
|
18
18
|
const BankAccountFormSkeleton = () => {
|
|
@@ -24,9 +24,13 @@ const BankAccountForm = class {
|
|
|
24
24
|
registerInstance(this, hostRef);
|
|
25
25
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
26
26
|
this.iframeState = 'loading';
|
|
27
|
+
this.showAccountNumberConfirmation = false;
|
|
27
28
|
this.hasLoggedAchDisabledWarning = false;
|
|
29
|
+
this.loadedInputIds = new Set();
|
|
30
|
+
this.watchedInputIds = '';
|
|
28
31
|
this.reloadIframes = () => {
|
|
29
32
|
this.iframeState = 'loading';
|
|
33
|
+
this.loadedInputIds.clear();
|
|
30
34
|
this.iframeElements.forEach((element) => element.reload());
|
|
31
35
|
this.watchIframesLoad();
|
|
32
36
|
};
|
|
@@ -35,12 +39,19 @@ const BankAccountForm = class {
|
|
|
35
39
|
await waitForConfig();
|
|
36
40
|
this.iframeOrigin = configState.iframeOrigin;
|
|
37
41
|
this.tabId = generateTabId();
|
|
38
|
-
|
|
42
|
+
detectDuplicateVersion();
|
|
39
43
|
}
|
|
40
44
|
componentDidRender() {
|
|
41
|
-
if (this.
|
|
45
|
+
if (this.iframeElements.length < this.expectedIframeCount) {
|
|
42
46
|
return;
|
|
43
47
|
}
|
|
48
|
+
// Re-watch when the rendered field set changes -- showAccountNumberConfirmation
|
|
49
|
+
// can flip on after the first watch already finished.
|
|
50
|
+
const inputIds = this.iframeElements.map((element) => element.inputId).join(',');
|
|
51
|
+
if (inputIds === this.watchedInputIds) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this.watchedInputIds = inputIds;
|
|
44
55
|
this.watchIframesLoad();
|
|
45
56
|
}
|
|
46
57
|
disconnectedCallback() {
|
|
@@ -52,13 +63,24 @@ const BankAccountForm = class {
|
|
|
52
63
|
}
|
|
53
64
|
async validate() {
|
|
54
65
|
if (this.isAchDisabledForCheckout()) {
|
|
55
|
-
return false;
|
|
66
|
+
return { isValid: false };
|
|
67
|
+
}
|
|
68
|
+
const elements = this.iframeElements;
|
|
69
|
+
// A field that has not rendered yet cannot be validated -- fail closed
|
|
70
|
+
// rather than report a pass for a form that is not all there.
|
|
71
|
+
if (elements.length < this.expectedIframeCount) {
|
|
72
|
+
return { isValid: false };
|
|
56
73
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
74
|
+
// Sequential on purpose: the parent correlates iframe replies by eventType
|
|
75
|
+
// alone, with no request id, so concurrent validates would cross replies.
|
|
76
|
+
const results = [];
|
|
77
|
+
for (const element of elements) {
|
|
78
|
+
results.push(await element.validate());
|
|
79
|
+
}
|
|
80
|
+
return { isValid: results.every((result) => (result === null || result === void 0 ? void 0 : result.isValid) === true) };
|
|
60
81
|
}
|
|
61
82
|
async tokenize({ clientId, paymentMethodMetadata, account }) {
|
|
83
|
+
var _a, _b;
|
|
62
84
|
if (this.isAchDisabledForCheckout()) {
|
|
63
85
|
return {
|
|
64
86
|
error: {
|
|
@@ -66,25 +88,54 @@ const BankAccountForm = class {
|
|
|
66
88
|
},
|
|
67
89
|
};
|
|
68
90
|
}
|
|
91
|
+
// tokenize() is a public @Method: an integrator with their own submit button
|
|
92
|
+
// can reach it without validate(), so the mismatch check has to live here too.
|
|
93
|
+
if (this.showAccountNumberConfirmation) {
|
|
94
|
+
const confirmation = await ((_a = this.accountNumberConfirmationIframeElement) === null || _a === void 0 ? void 0 : _a.validate());
|
|
95
|
+
if ((confirmation === null || confirmation === void 0 ? void 0 : confirmation.isValid) !== true) {
|
|
96
|
+
return {
|
|
97
|
+
error: {
|
|
98
|
+
code: 'validation_error',
|
|
99
|
+
message: ((_b = confirmation === null || confirmation === void 0 ? void 0 : confirmation.error) === null || _b === void 0 ? void 0 : _b.message) ||
|
|
100
|
+
'The entered value does not match the account number',
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
69
105
|
const result = await this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
70
106
|
return result;
|
|
71
107
|
}
|
|
72
108
|
get isReady() {
|
|
73
109
|
return this.iframeState === 'ready';
|
|
74
110
|
}
|
|
111
|
+
get expectedIframeCount() {
|
|
112
|
+
return this.showAccountNumberConfirmation ? 3 : 2;
|
|
113
|
+
}
|
|
75
114
|
get iframeElements() {
|
|
76
115
|
return [
|
|
77
116
|
this.accountNumberIframeElement,
|
|
117
|
+
...(this.showAccountNumberConfirmation
|
|
118
|
+
? [this.accountNumberConfirmationIframeElement]
|
|
119
|
+
: []),
|
|
78
120
|
this.routingNumberIframeElement,
|
|
79
|
-
];
|
|
121
|
+
].filter(Boolean);
|
|
80
122
|
}
|
|
81
123
|
watchIframesLoad() {
|
|
82
124
|
var _a;
|
|
83
125
|
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
84
126
|
const { signal } = (this.loadAbortController = new AbortController());
|
|
85
|
-
const pending = new Set(this.iframeElements
|
|
127
|
+
const pending = new Set(this.iframeElements
|
|
128
|
+
.filter((element) => !this.loadedInputIds.has(element.inputId))
|
|
129
|
+
.map((element) => element.inputId));
|
|
86
130
|
const loaded = Promise.all(this.iframeElements.map((element) => (new Promise((resolve) => {
|
|
131
|
+
// iframeLoaded is a once: true listener, so an element that already
|
|
132
|
+
// loaded will never fire again on a re-watch.
|
|
133
|
+
if (this.loadedInputIds.has(element.inputId)) {
|
|
134
|
+
resolve();
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
87
137
|
element.addEventListener('iframeLoaded', () => {
|
|
138
|
+
this.loadedInputIds.add(element.inputId);
|
|
88
139
|
pending.delete(element.inputId);
|
|
89
140
|
resolve();
|
|
90
141
|
}, { once: true, signal });
|
|
@@ -108,6 +159,9 @@ const BankAccountForm = class {
|
|
|
108
159
|
return;
|
|
109
160
|
this.iframeState = 'error';
|
|
110
161
|
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
162
|
+
if (pending.has('accountNumberConfirmation')) {
|
|
163
|
+
console.error('[bank-account-form] "Confirm Account Number" field failed to load.');
|
|
164
|
+
}
|
|
111
165
|
this.errorEvent.emit({
|
|
112
166
|
errorCode: ComponentErrorCodes.IFRAME_LOAD_ERROR,
|
|
113
167
|
message: ComponentErrorMessages.IFRAME_LOAD_ERROR,
|
|
@@ -132,7 +186,7 @@ const BankAccountForm = class {
|
|
|
132
186
|
return (h("div", null, this.iframeState === 'loading' && h(BankAccountFormSkeleton, null), this.iframeState === 'error' && this.renderIframeError(), h("hidden-input", null), h("div", { class: "container-fluid p-0", style: {
|
|
133
187
|
opacity: this.isReady ? '1' : '0',
|
|
134
188
|
height: this.isReady ? 'auto' : '0',
|
|
135
|
-
} }, h("div", { class: "row mb-3" }, h("iframe-input", { inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { class: "row" }, h("iframe-input", { inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
189
|
+
} }, h("div", { class: "row mb-3" }, h("iframe-input", { inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), this.showAccountNumberConfirmation && (h("div", { class: "row mb-3" }, h("iframe-input", { inputId: "accountNumberConfirmation", ref: (el) => (this.accountNumberConfirmationIframeElement = el), label: "Confirm Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumberConfirmation?tabId=${this.tabId}` }))), h("div", { class: "row" }, h("iframe-input", { inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
136
190
|
}
|
|
137
191
|
};
|
|
138
192
|
|
package/dist/esm/{business-identity-schema-BP61Unwf.js → business-identity-schema-BLKCH6xV.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as create$3, a as create$6 } from './index.esm-KCSohgHx.js';
|
|
2
|
-
import { m as makeTaxIdValidation, d as dateOfIncorporationValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, t as taxIdValidation, o as otherPaymentDetailsValidation, f as whenServiceReceivedValidation, r as revenueValidation, g as paymentVolumeValidation, h as cityValidation, l as lineTwoValidation, j as lineOneValidation, k as makePostalValidation, n as ownershipPercentageValidation, s as ssnValidation, q as dobValidation, u as identityTitleValidation, v as identityNameValidation, x as makeOwnershipPercentageValidation, y as makeIdentityNumberValidation } from './schema-validations-
|
|
2
|
+
import { m as makeTaxIdValidation, d as dateOfIncorporationValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, t as taxIdValidation, o as otherPaymentDetailsValidation, f as whenServiceReceivedValidation, r as revenueValidation, g as paymentVolumeValidation, h as cityValidation, l as lineTwoValidation, j as lineOneValidation, k as makePostalValidation, n as ownershipPercentageValidation, s as ssnValidation, q as dobValidation, u as identityTitleValidation, v as identityNameValidation, x as makeOwnershipPercentageValidation, y as makeIdentityNumberValidation } from './schema-validations-8GJ34Do1.js';
|
|
3
3
|
import { C as CountryCode } from './Business-CTtGaVYs.js';
|
|
4
|
-
import { c as countryLabels } from './country-config-
|
|
4
|
+
import { c as countryLabels } from './country-config-DJFj1v-Q.js';
|
|
5
5
|
|
|
6
6
|
// Base schema (no country-specific rules for classification/tax id)
|
|
7
7
|
const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
|
|
|
2
2
|
import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
3
3
|
import { w as waitForConfig, c as configState } from './config-state-BKOsYBXZ.js';
|
|
4
4
|
import { e as generateTabId } from './utils-D8J8OvxY.js';
|
|
5
|
-
import {
|
|
5
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, c as ComponentErrorMessages, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
7
7
|
import './Pagination-CLHwhyvu.js';
|
|
8
8
|
import './Business-CTtGaVYs.js';
|
|
@@ -11,7 +11,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
11
11
|
import './parts-Bu7gdOaV.js';
|
|
12
12
|
import './index-3wWWWrhn.js';
|
|
13
13
|
import './dinero-HXpYMWUU.js';
|
|
14
|
-
import './package-
|
|
14
|
+
import './package-BQpbTebi.js';
|
|
15
15
|
|
|
16
16
|
const CardFormSkeleton = () => {
|
|
17
17
|
return (h("div", { class: "container-fluid p-0" }, h("div", { class: "mb-3" }, h(Skeleton, { height: "18px", width: "100px" }), h(Skeleton, { height: "36px" })), h("div", { class: "row" }, h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "80px" }), h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "30px" }), h(Skeleton, { height: "36px" })))));
|
|
@@ -22,6 +22,8 @@ const CardForm = class {
|
|
|
22
22
|
registerInstance(this, hostRef);
|
|
23
23
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
24
24
|
this.iframeState = 'loading';
|
|
25
|
+
/** Mask the card number to its last four digits when the field blurs. */
|
|
26
|
+
this.maskCardNumber = false;
|
|
25
27
|
this.reloadIframes = () => {
|
|
26
28
|
this.iframeState = 'loading';
|
|
27
29
|
this.iframeElements.forEach((element) => element.reload());
|
|
@@ -32,7 +34,7 @@ const CardForm = class {
|
|
|
32
34
|
await waitForConfig();
|
|
33
35
|
this.iframeOrigin = configState.iframeOrigin;
|
|
34
36
|
this.tabId = generateTabId();
|
|
35
|
-
|
|
37
|
+
detectDuplicateVersion();
|
|
36
38
|
}
|
|
37
39
|
componentDidLoad() {
|
|
38
40
|
this.watchIframesLoad();
|
|
@@ -42,11 +44,13 @@ const CardForm = class {
|
|
|
42
44
|
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
43
45
|
}
|
|
44
46
|
async validate() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
|
|
47
|
+
// Sequential on purpose: the parent correlates iframe replies by eventType
|
|
48
|
+
// alone, with no request id, so concurrent validates would cross replies.
|
|
49
|
+
const results = [];
|
|
50
|
+
for (const element of this.iframeElements) {
|
|
51
|
+
results.push(await element.validate());
|
|
52
|
+
}
|
|
53
|
+
return { isValid: results.every((result) => (result === null || result === void 0 ? void 0 : result.isValid) === true) };
|
|
50
54
|
}
|
|
51
55
|
async tokenize({ clientId, paymentMethodMetadata, account, }) {
|
|
52
56
|
const result = await this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
@@ -107,10 +111,10 @@ const CardForm = class {
|
|
|
107
111
|
return (h("div", null, h("form-alert", { text: ComponentErrorMessages.IFRAME_LOAD_ERROR, hideAlert: false }), h(Button, { variant: "link", clickHandler: this.reloadIframes, "aria-label": "Reload payment form", type: "button" }, "Try again")));
|
|
108
112
|
}
|
|
109
113
|
render() {
|
|
110
|
-
return (h("div", { key: '
|
|
114
|
+
return (h("div", { key: '6f1adaa489228ab15ee8803f5e8d94b4f38df172' }, this.iframeState === 'loading' && h(CardFormSkeleton, { key: '01f38bf843e382d8fb34e59011a603e3a0955847' }), this.iframeState === 'error' && this.renderIframeError(), h("hidden-input", { key: 'd4fe8201e7df2ffd00cf76314da60dfa375d0c92' }), h("div", { key: 'be021b08ea0cb9bbd4e4dbb9258fb1e4cf0715b7', class: "container-fluid p-0", style: {
|
|
111
115
|
opacity: this.isReady ? '1' : '0',
|
|
112
116
|
height: this.isReady ? 'auto' : '0',
|
|
113
|
-
} }, h("div", { key: '
|
|
117
|
+
} }, h("div", { key: '5771c79e70cc49c15d170d0f3f820e4d04ab203a', class: "mb-3" }, h("iframe-input", { key: 'f24efbd4677be8bd07c9cf3cd0bf77df7b98993e', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", maskCardNumber: this.maskCardNumber, iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: '1d5923d02dbd23551cab1f8bb5d4ef3b5534f152', class: "row" }, h("div", { key: '1db376daa12621f2f17113a96ab693bfaae2fc38', class: "col-4 align-content-end" }, h("iframe-input", { key: '5cb8c4796ea7f609fecd0919709f70c52ae9c55c', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: '0cc0c04b35174c56097f687d2f843f874ed7fee0', class: "col-4 align-content-end" }, h("iframe-input", { key: '79cb809ad28c53c276903ddc5ece50b07fabfd56', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: 'e04d26f47245b1f4977e57e456b12f630b8c63cd', class: "col-4 align-content-end" }, h("iframe-input", { key: '6e5e2dabbf28725e7e2499455bff1b34f6aefcf9', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
114
118
|
}
|
|
115
119
|
};
|
|
116
120
|
|
|
@@ -20,6 +20,26 @@ const ProvinceOptions = [
|
|
|
20
20
|
{ label: 'Yukon', value: 'YT' },
|
|
21
21
|
];
|
|
22
22
|
|
|
23
|
+
// Canada Post addressing guidelines: a postal code is six characters in the form
|
|
24
|
+
// "ANA NAN", with a single space between the Forward Sortation Area and the Local
|
|
25
|
+
// Delivery Unit. The first character of the FSA identifies one of 18 geographic
|
|
26
|
+
// areas, so D, F, I, O, Q, U, W and Z never appear there.
|
|
27
|
+
// https://www.canadapost-postescanada.ca/cpc/en/support/articles/addressing-guidelines/postal-codes.page
|
|
28
|
+
const US_ZIP_REGEX = /^\d{5}(-\d{4})?$/;
|
|
29
|
+
const CA_OR_US_POSTAL_REGEX = /^([ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d|\d{5}(-\d{4})?)$/i;
|
|
30
|
+
// Opening alpha-numeric-alpha is what distinguishes a Canadian code from a US ZIP.
|
|
31
|
+
const CA_SHAPE = /^[A-Z]\d[A-Z]/;
|
|
32
|
+
const normalizePostalCode = (value) => {
|
|
33
|
+
if (!value)
|
|
34
|
+
return value;
|
|
35
|
+
const upper = value.toUpperCase();
|
|
36
|
+
// A US ZIP (or a typo) keeps its characters — only the case is normalized.
|
|
37
|
+
if (!CA_SHAPE.test(upper))
|
|
38
|
+
return upper;
|
|
39
|
+
const compact = upper.replace(/[\s-]/g, '');
|
|
40
|
+
return compact.length > 3 ? `${compact.slice(0, 3)} ${compact.slice(3)}` : compact;
|
|
41
|
+
};
|
|
42
|
+
|
|
23
43
|
const countryLabels = {
|
|
24
44
|
USA: {
|
|
25
45
|
stateLabel: 'State',
|
|
@@ -57,15 +77,15 @@ const countryOptions = {
|
|
|
57
77
|
};
|
|
58
78
|
const countryValidation = {
|
|
59
79
|
USA: {
|
|
60
|
-
postalRegex:
|
|
80
|
+
postalRegex: US_ZIP_REGEX,
|
|
61
81
|
identityDigits: 9,
|
|
62
82
|
taxIdDigits: 9,
|
|
63
83
|
},
|
|
64
84
|
CAN: {
|
|
65
|
-
postalRegex:
|
|
85
|
+
postalRegex: CA_OR_US_POSTAL_REGEX,
|
|
66
86
|
identityDigits: 9,
|
|
67
87
|
taxIdDigits: 9,
|
|
68
88
|
},
|
|
69
89
|
};
|
|
70
90
|
|
|
71
|
-
export { ProvinceOptions as P, countryValidation as a, countryOptions as b, countryLabels as c };
|
|
91
|
+
export { CA_OR_US_POSTAL_REGEX as C, ProvinceOptions as P, countryValidation as a, countryOptions as b, countryLabels as c, normalizePostalCode as n };
|
|
@@ -1901,7 +1901,7 @@ const CustomPopper = class {
|
|
|
1901
1901
|
this.hideEvent.emit();
|
|
1902
1902
|
}
|
|
1903
1903
|
render() {
|
|
1904
|
-
return (h("div", { key: '
|
|
1904
|
+
return (h("div", { key: '1af0c9c11ffd5c3d0b7a1505e1730e68a8a52c88' }, h("style", { key: '6d16cbe171506d3ed398bbf051da1e1023648f7f' }, `
|
|
1905
1905
|
.popper-content {
|
|
1906
1906
|
display: none;
|
|
1907
1907
|
}
|
|
@@ -1909,7 +1909,7 @@ const CustomPopper = class {
|
|
|
1909
1909
|
display: block;
|
|
1910
1910
|
z-index: 1030;
|
|
1911
1911
|
}
|
|
1912
|
-
`), h("div", { key: '
|
|
1912
|
+
`), h("div", { key: 'fb4e6914fe3ef58e986baa320887b2b5c77b1e6b', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: 'a4e4db117f4cae28e84e7b9cd7f810a8d27e50ad' }))));
|
|
1913
1913
|
}
|
|
1914
1914
|
static get watchers() { return {
|
|
1915
1915
|
"anchorRef": ["onAnchorRefChange"]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { p as packageJson } from './package-BQpbTebi.js';
|
|
2
|
+
|
|
3
|
+
const JUSTIFI_VERSION_KEY = '__JUSTIFI_WC_VERSION__';
|
|
4
|
+
/**
|
|
5
|
+
* Records this bundle's version on globalThis and logs an error when a second,
|
|
6
|
+
* different version of @justifi/webcomponents is already on the page. The first
|
|
7
|
+
* version loaded wins — it has registered the custom elements, so any later
|
|
8
|
+
* bundle is inert.
|
|
9
|
+
*/
|
|
10
|
+
const detectDuplicateVersion = () => {
|
|
11
|
+
if (typeof globalThis === 'undefined')
|
|
12
|
+
return;
|
|
13
|
+
const globalScope = globalThis;
|
|
14
|
+
const currentVersion = packageJson.version;
|
|
15
|
+
const existingVersion = globalScope[JUSTIFI_VERSION_KEY];
|
|
16
|
+
if (existingVersion && existingVersion !== currentVersion) {
|
|
17
|
+
console.error(`@justifi/webcomponents: Multiple versions detected. ` +
|
|
18
|
+
`Version ${existingVersion} was loaded first and registered all components. ` +
|
|
19
|
+
`Version ${currentVersion} is also present but its components will NOT be used. ` +
|
|
20
|
+
`To fix this, add to your package.json:\n` +
|
|
21
|
+
`"pnpm": { "overrides": { "@justifi/webcomponents": "${currentVersion}" } }`);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
globalScope[JUSTIFI_VERSION_KEY] = currentVersion;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { detectDuplicateVersion as d };
|
|
@@ -6,14 +6,14 @@ import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
8
8
|
import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
|
|
9
|
-
import { D as DisputeManagementClickActions, a as DisputeService } from './event-types-
|
|
10
|
-
import {
|
|
11
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { D as DisputeManagementClickActions, a as DisputeService } from './event-types-S8CgMbPg.js';
|
|
10
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
|
|
11
|
+
import { J as JustifiAnalytics } from './Analytics-DihSSvAP.js';
|
|
12
12
|
import './dinero-HXpYMWUU.js';
|
|
13
|
-
import './Api-
|
|
13
|
+
import './Api-INJHjnya.js';
|
|
14
14
|
import './config-state-BKOsYBXZ.js';
|
|
15
15
|
import './index-3wWWWrhn.js';
|
|
16
|
-
import './package-
|
|
16
|
+
import './package-BQpbTebi.js';
|
|
17
17
|
import './Pagination-CLHwhyvu.js';
|
|
18
18
|
import './Business-CTtGaVYs.js';
|
|
19
19
|
|
|
@@ -150,8 +150,8 @@ const DisputeNotification = class {
|
|
|
150
150
|
}
|
|
151
151
|
render() {
|
|
152
152
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
153
|
-
return (h("div", { key: '
|
|
154
|
-
_b.due_date, ") for this dispute has passed"), h("p", { key: '
|
|
153
|
+
return (h("div", { key: '12cd6c17c1f4f70e136fa0e9d6ff74d37af82a1e', class: "dispute-notification-root" }, this.isLoading && (h("div", { key: '33b1c6259abe1da5d92ac2aa37cfec9033fbb3d1', style: { marginBottom: '8px' } }, h(Skeleton, { key: '1f5bc2333a37587d3d11e545b58c9b85a2a145a5', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '280e35a187319c7698922c3cd3f579457a187e7a', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: '3fd7f151a3d7516dd40835d6c42d2240d7170613', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && this.isDueDatePassed() && (h("div", { key: 'e78d3cf205ba862b8df5e5358e15c4961add1003', part: text }, h("h1", { key: 'c533f650a18a75ca7c9f1cb15a6d1da517317e54', class: "h4", part: heading4 }, "The due date (", (_b = this.dispute) === null || _b === void 0 ? void 0 :
|
|
154
|
+
_b.due_date, ") for this dispute has passed"), h("p", { key: '14f82547639777ab5179010f350d42f7b4082845' }, "You can no longer submit evidence to counter this dispute."))), ((_c = this.dispute) === null || _c === void 0 ? void 0 : _c.needsResponse) && !this.isDueDatePassed() && (h("div", { key: 'a2eefdc255af0c3b07091183fff4c5860f66af3a', part: text }, h("h1", { key: '043801fa6ac2f90ba10e6048feeecf670cc4e4dd', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: 'b4b115c46340ae96e43a63a1535b59f071efc7cc' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '451b315624efea9b5f1e619ae6b942611ba93135', class: "h5" }, "Dispute details"), h("div", { key: 'c7765f5f091a346de0eb7aa81c36d475832925d2', class: "d-table gap-2" }, h("div", { key: 'cb3ecb618099b579a488232d5ecafef28c7da235', class: "d-table-row gap-2" }, h("span", { key: '86475be18418565529a2d08a544962209f9766ac', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '5efe0ffd6f0236b906ab9e52f32bd9a0533240a2', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_d = this.dispute) === null || _d === void 0 ? void 0 : _d.amount))), h("div", { key: '286b29d07ddb23ba80d4831aadebb4f550545c39', class: "d-table-row gap-2" }, h("span", { key: '2a8582b5e4c6e0b4ad1db9b7222148949accf10d', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: 'b8e43894965778696e0cb41204b3efe1aac9443e', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_e = this.dispute) === null || _e === void 0 ? void 0 : _e.reason)), h("div", { key: '4864005f755bdbdecb5ed28370452850dfc9f047', class: "d-table-row gap-2" }, h("span", { key: '64b10de9b84fe9992b07a88294caa38b2b63fdca', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: '5198c3cd3ebf4246c42d8b59603765bd39bae06b', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_f = this.dispute) === null || _f === void 0 ? void 0 : _f.due_date))), h("div", { key: '29c98ba58742d3195eca08571cbf793bc9d5a7c6', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '9ef19c0152cbb6342214aa5073ffed303fc85624', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '558126e83a05c0729e17a1abf5ce849e02574096', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.underReview) && (h("div", { key: 'f8c6fee1c63eef8cf2d2a00fb10051686c7572ae', part: text }, h("h1", { key: '23c4bb1c8ab00f4cf9a1447156c124f8ecd1f4b7', class: "h4", part: heading4 }, "This payment is disputed and under review"), h("p", { key: 'b1c469330757f22582e5c341c68adcd1aae3def3' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_h = this.dispute) === null || _h === void 0 ? void 0 : _h.won) && (h("div", { key: '46c92fe084337c67ce0bfedf11d89aca38bdc5e4', part: text }, h("h1", { key: 'ac06dc25f88d88d257ff56aec620d803a45d6344', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '30a26bceb37855460b8ae6ef54c20591900b5fcf' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_j = this.dispute) === null || _j === void 0 ? void 0 : _j.lost) && (h("div", { key: '2320aa515a8112a27bdbd9e3f1b3a8daf2c1b28e', part: text }, h("h1", { key: '32e0cfc6e8d27afe01194ab61ad342781ec31bf8', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '6a8b333f0be16d81ffc23609bcdcb8f70435d515' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
|
|
@@ -304,7 +304,7 @@ const DisputeResponse = class {
|
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
306
|
componentWillLoad() {
|
|
307
|
-
|
|
307
|
+
detectDuplicateVersion();
|
|
308
308
|
this.analytics = new JustifiAnalytics(this);
|
|
309
309
|
this.initializeDisputeServiceMethods();
|
|
310
310
|
}
|
|
@@ -352,7 +352,7 @@ const DisputeResponse = class {
|
|
|
352
352
|
return this.currentStep === 0;
|
|
353
353
|
}
|
|
354
354
|
render() {
|
|
355
|
-
return (h("div", { key: '
|
|
355
|
+
return (h("div", { key: 'a558e22c9d41b40d01fd7317566b8e92b181396a', class: "dispute-response-root" }, h("div", { key: 'b5ccda631bb6b8d9587c97c5f72c73563b32a336', class: "row gy-3" }, h("div", { key: '680cd57e4c08c919284911e03c31bf88e9ea27bd', class: "col-12" }, h("h1", { key: 'aa9cad23ec784d2d037a39f536f25547e52038fd', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '39e1d9bb2cd0cca28841430139c301fd18863f81', class: "col-12" }, this.currentStepComponent), h("div", { key: '3c87124fcab317c738b2ecfdaa454b008bd921fd', class: "col-12" }, h("div", { key: '210414d3492ce600c34b8c93824c81cae12bb3b4', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next")))))));
|
|
356
356
|
}
|
|
357
357
|
static get watchers() { return {
|
|
358
358
|
"disputeId": ["propChanged"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent } from './index-CV0Pyo1O.js';
|
|
2
2
|
import { C as CountryCode } from './Business-CTtGaVYs.js';
|
|
3
|
-
import {
|
|
4
|
-
import { b as countryOptions, c as countryLabels } from './country-config-
|
|
3
|
+
import { z as zipCodeOnlyHandler } from './utils-Cpck08K0.js';
|
|
4
|
+
import { b as countryOptions, c as countryLabels, n as normalizePostalCode } from './country-config-DJFj1v-Q.js';
|
|
5
5
|
import { I as IMask } from './index-Ce_F4E0f.js';
|
|
6
6
|
import { q as inputInvalid, u as inputDisabled, v as inputFocused, w as input, x as label } from './parts-Bu7gdOaV.js';
|
|
7
7
|
import { F as FormControlErrorText } from './form-control-error-text-FyanxO4T.js';
|
|
@@ -16,7 +16,7 @@ const FormAddressFields = class {
|
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
17
17
|
const labels = countryLabels[this.country];
|
|
18
18
|
const options = countryOptions[this.country];
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'a1bbc92e63a973d2ad70019597132b599529d3b5' }, h("div", { key: 'f52aee4bdb8987e40693e75627bd5f852e20f9c9', class: "row gy-3" }, h("div", { key: '3557621ecc4910bba3d41551ffc6fbf88cabb1ef', class: "col-12" }, h("form-control-text", { key: '5d0df84b735ff1364bf62185db33afdc4c0782e2', name: "line1", label: "Street Address", inputHandler: this.inputHandler, defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, helpText: "No PO Boxes." })), h("div", { key: '671665f83b6569830296842ac089fdcfafa19b0d', class: "col-12" }, h("form-control-text", { key: '21b3f2e4dfc8b30603d22ffb4d59480be2035aff', name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '731c4bb3c8fcbf2f68f0a721415210819d3721c6', class: "col-12" }, h("form-control-text", { key: 'b0283f71fe2d8efdadc918257d119c0af2b02243', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '42c208d228cf9c1f278c9c666d15f1508d6c8c51', class: "col-12 col-md-6" }, h("form-control-select", { key: '9da34256e043df09cf924c110b059304e35a3451', name: "state", label: labels.stateLabel, options: options.stateOptions, inputHandler: this.inputHandler, defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '24622af99d38f69c942e3e73d6705a68a2a3dc07', class: "col-12 col-md-6" }, h("form-control-text", { key: '24405b8aff1b14bcb00583085efeb8b3f33a6903', name: "postal_code", label: labels.postalLabel, inputHandler: this.inputHandler, defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, transformValue: normalizePostalCode, maxLength: this.country === CountryCode.USA ? 10 : 7, keyDownHandler: this.country === CountryCode.USA ? zipCodeOnlyHandler : undefined })))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -84,10 +84,10 @@ const FormControlNumberMasked = class {
|
|
|
84
84
|
return input;
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: '9d164bbf77f8a5227128ab5c606d6f9eb8b5e260' }, h("div", { key: '780108deefb44f3bec06093bcbf830ba0f0d32d5', class: "form-group d-flex flex-column" }, h("div", { key: '8d1d98b481f68227d0843842fbdb0b768c2325fc', class: "d-flex align-items-start gap-2" }, h("label", { key: 'fe3fa6fbc9ddc286ddc60041d90b412b548dcdbc', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '3c93c47f498e8f15f7fddd8f284e0b577bf8f35c', helpText: this.helpText })), h("input", { key: 'c5c1f8d85996ea3c45d8312fdc27e22e02ab2e8d', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
|
|
88
88
|
this.isFocused = false;
|
|
89
89
|
this.formControlBlur.emit();
|
|
90
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
90
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: 'dac687b433cdd1f480ae8f67cbdd762eda83492a', errorText: this.errorText, name: this.name }))));
|
|
91
91
|
}
|
|
92
92
|
static get watchers() { return {
|
|
93
93
|
"defaultValue": ["handleDefaultValueChange"]
|