@justifi/webcomponents 6.15.0 → 6.16.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-BjZHa0wt.js → Analytics-jQsZxClw.js} +2 -2
- package/dist/cjs/{Api-us3AxMRC.js → Api-DqXlEWR1.js} +1 -1
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +8 -8
- package/dist/cjs/additional-questions_4.cjs.entry.js +1 -1
- package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +13 -7
- package/dist/cjs/bank-account-form.cjs.entry.js +66 -12
- package/dist/cjs/{business-identity-schema-XiCLzxWM.js → business-identity-schema-DuOIMFjG.js} +2 -2
- package/dist/cjs/{business.service-_Sl3vWmu.js → business.service-Ca-olopC.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +14 -10
- package/dist/cjs/{checkout.service-B_qymeqJ.js → checkout.service-DBHPH2ji.js} +1 -1
- package/dist/cjs/{checkout.store-DaV9lvEQ.js → checkout.store-B5lTwvUV.js} +1 -0
- package/dist/cjs/{country-config-DQQujh5h.js → country-config-CFC3KuVD.js} +24 -2
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/detect-duplicate-version-D8ZajVUT.js +29 -0
- package/dist/cjs/dispute-notification_2.cjs.entry.js +9 -9
- package/dist/cjs/{event-types-DmY59QXs.js → event-types-luy3xnYR.js} +1 -1
- package/dist/cjs/form-address-fields_3.cjs.entry.js +5 -5
- package/dist/cjs/form-alert_3.cjs.entry.js +116 -15
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +1 -1
- package/dist/cjs/form-control-file.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +22 -6
- package/dist/cjs/{get-subaccounts-BMY2bOFj.js → get-subaccounts-D11aTYj1.js} +1 -1
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +41 -25
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -7
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -7
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +9 -6
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +6 -6
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -6
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-30T__1wH.js → package-B414Jbra.js} +1 -3
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-DRXVT-uB.js → payment.service-CNTe8vrp.js} +1 -1
- package/dist/cjs/{payout.service-CuQ-mXKB.js → payout.service-BmU3q9jO.js} +1 -1
- package/dist/cjs/{plaid.service-B58nzlUE.js → plaid.service-d9LAwbnX.js} +1 -1
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/{schema-validations-sjRvL4KO.js → schema-validations-BDFa_oIq.js} +8 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-CmtSEgTc.js → terminal.service-BkQWZv9b.js} +1 -1
- package/dist/cjs/utils-Ct_X5q0U.js +62 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/business-details/justifi-business-details.js +3 -3
- package/dist/collection/components/business-forms/business-form/justifi-business-form.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +2 -2
- package/dist/collection/components/business-forms/schemas/schema-validations.js +8 -1
- package/dist/collection/components/business-forms/utils/country-config.js +3 -2
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +90 -12
- package/dist/collection/components/checkout/billing-form/billing-form-full.js +6 -2
- package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +6 -2
- package/dist/collection/components/checkout/card-form/card-form.js +39 -11
- package/dist/collection/components/checkout/justifi-checkout.js +26 -4
- package/dist/collection/components/checkout/message-event-types.js +2 -0
- package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout-qr-code/justifi-checkout-qr-code.js +2 -2
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +4 -4
- package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +3 -3
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +3 -3
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +2 -2
- package/dist/collection/components/insurance/season-interruption/justifi-season-interruption-insurance.js +2 -2
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +50 -12
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +3 -3
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +33 -6
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +28 -3
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +1 -1
- package/dist/collection/components/order-terminals/justifi-order-terminals.js +3 -3
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/justifi-payment-details.js +10 -10
- package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +3 -3
- package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/justifi-payments-list.js +3 -3
- package/dist/collection/components/payout-details/justifi-payout-details.js +5 -5
- package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +3 -3
- package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/justifi-payouts-list.js +3 -3
- package/dist/collection/components/qr-terminal/justifi-qr-terminal.js +2 -2
- package/dist/collection/components/refund-payment/justifi-refund-payment.js +2 -2
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +4 -4
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +3 -3
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +45 -6
- package/dist/collection/store/checkout.store.js +1 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +37 -4
- package/dist/collection/ui-components/form/iframe-input.js +136 -14
- package/dist/collection/ui-components/form/utils.js +32 -0
- package/dist/collection/ui-components/internal-button.js +1 -1
- package/dist/collection/ui-components/radio-list-item.js +1 -1
- package/dist/collection/utils/detect-duplicate-version.js +24 -0
- package/dist/collection/utils/postal-code.js +19 -0
- package/dist/docs.json +286 -17
- package/dist/esm/{Analytics-BtMYbHD0.js → Analytics-DihSSvAP.js} +2 -2
- package/dist/esm/{Api-nVK-rgbk.js → Api-INJHjnya.js} +1 -1
- package/dist/esm/additional-questions-form-step_15.entry.js +8 -8
- package/dist/esm/additional-questions_4.entry.js +1 -1
- package/dist/esm/additional-statement_8.entry.js +8 -8
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +13 -7
- package/dist/esm/bank-account-form.entry.js +66 -12
- package/dist/esm/{business-identity-schema-BP61Unwf.js → business-identity-schema-BLKCH6xV.js} +2 -2
- package/dist/esm/{business.service-Cq7H5w1T.js → business.service-C8f7OSEu.js} +1 -1
- package/dist/esm/card-form.entry.js +14 -10
- package/dist/esm/{checkout.service-JA7oTq5d.js → checkout.service-BYDkC7uy.js} +1 -1
- package/dist/esm/{checkout.store-B2mtQcB5.js → checkout.store-B8CGkx0o.js} +1 -0
- package/dist/esm/{country-config-F5YwgHgR.js → country-config-DJFj1v-Q.js} +23 -3
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/detect-duplicate-version-C4r1WAzO.js +27 -0
- package/dist/esm/dispute-notification_2.entry.js +9 -9
- package/dist/esm/{event-types-Dsf8IwD6.js → event-types-S8CgMbPg.js} +1 -1
- package/dist/esm/form-address-fields_3.entry.js +5 -5
- package/dist/esm/form-alert_3.entry.js +116 -15
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +1 -1
- package/dist/esm/form-control-file.entry.js +2 -2
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/form-control-number_2.entry.js +3 -3
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +22 -6
- package/dist/esm/{get-subaccounts-B-S2TGRa.js → get-subaccounts-BHWiH8q9.js} +1 -1
- package/dist/esm/internal-button.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_12.entry.js +41 -25
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +8 -7
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +7 -7
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +9 -6
- package/dist/esm/justifi-checkout-qr-code.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +10 -8
- package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +9 -9
- package/dist/esm/justifi-dispute-management.entry.js +7 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +8 -8
- package/dist/esm/justifi-payment-details.entry.js +14 -14
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
- package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +7 -7
- package/dist/esm/justifi-payout-details.entry.js +9 -9
- package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +8 -8
- package/dist/esm/justifi-qr-terminal.entry.js +6 -6
- package/dist/esm/justifi-refund-payment.entry.js +6 -6
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-BQpbTebi.js +5 -0
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment.service-B42sKlQE.js → payment.service-CQXRsu6Y.js} +1 -1
- package/dist/esm/{payout.service-BIoAgNJJ.js → payout.service-RRyWfpEK.js} +1 -1
- package/dist/esm/{plaid.service-C6Ltk2ef.js → plaid.service-Cg3E3Plo.js} +1 -1
- package/dist/esm/radio-list-item.entry.js +1 -1
- package/dist/esm/save-new-payment-method.entry.js +2 -2
- package/dist/esm/{schema-validations-De7Qe0VU.js → schema-validations-8GJ34Do1.js} +8 -2
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-DV3qIwBy.js → terminal.service-Dy6D8bnl.js} +1 -1
- package/dist/esm/utils-Cpck08K0.js +59 -0
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/additional-statement2.js +1 -1
- package/dist/module/bank-account-form2.js +65 -10
- package/dist/module/billing-form-full2.js +6 -2
- package/dist/module/cancellation-policy2.js +1 -1
- package/dist/module/card-billing-form-simple2.js +6 -2
- package/dist/module/card-form2.js +14 -9
- package/dist/module/checkout.store.js +1 -0
- package/dist/module/country-config.js +23 -3
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details2.js +1 -1
- package/dist/module/detect-duplicate-version.js +27 -0
- package/dist/module/dispute-notification2.js +2 -2
- package/dist/module/dispute-response2.js +3 -3
- package/dist/module/duplicate-charge2.js +1 -1
- package/dist/module/electronic-evidence2.js +1 -1
- package/dist/module/form-address-fields2.js +3 -3
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number2.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +21 -4
- package/dist/module/iframe-input2.js +119 -15
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-bank-account-billing-form-simple.js +3 -3
- package/dist/module/justifi-bank-account-form.js +6 -4
- package/dist/module/justifi-billing-form-full.js +1 -1
- package/dist/module/justifi-business-details.js +3 -3
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-card-billing-form-simple.js +1 -1
- package/dist/module/justifi-card-form.js +6 -3
- package/dist/module/justifi-checkout-qr-code2.js +2 -2
- package/dist/module/justifi-checkout-summary2.js +1 -1
- package/dist/module/justifi-checkout.js +7 -4
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +4 -4
- package/dist/module/justifi-dispute-management.js +3 -3
- package/dist/module/justifi-gross-payment-chart.js +2 -2
- package/dist/module/justifi-modular-checkout2.js +30 -12
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +10 -10
- package/dist/module/justifi-payment-provisioning.js +2 -2
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +3 -3
- package/dist/module/justifi-payout-details.js +5 -5
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +3 -3
- package/dist/module/justifi-paypal2.js +1 -1
- package/dist/module/justifi-qr-terminal.js +2 -2
- package/dist/module/justifi-refund-payment.js +2 -2
- package/dist/module/justifi-save-new-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -2
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +4 -4
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +3 -3
- package/dist/module/justifi-tokenize-payment-method2.js +9 -6
- package/dist/module/package.js +1 -3
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/product-or-service2.js +1 -1
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/refund-policy2.js +1 -1
- package/dist/module/save-new-payment-method2.js +1 -1
- package/dist/module/schema-validations.js +8 -2
- package/dist/module/shipping-details2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/utils4.js +33 -1
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +8 -1
- package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
- package/dist/types/components/checkout/justifi-checkout.d.ts +2 -0
- package/dist/types/components/checkout/message-event-types.d.ts +2 -0
- package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +9 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts +4 -1
- package/dist/types/components/modular-checkout/sub-components/justifi-card-form.d.ts +9 -0
- package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +9 -0
- package/dist/types/components.d.ts +85 -3
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/ui-components/form/form-control-text.d.ts +1 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +24 -0
- package/dist/types/ui-components/form/utils.d.ts +1 -0
- package/dist/types/utils/detect-duplicate-version.d.ts +7 -0
- package/dist/types/utils/postal-code.d.ts +3 -0
- package/dist/webcomponents/p-12daf522.entry.js +1 -0
- package/dist/webcomponents/p-1a1aef42.entry.js +1 -0
- package/dist/webcomponents/p-1ceb65cc.entry.js +1 -0
- package/dist/webcomponents/{p-0f7e3515.entry.js → p-1ff1dcc5.entry.js} +4 -4
- package/dist/webcomponents/{p-777470cb.entry.js → p-2272a65b.entry.js} +1 -1
- package/dist/webcomponents/{p-c4889a06.entry.js → p-2d25f1d1.entry.js} +1 -1
- package/dist/webcomponents/{p-f2b3c7d5.entry.js → p-30ec1cd6.entry.js} +1 -1
- package/dist/webcomponents/p-357d14ee.entry.js +1 -0
- package/dist/webcomponents/{p-ead48010.entry.js → p-4450dbe9.entry.js} +1 -1
- package/dist/webcomponents/p-4c7e7880.entry.js +1 -0
- package/dist/webcomponents/{p-6c7fca1a.entry.js → p-4d85dd63.entry.js} +1 -1
- package/dist/webcomponents/p-521c534c.entry.js +1 -0
- package/dist/webcomponents/p-5babaaa9.entry.js +1 -0
- package/dist/webcomponents/{p-88a44a02.entry.js → p-5e8f26ec.entry.js} +1 -1
- package/dist/webcomponents/p-622c2af4.entry.js +1 -0
- package/dist/webcomponents/{p-9e3e2e32.entry.js → p-6aaf2758.entry.js} +1 -1
- package/dist/webcomponents/p-6bfdc443.entry.js +1 -0
- package/dist/webcomponents/{p-42021e67.entry.js → p-6f3b035b.entry.js} +1 -1
- package/dist/webcomponents/p-73af269e.entry.js +1 -0
- package/dist/webcomponents/{p-a7c594d1.entry.js → p-7ff788f8.entry.js} +1 -1
- package/dist/webcomponents/{p-a10beb26.entry.js → p-846ae5d5.entry.js} +1 -1
- package/dist/webcomponents/p-8758aec4.entry.js +1 -0
- package/dist/webcomponents/p-87f8d4e7.entry.js +1 -0
- package/dist/webcomponents/p-8c22ff9c.entry.js +1 -0
- package/dist/webcomponents/p-91358854.entry.js +1 -0
- package/dist/webcomponents/{p-13814028.entry.js → p-956707a2.entry.js} +1 -1
- package/dist/webcomponents/p-9c1863d5.entry.js +1 -0
- package/dist/webcomponents/{p-B_2zgnvM.js → p-BG8NxEUn.js} +1 -1
- package/dist/webcomponents/{p-DC2djVls.js → p-BKtKrQzN.js} +1 -1
- package/dist/webcomponents/p-BQpbTebi.js +1 -0
- package/dist/webcomponents/{p-BjjKkMO1.js → p-Bh5BNj74.js} +1 -1
- package/dist/webcomponents/{p-C6Jq8YDT.js → p-BtiJJJwv.js} +1 -1
- package/dist/webcomponents/p-BzESNgd8.js +1 -0
- package/dist/webcomponents/p-CkrzG0pB.js +1 -0
- package/dist/webcomponents/{p-D694H6co.js → p-Cl6irPVE.js} +1 -1
- package/dist/webcomponents/p-Cpck08K0.js +1 -0
- package/dist/webcomponents/{p-D7fNBSlC.js → p-Cy_sz0Tx.js} +1 -1
- package/dist/webcomponents/{p-pueOrhXO.js → p-D42DvqTW.js} +1 -1
- package/dist/webcomponents/{p-C60AkJ6a.js → p-DBudSN_h.js} +1 -1
- package/dist/webcomponents/p-DMzYgqml.js +1 -0
- package/dist/webcomponents/p-FsWkrvEF.js +1 -0
- package/dist/webcomponents/{p-BmaQUnqv.js → p-MLQyjvrV.js} +1 -1
- package/dist/webcomponents/p-a095b86d.entry.js +1 -0
- package/dist/webcomponents/p-a1e1afa4.entry.js +1 -0
- package/dist/webcomponents/p-a2c4e99f.entry.js +1 -0
- package/dist/webcomponents/p-a8f1c9b3.entry.js +1 -0
- package/dist/webcomponents/{p-f5cb6a26.entry.js → p-b665841f.entry.js} +1 -1
- package/dist/webcomponents/p-b925d666.entry.js +1 -0
- package/dist/webcomponents/p-bc3e46af.entry.js +1 -0
- package/dist/webcomponents/p-c172decb.entry.js +1 -0
- package/dist/webcomponents/p-c9871158.entry.js +1 -0
- package/dist/webcomponents/p-d19d7d41.entry.js +1 -0
- package/dist/webcomponents/{p-f40fa614.entry.js → p-d35cde99.entry.js} +1 -1
- package/dist/webcomponents/{p-1cfa634a.entry.js → p-d48f80d1.entry.js} +1 -1
- package/dist/webcomponents/{p-cec7164e.entry.js → p-dae31a59.entry.js} +1 -1
- package/dist/webcomponents/p-deff4422.entry.js +1 -0
- package/dist/webcomponents/{p-1365a46b.entry.js → p-e3c7b4e5.entry.js} +1 -1
- package/dist/webcomponents/p-e6d1e3e2.entry.js +1 -0
- package/dist/webcomponents/{p-97c6593d.entry.js → p-ebae270b.entry.js} +1 -1
- package/dist/webcomponents/p-ebed68aa.entry.js +1 -0
- package/dist/webcomponents/{p-16261d8a.entry.js → p-f0084d20.entry.js} +1 -1
- package/dist/webcomponents/{p-065b854f.entry.js → p-f0da2ca5.entry.js} +1 -1
- package/dist/webcomponents/{p-9b43b90d.entry.js → p-f23d7d13.entry.js} +1 -1
- package/dist/webcomponents/p-f2c99647.entry.js +1 -0
- package/dist/webcomponents/p-f458928d.entry.js +1 -0
- package/dist/webcomponents/{p-429046e1.entry.js → p-f5686720.entry.js} +1 -1
- package/dist/webcomponents/p-f681f747.entry.js +1 -0
- package/dist/webcomponents/{p-0e9351c4.entry.js → p-f6efd9e0.entry.js} +1 -1
- package/dist/webcomponents/{p-a71cc8e2.entry.js → p-fa0427d5.entry.js} +1 -1
- package/dist/webcomponents/p-fb1f2fe8.entry.js +1 -0
- package/dist/webcomponents/p-fcc5af24.entry.js +1 -0
- package/dist/webcomponents/{p-iA-Amt2z.js → p-hdPjEOdB.js} +1 -1
- package/dist/webcomponents/{p-rFpPIJgu.js → p-l3JhjHLW.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +14 -14
- package/LICENSE +0 -21
- package/dist/cjs/check-pkg-version-CjJab8fX.js +0 -47
- package/dist/cjs/utils-DAyWinG2.js +0 -29
- package/dist/collection/utils/check-pkg-version.js +0 -42
- package/dist/esm/check-pkg-version-BW9zgceK.js +0 -45
- package/dist/esm/package-BC9n8nB2.js +0 -7
- package/dist/esm/utils-BnjCmwMr.js +0 -27
- package/dist/module/check-pkg-version.js +0 -45
- package/dist/types/utils/check-pkg-version.d.ts +0 -1
- package/dist/webcomponents/p-082f912c.entry.js +0 -1
- package/dist/webcomponents/p-0cd689f4.entry.js +0 -1
- package/dist/webcomponents/p-0fbc806f.entry.js +0 -1
- package/dist/webcomponents/p-10787684.entry.js +0 -1
- package/dist/webcomponents/p-19cabdaf.entry.js +0 -1
- package/dist/webcomponents/p-1fa62eba.entry.js +0 -1
- package/dist/webcomponents/p-2ef913b8.entry.js +0 -1
- package/dist/webcomponents/p-36340e63.entry.js +0 -1
- package/dist/webcomponents/p-388082cd.entry.js +0 -1
- package/dist/webcomponents/p-3a1f8c5b.entry.js +0 -1
- package/dist/webcomponents/p-3f2fb856.entry.js +0 -1
- package/dist/webcomponents/p-44ff4f2c.entry.js +0 -1
- package/dist/webcomponents/p-4740601b.entry.js +0 -1
- package/dist/webcomponents/p-59b95eae.entry.js +0 -1
- package/dist/webcomponents/p-72bb4aff.entry.js +0 -1
- package/dist/webcomponents/p-735d397e.entry.js +0 -1
- package/dist/webcomponents/p-8432cb42.entry.js +0 -1
- package/dist/webcomponents/p-89f0c2aa.entry.js +0 -1
- package/dist/webcomponents/p-9db15fac.entry.js +0 -1
- package/dist/webcomponents/p-9eb00966.entry.js +0 -1
- package/dist/webcomponents/p-9f0ef3f3.entry.js +0 -1
- package/dist/webcomponents/p-BAvoKtN2.js +0 -1
- package/dist/webcomponents/p-BC9n8nB2.js +0 -1
- package/dist/webcomponents/p-BnjCmwMr.js +0 -1
- package/dist/webcomponents/p-Fpaf7CLD.js +0 -1
- package/dist/webcomponents/p-_MjmE9YT.js +0 -1
- package/dist/webcomponents/p-a8d25057.entry.js +0 -1
- package/dist/webcomponents/p-acb0b66c.entry.js +0 -1
- package/dist/webcomponents/p-b9ba7c95.entry.js +0 -1
- package/dist/webcomponents/p-c385f10d.entry.js +0 -1
- package/dist/webcomponents/p-c55fdbbf.entry.js +0 -1
- package/dist/webcomponents/p-ca6c5365.entry.js +0 -1
- package/dist/webcomponents/p-d3544e86.entry.js +0 -1
- package/dist/webcomponents/p-de047614.entry.js +0 -1
- package/dist/webcomponents/p-f0434a13.entry.js +0 -1
- package/dist/webcomponents/p-f9f310dc.entry.js +0 -1
- package/dist/webcomponents/p-fda6f27d.entry.js +0 -1
- package/dist/webcomponents/p-riZDHN5-.js +0 -1
|
@@ -3,7 +3,7 @@ import { al as alertDanger, a3 as inputInvalidAndFocused, q as inputInvalid, v a
|
|
|
3
3
|
import { c as createStore } from './index-3wWWWrhn.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
5
5
|
import { F as FormControlErrorText } from './form-control-error-text-FyanxO4T.js';
|
|
6
|
-
import { p as packageJson } from './package-
|
|
6
|
+
import { p as packageJson } from './package-BQpbTebi.js';
|
|
7
7
|
|
|
8
8
|
const FormAlert = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -1667,6 +1667,8 @@ class FrameCommunicationService {
|
|
|
1667
1667
|
const MessageEventType = {
|
|
1668
1668
|
tokenize: 'tokenize',
|
|
1669
1669
|
validate: 'validate',
|
|
1670
|
+
/** Opts a hosted field into mask-on-blur. Carries no card data. */
|
|
1671
|
+
setMaskCardNumber: 'setMaskCardNumber',
|
|
1670
1672
|
};
|
|
1671
1673
|
|
|
1672
1674
|
const IframeInput = class {
|
|
@@ -1675,11 +1677,24 @@ const IframeInput = class {
|
|
|
1675
1677
|
this.iframeLoaded = createEvent(this, "iframeLoaded", 7);
|
|
1676
1678
|
this.isFocused = false;
|
|
1677
1679
|
this.isValid = true;
|
|
1680
|
+
/**
|
|
1681
|
+
* Opt this field into masking its value to the last four characters when it
|
|
1682
|
+
* loses focus. Forwarded to the hosted field, which owns the behavior.
|
|
1683
|
+
*/
|
|
1684
|
+
this.maskCardNumber = false;
|
|
1685
|
+
this.hasLoaded = false;
|
|
1678
1686
|
this.dispatchMessageEvent = (event) => {
|
|
1679
1687
|
const { eventType, data } = event.data;
|
|
1680
1688
|
if ((data === null || data === void 0 ? void 0 : data.id) !== this.inputId) {
|
|
1681
1689
|
return;
|
|
1682
1690
|
}
|
|
1691
|
+
if (eventType === 'loaded') {
|
|
1692
|
+
this.hasLoaded = true;
|
|
1693
|
+
// Re-sent on every load, not just the first: componentDidRender swaps
|
|
1694
|
+
// the iframe src once the style store fills, so the frame can reload
|
|
1695
|
+
// and would otherwise come back without the flag.
|
|
1696
|
+
this.sendMaskCardNumber();
|
|
1697
|
+
}
|
|
1683
1698
|
if (eventType === 'focused') {
|
|
1684
1699
|
this.isFocused = true;
|
|
1685
1700
|
}
|
|
@@ -1688,8 +1703,91 @@ const IframeInput = class {
|
|
|
1688
1703
|
}
|
|
1689
1704
|
};
|
|
1690
1705
|
}
|
|
1706
|
+
maskCardNumberChanged() {
|
|
1707
|
+
if (this.hasLoaded)
|
|
1708
|
+
this.sendMaskCardNumber();
|
|
1709
|
+
}
|
|
1710
|
+
/**
|
|
1711
|
+
* The <iframe> is created in the LIGHT DOM and slotted in: an iframe inside a
|
|
1712
|
+
* shadow tree is invisible to `window.frames` (spec), so siblings could not
|
|
1713
|
+
* resolve it. The ::part wrappers stay in the shadow tree — theming untouched.
|
|
1714
|
+
*/
|
|
1715
|
+
componentDidLoad() {
|
|
1716
|
+
const iframe = document.createElement('iframe');
|
|
1717
|
+
iframe.setAttribute('name', this.inputId);
|
|
1718
|
+
iframe.setAttribute('width', '100%');
|
|
1719
|
+
// Light-DOM element: merchant CSS reaches it, so pin the box inline.
|
|
1720
|
+
iframe.style.border = '0';
|
|
1721
|
+
iframe.style.display = 'block';
|
|
1722
|
+
iframe.style.width = '100%';
|
|
1723
|
+
iframe.style.boxSizing = 'border-box';
|
|
1724
|
+
iframe.addEventListener('load', () => {
|
|
1725
|
+
iFrameResize({
|
|
1726
|
+
log: false,
|
|
1727
|
+
onResized: () => {
|
|
1728
|
+
this.iframeLoaded.emit();
|
|
1729
|
+
}
|
|
1730
|
+
}, iframe);
|
|
1731
|
+
});
|
|
1732
|
+
this.iframeElement = iframe;
|
|
1733
|
+
this.initializeFrameCommunicationService();
|
|
1734
|
+
iframe.setAttribute('src', this.iframeSrc);
|
|
1735
|
+
this.mountIframe();
|
|
1736
|
+
}
|
|
1737
|
+
/**
|
|
1738
|
+
* Stencil runs componentDidLoad once per instance; a DOM move (framework
|
|
1739
|
+
* reparenting, list reorder) fires disconnected → connected on the same
|
|
1740
|
+
* instance, so the iframe has to be put back by hand.
|
|
1741
|
+
*/
|
|
1742
|
+
connectedCallback() {
|
|
1743
|
+
var _a;
|
|
1744
|
+
if (this.iframeElement && !this.iframeElement.isConnected) {
|
|
1745
|
+
(_a = this.frameService) === null || _a === void 0 ? void 0 : _a.addMessageListener(this.dispatchMessageEvent);
|
|
1746
|
+
this.mountIframe();
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
mountIframe() {
|
|
1750
|
+
const root = this.el.getRootNode();
|
|
1751
|
+
// Duck-typed: ShadowRoot is not a global in Stencil's mock-doc.
|
|
1752
|
+
const host = root.nodeType === 11 && root.host ? root.host : null;
|
|
1753
|
+
const iframe = this.iframeElement;
|
|
1754
|
+
if (host) {
|
|
1755
|
+
if (host.getRootNode() !== document) {
|
|
1756
|
+
// A host nested in another shadow tree keeps the iframe out of the
|
|
1757
|
+
// document tree; sibling fields fall back to BroadcastChannel.
|
|
1758
|
+
console.warn(`[justifi] hosted field "${this.inputId}" is inside a nested shadow tree; window.frames cannot reach it`);
|
|
1759
|
+
}
|
|
1760
|
+
// Real <slot> element, not JSX: Stencil's slot polyfill for shadow:false
|
|
1761
|
+
// components would otherwise replace it with a virtual slot.
|
|
1762
|
+
if (!this.wrapperElement.querySelector(`slot[name="${this.inputId}"]`)) {
|
|
1763
|
+
const slot = document.createElement('slot');
|
|
1764
|
+
slot.name = this.inputId;
|
|
1765
|
+
this.wrapperElement.appendChild(slot);
|
|
1766
|
+
}
|
|
1767
|
+
iframe.setAttribute('slot', this.inputId);
|
|
1768
|
+
host.appendChild(iframe);
|
|
1769
|
+
}
|
|
1770
|
+
else {
|
|
1771
|
+
iframe.removeAttribute('slot');
|
|
1772
|
+
this.wrapperElement.appendChild(iframe);
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
componentDidRender() {
|
|
1776
|
+
// iframeSrc depends on the iframeInputStyles store, which is filled after
|
|
1777
|
+
// first paint; keep the light-DOM iframe in sync like the old JSX src did.
|
|
1778
|
+
if (this.iframeElement && this.iframeElement.getAttribute('src') !== this.renderedSrc) {
|
|
1779
|
+
this.iframeElement.setAttribute('src', this.renderedSrc);
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1691
1782
|
disconnectedCallback() {
|
|
1692
|
-
|
|
1783
|
+
var _a, _b, _c, _d, _e;
|
|
1784
|
+
// Stencil defers this call; on a DOM move the element is already back in
|
|
1785
|
+
// the document (its light-DOM iframe moved with the host), so leave it be.
|
|
1786
|
+
if (this.el.isConnected)
|
|
1787
|
+
return;
|
|
1788
|
+
(_a = this.frameService) === null || _a === void 0 ? void 0 : _a.removeMessageListener(this.dispatchMessageEvent);
|
|
1789
|
+
(_d = (_c = (_b = this.iframeElement) === null || _b === void 0 ? void 0 : _b.iFrameResizer) === null || _c === void 0 ? void 0 : _c.removeListeners) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
1790
|
+
(_e = this.iframeElement) === null || _e === void 0 ? void 0 : _e.remove();
|
|
1693
1791
|
}
|
|
1694
1792
|
async validate() {
|
|
1695
1793
|
const response = await this.frameService
|
|
@@ -1714,6 +1812,12 @@ const IframeInput = class {
|
|
|
1714
1812
|
this.frameService = new FrameCommunicationService(this.iframeElement, this.iframeOrigin);
|
|
1715
1813
|
(_a = this.frameService) === null || _a === void 0 ? void 0 : _a.addMessageListener(this.dispatchMessageEvent);
|
|
1716
1814
|
}
|
|
1815
|
+
sendMaskCardNumber() {
|
|
1816
|
+
var _a;
|
|
1817
|
+
(_a = this.frameService) === null || _a === void 0 ? void 0 : _a.postMessage(MessageEventType.setMaskCardNumber, {
|
|
1818
|
+
enabled: !!this.maskCardNumber,
|
|
1819
|
+
});
|
|
1820
|
+
}
|
|
1717
1821
|
get part() {
|
|
1718
1822
|
if (this.isFocused && !this.isValid) {
|
|
1719
1823
|
return inputInvalidAndFocused;
|
|
@@ -1745,25 +1849,22 @@ const IframeInput = class {
|
|
|
1745
1849
|
return params;
|
|
1746
1850
|
}
|
|
1747
1851
|
get iframeSrc() {
|
|
1748
|
-
|
|
1852
|
+
// iframeOrigin already carries ?tabId=…; a second '?' would fold the
|
|
1853
|
+
// style params into the tabId value on the iframe side.
|
|
1854
|
+
const separator = this.iframeOrigin.includes('?') ? '&' : '?';
|
|
1855
|
+
return `${this.iframeOrigin}${separator}${this.urlParams}`;
|
|
1749
1856
|
}
|
|
1750
1857
|
render() {
|
|
1751
|
-
|
|
1858
|
+
this.renderedSrc = this.iframeSrc;
|
|
1859
|
+
return (h(Host, { key: '4e4844f10dec9ddcb6f3f4ccaa5ffe7f254f1a33', class: "form-group d-flex flex-column" }, h("div", { key: '65cf8392e8e5925560a2bfa80fb15209ec14e267', style: {
|
|
1752
1860
|
visibility: this.iframeLoaded ? 'visible' : 'hidden',
|
|
1753
1861
|
height: this.iframeLoaded ? 'auto' : '0',
|
|
1754
|
-
} }, h("label", { key: '
|
|
1755
|
-
this.iframeElement = el;
|
|
1756
|
-
this.initializeFrameCommunicationService();
|
|
1757
|
-
}, width: "100%", onLoad: () => {
|
|
1758
|
-
iFrameResize({
|
|
1759
|
-
log: false,
|
|
1760
|
-
onResized: () => {
|
|
1761
|
-
this.iframeLoaded.emit();
|
|
1762
|
-
}
|
|
1763
|
-
}, this.iframeElement);
|
|
1764
|
-
} })), h(FormControlErrorText, { key: 'f5897f95387e6400f35c997b2921a60fb5f4f11b', errorText: this.errorText, name: this.inputId }))));
|
|
1862
|
+
} }, h("label", { key: 'c33c671e062b2d91a6c7dcdc938faa973a320ac8', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: 'dd294ff2efac3747af3ec6baa73fc74aaad8b46b', ref: el => (this.wrapperElement = el), class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }), h(FormControlErrorText, { key: 'a6a65814a1ba0fcb2ec4eff7f6b334a134763a8e', errorText: this.errorText, name: this.inputId }))));
|
|
1765
1863
|
}
|
|
1766
1864
|
get el() { return getElement(this); }
|
|
1865
|
+
static get watchers() { return {
|
|
1866
|
+
"maskCardNumber": ["maskCardNumberChanged"]
|
|
1867
|
+
}; }
|
|
1767
1868
|
};
|
|
1768
1869
|
|
|
1769
1870
|
export { FormAlert as form_alert, HiddenInput as hidden_input, IframeInput as iframe_input };
|
|
@@ -40,10 +40,10 @@ const FormControlCheckbox = class {
|
|
|
40
40
|
return inputCheckbox;
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'b4a318391a00778af627a0385a93d7ef60c4bccf' }, h("div", { key: '51cc39ecf64ee93f675debb15f41826cb8313f55', class: 'form-group d-flex flex-column' }, h("div", { key: '6f94ae2471682353da92935d54ecfc6586c23043', class: "form-check" }, h("input", { key: '0765ddf0ca90961699fb4193bc69f4d993a86605', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
44
44
|
this.isFocused = false;
|
|
45
45
|
this.formControlBlur.emit();
|
|
46
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '
|
|
46
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '1393b351ea9d57d215f57c6dab211db04456563c', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: 'e6cf1f28d5319dddce29f2e8e16d5124696f7f2d', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '073b4f85a30dad86a1d71acc4f81f8be83d915d9', errorText: this.errorText, name: this.name }))));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
|
|
@@ -47,10 +47,10 @@ const FormControlDate = class {
|
|
|
47
47
|
return part;
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '94251f3df294348460dafe736036018fda20cfb7' }, h("div", { key: '16f9e5a436bd58f5e1baf42cc5b6e5f47082cbef', class: "form-group d-flex flex-column" }, h("div", { key: 'f4f00eacfe91e033121f3e4e01b3d664dce14319', class: "d-flex gap-2" }, h("label", { key: '085aa90a2eb929073227ed1dd8a12541b3d3ab8d', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '87c826650b1e5f82db9110464c7e7f9c16cd6353', helpText: this.helpText })), h("input", { key: '824e104137bcb77a87e9691c0ae19b57b2812a85', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
51
51
|
this.isFocused = false;
|
|
52
52
|
this.formControlBlur.emit();
|
|
53
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '
|
|
53
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '20566bdcd0149a9e464d547596b617ef9c95df27', errorText: this.errorText, name: this.name }))));
|
|
54
54
|
}
|
|
55
55
|
static get watchers() { return {
|
|
56
56
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -12,7 +12,7 @@ const FormControlFileV2 = class {
|
|
|
12
12
|
this.disabled = false;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'da210da60328a5f8ee71a88b5fa8d4d67220239b', exportparts: "label,input,input-invalid" }, h("div", { key: 'f77db6dd47f4d9d64beace790a6d4fcd937c381c', class: "form-group d-flex flex-column" }, h("div", { key: 'ce25b3f690fed13cefa402d07f0afffc7c168f46', class: "d-flex align-items-start gap-2" }, h("label", { key: '82d2d2cebee0b98849c90ab90a67cb56be8c239e', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '2593993d8ed2824c8ceaf0c7c9da194361edac25', helpText: this.helpText })), h("input", { key: '04d5a84a8c1a92b20ef26f47463b3a836027c8cb', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: 'ccb9cc9b8e138f3f9e1ed96fe660f3d784de004f', errorText: this.errorText, name: this.name }))));
|
|
16
16
|
}
|
|
17
17
|
get el() { return getElement(this); }
|
|
18
18
|
};
|
|
@@ -46,10 +46,10 @@ const FormControlFile = class {
|
|
|
46
46
|
return part;
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'fd3e5af54ba42014196b5cd26e4fb91ae7b04e68' }, h("div", { key: 'a982526be770395d5863d55612f8b7667a134526', class: "form-group d-flex flex-column" }, h("div", { key: 'bc99a3c94724653ff964ba327a165d4ab4314df0', class: "d-flex align-items-start gap-2" }, h("label", { key: '5273169e3315ca56cbea084cdb1609bb2ecaf574', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '289c5af9aedae97a62e1b406f8c955f95b29ae55', helpText: this.helpText })), h("input", { key: '98dab3b8bb3afbd9f15ddcfc3e5e2bb73df7d857', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
50
50
|
this.isFocused = false;
|
|
51
51
|
this.formControlBlur.emit();
|
|
52
|
-
} }), h(FormControlErrorText, { key: '
|
|
52
|
+
} }), h(FormControlErrorText, { key: '9c78c3dd8138e90f0de3d806c61e02c85f918817', errorText: this.errorText, name: this.name }))));
|
|
53
53
|
}
|
|
54
54
|
get el() { return getElement(this); }
|
|
55
55
|
};
|
|
@@ -49,10 +49,10 @@ const FormControlMonetary = class {
|
|
|
49
49
|
return input;
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: 'c93f2282272f252f5ebc3beaa2a9c8b5354d3e27' }, h("div", { key: '7ae866ddbd1f59c41aa65e1403fc4bc50e339cad', class: "form-group d-flex flex-column" }, h("label", { key: '1490d1484abf2bde39b66be0decf40cb631ec74f', part: label, class: "form-label", htmlFor: this.name }, this.label), h(FormControlHelpText, { key: '22134cce2d545a2890b1b8a3c7f65ed6d16dc56d', name: this.name, helpText: this.helpText }), h("div", { key: 'd1630cf3ed7523af0c5138d3aa515d005f7d960e', class: "input-group" }, h("span", { key: '6513844b4374ed9cac1b8e23036086bc002ea8f0', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: 'a59d39b8d81bef0178556d4fa0094dba0c40fd6e', ref: el => this.formControl = el, id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
53
53
|
this.isFocused = false;
|
|
54
54
|
this.formControlBlur.emit();
|
|
55
|
-
}, onInput: (event) => this.updateInput(event.target.value), onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.inputPart, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled })), h(FormControlErrorText, { key: '
|
|
55
|
+
}, onInput: (event) => this.updateInput(event.target.value), onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.inputPart, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled })), h(FormControlErrorText, { key: '777cdcb4a8872899dfea021185b83ad0f73bf153', errorText: this.errorText, name: this.name }))));
|
|
56
56
|
}
|
|
57
57
|
static get watchers() { return {
|
|
58
58
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -6,7 +6,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
6
6
|
import { I as IDENTITY_MASKS, P as PHONE_MASKS } from './form-input-masks-CVaOFfrI.js';
|
|
7
7
|
import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-Dm8jO-BT.js';
|
|
8
8
|
import { C as CountryCode } from './Business-CTtGaVYs.js';
|
|
9
|
-
import { c as countryLabels } from './country-config-
|
|
9
|
+
import { c as countryLabels } from './country-config-DJFj1v-Q.js';
|
|
10
10
|
import { b as businessTitleOptions } from './business-form-options-DLRkVtee.js';
|
|
11
11
|
|
|
12
12
|
const FormControlNumber = class {
|
|
@@ -48,10 +48,10 @@ const FormControlNumber = class {
|
|
|
48
48
|
return input;
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '9081f9d76b976b6362c1523e1de634b26b296c23' }, h("div", { key: '45c974d7715ed72a4a87f9f22ed83e2d817f2f06', class: 'form-group d-flex flex-column' }, h("label", { key: '4d106b3a4216f8972578a824ef325c7ca61cd95f', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'daa202084755debd61a2472ca43c1af5f7d01be6', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
52
52
|
this.isFocused = false;
|
|
53
53
|
this.formControlBlur.emit();
|
|
54
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '
|
|
54
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: 'b3f6136f2922dd6774fe39c8d60d44c3ba73acbc', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'fc3e430004b05c8e57f211de263a9ebbb067f076', errorText: this.errorText, name: this.name }))));
|
|
55
55
|
}
|
|
56
56
|
get el() { return getElement(this); }
|
|
57
57
|
static get watchers() { return {
|
|
@@ -33,10 +33,10 @@ const FormControlRadio = class {
|
|
|
33
33
|
return inputRadio;
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'f5746b8ab344d7d859495c3889c08166fc2eb6f9', class: 'form-group d-flex flex-column' }, h("div", { key: '65387cf2b9d2881115b3c6bc2751443b12a04631', class: "form-check" }, h("input", { key: 'b645faa1c0d03716f9b77467376a2b45d4bd50f1', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
37
37
|
this.isFocused = false;
|
|
38
38
|
this.formControlBlur.emit();
|
|
39
|
-
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '
|
|
39
|
+
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '131481024b5a7b720f8af4f3884a3fb9b7ced09a', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: '1ebbffbbc0b596aa74c603a739208792f25f4b35', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '006b4e0446be98b63aaed435bc26fea81d377f26', errorText: this.errorText, name: this.name })));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -40,10 +40,10 @@ const FormControlSelect = class {
|
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
42
|
var _a;
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '7ae757edb683563ddbd741dc2b47ca8f60036739' }, h("div", { key: 'eddf24df01b1e4c77a79190900368804427142c6', class: "form-group d-flex flex-column" }, h("div", { key: '5b28bcdecb5e2f5ebe8bed6450634bc62587ec09', class: "d-flex align-items-start gap-2" }, h("label", { key: 'bb6d3a3cede9e07f05ee3fbfaff4b64ff4ecce36', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'cb1ff06b81428b8bc9801d8b11f76dc0b6103460', helpText: this.helpText })), h("select", { key: '68c958cd97b38b3a5cf505ee79fff79b5c99b671', ref: el => (this.selectElement = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
44
44
|
this.isFocused = false;
|
|
45
45
|
this.formControlBlur.emit();
|
|
46
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: '
|
|
46
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: '37efe1a0cefba96986546f3efe338855ad7e1142', errorText: this.errorText, name: this.name }))));
|
|
47
47
|
}
|
|
48
48
|
static get watchers() { return {
|
|
49
49
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -57,10 +57,26 @@ const FormControlText = class {
|
|
|
57
57
|
this.formControlBlur = createEvent(this, "formControlBlur", 7);
|
|
58
58
|
this.isFocused = false;
|
|
59
59
|
this.handleFormControlInput = (event) => {
|
|
60
|
+
var _a, _b;
|
|
60
61
|
const target = event.target;
|
|
61
62
|
const name = target.getAttribute('name');
|
|
62
|
-
|
|
63
|
-
this.
|
|
63
|
+
const raw = target.value;
|
|
64
|
+
const value = this.transformValue ? this.transformValue(raw) : raw;
|
|
65
|
+
if (value !== raw) {
|
|
66
|
+
// Writing back to the input drops the caret at the end, which is wrong
|
|
67
|
+
// mid-string — and with a transform that uppercases, that would happen on
|
|
68
|
+
// every lowercase keystroke. Shift the caret by whatever the transform added.
|
|
69
|
+
const caret = (_a = target.selectionStart) !== null && _a !== void 0 ? _a : raw.length;
|
|
70
|
+
const atEnd = caret >= raw.length;
|
|
71
|
+
target.value = value;
|
|
72
|
+
const next = atEnd
|
|
73
|
+
? value.length
|
|
74
|
+
: Math.max(0, Math.min(caret + (value.length - raw.length), value.length));
|
|
75
|
+
// Stencil's mock DOM does not implement setSelectionRange.
|
|
76
|
+
(_b = target.setSelectionRange) === null || _b === void 0 ? void 0 : _b.call(target, next, next);
|
|
77
|
+
}
|
|
78
|
+
this.inputHandler(name, value);
|
|
79
|
+
this.formControlInput.emit({ name, value });
|
|
64
80
|
};
|
|
65
81
|
this.updateInput = (newValue) => {
|
|
66
82
|
const inputElement = this.el.querySelector('input');
|
|
@@ -88,10 +104,10 @@ const FormControlText = class {
|
|
|
88
104
|
return input;
|
|
89
105
|
}
|
|
90
106
|
render() {
|
|
91
|
-
return (h(Host, { key: '
|
|
107
|
+
return (h(Host, { key: '4808c4fb58073827260e3b9cacb29bf255dc1be0' }, h("div", { key: '2b98cc1e67fefbc4c7209138399a8878db18415a', class: "form-group d-flex flex-column" }, h("div", { key: 'a2ee4c060e34cb7631b6d0a910c8e924a671ec7c', class: "d-flex align-items-start gap-2" }, h("label", { key: 'e30e5db079b64f78f34024bf57894875148a7da4', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '2eb82b47a70fd2acc2ca6c41485a0d4ede0cfa3a', helpText: this.helpText })), h("input", { key: '518f7b015ce95d515733e51a4bcf55a5326ac02e', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
92
108
|
this.isFocused = false;
|
|
93
109
|
this.formControlBlur.emit();
|
|
94
|
-
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
110
|
+
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: 'fc648459c0d9ef21fdf861286e940d6bb8ac2004', errorText: this.errorText, name: this.name }))));
|
|
95
111
|
}
|
|
96
112
|
get el() { return getElement(this); }
|
|
97
113
|
static get watchers() { return {
|
|
@@ -9,7 +9,7 @@ const InternalButton = class {
|
|
|
9
9
|
this.type = 'button';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Button, { key: '
|
|
12
|
+
return (h(Button, { key: '11cadb5b781ec348014026437735c904aa32e254', variant: this.variant, isLoading: this.isLoading, clickHandler: this.clickHandler, class: this.class, type: this.type, disabled: this.disabled, style: this.customStyle, hidden: this.hidden }, this.text));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { A as Api } from './Api-
|
|
2
|
+
import { A as Api } from './Api-INJHjnya.js';
|
|
3
3
|
import { A as ApplePayConfig, r as ApplePayHelpers, s as ApplePayPaymentRequest, t as ApplePaySessionStatus, u as ApplePayButtonStyle, v as ApplePayButtonType, w as ApplePayMerchantCapability, C as ComponentErrorSeverity, b as ComponentErrorCodes, c as ComponentErrorMessages, I as ICheckoutStatus, x as PLAID_ERROR_SEVERITY, y as PLAID_ERROR_MESSAGES, z as PlaidErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
4
4
|
import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
|
|
5
5
|
import './event-types-CZfYo5-1.js';
|
|
6
6
|
import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
7
|
-
import { c as checkoutStore, o as onChange, a as onAnyChange, g as getAvailablePaymentMethodTypes, b as getCheckoutState } from './checkout.store-
|
|
7
|
+
import { c as checkoutStore, o as onChange, a as onAnyChange, g as getAvailablePaymentMethodTypes, b as getCheckoutState } from './checkout.store-B8CGkx0o.js';
|
|
8
8
|
import { t as text, r as radioListItem } from './parts-Bu7gdOaV.js';
|
|
9
9
|
import { f as formatCurrency } from './utils-D8J8OvxY.js';
|
|
10
10
|
import { w as waitForConfig, c as configState } from './config-state-BKOsYBXZ.js';
|
|
11
11
|
import { H as Header1 } from './header-1-BI0o3rMW.js';
|
|
12
12
|
import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-DM0VaTpH.js';
|
|
13
13
|
import { H as Header3 } from './header-3-DNqRk_HO.js';
|
|
14
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
15
|
-
import {
|
|
14
|
+
import { J as JustifiAnalytics } from './Analytics-DihSSvAP.js';
|
|
15
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
|
|
16
16
|
import './dinero-HXpYMWUU.js';
|
|
17
17
|
import './Pagination-CLHwhyvu.js';
|
|
18
18
|
import './Business-CTtGaVYs.js';
|
|
19
19
|
import { m as makeGetCheckout, a as makeCheckoutComplete } from './checkout-actions-CWnrb317.js';
|
|
20
|
-
import { C as CheckoutService } from './checkout.service-
|
|
21
|
-
import { P as PlaidService } from './plaid.service-
|
|
20
|
+
import { C as CheckoutService } from './checkout.service-BYDkC7uy.js';
|
|
21
|
+
import { P as PlaidService } from './plaid.service-Cg3E3Plo.js';
|
|
22
22
|
import { P as PAYMENT_METHODS, a as PaymentMethod, b as PAYMENT_MODE } from './index-DEx8fQeW.js';
|
|
23
23
|
import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
|
|
24
|
-
import './package-
|
|
24
|
+
import './package-BQpbTebi.js';
|
|
25
25
|
import './index-3wWWWrhn.js';
|
|
26
26
|
import './utils-DaPywmTI.js';
|
|
27
27
|
|
|
@@ -758,7 +758,7 @@ const JustifiCheckoutSummary = class {
|
|
|
758
758
|
registerInstance(this, hostRef);
|
|
759
759
|
}
|
|
760
760
|
render() {
|
|
761
|
-
return (h(StyledHost, { key: '
|
|
761
|
+
return (h(StyledHost, { key: '13d0570e2bdb79d842f9c0a17c7403963ea167c8' }, h("section", { key: 'c15f36caa2a9ebb66c7f0a16393926b643f1bc3b' }, h("div", { key: '1e4e5d32cebb57ceaeb3786a29a9e08c8e83ac80' }, h("div", { key: '42ff5c6ef33654a88858e8ed48e230dd674d1953', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: 'c21d5eb012664efdd71e82bf24a88d0fefedad8c' }, h("span", { key: 'a8876afe5d7e993077ed8c4fb140c745d98e9196', part: text }, "Total"), "\u00A0", h("span", { key: 'b81156e9f9240656b51f6ed374db9878bb3137c9', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
|
|
762
762
|
}
|
|
763
763
|
};
|
|
764
764
|
|
|
@@ -928,6 +928,14 @@ const JustifiModularCheckout = class {
|
|
|
928
928
|
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
929
929
|
this.checkoutChangedEvent = createEvent(this, "checkout-changed", 7);
|
|
930
930
|
this.plaidService = new PlaidService();
|
|
931
|
+
/**
|
|
932
|
+
* Mask the card number to its last four digits when the field loses focus,
|
|
933
|
+
* with an eye toggle to reveal it. Applies to the `justifi-card-form`
|
|
934
|
+
* rendered inside this checkout. Defaults to false.
|
|
935
|
+
*
|
|
936
|
+
* Anti-shoulder-surfing only, not a secrecy boundary.
|
|
937
|
+
*/
|
|
938
|
+
this.maskCardNumber = false;
|
|
931
939
|
this.handlePaypalStarted = () => {
|
|
932
940
|
checkoutStore.isWalletProcessing = true;
|
|
933
941
|
};
|
|
@@ -1028,6 +1036,9 @@ const JustifiModularCheckout = class {
|
|
|
1028
1036
|
checkoutStore.selectedPaymentMethod = undefined;
|
|
1029
1037
|
};
|
|
1030
1038
|
}
|
|
1039
|
+
maskCardNumberChanged() {
|
|
1040
|
+
checkoutStore.maskCardNumber = !!this.maskCardNumber;
|
|
1041
|
+
}
|
|
1031
1042
|
connectedCallback() {
|
|
1032
1043
|
var _a;
|
|
1033
1044
|
this.observer = new MutationObserver(() => {
|
|
@@ -1041,6 +1052,7 @@ const JustifiModularCheckout = class {
|
|
|
1041
1052
|
subtree: true,
|
|
1042
1053
|
});
|
|
1043
1054
|
checkoutStore.checkoutId = this.checkoutId;
|
|
1055
|
+
checkoutStore.maskCardNumber = !!this.maskCardNumber;
|
|
1044
1056
|
const config = {
|
|
1045
1057
|
authToken: this.authToken,
|
|
1046
1058
|
checkoutId: this.checkoutId,
|
|
@@ -1055,7 +1067,7 @@ const JustifiModularCheckout = class {
|
|
|
1055
1067
|
}
|
|
1056
1068
|
componentWillLoad() {
|
|
1057
1069
|
this.analytics = new JustifiAnalytics(this);
|
|
1058
|
-
|
|
1070
|
+
detectDuplicateVersion();
|
|
1059
1071
|
checkoutStore.authToken = this.authToken;
|
|
1060
1072
|
this.fetchCheckout();
|
|
1061
1073
|
// Refresh the checkout data when insurance values actually change (not on initial load)
|
|
@@ -1305,6 +1317,15 @@ const JustifiModularCheckout = class {
|
|
|
1305
1317
|
});
|
|
1306
1318
|
return;
|
|
1307
1319
|
}
|
|
1320
|
+
if (!isValid) {
|
|
1321
|
+
checkoutStore.isSubmitting = false;
|
|
1322
|
+
this.errorEvent.emit({
|
|
1323
|
+
message: "Please fill in all required fields.",
|
|
1324
|
+
errorCode: ComponentErrorCodes.VALIDATION_ERROR,
|
|
1325
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
1326
|
+
});
|
|
1327
|
+
return;
|
|
1328
|
+
}
|
|
1308
1329
|
const isNewCard = ((_a = checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.NEW_CARD;
|
|
1309
1330
|
const isNewBankAccount = ((_b = checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.NEW_BANK_ACCOUNT;
|
|
1310
1331
|
const isPlaid = ((_c = checkoutStore.selectedPaymentMethod) === null || _c === void 0 ? void 0 : _c.type) === PAYMENT_METHODS.PLAID;
|
|
@@ -1359,15 +1380,6 @@ const JustifiModularCheckout = class {
|
|
|
1359
1380
|
return;
|
|
1360
1381
|
}
|
|
1361
1382
|
}
|
|
1362
|
-
if (!isValid) {
|
|
1363
|
-
checkoutStore.isSubmitting = false;
|
|
1364
|
-
this.errorEvent.emit({
|
|
1365
|
-
message: "Please fill in all required fields.",
|
|
1366
|
-
errorCode: ComponentErrorCodes.VALIDATION_ERROR,
|
|
1367
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
1368
|
-
});
|
|
1369
|
-
return;
|
|
1370
|
-
}
|
|
1371
1383
|
// Sezzle has no payment token; approval comes from the Sezzle popup
|
|
1372
1384
|
const isSezzle = ((_e = checkoutStore.selectedPaymentMethod) === null || _e === void 0 ? void 0 : _e.type) === PAYMENT_METHODS.SEZZLE;
|
|
1373
1385
|
if (isSezzle) {
|
|
@@ -1451,9 +1463,12 @@ const JustifiModularCheckout = class {
|
|
|
1451
1463
|
});
|
|
1452
1464
|
}
|
|
1453
1465
|
render() {
|
|
1454
|
-
return h(Host, { key: '
|
|
1466
|
+
return h(Host, { key: '5f914d13899fe8da6a780a29689db7e9d7f9ed3e' });
|
|
1455
1467
|
}
|
|
1456
1468
|
get hostEl() { return getElement(this); }
|
|
1469
|
+
static get watchers() { return {
|
|
1470
|
+
"maskCardNumber": ["maskCardNumberChanged"]
|
|
1471
|
+
}; }
|
|
1457
1472
|
};
|
|
1458
1473
|
|
|
1459
1474
|
const api = Api();
|
|
@@ -1658,7 +1673,7 @@ const JustifiPaypal = class {
|
|
|
1658
1673
|
return order;
|
|
1659
1674
|
}
|
|
1660
1675
|
render() {
|
|
1661
|
-
return (h(StyledHost, { key: '
|
|
1676
|
+
return (h(StyledHost, { key: '39a2b473cfa47da5e079adbaffa93663289cb8ec' }, h("div", { key: '9d3e3ff9236d2462157b310d691c43f54b6651dd', class: "paypal-buttons", ref: (el) => (this.buttonsEl = el) }, h("paypal-button", { key: 'a0049d2bcf4aa295f65563f49c3287b2da2e63b8', type: "pay", ref: (el) => (this.paypalButtonEl = el), onClick: () => this.startSession(this.paypalSession, 'paypal') }), h("venmo-button", { key: 'fd71ba73af2223271160601ec76039d3e0d6cb02', type: "pay", ref: (el) => (this.venmoButtonEl = el), onClick: () => this.startSession(this.venmoSession, 'venmo') })), h("style", { key: '7c7b62b3bbdf001760e888b4206702d210aeadcb' }, `
|
|
1662
1677
|
.paypal-buttons {
|
|
1663
1678
|
display: none;
|
|
1664
1679
|
gap: 8px;
|
|
@@ -2386,7 +2401,7 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2386
2401
|
}
|
|
2387
2402
|
}
|
|
2388
2403
|
componentWillLoad() {
|
|
2389
|
-
|
|
2404
|
+
detectDuplicateVersion();
|
|
2390
2405
|
this.analytics = new JustifiAnalytics(this);
|
|
2391
2406
|
}
|
|
2392
2407
|
handleRadioClick(event) {
|
|
@@ -2441,9 +2456,10 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2441
2456
|
this.billingFormRef.validate(),
|
|
2442
2457
|
this.paymentMethodFormRef.validate(),
|
|
2443
2458
|
]);
|
|
2459
|
+
// Field-level messages stay inside the hosted iframes, so only billing contributes errors.
|
|
2444
2460
|
const result = {
|
|
2445
2461
|
isValid: billingValidation.isValid && paymentMethodValidation.isValid,
|
|
2446
|
-
errors: Object.assign(
|
|
2462
|
+
errors: Object.assign({}, billingValidation.errors),
|
|
2447
2463
|
};
|
|
2448
2464
|
return result;
|
|
2449
2465
|
}
|
|
@@ -2605,13 +2621,13 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2605
2621
|
return paymentMethodType === PAYMENT_METHODS.NEW_CARD ? (h("card-form", { ref: (el) => {
|
|
2606
2622
|
if (el)
|
|
2607
2623
|
this.paymentMethodFormRef = el;
|
|
2608
|
-
} })) : (h("bank-account-form", { ref: (el) => {
|
|
2624
|
+
}, maskCardNumber: this.maskCardNumber })) : (h("bank-account-form", { ref: (el) => {
|
|
2609
2625
|
if (el)
|
|
2610
2626
|
this.paymentMethodFormRef = el;
|
|
2611
|
-
} }));
|
|
2627
|
+
}, showAccountNumberConfirmation: this.showAccountNumberConfirmation }));
|
|
2612
2628
|
}
|
|
2613
2629
|
render() {
|
|
2614
|
-
return (h(StyledHost, { key: '
|
|
2630
|
+
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 })))))));
|
|
2615
2631
|
}
|
|
2616
2632
|
get host() { return getElement(this); }
|
|
2617
2633
|
static get watchers() { return {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
3
|
-
import {
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-DihSSvAP.js';
|
|
3
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
|
|
4
4
|
import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
|
-
import './package-
|
|
8
|
-
import './Api-
|
|
7
|
+
import './package-BQpbTebi.js';
|
|
8
|
+
import './Api-INJHjnya.js';
|
|
9
9
|
import './utils-D8J8OvxY.js';
|
|
10
10
|
import './dinero-HXpYMWUU.js';
|
|
11
11
|
import './Plaid-CRcTLeaz.js';
|
|
@@ -19,7 +19,7 @@ const JustifiBankAccountBillingFormSimple = class {
|
|
|
19
19
|
}
|
|
20
20
|
async componentWillLoad() {
|
|
21
21
|
await waitForConfig();
|
|
22
|
-
|
|
22
|
+
detectDuplicateVersion();
|
|
23
23
|
this.analytics = new JustifiAnalytics(this);
|
|
24
24
|
}
|
|
25
25
|
disconnectedCallback() {
|
|
@@ -35,7 +35,7 @@ const JustifiBankAccountBillingFormSimple = class {
|
|
|
35
35
|
return (_b = (_a = this.bankAccountBillingFormSimpleRef) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : { isValid: false, errors: {} };
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(StyledHost, { key: '
|
|
38
|
+
return (h(StyledHost, { key: 'a991c5bf6a8dfac85e274b53a0c4c6388c03f661' }, h("bank-account-billing-form-simple", { key: '0db34cb082719bdb6d5fd62c5976734cc8b0db14', legend: this.legend, ref: (el) => (this.bankAccountBillingFormSimpleRef = el) })));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|