@justifi/webcomponents 4.19.1-rc → 4.19.2-rc
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-0b3db49d.js → Analytics-66574423.js} +2 -3
- package/dist/cjs/{business.service-c384784d.js → business.service-090a21e1.js} +5 -6
- package/dist/cjs/{get-payout-csv-51a02be7.js → get-payout-csv-238e839a.js} +3 -4
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +7 -8
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-card-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +8 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +1 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -5
- package/dist/cjs/{package-39dc73ed.js → package-0b65a049.js} +2 -4
- package/dist/cjs/{payment.service-2dbfb83d.js → payment.service-c92635c8.js} +2 -3
- package/dist/collection/api/services/analytics.service.js +1 -2
- package/dist/collection/api/services/business.service.js +5 -6
- package/dist/collection/api/services/checkout.service.js +2 -3
- package/dist/collection/api/services/insurance.service.js +2 -3
- package/dist/collection/api/services/payment.service.js +2 -3
- package/dist/collection/api/services/payout.service.js +3 -4
- package/dist/collection/api/services/provision.service.js +2 -4
- package/dist/collection/api/services/reports.service.js +1 -2
- package/dist/collection/components/bank-account-form/bank-account-form.js +3 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
- package/dist/collection/components/card-form/card-form.js +3 -4
- package/dist/collection/components/checkout/checkout-core.js +3 -4
- package/dist/collection/components/checkout/new-payment-method.js +3 -4
- package/dist/collection/components/checkout/payment-method-options.js +3 -4
- package/dist/collection/components/checkout/saved-payment-method.js +3 -4
- package/dist/collection/components/checkout/sezzle-payment-method.js +3 -4
- package/dist/collection/components/payment-form/payment-form.js +3 -4
- package/dist/collection/components/refund-form/refund-form.js +2 -3
- package/dist/docs.json +8 -8
- package/dist/esm/{Analytics-37556050.js → Analytics-6f321899.js} +2 -3
- package/dist/esm/{business.service-eee46ab1.js → business.service-37d0cc72.js} +5 -6
- package/dist/esm/{get-payout-csv-4d6b29d8.js → get-payout-csv-a702a0d9.js} +3 -4
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +7 -8
- package/dist/esm/justifi-bank-account-form.entry.js +4 -5
- package/dist/esm/justifi-business-details.entry.js +3 -4
- package/dist/esm/justifi-business-form.entry.js +4 -5
- package/dist/esm/justifi-card-form.entry.js +4 -5
- package/dist/esm/justifi-checkout-core.entry.js +2 -3
- package/dist/esm/justifi-checkout.entry.js +4 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +8 -9
- package/dist/esm/justifi-owner-form_3.entry.js +1 -2
- package/dist/esm/justifi-payment-details.entry.js +3 -4
- package/dist/esm/justifi-payment-form.entry.js +5 -6
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
- package/dist/esm/justifi-payments-list.entry.js +3 -4
- package/dist/esm/justifi-payout-details.entry.js +3 -4
- package/dist/esm/justifi-payouts-list.entry.js +3 -4
- package/dist/esm/justifi-refund-form.entry.js +2 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
- package/dist/esm/{package-e2a7aa3f.js → package-9f727069.js} +2 -4
- package/dist/esm/{payment.service-9005a501.js → payment.service-9359fe15.js} +2 -3
- package/dist/globals.d.ts +2 -0
- package/dist/module/Analytics.js +1 -2
- package/dist/module/business-bank-account-form-step.js +2 -3
- package/dist/module/business-document-upload-form-step.js +2 -3
- package/dist/module/business-terms-conditions-form-step.js +2 -3
- package/dist/module/business.service.js +5 -6
- package/dist/module/checkout-core.js +2 -3
- package/dist/module/get-payout-csv.js +3 -4
- package/dist/module/justifi-bank-account-form.js +2 -3
- package/dist/module/justifi-business-form.js +2 -3
- package/dist/module/justifi-card-form.js +2 -3
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-payment-form.js +3 -4
- package/dist/module/justifi-payment-provisioning.js +2 -3
- package/dist/module/justifi-refund-form.js +2 -3
- package/dist/module/justifi-season-interruption-insurance.js +2 -3
- package/dist/module/new-payment-method.js +2 -3
- package/dist/module/package.js +2 -4
- package/dist/module/payment-method-options.js +2 -3
- package/dist/module/payment.service.js +2 -3
- package/dist/module/saved-payment-method.js +2 -3
- package/dist/module/sezzle-payment-method.js +2 -3
- package/dist/webcomponents/p-04a61500.entry.js +1 -0
- package/dist/webcomponents/p-0e1bc91e.js +1 -0
- package/dist/webcomponents/{p-ae530971.entry.js → p-14fdc01c.entry.js} +1 -1
- package/dist/webcomponents/p-2b79f265.entry.js +1 -0
- package/dist/webcomponents/p-32211b2f.entry.js +1 -0
- package/dist/webcomponents/p-3352353a.entry.js +1 -0
- package/dist/webcomponents/p-3c6a8a36.entry.js +1 -0
- package/dist/webcomponents/p-47d79529.js +1 -0
- package/dist/webcomponents/p-72d42a01.entry.js +1 -0
- package/dist/webcomponents/p-77cf6f75.entry.js +1 -0
- package/dist/webcomponents/p-7c0002c6.js +1 -0
- package/dist/webcomponents/p-85960c15.entry.js +1 -0
- package/dist/webcomponents/p-8a038cd9.js +1 -0
- package/dist/webcomponents/p-8e7d4df4.entry.js +1 -0
- package/dist/webcomponents/p-b29f5084.entry.js +1 -0
- package/dist/webcomponents/p-b4b8b531.js +1 -0
- package/dist/webcomponents/p-bd2ecd23.entry.js +1 -0
- package/dist/webcomponents/p-c8c3a97d.entry.js +1 -0
- package/dist/webcomponents/p-cd37a87e.entry.js +1 -0
- package/dist/webcomponents/{p-a63fc384.entry.js → p-d23e1960.entry.js} +1 -1
- package/dist/webcomponents/p-e14c133e.entry.js +1 -0
- package/dist/webcomponents/p-e789152a.entry.js +1 -0
- package/dist/webcomponents/p-ecdf60f6.entry.js +1 -0
- package/dist/webcomponents/p-f117d1d1.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -4
- package/dist/cjs/config-037e67d0.js +0 -15
- package/dist/config.js +0 -11
- package/dist/esm/config-58e393e2.js +0 -13
- package/dist/module/config.js +0 -13
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
- package/dist/webcomponents/p-023779ee.entry.js +0 -1
- package/dist/webcomponents/p-037763f4.entry.js +0 -1
- package/dist/webcomponents/p-1f6afff9.entry.js +0 -1
- package/dist/webcomponents/p-246a6c6a.entry.js +0 -1
- package/dist/webcomponents/p-2d3b1692.entry.js +0 -1
- package/dist/webcomponents/p-32286934.js +0 -1
- package/dist/webcomponents/p-3f5e7e86.js +0 -1
- package/dist/webcomponents/p-57e1f2fd.js +0 -1
- package/dist/webcomponents/p-5f095525.entry.js +0 -1
- package/dist/webcomponents/p-69faef3f.entry.js +0 -1
- package/dist/webcomponents/p-6c078cd1.js +0 -1
- package/dist/webcomponents/p-8f325782.entry.js +0 -1
- package/dist/webcomponents/p-987b5de2.entry.js +0 -1
- package/dist/webcomponents/p-a8220709.entry.js +0 -1
- package/dist/webcomponents/p-b7cf49f4.entry.js +0 -1
- package/dist/webcomponents/p-b87b27ba.js +0 -1
- package/dist/webcomponents/p-c28db166.js +0 -1
- package/dist/webcomponents/p-edac2b43.entry.js +0 -1
- package/dist/webcomponents/p-ef23c091.entry.js +0 -1
- package/dist/webcomponents/p-f06910aa.entry.js +0 -1
- package/dist/webcomponents/p-f0a06884.entry.js +0 -1
- package/dist/webcomponents/p-f2f94d9f.entry.js +0 -1
- package/dist/webcomponents/p-f49b7170.entry.js +0 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const _package = require('./package-
|
|
4
|
-
const config = require('./config-037e67d0.js');
|
|
3
|
+
const _package = require('./package-0b65a049.js');
|
|
5
4
|
const Api = require('./Api-3bc6e43f.js');
|
|
6
5
|
|
|
7
6
|
class AnalyticsService {
|
|
8
7
|
async record(body) {
|
|
9
8
|
const endpoint = 'analytics';
|
|
10
|
-
return Api.Api({ apiOrigin:
|
|
9
|
+
return Api.Api({ apiOrigin: "" }).post(endpoint, JSON.stringify(body));
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const config = require('./config-037e67d0.js');
|
|
4
3
|
const Api = require('./Api-3bc6e43f.js');
|
|
5
4
|
|
|
6
5
|
class BusinessService {
|
|
7
6
|
async fetchBusiness(businessId, authToken) {
|
|
8
7
|
const endpoint = `entities/business/${businessId}`;
|
|
9
|
-
return Api.Api({ authToken, apiOrigin:
|
|
8
|
+
return Api.Api({ authToken, apiOrigin: "" }).get(endpoint);
|
|
10
9
|
}
|
|
11
10
|
async patchBusiness(authToken, businessId, payload) {
|
|
12
11
|
const endpoint = `entities/business/${businessId}`;
|
|
13
|
-
return Api.Api({ authToken, apiOrigin:
|
|
12
|
+
return Api.Api({ authToken, apiOrigin: "" }).patch(endpoint, payload);
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
class IdentityService {
|
|
17
16
|
async fetchIdentity(identityId, authToken) {
|
|
18
17
|
const endpoint = `entities/identity/${identityId}`;
|
|
19
|
-
return Api.Api({ authToken, apiOrigin:
|
|
18
|
+
return Api.Api({ authToken, apiOrigin: "" }).get(endpoint);
|
|
20
19
|
}
|
|
21
20
|
async patchIdentity(authToken, identityId, payload) {
|
|
22
21
|
const endpoint = `entities/identity/${identityId}`;
|
|
23
|
-
return Api.Api({ authToken, apiOrigin:
|
|
22
|
+
return Api.Api({ authToken, apiOrigin: "" }).patch(endpoint, payload);
|
|
24
23
|
}
|
|
25
24
|
async postIdentity(authToken, payload) {
|
|
26
25
|
const endpoint = `entities/identity`;
|
|
27
|
-
return Api.Api({ authToken, apiOrigin:
|
|
26
|
+
return Api.Api({ authToken, apiOrigin: "" }).post(endpoint, payload);
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
|
|
@@ -4,23 +4,22 @@ const Api = require('./Api-3bc6e43f.js');
|
|
|
4
4
|
require('./Pagination-0da8f095.js');
|
|
5
5
|
require('./Payment-1a8a8ca6.js');
|
|
6
6
|
require('./Payout-a2dd7b01.js');
|
|
7
|
-
const config = require('./config-037e67d0.js');
|
|
8
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
9
8
|
const utils = require('./utils-7a478c37.js');
|
|
10
9
|
|
|
11
10
|
class PayoutService {
|
|
12
11
|
async fetchPayouts(accountId, authToken, params) {
|
|
13
|
-
const api = Api.Api({ authToken, apiOrigin:
|
|
12
|
+
const api = Api.Api({ authToken, apiOrigin: "" });
|
|
14
13
|
const endpoint = `account/${accountId}/payouts`;
|
|
15
14
|
return api.get(endpoint, params);
|
|
16
15
|
}
|
|
17
16
|
async fetchPayout(payoutId, authToken) {
|
|
18
|
-
const api = Api.Api({ authToken, apiOrigin:
|
|
17
|
+
const api = Api.Api({ authToken, apiOrigin: "" });
|
|
19
18
|
const endpoint = `payouts/${payoutId}`;
|
|
20
19
|
return api.get(endpoint);
|
|
21
20
|
}
|
|
22
21
|
async fetchCSV(payoutId, authToken) {
|
|
23
|
-
const api = Api.Api({ authToken, apiOrigin:
|
|
22
|
+
const api = Api.Api({ authToken, apiOrigin: "" });
|
|
24
23
|
const endpoint = `reports/payouts/${payoutId}`;
|
|
25
24
|
return api.get(endpoint);
|
|
26
25
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
7
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
8
|
-
const business_service = require('./business.service-
|
|
8
|
+
const business_service = require('./business.service-090a21e1.js');
|
|
9
9
|
const index_esm = require('./index.esm-52757963.js');
|
|
10
10
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
11
11
|
const schemaValidations = require('./schema-validations-2733de42.js');
|
|
@@ -14,7 +14,6 @@ const Api = require('./Api-3bc6e43f.js');
|
|
|
14
14
|
require('./Pagination-0da8f095.js');
|
|
15
15
|
require('./Payment-1a8a8ca6.js');
|
|
16
16
|
require('./Payout-a2dd7b01.js');
|
|
17
|
-
const config = require('./config-037e67d0.js');
|
|
18
17
|
const utils = require('./utils-ddacfc44.js');
|
|
19
18
|
const Business = require('./Business-aacbe893.js');
|
|
20
19
|
const skeleton = require('./skeleton-748c5dde.js');
|
|
@@ -204,7 +203,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
204
203
|
;
|
|
205
204
|
componentWillLoad() {
|
|
206
205
|
this.formController = new index_esm.FormController(businessBankAccountSchema(this.allowOptionalFields));
|
|
207
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
206
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: "" });
|
|
208
207
|
if (this.businessId && this.authToken) {
|
|
209
208
|
this.fetchData();
|
|
210
209
|
}
|
|
@@ -217,7 +216,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
217
216
|
}
|
|
218
217
|
render() {
|
|
219
218
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
220
|
-
return (index.h("form", { key: '
|
|
219
|
+
return (index.h("form", { key: 'bc16efe8af48103ce07d8f5c6ecb040bbb957868' }, index.h("fieldset", { key: 'aaada7411cd43e678be3fe14bd60462e39f54527' }, index.h("legend", { key: '165b78cff91b553a37e7f070a40c4941db2929df' }, "Bank Account Info"), index.h("hr", { key: '006315c63bd21554dfa30d763122b9c9f259aba9' }), index.h("div", { key: 'f080fa734567a23c43ee7123bf2718aad5f1efa1', class: "row gy-3" }, index.h("div", { key: '674fab37279d21761f6e588338ebdcdb9e5520aa', class: "col-12" }, index.h("form-control-text", { key: '68f1a9aa2200e204c4db2a36eb5f4f168ab18bab', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: '085f33f93096bd9ecba304715ea1c3ec879396b4', class: "col-12" }, index.h("form-control-text", { key: 'c684ee2722f992ed61c51f87fd2c234c7278eb21', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'c0afbdb31f2faa8f73158e659b232230099e8b9f', class: "col-12" }, index.h("form-control-text", { key: '3d0e3ca9794beed0c542b6ca18a01eebec48366f', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: '40fd8191645312efaadc633061451bd744f2a31a', class: "col-12" }, index.h("form-control-select", { key: '40e40cc75dcaf8ef9ba47bdf109eb14798f28436', name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: '2af9c012bca9d413a5eb5b3b27f685f88137888b', class: "col-12" }, index.h("form-control-text", { key: '6386c601520152cb758dfe30ea7c6a8cdb1b249a', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled })), index.h("div", { key: '8dac645db4cb8f18f4cdd138a02bc2467d2fcdd4', class: "col-12" }, index.h("form-control-text", { key: 'b8abe9231edd0fd07c21c9b3874e8f4f792a1eda', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled }))))));
|
|
221
220
|
}
|
|
222
221
|
};
|
|
223
222
|
|
|
@@ -434,7 +433,7 @@ const BusinessDocumentFormStep = class {
|
|
|
434
433
|
return 'entities/document';
|
|
435
434
|
}
|
|
436
435
|
componentWillLoad() {
|
|
437
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
436
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: "" });
|
|
438
437
|
if (this.businessId && this.authToken) {
|
|
439
438
|
this.fetchData();
|
|
440
439
|
}
|
|
@@ -467,7 +466,7 @@ const BusinessDocumentFormStep = class {
|
|
|
467
466
|
return (index.h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
468
467
|
}
|
|
469
468
|
render() {
|
|
470
|
-
return (index.h("form", { key: '
|
|
469
|
+
return (index.h("form", { key: '4905c2dacbca9b1390fd7e316993be5d33117ee5' }, index.h("fieldset", { key: '22dc71452b1917be0d9dc237b1ac27739b922e65' }, index.h("legend", { key: '7c705b2b00a13f7fe690b2e5169dd1809934f892' }, "Document Uploads"), index.h("p", { key: 'e0ad37456d88496a589c1c79e8e3e9a0fc101577' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), index.h("hr", { key: '4ac6afc1c6ce6c6e81d4fcf05ee1c5c58b66f520' }), this.documentsOnFile, index.h("div", { key: 'bf8aa49a47a2d53f5c0a1179474d8dd885a5a363', class: "d-flex flex-column" }, this.formInputs))));
|
|
471
470
|
}
|
|
472
471
|
};
|
|
473
472
|
|
|
@@ -651,7 +650,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
651
650
|
};
|
|
652
651
|
}
|
|
653
652
|
async componentWillLoad() {
|
|
654
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
653
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: "" });
|
|
655
654
|
this.formController = new index_esm.FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
656
655
|
if (this.businessId && this.authToken) {
|
|
657
656
|
this.fetchData();
|
|
@@ -687,7 +686,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
687
686
|
});
|
|
688
687
|
}
|
|
689
688
|
render() {
|
|
690
|
-
return (index.h("form", { key: '
|
|
689
|
+
return (index.h("form", { key: 'e7eb6730d5b975ae91057a5218ed062a23d3f0ef' }, index.h("fieldset", { key: '9dc69375e2c988dc11c4e76f757bde1fe18febea' }, index.h("legend", { key: '0202cf805071e011f0c087f244c0a43191632b7c' }, "Terms and Conditions"), index.h("hr", { key: 'a38e7b058d4269406c929abf4f57ddcdc16aa4fd' }), index.h("justifi-business-terms-conditions-text", { key: '8b87b016198c87c3c52c3e280353489573aff90c' }), index.h("br", { key: '6c7107e3975a40e44ba4375025ebea0e811630fe' }), index.h("div", { key: '3667f0455c95bc0d22472598eb2ca3cd7093b9d5', class: "row-gy-3" }, index.h("div", { key: '1169946dc47b48cd2f8f1a2adfa9ff9b149447f1', class: "col-12" }, index.h("form-control-checkbox", { key: '66942238443b1e27bb3902ddeba0f6fce973b319', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
|
|
691
690
|
}
|
|
692
691
|
};
|
|
693
692
|
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
require('./package-39dc73ed.js');
|
|
6
|
+
const Analytics = require('./Analytics-66574423.js');
|
|
7
|
+
require('./package-0b65a049.js');
|
|
9
8
|
require('./Api-3bc6e43f.js');
|
|
10
9
|
|
|
11
10
|
const BankAccountForm = class {
|
|
@@ -16,7 +15,7 @@ const BankAccountForm = class {
|
|
|
16
15
|
this.bankAccountFormTokenized = index.createEvent(this, "bankAccountFormTokenize", 7);
|
|
17
16
|
this.bankAccountFormValidated = index.createEvent(this, "bankAccountFormValidate", 7);
|
|
18
17
|
this.validationMode = undefined;
|
|
19
|
-
this.iframeOrigin =
|
|
18
|
+
this.iframeOrigin = "";
|
|
20
19
|
this.internalStyleOverrides = undefined;
|
|
21
20
|
}
|
|
22
21
|
readyHandler(event) {
|
|
@@ -68,7 +67,7 @@ const BankAccountForm = class {
|
|
|
68
67
|
return this.childRef.resize();
|
|
69
68
|
}
|
|
70
69
|
render() {
|
|
71
|
-
return (index.h("justifi-payment-method-form", { key: '
|
|
70
|
+
return (index.h("justifi-payment-method-form", { key: '646e392c1a9ed38e73780ed6a01b6f019767794c', ref: el => {
|
|
72
71
|
if (el) {
|
|
73
72
|
this.childRef = el;
|
|
74
73
|
}
|
|
@@ -4,16 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
7
|
-
const business_service = require('./business.service-
|
|
7
|
+
const business_service = require('./business.service-090a21e1.js');
|
|
8
8
|
const Business = require('./Business-aacbe893.js');
|
|
9
9
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
10
|
const utils = require('./utils-7a478c37.js');
|
|
11
|
-
const Analytics = require('./Analytics-
|
|
12
|
-
require('./config-037e67d0.js');
|
|
11
|
+
const Analytics = require('./Analytics-66574423.js');
|
|
13
12
|
require('./Api-3bc6e43f.js');
|
|
14
13
|
require('./helpers-602962eb.js');
|
|
15
14
|
require('./state-options-4fbcb48a.js');
|
|
16
|
-
require('./package-
|
|
15
|
+
require('./package-0b65a049.js');
|
|
17
16
|
|
|
18
17
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
19
18
|
var _a;
|
|
@@ -10,16 +10,15 @@ const Api = require('./Api-3bc6e43f.js');
|
|
|
10
10
|
require('./Pagination-0da8f095.js');
|
|
11
11
|
require('./Payment-1a8a8ca6.js');
|
|
12
12
|
require('./Payout-a2dd7b01.js');
|
|
13
|
-
const config = require('./config-037e67d0.js');
|
|
14
13
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
15
14
|
const Business = require('./Business-aacbe893.js');
|
|
16
|
-
const Analytics = require('./Analytics-
|
|
15
|
+
const Analytics = require('./Analytics-66574423.js');
|
|
17
16
|
const styledHost = require('./styled-host-cc053016.js');
|
|
18
17
|
require('./schema-validations-2733de42.js');
|
|
19
18
|
require('./state-options-4fbcb48a.js');
|
|
20
19
|
require('./business-form-options-582467fe.js');
|
|
21
20
|
require('./helpers-602962eb.js');
|
|
22
|
-
require('./package-
|
|
21
|
+
require('./package-0b65a049.js');
|
|
23
22
|
|
|
24
23
|
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: payloadParsers.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: payloadParsers.identitySchema('representative') }));
|
|
25
24
|
|
|
@@ -86,7 +85,7 @@ const BusinessForm = class {
|
|
|
86
85
|
if (!this.businessId)
|
|
87
86
|
console.error(missingBusinessIdMessage);
|
|
88
87
|
this.formController = new index_esm.FormController(businessFormSchema);
|
|
89
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
88
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: "" });
|
|
90
89
|
this.fetchData();
|
|
91
90
|
}
|
|
92
91
|
disconnectedCallback() {
|
|
@@ -114,7 +113,7 @@ const BusinessForm = class {
|
|
|
114
113
|
this.instantiateBusiness(response.data);
|
|
115
114
|
}
|
|
116
115
|
render() {
|
|
117
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
116
|
+
return (index.h(styledHost.StyledHost, { key: '8fb79d577c13246fcf3ec1ee8460713fee07d01a', exportparts: "label,input,input-invalid" }, index.h("form", { key: '1fe23a8cc8714aee257b6c73c6b7b096d684ea1c', onSubmit: this.validateAndSubmit }, index.h("div", { key: 'e501f6963ed5bfd9eb80f67df13108289db6eba7', class: "row gap-3" }, index.h("h1", { key: 'f81f22704bda1480c467b872cd3fd309505b0e94' }, this.title), index.h("form-alert", { key: '15b2ff75d4db6447bfd1892542e8e972ede0ac7e', text: this.errorMessage, hideAlert: this.hideErrors }), index.h("div", { key: 'fd6a375fd187426940df3f28262be7aec3fedbe5', class: "col-12 mb-4" }, index.h("justifi-business-core-info", { key: 'd16818a2124cb04dd5a5e84ea40639991fb04a80', formController: this.formController })), index.h("div", { key: 'd48b04718cf938484cf65cc956bf798f44ed17a7', class: "col-12 mb-4" }, index.h("justifi-legal-address-form", { key: '3a2bc6babfe8a0a265b2a7f9e7bea1abebd3eb43', formController: this.formController })), index.h("div", { key: '5c4d5d1fa1e2aba32f42c2bb9e97c0d796ecf709', class: "col-12 mb-4" }, index.h("justifi-additional-questions", { key: 'c888fb627380d05302cb106c5642e39b1f2652fa', formController: this.formController })), index.h("div", { key: '623e94d84976cfe29f4501a781c750d1bb537605', class: "col-12 mb-4" }, index.h("justifi-business-representative", { key: '594c893c0976b58a309679a031f6f1c787e66f48', formController: this.formController })), index.h("div", { key: '9fbc36ed183b1ebf171da14276092195c7aaf3a9', class: "col-12 d-flex flex-row-reverse" }, index.h("button", { key: 'a60da6fdda5193d3c41c589b00b040c05ae425ac', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: businessFormTypes.BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
118
117
|
}
|
|
119
118
|
};
|
|
120
119
|
BusinessForm.style = JustifiBusinessFormStyle0;
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
require('./package-39dc73ed.js');
|
|
6
|
+
const Analytics = require('./Analytics-66574423.js');
|
|
7
|
+
require('./package-0b65a049.js');
|
|
9
8
|
require('./Api-3bc6e43f.js');
|
|
10
9
|
|
|
11
10
|
const CardForm = class {
|
|
@@ -16,7 +15,7 @@ const CardForm = class {
|
|
|
16
15
|
this.cardFormTokenized = index.createEvent(this, "cardFormTokenize", 7);
|
|
17
16
|
this.cardFormValidated = index.createEvent(this, "cardFormValidate", 7);
|
|
18
17
|
this.validationMode = undefined;
|
|
19
|
-
this.iframeOrigin =
|
|
18
|
+
this.iframeOrigin = "";
|
|
20
19
|
this.singleLine = false;
|
|
21
20
|
this.internalStyleOverrides = undefined;
|
|
22
21
|
}
|
|
@@ -69,7 +68,7 @@ const CardForm = class {
|
|
|
69
68
|
return this.childRef.resize();
|
|
70
69
|
}
|
|
71
70
|
render() {
|
|
72
|
-
return (index.h("justifi-payment-method-form", { key: '
|
|
71
|
+
return (index.h("justifi-payment-method-form", { key: 'cc0ad5d8a262ff5c8422d247caed469a8dea3488', ref: el => {
|
|
73
72
|
if (el) {
|
|
74
73
|
this.childRef = el;
|
|
75
74
|
}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const utils = require('./utils-89d86e29.js');
|
|
7
|
-
const config = require('./config-037e67d0.js');
|
|
8
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
9
8
|
const insuranceState = require('./insurance-state-80e24caf.js');
|
|
10
9
|
const button = require('./button-3f400a66.js');
|
|
@@ -49,7 +48,7 @@ const CheckoutCore = class {
|
|
|
49
48
|
});
|
|
50
49
|
this.renderState = 'error';
|
|
51
50
|
};
|
|
52
|
-
this.iframeOrigin =
|
|
51
|
+
this.iframeOrigin = "";
|
|
53
52
|
this.authToken = undefined;
|
|
54
53
|
this.getCheckout = undefined;
|
|
55
54
|
this.complete = undefined;
|
|
@@ -145,7 +144,7 @@ const CheckoutCore = class {
|
|
|
145
144
|
return (index.h("section", null, index.h("div", { class: !this.isLoading && 'visually-hidden' }, index.h(skeleton.Skeleton, { height: "24px" })), index.h("div", { class: this.isLoading && 'visually-hidden' }, index.h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), index.h("div", { class: "jfi-payment-total" }, index.h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", index.h("span", { class: "jfi-payment-total-amount" }, utils.formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
146
145
|
}
|
|
147
146
|
render() {
|
|
148
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
147
|
+
return (index.h(styledHost.StyledHost, { key: '085e3582c88e06c650d0ad52407982f9d0f713d5' }, index.h("div", { key: '15ff263db1588472d8338599b39336c6be74e629', class: "row gy-3 jfi-checkout-core" }, index.h("div", { key: '19115dc64b5d232fa47c4976da5b1b450204d5c7', class: "col-12" }, index.h("h2", { key: 'f995a6510cec38c9742f095952e9d9ad54c4a95a', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), index.h("div", { key: 'd14ce872c6fa7be272f279c02a571fa005828678', class: "col-12" }, index.h("slot", { key: '5dd8c141deeecdb1689f34728c491ac985b047b0', name: "insurance" })), index.h("div", { key: '33d821b9cb8fb975911b3c5dccd72bf6d6a9333a', class: "col-12 mt-4" }, index.h("h2", { key: '2c1be6ad9636a3cc9bbd2fd0b61b2e15444a66ab', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), index.h("h3", { key: 'ebdced7b60f3b5a390067f5eb685533360988f01', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), index.h("div", { key: 'eb110ff64cf495542e732e8065b23167394bc5e2', class: "d-flex flex-column" }, this.paymentType)), index.h("div", { key: 'a2960051d744f1069a52b91090adaa90ed7053f3', class: "col-12" }, index.h("div", { key: '03f01d243ebfa1268ca6c24b076b133e14709bd6', class: "d-flex justify-content-end" }, index.h(button.Button, { key: '01dd57ac8cb2c6e496d70421e21fd70533e6b5f6', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
149
148
|
}
|
|
150
149
|
};
|
|
151
150
|
CheckoutCore.style = JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1;
|
|
@@ -9,9 +9,8 @@ const Api = require('./Api-3bc6e43f.js');
|
|
|
9
9
|
require('./Pagination-0da8f095.js');
|
|
10
10
|
require('./Payment-1a8a8ca6.js');
|
|
11
11
|
require('./Payout-a2dd7b01.js');
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
require('./package-39dc73ed.js');
|
|
12
|
+
const Analytics = require('./Analytics-66574423.js');
|
|
13
|
+
require('./package-0b65a049.js');
|
|
15
14
|
|
|
16
15
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
17
16
|
var _a;
|
|
@@ -70,7 +69,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
|
|
|
70
69
|
class CheckoutService {
|
|
71
70
|
async fetchCheckout(authToken, checkoutId) {
|
|
72
71
|
const endpoint = `checkouts/${checkoutId}`;
|
|
73
|
-
return Api.Api({ authToken, apiOrigin:
|
|
72
|
+
return Api.Api({ authToken, apiOrigin: "" }).get(endpoint);
|
|
74
73
|
}
|
|
75
74
|
async complete(authToken, checkoutId, payment) {
|
|
76
75
|
const endpoint = `checkouts/${checkoutId}/complete`;
|
|
@@ -80,7 +79,7 @@ class CheckoutService {
|
|
|
80
79
|
if (payment.payment_token) {
|
|
81
80
|
payload.payment_token = payment.payment_token;
|
|
82
81
|
}
|
|
83
|
-
return Api.Api({ authToken, apiOrigin:
|
|
82
|
+
return Api.Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
|
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const config = require('./config-037e67d0.js');
|
|
7
6
|
const Api = require('./Api-3bc6e43f.js');
|
|
8
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
9
8
|
const utils = require('./utils-7a478c37.js');
|
|
10
9
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
11
|
-
const Analytics = require('./Analytics-
|
|
12
|
-
require('./package-
|
|
10
|
+
const Analytics = require('./Analytics-66574423.js');
|
|
11
|
+
require('./package-0b65a049.js');
|
|
13
12
|
|
|
14
13
|
class ReportsService {
|
|
15
14
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
16
|
-
const api = Api.Api({ authToken: authToken, apiOrigin:
|
|
15
|
+
const api = Api.Api({ authToken: authToken, apiOrigin: "" });
|
|
17
16
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
18
17
|
return api.get(endpoint);
|
|
19
18
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const config = require('./config-037e67d0.js');
|
|
7
6
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
8
7
|
const utils = require('./utils-89d86e29.js');
|
|
9
8
|
|
|
@@ -18,7 +17,7 @@ const NewPaymentMethod = class {
|
|
|
18
17
|
this.onPaymentMethodOptionClick = () => {
|
|
19
18
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
20
19
|
};
|
|
21
|
-
this.iframeOrigin =
|
|
20
|
+
this.iframeOrigin = "";
|
|
22
21
|
this.authToken = undefined;
|
|
23
22
|
this.accountId = undefined;
|
|
24
23
|
this.paymentMethodOption = undefined;
|
|
@@ -78,7 +77,7 @@ const NewPaymentMethod = class {
|
|
|
78
77
|
}
|
|
79
78
|
render() {
|
|
80
79
|
var _a, _b, _c, _d;
|
|
81
|
-
return (index.h("div", { key: '
|
|
80
|
+
return (index.h("div", { key: '55a43467070e4981a6fda7b529f329122f33dda8', class: "payment-method" }, index.h("div", { key: 'b86a20d2e51883dab9f2c46e6787417d498af17e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '900b836be24e83816d1e6c915855b11ba3b605ee', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), index.h("label", { key: 'b1976293de17845cba7671606c50698b90878bcb', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
82
81
|
}
|
|
83
82
|
};
|
|
84
83
|
|
|
@@ -121,7 +120,7 @@ const PaymentMethodOptions = class {
|
|
|
121
120
|
this.insuranceToggled = undefined;
|
|
122
121
|
this.authToken = undefined;
|
|
123
122
|
this.accountId = undefined;
|
|
124
|
-
this.iframeOrigin =
|
|
123
|
+
this.iframeOrigin = "";
|
|
125
124
|
this.savedPaymentMethods = [];
|
|
126
125
|
this.paymentAmount = undefined;
|
|
127
126
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -167,7 +166,7 @@ const PaymentMethodOptions = class {
|
|
|
167
166
|
}
|
|
168
167
|
render() {
|
|
169
168
|
var _a;
|
|
170
|
-
return (index.h(index.Host, { key: '
|
|
169
|
+
return (index.h(index.Host, { key: '7ee40a1bdc9ec15596e870b48cbe7b6bbc20537c' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
171
170
|
const newCard = paymentMethodOption.id === Payment.PaymentMethodTypes.card;
|
|
172
171
|
const newBankAccount = paymentMethodOption.id === Payment.PaymentMethodTypes.bankAccount;
|
|
173
172
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -208,7 +207,7 @@ const SavedPaymentMethod = class {
|
|
|
208
207
|
this.onPaymentMethodOptionClick = () => {
|
|
209
208
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
210
209
|
};
|
|
211
|
-
this.iframeOrigin =
|
|
210
|
+
this.iframeOrigin = "";
|
|
212
211
|
this.paymentMethodOption = undefined;
|
|
213
212
|
this.isSelected = undefined;
|
|
214
213
|
}
|
|
@@ -222,7 +221,7 @@ const SavedPaymentMethod = class {
|
|
|
222
221
|
;
|
|
223
222
|
render() {
|
|
224
223
|
var _a, _b, _c, _d, _e;
|
|
225
|
-
return (index.h(index.Fragment, { key: '
|
|
224
|
+
return (index.h(index.Fragment, { key: '247dafc3fe4011c5f6a2202690310eedfa5422c8' }, index.h("div", { key: '9cfb0b6ca9c10e5cc6173832bb8211ddb1d0ae5b', class: "payment-method" }, index.h("div", { key: 'd247cc4cf9f7bf43d7153134c66a921b5bfc49bc', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '180c3aa6c4153bccf7cb620b6df49cc288754cd2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), index.h("label", { key: '6ec14d77e8171a1ddb37c686189878a7ebb4b4f4', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
|
|
226
225
|
_e.acct_last_four)))));
|
|
227
226
|
}
|
|
228
227
|
};
|
|
@@ -267,7 +266,7 @@ const SezzlePaymentMethod = class {
|
|
|
267
266
|
this.sezzleCheckout = checkout;
|
|
268
267
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
269
268
|
};
|
|
270
|
-
this.iframeOrigin =
|
|
269
|
+
this.iframeOrigin = "";
|
|
271
270
|
this.bnpl = undefined;
|
|
272
271
|
this.clientId = undefined;
|
|
273
272
|
this.accountId = undefined;
|
|
@@ -293,7 +292,7 @@ const SezzlePaymentMethod = class {
|
|
|
293
292
|
}
|
|
294
293
|
render() {
|
|
295
294
|
var _a, _b, _c, _d, _e;
|
|
296
|
-
return (index.h("div", { key: '
|
|
295
|
+
return (index.h("div", { key: '1b4e4a142e1e59465e0db5515ee6b0a0b2aac146', class: "payment-method" }, index.h("script", { key: 'c835bc94836949e2362974eaeefca1f6a579a1a0', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), index.h("div", { key: '051a0392e6353116423f706be48eb266daf12b84', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '6dd0d61f1b8788b45b008f5ac05f8a8b6a6591f2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), index.h("label", { key: 'caf3429bae616a016f58e141ac5c4493174cf3ef', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, index.h("div", { key: '0e4ea85fc6fc32a1c35fe0dac86f21ab7f86eb0a' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (index.h("small", { key: '3740565f14b87aa2e4af44b7e2b12d93d6e454c2' }, index.h("span", { key: 'ca9b6dff0042c41d378b101067d060092234fa7c' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", index.h("span", { key: '14ab21fd2d9bd612f41d5cd3e175402593012619' }, this.installmentPlan.schedule, " payments of"), "\u00A0", index.h("span", { key: '25e08c1e711af0979e14bbb911aedb58f59bc180', class: "fw-bold" }, utils.formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
297
296
|
}
|
|
298
297
|
};
|
|
299
298
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
7
|
-
const business_service = require('./business.service-
|
|
7
|
+
const business_service = require('./business.service-090a21e1.js');
|
|
8
8
|
const index_esm = require('./index.esm-52757963.js');
|
|
9
9
|
const Business = require('./Business-aacbe893.js');
|
|
10
10
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
@@ -14,7 +14,6 @@ const formInputMasks = require('./form-input-masks-0879c139.js');
|
|
|
14
14
|
const inputHandlers = require('./input-handlers-cff032bb.js');
|
|
15
15
|
require('./ComponentError-233ac749.js');
|
|
16
16
|
require('./utils-7a478c37.js');
|
|
17
|
-
require('./config-037e67d0.js');
|
|
18
17
|
require('./Api-3bc6e43f.js');
|
|
19
18
|
require('./helpers-602962eb.js');
|
|
20
19
|
require('./state-options-4fbcb48a.js');
|
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const payment_service = require('./payment.service-
|
|
6
|
+
const payment_service = require('./payment.service-c92635c8.js');
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
8
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
9
9
|
require('./Payout-a2dd7b01.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
12
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
13
|
+
const Analytics = require('./Analytics-66574423.js');
|
|
14
14
|
require('./Api-3bc6e43f.js');
|
|
15
|
-
require('./
|
|
16
|
-
require('./package-39dc73ed.js');
|
|
15
|
+
require('./package-0b65a049.js');
|
|
17
16
|
|
|
18
17
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
19
18
|
var _a;
|
|
@@ -7,13 +7,12 @@ require('./Pagination-0da8f095.js');
|
|
|
7
7
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
8
8
|
require('./Payout-a2dd7b01.js');
|
|
9
9
|
const utils = require('./utils-89d86e29.js');
|
|
10
|
-
const config = require('./config-037e67d0.js');
|
|
11
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
11
|
const utils$1 = require('./utils-7a478c37.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
12
|
+
const Analytics = require('./Analytics-66574423.js');
|
|
14
13
|
const button = require('./button-3f400a66.js');
|
|
15
14
|
const styledHost = require('./styled-host-cc053016.js');
|
|
16
|
-
require('./package-
|
|
15
|
+
require('./package-0b65a049.js');
|
|
17
16
|
require('./Api-3bc6e43f.js');
|
|
18
17
|
|
|
19
18
|
const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
|
|
@@ -122,15 +121,15 @@ const PaymentForm = class {
|
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
render() {
|
|
125
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
124
|
+
return (index.h(styledHost.StyledHost, { key: '8cb6e3903a0045fbffed5f17dc29aacc6b57ad7f' }, index.h("form", { key: '4e8f00c3d29c0db0bc99fd79da46abe7c40e3e30', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (index.h("div", { key: '344a1356f6f482493a35015c32f8e9a9b4cc8a80', class: "col-12" }, index.h("justifi-payment-method-selector", { key: '36b9dd7a9bc8336b4bef0d12f56c811effbc0a0b', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { key: '225a260f817f9dd02a7f0a5b25562179ab80f7de', class: "col-12" }, index.h("justifi-payment-method-form", { key: '52e2bf20b265cc96ab556571a323370cc27ac278', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: "", ref: el => {
|
|
126
125
|
if (el) {
|
|
127
126
|
this.paymentMethodFormRef = el;
|
|
128
127
|
}
|
|
129
|
-
} })), index.h("div", { key: '
|
|
128
|
+
} })), index.h("div", { key: '433a8ac42c0eec9180e37da222da1dbb1112e48e', class: "col-12" }, index.h("justifi-billing-form", { key: '4f24f1c8b4083e2d9e5bb2272d32d20bb5cc225d', legend: "Billing Info", ref: el => {
|
|
130
129
|
if (el) {
|
|
131
130
|
this.billingFormRef = el;
|
|
132
131
|
}
|
|
133
|
-
} })), index.h("slot", { key: '
|
|
132
|
+
} })), index.h("slot", { key: '9397ae7fdd2677cd61a425fcf5818ae14fabbed0', name: 'insurance' }), index.h("div", { key: 'db9131f6f35165e69d3b59da7fa25b95f1e46168', class: "col-12" }, index.h(button.Button, { key: 'c280836cf6445a7132ff9202a09b6fdac8e29f77', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
|
|
134
133
|
}
|
|
135
134
|
};
|
|
136
135
|
PaymentForm.style = JustifiPaymentFormStyle0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const _package = require('./package-
|
|
6
|
+
const _package = require('./package-0b65a049.js');
|
|
7
7
|
const utils = require('./utils-89d86e29.js');
|
|
8
8
|
|
|
9
9
|
var iframeResizer = {exports: {}};
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const Analytics = require('./Analytics-
|
|
6
|
+
const Analytics = require('./Analytics-66574423.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
9
|
-
const business_service = require('./business.service-
|
|
10
|
-
const config = require('./config-037e67d0.js');
|
|
9
|
+
const business_service = require('./business.service-090a21e1.js');
|
|
11
10
|
const Api = require('./Api-3bc6e43f.js');
|
|
12
|
-
require('./package-
|
|
11
|
+
require('./package-0b65a049.js');
|
|
13
12
|
require('./utils-7a478c37.js');
|
|
14
13
|
|
|
15
14
|
class ProvisionService {
|
|
@@ -17,9 +16,9 @@ class ProvisionService {
|
|
|
17
16
|
const endpoint = `entities/provisioning`;
|
|
18
17
|
const payload = {
|
|
19
18
|
business_id: businessId,
|
|
20
|
-
product_category: product
|
|
19
|
+
product_category: product,
|
|
21
20
|
};
|
|
22
|
-
return Api.Api({ authToken, apiOrigin:
|
|
21
|
+
return Api.Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
|