@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
|
@@ -14,7 +14,7 @@ import './justifi-radio-list-item2.js';
|
|
|
14
14
|
import { P as PaymentService } from './payment.service.js';
|
|
15
15
|
import { m as makeGetPaymentDetails } from './get-payment-details.js';
|
|
16
16
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
17
|
-
import {
|
|
17
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version.js';
|
|
18
18
|
import { g as getErrorCode, a as getErrorMessage } from './utils3.js';
|
|
19
19
|
import { A as Api } from './Api.js';
|
|
20
20
|
import { S as Skeleton } from './skeleton.js';
|
|
@@ -176,7 +176,7 @@ const JustifiRefundPayment$1 = /*@__PURE__*/ proxyCustomElement(class JustifiRef
|
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
componentWillLoad() {
|
|
179
|
-
|
|
179
|
+
detectDuplicateVersion();
|
|
180
180
|
this.analytics = new JustifiAnalytics(this);
|
|
181
181
|
this.initializeApi();
|
|
182
182
|
this.formController = new FormController(RefundPaymentSchema());
|
|
@@ -17,7 +17,7 @@ const JustifiSaveNewPaymentMethod$1 = /*@__PURE__*/ proxyCustomElement(class Jus
|
|
|
17
17
|
this.label = 'Save New Payment Method';
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(StyledHost, { key: '
|
|
20
|
+
return (h(StyledHost, { key: 'e5792a56b3a21bcf3d5fb0604fbf487ce536b498' }, h("save-new-payment-method", { key: 'f01b1546e90db73bc8da8edcab4a3d384e4f742e', label: this.label, hidden: this.hidden, onCheckboxChanged: (e) => this.checkboxChanged.emit(e.detail) })));
|
|
21
21
|
}
|
|
22
22
|
}, [257, "justifi-save-new-payment-method", {
|
|
23
23
|
"label": [1],
|
|
@@ -6,7 +6,7 @@ import './Business.js';
|
|
|
6
6
|
import './ApplePay.js';
|
|
7
7
|
import { g as getErrorCode, a as getErrorMessage } from './utils3.js';
|
|
8
8
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
9
|
-
import {
|
|
9
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version.js';
|
|
10
10
|
import { c as checkoutStore } from './checkout.store.js';
|
|
11
11
|
import { p as processHTML, b as formatCurrency, r as removeAttribute, k as addAttribute } from './utils2.js';
|
|
12
12
|
import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors } from './insurance-state.js';
|
|
@@ -113,7 +113,7 @@ const JustifiSeasonInterruptionInsurance$1 = /*@__PURE__*/ proxyCustomElement(cl
|
|
|
113
113
|
]);
|
|
114
114
|
}
|
|
115
115
|
componentWillLoad() {
|
|
116
|
-
|
|
116
|
+
detectDuplicateVersion();
|
|
117
117
|
this.analytics = new JustifiAnalytics(this);
|
|
118
118
|
this.initializeServiceMethods();
|
|
119
119
|
if (this.getQuote) {
|
|
@@ -69,9 +69,9 @@ const JustifiTerminalOrdersListFilters$1 = /*@__PURE__*/ proxyCustomElement(clas
|
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
71
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
72
|
-
return (h(StyledHost, { key: '
|
|
73
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '
|
|
74
|
-
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam })), h("div", { key: '
|
|
72
|
+
return (h(StyledHost, { key: '2d36ea512a983ddba3ce92c8cc06ccb700d807b6' }, h("table-filters-menu", { key: '15f2d1d33656d52ff9cdd8f440c56b2a25373d4f', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: '39379df3cde8edf3055427b3673a011acc734fd8', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'c8e83393cb9a5d59099fd287e72bd79716460412', class: "p-2" }, h("form-control-select", { key: '7b50b0d9d9acab68a40f0afcd1a42c27763ec30f', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status || '', disabled: !!this.orderStatus, part: filterParam })), h("div", { key: 'cd2779df09502b1bc8cdd7dd60beb45110580751', class: "p-2" }, h("form-control-select", { key: '17e7ec4668dd921d32deea68b0c9bda28bdb78c8', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type || '', disabled: !!this.orderType, part: filterParam })), h("div", { key: '73c3471454f58d2e6860ba4dc294da0ca2d3be4b', class: "p-2" }, h("form-control-date", { key: 'ec16f9cc4de282f0409f41b4670a5efbdb5f1d17', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
73
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '2487d67a91abed9ed974071c0557b9d4b92d8600', class: "p-2" }, h("form-control-date", { key: 'f839bc165c4bbaae637237139a8b21c11ab52b31', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
74
|
+
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam })), h("div", { key: '081c73c0b1a4f412403ae266c3d8da69775ca4e4', class: "p-2" }, h("form-control-text", { key: '927a87c41a09519f85fe95fa1bc202cbe12ecb75', name: "company_name", label: "Company Name", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.companyName || filterParams.company_name, disabled: !!this.companyName, part: filterParam }))))));
|
|
75
75
|
}
|
|
76
76
|
}, [257, "justifi-terminal-orders-list-filters", {
|
|
77
77
|
"orderStatus": [1, "order-status"],
|
|
@@ -4,7 +4,7 @@ import './justifi-details2.js';
|
|
|
4
4
|
import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table.js';
|
|
5
5
|
import { T as TableClickActions } from './event-types.js';
|
|
6
6
|
import './justifi-radio-list-item2.js';
|
|
7
|
-
import {
|
|
7
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version.js';
|
|
8
8
|
import { E as tableHeadCell, ah as getAlternateTableCellPart } from './parts.js';
|
|
9
9
|
import { h as convertToLocal } from './utils2.js';
|
|
10
10
|
import './config-state.js';
|
|
@@ -160,7 +160,7 @@ const JustifiTerminalOrdersList$1 = /*@__PURE__*/ proxyCustomElement(class Justi
|
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
componentWillLoad() {
|
|
163
|
-
|
|
163
|
+
detectDuplicateVersion();
|
|
164
164
|
this.analytics = new JustifiAnalytics(this);
|
|
165
165
|
this.terminalOrdersTable = new Table(this.terminalOrders, this.columns, terminalOrdersTableColumns, terminalOrdersTableCells);
|
|
166
166
|
this.initializeGetData();
|
|
@@ -250,8 +250,8 @@ const JustifiTerminalOrdersList$1 = /*@__PURE__*/ proxyCustomElement(class Justi
|
|
|
250
250
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
251
251
|
}
|
|
252
252
|
render() {
|
|
253
|
-
return (h(StyledHost, { key: '
|
|
254
|
-
this.terminalOrdersTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '
|
|
253
|
+
return (h(StyledHost, { key: '536aeda1d21130b0289b62a77728e06c4c925b4d' }, h(TableWrapper, { key: '7865e36b01c6c37f45a66465680cf545ebe4529b' }, h(TableComponent, { key: '301d38dab2c6ea3e88c86ff8bc3904fe9dc37100' }, h(TableHead, { key: '0da6586396379ae6bd10dcfecc814533df737a29' }, h(TableHeadRow, { key: '5fd721f7fdffd547d3eda557ec55a1575334c88d' }, this.terminalOrdersTable.columnData.map((column) => column))), h(TableBody, { key: 'e6568d2f0a6cc0e52d729c4e3890c896e4538ee8' }, h(TableLoadingState, { key: '286bfd64db33d107c13961f377055785756fc6ba', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '0aed85e9c5912c327755b71dab28cb8b0c43ba64', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: '718c86be52dd5bdf545ed1976cd51b474072ef41', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
254
|
+
this.terminalOrdersTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '783e78b798f8bbf0b03b193c9858e5afd991af68' }, h(TableFootRow, { key: '29057f6fec58617a44c328076e4856bc896eb3c2' }, h(TableFootCell, { key: '20ff58db34905a4d388c2b9425d3abb85099ec7a', colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: 'e466c95839f3aaf33cfa8bc6baa8564a30022059', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
255
255
|
}
|
|
256
256
|
static get watchers() { return {
|
|
257
257
|
"accountId": ["authPropChanged"],
|
|
@@ -64,7 +64,7 @@ const JustifiTerminalsListFilters$1 = /*@__PURE__*/ proxyCustomElement(class Jus
|
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
67
|
-
return (h(StyledHost, { key: '
|
|
67
|
+
return (h(StyledHost, { key: '26a998794ef5756de257db995ef5b7b1471e50ea' }, h("table-filters-menu", { key: 'c1368bddbe2ac553d92f46d7f2bdfa3fe3c04931', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: 'e9f4523328d3393a75fa4e5a044baab7bf4f6134', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '2589335f3b9908c30d085786c43d5829aaa3b9fe', class: "p-2" }, h("form-control-text", { key: 'f01cdfd58973b4bfe0b4b5aa6df0f63bce57d9d5', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: filterParam })), h("div", { key: '96b1aa8711775775d57fa792fca5e66dd7d50ae9', class: "p-2" }, h("form-control-text", { key: '44794ce04f2cc7d31483bd816996501aea9e3763', name: "terminal_order_id", label: "Terminal Order ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalOrderId || filterParams.terminal_order_id, disabled: !!this.terminalOrderId, part: filterParam })), h("div", { key: 'a4c47ab87e6ee27277fe07d224bf1602f6e5ac73', class: "p-2" }, h("form-control-text", { key: '29b825179907ee1f1a43afe337f852f2accdcafc', name: "provider_id", label: "Device ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.providerId || filterParams.provider_id, disabled: !!this.providerId, part: filterParam })), h("div", { key: '064fe6ec6be35e72ddb23f5140e83d83d37101b1', class: "p-2" }, h("form-control-text", { key: '073783ba7be15000e1511a608be6b05b9fc481fa', name: "serial_number", label: "Serial Number", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.serialNumber || filterParams.serial_number, disabled: !!this.serialNumber, part: filterParam })), h("div", { key: '3d3fdc0fdbec56f9a0130029473874afe97b4fac', class: "p-2" }, h("form-control-select", { key: 'e19f7c1838cb082bd1231e857cbfafe8f68f2f63', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status || '', disabled: !!this.terminalStatus, part: filterParam })), h("div", { key: 'c0dc5690ea48041fd39b185cf687a92d52f61a0a', class: "p-2" }, h("form-control-date", { key: '78a1b6f1c817a67466384dc5e22d73447153bf28', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter || filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '5d3e2fd0c1a19c5692240999684efc93aead7c4c', class: "p-2" }, h("form-control-date", { key: '6e47f9c0af83273c6a819cc625e31a9cb60c93e7', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore || filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam }))))));
|
|
68
68
|
}
|
|
69
69
|
}, [257, "justifi-terminals-list-filters", {
|
|
70
70
|
"terminalId": [1, "terminal-id"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
2
|
import { r as Terminal, C as ComponentErrorSeverity, c as ComponentErrorCodes } from './Plaid.js';
|
|
3
3
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
4
|
-
import {
|
|
4
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version.js';
|
|
5
5
|
import { T as TerminalService } from './terminal.service.js';
|
|
6
6
|
import './config-state.js';
|
|
7
7
|
import './dinero.js';
|
|
@@ -136,7 +136,7 @@ const JustifiTerminalsList$1 = /*@__PURE__*/ proxyCustomElement(class JustifiTer
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
componentWillLoad() {
|
|
139
|
-
|
|
139
|
+
detectDuplicateVersion();
|
|
140
140
|
this.analytics = new JustifiAnalytics(this);
|
|
141
141
|
this.terminalsTable = new Table(this.terminals, this.columns, terminalTableColumns, terminalTableCells);
|
|
142
142
|
this.initializeGetData();
|
|
@@ -266,7 +266,7 @@ const JustifiTerminalsList$1 = /*@__PURE__*/ proxyCustomElement(class JustifiTer
|
|
|
266
266
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
267
267
|
}
|
|
268
268
|
render() {
|
|
269
|
-
return (h(StyledHost, { key: '
|
|
269
|
+
return (h(StyledHost, { key: '7aff8b07dcd19216c714f2318c1af5dbebc54147' }, h(TableWrapper, { key: '7daec7f4553f687b3ebbeb7d561fbf904049841b' }, h(TableComponent, { key: '2f67e873333800bdd78d8c60f9db218c349097d0' }, h(TableHead, { key: '61499a69253f0add24f5e60c385b14fc3e6ba90f' }, h(TableHeadRow, { key: 'fcd5d3287d6dd3dbf4e20837ca06d9f6dcc74a16' }, this.terminalsTable.columnData.map((column) => column))), h(TableBody, { key: '664b70934aae39f8ccceeaaf012e1933a4c27c95' }, h(TableLoadingState, { key: '3d5e79192be7a6a8e2611d9ac7d551e15a4a4207', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '60d4263bd934af2c6d204a3d2f0aee6639043d80', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '2d3340153f20d7a057e31f3eb2b570ec1d7c4e9f', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'b893b1cd12d3c0440b1c5cb015503aa8309a84e1' }, h(TableFootRow, { key: '532462ef72bc8c9fbbf8cae69c1f7ebd60b403b4' }, h(TableFootCell, { key: 'c18d2a8f05cbc17f7dc21a18a814a7eb8c83d6ea', colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: 'fd1aef3373787dfb79f517a69e2d771d61d5dee3', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
270
270
|
}
|
|
271
271
|
static get watchers() { return {
|
|
272
272
|
"accountId": ["propChanged"],
|
|
@@ -3,7 +3,7 @@ import { S as StyledHost } from './styled-host.js';
|
|
|
3
3
|
import './justifi-details2.js';
|
|
4
4
|
import './event-types.js';
|
|
5
5
|
import './justifi-radio-list-item2.js';
|
|
6
|
-
import {
|
|
6
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version.js';
|
|
7
7
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
8
8
|
import './config-state.js';
|
|
9
9
|
import './dinero.js';
|
|
@@ -72,7 +72,7 @@ const JustifiTokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class Just
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
componentWillLoad() {
|
|
75
|
-
|
|
75
|
+
detectDuplicateVersion();
|
|
76
76
|
this.analytics = new JustifiAnalytics(this);
|
|
77
77
|
}
|
|
78
78
|
handleRadioClick(event) {
|
|
@@ -127,9 +127,10 @@ const JustifiTokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class Just
|
|
|
127
127
|
this.billingFormRef.validate(),
|
|
128
128
|
this.paymentMethodFormRef.validate(),
|
|
129
129
|
]);
|
|
130
|
+
// Field-level messages stay inside the hosted iframes, so only billing contributes errors.
|
|
130
131
|
const result = {
|
|
131
132
|
isValid: billingValidation.isValid && paymentMethodValidation.isValid,
|
|
132
|
-
errors: Object.assign(
|
|
133
|
+
errors: Object.assign({}, billingValidation.errors),
|
|
133
134
|
};
|
|
134
135
|
return result;
|
|
135
136
|
}
|
|
@@ -291,13 +292,13 @@ const JustifiTokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class Just
|
|
|
291
292
|
return paymentMethodType === PAYMENT_METHODS.NEW_CARD ? (h("card-form", { ref: (el) => {
|
|
292
293
|
if (el)
|
|
293
294
|
this.paymentMethodFormRef = el;
|
|
294
|
-
} })) : (h("bank-account-form", { ref: (el) => {
|
|
295
|
+
}, maskCardNumber: this.maskCardNumber })) : (h("bank-account-form", { ref: (el) => {
|
|
295
296
|
if (el)
|
|
296
297
|
this.paymentMethodFormRef = el;
|
|
297
|
-
} }));
|
|
298
|
+
}, showAccountNumberConfirmation: this.showAccountNumberConfirmation }));
|
|
298
299
|
}
|
|
299
300
|
render() {
|
|
300
|
-
return (h(StyledHost, { key: '
|
|
301
|
+
return (h(StyledHost, { key: 'd065263c69beef410298f14a3c8e595460149267' }, h("form", { key: 'cbf67700b366e26eb9a6aa1fe07afd3f7baf5c52' }, h("fieldset", { key: '3fd1ccefca659985eb2b90c1080c71c0f2ffe99a' }, h("div", { key: '7181cff13f4cc7aa6c00f4023757bac96625e87b', class: "row gy-3" }, h("div", { key: 'c04c382e858eab02206902d23e3921d15d2bfebc', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: '9faa4417ba3e5dba526103f8d92fd5a88ce2df7d', class: "col-12" }, h("internal-button", { key: 'e4fc2482631553212e5cf62b07f2f44f32239b75', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
301
302
|
}
|
|
302
303
|
get host() { return this; }
|
|
303
304
|
static get watchers() { return {
|
|
@@ -313,8 +314,10 @@ const JustifiTokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class Just
|
|
|
313
314
|
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
314
315
|
"hideSubmitButton": [4, "hide-submit-button"],
|
|
315
316
|
"paymentMethodGroupId": [1, "payment-method-group-id"],
|
|
317
|
+
"showAccountNumberConfirmation": [4, "show-account-number-confirmation"],
|
|
316
318
|
"submitButtonText": [1, "submit-button-text"],
|
|
317
319
|
"savePaymentMethodLabel": [1, "save-payment-method-label"],
|
|
320
|
+
"maskCardNumber": [4, "mask-card-number"],
|
|
318
321
|
"computedHideSubmitButton": [32],
|
|
319
322
|
"isLoading": [32],
|
|
320
323
|
"selectedPaymentMethod": [32],
|
package/dist/module/package.js
CHANGED
|
@@ -16,7 +16,7 @@ const PaymentMethodOption$1 = /*@__PURE__*/ proxyCustomElement(class PaymentMeth
|
|
|
16
16
|
this.__attachShadow();
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(StyledHost, { key: '
|
|
19
|
+
return (h(StyledHost, { key: '45a24177da27e09c500054f09e8d5a432fc790d6', class: "payment-method" }, h("div", { key: '2d5cdef6c196b9be0c09ed109f20b44cd94eac8c', class: "radio-list-item p-3", part: radioListItem, onClick: this.clickHandler, hidden: this.radioButtonHidden }, h("form-control-radio", { key: '4cc39aae8c3a1ad7dadd385e99ff854643172b38', name: "paymentMethodType", value: this.paymentMethodOptionId, checked: this.isSelected, label: this.label }))));
|
|
20
20
|
}
|
|
21
21
|
}, [257, "payment-method-option", {
|
|
22
22
|
"paymentMethodOptionId": [1, "payment-method-option-id"],
|
|
@@ -41,7 +41,7 @@ const ProductOrService = /*@__PURE__*/ proxyCustomElement(class ProductOrService
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
var _a, _b, _c;
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
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 })))));
|
|
45
45
|
}
|
|
46
46
|
}, [256, "product-or-service", {
|
|
47
47
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -17,7 +17,7 @@ const RadioListItem = /*@__PURE__*/ proxyCustomElement(class RadioListItem exten
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'dde5efa79bdc1d9a7367474308d1a5955e134c9b' }, h("div", { key: '0da16408e69f19e68d65031ab0579b3d1c972af8', class: `radio-list-item p-3 ${this.class || ''}`, part: radioListItem, onClick: this.handleClick, hidden: this.hidden }, h("form-control-radio", { key: '56ea84930e14226280818def685cfc8148f31c5a', name: this.name, value: this.value, checked: this.checked, label: this.label, inputHandler: () => null }))));
|
|
21
21
|
}
|
|
22
22
|
}, [256, "radio-list-item", {
|
|
23
23
|
"name": [1],
|
|
@@ -41,7 +41,7 @@ const RefundPolicy = /*@__PURE__*/ proxyCustomElement(class RefundPolicy extends
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
var _a, _b, _c, _d;
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
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 })))));
|
|
45
45
|
}
|
|
46
46
|
}, [256, "refund-policy", {
|
|
47
47
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -18,7 +18,7 @@ const SaveNewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SaveNewPayme
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'b3dd9d66db6d192d31ea2eea5d1364957b0d6048', hidden: this.hidden }, h("form-control-checkbox", { key: 'e40dbe64979cae47936ce53841e62aea25774840', label: this.label || 'Save New Payment Method', name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange })));
|
|
22
22
|
}
|
|
23
23
|
}, [256, "save-new-payment-method", {
|
|
24
24
|
"label": [1],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as create$6 } from './form.js';
|
|
2
|
-
import { P as ProvinceOptions, b as countryValidation } from './country-config.js';
|
|
2
|
+
import { P as ProvinceOptions, n as normalizePostalCode, C as CA_OR_US_POSTAL_REGEX, b as countryValidation } from './country-config.js';
|
|
3
3
|
import { S as StateOptions, a as CountryCode } from './Business.js';
|
|
4
4
|
import { b as businessServiceReceivedOptions, a as bankAccountTypeOptions } from './business-form-options.js';
|
|
5
5
|
|
|
@@ -32,7 +32,8 @@ const validateRoutingNumber = (routingNumber) => {
|
|
|
32
32
|
const phoneRegex = /^\d{10}$/;
|
|
33
33
|
const urlRegex = /^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/;
|
|
34
34
|
const numbersOnlyRegex = /^\d+$/;
|
|
35
|
-
|
|
35
|
+
// 9XX area allowed so ITINs pass
|
|
36
|
+
const ssnRegex = /^(?!000|666)\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
|
|
36
37
|
const poBoxRegex = /P\.?\s?O\.?\s?Box|Postal\sBox/i;
|
|
37
38
|
|
|
38
39
|
// Common Validations
|
|
@@ -70,6 +71,11 @@ const taxIdValidation = create$6()
|
|
|
70
71
|
.transform(transformEmptyString);
|
|
71
72
|
// Country-aware helpers (backward compatible)
|
|
72
73
|
const makePostalValidation = (country) => create$6()
|
|
74
|
+
// Normalize before matching so a stored value that predates the canonical
|
|
75
|
+
// format — 'm5v2t6', 'M5V-2T6' — still validates. Nothing in vault or
|
|
76
|
+
// entity_management ever enforced a format, and Stripe imports copy the
|
|
77
|
+
// merchant's own spelling verbatim.
|
|
78
|
+
.transform(normalizePostalCode)
|
|
73
79
|
.matches(countryValidation[country].postalRegex, 'Enter valid postal code')
|
|
74
80
|
.transform(transformEmptyString);
|
|
75
81
|
const makeIdentityNumberValidation = (country) => {
|
|
@@ -192,7 +198,8 @@ const stateValidation = create$6()
|
|
|
192
198
|
.oneOf(checkoutBillingStateOptions.map((option) => option.value), 'Select a valid state or province')
|
|
193
199
|
.transform(transformEmptyString);
|
|
194
200
|
const postalValidation = create$6()
|
|
195
|
-
.
|
|
201
|
+
.transform(normalizePostalCode)
|
|
202
|
+
.matches(CA_OR_US_POSTAL_REGEX, 'Enter valid postal code')
|
|
196
203
|
.transform(transformEmptyString);
|
|
197
204
|
// Additional Questions Validations
|
|
198
205
|
const revenueValidation = create$6()
|
|
@@ -46,7 +46,7 @@ const ShippingDetails = /*@__PURE__*/ proxyCustomElement(class ShippingDetails e
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b, _c, _d, _e;
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '6673b30e9af36cb2e560d0653776a42ab1777c22' }, h("div", { key: 'f687e69208f470a40699f870c4d09b04a0487faa', class: "row gy-3" }, h("div", { key: 'ffb1b65e29b6b912cefe862a2139e57f3d81087b', class: "col-12" }, h("h2", { key: '2cea703b6f228aa127bbdb6f8c97f3f79e05d351', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'fe2ae3034571b5ed2a8e5678ae5c32d84f750835', class: "col-12" }, h("form-control-text", { key: '3b5c43c4b8baa62a756cc2dd7edb54fc0c118ede', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '807d7e0860265cb629083bb026e812e4d2ac06ff', class: "col-12" }, h("form-control-text", { key: '5367ef8b37625d6e3ca42eb68eda5e142ff5d783', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '25e85572762af0d9964849d276dd18c5b8905d6e', class: "col-12" }, h("form-control-date", { key: '821d218825643775282742b0c63f8c803a6c47e5', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '376e527d339217b897f02f0de111ea9377539769', class: "col-12" }, h("form-control-textarea", { key: 'f0130e6c0a7ca54e20f6406fbe6276fa8cffbf61', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '74699370d18065f453e68449749d5481772c4c08', class: "col-12" }, h("form-control-file-v2", { key: '5d3f0d1a199b563c9ed433cb971f541a4cb54083', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
|
|
50
50
|
}
|
|
51
51
|
}, [256, "shipping-details", {
|
|
52
52
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -31,7 +31,7 @@ const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu
|
|
|
31
31
|
this.showClearButton = hasFilters(this.params);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: 'dfea7fc09cd4d3799af064eb413088d2e68b379e', class: "d-flex gap-2" }, h("div", { key: 'dfc0ff09dc4117ce6871167376ce0b66d2df123a', class: "dropdown pb-3" }, h("button", { key: '2796cf3464e59b95edbd77e3bc9e0d60f22a9a86', type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", part: dropdownMenuButton, "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: 'e9edff3a2c800ab9fbfd834cb55338caebac1fdc', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'abf8d0f0f059a9981897e231a2255c7f2b545a0c', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '1816909bb5bc3c9f7ddd2c37a6edc5bb00260900' })))), h("div", { key: '2e3dbb4b5b8caeacc1a64dc74e2df9f7d975b680' }, h(Button, { key: '2b588ef261aa1ff4db00a90c21ca4e6c7cc90f1e', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
|
|
35
35
|
}
|
|
36
36
|
static get watchers() { return {
|
|
37
37
|
"params": ["watchParamsHandler"]
|
|
@@ -26,7 +26,7 @@ const TerminalQuantitySelector = /*@__PURE__*/ proxyCustomElement(class Terminal
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h("div", { key: '
|
|
29
|
+
return (h("div", { key: '38cd0765871fd366af0adc09910add544ecefb93', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '5e367d97287d3fef28e4f24d78384c6d02ab1540', class: "d-flex gap-3" }, h("div", { key: 'e031d923a5a01665a7f1a37e1d7df529ba51b0b2', class: "d-flex align-items-center" }, h("img", { key: 'b520afcdbd4946105324410499aa4ede31da1a72', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '5bdb4760b16241d9cd76e70245a19555dce6f723', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: '598bab6407c43f94896a1782b60f048696361113', class: "row" }, h("div", { key: 'c340942cadb9dc0411f7d7815f1ccc9df75cbfbc', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '1f0a3deeb00abcf3e3cd01fecdeb0435f091cbac', helpText: this.description })), h("div", { key: 'df8b8567640a567a4b8f238a21c6ed57d60e444a', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: 'baf59d5ede260d44a8ebfaaf95d8d134f3ef60da', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: 'cd3f528e9a56385cd17b23eb85185c51cd0dff67', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: '6a55baa1403892f79600ff4ee85734c14a5f2ecc', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
|
|
30
30
|
}
|
|
31
31
|
}, [256, "terminal-quantity-selector", {
|
|
32
32
|
"modelName": [1, "model-name"],
|
package/dist/module/utils4.js
CHANGED
|
@@ -23,5 +23,37 @@ const numberOnlyHandler = (e) => {
|
|
|
23
23
|
e.preventDefault();
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
+
// A US ZIP+4 ("44240-5555") carries a hyphen, which numberOnlyHandler blocks,
|
|
27
|
+
// so the postal field gets its own handler: digits plus a single hyphen.
|
|
28
|
+
const zipCodeOnlyHandler = (e) => {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
const specialKeys = ['Backspace', 'Tab', 'Enter', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Delete'];
|
|
31
|
+
// Handle paste event. `ClipboardEvent` is not a global in the spec
|
|
32
|
+
// environment, so the paste branch is recognized by its payload.
|
|
33
|
+
if ('clipboardData' in e) {
|
|
34
|
+
const clipboardData = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
|
|
35
|
+
if (clipboardData && !/^\d+(-\d+)?$/.test(clipboardData)) {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
}
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
// Check if the key is a special key
|
|
41
|
+
if (specialKeys.includes(e.key)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
// Allow Ctrl+V / Command+V for pasting
|
|
45
|
+
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v') {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
// A single hyphen separates the ZIP from the +4; a second one never does.
|
|
49
|
+
const alreadyHyphenated = !!((_c = (_b = e.target) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.includes('-'));
|
|
50
|
+
if (e.key === '-' && !alreadyHyphenated) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
// Prevent default action if the key is not a digit
|
|
54
|
+
if (!/^\d$/.test(e.key)) {
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
26
58
|
|
|
27
|
-
export { numberOnlyHandler as n };
|
|
59
|
+
export { numberOnlyHandler as n, zipCodeOnlyHandler as z };
|
|
@@ -141,6 +141,7 @@ export interface IBusiness {
|
|
|
141
141
|
phone: string;
|
|
142
142
|
platform_account_id: string;
|
|
143
143
|
product_categories: ProductCategories;
|
|
144
|
+
provisioned?: string[];
|
|
144
145
|
representative?: Identity | null;
|
|
145
146
|
tax_id: string;
|
|
146
147
|
tax_id_last4: string;
|
|
@@ -178,6 +179,7 @@ export declare class Business implements IBusiness {
|
|
|
178
179
|
product_categories: ProductCategories;
|
|
179
180
|
country_of_establishment?: CountryCode;
|
|
180
181
|
bank_account_verification?: boolean;
|
|
182
|
+
provisioned: string[];
|
|
181
183
|
constructor(business: IBusiness);
|
|
182
184
|
get payload(): {
|
|
183
185
|
tax_id_last4: string;
|
|
@@ -57,9 +57,9 @@ export interface ICheckout {
|
|
|
57
57
|
credit_card_payments: boolean;
|
|
58
58
|
insurance_payments?: boolean;
|
|
59
59
|
bank_account_verification?: boolean;
|
|
60
|
-
apple_payments
|
|
61
|
-
google_payments
|
|
62
|
-
paypal_payments
|
|
60
|
+
apple_payments: boolean;
|
|
61
|
+
google_payments: boolean;
|
|
62
|
+
paypal_payments: boolean;
|
|
63
63
|
};
|
|
64
64
|
bnpl?: IBnpl;
|
|
65
65
|
paypal?: {
|
|
@@ -94,9 +94,9 @@ export declare class Checkout implements ICheckout {
|
|
|
94
94
|
credit_card_payments: boolean;
|
|
95
95
|
insurance_payments?: boolean;
|
|
96
96
|
bank_account_verification?: boolean;
|
|
97
|
-
apple_payments
|
|
98
|
-
google_payments
|
|
99
|
-
paypal_payments
|
|
97
|
+
apple_payments: boolean;
|
|
98
|
+
google_payments: boolean;
|
|
99
|
+
paypal_payments: boolean;
|
|
100
100
|
};
|
|
101
101
|
bnpl?: IBnpl;
|
|
102
102
|
paypal?: {
|
|
@@ -115,7 +115,7 @@ export declare class Checkout implements ICheckout {
|
|
|
115
115
|
completions?: ICompletion[];
|
|
116
116
|
sub_account_name?: string;
|
|
117
117
|
constructor(data: ICheckout);
|
|
118
|
-
get payment_mode(): ICheckoutPaymentMode;
|
|
118
|
+
get payment_mode(): ICheckoutPaymentMode | null;
|
|
119
119
|
formattedPaymentAmount(amount: number): string;
|
|
120
120
|
}
|
|
121
121
|
export declare enum ICheckoutPaymentMode {
|
|
@@ -5,21 +5,28 @@ export declare class BankAccountForm {
|
|
|
5
5
|
iframeOrigin: string;
|
|
6
6
|
tabId: string;
|
|
7
7
|
iframeState: 'loading' | 'ready' | 'error';
|
|
8
|
+
showAccountNumberConfirmation?: boolean;
|
|
8
9
|
private accountNumberIframeElement;
|
|
10
|
+
private accountNumberConfirmationIframeElement?;
|
|
9
11
|
private routingNumberIframeElement;
|
|
10
12
|
private hasLoggedAchDisabledWarning;
|
|
11
13
|
private loadAbortController?;
|
|
14
|
+
private loadedInputIds;
|
|
15
|
+
private watchedInputIds;
|
|
12
16
|
componentWillLoad(): Promise<void>;
|
|
13
17
|
componentDidRender(): void;
|
|
14
18
|
disconnectedCallback(): void;
|
|
15
19
|
private isAchDisabledForCheckout;
|
|
16
|
-
validate(): Promise<
|
|
20
|
+
validate(): Promise<{
|
|
21
|
+
isValid: boolean;
|
|
22
|
+
}>;
|
|
17
23
|
tokenize({ clientId, paymentMethodMetadata, account }: {
|
|
18
24
|
clientId: string;
|
|
19
25
|
paymentMethodMetadata: any;
|
|
20
26
|
account?: string;
|
|
21
27
|
}): Promise<any>;
|
|
22
28
|
private get isReady();
|
|
29
|
+
private get expectedIframeCount();
|
|
23
30
|
private get iframeElements();
|
|
24
31
|
private watchIframesLoad;
|
|
25
32
|
private reloadIframes;
|
|
@@ -5,6 +5,8 @@ export declare class CardForm {
|
|
|
5
5
|
iframeOrigin: string;
|
|
6
6
|
tabId: string;
|
|
7
7
|
iframeState: 'loading' | 'ready' | 'error';
|
|
8
|
+
/** Mask the card number to its last four digits when the field blurs. */
|
|
9
|
+
maskCardNumber?: boolean;
|
|
8
10
|
private cardNumberIframeElement;
|
|
9
11
|
private expirationMonthIframeElement;
|
|
10
12
|
private expirationYearIframeElement;
|
|
@@ -13,7 +15,9 @@ export declare class CardForm {
|
|
|
13
15
|
componentWillLoad(): Promise<void>;
|
|
14
16
|
componentDidLoad(): void;
|
|
15
17
|
disconnectedCallback(): void;
|
|
16
|
-
validate(): Promise<
|
|
18
|
+
validate(): Promise<{
|
|
19
|
+
isValid: boolean;
|
|
20
|
+
}>;
|
|
17
21
|
tokenize({ clientId, paymentMethodMetadata, account, }: {
|
|
18
22
|
clientId: string;
|
|
19
23
|
paymentMethodMetadata: any;
|
|
@@ -29,6 +29,8 @@ export declare class JustifiCheckout {
|
|
|
29
29
|
/** Passed to `justifi-google-pay` as `environment`. Omit to let the child use its default. */
|
|
30
30
|
googlePayEnv?: 'TEST' | 'PRODUCTION';
|
|
31
31
|
preCompleteHook?: Hook<CheckoutState>;
|
|
32
|
+
/** Renders a "Confirm Account Number" field in the bank account form. */
|
|
33
|
+
showAccountNumberConfirmation?: boolean;
|
|
32
34
|
propChanged(): void;
|
|
33
35
|
errorEvent: EventEmitter<ComponentErrorEvent>;
|
|
34
36
|
loadedEvent: EventEmitter<ILoadedEventResponse>;
|
|
@@ -6,7 +6,7 @@ import { ComponentClickEvent, ComponentErrorEvent } from '../../api/ComponentEve
|
|
|
6
6
|
export declare class JustifiCheckoutsList {
|
|
7
7
|
accountId: string;
|
|
8
8
|
authToken: string;
|
|
9
|
-
columns
|
|
9
|
+
columns: string;
|
|
10
10
|
subAccountId?: string;
|
|
11
11
|
checkouts: Checkout[];
|
|
12
12
|
checkoutsTable: Table<Checkout>;
|
|
@@ -19,6 +19,15 @@ export declare class JustifiModularCheckout {
|
|
|
19
19
|
authToken: string;
|
|
20
20
|
checkoutId: string;
|
|
21
21
|
preCompleteHook?: Hook<CheckoutState>;
|
|
22
|
+
/**
|
|
23
|
+
* Mask the card number to its last four digits when the field loses focus,
|
|
24
|
+
* with an eye toggle to reveal it. Applies to the `justifi-card-form`
|
|
25
|
+
* rendered inside this checkout. Defaults to false.
|
|
26
|
+
*
|
|
27
|
+
* Anti-shoulder-surfing only, not a secrecy boundary.
|
|
28
|
+
*/
|
|
29
|
+
maskCardNumber?: boolean;
|
|
30
|
+
maskCardNumberChanged(): void;
|
|
22
31
|
hostEl: HTMLElement;
|
|
23
32
|
errorEvent: EventEmitter;
|
|
24
33
|
submitEvent: EventEmitter;
|