@justifi/webcomponents 6.12.1 → 6.12.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-BhduX1FR.js → Analytics-DcqsdFaD.js} +2 -2
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-Bd2yxoh4.js → check-pkg-version-DFTQGZz1.js} +1 -1
- package/dist/cjs/{get-business-CKC1P4Qs.js → get-business-TFzhaBXn.js} +4 -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_11.cjs.entry.js +74 -36
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +3 -3
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -4
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/{package-CjFkmEML.js → package-bM0MyhTf.js} +1 -1
- package/dist/collection/actions/business/get-business.js +4 -1
- package/dist/collection/api/Analytics.js +1 -1
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +3 -1
- package/dist/collection/components/checkout/justifi-checkout.js +2 -3
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +34 -14
- package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +4 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +27 -14
- package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js +7 -5
- package/dist/collection/components/order-terminals/justifi-order-terminals.js +4 -3
- package/dist/docs.json +6 -6
- package/dist/esm/{Analytics-4PEV3c9V.js → Analytics-Cyc3ZLPx.js} +2 -2
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-BmgaID9z.js → check-pkg-version-6iGDh82c.js} +1 -1
- package/dist/esm/{get-business-DpFRs5dE.js → get-business-DIpEbczl.js} +4 -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_11.entry.js +75 -37
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +3 -3
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +3 -3
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +5 -6
- package/dist/esm/justifi-checkouts-list.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +4 -4
- package/dist/esm/justifi-dispute-notification_3.entry.js +7 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-order-terminals.entry.js +8 -7
- package/dist/esm/justifi-payment-details.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -4
- package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +3 -3
- package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-refund-payment.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +3 -3
- package/dist/esm/{package-CXKOe1m5.js → package-beXEDfB9.js} +1 -1
- package/dist/module/Analytics.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/get-business.js +4 -1
- package/dist/module/justifi-additional-statement2.js +1 -1
- package/dist/module/justifi-apple-pay2.js +34 -14
- package/dist/module/justifi-cancellation-policy2.js +1 -1
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-customer-details2.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-dispute-notification2.js +2 -2
- package/dist/module/justifi-dispute-response2.js +1 -1
- package/dist/module/justifi-duplicate-charge2.js +1 -1
- package/dist/module/justifi-electronic-evidence2.js +1 -1
- package/dist/module/justifi-google-pay2.js +4 -1
- package/dist/module/justifi-order-terminals.js +4 -3
- package/dist/module/justifi-payment-provisioning.js +3 -1
- package/dist/module/justifi-plaid-payment-method2.js +27 -14
- package/dist/module/justifi-product-or-service2.js +1 -1
- package/dist/module/justifi-refund-policy2.js +1 -1
- package/dist/module/justifi-saved-payment-methods2.js +7 -5
- package/dist/module/justifi-shipping-details2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/types/actions/business/get-business.d.ts +2 -1
- package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -1
- package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +3 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +2 -2
- package/dist/webcomponents/{p-647668b6.entry.js → p-1c4f5f1d.entry.js} +1 -1
- package/dist/webcomponents/{p-f4b390bc.entry.js → p-1e8135f0.entry.js} +1 -1
- package/dist/webcomponents/{p-017edf85.entry.js → p-2a755daf.entry.js} +1 -1
- package/dist/webcomponents/{p-0e9cb724.entry.js → p-31e74a5a.entry.js} +1 -1
- package/dist/webcomponents/{p-2b25c768.entry.js → p-3488951f.entry.js} +1 -1
- package/dist/webcomponents/p-437a99dc.entry.js +1 -0
- package/dist/webcomponents/p-49c0cd3a.entry.js +1 -0
- package/dist/webcomponents/p-4d21df48.entry.js +1 -0
- package/dist/webcomponents/p-50f5e313.entry.js +1 -0
- package/dist/webcomponents/{p-06e88d51.entry.js → p-5ef854e0.entry.js} +1 -1
- package/dist/webcomponents/{p-cd267d76.entry.js → p-67498c25.entry.js} +1 -1
- package/dist/webcomponents/{p-61ebdd8b.entry.js → p-6f0c582a.entry.js} +1 -1
- package/dist/webcomponents/{p-f481695c.entry.js → p-94306884.entry.js} +1 -1
- package/dist/webcomponents/{p-b76b743e.entry.js → p-9937e2e7.entry.js} +1 -1
- package/dist/webcomponents/{p-b6d59ff4.entry.js → p-9dca1331.entry.js} +1 -1
- package/dist/webcomponents/{p-GP5gWjhc.js → p-DgH-jcIo.js} +1 -1
- package/dist/webcomponents/p-a75d76ff.entry.js +1 -0
- package/dist/webcomponents/p-a7778957.entry.js +1 -0
- package/dist/webcomponents/p-a9d7cdae.entry.js +1 -0
- package/dist/webcomponents/p-b060a9c9.entry.js +1 -0
- package/dist/webcomponents/p-bdf21f71.entry.js +1 -0
- package/dist/webcomponents/{p-259ea5e0.entry.js → p-be5d1005.entry.js} +1 -1
- package/dist/webcomponents/p-beXEDfB9.js +1 -0
- package/dist/webcomponents/{p-d3829e18.entry.js → p-c09fccd3.entry.js} +1 -1
- package/dist/webcomponents/p-c827cbc9.entry.js +1 -0
- package/dist/webcomponents/{p-1e080e95.entry.js → p-c9e1df15.entry.js} +1 -1
- package/dist/webcomponents/p-cc5b7c27.entry.js +1 -0
- package/dist/webcomponents/{p-1e66d430.entry.js → p-e0b3735f.entry.js} +1 -1
- package/dist/webcomponents/p-ef89824b.entry.js +1 -0
- package/dist/webcomponents/p-qrNmDp6K.js +1 -0
- package/dist/webcomponents/{p-cXPhRFs-.js → p-zi3ljCdQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-11faee45.entry.js +0 -1
- package/dist/webcomponents/p-238163d8.entry.js +0 -1
- package/dist/webcomponents/p-4f57368a.entry.js +0 -1
- package/dist/webcomponents/p-608a41d2.entry.js +0 -1
- package/dist/webcomponents/p-6ecb3ef9.entry.js +0 -1
- package/dist/webcomponents/p-87a4b33f.entry.js +0 -1
- package/dist/webcomponents/p-9870fff0.entry.js +0 -1
- package/dist/webcomponents/p-CXKOe1m5.js +0 -1
- package/dist/webcomponents/p-GJyHX3us.js +0 -1
- package/dist/webcomponents/p-b8c59954.entry.js +0 -1
- package/dist/webcomponents/p-cf31ccdd.entry.js +0 -1
- package/dist/webcomponents/p-d58a330d.entry.js +0 -1
- package/dist/webcomponents/p-ed580b3c.entry.js +0 -1
- package/dist/webcomponents/p-f91c49a2.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _package = require('./package-
|
|
3
|
+
var _package = require('./package-bM0MyhTf.js');
|
|
4
4
|
var Api = require('./Api-Bukk55YZ.js');
|
|
5
5
|
require('./Plaid-BlSGeGpn.js');
|
|
6
6
|
require('./Pagination-Dediz133.js');
|
|
@@ -65,7 +65,7 @@ class JustifiAnalytics {
|
|
|
65
65
|
if (typeof this.componentInstance.addEventListener === 'function') {
|
|
66
66
|
const boundHandler = (event) => this.handleCustomEvent({
|
|
67
67
|
event_type: eventName,
|
|
68
|
-
data: Object.assign(Object.assign({}, this.basicData), { error: event.detail }),
|
|
68
|
+
data: Object.assign(Object.assign({}, this.basicData), (eventName === 'error-event' && { error: event.detail })),
|
|
69
69
|
});
|
|
70
70
|
this.eventListeners.set(eventName, boundHandler);
|
|
71
71
|
this.componentInstance.addEventListener(eventName, boundHandler);
|
|
@@ -4,11 +4,11 @@ var index = require('./index-p7cvUYAE.js');
|
|
|
4
4
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
5
5
|
var configState = require('./config-state-BIgGhhe9.js');
|
|
6
6
|
var utils = require('./utils-BHi4j5rB.js');
|
|
7
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
7
|
+
var checkPkgVersion = require('./check-pkg-version-DFTQGZz1.js');
|
|
8
8
|
require('./parts-BXshb_S-.js');
|
|
9
9
|
require('./index-W-zoNiyM.js');
|
|
10
10
|
require('./dinero-BwNN_k7x.js');
|
|
11
|
-
require('./package-
|
|
11
|
+
require('./package-bM0MyhTf.js');
|
|
12
12
|
|
|
13
13
|
const BankAccountFormSkeleton = (props) => {
|
|
14
14
|
const { isReady } = props;
|
|
@@ -4,11 +4,11 @@ var index = require('./index-p7cvUYAE.js');
|
|
|
4
4
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
5
5
|
var configState = require('./config-state-BIgGhhe9.js');
|
|
6
6
|
var utils = require('./utils-BHi4j5rB.js');
|
|
7
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
7
|
+
var checkPkgVersion = require('./check-pkg-version-DFTQGZz1.js');
|
|
8
8
|
require('./parts-BXshb_S-.js');
|
|
9
9
|
require('./index-W-zoNiyM.js');
|
|
10
10
|
require('./dinero-BwNN_k7x.js');
|
|
11
|
-
require('./package-
|
|
11
|
+
require('./package-bM0MyhTf.js');
|
|
12
12
|
|
|
13
13
|
const CardFormSkeleton = (props) => {
|
|
14
14
|
const { isReady } = props;
|
|
@@ -4,7 +4,7 @@ var Business = require('./Business-oBifyXkW.js');
|
|
|
4
4
|
var Plaid = require('./Plaid-BlSGeGpn.js');
|
|
5
5
|
var utils = require('./utils-DbTucCTO.js');
|
|
6
6
|
|
|
7
|
-
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
7
|
+
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError, final }) => {
|
|
8
8
|
var _a;
|
|
9
9
|
try {
|
|
10
10
|
const response = await service.fetchBusiness(id, authToken);
|
|
@@ -29,6 +29,9 @@ const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onEr
|
|
|
29
29
|
severity: Plaid.ComponentErrorSeverity.ERROR,
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
+
finally {
|
|
33
|
+
final();
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
|
|
34
37
|
exports.makeGetBusiness = makeGetBusiness;
|
|
@@ -5,7 +5,7 @@ var index = require('./index-W-zoNiyM.js');
|
|
|
5
5
|
var parts = require('./parts-BXshb_S-.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-bM0MyhTf.js');
|
|
9
9
|
|
|
10
10
|
const iframeInputStylesStore = index.createStore({
|
|
11
11
|
focused: {
|
|
@@ -100,7 +100,7 @@ const JustifiAdditionalStatement = class {
|
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
102
|
var _a, _b;
|
|
103
|
-
return (index.h("div", { key: '
|
|
103
|
+
return (index.h("div", { key: '97175b1ff6bee9154ec66df8710c7343cdd9a2dd' }, index.h("div", { key: 'f36de20ce5e724780550bcb0eaa4512b5d1559ef', class: "row gy-3" }, index.h("div", { key: 'bf5002c5e8b8c3f516fa8cad1f42e7b7ca9e55f9', class: "col-12" }, index.h("h2", { key: '64f6517d1029463cfe07c435f6b4a1cdca95f097', class: "h5", part: parts.heading5 }, "Additional Evidence")), index.h("div", { key: '81ced6dd86b41293b6692d3023fbe5e9e11cc392', class: "col-12" }, index.h("form-control-textarea", { key: 'd5f28108a9dbea3e0f2634b1cd96316a9f986c90', 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 })), index.h("div", { key: '19d8047c4fc03376f77f5331f2fcfea6cd20e2b9', class: "col-12" }, index.h("form-control-file-v2", { key: '871bc06d4f7b5e3d56dd73ddfc9a8061d701f501', 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 })))));
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -134,7 +134,7 @@ const JustifiCancellationPolicy = class {
|
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
136
|
var _a, _b, _c;
|
|
137
|
-
return (index.h("div", { key: '
|
|
137
|
+
return (index.h("div", { key: 'f5f98ed91abdb767d3f48efaa9d69a5445d6a5bf' }, index.h("div", { key: 'b7a2539c1c5971267eb469fb0011508e5c3aa163', class: "row gy-3" }, index.h("div", { key: '82666927fa4daccb9ea2ad511e445201d216775e', class: "col-12" }, index.h("h2", { key: '7cf97383cee9cd3c5c95cc20374826b7f0d0ebe3', class: "h5", part: parts.heading5 }, "Cancellation Policy")), index.h("div", { key: '8a4691ee688de45f97dd624310ca5fc39cf20db2', class: "col-12" }, index.h("form-control-textarea", { key: '27ce967696f3f89c8b91d5892f7dfffefacd8536', 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 })), index.h("div", { key: '12a25c0dc23b528b412e1b19fd9b7071967fd411', class: "col-12" }, index.h("form-control-textarea", { key: '81ceef5f5b94ad31eb1cd36991a13e099b13725c', 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 })), index.h("div", { key: '9afbe3a16b1da50afea763c66e4ee0b5b388b137', class: "col-12" }, index.h("form-control-file-v2", { key: '9a613e293af4d48354859bfd2329afce152a5f89', 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 })))));
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
|
|
@@ -169,7 +169,7 @@ const JustifiCustomerDetails = class {
|
|
|
169
169
|
}
|
|
170
170
|
render() {
|
|
171
171
|
var _a, _b, _c, _d, _e;
|
|
172
|
-
return (index.h("div", { key: '
|
|
172
|
+
return (index.h("div", { key: '8bc10877cfabb168cd717d463a1ae252809275f5' }, index.h("div", { key: '12dc083ba94dfbb7b20671c636a0be03f3b67070', class: "row gy-3" }, index.h("div", { key: '429c91062e19b12711baa35d14b1337f8fbfc9d6', class: "col-12" }, index.h("h2", { key: '406723145d3bdbaa52b2897a5dc4347be34e7eea', class: "h5", part: parts.heading5 }, "Customer Details")), index.h("div", { key: '40d5e8bd7c2b1fe8786c38fc2b7a3789278f3497', class: "col-12" }, index.h("form-control-text", { key: 'ade5ccaf5a45ba5f3f81c68196bfc7879da03315', 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 })), index.h("div", { key: 'baf8a129aa64d4507bce0d1f9ed7077f0911715e', class: "col-12" }, index.h("form-control-text", { key: '786f84b55ffec13cc937dff50e587e28865c7114', 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 })), index.h("div", { key: '2805d754316314934648955b34e8c6da5f709192', class: "col-12" }, index.h("form-control-textarea", { key: '95a7a8a9d1d9ea70478021110808545c0730ffec', 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 })), index.h("div", { key: '78fa90926cc11695379a95dde849cfb28cf829f5', class: "col-12" }, index.h("form-control-file-v2", { key: '984ab42f7742afcb0b74ccf65f313ead0542f75d', 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 })), index.h("div", { key: 'de0bf546a3e767ec1e362446f14edea449643b2b', class: "col-12" }, index.h("form-control-file-v2", { key: '4124feba010476d48ab052142b7fb962d1550934', 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 })))));
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
|
|
@@ -203,7 +203,7 @@ const JustifiDuplicateCharge = class {
|
|
|
203
203
|
}
|
|
204
204
|
render() {
|
|
205
205
|
var _a, _b, _c;
|
|
206
|
-
return (index.h("div", { key: '
|
|
206
|
+
return (index.h("div", { key: 'a34d10b642c601ff1a2e6109bdad5550afef0dc7' }, index.h("div", { key: '65dfe9ecb13d4038fbceb5b3f88313e473ad0f2f', class: "row gy-3" }, index.h("div", { key: '5ec12191f9e56396ff1e67b53dcdfecdca8f21e9', class: "col-12" }, index.h("h2", { key: 'b5bf89077f1ae3dcbb6c37e28b2728a0c88ed1b4', class: "h5", part: parts.heading5 }, "Duplicate Charge")), index.h("div", { key: '52cdf5962d03f1724dc610a4525a4bf09a68fe4e', class: "col-12" }, index.h("form-control-text", { key: '785cc51d4491326c3e7555404e47726cb6f6f0ea', 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 })), index.h("div", { key: 'c3142d3b716cb3a191d930a5961d8361e4ef6204', class: "col-12" }, index.h("form-control-textarea", { key: 'd6cd675e958cd0685a89812891c599393a309fef', 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 })), index.h("div", { key: 'e805678d04d01f4763ee663590e89e96be9fcfb4', class: "col-12" }, index.h("form-control-file-v2", { key: 'c83c4e91ebba42be4a6e640aa73186f6b461c42f', 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 })))));
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
|
|
@@ -236,7 +236,7 @@ const JustifiElectronicEvidence = class {
|
|
|
236
236
|
}
|
|
237
237
|
render() {
|
|
238
238
|
var _a, _b;
|
|
239
|
-
return (index.h("div", { key: '
|
|
239
|
+
return (index.h("div", { key: '3b0122e517065a72f2d7b8411d75067db093e284' }, index.h("div", { key: '3f6b7c42a8e6419a4890ae29c41afd98ecdd8f11', class: "row gy-3" }, index.h("div", { key: 'f807c043be7f75e7f9befd24cb80fd93f56678d5', class: "col-12" }, index.h("h2", { key: '3c4315f405ab5cead5eebe48975f26e9d93e0d84', class: "h5", part: parts.heading5 }, "Electronic Evidence")), index.h("div", { key: 'd84fa8fcc504137031181fdb1974f50d1bc49ef8', class: "col-12" }, index.h("form-control-text", { key: 'db3862f6a1ebd5afcf5e1ff2943de3d977e56bbe', 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 })), index.h("div", { key: '4e882539af79b200962740ae5645df663c82bde9', class: "col-12" }, index.h("form-control-file-v2", { key: '2be5e0f0d1ad5b47d41fabb1f2fe25397e7cc69f', 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 })))));
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
|
|
@@ -270,7 +270,7 @@ const JustifiProductOrService = class {
|
|
|
270
270
|
}
|
|
271
271
|
render() {
|
|
272
272
|
var _a, _b, _c;
|
|
273
|
-
return (index.h("div", { key: '
|
|
273
|
+
return (index.h("div", { key: '4587b32b05500749ada539467d8eb2409d0180bd' }, index.h("div", { key: 'b6696b8324fff8752b227ae3ba41a13ba1ac9063', class: "row gy-3" }, index.h("div", { key: '013ea18c3848964f098d18c13caf3dde4670093a', class: "col-12" }, index.h("h2", { key: '6329d4950881a7856b8b47c9e047c8d25e48aaac', class: "h5", part: parts.heading5 }, "Product & Service Details")), index.h("div", { key: 'c30067cffb73b64e57ee0189ef53ef04337a8cf3', class: "col-12" }, index.h("form-control-text", { key: '23060ee222508fe8ef1e4063bd19a95cb4fab288', 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 })), index.h("div", { key: '05902305859cbbfa5572fdc2303ef27c4533cbda', class: "col-12" }, index.h("form-control-date", { key: 'cc4ca8d15ab2d04863323fdb73f4f3cde363b61d', 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 })), index.h("div", { key: 'a0986336639e8ff22cfa7fd10eb761fa5159e8e7', class: "col-12" }, index.h("form-control-file-v2", { key: '352467c92329bbf22535a38ee4c2a14d9a9110c6', 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 })))));
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
|
|
@@ -304,7 +304,7 @@ const JustifiRefundPolicy = class {
|
|
|
304
304
|
}
|
|
305
305
|
render() {
|
|
306
306
|
var _a, _b, _c, _d;
|
|
307
|
-
return (index.h("div", { key: '
|
|
307
|
+
return (index.h("div", { key: 'e59738a3425e348d989077da9353aa12293cea2f' }, index.h("div", { key: '32365305802a0584b959e04268796b21ca73fe21', class: "row gy-3" }, index.h("div", { key: 'ab46282525e6afb9b4db2f82ea6a716e1bd32649', class: "col-12" }, index.h("h2", { key: 'b1c9fbfccf63eee921a734e0e82cc868ddfb6652', class: "h5", part: parts.heading5 }, "Refund Policy and Receipt")), index.h("div", { key: '1287269e5c352018fd289c64e876b985137c36c8', class: "col-12" }, index.h("form-control-textarea", { key: '217292c1ea3a92c3a1cfb68c6d1cbe5b4c532262', 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 })), index.h("div", { key: '7b54f191e06110c1c186ae316558d7617bd3fc93', class: "col-12" }, index.h("form-control-textarea", { key: 'ec77cd98d1c77c88e74655b430f89bb2e79bb125', 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 })), index.h("div", { key: '68971eb2d792f9f733e68b6e9bcab8965cc51412', class: "col-12" }, index.h("form-control-file-v2", { key: '991ef9fa96a95a52caf72b723d854f17d2c76a0c', 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 })), index.h("div", { key: '22528492e08a56f5b72ad11ef754d1a46884093f', class: "col-12" }, index.h("form-control-file-v2", { key: '4ea877eeef562dd232bdf5d1359d54cc4e030365', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
|
|
@@ -341,7 +341,7 @@ const JustifiShippingDetails = class {
|
|
|
341
341
|
}
|
|
342
342
|
render() {
|
|
343
343
|
var _a, _b, _c, _d, _e;
|
|
344
|
-
return (index.h("div", { key: '
|
|
344
|
+
return (index.h("div", { key: '66ab4f496a037d4724fcc127803d2fd4c72ad2a8' }, index.h("div", { key: 'a650a56e124ecc55aaa383a32e27cad862801d01', class: "row gy-3" }, index.h("div", { key: 'aedaacba104b8540eedafcbc8f7c776fa99ab387', class: "col-12" }, index.h("h2", { key: 'b4e2dc10ef6cbdab47143f2cc64a484050bfc416', class: "h5", part: parts.heading5 }, "Shipping Details")), index.h("div", { key: '7110551e0ecf98b149f008eb7105235b8d601454', class: "col-12" }, index.h("form-control-text", { key: '2c17294567ff47b181c8d11cfda7651671adac92', 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 })), index.h("div", { key: '031476a2435c80b8ae27fb50303f14797d84a801', class: "col-12" }, index.h("form-control-text", { key: '67441fbba00af48235867763561cf8adf66b9e69', 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 })), index.h("div", { key: '1fcc1bf129d3ec577f4f36a2801422044ec0a59e', class: "col-12" }, index.h("form-control-date", { key: 'aa0464427d083dceba8e1604e045c707366d6046', 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 })), index.h("div", { key: 'f61850943df4c9d6605cde9d86b2e8275ced0af4', class: "col-12" }, index.h("form-control-textarea", { key: 'a1d4997810348a93f26a9f4932890ffd911ea062', 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 })), index.h("div", { key: '9dd41ee3436d63e0c89318129e811630e4aad75d', class: "col-12" }, index.h("form-control-file-v2", { key: 'fe1879caad49f44f1abd312a3925a20e6bdc11bf', 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 })))));
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
347
|
|
|
@@ -13,8 +13,8 @@ var configState = require('./config-state-BIgGhhe9.js');
|
|
|
13
13
|
var header1 = require('./header-1-CsBQoo1f.js');
|
|
14
14
|
var insuranceState = require('./insurance-state-Xe2auE-N.js');
|
|
15
15
|
var header3 = require('./header-3-DCYJhPro.js');
|
|
16
|
-
var Analytics = require('./Analytics-
|
|
17
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
16
|
+
var Analytics = require('./Analytics-DcqsdFaD.js');
|
|
17
|
+
var checkPkgVersion = require('./check-pkg-version-DFTQGZz1.js');
|
|
18
18
|
require('./dinero-BwNN_k7x.js');
|
|
19
19
|
require('./Pagination-Dediz133.js');
|
|
20
20
|
require('./Business-oBifyXkW.js');
|
|
@@ -25,7 +25,7 @@ var plaid_service = require('./plaid.service-BcgO2VXC.js');
|
|
|
25
25
|
var index$1 = require('./index-CajjbB9t.js');
|
|
26
26
|
var paymentMethodOptionUtils = require('./payment-method-option-utils-WYHIHy-l.js');
|
|
27
27
|
require('./index-W-zoNiyM.js');
|
|
28
|
-
require('./package-
|
|
28
|
+
require('./package-bM0MyhTf.js');
|
|
29
29
|
|
|
30
30
|
const JustifiRadioListItem = class {
|
|
31
31
|
constructor(hostRef) {
|
|
@@ -539,6 +539,7 @@ const JustifiApplePay = class {
|
|
|
539
539
|
this.applePayCompleted = index.createEvent(this, "applePayCompleted", 7);
|
|
540
540
|
this.applePayCancelled = index.createEvent(this, "applePayCancelled", 7);
|
|
541
541
|
this.applePayError = index.createEvent(this, "applePayError", 7);
|
|
542
|
+
this.sdkLoaded = false;
|
|
542
543
|
this.countryCode = "US";
|
|
543
544
|
this.merchantIdentifier = "merchant.com.staging-justifi.checkout-dev";
|
|
544
545
|
this.merchantDisplayName = "JustiFi Checkout";
|
|
@@ -613,6 +614,32 @@ const JustifiApplePay = class {
|
|
|
613
614
|
}
|
|
614
615
|
};
|
|
615
616
|
}
|
|
617
|
+
componentWillLoad() {
|
|
618
|
+
this.isAvailable = Plaid.ApplePayHelpers.isApplePaySupported();
|
|
619
|
+
if (!this.isAvailable) {
|
|
620
|
+
this.isLoading = false;
|
|
621
|
+
return;
|
|
622
|
+
}
|
|
623
|
+
if (checkout_store.checkoutStore.checkoutLoaded) {
|
|
624
|
+
this.loadApplePaySDK();
|
|
625
|
+
}
|
|
626
|
+
else {
|
|
627
|
+
checkout_store.onChange('checkoutLoaded', (loaded) => {
|
|
628
|
+
if (loaded)
|
|
629
|
+
this.loadApplePaySDK();
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
loadApplePaySDK() {
|
|
634
|
+
if (this.sdkLoaded)
|
|
635
|
+
return;
|
|
636
|
+
this.sdkLoaded = true;
|
|
637
|
+
const script = document.createElement('script');
|
|
638
|
+
script.src = 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js';
|
|
639
|
+
script.async = true;
|
|
640
|
+
script.onload = () => this.initializeApplePay();
|
|
641
|
+
document.head.appendChild(script);
|
|
642
|
+
}
|
|
616
643
|
async initializeApplePay() {
|
|
617
644
|
try {
|
|
618
645
|
this.isLoading = true;
|
|
@@ -624,12 +651,6 @@ const JustifiApplePay = class {
|
|
|
624
651
|
if (!hasRequiredConfig) {
|
|
625
652
|
this.error = "Missing required Apple Pay configuration";
|
|
626
653
|
this.isConfigValid = false;
|
|
627
|
-
console.error("Apple Pay config error: missing required values", {
|
|
628
|
-
paymentAmount: checkout_store.checkoutStore.paymentAmount,
|
|
629
|
-
paymentCurrency: checkout_store.checkoutStore.paymentCurrency,
|
|
630
|
-
hasAuthToken: Boolean(checkout_store.checkoutStore.authToken),
|
|
631
|
-
accountId: checkout_store.checkoutStore.accountId,
|
|
632
|
-
});
|
|
633
654
|
this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.CONFIG_ERROR });
|
|
634
655
|
this.isLoading = false;
|
|
635
656
|
return;
|
|
@@ -638,14 +659,12 @@ const JustifiApplePay = class {
|
|
|
638
659
|
this.canMakePayments = Plaid.ApplePayHelpers.canMakePayments();
|
|
639
660
|
if (!this.isAvailable) {
|
|
640
661
|
this.error = "Apple Pay is not supported on this device";
|
|
641
|
-
console.error(this.error);
|
|
642
662
|
this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.NOT_SUPPORTED });
|
|
643
663
|
this.isLoading = false;
|
|
644
664
|
return;
|
|
645
665
|
}
|
|
646
666
|
if (!this.canMakePayments) {
|
|
647
667
|
this.error = "Apple Pay is not available";
|
|
648
|
-
console.error(this.error);
|
|
649
668
|
this.applePayError.emit({ error: this.error, code: JustifiApplePay.ErrorCode.NOT_AVAILABLE });
|
|
650
669
|
this.isLoading = false;
|
|
651
670
|
return;
|
|
@@ -666,7 +685,6 @@ const JustifiApplePay = class {
|
|
|
666
685
|
}
|
|
667
686
|
}
|
|
668
687
|
catch (error) {
|
|
669
|
-
console.error("Apple Pay initialization error:", error);
|
|
670
688
|
this.error =
|
|
671
689
|
error instanceof Error
|
|
672
690
|
? error.message
|
|
@@ -687,7 +705,8 @@ const JustifiApplePay = class {
|
|
|
687
705
|
return Plaid.ApplePayHelpers.getDefaultSupportedNetworks();
|
|
688
706
|
}
|
|
689
707
|
async abort() {
|
|
690
|
-
|
|
708
|
+
var _a;
|
|
709
|
+
(_a = this.applePayService) === null || _a === void 0 ? void 0 : _a.abortPaymentSession();
|
|
691
710
|
this.isProcessing = false;
|
|
692
711
|
this.applePayCancelled.emit();
|
|
693
712
|
}
|
|
@@ -696,13 +715,14 @@ const JustifiApplePay = class {
|
|
|
696
715
|
// Render nothing when Apple Pay is disabled at the checkout settings level
|
|
697
716
|
return null;
|
|
698
717
|
}
|
|
718
|
+
if (!this.isAvailable) {
|
|
719
|
+
return null;
|
|
720
|
+
}
|
|
699
721
|
const isReady = !this.isLoading &&
|
|
700
722
|
this.isAvailable &&
|
|
701
723
|
this.canMakePayments &&
|
|
702
724
|
this.isConfigValid;
|
|
703
|
-
return (index.h(styledHost.StyledHost, null,
|
|
704
|
-
this.initializeApplePay();
|
|
705
|
-
} })), index.h("div", { class: 'apple-pay-container' }, index.h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (index.h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick, width: this.width, height: this.height }))), index.h("style", null, `
|
|
725
|
+
return (index.h(styledHost.StyledHost, null, index.h("div", { class: 'apple-pay-container' }, index.h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (index.h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick, width: this.width, height: this.height }))), index.h("style", null, `
|
|
706
726
|
.apple-pay-container {
|
|
707
727
|
width: 100%;
|
|
708
728
|
}
|
|
@@ -854,11 +874,14 @@ const JustifiGooglePay = class {
|
|
|
854
874
|
}, this.iframeOrigin);
|
|
855
875
|
}
|
|
856
876
|
render() {
|
|
877
|
+
if (!checkout_store.checkoutStore.checkoutLoaded) {
|
|
878
|
+
return null;
|
|
879
|
+
}
|
|
857
880
|
if (!checkout_store.checkoutStore.googlePayEnabled) {
|
|
858
881
|
console.warn("Google Pay is not enabled for this checkout");
|
|
859
882
|
return null;
|
|
860
883
|
}
|
|
861
|
-
return (index.h(index.Host, null, index.h(GooglePaySkeleton, { isLoading: !this.isReadyToPay }), index.h("iframe", { ref: (el) => (this.iframeElement = el), src: `${this.iframeOrigin}/v2/googlePay`, style: {
|
|
884
|
+
return (index.h(index.Host, null, index.h(GooglePaySkeleton, { isLoading: !this.isReadyToPay }), index.h("iframe", { ref: (el) => (this.iframeElement = el), src: `${this.iframeOrigin}/v2/googlePay`, allow: "payment", style: {
|
|
862
885
|
border: "none",
|
|
863
886
|
width: "100%",
|
|
864
887
|
height: "48px",
|
|
@@ -1402,6 +1425,7 @@ const JustifiPlaidPaymentMethod = class {
|
|
|
1402
1425
|
this.isSelected = false;
|
|
1403
1426
|
this.retryCount = 0;
|
|
1404
1427
|
this.isRetrying = false;
|
|
1428
|
+
this.sdkLoaded = false;
|
|
1405
1429
|
this.plaidService = new plaid_service.PlaidService();
|
|
1406
1430
|
this.maxRetries = 3;
|
|
1407
1431
|
this.retryDelay = 2000; // 2 seconds
|
|
@@ -1748,15 +1772,31 @@ const JustifiPlaidPaymentMethod = class {
|
|
|
1748
1772
|
this.openPlaidLink();
|
|
1749
1773
|
}
|
|
1750
1774
|
}
|
|
1751
|
-
|
|
1752
|
-
|
|
1775
|
+
componentWillLoad() {
|
|
1776
|
+
var _a;
|
|
1777
|
+
this.isSelected = ((_a = checkout_store.checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === index$1.PAYMENT_METHODS.PLAID;
|
|
1778
|
+
if (checkout_store.checkoutStore.bankAccountVerification !== true)
|
|
1753
1779
|
return;
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1780
|
+
if (checkout_store.checkoutStore.checkoutLoaded) {
|
|
1781
|
+
this.loadPlaidSDK();
|
|
1782
|
+
}
|
|
1783
|
+
else {
|
|
1784
|
+
checkout_store.onChange('checkoutLoaded', (loaded) => {
|
|
1785
|
+
if (loaded && checkout_store.checkoutStore.bankAccountVerification === true) {
|
|
1786
|
+
this.loadPlaidSDK();
|
|
1787
|
+
}
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
loadPlaidSDK() {
|
|
1792
|
+
if (this.sdkLoaded)
|
|
1793
|
+
return;
|
|
1794
|
+
this.sdkLoaded = true;
|
|
1795
|
+
const script = document.createElement('script');
|
|
1796
|
+
script.src = 'https://cdn.plaid.com/link/v2/stable/link-initialize.js';
|
|
1797
|
+
script.async = true;
|
|
1798
|
+
script.onload = () => this.initializePlaidLink();
|
|
1799
|
+
script.onerror = () => {
|
|
1760
1800
|
this.handleError({
|
|
1761
1801
|
code: Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED,
|
|
1762
1802
|
message: Plaid.PLAID_ERROR_MESSAGES[Plaid.PlaidErrorCodes.PLAID_SDK_LOAD_FAILED],
|
|
@@ -1765,11 +1805,7 @@ const JustifiPlaidPaymentMethod = class {
|
|
|
1765
1805
|
userAction: 'Refresh the page and try again'
|
|
1766
1806
|
});
|
|
1767
1807
|
};
|
|
1768
|
-
|
|
1769
|
-
componentWillLoad() {
|
|
1770
|
-
var _a;
|
|
1771
|
-
// Initialize selection state based on store
|
|
1772
|
-
this.isSelected = ((_a = checkout_store.checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === index$1.PAYMENT_METHODS.PLAID;
|
|
1808
|
+
document.head.appendChild(script);
|
|
1773
1809
|
}
|
|
1774
1810
|
async resolvePaymentMethod() {
|
|
1775
1811
|
if (!this.publicToken) {
|
|
@@ -1915,7 +1951,7 @@ const JustifiPlaidPaymentMethod = class {
|
|
|
1915
1951
|
}
|
|
1916
1952
|
return null;
|
|
1917
1953
|
};
|
|
1918
|
-
return (index.h(styledHost.StyledHost, { class: "payment-method" }, index.h("
|
|
1954
|
+
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())));
|
|
1919
1955
|
}
|
|
1920
1956
|
static get watchers() { return {
|
|
1921
1957
|
"isSelected": ["onSelectionChange"]
|
|
@@ -1943,11 +1979,13 @@ const JustifiSavedPaymentMethods = class {
|
|
|
1943
1979
|
};
|
|
1944
1980
|
}
|
|
1945
1981
|
componentWillLoad() {
|
|
1946
|
-
if (
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1982
|
+
if (checkout_store.checkoutStore.checkoutLoaded) {
|
|
1983
|
+
if (!checkout_store.checkoutStore.paymentMethods.length) {
|
|
1984
|
+
console.warn('No saved payment methods available.');
|
|
1985
|
+
}
|
|
1986
|
+
if (checkout_store.checkoutStore.disablePaymentMethodGroup) {
|
|
1987
|
+
console.warn('Payment method group is disabled.');
|
|
1988
|
+
}
|
|
1951
1989
|
}
|
|
1952
1990
|
}
|
|
1953
1991
|
render() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var Analytics = require('./Analytics-
|
|
5
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
4
|
+
var Analytics = require('./Analytics-DcqsdFaD.js');
|
|
5
|
+
var checkPkgVersion = require('./check-pkg-version-DFTQGZz1.js');
|
|
6
6
|
var configState = require('./config-state-BIgGhhe9.js');
|
|
7
7
|
var styledHost = require('./styled-host-DAi5SuFa.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./package-
|
|
9
|
+
require('./package-bM0MyhTf.js');
|
|
10
10
|
require('./Api-Bukk55YZ.js');
|
|
11
11
|
require('./utils-BHi4j5rB.js');
|
|
12
12
|
require('./dinero-BwNN_k7x.js');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
5
|
-
var Analytics = require('./Analytics-
|
|
4
|
+
var checkPkgVersion = require('./check-pkg-version-DFTQGZz1.js');
|
|
5
|
+
var Analytics = require('./Analytics-DcqsdFaD.js');
|
|
6
6
|
var configState = require('./config-state-BIgGhhe9.js');
|
|
7
7
|
var styledHost = require('./styled-host-DAi5SuFa.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./package-
|
|
9
|
+
require('./package-bM0MyhTf.js');
|
|
10
10
|
require('./Api-Bukk55YZ.js');
|
|
11
11
|
require('./utils-BHi4j5rB.js');
|
|
12
12
|
require('./dinero-BwNN_k7x.js');
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
4
|
var utils = require('./utils-8RGQVADu.js');
|
|
5
5
|
var business_service = require('./business.service-BheJs82v.js');
|
|
6
|
-
var getBusiness = require('./get-business-
|
|
6
|
+
var getBusiness = require('./get-business-TFzhaBXn.js');
|
|
7
7
|
var Plaid = require('./Plaid-BlSGeGpn.js');
|
|
8
|
-
var Analytics = require('./Analytics-
|
|
9
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
8
|
+
var Analytics = require('./Analytics-DcqsdFaD.js');
|
|
9
|
+
var checkPkgVersion = require('./check-pkg-version-DFTQGZz1.js');
|
|
10
10
|
var styledHost = require('./styled-host-DAi5SuFa.js');
|
|
11
11
|
require('./event-types-YOY5TKUN.js');
|
|
12
12
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
@@ -20,7 +20,7 @@ require('./Pagination-Dediz133.js');
|
|
|
20
20
|
require('./Business-oBifyXkW.js');
|
|
21
21
|
require('./Dispute-CruQTF6_.js');
|
|
22
22
|
require('./utils-DbTucCTO.js');
|
|
23
|
-
require('./package-
|
|
23
|
+
require('./package-bM0MyhTf.js');
|
|
24
24
|
|
|
25
25
|
const BusinessDetailsLoading = () => {
|
|
26
26
|
const Block = () => (index.h("div", { class: "mt-5" }, index.h(skeleton.Skeleton, { width: "40%", height: "1.5rem" }), index.h("hr", null), index.h("div", { class: "row g-3" }, index.h("div", { class: "col-12 col-md-6" }, index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null)), index.h("div", { class: "col-12 col-md-6" }, index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null), index.h(skeleton.Skeleton, null)))));
|
|
@@ -10,12 +10,12 @@ var Plaid = require('./Plaid-BlSGeGpn.js');
|
|
|
10
10
|
require('./Pagination-Dediz133.js');
|
|
11
11
|
var Business = require('./Business-oBifyXkW.js');
|
|
12
12
|
require('./Dispute-CruQTF6_.js');
|
|
13
|
-
var Analytics = require('./Analytics-
|
|
13
|
+
var Analytics = require('./Analytics-DcqsdFaD.js');
|
|
14
14
|
var button = require('./button-CR9Rl1-o.js');
|
|
15
15
|
var styledHost = require('./styled-host-DAi5SuFa.js');
|
|
16
16
|
var header1 = require('./header-1-CsBQoo1f.js');
|
|
17
17
|
require('./event-types-YOY5TKUN.js');
|
|
18
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
18
|
+
var checkPkgVersion = require('./check-pkg-version-DFTQGZz1.js');
|
|
19
19
|
var skeleton = require('./skeleton-DvRCiQlA.js');
|
|
20
20
|
var eventTypes = require('./event-types-DNOUef41.js');
|
|
21
21
|
var paymentProvisioningActions = require('./payment-provisioning-actions-BO7dzIm1.js');
|
|
@@ -26,7 +26,7 @@ require('./country-config-D7fss2oF.js');
|
|
|
26
26
|
require('./business-form-options-D_nM7NDk.js');
|
|
27
27
|
require('./index-W-zoNiyM.js');
|
|
28
28
|
require('./utils-BHi4j5rB.js');
|
|
29
|
-
require('./package-
|
|
29
|
+
require('./package-bM0MyhTf.js');
|
|
30
30
|
require('./Api-Bukk55YZ.js');
|
|
31
31
|
require('./parts-BXshb_S-.js');
|
|
32
32
|
require('./utils-DbTucCTO.js');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var Analytics = require('./Analytics-
|
|
5
|
-
var checkPkgVersion = require('./check-pkg-version-
|
|
4
|
+
var Analytics = require('./Analytics-DcqsdFaD.js');
|
|
5
|
+
var checkPkgVersion = require('./check-pkg-version-DFTQGZz1.js');
|
|
6
6
|
var configState = require('./config-state-BIgGhhe9.js');
|
|
7
7
|
var styledHost = require('./styled-host-DAi5SuFa.js');
|
|
8
8
|
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./package-
|
|
9
|
+
require('./package-bM0MyhTf.js');
|
|
10
10
|
require('./Api-Bukk55YZ.js');
|
|
11
11
|
require('./utils-BHi4j5rB.js');
|
|
12
12
|
require('./dinero-BwNN_k7x.js');
|
|
@@ -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 checkPkgVersion = require('./check-pkg-version-
|
|
4
|
+
var Analytics = require('./Analytics-DcqsdFaD.js');
|
|
5
|
+
var checkPkgVersion = require('./check-pkg-version-DFTQGZz1.js');
|
|
6
6
|
var checkout_store = require('./checkout.store-CztwuCnG.js');
|
|
7
7
|
var parts = require('./parts-BXshb_S-.js');
|
|
8
8
|
var styledHost = require('./styled-host-DAi5SuFa.js');
|
|
9
9
|
require('./event-types-YOY5TKUN.js');
|
|
10
10
|
var index$1 = require('./index-CajjbB9t.js');
|
|
11
|
-
require('./package-
|
|
11
|
+
require('./package-bM0MyhTf.js');
|
|
12
12
|
require('./Api-Bukk55YZ.js');
|
|
13
13
|
require('./config-state-BIgGhhe9.js');
|
|
14
14
|
require('./index-W-zoNiyM.js');
|
|
@@ -55,7 +55,6 @@ const JustifiCheckout = class {
|
|
|
55
55
|
checkout_store.checkoutStore.isSubmitting = false;
|
|
56
56
|
}
|
|
57
57
|
checkoutError(_event) {
|
|
58
|
-
console.error('[justifi-checkout] error-event received', _event === null || _event === void 0 ? void 0 : _event.detail);
|
|
59
58
|
checkout_store.checkoutStore.isSubmitting = false;
|
|
60
59
|
}
|
|
61
60
|
checkoutChanged(event) {
|
|
@@ -90,9 +89,9 @@ const JustifiCheckout = class {
|
|
|
90
89
|
}
|
|
91
90
|
render() {
|
|
92
91
|
var _a, _b;
|
|
93
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
92
|
+
return (index.h(styledHost.StyledHost, { key: 'ffd2abaacc7edae588a9abe3a4ff96807b34fcff' }, index.h("justifi-modular-checkout", { key: '9196c278e24353aeb1ac02c85253d629f683522b', ref: (el) => {
|
|
94
93
|
this.modularCheckoutRef = el;
|
|
95
|
-
}, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, index.h("div", { key: '
|
|
94
|
+
}, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, index.h("div", { key: '895298286bc0aa6acbda896a4f148dd4f8d7e7d2', class: "row gy-3 jfi-checkout-core" }, index.h("div", { key: 'dd186ed2f0fd479cd60024423b6d55625b962e55', class: "col-12", part: parts.checkoutSummary }, index.h("justifi-header", { key: '920d4eca26846aa1cbc16693fa45a9d8054d95a7', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), index.h("section", { key: '560f8c3757a7cf53fd0aa898fd243b16a2f8e8d5' }, index.h("justifi-checkout-summary", { key: '31faa6ca984aa22985927a1f80273c86a67c7025' }))), index.h("div", { key: '3128ae40a739573da32598213a289d8751503fb0', class: "col-12 mt-4" }, index.h("slot", { key: '4a310881bbc4017734082d5c4f6b41d3d5f2a424', name: "insurance" })), index.h("div", { key: '8047c4da62e2fd67bd0b3f8654c6a19c0cacc255', class: "col-12 mt-4" }, index.h("justifi-header", { key: '631ff14201f6246906e3e1572515de21a7977773', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (index.h("justifi-header", { key: '7fdc560ef42a5c2e8571f332e3c4ce8ff460d235', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), index.h("div", { key: '81dcb52c051044adb4dbd92ac73ee3096edc592b', class: "d-flex flex-column" }, index.h("section", { key: '4359903b195009a2e8fb997a1f77880cba40dea4' }, index.h("div", { key: '21728867e6288c3fb7d5e5a6ee3d15974568b866' }, this.availablePaymentMethods.includes(index$1.PAYMENT_METHODS.APPLE_PAY) && (index.h("div", { key: 'bdaa6b6c6d09cba294b2e46b85270241c86d2251', class: "mb-3" }, index.h("justifi-apple-pay", { key: '150d707bff7b79a1d19141f21a9c47e00e54418a' }))), this.availablePaymentMethods.includes(index$1.PAYMENT_METHODS.GOOGLE_PAY) && (index.h("div", { key: 'ce2be06b20a1e7d0159fde68a1c5c349c2d11998', class: "mb-3" }, index.h("justifi-google-pay", { key: '0fc867ce77467eb1f1fd198a62e88bd2795f4914', ref: (el) => (this.googlePayRef = el) }))), index.h("justifi-saved-payment-methods", { key: '0bb1999c093b3837bfdb879134dc54f66c90e164' }), this.availablePaymentMethods.includes(index$1.PAYMENT_METHODS.SEZZLE) && (index.h("justifi-radio-list-item", { key: '1599be9bcea7569d822a204c805f08f18a4e00a4', name: "paymentMethodType", value: index$1.PAYMENT_METHODS.SEZZLE, checked: ((_a = checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === index$1.PAYMENT_METHODS.SEZZLE, label: index.h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(index$1.PAYMENT_METHODS.PLAID) && !this.disableBnpl && (index.h("justifi-radio-list-item", { key: 'c1de230257d290efa05f7a7166c2f069451c71a3', name: "paymentMethodType", value: index$1.PAYMENT_METHODS.PLAID, checked: ((_b = checkout_store.checkoutStore === null || checkout_store.checkoutStore === void 0 ? void 0 : checkout_store.checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === index$1.PAYMENT_METHODS.PLAID, label: index.h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), index.h("justifi-tokenize-payment-method", { key: '44bca4ee57857afd4eee213cef98db2d4bd42490', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkout_store.checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkout_store.checkoutStore.paymentMethodGroupId }))))), index.h("div", { key: 'e5b6b4ac6b0fcec20380082f1b4cc5ba73bb88aa', class: "mt-4" }, index.h("justifi-button", { key: '188a8f46fd37b5f4f2d9b3ba7ff179d44d4a6656', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: checkout_store.checkoutStore.isSubmitting || checkout_store.checkoutStore.isWalletProcessing, isLoading: checkout_store.checkoutStore.isSubmitting || checkout_store.checkoutStore.isWalletProcessing, customStyle: { width: '100%', textAlign: "center" } }))))));
|
|
96
95
|
}
|
|
97
96
|
static get watchers() { return {
|
|
98
97
|
"authToken": ["propChanged"],
|