@justifi/webcomponents 6.16.0-rc.1 → 6.16.0-rc.3
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-jQsZxClw.js → Analytics-C1FDYwxD.js} +2 -2
- package/dist/cjs/{Api-DqXlEWR1.js → Api-DzRWrqRx.js} +1 -1
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +5 -5
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -4
- package/dist/cjs/{business.service-Ca-olopC.js → business.service-D2D8ABMT.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +4 -6
- package/dist/cjs/{checkout.service-DBHPH2ji.js → checkout.service-CVpXCi8z.js} +1 -1
- package/dist/cjs/{detect-duplicate-version-D8ZajVUT.js → detect-duplicate-version-Bd2jUlYF.js} +1 -1
- package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
- package/dist/cjs/{event-types-luy3xnYR.js → event-types-DptyH3kd.js} +1 -1
- package/dist/cjs/form-alert_3.cjs.entry.js +7 -2
- package/dist/cjs/{get-subaccounts-D11aTYj1.js → get-subaccounts-CgzPwTgf.js} +1 -1
- package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +50 -26
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +14 -7
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
- 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 +5 -5
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-B414Jbra.js → package-45W01-Af.js} +1 -1
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-CNTe8vrp.js → payment.service-Cbs38oOx.js} +1 -1
- package/dist/cjs/{payout.service-BmU3q9jO.js → payout.service-DGEinO-8.js} +1 -1
- package/dist/cjs/{plaid.service-d9LAwbnX.js → plaid.service-JISYtGYD.js} +1 -1
- package/dist/cjs/styled-host-BxbU-bI7.js +20 -0
- package/dist/cjs/{terminal.service-BkQWZv9b.js → terminal.service-9sdCsY2z.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +0 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -4
- package/dist/collection/components/checkout/justifi-checkout.js +29 -2
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +14 -8
- package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +12 -8
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +18 -2
- package/dist/collection/ui-components/styled-host/styled-host.js +10 -1
- package/dist/collection/utils/frame-comunication-service.js +6 -1
- package/dist/docs.json +30 -1
- package/dist/esm/{Analytics-DihSSvAP.js → Analytics-C9VVBFjO.js} +2 -2
- package/dist/esm/{Api-INJHjnya.js → Api-BSUerPjV.js} +1 -1
- package/dist/esm/additional-questions-form-step_15.entry.js +5 -5
- package/dist/esm/bank-account-form.entry.js +2 -4
- package/dist/esm/{business.service-C8f7OSEu.js → business.service-DRzTONqj.js} +1 -1
- package/dist/esm/card-form.entry.js +4 -6
- package/dist/esm/{checkout.service-BYDkC7uy.js → checkout.service-8sMLHuiA.js} +1 -1
- package/dist/esm/{detect-duplicate-version-C4r1WAzO.js → detect-duplicate-version-Dtfd-S4Z.js} +1 -1
- package/dist/esm/dispute-notification_2.entry.js +5 -5
- package/dist/esm/{event-types-S8CgMbPg.js → event-types-Dix82sNv.js} +1 -1
- package/dist/esm/form-alert_3.entry.js +7 -2
- package/dist/esm/{get-subaccounts-BHWiH8q9.js → get-subaccounts-DjD2utKp.js} +1 -1
- package/dist/esm/justifi-apple-pay_12.entry.js +51 -27
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
- package/dist/esm/justifi-bank-account-form.entry.js +5 -5
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-billing-form.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +5 -5
- package/dist/esm/justifi-checkout-qr-code.entry.js +4 -4
- package/dist/esm/justifi-checkout.entry.js +14 -7
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +7 -7
- package/dist/esm/justifi-dispute-management.entry.js +6 -6
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +7 -7
- package/dist/esm/justifi-payment-details.entry.js +6 -6
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
- package/dist/esm/justifi-payment-transactions-list.entry.js +6 -6
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +6 -6
- package/dist/esm/justifi-payout-details.entry.js +6 -6
- package/dist/esm/justifi-payout-transactions-list.entry.js +6 -6
- package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +7 -7
- package/dist/esm/justifi-qr-terminal.entry.js +5 -5
- 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 +5 -5
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BQpbTebi.js → package-C04splpj.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment.service-CQXRsu6Y.js → payment.service-CLLAQ4ht.js} +1 -1
- package/dist/esm/{payout.service-RRyWfpEK.js → payout.service-BZgKgDDq.js} +1 -1
- package/dist/esm/{plaid.service-Cg3E3Plo.js → plaid.service-CUoMQV-m.js} +1 -1
- package/dist/esm/styled-host-CXEpP1m_.js +18 -0
- package/dist/esm/{terminal.service-Dy6D8bnl.js → terminal.service-De58ZPM6.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-form2.js +0 -2
- package/dist/module/card-form2.js +2 -4
- package/dist/module/iframe-input2.js +6 -1
- package/dist/module/justifi-checkout.js +10 -2
- package/dist/module/justifi-modular-checkout2.js +14 -8
- package/dist/module/justifi-plaid-payment-method2.js +12 -9
- package/dist/module/justifi-tokenize-payment-method2.js +18 -2
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/spinner.js +1 -1
- package/dist/module/styled-host.js +11 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/types/components/checkout/justifi-checkout.d.ts +7 -0
- package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +1 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/webcomponents/p-12ee2546.entry.js +1 -0
- package/dist/webcomponents/{p-7ff788f8.entry.js → p-1336c977.entry.js} +1 -1
- package/dist/webcomponents/p-1411a042.entry.js +1 -0
- package/dist/webcomponents/{p-fb1f2fe8.entry.js → p-19e638a1.entry.js} +1 -1
- package/dist/webcomponents/{p-1a1aef42.entry.js → p-2603928d.entry.js} +1 -1
- package/dist/webcomponents/p-266b3cf4.entry.js +1 -0
- package/dist/webcomponents/p-2a54e5d1.entry.js +1 -0
- package/dist/webcomponents/{p-f0da2ca5.entry.js → p-303f8ffd.entry.js} +1 -1
- package/dist/webcomponents/{p-d48f80d1.entry.js → p-3c835c5d.entry.js} +1 -1
- package/dist/webcomponents/{p-e6d1e3e2.entry.js → p-599816a1.entry.js} +1 -1
- package/dist/webcomponents/{p-c9871158.entry.js → p-5b9315b6.entry.js} +1 -1
- package/dist/webcomponents/p-5de3f411.entry.js +1 -0
- package/dist/webcomponents/p-73800780.entry.js +1 -0
- package/dist/webcomponents/{p-d19d7d41.entry.js → p-8bb301a0.entry.js} +1 -1
- package/dist/webcomponents/p-8de46fd1.entry.js +1 -0
- package/dist/webcomponents/{p-d35cde99.entry.js → p-92970d9d.entry.js} +1 -1
- package/dist/webcomponents/{p-73af269e.entry.js → p-99111cd2.entry.js} +1 -1
- package/dist/webcomponents/p-9Lrj4zm8.js +1 -0
- package/dist/webcomponents/{p-357d14ee.entry.js → p-9a6ce4ed.entry.js} +1 -1
- package/dist/webcomponents/p-B-LmgMK4.js +1 -0
- package/dist/webcomponents/p-B1u-Iegl.js +1 -0
- package/dist/webcomponents/p-B8UcvRjv.js +1 -0
- package/dist/webcomponents/p-BJUSJGPP.js +1 -0
- package/dist/webcomponents/p-C04splpj.js +1 -0
- package/dist/webcomponents/p-CZuwNeL1.js +1 -0
- package/dist/webcomponents/{p-Bh5BNj74.js → p-DON5-wIV.js} +1 -1
- package/dist/webcomponents/p-DTnmhThV.js +1 -0
- package/dist/webcomponents/{p-Cy_sz0Tx.js → p-DWjkuM6f.js} +1 -1
- package/dist/webcomponents/{p-BtiJJJwv.js → p-Da0IToMr.js} +1 -1
- package/dist/webcomponents/{p-l3JhjHLW.js → p-DgKsNl4p.js} +1 -1
- package/dist/webcomponents/{p-622c2af4.entry.js → p-a19c4d51.entry.js} +1 -1
- package/dist/webcomponents/{p-4c7e7880.entry.js → p-a3da15b6.entry.js} +1 -1
- package/dist/webcomponents/{p-2b5533a1.entry.js → p-a65ab079.entry.js} +1 -1
- package/dist/webcomponents/{p-1ff1dcc5.entry.js → p-a6b98663.entry.js} +1 -1
- package/dist/webcomponents/{p-30ec1cd6.entry.js → p-ad842c42.entry.js} +1 -1
- package/dist/webcomponents/{p-a8f1c9b3.entry.js → p-ae41697b.entry.js} +1 -1
- package/dist/webcomponents/{p-deff4422.entry.js → p-aea1e9e4.entry.js} +1 -1
- package/dist/webcomponents/{p-6bfdc443.entry.js → p-b54c0942.entry.js} +1 -1
- package/dist/webcomponents/{p-521c534c.entry.js → p-b699d24b.entry.js} +1 -1
- package/dist/webcomponents/{p-846ae5d5.entry.js → p-b76b8634.entry.js} +1 -1
- package/dist/webcomponents/{p-2272a65b.entry.js → p-bebd8879.entry.js} +1 -1
- package/dist/webcomponents/{p-f6efd9e0.entry.js → p-c96e25f9.entry.js} +1 -1
- package/dist/webcomponents/{p-dae31a59.entry.js → p-d0a40e88.entry.js} +1 -1
- package/dist/webcomponents/{p-fa0427d5.entry.js → p-d1361e3c.entry.js} +1 -1
- package/dist/webcomponents/{p-8c22ff9c.entry.js → p-d46ebc1c.entry.js} +1 -1
- package/dist/webcomponents/{p-956707a2.entry.js → p-dad1f6b9.entry.js} +1 -1
- package/dist/webcomponents/{p-91358854.entry.js → p-db854b84.entry.js} +1 -1
- package/dist/webcomponents/{p-28fb6b50.entry.js → p-dec8952b.entry.js} +1 -1
- package/dist/webcomponents/{p-4d85dd63.entry.js → p-e3914845.entry.js} +1 -1
- package/dist/webcomponents/p-e3f57bb1.entry.js +1 -0
- package/dist/webcomponents/{p-5e8f26ec.entry.js → p-e7c13d73.entry.js} +1 -1
- package/dist/webcomponents/p-ee605f62.entry.js +1 -0
- package/dist/webcomponents/{p-BG8NxEUn.js → p-rYB3onzC.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/styled-host-CW1WUnUq.js +0 -11
- package/dist/esm/styled-host-RvPhw8Gu.js +0 -9
- package/dist/webcomponents/p-05AWudQe.js +0 -1
- package/dist/webcomponents/p-12daf522.entry.js +0 -1
- package/dist/webcomponents/p-5babaaa9.entry.js +0 -1
- package/dist/webcomponents/p-9c1863d5.entry.js +0 -1
- package/dist/webcomponents/p-BKtKrQzN.js +0 -1
- package/dist/webcomponents/p-BQpbTebi.js +0 -1
- package/dist/webcomponents/p-BzESNgd8.js +0 -1
- package/dist/webcomponents/p-D42DvqTW.js +0 -1
- package/dist/webcomponents/p-DBudSN_h.js +0 -1
- package/dist/webcomponents/p-MLQyjvrV.js +0 -1
- package/dist/webcomponents/p-a095b86d.entry.js +0 -1
- package/dist/webcomponents/p-b665841f.entry.js +0 -1
- package/dist/webcomponents/p-bc3e46af.entry.js +0 -1
- package/dist/webcomponents/p-f23d7d13.entry.js +0 -1
- package/dist/webcomponents/p-f2c99647.entry.js +0 -1
- package/dist/webcomponents/p-f458928d.entry.js +0 -1
- package/dist/webcomponents/p-hdPjEOdB.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _package = require('./package-
|
|
4
|
-
var Api = require('./Api-
|
|
3
|
+
var _package = require('./package-45W01-Af.js');
|
|
4
|
+
var Api = require('./Api-DzRWrqRx.js');
|
|
5
5
|
require('./Plaid-BcOAKDaU.js');
|
|
6
6
|
require('./Pagination-Dediz133.js');
|
|
7
7
|
require('./Business-CNaz-VLa.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
4
4
|
var utils = require('./utils-DB4XHlAU.js');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-45W01-Af.js');
|
|
6
6
|
|
|
7
7
|
const Api = () => {
|
|
8
8
|
async function getAuthorizationHeader(authToken) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
5
5
|
var paymentProvisioningActions = require('./payment-provisioning-actions-SVp7B8pR.js');
|
|
6
|
-
var business_service = require('./business.service-
|
|
6
|
+
var business_service = require('./business.service-D2D8ABMT.js');
|
|
7
7
|
var businessIdentitySchema = require('./business-identity-schema-DuOIMFjG.js');
|
|
8
8
|
var index_esm = require('./index.esm-BNETBIV_.js');
|
|
9
9
|
var Business = require('./Business-CNaz-VLa.js');
|
|
@@ -23,13 +23,13 @@ var countryConfig = require('./country-config-CFC3KuVD.js');
|
|
|
23
23
|
var utils$1 = require('./utils-DB4XHlAU.js');
|
|
24
24
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
25
25
|
var inputHandlers = require('./input-handlers-v9h_2Ysi.js');
|
|
26
|
-
var Api = require('./Api-
|
|
27
|
-
var styledHost = require('./styled-host-
|
|
28
|
-
var plaid_service = require('./plaid.service-
|
|
26
|
+
var Api = require('./Api-DzRWrqRx.js');
|
|
27
|
+
var styledHost = require('./styled-host-BxbU-bI7.js');
|
|
28
|
+
var plaid_service = require('./plaid.service-JISYtGYD.js');
|
|
29
29
|
require('./utils-BScgWJC5.js');
|
|
30
30
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
31
31
|
require('./index-DDrfAj-j.js');
|
|
32
|
-
require('./package-
|
|
32
|
+
require('./package-45W01-Af.js');
|
|
33
33
|
|
|
34
34
|
// Emits a MISSING_PROPS error naming each falsy prop. Returns true when all props are present.
|
|
35
35
|
// `props` keys are the public attribute names, e.g. { 'auth-token': this.authToken }.
|
|
@@ -4,7 +4,7 @@ var index = require('./index-p7cvUYAE.js');
|
|
|
4
4
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
5
5
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
6
6
|
var utils = require('./utils-DB4XHlAU.js');
|
|
7
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
7
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
8
8
|
var checkout_store = require('./checkout.store-B5lTwvUV.js');
|
|
9
9
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
10
10
|
require('./Pagination-Dediz133.js');
|
|
@@ -14,7 +14,7 @@ require('./event-types-YOY5TKUN.js');
|
|
|
14
14
|
require('./parts-BXshb_S-.js');
|
|
15
15
|
require('./index-DDrfAj-j.js');
|
|
16
16
|
require('./dinero-BwNN_k7x.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-45W01-Af.js');
|
|
18
18
|
require('./index-DDa1jd08.js');
|
|
19
19
|
|
|
20
20
|
const BankAccountFormSkeleton = () => {
|
|
@@ -73,8 +73,6 @@ const BankAccountForm = class {
|
|
|
73
73
|
if (elements.length < this.expectedIframeCount) {
|
|
74
74
|
return { isValid: false };
|
|
75
75
|
}
|
|
76
|
-
// Sequential on purpose: the parent correlates iframe replies by eventType
|
|
77
|
-
// alone, with no request id, so concurrent validates would cross replies.
|
|
78
76
|
const results = [];
|
|
79
77
|
for (const element of elements) {
|
|
80
78
|
results.push(await element.validate());
|
|
@@ -4,7 +4,7 @@ var index = require('./index-p7cvUYAE.js');
|
|
|
4
4
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
5
5
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
6
6
|
var utils = require('./utils-DB4XHlAU.js');
|
|
7
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
7
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
8
8
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
9
9
|
require('./Pagination-Dediz133.js');
|
|
10
10
|
require('./Business-CNaz-VLa.js');
|
|
@@ -13,7 +13,7 @@ require('./event-types-YOY5TKUN.js');
|
|
|
13
13
|
require('./parts-BXshb_S-.js');
|
|
14
14
|
require('./index-DDrfAj-j.js');
|
|
15
15
|
require('./dinero-BwNN_k7x.js');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-45W01-Af.js');
|
|
17
17
|
|
|
18
18
|
const CardFormSkeleton = () => {
|
|
19
19
|
return (index.h("div", { class: "container-fluid p-0" }, index.h("div", { class: "mb-3" }, index.h(skeleton.Skeleton, { height: "18px", width: "100px" }), index.h(skeleton.Skeleton, { height: "36px" })), index.h("div", { class: "row" }, index.h("div", { class: "col-4 align-content-end" }, index.h(skeleton.Skeleton, { height: "18px", width: "80px" }), index.h(skeleton.Skeleton, { height: "36px" })), index.h("div", { class: "col-4 align-content-end" }, index.h(skeleton.Skeleton, { height: "36px" })), index.h("div", { class: "col-4 align-content-end" }, index.h(skeleton.Skeleton, { height: "18px", width: "30px" }), index.h(skeleton.Skeleton, { height: "36px" })))));
|
|
@@ -46,8 +46,6 @@ const CardForm = class {
|
|
|
46
46
|
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
47
47
|
}
|
|
48
48
|
async validate() {
|
|
49
|
-
// Sequential on purpose: the parent correlates iframe replies by eventType
|
|
50
|
-
// alone, with no request id, so concurrent validates would cross replies.
|
|
51
49
|
const results = [];
|
|
52
50
|
for (const element of this.iframeElements) {
|
|
53
51
|
results.push(await element.validate());
|
|
@@ -113,10 +111,10 @@ const CardForm = class {
|
|
|
113
111
|
return (index.h("div", null, index.h("form-alert", { text: Plaid.ComponentErrorMessages.IFRAME_LOAD_ERROR, hideAlert: false }), index.h(button.Button, { variant: "link", clickHandler: this.reloadIframes, "aria-label": "Reload payment form", type: "button" }, "Try again")));
|
|
114
112
|
}
|
|
115
113
|
render() {
|
|
116
|
-
return (index.h("div", { key: '
|
|
114
|
+
return (index.h("div", { key: 'aa9433ca84a3c5d3d12970a0533247b10ef7a39c' }, this.iframeState === 'loading' && index.h(CardFormSkeleton, { key: 'af68a39d4d71d665699fd53efc436158eefeae60' }), this.iframeState === 'error' && this.renderIframeError(), index.h("hidden-input", { key: 'aee1ab56e4777181e1598a4047b4ac873da4416d' }), index.h("div", { key: '0f1603b84d701da90f05f10c8b7c2d7d26d706e8', class: "container-fluid p-0", style: {
|
|
117
115
|
opacity: this.isReady ? '1' : '0',
|
|
118
116
|
height: this.isReady ? 'auto' : '0',
|
|
119
|
-
} }, index.h("div", { key: '
|
|
117
|
+
} }, index.h("div", { key: '364249139cf19fa5567f9c694a2925e9ea26e4ae', class: "mb-3" }, index.h("iframe-input", { key: '46f1bf0510d8ca73c231f2e7cca44c14b7c8578a', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", maskCardNumber: this.maskCardNumber, iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), index.h("div", { key: '630569a17973f3aa17a07b0baccc85cae4c51bcc', class: "row" }, index.h("div", { key: '7d9b30a60da5a45ae1f635caad6293c867d4bc0f', class: "col-4 align-content-end" }, index.h("iframe-input", { key: 'a1b51799646a1d53d4f3ee4b5f8b057190a8de9b', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), index.h("div", { key: '2fdc1625946783a048a9e2b2899987e8cdc449b8', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '174b38998fe0a1fd278da55cb08a7ca1d0e8447f', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), index.h("div", { key: '1238f5d1370f27ba0ac3841563e66b51a18eaaa0', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '86d822f907b95ee86f1fcf6f2148da3449c41d48', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
120
118
|
}
|
|
121
119
|
};
|
|
122
120
|
|
|
@@ -8,14 +8,14 @@ var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
9
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
10
10
|
var utils = require('./utils-BScgWJC5.js');
|
|
11
|
-
var eventTypes = require('./event-types-
|
|
12
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
13
|
-
var Analytics = require('./Analytics-
|
|
11
|
+
var eventTypes = require('./event-types-DptyH3kd.js');
|
|
12
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
13
|
+
var Analytics = require('./Analytics-C1FDYwxD.js');
|
|
14
14
|
require('./dinero-BwNN_k7x.js');
|
|
15
|
-
require('./Api-
|
|
15
|
+
require('./Api-DzRWrqRx.js');
|
|
16
16
|
require('./config-state-C1YMiFpR.js');
|
|
17
17
|
require('./index-DDrfAj-j.js');
|
|
18
|
-
require('./package-
|
|
18
|
+
require('./package-45W01-Af.js');
|
|
19
19
|
require('./Pagination-Dediz133.js');
|
|
20
20
|
require('./Business-CNaz-VLa.js');
|
|
21
21
|
|
|
@@ -5,7 +5,7 @@ var parts = require('./parts-BXshb_S-.js');
|
|
|
5
5
|
var index$1 = require('./index-DDrfAj-j.js');
|
|
6
6
|
var _commonjsHelpers = require('./_commonjsHelpers-BJu3ubxk.js');
|
|
7
7
|
var formControlErrorText = require('./form-control-error-text-BO58Y6zF.js');
|
|
8
|
-
var _package = require('./package-
|
|
8
|
+
var _package = require('./package-45W01-Af.js');
|
|
9
9
|
|
|
10
10
|
const FormAlert = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -1655,7 +1655,12 @@ class FrameCommunicationService {
|
|
|
1655
1655
|
postMessageWithResponseListener(eventType, payload) {
|
|
1656
1656
|
return new Promise((resolve) => {
|
|
1657
1657
|
const responseListener = (event) => {
|
|
1658
|
-
|
|
1658
|
+
var _a;
|
|
1659
|
+
// Every hosted field replies to this same window. Without the sender
|
|
1660
|
+
// check, overlapping requests take a sibling field's reply.
|
|
1661
|
+
if (event.source !== this.iframe.contentWindow)
|
|
1662
|
+
return;
|
|
1663
|
+
if (((_a = event.data) === null || _a === void 0 ? void 0 : _a.eventType) !== eventType)
|
|
1659
1664
|
return;
|
|
1660
1665
|
window.removeEventListener('message', responseListener);
|
|
1661
1666
|
resolve(event.data.data);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var Api = require('./Api-
|
|
4
|
+
var Api = require('./Api-DzRWrqRx.js');
|
|
5
5
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
6
|
-
var styledHost = require('./styled-host-
|
|
6
|
+
var styledHost = require('./styled-host-BxbU-bI7.js');
|
|
7
7
|
require('./event-types-YOY5TKUN.js');
|
|
8
8
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
9
9
|
var checkout_store = require('./checkout.store-B5lTwvUV.js');
|
|
@@ -13,17 +13,17 @@ var configState = require('./config-state-C1YMiFpR.js');
|
|
|
13
13
|
var header1 = require('./header-1-CsBQoo1f.js');
|
|
14
14
|
var insuranceState = require('./insurance-state-CHQD1ZGw.js');
|
|
15
15
|
var header3 = require('./header-3-DCYJhPro.js');
|
|
16
|
-
var Analytics = require('./Analytics-
|
|
17
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
16
|
+
var Analytics = require('./Analytics-C1FDYwxD.js');
|
|
17
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
18
18
|
require('./dinero-BwNN_k7x.js');
|
|
19
19
|
require('./Pagination-Dediz133.js');
|
|
20
20
|
require('./Business-CNaz-VLa.js');
|
|
21
21
|
var checkoutActions = require('./checkout-actions-CQyGpVPe.js');
|
|
22
|
-
var checkout_service = require('./checkout.service-
|
|
23
|
-
var plaid_service = require('./plaid.service-
|
|
22
|
+
var checkout_service = require('./checkout.service-CVpXCi8z.js');
|
|
23
|
+
var plaid_service = require('./plaid.service-JISYtGYD.js');
|
|
24
24
|
var index$1 = require('./index-DDa1jd08.js');
|
|
25
25
|
var paymentMethodOptionUtils = require('./payment-method-option-utils-WYHIHy-l.js');
|
|
26
|
-
require('./package-
|
|
26
|
+
require('./package-45W01-Af.js');
|
|
27
27
|
require('./index-DDrfAj-j.js');
|
|
28
28
|
require('./utils-BScgWJC5.js');
|
|
29
29
|
|
|
@@ -1125,11 +1125,11 @@ const JustifiModularCheckout = class {
|
|
|
1125
1125
|
return;
|
|
1126
1126
|
}
|
|
1127
1127
|
},
|
|
1128
|
-
onError: (error) => {
|
|
1128
|
+
onError: ({ error, code, severity }) => {
|
|
1129
1129
|
this.errorEvent.emit({
|
|
1130
|
-
message: error
|
|
1131
|
-
errorCode:
|
|
1132
|
-
severity
|
|
1130
|
+
message: error,
|
|
1131
|
+
errorCode: code,
|
|
1132
|
+
severity,
|
|
1133
1133
|
});
|
|
1134
1134
|
},
|
|
1135
1135
|
});
|
|
@@ -1278,8 +1278,14 @@ const JustifiModularCheckout = class {
|
|
|
1278
1278
|
if (isNewCard || isNewBankAccount) {
|
|
1279
1279
|
if (this.paymentMethodFormRef)
|
|
1280
1280
|
promises.push(this.paymentMethodFormRef.validate());
|
|
1281
|
-
|
|
1281
|
+
// queryFormRefs matches justifi-tokenize-payment-method with both
|
|
1282
|
+
// selectors, so a checkout that slots only that component gets the same
|
|
1283
|
+
// element in both refs -- and that component already validates its own
|
|
1284
|
+
// billing form. Validating it again doubles every hosted-field round
|
|
1285
|
+
// trip and runs the billing form twice.
|
|
1286
|
+
if (this.billingFormRef && this.billingFormRef !== this.paymentMethodFormRef) {
|
|
1282
1287
|
promises.push(this.billingFormRef.validate());
|
|
1288
|
+
}
|
|
1283
1289
|
}
|
|
1284
1290
|
if (promises.length === 0)
|
|
1285
1291
|
return true;
|
|
@@ -1454,10 +1460,10 @@ const JustifiModularCheckout = class {
|
|
|
1454
1460
|
message: "Checkout completed successfully",
|
|
1455
1461
|
});
|
|
1456
1462
|
},
|
|
1457
|
-
onError: (error) => {
|
|
1463
|
+
onError: ({ error }) => {
|
|
1458
1464
|
checkout_store.checkoutStore.isSubmitting = false;
|
|
1459
1465
|
this.errorEvent.emit({
|
|
1460
|
-
message: error
|
|
1466
|
+
message: error,
|
|
1461
1467
|
errorCode: Plaid.ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
|
|
1462
1468
|
severity: Plaid.ComponentErrorSeverity.ERROR,
|
|
1463
1469
|
});
|
|
@@ -1465,7 +1471,7 @@ const JustifiModularCheckout = class {
|
|
|
1465
1471
|
});
|
|
1466
1472
|
}
|
|
1467
1473
|
render() {
|
|
1468
|
-
return index.h(index.Host, { key: '
|
|
1474
|
+
return index.h(index.Host, { key: 'd1e1326e66bc9347de573bc8b3aa30e19178ade9' });
|
|
1469
1475
|
}
|
|
1470
1476
|
get hostEl() { return index.getElement(this); }
|
|
1471
1477
|
static get watchers() { return {
|
|
@@ -1696,8 +1702,6 @@ const JustifiPaypal = class {
|
|
|
1696
1702
|
}
|
|
1697
1703
|
};
|
|
1698
1704
|
|
|
1699
|
-
const plaidIconSvg = 'data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=';
|
|
1700
|
-
|
|
1701
1705
|
const JustifiPlaidPaymentMethod = class {
|
|
1702
1706
|
constructor(hostRef) {
|
|
1703
1707
|
index.registerInstance(this, hostRef);
|
|
@@ -2220,13 +2224,16 @@ const JustifiPlaidPaymentMethod = class {
|
|
|
2220
2224
|
}
|
|
2221
2225
|
return null;
|
|
2222
2226
|
}
|
|
2223
|
-
|
|
2227
|
+
// Inlined rather than an <img> so the mark inherits the surrounding text
|
|
2228
|
+
// color via currentColor -- an <img> cannot, and the old asset's hardcoded
|
|
2229
|
+
// #111 fill was invisible on dark themes.
|
|
2230
|
+
const plaidLogo = (index.h("svg", { class: "plaid-logo-img", part: parts.image, role: "img", "aria-label": "Plaid", viewBox: "0 0 28 29", xmlns: "http://www.w3.org/2000/svg", style: {
|
|
2224
2231
|
display: 'inline',
|
|
2225
2232
|
width: '20px',
|
|
2226
2233
|
height: '20px',
|
|
2227
2234
|
marginLeft: '5px',
|
|
2228
2235
|
marginTop: '-2px',
|
|
2229
|
-
} }));
|
|
2236
|
+
} }, index.h("title", null, "Plaid"), index.h("path", { fill: "currentColor", "fill-rule": "evenodd", d: "M25.7629 26.2628L28 17.5309L24.9691 14.5001L27.9999 11.4691L25.7628 2.73706L17.0309 0.5L14.0001 3.531L10.969 0.50014L2.23706 2.73734L0 11.4691L3.03128 14.4999L0.00014 17.531L2.2372 26.2629L10.9691 28.5L14.0001 25.469L17.031 28.4999L25.7629 26.2628ZM15.7321 23.7371L18.6186 20.8505L22.2912 24.5233L17.6956 25.7007L15.7321 23.7371ZM11.1136 9.88154L14.0003 6.99502L16.8868 9.8814L14.0001 12.7679L11.1136 9.88154ZM12.2682 14.5L9.38154 17.3865L6.49502 14.5L9.38154 11.6135L12.2682 14.5ZM18.6187 11.6133L21.5053 14.5L18.6186 17.3865L15.7321 14.5L18.6187 11.6133ZM16.8867 19.1186L14.0001 22.0051L11.1135 19.1185L14.0001 16.2319L16.8867 19.1186ZM10.3044 25.7007L5.70864 24.5233L9.38154 20.8504L12.2682 23.7371L10.3044 25.7007ZM4.76308 16.2319L7.6496 19.1185L3.9767 22.7914L2.7993 18.1957L4.76308 16.2319ZM3.9767 6.20836L7.64974 9.8814L4.76308 12.7681L2.7993 10.8041L3.9767 6.20836ZM12.2683 5.26294L9.38168 8.1496L5.70892 4.4767L10.3047 3.2993L12.2683 5.26294ZM17.6959 3.2993L22.2915 4.4767L18.6186 8.14946L15.7321 5.26294L17.6959 3.2993ZM23.2372 12.7681L20.3505 9.8814L24.0233 6.20878L25.2007 10.8046L23.2372 12.7681ZM24.0233 22.7914L20.3505 19.1186L23.2372 16.2321L25.2007 18.1957L24.0233 22.7914Z" })));
|
|
2230
2237
|
const renderErrorState = () => {
|
|
2231
2238
|
if (!this.error)
|
|
2232
2239
|
return null;
|
|
@@ -2235,23 +2242,24 @@ const JustifiPlaidPaymentMethod = class {
|
|
|
2235
2242
|
: this.error.severity === Plaid.ComponentErrorSeverity.WARNING
|
|
2236
2243
|
? 'text-warning'
|
|
2237
2244
|
: 'text-info';
|
|
2238
|
-
|
|
2245
|
+
const errorPart = this.error.severity === Plaid.ComponentErrorSeverity.ERROR ? parts.textDanger : parts.text;
|
|
2246
|
+
return (index.h("div", { class: "mt-2" }, index.h("div", { class: errorClass }, index.h("small", { part: errorPart }, this.error.message)), index.h("div", { class: "text-muted" }, index.h("small", { part: parts.text }, this.error.userAction, this.error.retryable && this.retryCount < this.maxRetries && (index.h("span", null, " \u2022 Auto-retry in progress..."))))));
|
|
2239
2247
|
};
|
|
2240
2248
|
const renderStatusState = () => {
|
|
2241
2249
|
if (this.error)
|
|
2242
2250
|
return null;
|
|
2243
2251
|
if (this.isAuthenticating) {
|
|
2244
|
-
return (index.h("div", { class: "text-info mt-2" }, index.h("small",
|
|
2252
|
+
return (index.h("div", { class: "text-info mt-2" }, index.h("small", { part: parts.text }, "Connecting to your bank...")));
|
|
2245
2253
|
}
|
|
2246
2254
|
if (this.publicToken) {
|
|
2247
|
-
return (index.h("div", { class: "text-success mt-2" }, index.h("small",
|
|
2255
|
+
return (index.h("div", { class: "text-success mt-2" }, index.h("small", { part: parts.text }, "\u2713 Bank account connected successfully")));
|
|
2248
2256
|
}
|
|
2249
2257
|
if (this.isSelected && !this.publicToken && !this.error && !this.isAuthenticating) {
|
|
2250
|
-
return (index.h("div", { class: "text-muted mt-2" }, index.h("small",
|
|
2258
|
+
return (index.h("div", { class: "text-muted mt-2" }, index.h("small", { part: parts.text }, "Click to connect your bank account")));
|
|
2251
2259
|
}
|
|
2252
2260
|
return null;
|
|
2253
2261
|
};
|
|
2254
|
-
return (index.h(styledHost.StyledHost, { class: "payment-method" }, index.h("div", { title: "Pay with Plaid" }, index.h("div", { onClick: (event) => { event.preventDefault(); this.handleSelectionClick(); } }, "Pay with Bank Account ", plaidLogo, " "), renderErrorState(), renderStatusState())));
|
|
2262
|
+
return (index.h(styledHost.StyledHost, { class: "payment-method", exportparts: "label,text,color,font-family,text-danger,image" }, index.h("div", { title: "Pay with Plaid" }, index.h("div", { part: parts.label, onClick: (event) => { event.preventDefault(); this.handleSelectionClick(); } }, "Pay with Bank Account ", plaidLogo, " "), renderErrorState(), renderStatusState())));
|
|
2255
2263
|
}
|
|
2256
2264
|
static get watchers() { return {
|
|
2257
2265
|
"isSelected": ["onSelectionChange"]
|
|
@@ -2402,6 +2410,16 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2402
2410
|
this.unsubscribeFromStore();
|
|
2403
2411
|
}
|
|
2404
2412
|
}
|
|
2413
|
+
componentWillRender() {
|
|
2414
|
+
// A cancelled wallet flow clears the store (modular-checkout's apple/google/
|
|
2415
|
+
// paypal cancel handlers) without telling us. Local state still holds this
|
|
2416
|
+
// component's option, and renderPaymentMethodOption keeps its radio checked
|
|
2417
|
+
// on that basis — so re-claim the store, or submit reports "No payment
|
|
2418
|
+
// method selected." while the radio plainly looks selected.
|
|
2419
|
+
if (this.selectedPaymentMethod && !checkout_store.checkoutStore.selectedPaymentMethod) {
|
|
2420
|
+
checkout_store.checkoutStore.selectedPaymentMethod = { type: this.selectedPaymentMethod };
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2405
2423
|
componentWillLoad() {
|
|
2406
2424
|
detectDuplicateVersion.detectDuplicateVersion();
|
|
2407
2425
|
this.analytics = new Analytics.JustifiAnalytics(this);
|
|
@@ -2610,7 +2628,13 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2610
2628
|
return this.disableCreditCard || this.disableBankAccount;
|
|
2611
2629
|
}
|
|
2612
2630
|
renderPaymentMethodOption(paymentMethodType) {
|
|
2613
|
-
|
|
2631
|
+
// Siblings (plaid, sezzle, wallets, saved methods) select themselves by
|
|
2632
|
+
// writing the store, not by emitting radio-click, so local state alone
|
|
2633
|
+
// would leave this radio checked next to theirs.
|
|
2634
|
+
const storeSelection = checkout_store.checkoutStore.selectedPaymentMethod;
|
|
2635
|
+
const claimedBySibling = !!storeSelection &&
|
|
2636
|
+
(storeSelection.id !== undefined || storeSelection.type !== paymentMethodType);
|
|
2637
|
+
const isSelected = this.selectedPaymentMethod === paymentMethodType && !claimedBySibling;
|
|
2614
2638
|
return (index.h("div", { class: "payment-method" }, index.h("radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
|
|
2615
2639
|
}
|
|
2616
2640
|
renderSelectedPaymentMethodForm(paymentMethodType) {
|
|
@@ -2629,7 +2653,7 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2629
2653
|
}, showAccountNumberConfirmation: this.showAccountNumberConfirmation }));
|
|
2630
2654
|
}
|
|
2631
2655
|
render() {
|
|
2632
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
2656
|
+
return (index.h(styledHost.StyledHost, { key: 'eff8f53ba9e7935822cb6848422bb0e86d5c762b' }, index.h("form", { key: 'a1af6ad70700565a46644a487109cb8be91a2a1e' }, index.h("fieldset", { key: '289038090f6a03feb2467b4da0be0231da4c9d58' }, index.h("div", { key: 'fc536a12ac5a2245dc2f458a5cb5eb42a0faa2c9', class: "row gy-3" }, index.h("div", { key: '42f5add1ed97ddca1b7f229f572f94c0f5eb990b', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), index.h("div", { key: '34c980bab861d09c0bed6666409197a9067610a1', class: "col-12" }, index.h("internal-button", { key: '71800d244d727d42bb50acea662cc1d8ebb37775', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
2633
2657
|
}
|
|
2634
2658
|
get host() { return index.getElement(this); }
|
|
2635
2659
|
static get watchers() { return {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var Analytics = require('./Analytics-
|
|
5
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
4
|
+
var Analytics = require('./Analytics-C1FDYwxD.js');
|
|
5
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
6
6
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
7
|
-
var styledHost = require('./styled-host-
|
|
7
|
+
var styledHost = require('./styled-host-BxbU-bI7.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./package-
|
|
10
|
-
require('./Api-
|
|
9
|
+
require('./package-45W01-Af.js');
|
|
10
|
+
require('./Api-DzRWrqRx.js');
|
|
11
11
|
require('./utils-DB4XHlAU.js');
|
|
12
12
|
require('./dinero-BwNN_k7x.js');
|
|
13
13
|
require('./Plaid-BcOAKDaU.js');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
5
|
-
var Analytics = require('./Analytics-
|
|
4
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
5
|
+
var Analytics = require('./Analytics-C1FDYwxD.js');
|
|
6
6
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
7
|
-
var styledHost = require('./styled-host-
|
|
7
|
+
var styledHost = require('./styled-host-BxbU-bI7.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./package-
|
|
10
|
-
require('./Api-
|
|
9
|
+
require('./package-45W01-Af.js');
|
|
10
|
+
require('./Api-DzRWrqRx.js');
|
|
11
11
|
require('./utils-DB4XHlAU.js');
|
|
12
12
|
require('./dinero-BwNN_k7x.js');
|
|
13
13
|
require('./Plaid-BcOAKDaU.js');
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var utils = require('./utils-8RGQVADu.js');
|
|
5
|
-
var business_service = require('./business.service-
|
|
5
|
+
var business_service = require('./business.service-D2D8ABMT.js');
|
|
6
6
|
var getBusiness = require('./get-business-BVxtiSDs.js');
|
|
7
7
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
8
|
-
var Analytics = require('./Analytics-
|
|
9
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
10
|
-
var styledHost = require('./styled-host-
|
|
8
|
+
var Analytics = require('./Analytics-C1FDYwxD.js');
|
|
9
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
10
|
+
var styledHost = require('./styled-host-BxbU-bI7.js');
|
|
11
11
|
require('./event-types-YOY5TKUN.js');
|
|
12
12
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
13
13
|
require('./parts-BXshb_S-.js');
|
|
14
|
-
require('./Api-
|
|
14
|
+
require('./Api-DzRWrqRx.js');
|
|
15
15
|
require('./config-state-C1YMiFpR.js');
|
|
16
16
|
require('./index-DDrfAj-j.js');
|
|
17
17
|
require('./utils-DB4XHlAU.js');
|
|
18
18
|
require('./dinero-BwNN_k7x.js');
|
|
19
|
-
require('./package-
|
|
19
|
+
require('./package-45W01-Af.js');
|
|
20
20
|
require('./Pagination-Dediz133.js');
|
|
21
21
|
require('./Business-CNaz-VLa.js');
|
|
22
22
|
require('./utils-BScgWJC5.js');
|
|
@@ -8,24 +8,24 @@ require('./dinero-BwNN_k7x.js');
|
|
|
8
8
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
9
9
|
require('./Pagination-Dediz133.js');
|
|
10
10
|
var Business = require('./Business-CNaz-VLa.js');
|
|
11
|
-
var Analytics = require('./Analytics-
|
|
11
|
+
var Analytics = require('./Analytics-C1FDYwxD.js');
|
|
12
12
|
var button = require('./button-CR9Rl1-o.js');
|
|
13
|
-
var styledHost = require('./styled-host-
|
|
13
|
+
var styledHost = require('./styled-host-BxbU-bI7.js');
|
|
14
14
|
var header1 = require('./header-1-CsBQoo1f.js');
|
|
15
15
|
require('./event-types-YOY5TKUN.js');
|
|
16
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
16
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
17
17
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
18
18
|
var eventTypes = require('./event-types-DNOUef41.js');
|
|
19
19
|
var paymentProvisioningActions = require('./payment-provisioning-actions-SVp7B8pR.js');
|
|
20
|
-
var business_service = require('./business.service-
|
|
20
|
+
var business_service = require('./business.service-D2D8ABMT.js');
|
|
21
21
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
22
22
|
require('./schema-validations-BDFa_oIq.js');
|
|
23
23
|
require('./country-config-CFC3KuVD.js');
|
|
24
24
|
require('./business-form-options-BHBs_yiK.js');
|
|
25
25
|
require('./index-DDrfAj-j.js');
|
|
26
26
|
require('./utils-DB4XHlAU.js');
|
|
27
|
-
require('./package-
|
|
28
|
-
require('./Api-
|
|
27
|
+
require('./package-45W01-Af.js');
|
|
28
|
+
require('./Api-DzRWrqRx.js');
|
|
29
29
|
require('./parts-BXshb_S-.js');
|
|
30
30
|
require('./utils-BScgWJC5.js');
|
|
31
31
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var Analytics = require('./Analytics-
|
|
5
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
4
|
+
var Analytics = require('./Analytics-C1FDYwxD.js');
|
|
5
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
6
6
|
var configState = require('./config-state-C1YMiFpR.js');
|
|
7
|
-
var styledHost = require('./styled-host-
|
|
7
|
+
var styledHost = require('./styled-host-BxbU-bI7.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
9
|
var checkout_store = require('./checkout.store-B5lTwvUV.js');
|
|
10
|
-
require('./package-
|
|
11
|
-
require('./Api-
|
|
10
|
+
require('./package-45W01-Af.js');
|
|
11
|
+
require('./Api-DzRWrqRx.js');
|
|
12
12
|
require('./utils-DB4XHlAU.js');
|
|
13
13
|
require('./dinero-BwNN_k7x.js');
|
|
14
14
|
require('./Plaid-BcOAKDaU.js');
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var _commonjsHelpers = require('./_commonjsHelpers-BJu3ubxk.js');
|
|
5
5
|
var Plaid = require('./Plaid-BcOAKDaU.js');
|
|
6
|
-
var Analytics = require('./Analytics-
|
|
7
|
-
var detectDuplicateVersion = require('./detect-duplicate-version-
|
|
6
|
+
var Analytics = require('./Analytics-C1FDYwxD.js');
|
|
7
|
+
var detectDuplicateVersion = require('./detect-duplicate-version-Bd2jUlYF.js');
|
|
8
8
|
require('./utils-DB4XHlAU.js');
|
|
9
9
|
require('./dinero-BwNN_k7x.js');
|
|
10
|
-
require('./package-
|
|
11
|
-
require('./Api-
|
|
10
|
+
require('./package-45W01-Af.js');
|
|
11
|
+
require('./Api-DzRWrqRx.js');
|
|
12
12
|
require('./config-state-C1YMiFpR.js');
|
|
13
13
|
require('./index-DDrfAj-j.js');
|
|
14
14
|
require('./Pagination-Dediz133.js');
|