@justifi/webcomponents 4.19.1-rc-8 → 4.19.1-rc-10
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-e0556436.js → Analytics-3b027794.js} +4 -2
- package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-11ce0005.js} +1 -1
- package/dist/cjs/{business-form-options-582467fe.js → business-form-options-26f9900c.js} +1 -1
- package/dist/cjs/{business.service-6bb7ac82.js → business.service-66c06c19.js} +6 -5
- package/dist/cjs/config-05767cba.js +15 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +4 -4
- package/dist/cjs/{get-payout-csv-1391ff3e.js → get-payout-csv-10cc9246.js} +4 -3
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -3
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -8
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -4
- package/dist/cjs/{package-708bf5ef.js → package-22afd806.js} +2 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → payload-parsers-969ab9b6.js} +1 -1
- package/dist/cjs/{payment.service-dfcfa19b.js → payment.service-598a2dec.js} +3 -2
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-f3db892c.js} +1 -1
- package/dist/collection/api/services/analytics.service.js +3 -1
- package/dist/collection/api/services/business.service.js +6 -5
- package/dist/collection/api/services/checkout.service.js +3 -2
- package/dist/collection/api/services/insurance.service.js +3 -2
- package/dist/collection/api/services/payment.service.js +3 -2
- package/dist/collection/api/services/payout.service.js +4 -3
- package/dist/collection/api/services/provision.service.js +2 -1
- package/dist/collection/api/services/reports.service.js +5 -1
- package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
- package/dist/collection/components/business-forms/business-form/business-form.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -2
- package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
- package/dist/collection/components/card-form/card-form.js +4 -3
- package/dist/collection/components/checkout/checkout-core.js +4 -3
- package/dist/collection/components/checkout/new-payment-method.js +4 -3
- package/dist/collection/components/checkout/payment-method-options.js +4 -3
- package/dist/collection/components/checkout/saved-payment-method.js +4 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
- package/dist/collection/components/payment-form/payment-form.js +4 -3
- package/dist/collection/components/refund-form/refund-form.js +3 -2
- package/dist/config.js +11 -0
- package/dist/docs.json +8 -8
- package/dist/esm/{Analytics-6591d732.js → Analytics-529b3c8e.js} +4 -2
- package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-e39bc781.js} +1 -1
- package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-0b08e08c.js} +1 -1
- package/dist/esm/{business.service-f45decfc.js → business.service-595d3ac4.js} +6 -5
- package/dist/esm/config-27764a9d.js +13 -0
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox_9.entry.js +4 -4
- package/dist/esm/{get-payout-csv-e784a2ab.js → get-payout-csv-acc4fe08.js} +4 -3
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
- package/dist/esm/justifi-bank-account-form.entry.js +5 -4
- package/dist/esm/justifi-billing-form_2.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +4 -3
- package/dist/esm/justifi-business-form.entry.js +9 -8
- package/dist/esm/justifi-card-form.entry.js +5 -4
- package/dist/esm/justifi-checkout-core.entry.js +3 -2
- package/dist/esm/justifi-checkout.entry.js +5 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +9 -8
- package/dist/esm/justifi-owner-form_3.entry.js +5 -4
- package/dist/esm/justifi-payment-details.entry.js +4 -3
- package/dist/esm/justifi-payment-form.entry.js +6 -5
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -4
- package/dist/esm/justifi-payments-list.entry.js +4 -3
- package/dist/esm/justifi-payout-details.entry.js +4 -3
- package/dist/esm/justifi-payouts-list.entry.js +4 -3
- package/dist/esm/justifi-refund-form.entry.js +3 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -4
- package/dist/{webcomponents/p-b3520d11.js → esm/package-345be07e.js} +2 -2
- package/dist/esm/{payload-parsers-acb719d1.js → payload-parsers-62f443e1.js} +1 -1
- package/dist/esm/{payment.service-dad5153b.js → payment.service-6361d07d.js} +3 -2
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
- package/dist/module/Analytics.js +3 -1
- package/dist/module/business-bank-account-form-step.js +3 -2
- package/dist/module/business-document-upload-form-step.js +3 -2
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -2
- package/dist/module/business.service.js +6 -5
- package/dist/module/checkout-core.js +3 -2
- package/dist/module/config.js +13 -0
- package/dist/module/get-payout-csv.js +4 -3
- package/dist/module/justifi-bank-account-form.js +3 -2
- package/dist/module/justifi-business-form.js +3 -2
- package/dist/module/justifi-card-form.js +3 -2
- package/dist/module/justifi-checkout.js +3 -2
- package/dist/module/justifi-gross-payment-chart.js +5 -1
- package/dist/module/justifi-payment-form.js +4 -3
- package/dist/module/justifi-payment-provisioning.js +2 -1
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/new-payment-method.js +3 -2
- package/dist/module/package.js +2 -2
- package/dist/module/payment-method-options.js +3 -2
- package/dist/module/payment.service.js +3 -2
- package/dist/module/saved-payment-method.js +3 -2
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
- package/dist/webcomponents/{p-18f47a5e.entry.js → p-01a81c92.entry.js} +5 -4
- package/dist/webcomponents/{p-3fd13ca3.js → p-04a0dbb6.js} +1 -1
- package/dist/webcomponents/{p-a5c5821e.entry.js → p-08fb1bee.entry.js} +3 -2
- package/dist/webcomponents/{p-1a7340ef.entry.js → p-13220ac5.entry.js} +4 -3
- package/dist/webcomponents/{p-890088fc.entry.js → p-1c5a5255.entry.js} +9 -8
- package/dist/webcomponents/{p-3aef4459.js → p-1efcb4e1.js} +4 -2
- package/dist/webcomponents/{p-89887332.js → p-241b0ed9.js} +1 -1
- package/dist/webcomponents/{p-fdbef002.entry.js → p-2c639121.entry.js} +5 -4
- package/dist/webcomponents/{p-6999bd05.entry.js → p-2d583519.entry.js} +6 -5
- package/dist/webcomponents/{p-85fc69e5.js → p-46f679a9.js} +1 -1
- package/dist/webcomponents/{p-a5a225d9.entry.js → p-4750c590.entry.js} +1 -1
- package/dist/webcomponents/{p-5cb3f0b2.entry.js → p-52786c5d.entry.js} +5 -4
- package/dist/webcomponents/p-5a62fca2.js +13 -0
- package/dist/webcomponents/{p-865f883a.entry.js → p-6145fa2c.entry.js} +4 -3
- package/dist/webcomponents/{p-3e9ef4a8.js → p-66db48be.js} +6 -5
- package/dist/webcomponents/{p-a6d04afc.js → p-6e7d09e4.js} +4 -3
- package/dist/webcomponents/{p-5f835b89.entry.js → p-7930b031.entry.js} +4 -4
- package/dist/webcomponents/{p-cb26f708.js → p-7b39f49e.js} +3 -2
- package/dist/webcomponents/{p-c636f563.entry.js → p-91d278c9.entry.js} +10 -9
- package/dist/webcomponents/{p-035f33d8.entry.js → p-9a57c210.entry.js} +5 -4
- package/dist/webcomponents/{p-f39b87b4.entry.js → p-abe50330.entry.js} +4 -3
- package/dist/webcomponents/{p-012288ad.entry.js → p-b582eb3c.entry.js} +4 -3
- package/dist/webcomponents/{p-7a9102e1.entry.js → p-c4a17a0f.entry.js} +5 -4
- package/dist/webcomponents/{p-93056176.entry.js → p-c4a291fc.entry.js} +5 -4
- package/dist/webcomponents/{p-7256fd96.entry.js → p-c63eb94f.entry.js} +1 -1
- package/dist/webcomponents/{p-3eca9d31.entry.js → p-c7eec8cd.entry.js} +7 -3
- package/dist/webcomponents/{p-258b1ee2.entry.js → p-d14ca2eb.entry.js} +3 -2
- package/dist/webcomponents/{p-ba5fae28.js → p-d25c2f12.js} +1 -1
- package/dist/webcomponents/{p-2e28e46b.entry.js → p-e7c48797.entry.js} +4 -3
- package/dist/{esm/package-701844d2.js → webcomponents/p-e9023210.js} +2 -2
- package/dist/webcomponents/{p-70a2aa74.entry.js → p-ef725123.entry.js} +2 -2
- package/dist/webcomponents/{p-54b3332b.entry.js → p-ffccad98.entry.js} +9 -8
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/{globals.d.ts → types/global.d.ts} +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
3
|
-
import './
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
3
|
+
import { c as config } from './config-27764a9d.js';
|
|
4
|
+
import './package-345be07e.js';
|
|
4
5
|
import './Api-b09a2f6a.js';
|
|
5
6
|
|
|
6
7
|
const BankAccountForm = class {
|
|
@@ -11,7 +12,7 @@ const BankAccountForm = class {
|
|
|
11
12
|
this.bankAccountFormTokenized = createEvent(this, "bankAccountFormTokenize", 7);
|
|
12
13
|
this.bankAccountFormValidated = createEvent(this, "bankAccountFormValidate", 7);
|
|
13
14
|
this.validationMode = undefined;
|
|
14
|
-
this.iframeOrigin =
|
|
15
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
15
16
|
this.internalStyleOverrides = undefined;
|
|
16
17
|
}
|
|
17
18
|
readyHandler(event) {
|
|
@@ -63,7 +64,7 @@ const BankAccountForm = class {
|
|
|
63
64
|
return this.childRef.resize();
|
|
64
65
|
}
|
|
65
66
|
render() {
|
|
66
|
-
return (h("justifi-payment-method-form", { key: '
|
|
67
|
+
return (h("justifi-payment-method-form", { key: 'e2fa64d199a6c550329c9797a6951335e7c12bc6', ref: el => {
|
|
67
68
|
if (el) {
|
|
68
69
|
this.childRef = el;
|
|
69
70
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h, c as createEvent } from './index-57431c24.js';
|
|
2
2
|
import { c as create$3, F as FormController } from './index.esm-fc4f5c0c.js';
|
|
3
|
-
import { i as identityNameValidation, l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation } from './schema-validations-
|
|
3
|
+
import { i as identityNameValidation, l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation } from './schema-validations-2f4fdebb.js';
|
|
4
4
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
5
5
|
import { n as numberOnlyHandler } from './utils-3bb6347a.js';
|
|
6
6
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
7
|
-
import './business-form-options-
|
|
7
|
+
import './business-form-options-0b08e08c.js';
|
|
8
8
|
import './Business-e218b4f4.js';
|
|
9
9
|
import './helpers-96ea3464.js';
|
|
10
10
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
2
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
3
|
-
import { B as BusinessService } from './business.service-
|
|
3
|
+
import { B as BusinessService } from './business.service-595d3ac4.js';
|
|
4
4
|
import { B as Business } from './Business-e218b4f4.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
6
6
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
7
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
7
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
8
8
|
import './Api-b09a2f6a.js';
|
|
9
|
+
import './config-27764a9d.js';
|
|
9
10
|
import './helpers-96ea3464.js';
|
|
10
11
|
import './state-options-a356fb11.js';
|
|
11
|
-
import './package-
|
|
12
|
+
import './package-345be07e.js';
|
|
12
13
|
|
|
13
14
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
14
15
|
var _a;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import { c as create$3, F as FormController } from './index.esm-fc4f5c0c.js';
|
|
3
|
-
import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './business-additional-questions-schema-
|
|
4
|
-
import { a as addressSchema, i as identitySchema, p as parseBusiness } from './payload-parsers-
|
|
3
|
+
import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './business-additional-questions-schema-e39bc781.js';
|
|
4
|
+
import { a as addressSchema, i as identitySchema, p as parseBusiness } from './payload-parsers-62f443e1.js';
|
|
5
5
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
6
6
|
import './Pagination-afc8f96d.js';
|
|
7
7
|
import './Payment-6bf26fe2.js';
|
|
8
8
|
import './Payout-dfe15b00.js';
|
|
9
9
|
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
10
10
|
import { B as Business } from './Business-e218b4f4.js';
|
|
11
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
11
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
13
|
-
import './
|
|
13
|
+
import { c as config } from './config-27764a9d.js';
|
|
14
|
+
import './schema-validations-2f4fdebb.js';
|
|
14
15
|
import './state-options-a356fb11.js';
|
|
15
|
-
import './business-form-options-
|
|
16
|
+
import './business-form-options-0b08e08c.js';
|
|
16
17
|
import './helpers-96ea3464.js';
|
|
17
|
-
import './package-
|
|
18
|
+
import './package-345be07e.js';
|
|
18
19
|
|
|
19
20
|
const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
|
|
20
21
|
|
|
@@ -81,7 +82,7 @@ const BusinessForm = class {
|
|
|
81
82
|
if (!this.businessId)
|
|
82
83
|
console.error(missingBusinessIdMessage);
|
|
83
84
|
this.formController = new FormController(businessFormSchema);
|
|
84
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
85
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
85
86
|
this.fetchData();
|
|
86
87
|
}
|
|
87
88
|
disconnectedCallback() {
|
|
@@ -109,7 +110,7 @@ const BusinessForm = class {
|
|
|
109
110
|
this.instantiateBusiness(response.data);
|
|
110
111
|
}
|
|
111
112
|
render() {
|
|
112
|
-
return (h(StyledHost, { key: '
|
|
113
|
+
return (h(StyledHost, { key: '60989d23631d6a02e9a25313dd7297a61063a09c', exportparts: "label,input,input-invalid" }, h("form", { key: 'd961174a3e93ed505012919a0e7e036bd61a4902', onSubmit: this.validateAndSubmit }, h("div", { key: '2be81a7f0e3b568266ee66127f2b537d57c36762', class: "row gap-3" }, h("h1", { key: 'eefc257f687ff24cebf13155a571398e3ddbcabd' }, this.title), h("form-alert", { key: '173d3ee84f5a952a51884ab5f3818c768fcc9b08', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'bfd7fd73aca630fcf56f468d912759d5a96de172', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'dc15f46a28301c03ccd884ff09740e87d67b2e5a', formController: this.formController })), h("div", { key: 'b4cd6ba605ea28a7692cc561951bb69ad93bb8f5', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '670f320ff6d1ba86a34f5b42dd97a5d38e96c209', formController: this.formController })), h("div", { key: '0afb9d18e6ecb951cefda4df5dd133d31359cecc', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: '6953718bea9525126db35adc44a9c8754234816a', formController: this.formController })), h("div", { key: 'f88b576b9159cd43f17d5a63c26acc4b53dfa9a0', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '4353116715c7f7b906c3c0eae322df04703fd8e5', formController: this.formController })), h("div", { key: 'd626b0738ce71f7529fa270d7a2c479f517e48a2', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '9469e132726c9bd02b8a1f4c4ca1a4c2a9000c1b', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
113
114
|
}
|
|
114
115
|
};
|
|
115
116
|
BusinessForm.style = JustifiBusinessFormStyle0;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
3
|
-
import './
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
3
|
+
import { c as config } from './config-27764a9d.js';
|
|
4
|
+
import './package-345be07e.js';
|
|
4
5
|
import './Api-b09a2f6a.js';
|
|
5
6
|
|
|
6
7
|
const CardForm = class {
|
|
@@ -11,7 +12,7 @@ const CardForm = class {
|
|
|
11
12
|
this.cardFormTokenized = createEvent(this, "cardFormTokenize", 7);
|
|
12
13
|
this.cardFormValidated = createEvent(this, "cardFormValidate", 7);
|
|
13
14
|
this.validationMode = undefined;
|
|
14
|
-
this.iframeOrigin =
|
|
15
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
15
16
|
this.singleLine = false;
|
|
16
17
|
this.internalStyleOverrides = undefined;
|
|
17
18
|
}
|
|
@@ -64,7 +65,7 @@ const CardForm = class {
|
|
|
64
65
|
return this.childRef.resize();
|
|
65
66
|
}
|
|
66
67
|
render() {
|
|
67
|
-
return (h("justifi-payment-method-form", { key: '
|
|
68
|
+
return (h("justifi-payment-method-form", { key: '58843b8a47f35d716845de11f6a66d8960bc0776', ref: el => {
|
|
68
69
|
if (el) {
|
|
69
70
|
this.childRef = el;
|
|
70
71
|
}
|
|
@@ -5,6 +5,7 @@ import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceVal
|
|
|
5
5
|
import { B as Button } from './button-34e75e0f.js';
|
|
6
6
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
7
7
|
import { S as Skeleton } from './skeleton-145a80d4.js';
|
|
8
|
+
import { c as config } from './config-27764a9d.js';
|
|
8
9
|
|
|
9
10
|
class Checkout {
|
|
10
11
|
constructor(data) {
|
|
@@ -44,7 +45,7 @@ const CheckoutCore = class {
|
|
|
44
45
|
});
|
|
45
46
|
this.renderState = 'error';
|
|
46
47
|
};
|
|
47
|
-
this.iframeOrigin =
|
|
48
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
48
49
|
this.authToken = undefined;
|
|
49
50
|
this.getCheckout = undefined;
|
|
50
51
|
this.complete = undefined;
|
|
@@ -141,7 +142,7 @@ const CheckoutCore = class {
|
|
|
141
142
|
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
142
143
|
}
|
|
143
144
|
render() {
|
|
144
|
-
return (h(StyledHost, { key: '
|
|
145
|
+
return (h(StyledHost, { key: '4d60ceb4a3fec7c32320d29030f81d44f8211c9a' }, h("div", { key: 'e2a8c43be33b807a63b557523de49b8888cca112', class: "row gy-3 jfi-checkout-core" }, h("div", { key: 'd166b4bd5e695459152339a601b541d5c4e81f9c', class: "col-12" }, h("h2", { key: '1bd31268727b2b3b3f05c64fa62c307447f23dcb', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: '681c36720bc78f2d58adb6ea562a69e4a3ac417a', class: "col-12" }, h("slot", { key: '639515cd2bb02103bced73e61e385bef5f5df900', name: "insurance" })), h("div", { key: 'c1ae7fa1b0b0f57737986269f7669bd3fbba5c13', class: "col-12 mt-4" }, h("h2", { key: '3f96c6309d45e6f821fa98cfbea7b78dbb90f08f', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: '521ac8ac5c9e374477d94656d0150d07c3d5eb6d', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: 'cf40e557b32e14f56bacb3f022a24cd702954f6e', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: 'caf4dbdf4c92f54ae04fa5ac5033e020a3a16812', class: "col-12" }, h("div", { key: '561b909627601f5f044854d69bc73d39d1f48de6', class: "d-flex justify-content-end" }, h(Button, { key: '9620f99dda50ea8592b104ca2944f82e41a95d01', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
145
146
|
}
|
|
146
147
|
};
|
|
147
148
|
CheckoutCore.style = JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1;
|
|
@@ -5,8 +5,9 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
5
5
|
import './Pagination-afc8f96d.js';
|
|
6
6
|
import './Payment-6bf26fe2.js';
|
|
7
7
|
import './Payout-dfe15b00.js';
|
|
8
|
-
import {
|
|
9
|
-
import './
|
|
8
|
+
import { c as config } from './config-27764a9d.js';
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
10
|
+
import './package-345be07e.js';
|
|
10
11
|
|
|
11
12
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
12
13
|
var _a;
|
|
@@ -65,7 +66,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
|
|
|
65
66
|
class CheckoutService {
|
|
66
67
|
async fetchCheckout(authToken, checkoutId) {
|
|
67
68
|
const endpoint = `checkouts/${checkoutId}`;
|
|
68
|
-
return Api({ authToken, apiOrigin:
|
|
69
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
69
70
|
}
|
|
70
71
|
async complete(authToken, checkoutId, payment) {
|
|
71
72
|
const endpoint = `checkouts/${checkoutId}/complete`;
|
|
@@ -75,7 +76,7 @@ class CheckoutService {
|
|
|
75
76
|
if (payment.payment_token) {
|
|
76
77
|
payload.payment_token = payment.payment_token;
|
|
77
78
|
}
|
|
78
|
-
return Api({ authToken, apiOrigin:
|
|
79
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
+
import { c as config } from './config-27764a9d.js';
|
|
2
3
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
3
4
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
4
5
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
5
6
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
6
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
7
|
-
import './package-
|
|
7
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
8
|
+
import './package-345be07e.js';
|
|
8
9
|
|
|
9
10
|
class ReportsService {
|
|
10
11
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
11
|
-
const api = Api({
|
|
12
|
+
const api = Api({
|
|
13
|
+
authToken: authToken,
|
|
14
|
+
apiOrigin: config.proxyApiOrigin,
|
|
15
|
+
});
|
|
12
16
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
13
17
|
return api.get(endpoint);
|
|
14
18
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-57431c24.js';
|
|
2
|
+
import { c as config } from './config-27764a9d.js';
|
|
2
3
|
import { a as PaymentMethodTypes } from './Payment-6bf26fe2.js';
|
|
3
4
|
import { g as snakeToCamel, f as formatCurrency } from './utils-3c1dd2fa.js';
|
|
4
5
|
|
|
@@ -13,7 +14,7 @@ const NewPaymentMethod = class {
|
|
|
13
14
|
this.onPaymentMethodOptionClick = () => {
|
|
14
15
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
15
16
|
};
|
|
16
|
-
this.iframeOrigin =
|
|
17
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
17
18
|
this.authToken = undefined;
|
|
18
19
|
this.accountId = undefined;
|
|
19
20
|
this.paymentMethodOption = undefined;
|
|
@@ -76,7 +77,7 @@ const NewPaymentMethod = class {
|
|
|
76
77
|
}
|
|
77
78
|
render() {
|
|
78
79
|
var _a, _b, _c, _d;
|
|
79
|
-
return (h("div", { key: '
|
|
80
|
+
return (h("div", { key: '8da79c0064fe7205cc64cb16e4cb16310eb92768', class: "payment-method" }, h("div", { key: 'b56acfbbcd009a99c453f86bb2bafb581fa30c4e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '8d0d317124fcf4c98b709cc02d3f74deae5e7447', 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" }), h("label", { key: 'd2cc7f9cc6b695dad77e8980fca4e82fdc42cb9c', 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));
|
|
80
81
|
}
|
|
81
82
|
};
|
|
82
83
|
|
|
@@ -119,7 +120,7 @@ const PaymentMethodOptions = class {
|
|
|
119
120
|
this.insuranceToggled = undefined;
|
|
120
121
|
this.authToken = undefined;
|
|
121
122
|
this.accountId = undefined;
|
|
122
|
-
this.iframeOrigin =
|
|
123
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
123
124
|
this.savedPaymentMethods = [];
|
|
124
125
|
this.paymentAmount = undefined;
|
|
125
126
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -165,7 +166,7 @@ const PaymentMethodOptions = class {
|
|
|
165
166
|
}
|
|
166
167
|
render() {
|
|
167
168
|
var _a;
|
|
168
|
-
return (h(Host, { key: '
|
|
169
|
+
return (h(Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
169
170
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
170
171
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
171
172
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -206,7 +207,7 @@ const SavedPaymentMethod = class {
|
|
|
206
207
|
this.onPaymentMethodOptionClick = () => {
|
|
207
208
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
208
209
|
};
|
|
209
|
-
this.iframeOrigin =
|
|
210
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
210
211
|
this.paymentMethodOption = undefined;
|
|
211
212
|
this.isSelected = undefined;
|
|
212
213
|
}
|
|
@@ -220,7 +221,7 @@ const SavedPaymentMethod = class {
|
|
|
220
221
|
;
|
|
221
222
|
render() {
|
|
222
223
|
var _a, _b, _c, _d, _e;
|
|
223
|
-
return (h(Fragment, { key: '
|
|
224
|
+
return (h(Fragment, { key: '9c2174123f1675d60bc48d8109821c0bc2ad7682' }, h("div", { key: '07bffce2603110d44f38ffb2f57a60f07faddb3b', class: "payment-method" }, h("div", { key: 'f489d3a05db45c2b2581bc8f0fc093afed453d91', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '70681612520aa621c39a017b72b25a7dd3211282', 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" }), h("label", { key: 'a58e14ae9d199b0e0eb01b4c0a4a8bd9c8fec41d', 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 :
|
|
224
225
|
_e.acct_last_four)))));
|
|
225
226
|
}
|
|
226
227
|
};
|
|
@@ -265,7 +266,7 @@ const SezzlePaymentMethod = class {
|
|
|
265
266
|
this.sezzleCheckout = checkout;
|
|
266
267
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
267
268
|
};
|
|
268
|
-
this.iframeOrigin =
|
|
269
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
269
270
|
this.bnpl = undefined;
|
|
270
271
|
this.clientId = undefined;
|
|
271
272
|
this.accountId = undefined;
|
|
@@ -291,7 +292,7 @@ const SezzlePaymentMethod = class {
|
|
|
291
292
|
}
|
|
292
293
|
render() {
|
|
293
294
|
var _a, _b, _c, _d, _e;
|
|
294
|
-
return (h("div", { key: '
|
|
295
|
+
return (h("div", { key: 'a71ee3b09669bd27f82f13fc2e924978df3b3883', class: "payment-method" }, h("script", { key: 'def81ad89dfc5d5038ee0de6ea6e3d430f45842c', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: 'b7c0afa6b157a981d61b4825dcf7fa5d031d701e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '5c52a82646f941e7df87b99cd326c32b64ab1373', 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" }), h("label", { key: 'bb520c7addf37652ad0f22cc5a08c3afb0a23cd8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '0e43ff1520bece6a98c61be7fa31acb3fd4711e9' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: '9413c186f4dd6ee5b5296a4e0e60d469f5bec5c0' }, h("span", { key: 'dbc4ff1d6c5c7d0a189ea4f09773de501b21d5d1' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '72a4d2a7b34fffaee04d466a981a1dab3160c639' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: 'c2e2c5c4eaec1d03120239c00b47ae4bac548be6', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
295
296
|
}
|
|
296
297
|
};
|
|
297
298
|
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import { c as makeGetIdentity, d as makePatchIdentity, e as makePostIdentity } from './payment-provisioning-actions-0635eff7.js';
|
|
3
|
-
import { I as IdentityService } from './business.service-
|
|
3
|
+
import { I as IdentityService } from './business.service-595d3ac4.js';
|
|
4
4
|
import { F as FormController } from './index.esm-fc4f5c0c.js';
|
|
5
5
|
import { O as Owner } from './Business-e218b4f4.js';
|
|
6
6
|
import { a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
7
|
-
import { c as parseIdentityInfo, i as identitySchema } from './payload-parsers-
|
|
7
|
+
import { c as parseIdentityInfo, i as identitySchema } from './payload-parsers-62f443e1.js';
|
|
8
8
|
import { B as Button } from './button-34e75e0f.js';
|
|
9
9
|
import { S as SSN_MASK, P as PHONE_MASKS } from './form-input-masks-0e18300f.js';
|
|
10
10
|
import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-270ac806.js';
|
|
11
11
|
import './ComponentError-3ce7f437.js';
|
|
12
12
|
import './utils-b10dae27.js';
|
|
13
13
|
import './Api-b09a2f6a.js';
|
|
14
|
+
import './config-27764a9d.js';
|
|
14
15
|
import './helpers-96ea3464.js';
|
|
15
16
|
import './state-options-a356fb11.js';
|
|
16
|
-
import './schema-validations-
|
|
17
|
-
import './business-form-options-
|
|
17
|
+
import './schema-validations-2f4fdebb.js';
|
|
18
|
+
import './business-form-options-0b08e08c.js';
|
|
18
19
|
|
|
19
20
|
const BusinessOwnerForm = class {
|
|
20
21
|
constructor(hostRef) {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { P as PaymentService } from './payment.service-
|
|
2
|
+
import { P as PaymentService } from './payment.service-6361d07d.js';
|
|
3
3
|
import './Pagination-afc8f96d.js';
|
|
4
4
|
import { P as Payment } from './Payment-6bf26fe2.js';
|
|
5
5
|
import './Payout-dfe15b00.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
7
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
8
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
10
10
|
import './Api-b09a2f6a.js';
|
|
11
|
-
import './
|
|
11
|
+
import './config-27764a9d.js';
|
|
12
|
+
import './package-345be07e.js';
|
|
12
13
|
|
|
13
14
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
14
15
|
var _a;
|
|
@@ -5,10 +5,11 @@ import './Payout-dfe15b00.js';
|
|
|
5
5
|
import { l as loadFontsOnParent } from './utils-3c1dd2fa.js';
|
|
6
6
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
7
7
|
import { g as getErrorMessage } from './utils-b10dae27.js';
|
|
8
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
8
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
9
9
|
import { B as Button } from './button-34e75e0f.js';
|
|
10
10
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
11
|
-
import './
|
|
11
|
+
import { c as config } from './config-27764a9d.js';
|
|
12
|
+
import './package-345be07e.js';
|
|
12
13
|
import './Api-b09a2f6a.js';
|
|
13
14
|
|
|
14
15
|
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)}";
|
|
@@ -117,15 +118,15 @@ const PaymentForm = class {
|
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
render() {
|
|
120
|
-
return (h(StyledHost, { key: '
|
|
121
|
+
return (h(StyledHost, { key: '38bd6cca38d9068fa9277a8568a98f261a4cc616' }, h("form", { key: 'fec19f5e2f11934e6783124c4c437a2d3947f596', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '18001f78e03336d01de8473a57e3e228e9fce201', class: "col-12" }, h("justifi-payment-method-selector", { key: '260ac1ade3ccfe6baf518eb856bdf4d380025620', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: 'f6ade2336314e05f2bdce75df8577939efe33e3b', class: "col-12" }, h("justifi-payment-method-form", { key: 'ad8e5b121b8425175f7ac7f38ab24dfba1801a28', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
|
|
121
122
|
if (el) {
|
|
122
123
|
this.paymentMethodFormRef = el;
|
|
123
124
|
}
|
|
124
|
-
} })), h("div", { key: '
|
|
125
|
+
} })), h("div", { key: '29f15f1cece3e07a569e514d08bf9996405699c6', class: "col-12" }, h("justifi-billing-form", { key: '9928924cc29bfa5c5e46ada294cb26da0c1d222b', legend: "Billing Info", ref: el => {
|
|
125
126
|
if (el) {
|
|
126
127
|
this.billingFormRef = el;
|
|
127
128
|
}
|
|
128
|
-
} })), h("slot", { key: '
|
|
129
|
+
} })), h("slot", { key: 'c36583ab34bc105b506df27aec02898455855cec', name: 'insurance' }), h("div", { key: 'cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35', class: "col-12" }, h(Button, { key: 'e5fe0f50ee2322ab2a199a6229015c9daa198cc0', 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')))));
|
|
129
130
|
}
|
|
130
131
|
};
|
|
131
132
|
PaymentForm.style = JustifiPaymentFormStyle0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { p as packageJson } from './package-
|
|
2
|
+
import { p as packageJson } from './package-345be07e.js';
|
|
3
3
|
import { m as composeQueryParams } from './utils-3c1dd2fa.js';
|
|
4
4
|
|
|
5
5
|
var iframeResizer = {exports: {}};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
3
3
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
4
4
|
import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-0635eff7.js';
|
|
5
|
-
import { B as BusinessService } from './business.service-
|
|
5
|
+
import { B as BusinessService } from './business.service-595d3ac4.js';
|
|
6
|
+
import { c as config } from './config-27764a9d.js';
|
|
6
7
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
7
|
-
import './package-
|
|
8
|
+
import './package-345be07e.js';
|
|
8
9
|
import './utils-b10dae27.js';
|
|
9
10
|
|
|
10
11
|
class ProvisionService {
|
|
@@ -14,7 +15,7 @@ class ProvisionService {
|
|
|
14
15
|
business_id: businessId,
|
|
15
16
|
product_category: product,
|
|
16
17
|
};
|
|
17
|
-
return Api({ authToken, apiOrigin:
|
|
18
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { P as PaymentService } from './payment.service-
|
|
2
|
+
import { P as PaymentService } from './payment.service-6361d07d.js';
|
|
3
3
|
import './Pagination-afc8f96d.js';
|
|
4
4
|
import { P as Payment } from './Payment-6bf26fe2.js';
|
|
5
5
|
import './Payout-dfe15b00.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
7
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
8
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
10
10
|
import './Api-b09a2f6a.js';
|
|
11
|
-
import './
|
|
11
|
+
import './config-27764a9d.js';
|
|
12
|
+
import './package-345be07e.js';
|
|
12
13
|
|
|
13
14
|
const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
14
15
|
var _a, _b;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-
|
|
2
|
+
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-acc4fe08.js';
|
|
3
3
|
import './Pagination-afc8f96d.js';
|
|
4
4
|
import './Payment-6bf26fe2.js';
|
|
5
5
|
import { P as Payout } from './Payout-dfe15b00.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
7
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
8
8
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
10
10
|
import './Api-b09a2f6a.js';
|
|
11
|
-
import './
|
|
11
|
+
import './config-27764a9d.js';
|
|
12
|
+
import './package-345be07e.js';
|
|
12
13
|
|
|
13
14
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
14
15
|
var _a;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
2
|
import { t as tableExportedParts } from './exported-parts-abd4c027.js';
|
|
3
|
-
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-
|
|
3
|
+
import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-acc4fe08.js';
|
|
4
4
|
import './Pagination-afc8f96d.js';
|
|
5
5
|
import './Payment-6bf26fe2.js';
|
|
6
6
|
import { P as Payout } from './Payout-dfe15b00.js';
|
|
7
7
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
8
8
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
9
9
|
import { E as ErrorState } from './utils-01413a95.js';
|
|
10
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
10
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
11
11
|
import './Api-b09a2f6a.js';
|
|
12
|
-
import './
|
|
12
|
+
import './config-27764a9d.js';
|
|
13
|
+
import './package-345be07e.js';
|
|
13
14
|
|
|
14
15
|
const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
15
16
|
var _a, _b;
|
|
@@ -6,6 +6,7 @@ import './Payment-6bf26fe2.js';
|
|
|
6
6
|
import './Payout-dfe15b00.js';
|
|
7
7
|
import { C as CURRENCY_MASK } from './form-input-masks-0e18300f.js';
|
|
8
8
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
9
|
+
import { c as config } from './config-27764a9d.js';
|
|
9
10
|
|
|
10
11
|
const RefundFormSchema = create$3().shape({
|
|
11
12
|
amount: create$5()
|
|
@@ -89,11 +90,11 @@ const RefundForm = class {
|
|
|
89
90
|
if (!this.authToken) {
|
|
90
91
|
console.warn('Warning: Missing auth-token.');
|
|
91
92
|
}
|
|
92
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
93
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
93
94
|
}
|
|
94
95
|
render() {
|
|
95
96
|
var _a;
|
|
96
|
-
return (h(StyledHost, { key: '
|
|
97
|
+
return (h(StyledHost, { key: 'd0d0962eaecab749aa1eb124e86701a2fb4dfd53' }, h("h1", { key: 'cb3071d89c291b1664e551fcf2808a64569ba5eb' }, "Refund"), this.refundInfoText && (h("div", { key: '01a6f4567f882d2eec492ef6d98db7d04747ecb4', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '8ae5928aaf8ead35a7ad180a01bdde05ebec3d5f', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '425a7dfe9d8b886b55fd0878f3989373733c1758', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '5516d2ac500611d2410b9b4c2a4d0d15e417b2d1', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: 'b67a7c56f070a5a25d91aa0cc77755b27d420fdc', class: "form-group" }, h("form-control-monetary", { key: '76b6cfdf2b39674434f4d880333dd5d5f603f0b6', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '5e581cdea69d2ce9dbad774214cd904923d199b3', class: "form-group" }, h("form-control-text", { key: '926ae888676a4089d3381bd4d650e6f84f6e206a', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: 'de5df506b7b64a69a16241f117bf9bea4fd79b57', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '92ad4d43677587c2c20dc03c6f03a6cf1f20ac12', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
97
98
|
}
|
|
98
99
|
};
|
|
99
100
|
RefundForm.style = JustifiRefundFormStyle0;
|
|
@@ -3,19 +3,20 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
3
3
|
import './Pagination-afc8f96d.js';
|
|
4
4
|
import './Payment-6bf26fe2.js';
|
|
5
5
|
import './Payout-dfe15b00.js';
|
|
6
|
+
import { c as config } from './config-27764a9d.js';
|
|
6
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
7
8
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
8
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
-
import './package-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-529b3c8e.js';
|
|
10
|
+
import './package-345be07e.js';
|
|
10
11
|
|
|
11
12
|
class InsuranceService {
|
|
12
13
|
async fetchQuote(authToken, payload) {
|
|
13
14
|
const endpoint = 'insurance/quotes';
|
|
14
|
-
return Api({ authToken, apiOrigin:
|
|
15
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
15
16
|
}
|
|
16
17
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
17
18
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
18
|
-
return Api({ authToken, apiOrigin:
|
|
19
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@justifi/webcomponents";
|
|
2
|
-
const version = "4.19.1-rc-
|
|
2
|
+
const version = "4.19.1-rc-10";
|
|
3
3
|
const description = "JustiFi Web Components";
|
|
4
4
|
const collection = "dist/collection/collection-manifest.json";
|
|
5
5
|
const main = "dist/index.cjs.js";
|
|
@@ -44,7 +44,7 @@ const devDependencies = {
|
|
|
44
44
|
"@babel/preset-env": "^7.21.5",
|
|
45
45
|
"@babel/preset-react": "^7.18.6",
|
|
46
46
|
"@babel/preset-typescript": "^7.21.5",
|
|
47
|
-
"@rollup/plugin-replace": "^
|
|
47
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
48
48
|
"@stencil/sass": "^3.0.1",
|
|
49
49
|
"@types/jest": "27.0.3",
|
|
50
50
|
"@types/react": "^18.0.37",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as create$3, a as create$6 } from './index.esm-fc4f5c0c.js';
|
|
2
|
-
import { l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation, i as identityNameValidation, b as identityTitleValidation, e as emailValidation, d as phoneValidation, f as dobValidation, g as ssnValidation } from './schema-validations-
|
|
2
|
+
import { l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation, i as identityNameValidation, b as identityTitleValidation, e as emailValidation, d as phoneValidation, f as dobValidation, g as ssnValidation } from './schema-validations-2f4fdebb.js';
|
|
3
3
|
|
|
4
4
|
const addressSchema = (allowOptionalFields) => {
|
|
5
5
|
const schema = create$3({
|
|
@@ -2,16 +2,17 @@ import { A as Api } from './Api-b09a2f6a.js';
|
|
|
2
2
|
import './Pagination-afc8f96d.js';
|
|
3
3
|
import './Payment-6bf26fe2.js';
|
|
4
4
|
import './Payout-dfe15b00.js';
|
|
5
|
+
import { c as config } from './config-27764a9d.js';
|
|
5
6
|
|
|
6
7
|
class PaymentService {
|
|
7
8
|
async fetchPayments(accountId, authToken, params) {
|
|
8
|
-
const api = Api({ authToken, apiOrigin:
|
|
9
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
9
10
|
const endpoint = `account/${accountId}/payments`;
|
|
10
11
|
return api.get(endpoint, params);
|
|
11
12
|
}
|
|
12
13
|
async fetchPayment(paymentId, authToken) {
|
|
13
14
|
const endpoint = `payments/${paymentId}`;
|
|
14
|
-
return Api({ authToken, apiOrigin:
|
|
15
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|