@justifi/webcomponents 4.19.1-rc-6 → 4.19.1
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-54b8e890.js → Analytics-f870b3ee.js} +3 -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-f63650f5.js} +6 -5
- package/dist/cjs/config-ff2dda66.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-f3aee6d0.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 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -3
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -11
- 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 +6 -5
- 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-b75f8267.js → package-1321b070.js} +4 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → payload-parsers-969ab9b6.js} +1 -1
- package/dist/cjs/{payment.service-dfcfa19b.js → payment.service-0a64f9cd.js} +3 -2
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-f3db892c.js} +1 -1
- package/dist/collection/api/services/analytics.service.js +2 -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 +4 -2
- package/dist/collection/api/services/reports.service.js +2 -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 -4
- package/dist/collection/components/checkout/new-payment-method.js +4 -6
- 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-25ef1b60.js → Analytics-262cdde5.js} +3 -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-74bd1212.js} +6 -5
- package/dist/esm/config-476c7241.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-b494abfe.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 -3
- package/dist/esm/justifi-checkout.entry.js +5 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +9 -11
- 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 +6 -5
- 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/esm/{package-478b028a.js → package-d88677e9.js} +4 -2
- package/dist/esm/{payload-parsers-acb719d1.js → payload-parsers-62f443e1.js} +1 -1
- package/dist/esm/{payment.service-dad5153b.js → payment.service-3ca4a492.js} +3 -2
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
- package/dist/module/Analytics.js +2 -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 -3
- 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 +2 -1
- package/dist/module/justifi-payment-form.js +4 -3
- package/dist/module/justifi-payment-provisioning.js +3 -2
- 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 -5
- package/dist/module/package.js +4 -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/components/checkout/new-payment-method.d.ts +0 -1
- 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/index.esm.js +0 -1
- package/dist/webcomponents/p-04a0dbb6.js +1 -0
- package/dist/webcomponents/p-061dcb79.entry.js +1 -0
- package/dist/webcomponents/p-07109641.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -41
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-14c91ffd.js +1 -20
- package/dist/webcomponents/p-198994c0.entry.js +1 -0
- package/dist/webcomponents/p-1a43e355.entry.js +19 -0
- package/dist/webcomponents/p-1ad5995e.js +1 -3599
- package/dist/webcomponents/p-1f70fa27.entry.js +1 -0
- package/dist/webcomponents/p-1ff8810b.js +1 -29
- package/dist/webcomponents/p-2338affa.js +1 -213
- package/dist/webcomponents/p-241b0ed9.js +1 -0
- package/dist/webcomponents/p-2799383d.entry.js +1 -0
- package/dist/webcomponents/p-29c0b182.js +1 -114
- package/dist/webcomponents/p-2b6c9c4f.js +1 -7
- package/dist/webcomponents/p-2eab3c90.js +1 -3052
- package/dist/webcomponents/p-3affadfc.entry.js +1 -0
- package/dist/webcomponents/p-3d4d566d.entry.js +1 -0
- package/dist/webcomponents/p-3dd4c6c3.entry.js +1 -0
- package/dist/webcomponents/p-462dc522.entry.js +1 -0
- package/dist/webcomponents/p-46f679a9.js +1 -0
- package/dist/webcomponents/p-487b72a8.entry.js +1 -0
- package/dist/webcomponents/p-48ae16e0.entry.js +1 -0
- package/dist/webcomponents/p-4abc17f0.entry.js +1 -0
- package/dist/webcomponents/p-4bac636e.entry.js +1 -0
- package/dist/webcomponents/p-52021fa1.entry.js +1 -0
- package/dist/webcomponents/p-525db3e8.js +1 -22
- package/dist/webcomponents/p-53948ff8.entry.js +1 -0
- package/dist/webcomponents/p-53e64f15.entry.js +1 -0
- package/dist/webcomponents/p-554a3c18.js +1 -0
- package/dist/webcomponents/p-56f6ce4c.js +1 -10
- package/dist/webcomponents/p-5968ff8a.js +1 -178
- package/dist/webcomponents/p-6078a370.js +1 -244
- package/dist/webcomponents/p-60a370fc.entry.js +1 -0
- package/dist/webcomponents/p-62b32c4c.entry.js +1 -0
- package/dist/webcomponents/p-65b561da.entry.js +1 -0
- package/dist/webcomponents/p-72c9e6b3.entry.js +1 -0
- package/dist/webcomponents/p-75b4daef.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -16
- package/dist/webcomponents/p-8115b2f4.js +1 -28
- package/dist/webcomponents/p-83125497.js +1 -4027
- package/dist/webcomponents/p-8603348a.js +1 -0
- package/dist/webcomponents/p-890b3254.entry.js +1 -0
- package/dist/webcomponents/p-8df7bde8.js +1 -27
- package/dist/webcomponents/p-92bb1e5f.entry.js +1 -0
- package/dist/webcomponents/p-9c9c7dac.js +1 -24
- package/dist/webcomponents/p-9ccfa1c9.entry.js +1 -0
- package/dist/webcomponents/p-9dc36f76.entry.js +1 -0
- package/dist/webcomponents/p-ad41c8c7.entry.js +1 -0
- package/dist/webcomponents/p-ae263544.js +1 -0
- package/dist/webcomponents/p-af244664.js +1 -126
- package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
- package/dist/webcomponents/p-ba4bae6f.js +1 -12
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/p-bc92235c.entry.js +1 -0
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/p-d1c8d794.entry.js +1 -0
- package/dist/webcomponents/p-d25c2f12.js +1 -0
- package/dist/webcomponents/p-d2a5054f.entry.js +1 -0
- package/dist/webcomponents/p-d765d638.js +1 -0
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -39
- package/dist/webcomponents/p-dce846bf.js +1 -27
- package/dist/webcomponents/p-df21aaad.js +1 -120
- package/dist/webcomponents/p-e1255160.js +1 -3
- package/dist/webcomponents/p-e2c88817.entry.js +1 -0
- package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
- package/dist/webcomponents/p-e333620e.js +1 -34
- package/dist/webcomponents/p-e3fab0e2.js +1 -43
- package/dist/webcomponents/p-f0866375.entry.js +1 -0
- package/dist/webcomponents/p-fad19d75.js +2 -1638
- package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
- package/dist/webcomponents/p-fe33151d.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +4 -362
- package/dist/webcomponents/webcomponents.esm.js +1 -20
- package/package.json +4 -2
- package/dist/globals.d.ts +0 -2
- package/dist/webcomponents/p-01a404ca.entry.js +0 -44
- package/dist/webcomponents/p-03d35880.entry.js +0 -130
- package/dist/webcomponents/p-06ff0429.entry.js +0 -65
- package/dist/webcomponents/p-0e2384b5.entry.js +0 -1684
- package/dist/webcomponents/p-1bbbf15d.js +0 -79
- package/dist/webcomponents/p-20abace7.js +0 -77
- package/dist/webcomponents/p-258b1ee2.entry.js +0 -149
- package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
- package/dist/webcomponents/p-3b5948ea.entry.js +0 -133
- package/dist/webcomponents/p-3c50942c.entry.js +0 -94
- package/dist/webcomponents/p-3e9ef4a8.js +0 -28
- package/dist/webcomponents/p-3fd13ca3.js +0 -52
- package/dist/webcomponents/p-40236338.entry.js +0 -80
- package/dist/webcomponents/p-5482d030.entry.js +0 -21
- package/dist/webcomponents/p-576826b1.entry.js +0 -43
- package/dist/webcomponents/p-5cb3f0b2.entry.js +0 -261
- package/dist/webcomponents/p-5f835b89.entry.js +0 -606
- package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
- package/dist/webcomponents/p-73210c03.entry.js +0 -75
- package/dist/webcomponents/p-7582b554.entry.js +0 -18
- package/dist/webcomponents/p-79646550.entry.js +0 -61
- package/dist/webcomponents/p-800d31fe.entry.js +0 -162
- package/dist/webcomponents/p-8371f61c.entry.js +0 -94
- package/dist/webcomponents/p-85fc69e5.js +0 -90
- package/dist/webcomponents/p-890088fc.entry.js +0 -298
- package/dist/webcomponents/p-89887332.js +0 -301
- package/dist/webcomponents/p-8eb774df.entry.js +0 -54
- package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
- package/dist/webcomponents/p-a096bc5b.entry.js +0 -145
- package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
- package/dist/webcomponents/p-a5c5821e.entry.js +0 -101
- package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
- package/dist/webcomponents/p-a64f0ebe.entry.js +0 -117
- package/dist/webcomponents/p-a6d04afc.js +0 -44
- package/dist/webcomponents/p-ac086069.entry.js +0 -58
- package/dist/webcomponents/p-b233d1e2.entry.js +0 -74
- package/dist/webcomponents/p-b82c146f.entry.js +0 -111
- package/dist/webcomponents/p-ba5fae28.js +0 -90
- package/dist/webcomponents/p-ba6661f2.entry.js +0 -73
- package/dist/webcomponents/p-c636f563.entry.js +0 -791
- package/dist/webcomponents/p-cb26f708.js +0 -18
- package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
- package/dist/webcomponents/p-e26541b9.entry.js +0 -98
- package/dist/webcomponents/p-e356f280.entry.js +0 -29
- package/dist/webcomponents/p-e78af6d3.entry.js +0 -97
- package/dist/webcomponents/p-e7b8199d.entry.js +0 -131
- package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
- package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
- package/dist/webcomponents/p-fd7918c2.entry.js +0 -99
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
2
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
3
3
|
import { m as makeGetBusiness, b as makePatchBusiness } from './payment-provisioning-actions-0635eff7.js';
|
|
4
|
-
import { B as BusinessService } from './business.service-
|
|
4
|
+
import { B as BusinessService } from './business.service-74bd1212.js';
|
|
5
5
|
import { c as create$3, F as FormController, e as create$7 } from './index.esm-fc4f5c0c.js';
|
|
6
6
|
import { b as BusinessFormStep, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
7
|
-
import { z as bankNameValidation, A as nicknameValidation, i as identityNameValidation, B as accountTypeValidation, C as accountNumberValidation, D as routingNumberValidation, E as voidedCheckValidation, F as governmentIdValidation, G as ss4Validation, H as otherDocumentValidation, I as balanceSheetValidation, J as bankStatementValidation, K as profitAndLossStatementValidation, L as EntityDocument, M as EntityDocumentStorage } from './schema-validations-
|
|
8
|
-
import { c as bankAccountTypeOptions } from './business-form-options-
|
|
7
|
+
import { z as bankNameValidation, A as nicknameValidation, i as identityNameValidation, B as accountTypeValidation, C as accountNumberValidation, D as routingNumberValidation, E as voidedCheckValidation, F as governmentIdValidation, G as ss4Validation, H as otherDocumentValidation, I as balanceSheetValidation, J as bankStatementValidation, K as profitAndLossStatementValidation, L as EntityDocument, M as EntityDocumentStorage } from './schema-validations-2f4fdebb.js';
|
|
8
|
+
import { c as bankAccountTypeOptions } from './business-form-options-0b08e08c.js';
|
|
9
9
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
10
10
|
import './Pagination-afc8f96d.js';
|
|
11
11
|
import './Payment-6bf26fe2.js';
|
|
12
12
|
import './Payout-dfe15b00.js';
|
|
13
|
+
import { c as config } from './config-476c7241.js';
|
|
13
14
|
import { n as numberOnlyHandler } from './utils-3bb6347a.js';
|
|
14
15
|
import { B as Business } from './Business-e218b4f4.js';
|
|
15
16
|
import { S as Skeleton } from './skeleton-145a80d4.js';
|
|
@@ -199,7 +200,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
199
200
|
;
|
|
200
201
|
componentWillLoad() {
|
|
201
202
|
this.formController = new FormController(businessBankAccountSchema(this.allowOptionalFields));
|
|
202
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
203
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
203
204
|
if (this.businessId && this.authToken) {
|
|
204
205
|
this.fetchData();
|
|
205
206
|
}
|
|
@@ -212,7 +213,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
212
213
|
}
|
|
213
214
|
render() {
|
|
214
215
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
215
|
-
return (h("form", { key: '
|
|
216
|
+
return (h("form", { key: 'b2e106437693b667376fb8091117bc04899cce13' }, h("fieldset", { key: 'c6fc0e5b39278a4618abe0aeba8593b4800f23fa' }, h("legend", { key: 'f07c520e32491dd506f7ac16b03b0eb82a451035' }, "Bank Account Info"), h("hr", { key: '43845af4ec6f143653154e301a49c870c688e8cb' }), h("div", { key: '911f450a0e81a7fcf6afb8b54be910da36b068d6', class: "row gy-3" }, h("div", { key: 'afe5dd40139f1098e69736cd08f00792916657b1', class: "col-12" }, h("form-control-text", { key: 'c590065940b5ef4ab5a125962e114d3bb99161e8', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'ad7ac99fdae7bb0108675cf4ea522ae7b0c7b340', class: "col-12" }, h("form-control-text", { key: '4e69debe8b184272c788f0ba206b7e983bb6bba5', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'a478bb2330e48935b65d22a42287ab89f94b4808', class: "col-12" }, h("form-control-text", { key: 'c20531fb2c5e903eefeeb62fca5a831cf2542867', 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 })), h("div", { key: '63325c985d0341888ad9ce34fec48c623e275f55', class: "col-12" }, h("form-control-select", { key: 'b9fc86477dada5413e4a6e18b10e77de620996d9', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '7d2849185532bb21c85cf8227749469e28fdc102', class: "col-12" }, h("form-control-text", { key: '466a38e94ed054788596ec63bed4b4ffe646dc63', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled })), h("div", { key: '1162fae41dfc767cd038a37d7a7581b54dee1a1d', class: "col-12" }, h("form-control-text", { key: '47ffb34b6523d34df02739231b5764418f162fe6', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled }))))));
|
|
216
217
|
}
|
|
217
218
|
};
|
|
218
219
|
|
|
@@ -429,7 +430,7 @@ const BusinessDocumentFormStep = class {
|
|
|
429
430
|
return 'entities/document';
|
|
430
431
|
}
|
|
431
432
|
componentWillLoad() {
|
|
432
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
433
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
433
434
|
if (this.businessId && this.authToken) {
|
|
434
435
|
this.fetchData();
|
|
435
436
|
}
|
|
@@ -462,7 +463,7 @@ const BusinessDocumentFormStep = class {
|
|
|
462
463
|
return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
463
464
|
}
|
|
464
465
|
render() {
|
|
465
|
-
return (h("form", { key: '
|
|
466
|
+
return (h("form", { key: '8f2e1d262cd5050b315019a1947b1474eaf995de' }, h("fieldset", { key: 'd022b1c294835e456a9067fcfdbf2b93a33c8ca8' }, h("legend", { key: '522ecbab0489efa6d4294f38f792a28770010f1e' }, "Document Uploads"), h("p", { key: 'b49a6b3a4a7c79b368b20455b4ed4a943f08ec51' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), h("hr", { key: '3d8c2f7f5b128b99ceaa501166ae60c490b12378' }), this.documentsOnFile, h("div", { key: 'd2627185483e1be43c0b34d80b1fcfa850decd28', class: "d-flex flex-column" }, this.formInputs))));
|
|
466
467
|
}
|
|
467
468
|
};
|
|
468
469
|
|
|
@@ -646,7 +647,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
646
647
|
};
|
|
647
648
|
}
|
|
648
649
|
async componentWillLoad() {
|
|
649
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
650
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
650
651
|
this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
651
652
|
if (this.businessId && this.authToken) {
|
|
652
653
|
this.fetchData();
|
|
@@ -682,7 +683,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
682
683
|
});
|
|
683
684
|
}
|
|
684
685
|
render() {
|
|
685
|
-
return (h("form", { key: '
|
|
686
|
+
return (h("form", { key: '29b946b553d7a8011bee8f1997888f04b51897b3' }, h("fieldset", { key: 'c6e6c2577a66e58de8aabaac572cd7dab0a609b2' }, h("legend", { key: '4cf7e19049ee60807ffc5cbecbc8b87e9725590a' }, "Terms and Conditions"), h("hr", { key: 'b0d0bb46987a864a20a419eb0b2338fd57d07765' }), h("justifi-business-terms-conditions-text", { key: 'c936f2205bf123266d8eed2f12194eb2d8feb056' }), h("br", { key: 'e4f38ba5341c5fcf5938c3637905612e02bc7077' }), h("div", { key: '163401aaaee6e037d94182e5005625055bda66c5', class: "row-gy-3" }, h("div", { key: '3925d9b802f62e16cc41407170593b4b9a676bd9', class: "col-12" }, h("form-control-checkbox", { key: 'd86e00bfebe915d84a41486be34cec3555598d92', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
|
|
686
687
|
}
|
|
687
688
|
};
|
|
688
689
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import {
|
|
3
|
-
import './
|
|
2
|
+
import { c as config } from './config-476c7241.js';
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-262cdde5.js';
|
|
4
|
+
import './package-d88677e9.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-74bd1212.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-262cdde5.js';
|
|
8
|
+
import './config-476c7241.js';
|
|
8
9
|
import './Api-b09a2f6a.js';
|
|
9
10
|
import './helpers-96ea3464.js';
|
|
10
11
|
import './state-options-a356fb11.js';
|
|
11
|
-
import './package-
|
|
12
|
+
import './package-d88677e9.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
|
+
import { c as config } from './config-476c7241.js';
|
|
9
10
|
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
10
11
|
import { B as Business } from './Business-e218b4f4.js';
|
|
11
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
12
|
+
import { J as JustifiAnalytics } from './Analytics-262cdde5.js';
|
|
12
13
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
13
|
-
import './schema-validations-
|
|
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-d88677e9.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 {
|
|
3
|
-
import './
|
|
2
|
+
import { c as config } from './config-476c7241.js';
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-262cdde5.js';
|
|
4
|
+
import './package-d88677e9.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
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import { f as formatCurrency } from './utils-3c1dd2fa.js';
|
|
3
|
+
import { c as config } from './config-476c7241.js';
|
|
3
4
|
import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
4
5
|
import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './insurance-state-8ce01e59.js';
|
|
5
6
|
import { B as Button } from './button-34e75e0f.js';
|
|
@@ -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;
|
|
@@ -64,7 +65,6 @@ const CheckoutCore = class {
|
|
|
64
65
|
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
65
66
|
}
|
|
66
67
|
componentWillLoad() {
|
|
67
|
-
console.log('CheckoutCore: componentWillLoad iframeOrigin', this, this.iframeOrigin);
|
|
68
68
|
if (this.getCheckout) {
|
|
69
69
|
this.fetchData();
|
|
70
70
|
// Refresh the checkout data when insurance is added or removed
|
|
@@ -141,7 +141,7 @@ const CheckoutCore = class {
|
|
|
141
141
|
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
142
|
}
|
|
143
143
|
render() {
|
|
144
|
-
return (h(StyledHost, { key: '
|
|
144
|
+
return (h(StyledHost, { key: 'e322f280a57bb0baab61174bca21f0a7e9afa3c1' }, h("div", { key: '4ad8cc4f6243de8ddc03fb184ac4e960a04280eb', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '7f13e26b36790558c8eb455f4d5ab3d0952b4e62', class: "col-12" }, h("h2", { key: 'c5e4b6fc30f51821537915f3ce5d4830ed3f8da9', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: '164b7a2cc51d871ad4a92044d0f7240e376bd4b3', class: "col-12" }, h("slot", { key: 'a98b7c6a0bb9e4d1b102e832ee7aa43218432298', name: "insurance" })), h("div", { key: '415d3aac64b4190f54d785695c50a92ce02a76c2', class: "col-12 mt-4" }, h("h2", { key: '6d7f0df1165ec359877459a8bada855ef353c3b3', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'be8495d792cf065d2cbc7d3b46648c887951e313', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: '5c9d8baffb50b0b10e9911463f307581cad7619c', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: '9351832b69a8e5285cae35534299b51193248719', class: "col-12" }, h("div", { key: '5b0e382836c858369caf93a287272922024ce72b', class: "d-flex justify-content-end" }, h(Button, { key: 'f76d37000f7b026e97f083e7cf817bed8f84f34f', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
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-476c7241.js';
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-262cdde5.js';
|
|
10
|
+
import './package-d88677e9.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,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
+
import { c as config } from './config-476c7241.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-262cdde5.js';
|
|
8
|
+
import './package-d88677e9.js';
|
|
8
9
|
|
|
9
10
|
class ReportsService {
|
|
10
11
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
11
|
-
const api = Api({ authToken: authToken, apiOrigin:
|
|
12
|
+
const api = Api({ authToken: authToken, apiOrigin: config.proxyApiOrigin });
|
|
12
13
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
13
14
|
return api.get(endpoint);
|
|
14
15
|
}
|
|
@@ -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-476c7241.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;
|
|
@@ -21,9 +22,6 @@ const NewPaymentMethod = class {
|
|
|
21
22
|
this.isSelected = undefined;
|
|
22
23
|
this.saveNewPaymentMethodChecked = false;
|
|
23
24
|
}
|
|
24
|
-
componentWillLoad() {
|
|
25
|
-
console.log('NewPaymentMethod: componentWillLoad iframeOrigin', this, this.iframeOrigin);
|
|
26
|
-
}
|
|
27
25
|
handleCheckboxChanged(event) {
|
|
28
26
|
this.saveNewPaymentMethodChecked = event.detail;
|
|
29
27
|
}
|
|
@@ -76,7 +74,7 @@ const NewPaymentMethod = class {
|
|
|
76
74
|
}
|
|
77
75
|
render() {
|
|
78
76
|
var _a, _b, _c, _d;
|
|
79
|
-
return (h("div", { key: '
|
|
77
|
+
return (h("div", { key: '93c3e6d38d1e18be54006bf82cd6c8148df3518d', class: "payment-method" }, h("div", { key: '6dbb687fbd3e33a6095be7c39ec0974bcc4809b8', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '6c5be962cf5d357211c6716b53d0d8dd3fcf0bb0', 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: '796868afd192703a81d94897872dd9c0504cbc1e', 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
78
|
}
|
|
81
79
|
};
|
|
82
80
|
|
|
@@ -119,7 +117,7 @@ const PaymentMethodOptions = class {
|
|
|
119
117
|
this.insuranceToggled = undefined;
|
|
120
118
|
this.authToken = undefined;
|
|
121
119
|
this.accountId = undefined;
|
|
122
|
-
this.iframeOrigin =
|
|
120
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
123
121
|
this.savedPaymentMethods = [];
|
|
124
122
|
this.paymentAmount = undefined;
|
|
125
123
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -165,7 +163,7 @@ const PaymentMethodOptions = class {
|
|
|
165
163
|
}
|
|
166
164
|
render() {
|
|
167
165
|
var _a;
|
|
168
|
-
return (h(Host, { key: '
|
|
166
|
+
return (h(Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
169
167
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
170
168
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
171
169
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -206,7 +204,7 @@ const SavedPaymentMethod = class {
|
|
|
206
204
|
this.onPaymentMethodOptionClick = () => {
|
|
207
205
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
208
206
|
};
|
|
209
|
-
this.iframeOrigin =
|
|
207
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
210
208
|
this.paymentMethodOption = undefined;
|
|
211
209
|
this.isSelected = undefined;
|
|
212
210
|
}
|
|
@@ -220,7 +218,7 @@ const SavedPaymentMethod = class {
|
|
|
220
218
|
;
|
|
221
219
|
render() {
|
|
222
220
|
var _a, _b, _c, _d, _e;
|
|
223
|
-
return (h(Fragment, { key: '
|
|
221
|
+
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
222
|
_e.acct_last_four)))));
|
|
225
223
|
}
|
|
226
224
|
};
|
|
@@ -265,7 +263,7 @@ const SezzlePaymentMethod = class {
|
|
|
265
263
|
this.sezzleCheckout = checkout;
|
|
266
264
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
267
265
|
};
|
|
268
|
-
this.iframeOrigin =
|
|
266
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
269
267
|
this.bnpl = undefined;
|
|
270
268
|
this.clientId = undefined;
|
|
271
269
|
this.accountId = undefined;
|
|
@@ -291,7 +289,7 @@ const SezzlePaymentMethod = class {
|
|
|
291
289
|
}
|
|
292
290
|
render() {
|
|
293
291
|
var _a, _b, _c, _d, _e;
|
|
294
|
-
return (h("div", { key: '
|
|
292
|
+
return (h("div", { key: '4deca512311cd98d358c7099141b15538857a4e5', class: "payment-method" }, h("script", { key: '94b232291153bba85efebb101e7e6e816857da96', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '7cd9052ae6613fe7f187f3a51b7d6ac7087fdeb1', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '1e15e6c2ddced23b049e2559da27532f9be94fb5', 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: '0a3637002ef373c05424d6769b070d9db0e66ce8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '6398e2f00088edf8a1a3699e149760744dda4cb1' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: 'bfd33da875aa5e9f5b649ac8fc7aa5758393b6e8' }, h("span", { key: 'c07fd5d32fe897a45a67140e2cb81b1f4d537c4a' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '2b11e4aa6389a4b98cd003c031aed8f01ec8a4df' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: '90cf3bfa1f0d36c8d4719f164d436407d7fc692b', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
295
293
|
}
|
|
296
294
|
};
|
|
297
295
|
|
|
@@ -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-74bd1212.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
|
+
import './config-476c7241.js';
|
|
13
14
|
import './Api-b09a2f6a.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-3ca4a492.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-262cdde5.js';
|
|
10
10
|
import './Api-b09a2f6a.js';
|
|
11
|
-
import './
|
|
11
|
+
import './config-476c7241.js';
|
|
12
|
+
import './package-d88677e9.js';
|
|
12
13
|
|
|
13
14
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
14
15
|
var _a;
|
|
@@ -3,12 +3,13 @@ import './Pagination-afc8f96d.js';
|
|
|
3
3
|
import { a as PaymentMethodTypes } from './Payment-6bf26fe2.js';
|
|
4
4
|
import './Payout-dfe15b00.js';
|
|
5
5
|
import { l as loadFontsOnParent } from './utils-3c1dd2fa.js';
|
|
6
|
+
import { c as config } from './config-476c7241.js';
|
|
6
7
|
import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
7
8
|
import { g as getErrorMessage } from './utils-b10dae27.js';
|
|
8
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-262cdde5.js';
|
|
9
10
|
import { B as Button } from './button-34e75e0f.js';
|
|
10
11
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
11
|
-
import './package-
|
|
12
|
+
import './package-d88677e9.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-d88677e9.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-262cdde5.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-74bd1212.js';
|
|
6
|
+
import { c as config } from './config-476c7241.js';
|
|
6
7
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
7
|
-
import './package-
|
|
8
|
+
import './package-d88677e9.js';
|
|
8
9
|
import './utils-b10dae27.js';
|
|
9
10
|
|
|
10
11
|
class ProvisionService {
|
|
@@ -12,9 +13,9 @@ class ProvisionService {
|
|
|
12
13
|
const endpoint = `entities/provisioning`;
|
|
13
14
|
const payload = {
|
|
14
15
|
business_id: businessId,
|
|
15
|
-
product_category: product
|
|
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-3ca4a492.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-262cdde5.js';
|
|
10
10
|
import './Api-b09a2f6a.js';
|
|
11
|
-
import './
|
|
11
|
+
import './config-476c7241.js';
|
|
12
|
+
import './package-d88677e9.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-b494abfe.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-262cdde5.js';
|
|
10
10
|
import './Api-b09a2f6a.js';
|
|
11
|
-
import './
|
|
11
|
+
import './config-476c7241.js';
|
|
12
|
+
import './package-d88677e9.js';
|
|
12
13
|
|
|
13
14
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
14
15
|
var _a;
|