@justifi/webcomponents 6.15.0-rc.2 → 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-COhunq0p.js → Analytics-jQsZxClw.js} +4 -4
- package/dist/cjs/{Api-Do6SaltY.js → Api-DqXlEWR1.js} +1 -1
- package/dist/cjs/{Business-oBifyXkW.js → Business-CNaz-VLa.js} +5 -1
- package/dist/cjs/{Plaid-D85oV9FN.js → Plaid-BcOAKDaU.js} +1 -1
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +14 -14
- package/dist/cjs/additional-questions_4.cjs.entry.js +3 -3
- package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +15 -9
- package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/bank-account-form.cjs.entry.js +68 -14
- package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-BHBs_yiK.js} +1 -1
- package/dist/cjs/{business-identity-schema-hpDJFnB4.js → business-identity-schema-DuOIMFjG.js} +3 -3
- package/dist/cjs/{business.service-72YETCdB.js → business.service-Ca-olopC.js} +3 -3
- package/dist/cjs/card-form.cjs.entry.js +16 -12
- package/dist/cjs/{checkout-actions-BRQFQ6n-.js → checkout-actions-CQyGpVPe.js} +2 -2
- package/dist/cjs/{checkout.service-CPsXfx0Z.js → checkout.service-DBHPH2ji.js} +3 -3
- package/dist/cjs/{checkout.store-DaV9lvEQ.js → checkout.store-B5lTwvUV.js} +1 -0
- package/dist/cjs/{country-config-C1bWmF8P.js → country-config-CFC3KuVD.js} +25 -3
- 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 +12 -12
- package/dist/cjs/{event-types-UHzCC7Ga.js → event-types-luy3xnYR.js} +3 -3
- package/dist/cjs/form-address-fields_3.cjs.entry.js +6 -6
- 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 +6 -6
- 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-business-BpaRbn5S.js → get-business-BVxtiSDs.js} +3 -3
- package/dist/cjs/{get-payment-details-Cmg8gWvo.js → get-payment-details-DR1GgpyX.js} +3 -3
- package/dist/cjs/{get-subaccounts-Bp7DOmM_.js → get-subaccounts-D11aTYj1.js} +4 -4
- package/dist/cjs/{input-handlers-_51J5q7J.js → input-handlers-v9h_2Ysi.js} +1 -1
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +52 -30
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +8 -8
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +10 -9
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-business-form.cjs.entry.js +14 -14
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +11 -8
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkout.cjs.entry.js +12 -10
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +34 -21
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payment-details.cjs.entry.js +18 -18
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +10 -10
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -9
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-G3Vs7Jx5.js → package-B414Jbra.js} +1 -3
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-DDooZhhk.js → payment-provisioning-actions-SVp7B8pR.js} +2 -2
- package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-CVwTrHEL.js → payment.service-CNTe8vrp.js} +3 -3
- package/dist/cjs/{payout.service-CL3VR0hN.js → payout.service-BmU3q9jO.js} +3 -3
- package/dist/cjs/{payouts-status-1IUtW-UQ.js → payouts-status-BvHeuy9v.js} +2 -2
- package/dist/cjs/{plaid.service-Cukg5wuY.js → plaid.service-d9LAwbnX.js} +3 -3
- 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-DehT309E.js → schema-validations-BDFa_oIq.js} +12 -5
- 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-C0KG7BqL.js → terminal.service-BkQWZv9b.js} +3 -3
- package/dist/cjs/{utils-CBriZzRC.js → utils-BScgWJC5.js} +1 -1
- package/dist/cjs/utils-Ct_X5q0U.js +62 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Business.js +2 -0
- package/dist/collection/api/Checkout.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-helpers.js +2 -1
- 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/business-forms/utils/helpers.js +3 -1
- 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 +4 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +5 -5
- 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-apple-pay.js +7 -1
- 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 +287 -18
- package/dist/esm/{Analytics-3WmRTICF.js → Analytics-DihSSvAP.js} +4 -4
- package/dist/esm/{Api-83B3f28Q.js → Api-INJHjnya.js} +1 -1
- package/dist/esm/{Business-DaDqgDrb.js → Business-CTtGaVYs.js} +5 -1
- package/dist/esm/{Plaid-BP3xNxQF.js → Plaid-CRcTLeaz.js} +1 -1
- package/dist/esm/additional-questions-form-step_15.entry.js +14 -14
- package/dist/esm/additional-questions_4.entry.js +3 -3
- package/dist/esm/additional-statement_8.entry.js +8 -8
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +15 -9
- package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
- package/dist/esm/bank-account-form.entry.js +68 -14
- package/dist/esm/{business-form-options-BxVQL9ar.js → business-form-options-DLRkVtee.js} +1 -1
- package/dist/esm/{business-identity-schema-BkmRlnQo.js → business-identity-schema-BLKCH6xV.js} +3 -3
- package/dist/esm/{business.service-CTqiKKy5.js → business.service-C8f7OSEu.js} +3 -3
- package/dist/esm/card-form.entry.js +16 -12
- package/dist/esm/{checkout-actions-0ftD0elo.js → checkout-actions-CWnrb317.js} +2 -2
- package/dist/esm/{checkout.service-wjFjBxIB.js → checkout.service-BYDkC7uy.js} +3 -3
- package/dist/esm/{checkout.store-B2mtQcB5.js → checkout.store-B8CGkx0o.js} +1 -0
- package/dist/esm/{country-config-CJwnhkdq.js → country-config-DJFj1v-Q.js} +24 -4
- 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 +12 -12
- package/dist/esm/{event-types-cqQHLwCy.js → event-types-S8CgMbPg.js} +3 -3
- package/dist/esm/form-address-fields_3.entry.js +6 -6
- 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 +6 -6
- 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-business-BLCT-zfN.js → get-business-IZpxKRZM.js} +3 -3
- package/dist/esm/{get-payment-details-BokzuPGl.js → get-payment-details-DSI41Pq5.js} +3 -3
- package/dist/esm/{get-subaccounts-ClGG-LRZ.js → get-subaccounts-BHWiH8q9.js} +4 -4
- package/dist/esm/{input-handlers-Dfuc6aDW.js → input-handlers-Dm8jO-BT.js} +1 -1
- package/dist/esm/internal-button.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_12.entry.js +52 -30
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +8 -8
- package/dist/esm/justifi-bank-account-form.entry.js +10 -9
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +11 -11
- package/dist/esm/justifi-business-form.entry.js +14 -14
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +11 -8
- package/dist/esm/justifi-checkout-qr-code.entry.js +7 -7
- package/dist/esm/justifi-checkout.entry.js +12 -10
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -4
- package/dist/esm/justifi-checkouts-list.entry.js +12 -12
- package/dist/esm/justifi-dispute-management.entry.js +10 -10
- package/dist/esm/justifi-gross-payment-chart.entry.js +34 -21
- package/dist/esm/justifi-order-terminals.entry.js +12 -12
- package/dist/esm/justifi-payment-details.entry.js +18 -18
- package/dist/esm/justifi-payment-provisioning.entry.js +10 -10
- package/dist/esm/justifi-payment-transactions-list.entry.js +10 -10
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +10 -10
- package/dist/esm/justifi-payout-details.entry.js +13 -13
- package/dist/esm/justifi-payout-transactions-list.entry.js +10 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +12 -12
- package/dist/esm/justifi-qr-terminal.entry.js +10 -10
- package/dist/esm/justifi-refund-payment.entry.js +10 -10
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -9
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +10 -10
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +11 -11
- 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-provisioning-actions-VRIPjnAQ.js → payment-provisioning-actions-VtleD509.js} +2 -2
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +1 -1
- package/dist/esm/{payment.service-D7uv5vym.js → payment.service-CQXRsu6Y.js} +3 -3
- package/dist/esm/{payout.service-BoSyqft1.js → payout.service-RRyWfpEK.js} +3 -3
- package/dist/esm/{payouts-status-CaiC5qpn.js → payouts-status-CnIf4XDi.js} +2 -2
- package/dist/esm/{plaid.service-DufQkxDk.js → plaid.service-Cg3E3Plo.js} +3 -3
- 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-8dbMCACI.js → schema-validations-8GJ34Do1.js} +12 -5
- 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-BM2aebB6.js → terminal.service-Dy6D8bnl.js} +3 -3
- package/dist/esm/utils-Cpck08K0.js +59 -0
- package/dist/esm/{utils-YUOJKtjO.js → utils-DaPywmTI.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Business.js +5 -1
- package/dist/module/Plaid.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-apple-pay2.js +7 -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 +4 -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 +28 -15
- 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 +10 -3
- 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/api/Business.d.ts +2 -0
- package/dist/types/api/Checkout.d.ts +7 -7
- 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/checkouts-list/justifi-checkouts-list.d.ts +1 -1
- package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +9 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +1 -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 +86 -4
- 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-1ff1dcc5.entry.js +20 -0
- 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-c5424fda.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-4d85dd63.entry.js +1 -0
- package/dist/webcomponents/p-521c534c.entry.js +1 -0
- package/dist/webcomponents/p-5babaaa9.entry.js +1 -0
- package/dist/webcomponents/{p-1cdbe8c1.entry.js → p-5c889829.entry.js} +1 -1
- package/dist/webcomponents/{p-f5358a80.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-ced6f6f1.entry.js → p-7ff788f8.entry.js} +1 -1
- package/dist/webcomponents/{p-c3818a5a.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-f3682c72.entry.js → p-956707a2.entry.js} +1 -1
- package/dist/webcomponents/p-9c1863d5.entry.js +1 -0
- package/dist/webcomponents/p-BDtSw_d-.js +1 -0
- package/dist/webcomponents/{p-CIpBEUtx.js → p-BG8NxEUn.js} +1 -1
- package/dist/webcomponents/p-BKtKrQzN.js +1 -0
- package/dist/webcomponents/p-BQpbTebi.js +1 -0
- package/dist/webcomponents/{p-nbKvRcwU.js → p-Bh5BNj74.js} +1 -1
- package/dist/webcomponents/{p-CLq3Og7o.js → p-BhpaUYtS.js} +1 -1
- package/dist/webcomponents/{p-vIQBTQmc.js → p-BtiJJJwv.js} +1 -1
- package/dist/webcomponents/{p-DZQBPUfH.js → p-Bxc0NRj8.js} +1 -1
- package/dist/webcomponents/p-BzESNgd8.js +1 -0
- package/dist/webcomponents/p-C9p1gWAC.js +1 -0
- package/dist/webcomponents/p-CTtGaVYs.js +1 -0
- package/dist/webcomponents/p-CgOgijHy.js +1 -0
- package/dist/webcomponents/p-CkrzG0pB.js +1 -0
- package/dist/webcomponents/p-Cl6irPVE.js +1 -0
- package/dist/webcomponents/p-Cpck08K0.js +1 -0
- package/dist/webcomponents/{p-OReJ-ZQb.js → p-CtlBL-X6.js} +1 -1
- package/dist/webcomponents/p-Cy_sz0Tx.js +1 -0
- package/dist/webcomponents/p-D42DvqTW.js +1 -0
- package/dist/webcomponents/p-D7nyPi2Q.js +1 -0
- package/dist/webcomponents/p-DBudSN_h.js +1 -0
- package/dist/webcomponents/p-DMzYgqml.js +1 -0
- package/dist/webcomponents/{p-B0DHIvEj.js → p-DQmijfCN.js} +1 -1
- package/dist/webcomponents/p-Dqxyi-uK.js +1 -0
- package/dist/webcomponents/p-FsWkrvEF.js +1 -0
- package/dist/webcomponents/p-MLQyjvrV.js +1 -0
- 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-5d7b3d71.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-6c94218c.entry.js → p-d35cde99.entry.js} +1 -1
- package/dist/webcomponents/{p-cb1cc88e.entry.js → p-d48f80d1.entry.js} +1 -1
- package/dist/webcomponents/{p-eb31024f.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-d98bc829.entry.js → p-e6d1e3e2.entry.js} +1 -1
- 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-bf3866b3.entry.js → p-f0084d20.entry.js} +1 -1
- package/dist/webcomponents/p-f0da2ca5.entry.js +1 -0
- package/dist/webcomponents/p-f23d7d13.entry.js +1 -0
- package/dist/webcomponents/p-f2c99647.entry.js +1 -0
- package/dist/webcomponents/{p-e55216fb.entry.js → p-f39889f2.entry.js} +1 -1
- package/dist/webcomponents/p-f458928d.entry.js +1 -0
- package/dist/webcomponents/{p-0aa96018.entry.js → p-f5686720.entry.js} +1 -1
- package/dist/webcomponents/p-f681f747.entry.js +1 -0
- package/dist/webcomponents/{p-6eb65d23.entry.js → p-f6efd9e0.entry.js} +1 -1
- package/dist/webcomponents/{p-7002286e.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-hdPjEOdB.js +1 -0
- package/dist/webcomponents/{p-CJEetAx7.js → p-l3JhjHLW.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -4
- package/dist/cjs/check-pkg-version-BxGoSXGD.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-CmFl6VLH.js +0 -45
- package/dist/esm/package-CAVi_ne1.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-0fbc806f.entry.js +0 -1
- package/dist/webcomponents/p-10787684.entry.js +0 -1
- package/dist/webcomponents/p-1fa62eba.entry.js +0 -1
- package/dist/webcomponents/p-25f70d5f.entry.js +0 -1
- package/dist/webcomponents/p-27igUlku.js +0 -1
- package/dist/webcomponents/p-36340e63.entry.js +0 -1
- package/dist/webcomponents/p-3642e189.entry.js +0 -1
- package/dist/webcomponents/p-388082cd.entry.js +0 -1
- package/dist/webcomponents/p-3f2fb856.entry.js +0 -1
- package/dist/webcomponents/p-4cad48c1.entry.js +0 -1
- package/dist/webcomponents/p-50c2b8f0.entry.js +0 -1
- package/dist/webcomponents/p-5842d4e8.entry.js +0 -1
- package/dist/webcomponents/p-5c89dcdf.entry.js +0 -1
- package/dist/webcomponents/p-5dcb1713.entry.js +0 -1
- package/dist/webcomponents/p-5f8c30b6.entry.js +0 -1
- package/dist/webcomponents/p-68e88747.entry.js +0 -1
- package/dist/webcomponents/p-6931a1f2.entry.js +0 -1
- package/dist/webcomponents/p-72bb4aff.entry.js +0 -1
- package/dist/webcomponents/p-74575a99.entry.js +0 -1
- package/dist/webcomponents/p-7c405573.entry.js +0 -1
- package/dist/webcomponents/p-825a7ee6.entry.js +0 -1
- package/dist/webcomponents/p-909a9828.entry.js +0 -20
- package/dist/webcomponents/p-955c06d3.entry.js +0 -1
- package/dist/webcomponents/p-9e9a2546.entry.js +0 -1
- package/dist/webcomponents/p-9f0ef3f3.entry.js +0 -1
- package/dist/webcomponents/p-BAKuMxC9.js +0 -1
- package/dist/webcomponents/p-BEL8sLz6.js +0 -1
- package/dist/webcomponents/p-BSxXlu9H.js +0 -1
- package/dist/webcomponents/p-BnjCmwMr.js +0 -1
- package/dist/webcomponents/p-CAVi_ne1.js +0 -1
- package/dist/webcomponents/p-CXsRwohv.js +0 -1
- package/dist/webcomponents/p-CawcnSoV.js +0 -1
- package/dist/webcomponents/p-CbyGKcz_.js +0 -1
- package/dist/webcomponents/p-Cy2N3vAg.js +0 -1
- package/dist/webcomponents/p-CyOXIqHo.js +0 -1
- package/dist/webcomponents/p-D6uhYbLo.js +0 -1
- package/dist/webcomponents/p-DN7VhlTn.js +0 -1
- package/dist/webcomponents/p-DNuxxP2B.js +0 -1
- package/dist/webcomponents/p-D_84NsmN.js +0 -1
- package/dist/webcomponents/p-DaDqgDrb.js +0 -1
- package/dist/webcomponents/p-Do9dxNjh.js +0 -1
- package/dist/webcomponents/p-Fpaf7CLD.js +0 -1
- package/dist/webcomponents/p-PdwJswAy.js +0 -1
- package/dist/webcomponents/p-acb0b66c.entry.js +0 -1
- package/dist/webcomponents/p-b23dfa13.entry.js +0 -1
- package/dist/webcomponents/p-b98ea26a.entry.js +0 -1
- package/dist/webcomponents/p-ca13117d.entry.js +0 -1
- package/dist/webcomponents/p-ca6c5365.entry.js +0 -1
- package/dist/webcomponents/p-d59676ea.entry.js +0 -1
- package/dist/webcomponents/p-ee7fe3a8.entry.js +0 -1
- package/dist/webcomponents/p-f0434a13.entry.js +0 -1
- package/dist/webcomponents/p-f9f0cb1f.entry.js +0 -1
- package/dist/webcomponents/p-fda6f27d.entry.js +0 -1
- package/dist/webcomponents/p-fdd087d4.entry.js +0 -1
|
@@ -98,7 +98,7 @@ const AdditionalStatement = class {
|
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
100
|
var _a, _b;
|
|
101
|
-
return (h("div", { key: '
|
|
101
|
+
return (h("div", { key: '8dff14b5f29b28a18901b1eff60b3855d9094013' }, h("div", { key: '405d549adeb5150fd7ec834b699f83588892390e', class: "row gy-3" }, h("div", { key: 'a13e743d61fe9329e74b3a09712921cec6e253c2', class: "col-12" }, h("h2", { key: 'fbe30e865b8dbece987480e3ac804c3eabbf0746', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '921aa04960a0c30d9733bc0db71dee4fcd78af55', class: "col-12" }, 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 })), h("div", { key: '0b35f4914c18432ca326a01c002710690c15d685', class: "col-12" }, 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 })))));
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
|
|
@@ -132,7 +132,7 @@ const CancellationPolicy = class {
|
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
134
|
var _a, _b, _c;
|
|
135
|
-
return (h("div", { key: '
|
|
135
|
+
return (h("div", { key: 'bd649d7bc48208dec588f5677f2c87897bc43b8b' }, h("div", { key: '63263cfe2db3bb2d6f53ddf3c01124a6f70e4994', class: "row gy-3" }, h("div", { key: '457bc4393385a88d9d815bd590425c65ebf63d7b', class: "col-12" }, h("h2", { key: '66eadc2605b0541fca47cb426c8cf5f373b003f8', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: 'dcdf62ecc017a197714207372104a355a42561f2', class: "col-12" }, 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 })), h("div", { key: 'e4b7de1e1820f7c59c7465784868ce4823244285', class: "col-12" }, 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 })), h("div", { key: '61e019cea906e3cb93952cf75fb01a6b9fc9cc66', class: "col-12" }, 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 })))));
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
|
|
@@ -167,7 +167,7 @@ const CustomerDetails = class {
|
|
|
167
167
|
}
|
|
168
168
|
render() {
|
|
169
169
|
var _a, _b, _c, _d, _e;
|
|
170
|
-
return (h("div", { key: '
|
|
170
|
+
return (h("div", { key: '66ed4497457aab5cd214c356b23067eb5ab977b9' }, h("div", { key: '00b2241580f26aed52fb8c0dca06ffb8e07c2303', class: "row gy-3" }, h("div", { key: '23fd971d66b3e753df7ec5e20b8155865307261f', class: "col-12" }, h("h2", { key: 'df3880ae4959e4fe6a5fa2e67287e4bb40b6fc75', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '1bd1010ba8c9bbdb4390e3d953a8cfc798a6745c', class: "col-12" }, 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 })), h("div", { key: '39a99685a01018afa466fa214fd9f217b5682200', class: "col-12" }, 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 })), h("div", { key: '6db37be2d5b9bef95c7e5e00a879847cbc89a9db', class: "col-12" }, 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 })), h("div", { key: '9a85ca65d2a80c54617034af5350e7301dd475f5', class: "col-12" }, 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 })), h("div", { key: '8067bc3d834825f309fc3ed994b683233e2e9e90', class: "col-12" }, 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 })))));
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
|
|
@@ -201,7 +201,7 @@ const DuplicateCharge = class {
|
|
|
201
201
|
}
|
|
202
202
|
render() {
|
|
203
203
|
var _a, _b, _c;
|
|
204
|
-
return (h("div", { key: '
|
|
204
|
+
return (h("div", { key: '40c441cca0667d42a17b2d030cd11499b5fd0971' }, h("div", { key: '9187708d76c4a631c8741e1ec60684fdb3b7c65f', class: "row gy-3" }, h("div", { key: '9a388c46052814718253a4333da1a3e010316e14', class: "col-12" }, h("h2", { key: '677c93c72112ac96e41e43080fba1d2750bc71de', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '475e5bd708aed12d866560dd12ddde92b8643f82', class: "col-12" }, 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 })), h("div", { key: '75890d7ba8e0e0f4117477f0c52f3af0a867f3b3', class: "col-12" }, 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 })), h("div", { key: '81d2eb27f4350e57cc3e89170839816166339731', class: "col-12" }, 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 })))));
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
|
|
@@ -234,7 +234,7 @@ const ElectronicEvidence = class {
|
|
|
234
234
|
}
|
|
235
235
|
render() {
|
|
236
236
|
var _a, _b;
|
|
237
|
-
return (h("div", { key: '
|
|
237
|
+
return (h("div", { key: '592472282564a406e318b5639e1f8e3f1aeb55bd' }, h("div", { key: '0e49a34f48905ede20c17d4e2a8e529a3aaad2b9', class: "row gy-3" }, h("div", { key: '9f15e709a8a31b6c2cf3ca43d543090a8dd8ca5d', class: "col-12" }, h("h2", { key: '3223ed0c95dd5d08b5d8a481dfdc57d65ee3ea2f', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: 'f82434ae90705238088c1e01625c1d674337f823', class: "col-12" }, 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 })), h("div", { key: '1ec47d1e437926e010e19f0352c6c237cb61aeaa', class: "col-12" }, 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 })))));
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
|
|
@@ -268,7 +268,7 @@ const ProductOrService = class {
|
|
|
268
268
|
}
|
|
269
269
|
render() {
|
|
270
270
|
var _a, _b, _c;
|
|
271
|
-
return (h("div", { key: '
|
|
271
|
+
return (h("div", { key: '466646e97a89d70914e592693918d5ea524504a8' }, h("div", { key: '78f02a847c7474733400f2d4e8a6712c9689402e', class: "row gy-3" }, h("div", { key: '0367c4de7453b26becfc2edfe7f5899e6b30f554', class: "col-12" }, h("h2", { key: '10490c7e30a1ec7c23cd47f80a905e21bb874b38', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: 'a18c64c22a5efe19c5b6603d0497a17a54ac6fa8', class: "col-12" }, 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 })), h("div", { key: '24a337727ad90599b1368c2c3fff6cea4c40d172', class: "col-12" }, 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 })), h("div", { key: '1f422eea9d59d4d01d333e25e2003ecb3954656d', class: "col-12" }, 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 })))));
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
|
|
@@ -302,7 +302,7 @@ const RefundPolicy = class {
|
|
|
302
302
|
}
|
|
303
303
|
render() {
|
|
304
304
|
var _a, _b, _c, _d;
|
|
305
|
-
return (h("div", { key: '
|
|
305
|
+
return (h("div", { key: 'ec311e40104fb629ea148d4bd4e3b75b7384c271' }, h("div", { key: 'b520aca75b00bf6f698c551cd51efcd8ae8cddca', class: "row gy-3" }, h("div", { key: '98c7a3ae28e9b9d8de6e9f860b26224ff83e5752', class: "col-12" }, h("h2", { key: '334c7e259e7e8ba1202252e6135e1ff960ea34d4', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: 'bb6783c720ca99ae968580610a3af79a86bf6dc3', class: "col-12" }, 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 })), h("div", { key: '0a138ff7a02788003437e0d7f07dbe59e4cb05a7', class: "col-12" }, 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 })), h("div", { key: '18922e3843fa6b445b3aaa384b341aae5b2b2443', class: "col-12" }, 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 })), h("div", { key: '42a5952ae76b7468bde8d2c3edd8bcb0bfde5cd6', class: "col-12" }, 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 })))));
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
|
|
@@ -339,7 +339,7 @@ const ShippingDetails = class {
|
|
|
339
339
|
}
|
|
340
340
|
render() {
|
|
341
341
|
var _a, _b, _c, _d, _e;
|
|
342
|
-
return (h("div", { key: '
|
|
342
|
+
return (h("div", { key: '6673b30e9af36cb2e560d0653776a42ab1777c22' }, h("div", { key: 'f687e69208f470a40699f870c4d09b04a0487faa', class: "row gy-3" }, h("div", { key: 'ffb1b65e29b6b912cefe862a2139e57f3d81087b', class: "col-12" }, h("h2", { key: '2cea703b6f228aa127bbdb6f8c97f3f79e05d351', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'fe2ae3034571b5ed2a8e5678ae5c32d84f750835', class: "col-12" }, h("form-control-text", { key: '3b5c43c4b8baa62a756cc2dd7edb54fc0c118ede', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '807d7e0860265cb629083bb026e812e4d2ac06ff', class: "col-12" }, h("form-control-text", { key: '5367ef8b37625d6e3ca42eb68eda5e142ff5d783', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '25e85572762af0d9964849d276dd18c5b8905d6e', class: "col-12" }, h("form-control-date", { key: '821d218825643775282742b0c63f8c803a6c47e5', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '376e527d339217b897f02f0de111ea9377539769', class: "col-12" }, h("form-control-textarea", { key: 'f0130e6c0a7ca54e20f6406fbe6276fa8cffbf61', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '74699370d18065f453e68449749d5481772c4c08', class: "col-12" }, h("form-control-file-v2", { key: '5d3f0d1a199b563c9ed433cb971f541a4cb54083', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
|
|
@@ -1,15 +1,15 @@
|
|
|
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 './
|
|
11
|
-
import './
|
|
12
|
-
import './business-form-options-BxVQL9ar.js';
|
|
11
|
+
import './Business-CTtGaVYs.js';
|
|
12
|
+
import './business-form-options-DLRkVtee.js';
|
|
13
13
|
import './index-3wWWWrhn.js';
|
|
14
14
|
|
|
15
15
|
const fullBillingSchema = () => create$3({
|
|
@@ -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
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-CV0Pyo1O.js';
|
|
2
2
|
import './config-state-BKOsYBXZ.js';
|
|
3
3
|
import './dinero-HXpYMWUU.js';
|
|
4
|
-
import { E as EntityDocumentType } from './Plaid-
|
|
4
|
+
import { E as EntityDocumentType } from './Plaid-CRcTLeaz.js';
|
|
5
5
|
import './Pagination-CLHwhyvu.js';
|
|
6
|
-
import './Business-
|
|
6
|
+
import './Business-CTtGaVYs.js';
|
|
7
7
|
import './index-3wWWWrhn.js';
|
|
8
8
|
import './utils-D8J8OvxY.js';
|
|
9
9
|
|
|
@@ -2,17 +2,17 @@ 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-
|
|
7
|
-
import { C as ComponentErrorSeverity, c as ComponentErrorMessages, b as ComponentErrorCodes } from './Plaid-
|
|
5
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
|
|
6
|
+
import { c as checkoutStore } from './checkout.store-B8CGkx0o.js';
|
|
7
|
+
import { C as ComponentErrorSeverity, c as ComponentErrorMessages, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
8
8
|
import './Pagination-CLHwhyvu.js';
|
|
9
|
-
import './Business-
|
|
9
|
+
import './Business-CTtGaVYs.js';
|
|
10
10
|
import { B as Button } from './button-CBzHAOFW.js';
|
|
11
11
|
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-BkmRlnQo.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-
|
|
3
|
-
import { C as CountryCode } from './Business-
|
|
4
|
-
import { c as countryLabels } from './country-config-
|
|
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
|
+
import { C as CountryCode } from './Business-CTtGaVYs.js';
|
|
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) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as Api } from './Api-
|
|
2
|
-
import './Plaid-
|
|
1
|
+
import { A as Api } from './Api-INJHjnya.js';
|
|
2
|
+
import './Plaid-CRcTLeaz.js';
|
|
3
3
|
import './Pagination-CLHwhyvu.js';
|
|
4
|
-
import './Business-
|
|
4
|
+
import './Business-CTtGaVYs.js';
|
|
5
5
|
|
|
6
6
|
const api = Api();
|
|
7
7
|
class BusinessService {
|
|
@@ -2,16 +2,16 @@ 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 ComponentErrorSeverity, c as ComponentErrorMessages, b as ComponentErrorCodes } from './Plaid-
|
|
5
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
|
|
6
|
+
import { C as ComponentErrorSeverity, c as ComponentErrorMessages, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
7
7
|
import './Pagination-CLHwhyvu.js';
|
|
8
|
-
import './Business-
|
|
8
|
+
import './Business-CTtGaVYs.js';
|
|
9
9
|
import { B as Button } from './button-CBzHAOFW.js';
|
|
10
10
|
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
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ComponentErrorSeverity } from './Plaid-
|
|
2
|
-
import { g as getErrorCode, a as getErrorMessage } from './utils-
|
|
1
|
+
import { C as ComponentErrorSeverity } from './Plaid-CRcTLeaz.js';
|
|
2
|
+
import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
|
|
3
3
|
|
|
4
4
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
5
5
|
var _a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as Api } from './Api-
|
|
2
|
-
import './Plaid-
|
|
1
|
+
import { A as Api } from './Api-INJHjnya.js';
|
|
2
|
+
import './Plaid-CRcTLeaz.js';
|
|
3
3
|
import './Pagination-CLHwhyvu.js';
|
|
4
|
-
import './Business-
|
|
4
|
+
import './Business-CTtGaVYs.js';
|
|
5
5
|
|
|
6
6
|
const api = Api();
|
|
7
7
|
class CheckoutService {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StateOptions } from './Business-
|
|
1
|
+
import { S as StateOptions } from './Business-CTtGaVYs.js';
|
|
2
2
|
|
|
3
3
|
const ProvinceOptions = [
|
|
4
4
|
{
|
|
@@ -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"]
|