@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,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _package = require('./package-
|
|
4
|
-
var Api = require('./Api-
|
|
3
|
+
var _package = require('./package-B414Jbra.js');
|
|
4
|
+
var Api = require('./Api-DqXlEWR1.js');
|
|
5
5
|
require('./Plaid-BcOAKDaU.js');
|
|
6
6
|
require('./Pagination-Dediz133.js');
|
|
7
7
|
require('./Business-CNaz-VLa.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
4
4
|
var utils = require('./utils-DB4XHlAU.js');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-B414Jbra.js');
|
|
6
6
|
|
|
7
7
|
const Api = () => {
|
|
8
8
|
async function getAuthorizationHeader(authToken) {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
5
5
|
var paymentProvisioningActions = require('./payment-provisioning-actions-SVp7B8pR.js');
|
|
6
|
-
var business_service = require('./business.service-
|
|
7
|
-
var businessIdentitySchema = require('./business-identity-schema-
|
|
6
|
+
var business_service = require('./business.service-Ca-olopC.js');
|
|
7
|
+
var businessIdentitySchema = require('./business-identity-schema-DuOIMFjG.js');
|
|
8
8
|
var index_esm = require('./index.esm-BNETBIV_.js');
|
|
9
9
|
var Business = require('./Business-CNaz-VLa.js');
|
|
10
10
|
var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
|
|
@@ -12,24 +12,24 @@ var parts = require('./parts-BXshb_S-.js');
|
|
|
12
12
|
var paymentProvisioningLoading = require('./payment-provisioning-loading-tM9WWmxv.js');
|
|
13
13
|
var businessFormOptions = require('./business-form-options-BHBs_yiK.js');
|
|
14
14
|
var eventTypes = require('./event-types-DNOUef41.js');
|
|
15
|
-
var utils = require('./utils-
|
|
15
|
+
var utils = require('./utils-Ct_X5q0U.js');
|
|
16
16
|
require('./config-state-C1YMiFpR.js');
|
|
17
17
|
require('./dinero-BwNN_k7x.js');
|
|
18
18
|
require('./Pagination-Dediz133.js');
|
|
19
|
-
var schemaValidations = require('./schema-validations-
|
|
19
|
+
var schemaValidations = require('./schema-validations-BDFa_oIq.js');
|
|
20
20
|
var button = require('./button-CR9Rl1-o.js');
|
|
21
21
|
require('./event-types-YOY5TKUN.js');
|
|
22
|
-
var countryConfig = require('./country-config-
|
|
22
|
+
var countryConfig = require('./country-config-CFC3KuVD.js');
|
|
23
23
|
var utils$1 = require('./utils-DB4XHlAU.js');
|
|
24
24
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
25
25
|
var inputHandlers = require('./input-handlers-v9h_2Ysi.js');
|
|
26
|
-
var Api = require('./Api-
|
|
26
|
+
var Api = require('./Api-DqXlEWR1.js');
|
|
27
27
|
var styledHost = require('./styled-host-CW1WUnUq.js');
|
|
28
|
-
var plaid_service = require('./plaid.service-
|
|
28
|
+
var plaid_service = require('./plaid.service-d9LAwbnX.js');
|
|
29
29
|
require('./utils-BScgWJC5.js');
|
|
30
30
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
31
31
|
require('./index-DDrfAj-j.js');
|
|
32
|
-
require('./package-
|
|
32
|
+
require('./package-B414Jbra.js');
|
|
33
33
|
|
|
34
34
|
// Emits a MISSING_PROPS error naming each falsy prop. Returns true when all props are present.
|
|
35
35
|
// `props` keys are the public attribute names, e.g. { 'auth-token': this.authToken }.
|
|
@@ -5,7 +5,7 @@ var businessFormOptions = require('./business-form-options-BHBs_yiK.js');
|
|
|
5
5
|
var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
|
|
6
6
|
var parts = require('./parts-BXshb_S-.js');
|
|
7
7
|
var Business = require('./Business-CNaz-VLa.js');
|
|
8
|
-
var countryConfig = require('./country-config-
|
|
8
|
+
var countryConfig = require('./country-config-CFC3KuVD.js');
|
|
9
9
|
|
|
10
10
|
const AdditionalQuestions = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -100,7 +100,7 @@ const AdditionalStatement = class {
|
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
102
|
var _a, _b;
|
|
103
|
-
return (index.h("div", { key: '
|
|
103
|
+
return (index.h("div", { key: '8dff14b5f29b28a18901b1eff60b3855d9094013' }, index.h("div", { key: '405d549adeb5150fd7ec834b699f83588892390e', class: "row gy-3" }, index.h("div", { key: 'a13e743d61fe9329e74b3a09712921cec6e253c2', class: "col-12" }, index.h("h2", { key: 'fbe30e865b8dbece987480e3ac804c3eabbf0746', class: "h5", part: parts.heading5 }, "Additional Evidence")), index.h("div", { key: '921aa04960a0c30d9733bc0db71dee4fcd78af55', class: "col-12" }, index.h("form-control-textarea", { key: 'cc4a0136fa728cce0390e4d9dd456a7ad9095244', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), index.h("div", { key: '0b35f4914c18432ca326a01c002710690c15d685', class: "col-12" }, index.h("form-control-file-v2", { key: '8c6a32df62ea4c217fad64fa1283033a85885076', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -134,7 +134,7 @@ const CancellationPolicy = class {
|
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
136
|
var _a, _b, _c;
|
|
137
|
-
return (index.h("div", { key: '
|
|
137
|
+
return (index.h("div", { key: 'bd649d7bc48208dec588f5677f2c87897bc43b8b' }, index.h("div", { key: '63263cfe2db3bb2d6f53ddf3c01124a6f70e4994', class: "row gy-3" }, index.h("div", { key: '457bc4393385a88d9d815bd590425c65ebf63d7b', class: "col-12" }, index.h("h2", { key: '66eadc2605b0541fca47cb426c8cf5f373b003f8', class: "h5", part: parts.heading5 }, "Cancellation Policy")), index.h("div", { key: 'dcdf62ecc017a197714207372104a355a42561f2', class: "col-12" }, index.h("form-control-textarea", { key: '06e2d122d0cb677e86fdf697d48d11db72c3a360', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), index.h("div", { key: 'e4b7de1e1820f7c59c7465784868ce4823244285', class: "col-12" }, index.h("form-control-textarea", { key: 'f57c5bd832f5bdf946341efe3ec0c594ebc27108', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), index.h("div", { key: '61e019cea906e3cb93952cf75fb01a6b9fc9cc66', class: "col-12" }, index.h("form-control-file-v2", { key: '62e0f7432ae9445aa9b19b467323f9ed7d9161f6', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
|
|
@@ -169,7 +169,7 @@ const CustomerDetails = class {
|
|
|
169
169
|
}
|
|
170
170
|
render() {
|
|
171
171
|
var _a, _b, _c, _d, _e;
|
|
172
|
-
return (index.h("div", { key: '
|
|
172
|
+
return (index.h("div", { key: '66ed4497457aab5cd214c356b23067eb5ab977b9' }, index.h("div", { key: '00b2241580f26aed52fb8c0dca06ffb8e07c2303', class: "row gy-3" }, index.h("div", { key: '23fd971d66b3e753df7ec5e20b8155865307261f', class: "col-12" }, index.h("h2", { key: 'df3880ae4959e4fe6a5fa2e67287e4bb40b6fc75', class: "h5", part: parts.heading5 }, "Customer Details")), index.h("div", { key: '1bd1010ba8c9bbdb4390e3d953a8cfc798a6745c', class: "col-12" }, index.h("form-control-text", { key: '170576aa6fbda10dcb3c3928cd8894df1f201223', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), index.h("div", { key: '39a99685a01018afa466fa214fd9f217b5682200', class: "col-12" }, index.h("form-control-text", { key: '8c99018cf0fe0c900512874be0261fb32578c803', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), index.h("div", { key: '6db37be2d5b9bef95c7e5e00a879847cbc89a9db', class: "col-12" }, index.h("form-control-textarea", { key: '48de189acf3dad170e1727b950cee28278eeabc9', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), index.h("div", { key: '9a85ca65d2a80c54617034af5350e7301dd475f5', class: "col-12" }, index.h("form-control-file-v2", { key: '0f6f2859e79998071e079bbb69fdb1b12e5b8c5d', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), index.h("div", { key: '8067bc3d834825f309fc3ed994b683233e2e9e90', class: "col-12" }, index.h("form-control-file-v2", { key: '97105708f4f6e668a6e62cb2f516969c79bedef7', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
|
|
@@ -203,7 +203,7 @@ const DuplicateCharge = class {
|
|
|
203
203
|
}
|
|
204
204
|
render() {
|
|
205
205
|
var _a, _b, _c;
|
|
206
|
-
return (index.h("div", { key: '
|
|
206
|
+
return (index.h("div", { key: '40c441cca0667d42a17b2d030cd11499b5fd0971' }, index.h("div", { key: '9187708d76c4a631c8741e1ec60684fdb3b7c65f', class: "row gy-3" }, index.h("div", { key: '9a388c46052814718253a4333da1a3e010316e14', class: "col-12" }, index.h("h2", { key: '677c93c72112ac96e41e43080fba1d2750bc71de', class: "h5", part: parts.heading5 }, "Duplicate Charge")), index.h("div", { key: '475e5bd708aed12d866560dd12ddde92b8643f82', class: "col-12" }, index.h("form-control-text", { key: 'a47b1642e9ca1475d6165403d5589f874908b1c0', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), index.h("div", { key: '75890d7ba8e0e0f4117477f0c52f3af0a867f3b3', class: "col-12" }, index.h("form-control-textarea", { key: 'c86ae32a39e1ed3be449eb91efa8039ec78b18eb', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), index.h("div", { key: '81d2eb27f4350e57cc3e89170839816166339731', class: "col-12" }, index.h("form-control-file-v2", { key: 'a7456a1a8f3363d05361667d5d9a8e99c6581bf1', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
|
|
@@ -236,7 +236,7 @@ const ElectronicEvidence = class {
|
|
|
236
236
|
}
|
|
237
237
|
render() {
|
|
238
238
|
var _a, _b;
|
|
239
|
-
return (index.h("div", { key: '
|
|
239
|
+
return (index.h("div", { key: '592472282564a406e318b5639e1f8e3f1aeb55bd' }, index.h("div", { key: '0e49a34f48905ede20c17d4e2a8e529a3aaad2b9', class: "row gy-3" }, index.h("div", { key: '9f15e709a8a31b6c2cf3ca43d543090a8dd8ca5d', class: "col-12" }, index.h("h2", { key: '3223ed0c95dd5d08b5d8a481dfdc57d65ee3ea2f', class: "h5", part: parts.heading5 }, "Electronic Evidence")), index.h("div", { key: 'f82434ae90705238088c1e01625c1d674337f823', class: "col-12" }, index.h("form-control-text", { key: '81586970861191e628ba6d3d55d792081f868193', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), index.h("div", { key: '1ec47d1e437926e010e19f0352c6c237cb61aeaa', class: "col-12" }, index.h("form-control-file-v2", { key: '8ee1599fc2142dd269ccddd08ef60cb1a337122a', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
|
|
@@ -270,7 +270,7 @@ const ProductOrService = class {
|
|
|
270
270
|
}
|
|
271
271
|
render() {
|
|
272
272
|
var _a, _b, _c;
|
|
273
|
-
return (index.h("div", { key: '
|
|
273
|
+
return (index.h("div", { key: '466646e97a89d70914e592693918d5ea524504a8' }, index.h("div", { key: '78f02a847c7474733400f2d4e8a6712c9689402e', class: "row gy-3" }, index.h("div", { key: '0367c4de7453b26becfc2edfe7f5899e6b30f554', class: "col-12" }, index.h("h2", { key: '10490c7e30a1ec7c23cd47f80a905e21bb874b38', class: "h5", part: parts.heading5 }, "Product & Service Details")), index.h("div", { key: 'a18c64c22a5efe19c5b6603d0497a17a54ac6fa8', class: "col-12" }, index.h("form-control-text", { key: '7d35738871259b0b0bf83cbb6014062d09299a21', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), index.h("div", { key: '24a337727ad90599b1368c2c3fff6cea4c40d172', class: "col-12" }, index.h("form-control-date", { key: '5222da0eed927c2bc61baba87d8c004bfbf674e0', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), index.h("div", { key: '1f422eea9d59d4d01d333e25e2003ecb3954656d', class: "col-12" }, index.h("form-control-file-v2", { key: '8df9a14fc7311e1c47ca06c9a3a32ac09a291d4b', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
|
|
@@ -304,7 +304,7 @@ const RefundPolicy = class {
|
|
|
304
304
|
}
|
|
305
305
|
render() {
|
|
306
306
|
var _a, _b, _c, _d;
|
|
307
|
-
return (index.h("div", { key: '
|
|
307
|
+
return (index.h("div", { key: 'ec311e40104fb629ea148d4bd4e3b75b7384c271' }, index.h("div", { key: 'b520aca75b00bf6f698c551cd51efcd8ae8cddca', class: "row gy-3" }, index.h("div", { key: '98c7a3ae28e9b9d8de6e9f860b26224ff83e5752', class: "col-12" }, index.h("h2", { key: '334c7e259e7e8ba1202252e6135e1ff960ea34d4', class: "h5", part: parts.heading5 }, "Refund Policy and Receipt")), index.h("div", { key: 'bb6783c720ca99ae968580610a3af79a86bf6dc3', class: "col-12" }, index.h("form-control-textarea", { key: '63fbdface8c0339b9989ddb2f9f0af427845118c', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), index.h("div", { key: '0a138ff7a02788003437e0d7f07dbe59e4cb05a7', class: "col-12" }, index.h("form-control-textarea", { key: '9f2518ad7955096c93c74fd856514b68ef7d192a', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), index.h("div", { key: '18922e3843fa6b445b3aaa384b341aae5b2b2443', class: "col-12" }, index.h("form-control-file-v2", { key: '0f34e5dd3901eb74bfd20d93eb9fe6087d808b5c', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), index.h("div", { key: '42a5952ae76b7468bde8d2c3edd8bcb0bfde5cd6', class: "col-12" }, index.h("form-control-file-v2", { key: 'ad4297e944e1ac01f0f290595d70d12a9a05a93a', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
|
|
@@ -341,7 +341,7 @@ const ShippingDetails = class {
|
|
|
341
341
|
}
|
|
342
342
|
render() {
|
|
343
343
|
var _a, _b, _c, _d, _e;
|
|
344
|
-
return (index.h("div", { key: '
|
|
344
|
+
return (index.h("div", { key: '6673b30e9af36cb2e560d0653776a42ab1777c22' }, index.h("div", { key: 'f687e69208f470a40699f870c4d09b04a0487faa', class: "row gy-3" }, index.h("div", { key: 'ffb1b65e29b6b912cefe862a2139e57f3d81087b', class: "col-12" }, index.h("h2", { key: '2cea703b6f228aa127bbdb6f8c97f3f79e05d351', class: "h5", part: parts.heading5 }, "Shipping Details")), index.h("div", { key: 'fe2ae3034571b5ed2a8e5678ae5c32d84f750835', class: "col-12" }, index.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 })), index.h("div", { key: '807d7e0860265cb629083bb026e812e4d2ac06ff', class: "col-12" }, index.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 })), index.h("div", { key: '25e85572762af0d9964849d276dd18c5b8905d6e', class: "col-12" }, index.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 })), index.h("div", { key: '376e527d339217b897f02f0de111ea9377539769', class: "col-12" }, index.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 })), index.h("div", { key: '74699370d18065f453e68449749d5481772c4c08', class: "col-12" }, index.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 })))));
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
347
|
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var index_esm = require('./index.esm-BNETBIV_.js');
|
|
5
|
-
var schemaValidations = require('./schema-validations-
|
|
5
|
+
var schemaValidations = require('./schema-validations-BDFa_oIq.js');
|
|
6
6
|
var parts = require('./parts-BXshb_S-.js');
|
|
7
|
-
var checkout_store = require('./checkout.store-
|
|
7
|
+
var checkout_store = require('./checkout.store-B5lTwvUV.js');
|
|
8
8
|
var index$1 = require('./index-DDa1jd08.js');
|
|
9
9
|
var header3 = require('./header-3-DCYJhPro.js');
|
|
10
10
|
require('./event-types-YOY5TKUN.js');
|
|
11
|
+
var countryConfig = require('./country-config-CFC3KuVD.js');
|
|
11
12
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
12
|
-
require('./country-config-DQQujh5h.js');
|
|
13
13
|
require('./Business-CNaz-VLa.js');
|
|
14
14
|
require('./business-form-options-BHBs_yiK.js');
|
|
15
15
|
require('./index-DDrfAj-j.js');
|
|
@@ -139,7 +139,10 @@ const BillingFormFull = class {
|
|
|
139
139
|
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
140
140
|
}
|
|
141
141
|
async getValues() {
|
|
142
|
-
|
|
142
|
+
const values = this.formController.values.getValue();
|
|
143
|
+
// checkoutStore values skip the input transform, so normalize on the way out.
|
|
144
|
+
return (values === null || values === void 0 ? void 0 : values.address_postal_code)
|
|
145
|
+
? Object.assign(Object.assign({}, values), { address_postal_code: countryConfig.normalizePostalCode(values.address_postal_code) }) : values;
|
|
143
146
|
}
|
|
144
147
|
async validate() {
|
|
145
148
|
const isValid = await this.formController.validate();
|
|
@@ -151,7 +154,7 @@ const BillingFormFull = class {
|
|
|
151
154
|
return null;
|
|
152
155
|
}
|
|
153
156
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
154
|
-
return (index.h("div", { part: parts.billingForm, class: "mt-4" }, index.h(header3.Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), index.h("form", null, index.h("fieldset", null, this.legend && (index.h("legend", null, this.legend)), index.h("div", { class: "row gy-3" }, index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-select", { name: 'address_state', label: 'State / Province', options: schemaValidations.checkoutBillingStateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.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:
|
|
157
|
+
return (index.h("div", { part: parts.billingForm, class: "mt-4" }, index.h(header3.Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), index.h("form", null, index.h("fieldset", null, this.legend && (index.h("legend", null, this.legend)), index.h("div", { class: "row gy-3" }, index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-select", { name: 'address_state', label: 'State / Province', options: schemaValidations.checkoutBillingStateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.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: countryConfig.normalizePostalCode, maxLength: 10 })))))));
|
|
155
158
|
}
|
|
156
159
|
};
|
|
157
160
|
|
|
@@ -184,7 +187,10 @@ const CardBillingFormSimple = class {
|
|
|
184
187
|
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
185
188
|
}
|
|
186
189
|
async getValues() {
|
|
187
|
-
|
|
190
|
+
const values = this.formController.values.getValue();
|
|
191
|
+
// checkoutStore values skip the input transform, so normalize on the way out.
|
|
192
|
+
return (values === null || values === void 0 ? void 0 : values.address_postal_code)
|
|
193
|
+
? Object.assign(Object.assign({}, values), { address_postal_code: countryConfig.normalizePostalCode(values.address_postal_code) }) : values;
|
|
188
194
|
}
|
|
189
195
|
async validate() {
|
|
190
196
|
const isValid = await this.formController.validate();
|
|
@@ -193,7 +199,7 @@ const CardBillingFormSimple = class {
|
|
|
193
199
|
}
|
|
194
200
|
render() {
|
|
195
201
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
196
|
-
return (index.h("div", { key: '
|
|
202
|
+
return (index.h("div", { key: 'afc6ba1fc118b81d3fd2963a86db38236c0871ac', part: parts.billingForm }, index.h("form", { key: 'db49c3bdb2a243615704e42d9a2cedee6fbcc469' }, index.h("fieldset", { key: '9aa92c3a19f81f67e9be1a2a64b72975b96204d9' }, this.legend && (index.h("legend", { key: 'abdc6c1c28dc142ec7635871fa0b96f14de35c4e' }, this.legend)), index.h("div", { key: '19f69483b9fcd39d61cd8bdc20b8fa6ee80a5477', class: "row gy-3" }, index.h("div", { key: 'fff29f5a5920276125839cebeec10f8417b67805', class: "col-12" }, index.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: countryConfig.normalizePostalCode, maxLength: 10 })))))));
|
|
197
203
|
}
|
|
198
204
|
};
|
|
199
205
|
|
|
@@ -4,8 +4,8 @@ var index = require('./index-p7cvUYAE.js');
|
|
|
4
4
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
5
5
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
6
6
|
var utils = require('./utils-DB4XHlAU.js');
|
|
7
|
-
var
|
|
8
|
-
var checkout_store = require('./checkout.store-
|
|
7
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-D8ZajVUT.js');
|
|
8
|
+
var checkout_store = require('./checkout.store-B5lTwvUV.js');
|
|
9
9
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
10
10
|
require('./Pagination-Dediz133.js');
|
|
11
11
|
require('./Business-CNaz-VLa.js');
|
|
@@ -14,7 +14,7 @@ require('./event-types-YOY5TKUN.js');
|
|
|
14
14
|
require('./parts-BXshb_S-.js');
|
|
15
15
|
require('./index-DDrfAj-j.js');
|
|
16
16
|
require('./dinero-BwNN_k7x.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-B414Jbra.js');
|
|
18
18
|
require('./index-DDa1jd08.js');
|
|
19
19
|
|
|
20
20
|
const BankAccountFormSkeleton = () => {
|
|
@@ -26,9 +26,13 @@ const BankAccountForm = class {
|
|
|
26
26
|
index.registerInstance(this, hostRef);
|
|
27
27
|
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
28
28
|
this.iframeState = 'loading';
|
|
29
|
+
this.showAccountNumberConfirmation = false;
|
|
29
30
|
this.hasLoggedAchDisabledWarning = false;
|
|
31
|
+
this.loadedInputIds = new Set();
|
|
32
|
+
this.watchedInputIds = '';
|
|
30
33
|
this.reloadIframes = () => {
|
|
31
34
|
this.iframeState = 'loading';
|
|
35
|
+
this.loadedInputIds.clear();
|
|
32
36
|
this.iframeElements.forEach((element) => element.reload());
|
|
33
37
|
this.watchIframesLoad();
|
|
34
38
|
};
|
|
@@ -37,12 +41,19 @@ const BankAccountForm = class {
|
|
|
37
41
|
await configState.waitForConfig();
|
|
38
42
|
this.iframeOrigin = configState.configState.iframeOrigin;
|
|
39
43
|
this.tabId = utils.generateTabId();
|
|
40
|
-
|
|
44
|
+
detectDuplicateVersion.detectDuplicateVersion();
|
|
41
45
|
}
|
|
42
46
|
componentDidRender() {
|
|
43
|
-
if (this.
|
|
47
|
+
if (this.iframeElements.length < this.expectedIframeCount) {
|
|
44
48
|
return;
|
|
45
49
|
}
|
|
50
|
+
// Re-watch when the rendered field set changes -- showAccountNumberConfirmation
|
|
51
|
+
// can flip on after the first watch already finished.
|
|
52
|
+
const inputIds = this.iframeElements.map((element) => element.inputId).join(',');
|
|
53
|
+
if (inputIds === this.watchedInputIds) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
this.watchedInputIds = inputIds;
|
|
46
57
|
this.watchIframesLoad();
|
|
47
58
|
}
|
|
48
59
|
disconnectedCallback() {
|
|
@@ -54,13 +65,24 @@ const BankAccountForm = class {
|
|
|
54
65
|
}
|
|
55
66
|
async validate() {
|
|
56
67
|
if (this.isAchDisabledForCheckout()) {
|
|
57
|
-
return false;
|
|
68
|
+
return { isValid: false };
|
|
69
|
+
}
|
|
70
|
+
const elements = this.iframeElements;
|
|
71
|
+
// A field that has not rendered yet cannot be validated -- fail closed
|
|
72
|
+
// rather than report a pass for a form that is not all there.
|
|
73
|
+
if (elements.length < this.expectedIframeCount) {
|
|
74
|
+
return { isValid: false };
|
|
58
75
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
76
|
+
// Sequential on purpose: the parent correlates iframe replies by eventType
|
|
77
|
+
// alone, with no request id, so concurrent validates would cross replies.
|
|
78
|
+
const results = [];
|
|
79
|
+
for (const element of elements) {
|
|
80
|
+
results.push(await element.validate());
|
|
81
|
+
}
|
|
82
|
+
return { isValid: results.every((result) => (result === null || result === void 0 ? void 0 : result.isValid) === true) };
|
|
62
83
|
}
|
|
63
84
|
async tokenize({ clientId, paymentMethodMetadata, account }) {
|
|
85
|
+
var _a, _b;
|
|
64
86
|
if (this.isAchDisabledForCheckout()) {
|
|
65
87
|
return {
|
|
66
88
|
error: {
|
|
@@ -68,25 +90,54 @@ const BankAccountForm = class {
|
|
|
68
90
|
},
|
|
69
91
|
};
|
|
70
92
|
}
|
|
93
|
+
// tokenize() is a public @Method: an integrator with their own submit button
|
|
94
|
+
// can reach it without validate(), so the mismatch check has to live here too.
|
|
95
|
+
if (this.showAccountNumberConfirmation) {
|
|
96
|
+
const confirmation = await ((_a = this.accountNumberConfirmationIframeElement) === null || _a === void 0 ? void 0 : _a.validate());
|
|
97
|
+
if ((confirmation === null || confirmation === void 0 ? void 0 : confirmation.isValid) !== true) {
|
|
98
|
+
return {
|
|
99
|
+
error: {
|
|
100
|
+
code: 'validation_error',
|
|
101
|
+
message: ((_b = confirmation === null || confirmation === void 0 ? void 0 : confirmation.error) === null || _b === void 0 ? void 0 : _b.message) ||
|
|
102
|
+
'The entered value does not match the account number',
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
71
107
|
const result = await this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
72
108
|
return result;
|
|
73
109
|
}
|
|
74
110
|
get isReady() {
|
|
75
111
|
return this.iframeState === 'ready';
|
|
76
112
|
}
|
|
113
|
+
get expectedIframeCount() {
|
|
114
|
+
return this.showAccountNumberConfirmation ? 3 : 2;
|
|
115
|
+
}
|
|
77
116
|
get iframeElements() {
|
|
78
117
|
return [
|
|
79
118
|
this.accountNumberIframeElement,
|
|
119
|
+
...(this.showAccountNumberConfirmation
|
|
120
|
+
? [this.accountNumberConfirmationIframeElement]
|
|
121
|
+
: []),
|
|
80
122
|
this.routingNumberIframeElement,
|
|
81
|
-
];
|
|
123
|
+
].filter(Boolean);
|
|
82
124
|
}
|
|
83
125
|
watchIframesLoad() {
|
|
84
126
|
var _a;
|
|
85
127
|
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
86
128
|
const { signal } = (this.loadAbortController = new AbortController());
|
|
87
|
-
const pending = new Set(this.iframeElements
|
|
129
|
+
const pending = new Set(this.iframeElements
|
|
130
|
+
.filter((element) => !this.loadedInputIds.has(element.inputId))
|
|
131
|
+
.map((element) => element.inputId));
|
|
88
132
|
const loaded = Promise.all(this.iframeElements.map((element) => (new Promise((resolve) => {
|
|
133
|
+
// iframeLoaded is a once: true listener, so an element that already
|
|
134
|
+
// loaded will never fire again on a re-watch.
|
|
135
|
+
if (this.loadedInputIds.has(element.inputId)) {
|
|
136
|
+
resolve();
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
89
139
|
element.addEventListener('iframeLoaded', () => {
|
|
140
|
+
this.loadedInputIds.add(element.inputId);
|
|
90
141
|
pending.delete(element.inputId);
|
|
91
142
|
resolve();
|
|
92
143
|
}, { once: true, signal });
|
|
@@ -110,6 +161,9 @@ const BankAccountForm = class {
|
|
|
110
161
|
return;
|
|
111
162
|
this.iframeState = 'error';
|
|
112
163
|
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
164
|
+
if (pending.has('accountNumberConfirmation')) {
|
|
165
|
+
console.error('[bank-account-form] "Confirm Account Number" field failed to load.');
|
|
166
|
+
}
|
|
113
167
|
this.errorEvent.emit({
|
|
114
168
|
errorCode: Plaid.ComponentErrorCodes.IFRAME_LOAD_ERROR,
|
|
115
169
|
message: Plaid.ComponentErrorMessages.IFRAME_LOAD_ERROR,
|
|
@@ -134,7 +188,7 @@ const BankAccountForm = class {
|
|
|
134
188
|
return (index.h("div", null, this.iframeState === 'loading' && index.h(BankAccountFormSkeleton, null), this.iframeState === 'error' && this.renderIframeError(), index.h("hidden-input", null), index.h("div", { class: "container-fluid p-0", style: {
|
|
135
189
|
opacity: this.isReady ? '1' : '0',
|
|
136
190
|
height: this.isReady ? 'auto' : '0',
|
|
137
|
-
} }, index.h("div", { class: "row mb-3" }, index.h("iframe-input", { inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), index.h("div", { class: "row" }, index.h("iframe-input", { inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
191
|
+
} }, index.h("div", { class: "row mb-3" }, index.h("iframe-input", { inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), this.showAccountNumberConfirmation && (index.h("div", { class: "row mb-3" }, index.h("iframe-input", { inputId: "accountNumberConfirmation", ref: (el) => (this.accountNumberConfirmationIframeElement = el), label: "Confirm Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumberConfirmation?tabId=${this.tabId}` }))), index.h("div", { class: "row" }, index.h("iframe-input", { inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
|
|
138
192
|
}
|
|
139
193
|
};
|
|
140
194
|
|
package/dist/cjs/{business-identity-schema-XiCLzxWM.js → business-identity-schema-DuOIMFjG.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index_esm = require('./index.esm-BNETBIV_.js');
|
|
4
|
-
var schemaValidations = require('./schema-validations-
|
|
4
|
+
var schemaValidations = require('./schema-validations-BDFa_oIq.js');
|
|
5
5
|
var Business = require('./Business-CNaz-VLa.js');
|
|
6
|
-
var countryConfig = require('./country-config-
|
|
6
|
+
var countryConfig = require('./country-config-CFC3KuVD.js');
|
|
7
7
|
|
|
8
8
|
// Base schema (no country-specific rules for classification/tax id)
|
|
9
9
|
const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
|
|
@@ -4,7 +4,7 @@ var index = require('./index-p7cvUYAE.js');
|
|
|
4
4
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
5
5
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
6
6
|
var utils = require('./utils-DB4XHlAU.js');
|
|
7
|
-
var
|
|
7
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-D8ZajVUT.js');
|
|
8
8
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
9
9
|
require('./Pagination-Dediz133.js');
|
|
10
10
|
require('./Business-CNaz-VLa.js');
|
|
@@ -13,7 +13,7 @@ require('./event-types-YOY5TKUN.js');
|
|
|
13
13
|
require('./parts-BXshb_S-.js');
|
|
14
14
|
require('./index-DDrfAj-j.js');
|
|
15
15
|
require('./dinero-BwNN_k7x.js');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-B414Jbra.js');
|
|
17
17
|
|
|
18
18
|
const CardFormSkeleton = () => {
|
|
19
19
|
return (index.h("div", { class: "container-fluid p-0" }, index.h("div", { class: "mb-3" }, index.h(skeleton.Skeleton, { height: "18px", width: "100px" }), index.h(skeleton.Skeleton, { height: "36px" })), index.h("div", { class: "row" }, index.h("div", { class: "col-4 align-content-end" }, index.h(skeleton.Skeleton, { height: "18px", width: "80px" }), index.h(skeleton.Skeleton, { height: "36px" })), index.h("div", { class: "col-4 align-content-end" }, index.h(skeleton.Skeleton, { height: "36px" })), index.h("div", { class: "col-4 align-content-end" }, index.h(skeleton.Skeleton, { height: "18px", width: "30px" }), index.h(skeleton.Skeleton, { height: "36px" })))));
|
|
@@ -24,6 +24,8 @@ const CardForm = class {
|
|
|
24
24
|
index.registerInstance(this, hostRef);
|
|
25
25
|
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
26
26
|
this.iframeState = 'loading';
|
|
27
|
+
/** Mask the card number to its last four digits when the field blurs. */
|
|
28
|
+
this.maskCardNumber = false;
|
|
27
29
|
this.reloadIframes = () => {
|
|
28
30
|
this.iframeState = 'loading';
|
|
29
31
|
this.iframeElements.forEach((element) => element.reload());
|
|
@@ -34,7 +36,7 @@ const CardForm = class {
|
|
|
34
36
|
await configState.waitForConfig();
|
|
35
37
|
this.iframeOrigin = configState.configState.iframeOrigin;
|
|
36
38
|
this.tabId = utils.generateTabId();
|
|
37
|
-
|
|
39
|
+
detectDuplicateVersion.detectDuplicateVersion();
|
|
38
40
|
}
|
|
39
41
|
componentDidLoad() {
|
|
40
42
|
this.watchIframesLoad();
|
|
@@ -44,11 +46,13 @@ const CardForm = class {
|
|
|
44
46
|
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
45
47
|
}
|
|
46
48
|
async validate() {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
|
|
49
|
+
// Sequential on purpose: the parent correlates iframe replies by eventType
|
|
50
|
+
// alone, with no request id, so concurrent validates would cross replies.
|
|
51
|
+
const results = [];
|
|
52
|
+
for (const element of this.iframeElements) {
|
|
53
|
+
results.push(await element.validate());
|
|
54
|
+
}
|
|
55
|
+
return { isValid: results.every((result) => (result === null || result === void 0 ? void 0 : result.isValid) === true) };
|
|
52
56
|
}
|
|
53
57
|
async tokenize({ clientId, paymentMethodMetadata, account, }) {
|
|
54
58
|
const result = await this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
@@ -109,10 +113,10 @@ const CardForm = class {
|
|
|
109
113
|
return (index.h("div", null, index.h("form-alert", { text: Plaid.ComponentErrorMessages.IFRAME_LOAD_ERROR, hideAlert: false }), index.h(button.Button, { variant: "link", clickHandler: this.reloadIframes, "aria-label": "Reload payment form", type: "button" }, "Try again")));
|
|
110
114
|
}
|
|
111
115
|
render() {
|
|
112
|
-
return (index.h("div", { key: '
|
|
116
|
+
return (index.h("div", { key: '6f1adaa489228ab15ee8803f5e8d94b4f38df172' }, this.iframeState === 'loading' && index.h(CardFormSkeleton, { key: '01f38bf843e382d8fb34e59011a603e3a0955847' }), this.iframeState === 'error' && this.renderIframeError(), index.h("hidden-input", { key: 'd4fe8201e7df2ffd00cf76314da60dfa375d0c92' }), index.h("div", { key: 'be021b08ea0cb9bbd4e4dbb9258fb1e4cf0715b7', class: "container-fluid p-0", style: {
|
|
113
117
|
opacity: this.isReady ? '1' : '0',
|
|
114
118
|
height: this.isReady ? 'auto' : '0',
|
|
115
|
-
} }, index.h("div", { key: '
|
|
119
|
+
} }, index.h("div", { key: '5771c79e70cc49c15d170d0f3f820e4d04ab203a', class: "mb-3" }, index.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}` })), index.h("div", { key: '1d5923d02dbd23551cab1f8bb5d4ef3b5534f152', class: "row" }, index.h("div", { key: '1db376daa12621f2f17113a96ab693bfaae2fc38', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '5cb8c4796ea7f609fecd0919709f70c52ae9c55c', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), index.h("div", { key: '0cc0c04b35174c56097f687d2f843f874ed7fee0', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '79cb809ad28c53c276903ddc5ece50b07fabfd56', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), index.h("div", { key: 'e04d26f47245b1f4977e57e456b12f630b8c63cd', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '6e5e2dabbf28725e7e2499455bff1b34f6aefcf9', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
116
120
|
}
|
|
117
121
|
};
|
|
118
122
|
|
|
@@ -22,6 +22,26 @@ const ProvinceOptions = [
|
|
|
22
22
|
{ label: 'Yukon', value: 'YT' },
|
|
23
23
|
];
|
|
24
24
|
|
|
25
|
+
// Canada Post addressing guidelines: a postal code is six characters in the form
|
|
26
|
+
// "ANA NAN", with a single space between the Forward Sortation Area and the Local
|
|
27
|
+
// Delivery Unit. The first character of the FSA identifies one of 18 geographic
|
|
28
|
+
// areas, so D, F, I, O, Q, U, W and Z never appear there.
|
|
29
|
+
// https://www.canadapost-postescanada.ca/cpc/en/support/articles/addressing-guidelines/postal-codes.page
|
|
30
|
+
const US_ZIP_REGEX = /^\d{5}(-\d{4})?$/;
|
|
31
|
+
const CA_OR_US_POSTAL_REGEX = /^([ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d|\d{5}(-\d{4})?)$/i;
|
|
32
|
+
// Opening alpha-numeric-alpha is what distinguishes a Canadian code from a US ZIP.
|
|
33
|
+
const CA_SHAPE = /^[A-Z]\d[A-Z]/;
|
|
34
|
+
const normalizePostalCode = (value) => {
|
|
35
|
+
if (!value)
|
|
36
|
+
return value;
|
|
37
|
+
const upper = value.toUpperCase();
|
|
38
|
+
// A US ZIP (or a typo) keeps its characters — only the case is normalized.
|
|
39
|
+
if (!CA_SHAPE.test(upper))
|
|
40
|
+
return upper;
|
|
41
|
+
const compact = upper.replace(/[\s-]/g, '');
|
|
42
|
+
return compact.length > 3 ? `${compact.slice(0, 3)} ${compact.slice(3)}` : compact;
|
|
43
|
+
};
|
|
44
|
+
|
|
25
45
|
const countryLabels = {
|
|
26
46
|
USA: {
|
|
27
47
|
stateLabel: 'State',
|
|
@@ -59,18 +79,20 @@ const countryOptions = {
|
|
|
59
79
|
};
|
|
60
80
|
const countryValidation = {
|
|
61
81
|
USA: {
|
|
62
|
-
postalRegex:
|
|
82
|
+
postalRegex: US_ZIP_REGEX,
|
|
63
83
|
identityDigits: 9,
|
|
64
84
|
taxIdDigits: 9,
|
|
65
85
|
},
|
|
66
86
|
CAN: {
|
|
67
|
-
postalRegex:
|
|
87
|
+
postalRegex: CA_OR_US_POSTAL_REGEX,
|
|
68
88
|
identityDigits: 9,
|
|
69
89
|
taxIdDigits: 9,
|
|
70
90
|
},
|
|
71
91
|
};
|
|
72
92
|
|
|
93
|
+
exports.CA_OR_US_POSTAL_REGEX = CA_OR_US_POSTAL_REGEX;
|
|
73
94
|
exports.ProvinceOptions = ProvinceOptions;
|
|
74
95
|
exports.countryLabels = countryLabels;
|
|
75
96
|
exports.countryOptions = countryOptions;
|
|
76
97
|
exports.countryValidation = countryValidation;
|
|
98
|
+
exports.normalizePostalCode = normalizePostalCode;
|