@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
|
@@ -1903,7 +1903,7 @@ const CustomPopper = /*@__PURE__*/ proxyCustomElement(class CustomPopper extends
|
|
|
1903
1903
|
this.hideEvent.emit();
|
|
1904
1904
|
}
|
|
1905
1905
|
render() {
|
|
1906
|
-
return (h("div", { key: '
|
|
1906
|
+
return (h("div", { key: '1af0c9c11ffd5c3d0b7a1505e1730e68a8a52c88' }, h("style", { key: '6d16cbe171506d3ed398bbf051da1e1023648f7f' }, `
|
|
1907
1907
|
.popper-content {
|
|
1908
1908
|
display: none;
|
|
1909
1909
|
}
|
|
@@ -1911,7 +1911,7 @@ const CustomPopper = /*@__PURE__*/ proxyCustomElement(class CustomPopper extends
|
|
|
1911
1911
|
display: block;
|
|
1912
1912
|
z-index: 1030;
|
|
1913
1913
|
}
|
|
1914
|
-
`), h("div", { key: '
|
|
1914
|
+
`), h("div", { key: 'fb4e6914fe3ef58e986baa320887b2b5c77b1e6b', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: 'a4e4db117f4cae28e84e7b9cd7f810a8d27e50ad' }))));
|
|
1915
1915
|
}
|
|
1916
1916
|
static get watchers() { return {
|
|
1917
1917
|
"anchorRef": ["onAnchorRefChange"]
|
|
@@ -43,7 +43,7 @@ const CustomerDetails = /*@__PURE__*/ proxyCustomElement(class CustomerDetails e
|
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
45
|
var _a, _b, _c, _d, _e;
|
|
46
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: '66ed4497457aab5cd214c356b23067eb5ab977b9' }, h("div", { key: '00b2241580f26aed52fb8c0dca06ffb8e07c2303', class: "row gy-3" }, h("div", { key: '23fd971d66b3e753df7ec5e20b8155865307261f', class: "col-12" }, h("h2", { key: 'df3880ae4959e4fe6a5fa2e67287e4bb40b6fc75', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '1bd1010ba8c9bbdb4390e3d953a8cfc798a6745c', class: "col-12" }, h("form-control-text", { key: '170576aa6fbda10dcb3c3928cd8894df1f201223', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: '39a99685a01018afa466fa214fd9f217b5682200', class: "col-12" }, h("form-control-text", { key: '8c99018cf0fe0c900512874be0261fb32578c803', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '6db37be2d5b9bef95c7e5e00a879847cbc89a9db', class: "col-12" }, h("form-control-textarea", { key: '48de189acf3dad170e1727b950cee28278eeabc9', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '9a85ca65d2a80c54617034af5350e7301dd475f5', class: "col-12" }, h("form-control-file-v2", { key: '0f6f2859e79998071e079bbb69fdb1b12e5b8c5d', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: '8067bc3d834825f309fc3ed994b683233e2e9e90', class: "col-12" }, h("form-control-file-v2", { key: '97105708f4f6e668a6e62cb2f516969c79bedef7', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
|
|
47
47
|
}
|
|
48
48
|
}, [256, "customer-details", {
|
|
49
49
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { w as webcomponentsPackageJson } from './package.js';
|
|
2
|
+
|
|
3
|
+
const JUSTIFI_VERSION_KEY = '__JUSTIFI_WC_VERSION__';
|
|
4
|
+
/**
|
|
5
|
+
* Records this bundle's version on globalThis and logs an error when a second,
|
|
6
|
+
* different version of @justifi/webcomponents is already on the page. The first
|
|
7
|
+
* version loaded wins — it has registered the custom elements, so any later
|
|
8
|
+
* bundle is inert.
|
|
9
|
+
*/
|
|
10
|
+
const detectDuplicateVersion = () => {
|
|
11
|
+
if (typeof globalThis === 'undefined')
|
|
12
|
+
return;
|
|
13
|
+
const globalScope = globalThis;
|
|
14
|
+
const currentVersion = webcomponentsPackageJson.version;
|
|
15
|
+
const existingVersion = globalScope[JUSTIFI_VERSION_KEY];
|
|
16
|
+
if (existingVersion && existingVersion !== currentVersion) {
|
|
17
|
+
console.error(`@justifi/webcomponents: Multiple versions detected. ` +
|
|
18
|
+
`Version ${existingVersion} was loaded first and registered all components. ` +
|
|
19
|
+
`Version ${currentVersion} is also present but its components will NOT be used. ` +
|
|
20
|
+
`To fix this, add to your package.json:\n` +
|
|
21
|
+
`"pnpm": { "overrides": { "@justifi/webcomponents": "${currentVersion}" } }`);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
globalScope[JUSTIFI_VERSION_KEY] = currentVersion;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { detectDuplicateVersion as d };
|
|
@@ -56,8 +56,8 @@ const DisputeNotification = /*@__PURE__*/ proxyCustomElement(class DisputeNotifi
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
59
|
-
return (h("div", { key: '
|
|
60
|
-
_b.due_date, ") for this dispute has passed"), h("p", { key: '
|
|
59
|
+
return (h("div", { key: '12cd6c17c1f4f70e136fa0e9d6ff74d37af82a1e', class: "dispute-notification-root" }, this.isLoading && (h("div", { key: '33b1c6259abe1da5d92ac2aa37cfec9033fbb3d1', style: { marginBottom: '8px' } }, h(Skeleton, { key: '1f5bc2333a37587d3d11e545b58c9b85a2a145a5', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '280e35a187319c7698922c3cd3f579457a187e7a', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: '3fd7f151a3d7516dd40835d6c42d2240d7170613', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && this.isDueDatePassed() && (h("div", { key: 'e78d3cf205ba862b8df5e5358e15c4961add1003', part: text }, h("h1", { key: 'c533f650a18a75ca7c9f1cb15a6d1da517317e54', class: "h4", part: heading4 }, "The due date (", (_b = this.dispute) === null || _b === void 0 ? void 0 :
|
|
60
|
+
_b.due_date, ") for this dispute has passed"), h("p", { key: '14f82547639777ab5179010f350d42f7b4082845' }, "You can no longer submit evidence to counter this dispute."))), ((_c = this.dispute) === null || _c === void 0 ? void 0 : _c.needsResponse) && !this.isDueDatePassed() && (h("div", { key: 'a2eefdc255af0c3b07091183fff4c5860f66af3a', part: text }, h("h1", { key: '043801fa6ac2f90ba10e6048feeecf670cc4e4dd', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: 'b4b115c46340ae96e43a63a1535b59f071efc7cc' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '451b315624efea9b5f1e619ae6b942611ba93135', class: "h5" }, "Dispute details"), h("div", { key: 'c7765f5f091a346de0eb7aa81c36d475832925d2', class: "d-table gap-2" }, h("div", { key: 'cb3ecb618099b579a488232d5ecafef28c7da235', class: "d-table-row gap-2" }, h("span", { key: '86475be18418565529a2d08a544962209f9766ac', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '5efe0ffd6f0236b906ab9e52f32bd9a0533240a2', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_d = this.dispute) === null || _d === void 0 ? void 0 : _d.amount))), h("div", { key: '286b29d07ddb23ba80d4831aadebb4f550545c39', class: "d-table-row gap-2" }, h("span", { key: '2a8582b5e4c6e0b4ad1db9b7222148949accf10d', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: 'b8e43894965778696e0cb41204b3efe1aac9443e', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_e = this.dispute) === null || _e === void 0 ? void 0 : _e.reason)), h("div", { key: '4864005f755bdbdecb5ed28370452850dfc9f047', class: "d-table-row gap-2" }, h("span", { key: '64b10de9b84fe9992b07a88294caa38b2b63fdca', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: '5198c3cd3ebf4246c42d8b59603765bd39bae06b', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_f = this.dispute) === null || _f === void 0 ? void 0 : _f.due_date))), h("div", { key: '29c98ba58742d3195eca08571cbf793bc9d5a7c6', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '9ef19c0152cbb6342214aa5073ffed303fc85624', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '558126e83a05c0729e17a1abf5ce849e02574096', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.underReview) && (h("div", { key: 'f8c6fee1c63eef8cf2d2a00fb10051686c7572ae', part: text }, h("h1", { key: '23c4bb1c8ab00f4cf9a1447156c124f8ecd1f4b7', class: "h4", part: heading4 }, "This payment is disputed and under review"), h("p", { key: 'b1c469330757f22582e5c341c68adcd1aae3def3' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_h = this.dispute) === null || _h === void 0 ? void 0 : _h.won) && (h("div", { key: '46c92fe084337c67ce0bfedf11d89aca38bdc5e4', part: text }, h("h1", { key: 'ac06dc25f88d88d257ff56aec620d803a45d6344', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '30a26bceb37855460b8ae6ef54c20591900b5fcf' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_j = this.dispute) === null || _j === void 0 ? void 0 : _j.lost) && (h("div", { key: '2320aa515a8112a27bdbd9e3f1b3a8daf2c1b28e', part: text }, h("h1", { key: '32e0cfc6e8d27afe01194ab61ad342781ec31bf8', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '6a8b333f0be16d81ffc23609bcdcb8f70435d515' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
|
|
61
61
|
}
|
|
62
62
|
}, [256, "dispute-notification", {
|
|
63
63
|
"dispute": [16],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version.js';
|
|
3
3
|
import { D as DisputeManagementClickActions, b as makeUpdateDisputeResponse, c as makeCreateDisputeEvidence, m as makeSubmitDisputeResponse, a as DisputeService } from './event-types3.js';
|
|
4
4
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, c as ComponentErrorCodes } from './Plaid.js';
|
|
@@ -173,7 +173,7 @@ const DisputeResponse = /*@__PURE__*/ proxyCustomElement(class DisputeResponse e
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
componentWillLoad() {
|
|
176
|
-
|
|
176
|
+
detectDuplicateVersion();
|
|
177
177
|
this.analytics = new JustifiAnalytics(this);
|
|
178
178
|
this.initializeDisputeServiceMethods();
|
|
179
179
|
}
|
|
@@ -221,7 +221,7 @@ const DisputeResponse = /*@__PURE__*/ proxyCustomElement(class DisputeResponse e
|
|
|
221
221
|
return this.currentStep === 0;
|
|
222
222
|
}
|
|
223
223
|
render() {
|
|
224
|
-
return (h("div", { key: '
|
|
224
|
+
return (h("div", { key: 'a558e22c9d41b40d01fd7317566b8e92b181396a', class: "dispute-response-root" }, h("div", { key: 'b5ccda631bb6b8d9587c97c5f72c73563b32a336', class: "row gy-3" }, h("div", { key: '680cd57e4c08c919284911e03c31bf88e9ea27bd', class: "col-12" }, h("h1", { key: 'aa9cad23ec784d2d037a39f536f25547e52038fd', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '39e1d9bb2cd0cca28841430139c301fd18863f81', class: "col-12" }, this.currentStepComponent), h("div", { key: '3c87124fcab317c738b2ecfdaa454b008bd921fd', class: "col-12" }, h("div", { key: '210414d3492ce600c34b8c93824c81cae12bb3b4', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next")))))));
|
|
225
225
|
}
|
|
226
226
|
static get watchers() { return {
|
|
227
227
|
"disputeId": ["propChanged"],
|
|
@@ -42,7 +42,7 @@ const DuplicateCharge = /*@__PURE__*/ proxyCustomElement(class DuplicateCharge e
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
var _a, _b, _c;
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '40c441cca0667d42a17b2d030cd11499b5fd0971' }, h("div", { key: '9187708d76c4a631c8741e1ec60684fdb3b7c65f', class: "row gy-3" }, h("div", { key: '9a388c46052814718253a4333da1a3e010316e14', class: "col-12" }, h("h2", { key: '677c93c72112ac96e41e43080fba1d2750bc71de', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '475e5bd708aed12d866560dd12ddde92b8643f82', class: "col-12" }, h("form-control-text", { key: 'a47b1642e9ca1475d6165403d5589f874908b1c0', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: '75890d7ba8e0e0f4117477f0c52f3af0a867f3b3', class: "col-12" }, h("form-control-textarea", { key: 'c86ae32a39e1ed3be449eb91efa8039ec78b18eb', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: '81d2eb27f4350e57cc3e89170839816166339731', class: "col-12" }, h("form-control-file-v2", { key: 'a7456a1a8f3363d05361667d5d9a8e99c6581bf1', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
|
|
46
46
|
}
|
|
47
47
|
}, [256, "duplicate-charge", {
|
|
48
48
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -39,7 +39,7 @@ const ElectronicEvidence = /*@__PURE__*/ proxyCustomElement(class ElectronicEvid
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
var _a, _b;
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '592472282564a406e318b5639e1f8e3f1aeb55bd' }, h("div", { key: '0e49a34f48905ede20c17d4e2a8e529a3aaad2b9', class: "row gy-3" }, h("div", { key: '9f15e709a8a31b6c2cf3ca43d543090a8dd8ca5d', class: "col-12" }, h("h2", { key: '3223ed0c95dd5d08b5d8a481dfdc57d65ee3ea2f', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: 'f82434ae90705238088c1e01625c1d674337f823', class: "col-12" }, h("form-control-text", { key: '81586970861191e628ba6d3d55d792081f868193', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: '1ec47d1e437926e010e19f0352c6c237cb61aeaa', class: "col-12" }, h("form-control-file-v2", { key: '8ee1599fc2142dd269ccddd08ef60cb1a337122a', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
|
|
43
43
|
}
|
|
44
44
|
}, [256, "electronic-evidence", {
|
|
45
45
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { a as CountryCode } from './Business.js';
|
|
3
|
-
import {
|
|
4
|
-
import { a as countryOptions, c as countryLabels } from './country-config.js';
|
|
3
|
+
import { z as zipCodeOnlyHandler } from './utils4.js';
|
|
4
|
+
import { a as countryOptions, c as countryLabels, n as normalizePostalCode } from './country-config.js';
|
|
5
5
|
import { d as defineCustomElement$4 } from './custom-popper2.js';
|
|
6
6
|
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
7
7
|
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
@@ -19,7 +19,7 @@ const FormAddressFields = /*@__PURE__*/ proxyCustomElement(class FormAddressFiel
|
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
20
20
|
const labels = countryLabels[this.country];
|
|
21
21
|
const options = countryOptions[this.country];
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'a1bbc92e63a973d2ad70019597132b599529d3b5' }, h("div", { key: 'f52aee4bdb8987e40693e75627bd5f852e20f9c9', class: "row gy-3" }, h("div", { key: '3557621ecc4910bba3d41551ffc6fbf88cabb1ef', class: "col-12" }, h("form-control-text", { key: '5d0df84b735ff1364bf62185db33afdc4c0782e2', name: "line1", label: "Street Address", inputHandler: this.inputHandler, defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, helpText: "No PO Boxes." })), h("div", { key: '671665f83b6569830296842ac089fdcfafa19b0d', class: "col-12" }, h("form-control-text", { key: '21b3f2e4dfc8b30603d22ffb4d59480be2035aff', name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '731c4bb3c8fcbf2f68f0a721415210819d3721c6', class: "col-12" }, h("form-control-text", { key: 'b0283f71fe2d8efdadc918257d119c0af2b02243', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '42c208d228cf9c1f278c9c666d15f1508d6c8c51', class: "col-12 col-md-6" }, h("form-control-select", { key: '9da34256e043df09cf924c110b059304e35a3451', name: "state", label: labels.stateLabel, options: options.stateOptions, inputHandler: this.inputHandler, defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '24622af99d38f69c942e3e73d6705a68a2a3dc07', class: "col-12 col-md-6" }, h("form-control-text", { key: '24405b8aff1b14bcb00583085efeb8b3f33a6903', name: "postal_code", label: labels.postalLabel, inputHandler: this.inputHandler, defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, transformValue: normalizePostalCode, maxLength: this.country === CountryCode.USA ? 10 : 7, keyDownHandler: this.country === CountryCode.USA ? zipCodeOnlyHandler : undefined })))));
|
|
23
23
|
}
|
|
24
24
|
}, [256, "form-address-fields", {
|
|
25
25
|
"country": [1],
|
|
@@ -45,10 +45,10 @@ const FormControlCheckbox = /*@__PURE__*/ proxyCustomElement(class FormControlCh
|
|
|
45
45
|
return inputCheckbox;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
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: () => {
|
|
49
49
|
this.isFocused = false;
|
|
50
50
|
this.formControlBlur.emit();
|
|
51
|
-
}, 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: '
|
|
51
|
+
}, 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 }))));
|
|
52
52
|
}
|
|
53
53
|
}, [256, "form-control-checkbox", {
|
|
54
54
|
"label": [1],
|
|
@@ -54,10 +54,10 @@ const FormControlDate = /*@__PURE__*/ proxyCustomElement(class FormControlDate e
|
|
|
54
54
|
return part;
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
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: () => {
|
|
58
58
|
this.isFocused = false;
|
|
59
59
|
this.formControlBlur.emit();
|
|
60
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '
|
|
60
|
+
}, 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 }))));
|
|
61
61
|
}
|
|
62
62
|
static get watchers() { return {
|
|
63
63
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -16,7 +16,7 @@ const FormControlFileV2 = /*@__PURE__*/ proxyCustomElement(class FormControlFile
|
|
|
16
16
|
this.disabled = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
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 }))));
|
|
20
20
|
}
|
|
21
21
|
get el() { return this; }
|
|
22
22
|
}, [256, "form-control-file-v2", {
|
|
@@ -53,10 +53,10 @@ const FormControlFile = /*@__PURE__*/ proxyCustomElement(class FormControlFile e
|
|
|
53
53
|
return part;
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
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: () => {
|
|
57
57
|
this.isFocused = false;
|
|
58
58
|
this.formControlBlur.emit();
|
|
59
|
-
} }), h(FormControlErrorText, { key: '
|
|
59
|
+
} }), h(FormControlErrorText, { key: '9c78c3dd8138e90f0de3d806c61e02c85f918817', errorText: this.errorText, name: this.name }))));
|
|
60
60
|
}
|
|
61
61
|
get el() { return this; }
|
|
62
62
|
}, [256, "form-control-file", {
|
|
@@ -53,10 +53,10 @@ const FormControlMonetary = /*@__PURE__*/ proxyCustomElement(class FormControlMo
|
|
|
53
53
|
return input;
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
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: () => {
|
|
57
57
|
this.isFocused = false;
|
|
58
58
|
this.formControlBlur.emit();
|
|
59
|
-
}, 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: '
|
|
59
|
+
}, 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 }))));
|
|
60
60
|
}
|
|
61
61
|
static get watchers() { return {
|
|
62
62
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -75,10 +75,10 @@ const FormControlNumberMasked = /*@__PURE__*/ proxyCustomElement(class FormContr
|
|
|
75
75
|
return input;
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '9d164bbf77f8a5227128ab5c606d6f9eb8b5e260' }, h("div", { key: '780108deefb44f3bec06093bcbf830ba0f0d32d5', class: "form-group d-flex flex-column" }, h("div", { key: '8d1d98b481f68227d0843842fbdb0b768c2325fc', class: "d-flex align-items-start gap-2" }, h("label", { key: 'fe3fa6fbc9ddc286ddc60041d90b412b548dcdbc', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '3c93c47f498e8f15f7fddd8f284e0b577bf8f35c', helpText: this.helpText })), h("input", { key: 'c5c1f8d85996ea3c45d8312fdc27e22e02ab2e8d', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
|
|
79
79
|
this.isFocused = false;
|
|
80
80
|
this.formControlBlur.emit();
|
|
81
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
81
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: 'dac687b433cdd1f480ae8f67cbdd762eda83492a', errorText: this.errorText, name: this.name }))));
|
|
82
82
|
}
|
|
83
83
|
static get watchers() { return {
|
|
84
84
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -48,10 +48,10 @@ const FormControlNumber = /*@__PURE__*/ proxyCustomElement(class FormControlNumb
|
|
|
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 this; }
|
|
57
57
|
static get watchers() { return {
|
|
@@ -37,10 +37,10 @@ const FormControlRadio = /*@__PURE__*/ proxyCustomElement(class FormControlRadio
|
|
|
37
37
|
return inputRadio;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
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: () => {
|
|
41
41
|
this.isFocused = false;
|
|
42
42
|
this.formControlBlur.emit();
|
|
43
|
-
}, 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: '
|
|
43
|
+
}, 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 })));
|
|
44
44
|
}
|
|
45
45
|
}, [256, "form-control-radio", {
|
|
46
46
|
"label": [8],
|
|
@@ -47,10 +47,10 @@ const FormControlSelect = /*@__PURE__*/ proxyCustomElement(class FormControlSele
|
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
49
|
var _a;
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
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: () => {
|
|
51
51
|
this.isFocused = false;
|
|
52
52
|
this.formControlBlur.emit();
|
|
53
|
-
}, 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: '
|
|
53
|
+
}, 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 }))));
|
|
54
54
|
}
|
|
55
55
|
static get watchers() { return {
|
|
56
56
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -17,10 +17,26 @@ const FormControlText = /*@__PURE__*/ proxyCustomElement(class FormControlText e
|
|
|
17
17
|
this.formControlBlur = createEvent(this, "formControlBlur", 7);
|
|
18
18
|
this.isFocused = false;
|
|
19
19
|
this.handleFormControlInput = (event) => {
|
|
20
|
+
var _a, _b;
|
|
20
21
|
const target = event.target;
|
|
21
22
|
const name = target.getAttribute('name');
|
|
22
|
-
|
|
23
|
-
this.
|
|
23
|
+
const raw = target.value;
|
|
24
|
+
const value = this.transformValue ? this.transformValue(raw) : raw;
|
|
25
|
+
if (value !== raw) {
|
|
26
|
+
// Writing back to the input drops the caret at the end, which is wrong
|
|
27
|
+
// mid-string — and with a transform that uppercases, that would happen on
|
|
28
|
+
// every lowercase keystroke. Shift the caret by whatever the transform added.
|
|
29
|
+
const caret = (_a = target.selectionStart) !== null && _a !== void 0 ? _a : raw.length;
|
|
30
|
+
const atEnd = caret >= raw.length;
|
|
31
|
+
target.value = value;
|
|
32
|
+
const next = atEnd
|
|
33
|
+
? value.length
|
|
34
|
+
: Math.max(0, Math.min(caret + (value.length - raw.length), value.length));
|
|
35
|
+
// Stencil's mock DOM does not implement setSelectionRange.
|
|
36
|
+
(_b = target.setSelectionRange) === null || _b === void 0 ? void 0 : _b.call(target, next, next);
|
|
37
|
+
}
|
|
38
|
+
this.inputHandler(name, value);
|
|
39
|
+
this.formControlInput.emit({ name, value });
|
|
24
40
|
};
|
|
25
41
|
this.updateInput = (newValue) => {
|
|
26
42
|
const inputElement = this.el.querySelector('input');
|
|
@@ -48,10 +64,10 @@ const FormControlText = /*@__PURE__*/ proxyCustomElement(class FormControlText e
|
|
|
48
64
|
return input;
|
|
49
65
|
}
|
|
50
66
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
67
|
+
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: () => {
|
|
52
68
|
this.isFocused = false;
|
|
53
69
|
this.formControlBlur.emit();
|
|
54
|
-
}, 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: '
|
|
70
|
+
}, 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 }))));
|
|
55
71
|
}
|
|
56
72
|
get el() { return this; }
|
|
57
73
|
static get watchers() { return {
|
|
@@ -66,6 +82,7 @@ const FormControlText = /*@__PURE__*/ proxyCustomElement(class FormControlText e
|
|
|
66
82
|
"errorText": [1, "error-text"],
|
|
67
83
|
"maxLength": [2, "max-length"],
|
|
68
84
|
"keyDownHandler": [16],
|
|
85
|
+
"transformValue": [16],
|
|
69
86
|
"disabled": [4],
|
|
70
87
|
"isFocused": [32]
|
|
71
88
|
}, undefined, {
|
|
@@ -1541,6 +1541,8 @@ class FrameCommunicationService {
|
|
|
1541
1541
|
const MessageEventType = {
|
|
1542
1542
|
tokenize: 'tokenize',
|
|
1543
1543
|
validate: 'validate',
|
|
1544
|
+
/** Opts a hosted field into mask-on-blur. Carries no card data. */
|
|
1545
|
+
setMaskCardNumber: 'setMaskCardNumber',
|
|
1544
1546
|
};
|
|
1545
1547
|
|
|
1546
1548
|
const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends HTMLElement {
|
|
@@ -1552,11 +1554,24 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1552
1554
|
this.iframeLoaded = createEvent(this, "iframeLoaded", 7);
|
|
1553
1555
|
this.isFocused = false;
|
|
1554
1556
|
this.isValid = true;
|
|
1557
|
+
/**
|
|
1558
|
+
* Opt this field into masking its value to the last four characters when it
|
|
1559
|
+
* loses focus. Forwarded to the hosted field, which owns the behavior.
|
|
1560
|
+
*/
|
|
1561
|
+
this.maskCardNumber = false;
|
|
1562
|
+
this.hasLoaded = false;
|
|
1555
1563
|
this.dispatchMessageEvent = (event) => {
|
|
1556
1564
|
const { eventType, data } = event.data;
|
|
1557
1565
|
if ((data === null || data === void 0 ? void 0 : data.id) !== this.inputId) {
|
|
1558
1566
|
return;
|
|
1559
1567
|
}
|
|
1568
|
+
if (eventType === 'loaded') {
|
|
1569
|
+
this.hasLoaded = true;
|
|
1570
|
+
// Re-sent on every load, not just the first: componentDidRender swaps
|
|
1571
|
+
// the iframe src once the style store fills, so the frame can reload
|
|
1572
|
+
// and would otherwise come back without the flag.
|
|
1573
|
+
this.sendMaskCardNumber();
|
|
1574
|
+
}
|
|
1560
1575
|
if (eventType === 'focused') {
|
|
1561
1576
|
this.isFocused = true;
|
|
1562
1577
|
}
|
|
@@ -1565,8 +1580,91 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1565
1580
|
}
|
|
1566
1581
|
};
|
|
1567
1582
|
}
|
|
1583
|
+
maskCardNumberChanged() {
|
|
1584
|
+
if (this.hasLoaded)
|
|
1585
|
+
this.sendMaskCardNumber();
|
|
1586
|
+
}
|
|
1587
|
+
/**
|
|
1588
|
+
* The <iframe> is created in the LIGHT DOM and slotted in: an iframe inside a
|
|
1589
|
+
* shadow tree is invisible to `window.frames` (spec), so siblings could not
|
|
1590
|
+
* resolve it. The ::part wrappers stay in the shadow tree — theming untouched.
|
|
1591
|
+
*/
|
|
1592
|
+
componentDidLoad() {
|
|
1593
|
+
const iframe = document.createElement('iframe');
|
|
1594
|
+
iframe.setAttribute('name', this.inputId);
|
|
1595
|
+
iframe.setAttribute('width', '100%');
|
|
1596
|
+
// Light-DOM element: merchant CSS reaches it, so pin the box inline.
|
|
1597
|
+
iframe.style.border = '0';
|
|
1598
|
+
iframe.style.display = 'block';
|
|
1599
|
+
iframe.style.width = '100%';
|
|
1600
|
+
iframe.style.boxSizing = 'border-box';
|
|
1601
|
+
iframe.addEventListener('load', () => {
|
|
1602
|
+
iFrameResize({
|
|
1603
|
+
log: false,
|
|
1604
|
+
onResized: () => {
|
|
1605
|
+
this.iframeLoaded.emit();
|
|
1606
|
+
}
|
|
1607
|
+
}, iframe);
|
|
1608
|
+
});
|
|
1609
|
+
this.iframeElement = iframe;
|
|
1610
|
+
this.initializeFrameCommunicationService();
|
|
1611
|
+
iframe.setAttribute('src', this.iframeSrc);
|
|
1612
|
+
this.mountIframe();
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* Stencil runs componentDidLoad once per instance; a DOM move (framework
|
|
1616
|
+
* reparenting, list reorder) fires disconnected → connected on the same
|
|
1617
|
+
* instance, so the iframe has to be put back by hand.
|
|
1618
|
+
*/
|
|
1619
|
+
connectedCallback() {
|
|
1620
|
+
var _a;
|
|
1621
|
+
if (this.iframeElement && !this.iframeElement.isConnected) {
|
|
1622
|
+
(_a = this.frameService) === null || _a === void 0 ? void 0 : _a.addMessageListener(this.dispatchMessageEvent);
|
|
1623
|
+
this.mountIframe();
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
mountIframe() {
|
|
1627
|
+
const root = this.el.getRootNode();
|
|
1628
|
+
// Duck-typed: ShadowRoot is not a global in Stencil's mock-doc.
|
|
1629
|
+
const host = root.nodeType === 11 && root.host ? root.host : null;
|
|
1630
|
+
const iframe = this.iframeElement;
|
|
1631
|
+
if (host) {
|
|
1632
|
+
if (host.getRootNode() !== document) {
|
|
1633
|
+
// A host nested in another shadow tree keeps the iframe out of the
|
|
1634
|
+
// document tree; sibling fields fall back to BroadcastChannel.
|
|
1635
|
+
console.warn(`[justifi] hosted field "${this.inputId}" is inside a nested shadow tree; window.frames cannot reach it`);
|
|
1636
|
+
}
|
|
1637
|
+
// Real <slot> element, not JSX: Stencil's slot polyfill for shadow:false
|
|
1638
|
+
// components would otherwise replace it with a virtual slot.
|
|
1639
|
+
if (!this.wrapperElement.querySelector(`slot[name="${this.inputId}"]`)) {
|
|
1640
|
+
const slot = document.createElement('slot');
|
|
1641
|
+
slot.name = this.inputId;
|
|
1642
|
+
this.wrapperElement.appendChild(slot);
|
|
1643
|
+
}
|
|
1644
|
+
iframe.setAttribute('slot', this.inputId);
|
|
1645
|
+
host.appendChild(iframe);
|
|
1646
|
+
}
|
|
1647
|
+
else {
|
|
1648
|
+
iframe.removeAttribute('slot');
|
|
1649
|
+
this.wrapperElement.appendChild(iframe);
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
componentDidRender() {
|
|
1653
|
+
// iframeSrc depends on the iframeInputStyles store, which is filled after
|
|
1654
|
+
// first paint; keep the light-DOM iframe in sync like the old JSX src did.
|
|
1655
|
+
if (this.iframeElement && this.iframeElement.getAttribute('src') !== this.renderedSrc) {
|
|
1656
|
+
this.iframeElement.setAttribute('src', this.renderedSrc);
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1568
1659
|
disconnectedCallback() {
|
|
1569
|
-
|
|
1660
|
+
var _a, _b, _c, _d, _e;
|
|
1661
|
+
// Stencil defers this call; on a DOM move the element is already back in
|
|
1662
|
+
// the document (its light-DOM iframe moved with the host), so leave it be.
|
|
1663
|
+
if (this.el.isConnected)
|
|
1664
|
+
return;
|
|
1665
|
+
(_a = this.frameService) === null || _a === void 0 ? void 0 : _a.removeMessageListener(this.dispatchMessageEvent);
|
|
1666
|
+
(_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);
|
|
1667
|
+
(_e = this.iframeElement) === null || _e === void 0 ? void 0 : _e.remove();
|
|
1570
1668
|
}
|
|
1571
1669
|
async validate() {
|
|
1572
1670
|
const response = await this.frameService
|
|
@@ -1591,6 +1689,12 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1591
1689
|
this.frameService = new FrameCommunicationService(this.iframeElement, this.iframeOrigin);
|
|
1592
1690
|
(_a = this.frameService) === null || _a === void 0 ? void 0 : _a.addMessageListener(this.dispatchMessageEvent);
|
|
1593
1691
|
}
|
|
1692
|
+
sendMaskCardNumber() {
|
|
1693
|
+
var _a;
|
|
1694
|
+
(_a = this.frameService) === null || _a === void 0 ? void 0 : _a.postMessage(MessageEventType.setMaskCardNumber, {
|
|
1695
|
+
enabled: !!this.maskCardNumber,
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1594
1698
|
get part() {
|
|
1595
1699
|
if (this.isFocused && !this.isValid) {
|
|
1596
1700
|
return inputInvalidAndFocused;
|
|
@@ -1622,35 +1726,35 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1622
1726
|
return params;
|
|
1623
1727
|
}
|
|
1624
1728
|
get iframeSrc() {
|
|
1625
|
-
|
|
1729
|
+
// iframeOrigin already carries ?tabId=…; a second '?' would fold the
|
|
1730
|
+
// style params into the tabId value on the iframe side.
|
|
1731
|
+
const separator = this.iframeOrigin.includes('?') ? '&' : '?';
|
|
1732
|
+
return `${this.iframeOrigin}${separator}${this.urlParams}`;
|
|
1626
1733
|
}
|
|
1627
1734
|
render() {
|
|
1628
|
-
|
|
1735
|
+
this.renderedSrc = this.iframeSrc;
|
|
1736
|
+
return (h(Host, { key: '4e4844f10dec9ddcb6f3f4ccaa5ffe7f254f1a33', class: "form-group d-flex flex-column" }, h("div", { key: '65cf8392e8e5925560a2bfa80fb15209ec14e267', style: {
|
|
1629
1737
|
visibility: this.iframeLoaded ? 'visible' : 'hidden',
|
|
1630
1738
|
height: this.iframeLoaded ? 'auto' : '0',
|
|
1631
|
-
} }, h("label", { key: '
|
|
1632
|
-
this.iframeElement = el;
|
|
1633
|
-
this.initializeFrameCommunicationService();
|
|
1634
|
-
}, width: "100%", onLoad: () => {
|
|
1635
|
-
iFrameResize({
|
|
1636
|
-
log: false,
|
|
1637
|
-
onResized: () => {
|
|
1638
|
-
this.iframeLoaded.emit();
|
|
1639
|
-
}
|
|
1640
|
-
}, this.iframeElement);
|
|
1641
|
-
} })), h(FormControlErrorText, { key: 'f5897f95387e6400f35c997b2921a60fb5f4f11b', errorText: this.errorText, name: this.inputId }))));
|
|
1739
|
+
} }, 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 }))));
|
|
1642
1740
|
}
|
|
1643
1741
|
get el() { return this; }
|
|
1644
|
-
|
|
1742
|
+
static get watchers() { return {
|
|
1743
|
+
"maskCardNumber": ["maskCardNumberChanged"]
|
|
1744
|
+
}; }
|
|
1745
|
+
}, [260, "iframe-input", {
|
|
1645
1746
|
"inputId": [1, "input-id"],
|
|
1646
1747
|
"label": [1],
|
|
1647
1748
|
"iframeOrigin": [1, "iframe-origin"],
|
|
1749
|
+
"maskCardNumber": [4, "mask-card-number"],
|
|
1648
1750
|
"isFocused": [32],
|
|
1649
1751
|
"isValid": [32],
|
|
1650
1752
|
"errorText": [32],
|
|
1651
1753
|
"validate": [64],
|
|
1652
1754
|
"tokenize": [64],
|
|
1653
1755
|
"reload": [64]
|
|
1756
|
+
}, undefined, {
|
|
1757
|
+
"maskCardNumber": ["maskCardNumberChanged"]
|
|
1654
1758
|
}]);
|
|
1655
1759
|
function defineCustomElement() {
|
|
1656
1760
|
if (typeof customElements === "undefined") {
|