@justifi/webcomponents 6.0.0-rc.10 → 6.0.0-rc.12
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/{check-pkg-version-DiQ-d5Nl.js → check-pkg-version-BlIBYv3J.js} +1 -1
- package/dist/cjs/{checkout.store-BGvYPPz0.js → checkout.store-DJEc-So8.js} +3 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- 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-select_2.cjs.entry.js +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +4 -1
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +9 -8
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +75 -74
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +5 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-Be2aoTf8.js → package-BMpasLve.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/index.js +1 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +26 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- 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-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- 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/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +43 -32
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +3 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +6 -38
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +6 -5
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +21 -2
- package/dist/collection/store/checkout.store.js +3 -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-select.js +2 -2
- package/dist/docs.json +55 -31
- package/dist/esm/{check-pkg-version-CAnDiqiu.js → check-pkg-version-C34D9a6k.js} +1 -1
- package/dist/esm/{checkout.store-CCdFOPCK.js → checkout.store-DNDbZO3M.js} +3 -0
- package/dist/esm/checkouts-list-core.entry.js +1 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- 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-select_2.entry.js +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
- package/dist/esm/justifi-apple-pay.entry.js +4 -1
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +9 -8
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +75 -74
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +3 -3
- package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CnWtPu8L.js → package-RVJZaRpm.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +8 -8
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/terminals-list-core.entry.js +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +3 -0
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/justifi-apple-pay.js +3 -0
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/modular-checkout.js +43 -12
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-payment-method.js +9 -61
- package/dist/module/plaid.service.js +26 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +3 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +3 -2
- package/dist/types/api/index.d.ts +2 -2
- package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -2
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +0 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -0
- package/dist/types/components.d.ts +10 -8
- package/dist/types/index.d.ts +1 -0
- package/dist/types/store/checkout.store.d.ts +3 -0
- package/dist/webcomponents/{p-7bcfaff4.entry.js → p-0481bce2.entry.js} +1 -1
- package/dist/webcomponents/{p-af9c4174.entry.js → p-0ff04742.entry.js} +1 -1
- package/dist/webcomponents/p-107a603e.entry.js +1 -0
- package/dist/webcomponents/p-11e13345.entry.js +1 -0
- package/dist/webcomponents/{p-89ecd650.entry.js → p-12e5e7a5.entry.js} +1 -1
- package/dist/webcomponents/{p-f4d0cdf0.entry.js → p-21c867df.entry.js} +1 -1
- package/dist/webcomponents/p-27d3254b.entry.js +1 -0
- package/dist/webcomponents/p-2b39ab97.entry.js +1 -0
- package/dist/webcomponents/{p-e8a67dc7.entry.js → p-2d14f144.entry.js} +1 -1
- package/dist/webcomponents/p-402caa84.entry.js +1 -0
- package/dist/webcomponents/{p-17093105.entry.js → p-42d4ea58.entry.js} +1 -1
- package/dist/webcomponents/{p-9a2c044f.entry.js → p-431ba789.entry.js} +1 -1
- package/dist/webcomponents/{p-2fa34c82.entry.js → p-46b6142b.entry.js} +1 -1
- package/dist/webcomponents/p-4e1653c2.entry.js +1 -0
- package/dist/webcomponents/{p-9e8021a1.entry.js → p-522e7b24.entry.js} +1 -1
- package/dist/webcomponents/{p-1bcb3852.entry.js → p-52d1df84.entry.js} +1 -1
- package/dist/webcomponents/p-537aa971.entry.js +1 -0
- package/dist/webcomponents/{p-b7d2f2eb.entry.js → p-594e6de4.entry.js} +1 -1
- package/dist/webcomponents/{p-7dd74e6f.entry.js → p-5b96f73a.entry.js} +1 -1
- package/dist/webcomponents/p-5c4438d2.entry.js +1 -0
- package/dist/webcomponents/{p-1a08b47f.entry.js → p-60f67f0b.entry.js} +1 -1
- package/dist/webcomponents/{p-d62cd269.entry.js → p-65576256.entry.js} +1 -1
- package/dist/webcomponents/p-7186f4a7.entry.js +1 -0
- package/dist/webcomponents/{p-62d12566.entry.js → p-71f9c48a.entry.js} +1 -1
- package/dist/webcomponents/{p-f7c4222f.entry.js → p-72487fc4.entry.js} +1 -1
- package/dist/webcomponents/p-778e9fe9.entry.js +1 -0
- package/dist/webcomponents/{p-1eb2b847.entry.js → p-86a156dd.entry.js} +1 -1
- package/dist/webcomponents/{p-9fc0ea58.entry.js → p-8e3aa006.entry.js} +1 -1
- package/dist/webcomponents/{p-9fcff84c.entry.js → p-9c997d0b.entry.js} +1 -1
- package/dist/webcomponents/p-9f290cee.entry.js +1 -0
- package/dist/webcomponents/{p-DZYcH7jA.js → p-BDhDryfc.js} +1 -1
- package/dist/webcomponents/p-Cb3h46bV.js +1 -0
- package/dist/webcomponents/p-RVJZaRpm.js +1 -0
- package/dist/webcomponents/{p-a55f07af.entry.js → p-a17c9611.entry.js} +1 -1
- package/dist/webcomponents/{p-c599e526.entry.js → p-a6748a1d.entry.js} +1 -1
- package/dist/webcomponents/{p-54ca3070.entry.js → p-a7ac285c.entry.js} +1 -1
- package/dist/webcomponents/p-b884c549.entry.js +1 -0
- package/dist/webcomponents/p-bc45aa92.entry.js +1 -0
- package/dist/webcomponents/p-c8613a86.entry.js +1 -0
- package/dist/webcomponents/{p-bbc4b4cb.entry.js → p-d0b109a1.entry.js} +1 -1
- package/dist/webcomponents/{p-0803d130.entry.js → p-d637e889.entry.js} +1 -1
- package/dist/webcomponents/{p-5ad0f438.entry.js → p-e6d1ed81.entry.js} +1 -1
- package/dist/webcomponents/{p-50392803.entry.js → p-e7b66120.entry.js} +1 -1
- package/dist/webcomponents/p-e9a5c837.entry.js +1 -0
- package/dist/webcomponents/{p-ab6a5dc9.entry.js → p-ed901f9d.entry.js} +1 -1
- package/dist/webcomponents/{p-8a6718b6.entry.js → p-efda81f3.entry.js} +1 -1
- package/dist/webcomponents/p-f849a34e.entry.js +1 -0
- package/dist/webcomponents/{p-464e7a8e.entry.js → p-f8978519.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-117b7f47.entry.js +0 -1
- package/dist/webcomponents/p-2f7aa249.entry.js +0 -1
- package/dist/webcomponents/p-336c31b3.entry.js +0 -1
- package/dist/webcomponents/p-3f33c940.entry.js +0 -1
- package/dist/webcomponents/p-442f86e8.entry.js +0 -1
- package/dist/webcomponents/p-6cf30a24.entry.js +0 -1
- package/dist/webcomponents/p-729dbd8f.entry.js +0 -1
- package/dist/webcomponents/p-85f20746.entry.js +0 -1
- package/dist/webcomponents/p-8d6b81ba.entry.js +0 -1
- package/dist/webcomponents/p-8f7396b1.entry.js +0 -1
- package/dist/webcomponents/p-98cffba9.entry.js +0 -1
- package/dist/webcomponents/p-CnWtPu8L.js +0 -1
- package/dist/webcomponents/p-DIjoBk44.js +0 -1
- package/dist/webcomponents/p-d9dd7d24.entry.js +0 -1
- package/dist/webcomponents/p-dd7352da.entry.js +0 -1
- package/dist/webcomponents/p-eddaca4e.entry.js +0 -1
- package/dist/webcomponents/p-ef32fe0e.entry.js +0 -1
- package/dist/webcomponents/p-f1f0b405.entry.js +0 -1
|
@@ -47,10 +47,10 @@ const DateInput = class {
|
|
|
47
47
|
return part;
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'bbeb4c2a8177f067f448d8dbdd1a3cb4231edca0' }, h("div", { key: '73cbd532399f7c1f3b8165d1b4e32c91698cb8af', class: "form-group d-flex flex-column" }, h("div", { key: 'bda1044c15ef82183369dee491d37bec84ef76bc', class: "d-flex gap-2" }, h("label", { key: '858e0dbe67055585a108604f8ee142047431938f', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'de42e98c63b984570a420ccef8dee18038164b23', helpText: this.helpText })), h("input", { key: '87148f5d0d56720377293de8856a0cb5a6c04333', 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: '526352380506480c7e60bd0d3a9b2dad6a96278e', errorText: this.errorText, name: this.name }))));
|
|
54
54
|
}
|
|
55
55
|
static get watchers() { return {
|
|
56
56
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -40,10 +40,10 @@ const SelectInput = class {
|
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
42
|
var _a;
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'a7428cd8a89414d877dafe9948f5652f28c36a5f' }, h("div", { key: 'c9d5d5d2f8a6292484d3606d883dbb9d168aa316', class: "form-group d-flex flex-column" }, h("div", { key: 'c1aba6560934b966de02e9afef77428c6060eefb', class: "d-flex align-items-start gap-2" }, h("label", { key: '5fbbb09c3955ff3285b006f24c3873082394d39c', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'f756a05a8273ab6fd65205bb5c32cd34c30a9db3', helpText: this.helpText })), h("select", { key: 'ffd0fa461d3c35da5595e705a7c4068066d8f971', 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: '6ee60bb236ccf7cea7bc8ccf946a363d2cd26906', errorText: this.errorText, name: this.name }))));
|
|
47
47
|
}
|
|
48
48
|
static get watchers() { return {
|
|
49
49
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -11053,7 +11053,7 @@ const GrossPaymentChartCore = class {
|
|
|
11053
11053
|
}
|
|
11054
11054
|
}
|
|
11055
11055
|
render() {
|
|
11056
|
-
return (h(Host, { key: '
|
|
11056
|
+
return (h(Host, { key: '663505aa79e84647ccc612ba671910a2cbc9e27d' }, this.loading && h(Spinner, { key: '2c0a00781ec16313786e76e2d95f4cddae5d3cb9' }), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
|
|
11057
11057
|
}
|
|
11058
11058
|
static get watchers() { return {
|
|
11059
11059
|
"getGrossPayment": ["propChanged"],
|
|
@@ -3,7 +3,7 @@ import { c as createStore } from './index-B_KxSZIF.js';
|
|
|
3
3
|
import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, l as label } from './parts-RvUQ__Pq.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
5
5
|
import { F as FormControlErrorText } from './form-control-error-text-R7U07nTg.js';
|
|
6
|
-
import { p as packageJson } from './package-
|
|
6
|
+
import { p as packageJson } from './package-RVJZaRpm.js';
|
|
7
7
|
|
|
8
8
|
const iframeInputStylesStore = createStore({
|
|
9
9
|
focused: {
|
|
@@ -98,7 +98,7 @@ const AdditionalStatement = class {
|
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
100
|
var _a, _b;
|
|
101
|
-
return (h("div", { key: '
|
|
101
|
+
return (h("div", { key: '4d0fbca80a880577be7853efc494807d7d1e2fd9' }, h("div", { key: '6c3a82afe01b0812807a8e19dc750d4e9901876a', class: "row gy-3" }, h("div", { key: '89e7f50b0c6d67249b892caf8c6b2d78c1742309', class: "col-12" }, h("h2", { key: 'e0c4db3f5330cdd0e00897da0a54b898f0056f93', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '58d4506d4bc0470afa4de87fdcf25ce4397d4180', class: "col-12" }, h("form-control-textarea", { key: 'aee641d90803d0ff483cfe75d881e3259303d4bc', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: '19377eb6382adc9cb69ec57fe7928b7d477110d8', class: "col-12" }, h("form-control-file-v2", { key: '9529de236046398904d4780fcedada3a67ce4daf', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
|
|
@@ -132,7 +132,7 @@ const CancellationPolicy = class {
|
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
134
|
var _a, _b, _c;
|
|
135
|
-
return (h("div", { key: '
|
|
135
|
+
return (h("div", { key: 'ac10b9b21d37179211d74118b06f561e95d9ea71' }, h("div", { key: '8ff525f8ed20828ed153b7dc23cb84a0277b81d4', class: "row gy-3" }, h("div", { key: '4f22ed526972a6625dc77b3ab0ab5b074277d7b2', class: "col-12" }, h("h2", { key: 'd78d54468b91edd99238bd757f871b18ec5b58ca', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '629c9660446cbba8951cd8396d9b72aea71c731b', class: "col-12" }, h("form-control-textarea", { key: '60e0b4903e4ddec6915d23617f215d5d2ea20935', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: 'aec3e4561f880b86ba6f5c7ce0298e45b837c2fd', class: "col-12" }, h("form-control-textarea", { key: 'e77d126709037cb22e6e4fcf2228652ffeb672ee', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '407c071a0f7a1e488eb2ef4d522e515138a5ed2c', class: "col-12" }, h("form-control-file-v2", { key: '15dfacd8e1de439848d12ecec9a0f5ffac259484', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
|
|
@@ -167,7 +167,7 @@ const CustomerDetails = class {
|
|
|
167
167
|
}
|
|
168
168
|
render() {
|
|
169
169
|
var _a, _b, _c, _d, _e;
|
|
170
|
-
return (h("div", { key: '
|
|
170
|
+
return (h("div", { key: 'e09402d1c3ca9bb8f3a243c22bec2e9d908d661f' }, h("div", { key: '67a1038f92a9a9711ca37d353af7a06b87cbe0a8', class: "row gy-3" }, h("div", { key: '1be2249539c434bf3faf847b4202ff2f421d15a3', class: "col-12" }, h("h2", { key: '17d8bc1b31dfa77f08500ff4029f572049d9e1ce', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '3e218b39c8f5dab178cc8b23caf403e1a912694c', class: "col-12" }, h("form-control-text", { key: 'ab28a2176315c3ecd1ff984a599589a81375f4e0', 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: 'e1739728748de575e39f29018cd1139d75232611', class: "col-12" }, h("form-control-text", { key: '9f2aec120b08ac793be93f9c990d81a74c9e57d2', 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: '9be7e4a85edfc9bc95e8ede96ebc81f4777f1cdb', class: "col-12" }, h("form-control-textarea", { key: '100e419cc2064509aaa03c76e2898fc7df85e950', 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: '94da95bb013738aefb17088203ee14e07f159ae0', class: "col-12" }, h("form-control-file-v2", { key: '1ab77a12a715fbb82c0bc1c9f9081e54fd3fef0e', 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: '88eed9387758b86332137fa64b4e3b3c5825d908', class: "col-12" }, h("form-control-file-v2", { key: '0b654ffcf253c639b07ffe03450a87550caaa75a', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
|
|
@@ -201,7 +201,7 @@ const DuplicateCharge = class {
|
|
|
201
201
|
}
|
|
202
202
|
render() {
|
|
203
203
|
var _a, _b, _c;
|
|
204
|
-
return (h("div", { key: '
|
|
204
|
+
return (h("div", { key: '2a51ce4a6859bdd9b6fc3376f08726a682a61587' }, h("div", { key: '49765fde2654e0eda955e4569d3003749d04b1a1', class: "row gy-3" }, h("div", { key: '9a04ce529407e436c5c7dc363525821116eb3271', class: "col-12" }, h("h2", { key: '6d8c1c64da56d19e3adedc08171b7096084adb0b', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '3a4be2ced9e35974864a6fb3504dff58d792e623', class: "col-12" }, h("form-control-text", { key: 'a3d86e2059a017d931619d1e53a24e60e9f95282', 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: '407386824a21bc40a802366ebf4c8e0cc2aef908', class: "col-12" }, h("form-control-textarea", { key: 'c4b5a5026eeffedeae11d9f6fd74ecd4e288894c', 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: 'cc4a805b1c5574436a19258007cd3271831e9967', class: "col-12" }, h("form-control-file-v2", { key: '49d84e63f7acd6dd953429063fc9206373482d16', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
|
|
@@ -234,7 +234,7 @@ const ElectronicEvidence = class {
|
|
|
234
234
|
}
|
|
235
235
|
render() {
|
|
236
236
|
var _a, _b;
|
|
237
|
-
return (h("div", { key: '
|
|
237
|
+
return (h("div", { key: '41d5fd40ac6fc4fffddb7913b647046869882dfd' }, h("div", { key: '265d25bbd6423f6514a1bb4fab1574631113783d', class: "row gy-3" }, h("div", { key: 'e55e31fbfaa88eacd940622551e37951e54aa321', class: "col-12" }, h("h2", { key: '710bec9fdf42a7ddedbaed447ab1212bc9d6be9c', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: '81ad6d6af441041c0aa0f39c732d528e9d966b61', class: "col-12" }, h("form-control-text", { key: 'b9a3ae49cc394e28baadec0ca9904e5c25996921', 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: '53c9b52e9ff3a988805c9e72dca2038ac8cb8483', class: "col-12" }, h("form-control-file-v2", { key: 'bd2bd5d7131bf7c92a7d11042211a9b7764dbbd7', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
|
|
@@ -268,7 +268,7 @@ const ProductOrService = class {
|
|
|
268
268
|
}
|
|
269
269
|
render() {
|
|
270
270
|
var _a, _b, _c;
|
|
271
|
-
return (h("div", { key: '
|
|
271
|
+
return (h("div", { key: 'c93f5bc2e64f5e2964eb033cb6c972283841876b' }, h("div", { key: '7986f459ba9cc0d7e896a418ba4bd9e51148d36f', class: "row gy-3" }, h("div", { key: 'ddf033f861a5b91961294600a5d6d7261937711c', class: "col-12" }, h("h2", { key: '2a33306859a2982fbb3457831c29a98cd3e86c4f', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '385212b08cbdcd4d610c806f1f9b5d18446a9831', class: "col-12" }, h("form-control-text", { key: '210a8c07288473e93737e93659dc91e7f813e306', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '5a52ad00db803d2ddd0afe6ee7cde4b907e1ad1a', class: "col-12" }, h("form-control-date", { key: '1bdef3f3391b4a97aa3e97aefac3e29b5520f620', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: 'd4fc75d0f175914e2fbb134e6449e1d45742a9f3', class: "col-12" }, h("form-control-file-v2", { key: '62e1ae0f42103f49bc5c93427b62ad90570634f8', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
|
|
@@ -302,7 +302,7 @@ const RefundPolicy = class {
|
|
|
302
302
|
}
|
|
303
303
|
render() {
|
|
304
304
|
var _a, _b, _c, _d;
|
|
305
|
-
return (h("div", { key: '
|
|
305
|
+
return (h("div", { key: 'a300941b5472ab2cfd1dd212fbab4b280c132f73' }, h("div", { key: '1f11681c815c4f0676da384884b758b1bd49f3d1', class: "row gy-3" }, h("div", { key: '56f1575a5e2c7da5d725ca224b5d64163de0fd23', class: "col-12" }, h("h2", { key: '9ccb22c016184f233d1096b66380473a8e62c269', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: 'e602ac3e5fe3cbd3d12910d66cc8d879295a9e4a', class: "col-12" }, h("form-control-textarea", { key: 'f6e6dae3ab7d383da16fa5308933a77cf63f11d8', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: '8cdb3b28847683f5fd4594eb64522c899e5ef993', class: "col-12" }, h("form-control-textarea", { key: 'c8e4b7c760cbe8bb9cb30818b0c29f6012092649', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: '95c376af4517e3ee23afd64d479a6ae051f03d72', class: "col-12" }, h("form-control-file-v2", { key: 'dc2ef0d5911dbab2d820bc46563bbb7218390501', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: 'b9d6ffb85e987f5037e414dde26e72f5219c0ea8', class: "col-12" }, h("form-control-file-v2", { key: 'c6513b7a2f9d68c2df2be8c21da0d16e03a6a885', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
|
|
@@ -339,7 +339,7 @@ const ShippingDetails = class {
|
|
|
339
339
|
}
|
|
340
340
|
render() {
|
|
341
341
|
var _a, _b, _c, _d, _e;
|
|
342
|
-
return (h("div", { key: '
|
|
342
|
+
return (h("div", { key: '4556d3dbedce4833b63302f78f467ccf71cce02c' }, h("div", { key: '18569ca4c37bbf7b82a13db6c8ae878d0b2c12fa', class: "row gy-3" }, h("div", { key: '001f41285eda4237686861df1aaaad24836fbf7c', class: "col-12" }, h("h2", { key: '3193324c11f5ca7c81de99cd224e2f8a8d21a43d', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'e312e8aee070bee2b317dc7f6f9e616dc3cbd26e', class: "col-12" }, h("form-control-text", { key: '69a90af0a8c328b7e0eba67d39ac3f2f4ffd3439', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '5c4ca04204a7467918e2e130d6ee437a4c5db85b', class: "col-12" }, h("form-control-text", { key: '266415e75633d4d4b5062f56ec43d47e60e03aa1', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '90088259556bbfce03c87af029ea53efc4c394de', class: "col-12" }, h("form-control-date", { key: 'b5eaf92844540c4536f8296e8668ed7e826dfd1f', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '180c72ec5c37cb7bca2edbf3d158d4973c149084', class: "col-12" }, h("form-control-textarea", { key: '924cae54e30cba491dd4ce10bb514a7374a1d793', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: 'b7f06251c0a03bec0b6622b9d05c7c55d7d6bb13', class: "col-12" }, h("form-control-file-v2", { key: '832da84ac1f4822ac882c03d60b169a2351ffb8e', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
|
|
@@ -3,7 +3,7 @@ import { A as Api } from './Api-DAWuvzbl.js';
|
|
|
3
3
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
4
4
|
import './event-types-CZfYo5-1.js';
|
|
5
5
|
import { S as Skeleton } from './skeleton-qMb0_Cjy.js';
|
|
6
|
-
import { c as checkoutStore, o as onChange } from './checkout.store-
|
|
6
|
+
import { c as checkoutStore, o as onChange } from './checkout.store-DNDbZO3M.js';
|
|
7
7
|
import './config-state-DZeVYerv.js';
|
|
8
8
|
import './index-B_KxSZIF.js';
|
|
9
9
|
import './utils-BscIVFn8.js';
|
|
@@ -671,6 +671,9 @@ const ApplePay = class {
|
|
|
671
671
|
onChange("authToken", () => {
|
|
672
672
|
this.initializeApplePay();
|
|
673
673
|
});
|
|
674
|
+
onChange("checkoutLoaded", () => {
|
|
675
|
+
this.initializeApplePay();
|
|
676
|
+
});
|
|
674
677
|
}
|
|
675
678
|
watchPropsChange() {
|
|
676
679
|
this.initializeApplePay();
|
|
@@ -5,18 +5,18 @@ import { r as radioListItem, av as billingForm } from './parts-RvUQ__Pq.js';
|
|
|
5
5
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { S as Skeleton } from './skeleton-qMb0_Cjy.js';
|
|
8
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
8
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C34D9a6k.js';
|
|
9
9
|
import { w as waitForConfig, c as configState } from './config-state-DZeVYerv.js';
|
|
10
10
|
import { H as Header3 } from './header-3-CWa41YWq.js';
|
|
11
11
|
import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
|
|
12
12
|
import { S as StateOptions } from './state-options-BX8GieXu.js';
|
|
13
13
|
import { B as Button } from './button-CpllL0At.js';
|
|
14
|
-
import { c as checkoutStore } from './checkout.store-
|
|
14
|
+
import { c as checkoutStore } from './checkout.store-DNDbZO3M.js';
|
|
15
15
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
16
16
|
import './business-form-options-CgssATyg.js';
|
|
17
17
|
import './Business-BCoP0TAV.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-RVJZaRpm.js';
|
|
20
20
|
import './Api-DAWuvzbl.js';
|
|
21
21
|
import './utils-BscIVFn8.js';
|
|
22
22
|
import './dinero-HXpYMWUU.js';
|
|
@@ -154,10 +154,10 @@ const BankAccountForm = class {
|
|
|
154
154
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
155
155
|
}
|
|
156
156
|
render() {
|
|
157
|
-
return (h(StyledHost, { key: '
|
|
157
|
+
return (h(StyledHost, { key: '55cf04f40c030d67235807168a303dc2680561d2' }, h(BankAccountFormSkeleton, { key: '1b076c4d58b80c5f9b5842e1e0228657ec39f68b', isReady: this.isReady }), h("hidden-input", { key: '8b622b9693d7648a6bd33f082241910801c14e1e' }), h("div", { key: 'ce79e65bd2dba972885b5c906715e70d2817dd4c', class: "container-fluid p-0", style: {
|
|
158
158
|
opacity: this.isReady ? '1' : '0',
|
|
159
159
|
height: this.isReady ? 'auto' : '0',
|
|
160
|
-
} }, h("div", { key: '
|
|
160
|
+
} }, h("div", { key: '8cc5b4b9c742ba0958845f2e5fee3e94c6449229', class: "row mb-3" }, h("iframe-input", { key: '3c41e6d2af86ff242f3b7a3d462628ab16626fe7', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: 'd95374c4f22fe40bc0033f159d456d94ee10363f', class: "row" }, h("iframe-input", { key: '22df6eb6ad22ccb18e9e24533dd8b208afb44309', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
|
|
@@ -337,10 +337,10 @@ const JustifiCardForm = class {
|
|
|
337
337
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
338
338
|
}
|
|
339
339
|
render() {
|
|
340
|
-
return (h(StyledHost, { key: '
|
|
340
|
+
return (h(StyledHost, { key: '46acef24075db09eea0c94417e92e90a360e5850' }, h(CardFormSkeleton, { key: 'bd4f610e83d7bcbf5b597079d68bbeb2abe8c02e', isReady: this.isReady }), h("hidden-input", { key: 'b4a289f1ac7f104f5dce7848a94d22c9aa4a4b56' }), h("div", { key: 'df003c1be11c5a5262e6563d1fd4755ae60dc700', class: "container-fluid p-0", style: {
|
|
341
341
|
opacity: this.isReady ? '1' : '0',
|
|
342
342
|
height: this.isReady ? 'auto' : '0',
|
|
343
|
-
} }, h("div", { key: '
|
|
343
|
+
} }, h("div", { key: '900e56045f6db140c74db42396a85153d3fae683', class: "mb-3" }, h("iframe-input", { key: '1600ae4cddd10afb5abeea9d9a4e851e76ad3de2', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: 'ce66d35bd549b2cebca200c8c42eeddca4acd2d1', class: "row" }, h("div", { key: 'f1480606b802eff983710a37f79a9492f79b8440', class: "col-4 align-content-end" }, h("iframe-input", { key: 'd04785d62994fef3ee2d597a189d0b823e803bca', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '875e03320bb22f4f6891f01e749fef871f37cf18', class: "col-4 align-content-end" }, h("iframe-input", { key: 'ead59922d5ffeefe6e5951203b9ec157135dee3c', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'a70d098fc88770441dfb347b9124f4c4d159714d', class: "col-4 align-content-end" }, h("iframe-input", { key: 'eff54f20b8b3280b08839aaf4e77ab46c3262202', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
|
|
@@ -348,6 +348,7 @@ const SaveNewPaymentMethod = class {
|
|
|
348
348
|
constructor(hostRef) {
|
|
349
349
|
registerInstance(this, hostRef);
|
|
350
350
|
this.checkboxChanged = createEvent(this, "checkboxChanged");
|
|
351
|
+
this.label = 'Save New Payment Method';
|
|
351
352
|
this.isChecked = false;
|
|
352
353
|
this.handleCheckboxChange = (_name, value) => {
|
|
353
354
|
this.isChecked = value;
|
|
@@ -356,7 +357,7 @@ const SaveNewPaymentMethod = class {
|
|
|
356
357
|
};
|
|
357
358
|
}
|
|
358
359
|
render() {
|
|
359
|
-
return (h(StyledHost, { key: '
|
|
360
|
+
return (h(StyledHost, { key: 'c3808f4373067144ded9db353e48fe9cd3df59bc' }, h("form-control-checkbox", { key: '2f104a35497fdc1397c014c4c4ed646f7b389239', label: this.label || 'Save New Payment Method', name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange })));
|
|
360
361
|
}
|
|
361
362
|
};
|
|
362
363
|
|
|
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-Dg6gMUTv.js';
|
|
|
3
3
|
import { B as BusinessService } from './business.service-cQrH5BqF.js';
|
|
4
4
|
import { m as makeGetBusiness } from './get-business-Crb6P-iI.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C34D9a6k.js';
|
|
7
7
|
import './parts-RvUQ__Pq.js';
|
|
8
8
|
import './Api-DAWuvzbl.js';
|
|
9
9
|
import './config-state-DZeVYerv.js';
|
|
@@ -17,7 +17,7 @@ import './Business-BCoP0TAV.js';
|
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './utils-BeQLScSm.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-RVJZaRpm.js';
|
|
21
21
|
|
|
22
22
|
const BusinessDetails = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -9,7 +9,7 @@ import './Refund-CVh70dXA.js';
|
|
|
9
9
|
import './Pagination-CLHwhyvu.js';
|
|
10
10
|
import { B as Business, b as BusinessFormServerErrors } from './Business-BCoP0TAV.js';
|
|
11
11
|
import './Dispute-BH0Xfn-F.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C34D9a6k.js';
|
|
13
13
|
import { B as Button } from './button-CpllL0At.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
15
15
|
import { H as Header1 } from './header-1-3M9If0gM.js';
|
|
@@ -25,7 +25,7 @@ import './business-form-options-CgssATyg.js';
|
|
|
25
25
|
import './index-B_KxSZIF.js';
|
|
26
26
|
import './utils-BscIVFn8.js';
|
|
27
27
|
import './helpers-Mu7LQT-w.js';
|
|
28
|
-
import './package-
|
|
28
|
+
import './package-RVJZaRpm.js';
|
|
29
29
|
import './Api-DAWuvzbl.js';
|
|
30
30
|
import './parts-RvUQ__Pq.js';
|
|
31
31
|
import './utils-BeQLScSm.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h, c as createEvent, H as Host, g as getElement } from './index-Bn7inNWG.js';
|
|
2
2
|
import { z as text, r as radioListItem } from './parts-RvUQ__Pq.js';
|
|
3
3
|
import { f as formatCurrency } from './utils-BscIVFn8.js';
|
|
4
|
-
import { c as checkoutStore, a as onAnyChange, g as getAvailablePaymentMethodTypes, o as onChange } from './checkout.store-
|
|
4
|
+
import { c as checkoutStore, a as onAnyChange, g as getAvailablePaymentMethodTypes, o as onChange } from './checkout.store-DNDbZO3M.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { H as Header1 } from './header-1-3M9If0gM.js';
|
|
8
8
|
import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-CTalqbNa.js';
|
|
9
9
|
import { H as Header3 } from './header-3-CWa41YWq.js';
|
|
10
|
-
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-
|
|
10
|
+
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-C34D9a6k.js';
|
|
11
11
|
import './config-state-DZeVYerv.js';
|
|
12
12
|
import './dinero-HXpYMWUU.js';
|
|
13
13
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
|
|
@@ -17,11 +17,11 @@ import './Business-BCoP0TAV.js';
|
|
|
17
17
|
import './Dispute-BH0Xfn-F.js';
|
|
18
18
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
19
19
|
import { C as CheckoutService } from './checkout.service-Bbgi1I6V.js';
|
|
20
|
-
import { a as PAYMENT_MODE, b as PAYMENT_METHOD_TYPES, P as PAYMENT_METHODS } from './index-CbL73B6U.js';
|
|
21
20
|
import { A as Api } from './Api-DAWuvzbl.js';
|
|
21
|
+
import { a as PAYMENT_MODE, b as PAYMENT_METHOD_TYPES, P as PAYMENT_METHODS } from './index-CbL73B6U.js';
|
|
22
22
|
import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
|
|
23
23
|
import './index-B_KxSZIF.js';
|
|
24
|
-
import './package-
|
|
24
|
+
import './package-RVJZaRpm.js';
|
|
25
25
|
import './helpers-Mu7LQT-w.js';
|
|
26
26
|
import './state-options-BX8GieXu.js';
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@ const Summary = class {
|
|
|
30
30
|
registerInstance(this, hostRef);
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(StyledHost, { key: '
|
|
33
|
+
return (h(StyledHost, { key: '2644d423d844136d86f7f6b1b80aa98b224146ac' }, h("section", { key: '2017758b2eb8bf6483ca4765e5f18279ff2f6de7' }, h("div", { key: '029f98c45be1e9c807eef1dbf1508e231c7215d1' }, h("div", { key: 'db1b7e220f5afd230ea1fcf5dc818f96d03f68b9', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: 'b9d401af17512a5f5ef24350f8c9e9ad1163d83e' }, h("span", { key: '5d7dcef6b946ae455cb2b8e57089f0365b8bb52b', part: text }, "Total"), "\u00A0", h("span", { key: 'cfc8fc46c2f87011de758ccce92a9f4bfbe2ba88', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -105,13 +105,33 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
|
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
+
const api = Api();
|
|
109
|
+
class PlaidService {
|
|
110
|
+
async getLinkToken(authToken, accountId, checkoutId, signal) {
|
|
111
|
+
const endpoint = `plaid/${accountId}/link`;
|
|
112
|
+
const body = { checkout_id: checkoutId };
|
|
113
|
+
return api.post({ endpoint, body, authToken, signal });
|
|
114
|
+
}
|
|
115
|
+
async tokenizeBankAccount(authToken, accountId, publicToken, linkTokenId, paymentMethodGroupId, signal) {
|
|
116
|
+
const endpoint = `plaid/${accountId}/tokenize`;
|
|
117
|
+
const body = { public_token: publicToken };
|
|
118
|
+
if (linkTokenId) {
|
|
119
|
+
body.link_token_id = linkTokenId;
|
|
120
|
+
}
|
|
121
|
+
if (paymentMethodGroupId) {
|
|
122
|
+
body.payment_method_group_id = paymentMethodGroupId;
|
|
123
|
+
}
|
|
124
|
+
return api.post({ endpoint, body, authToken, signal });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
108
128
|
const ModularCheckout = class {
|
|
109
129
|
constructor(hostRef) {
|
|
110
130
|
registerInstance(this, hostRef);
|
|
111
131
|
this.errorEvent = createEvent(this, "error-event");
|
|
112
132
|
this.submitEvent = createEvent(this, "submit-event");
|
|
113
133
|
this.checkoutChangedEvent = createEvent(this, "checkout-changed");
|
|
114
|
-
this.
|
|
134
|
+
this.plaidService = new PlaidService();
|
|
115
135
|
this.handleApplePayCompleted = (event) => {
|
|
116
136
|
const { success, token, paymentMethodId, error } = event.detail;
|
|
117
137
|
if (success && token) {
|
|
@@ -142,9 +162,6 @@ const ModularCheckout = class {
|
|
|
142
162
|
checkoutStore.selectedPaymentMethod = undefined;
|
|
143
163
|
};
|
|
144
164
|
}
|
|
145
|
-
savePaymentMethodChanged(newValue) {
|
|
146
|
-
checkoutStore.savePaymentMethod = newValue;
|
|
147
|
-
}
|
|
148
165
|
connectedCallback() {
|
|
149
166
|
this.observer = new MutationObserver(() => {
|
|
150
167
|
this.queryFormRefs();
|
|
@@ -171,7 +188,6 @@ const ModularCheckout = class {
|
|
|
171
188
|
this.analytics = new JustifiAnalytics(this);
|
|
172
189
|
checkPkgVersion();
|
|
173
190
|
checkoutStore.authToken = this.authToken;
|
|
174
|
-
checkoutStore.savePaymentMethod = this.savePaymentMethod;
|
|
175
191
|
this.fetchCheckout();
|
|
176
192
|
// Refresh the checkout data when insurance values actually change (not on initial load)
|
|
177
193
|
insuranceValuesOn("set", (key) => {
|
|
@@ -233,6 +249,7 @@ const ModularCheckout = class {
|
|
|
233
249
|
updateStore(checkout) {
|
|
234
250
|
var _a, _b, _c, _d, _e;
|
|
235
251
|
checkoutStore.accountId = checkout.account_id;
|
|
252
|
+
checkoutStore.checkoutLoaded = true;
|
|
236
253
|
checkoutStore.paymentMethods = checkout.payment_methods;
|
|
237
254
|
checkoutStore.paymentMethodGroupId = checkout.payment_method_group_id;
|
|
238
255
|
checkoutStore.paymentDescription = checkout.payment_description;
|
|
@@ -299,6 +316,7 @@ const ModularCheckout = class {
|
|
|
299
316
|
// set the selected payment method to the checkout store from outside the component
|
|
300
317
|
async setSelectedPaymentMethod(paymentMethod) {
|
|
301
318
|
checkoutStore.selectedPaymentMethod = paymentMethod;
|
|
319
|
+
checkoutStore.paymentToken = paymentMethod.id || undefined;
|
|
302
320
|
}
|
|
303
321
|
// getAvailablePaymentMethods removed in favor of checkout-changed event
|
|
304
322
|
// if validation fails, the error will be emitted by the component
|
|
@@ -341,11 +359,13 @@ const ModularCheckout = class {
|
|
|
341
359
|
}
|
|
342
360
|
}
|
|
343
361
|
async submitCheckout(submitCheckoutArgs) {
|
|
362
|
+
var _a;
|
|
344
363
|
const isValid = await this.validate();
|
|
345
364
|
const isNewCard = checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.card &&
|
|
346
365
|
checkoutStore.selectedPaymentMethod.id === undefined;
|
|
347
366
|
const isNewBankAccount = checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.bankAccount &&
|
|
348
367
|
checkoutStore.selectedPaymentMethod.id === undefined;
|
|
368
|
+
const isPlaid = checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.plaid;
|
|
349
369
|
const shouldTokenize = isNewCard || isNewBankAccount;
|
|
350
370
|
if (shouldTokenize) {
|
|
351
371
|
const tokenizeResult = await this.tokenizePaymentMethod(submitCheckoutArgs);
|
|
@@ -358,6 +378,41 @@ const ModularCheckout = class {
|
|
|
358
378
|
return;
|
|
359
379
|
}
|
|
360
380
|
}
|
|
381
|
+
// For Plaid, perform exchange at submit time using stored public token and link token id
|
|
382
|
+
if (isPlaid && !checkoutStore.paymentToken) {
|
|
383
|
+
const publicToken = checkoutStore.plaidPublicToken;
|
|
384
|
+
const linkTokenId = checkoutStore.plaidLinkTokenId;
|
|
385
|
+
if (!publicToken) {
|
|
386
|
+
this.errorEvent.emit({
|
|
387
|
+
message: 'Missing Plaid public token. Please connect your bank.',
|
|
388
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
389
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
390
|
+
});
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
try {
|
|
394
|
+
const response = await this.plaidService.tokenizeBankAccount(checkoutStore.authToken, checkoutStore.accountId, publicToken, linkTokenId || undefined, checkoutStore.savePaymentMethod ? checkoutStore.paymentMethodGroupId : undefined);
|
|
395
|
+
if (response === null || response === void 0 ? void 0 : response.error) {
|
|
396
|
+
this.errorEvent.emit({
|
|
397
|
+
message: typeof response.error === 'string' ? response.error : response.error.message || 'Failed to tokenize bank account',
|
|
398
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
399
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
400
|
+
});
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
const paymentMethod = response === null || response === void 0 ? void 0 : response.data;
|
|
404
|
+
const token = ((_a = paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.bank_account) === null || _a === void 0 ? void 0 : _a.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
|
|
405
|
+
checkoutStore.paymentToken = token;
|
|
406
|
+
}
|
|
407
|
+
catch (err) {
|
|
408
|
+
this.errorEvent.emit({
|
|
409
|
+
message: (err === null || err === void 0 ? void 0 : err.message) || 'Plaid exchange error',
|
|
410
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
411
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
412
|
+
});
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
361
416
|
if (!isValid) {
|
|
362
417
|
this.errorEvent.emit({
|
|
363
418
|
message: "Please fill in all required fields.",
|
|
@@ -372,6 +427,7 @@ const ModularCheckout = class {
|
|
|
372
427
|
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
373
428
|
severity: ComponentErrorSeverity.ERROR,
|
|
374
429
|
});
|
|
430
|
+
return;
|
|
375
431
|
}
|
|
376
432
|
let payment;
|
|
377
433
|
const mapTypeToPaymentMode = (type) => {
|
|
@@ -410,36 +466,13 @@ const ModularCheckout = class {
|
|
|
410
466
|
});
|
|
411
467
|
}
|
|
412
468
|
render() {
|
|
413
|
-
return h(Host, { key: '
|
|
469
|
+
return h(Host, { key: '08b6e2c3f58745ac7865f686bafba4e18cbab268' });
|
|
414
470
|
}
|
|
415
471
|
get hostEl() { return getElement(this); }
|
|
416
|
-
static get watchers() { return {
|
|
417
|
-
"savePaymentMethod": ["savePaymentMethodChanged"]
|
|
418
|
-
}; }
|
|
419
472
|
};
|
|
420
473
|
|
|
421
474
|
const plaidIconSvg = 'data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=';
|
|
422
475
|
|
|
423
|
-
const api = Api();
|
|
424
|
-
class PlaidService {
|
|
425
|
-
async getLinkToken(authToken, accountId, checkoutId, signal) {
|
|
426
|
-
const endpoint = `plaid/${accountId}/link`;
|
|
427
|
-
const body = { checkout_id: checkoutId };
|
|
428
|
-
return api.post({ endpoint, body, authToken, signal });
|
|
429
|
-
}
|
|
430
|
-
async tokenizeBankAccount(authToken, accountId, publicToken, linkTokenId, paymentMethodGroupId, signal) {
|
|
431
|
-
const endpoint = `plaid/${accountId}/tokenize`;
|
|
432
|
-
const body = { public_token: publicToken };
|
|
433
|
-
if (linkTokenId) {
|
|
434
|
-
body.link_token_id = linkTokenId;
|
|
435
|
-
}
|
|
436
|
-
if (paymentMethodGroupId) {
|
|
437
|
-
body.payment_method_group_id = paymentMethodGroupId;
|
|
438
|
-
}
|
|
439
|
-
return api.post({ endpoint, body, authToken, signal });
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
476
|
// Plaid-specific error codes
|
|
444
477
|
var PlaidErrorCodes;
|
|
445
478
|
(function (PlaidErrorCodes) {
|
|
@@ -604,6 +637,9 @@ const PlaidPaymentMethod = class {
|
|
|
604
637
|
this.linkToken = response.data.link_token;
|
|
605
638
|
// Try to capture link token id if present in envelope
|
|
606
639
|
this.linkTokenId = (response === null || response === void 0 ? void 0 : response.id) || ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.id) || null;
|
|
640
|
+
if (this.linkTokenId) {
|
|
641
|
+
checkoutStore.plaidLinkTokenId = this.linkTokenId;
|
|
642
|
+
}
|
|
607
643
|
}
|
|
608
644
|
catch (error) {
|
|
609
645
|
// Clear timeout
|
|
@@ -683,41 +719,10 @@ const PlaidPaymentMethod = class {
|
|
|
683
719
|
message: 'Bank account connected successfully',
|
|
684
720
|
severity: ComponentErrorSeverity.INFO
|
|
685
721
|
});
|
|
686
|
-
//
|
|
687
|
-
|
|
688
|
-
};
|
|
689
|
-
this.exchangePublicTokenForPaymentMethod = async () => {
|
|
690
|
-
var _a;
|
|
691
|
-
if (!this.publicToken) {
|
|
692
|
-
console.error('[PlaidPaymentMethod] exchange: missing publicToken');
|
|
693
|
-
return;
|
|
694
|
-
}
|
|
695
|
-
if (!checkoutStore.authToken || !checkoutStore.accountId) {
|
|
696
|
-
console.error('[PlaidPaymentMethod] exchange: missing auth/account context');
|
|
697
|
-
return;
|
|
698
|
-
}
|
|
699
|
-
try {
|
|
700
|
-
const response = await this.plaidService.tokenizeBankAccount(checkoutStore.authToken, checkoutStore.accountId, this.publicToken, this.linkTokenId || undefined, checkoutStore.savePaymentMethod ? checkoutStore.paymentMethodGroupId : undefined);
|
|
701
|
-
if (response === null || response === void 0 ? void 0 : response.error) {
|
|
702
|
-
console.error('[PlaidPaymentMethod] exchange: backend error', response.error);
|
|
703
|
-
return;
|
|
704
|
-
}
|
|
705
|
-
// Extract token from payment method response
|
|
706
|
-
const paymentMethod = response === null || response === void 0 ? void 0 : response.data;
|
|
707
|
-
const token = ((_a = paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.bank_account) === null || _a === void 0 ? void 0 : _a.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
|
|
708
|
-
if (!token) {
|
|
709
|
-
console.error('[PlaidPaymentMethod] exchange: no token in response');
|
|
710
|
-
return;
|
|
711
|
-
}
|
|
712
|
-
// Save for downstream submit flows
|
|
713
|
-
checkoutStore.paymentToken = token;
|
|
714
|
-
}
|
|
715
|
-
catch (err) {
|
|
716
|
-
console.error('[PlaidPaymentMethod] exchange: exception', {
|
|
717
|
-
message: (err === null || err === void 0 ? void 0 : err.message) || String(err),
|
|
718
|
-
});
|
|
719
|
-
}
|
|
722
|
+
// Store public token in checkout store; exchange will be handled on submit
|
|
723
|
+
checkoutStore.plaidPublicToken = publicToken;
|
|
720
724
|
};
|
|
725
|
+
// Exchange logic moved to Modular Checkout submit flow.
|
|
721
726
|
this.handlePlaidExit = (err, _metadata) => {
|
|
722
727
|
this.isAuthenticating = false;
|
|
723
728
|
if (err) {
|
|
@@ -913,10 +918,6 @@ const PlaidPaymentMethod = class {
|
|
|
913
918
|
// Returns a usable payment method token for checkout completion.
|
|
914
919
|
// Will perform the backend exchange if the token is not yet present in the store.
|
|
915
920
|
async getPaymentToken() {
|
|
916
|
-
if (checkoutStore.paymentToken) {
|
|
917
|
-
return checkoutStore.paymentToken;
|
|
918
|
-
}
|
|
919
|
-
await this.exchangePublicTokenForPaymentMethod();
|
|
920
921
|
return checkoutStore.paymentToken;
|
|
921
922
|
}
|
|
922
923
|
async handleSelectionClick() {
|
|
@@ -1395,13 +1396,13 @@ const TokenizePaymentMethod = class {
|
|
|
1395
1396
|
return (h("div", { class: "payment-method" }, h("justifi-radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
|
|
1396
1397
|
}
|
|
1397
1398
|
renderSelectedPaymentMethodForm(paymentMethodId) {
|
|
1398
|
-
return (h("div", { class: "mt-4 pb-4" }, this.renderPaymentMethodForm(paymentMethodId), h("div", { class: "mt-4" }, h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodId })), h("div", { class: "mt-4" }, h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupID }))));
|
|
1399
|
+
return (h("div", { class: "mt-4 pb-4" }, this.renderPaymentMethodForm(paymentMethodId), h("div", { class: "mt-4" }, h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodId })), h("div", { class: "mt-4" }, h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupID, label: this.savePaymentMethodLabel }))));
|
|
1399
1400
|
}
|
|
1400
1401
|
renderPaymentMethodForm(paymentMethodId) {
|
|
1401
1402
|
return paymentMethodId === PaymentMethodTypes.card ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
|
|
1402
1403
|
}
|
|
1403
1404
|
render() {
|
|
1404
|
-
return (h(StyledHost, { key: '
|
|
1405
|
+
return (h(StyledHost, { key: '8a7983cbb634e39612d9f464c3dde43c646356dd' }, h("form", { key: 'ef1d8bc768aeb880445283d4b00d41cd85b77d16' }, h("fieldset", { key: 'be8f72bb4aab7b52098f034a06ad8586fe3b89cb' }, h("div", { key: '0155b97ff6bf1c9364b2b71b337e981c89774bbe', class: "row gy-3" }, h("div", { key: '27bf72ad4b2729a94be20b8a22e196cb5550c078', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: '3a9c4c7bf7830f66d22fa99fc1ca12f3dcaad390', class: "col-12" }, h("justifi-button", { key: '860fbcdc509a72abecc1e6abe2c8ff45a565ea46', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
1405
1406
|
}
|
|
1406
1407
|
get host() { return getElement(this); }
|
|
1407
1408
|
static get watchers() { return {
|