@justifi/webcomponents 4.19.3-rc-2 → 4.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-adc90fc6.js → Analytics-a0a86d82.js} +4 -3
- package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
- package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
- package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
- package/dist/cjs/{business.service-090a21e1.js → business.service-031c0084.js} +7 -6
- package/dist/cjs/config-05767cba.js +15 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
- package/dist/cjs/{get-payout-csv-238e839a.js → get-payout-csv-3a3260ec.js} +5 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +14 -13
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -5
- package/dist/cjs/{package-22d30c5d.js → package-99f4d813.js} +2 -2
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-c92635c8.js → payment.service-4b1c0a20.js} +4 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-0a7e46a3.js} +1 -1
- package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
- package/dist/collection/api/Api.js +3 -3
- package/dist/collection/api/Business.js +66 -7
- package/dist/collection/api/Identity.js +39 -3
- 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 +2 -1
- 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 +5 -5
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -3
- 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 +9 -9
- package/dist/{webcomponents/p-15eafa87.js → esm/Analytics-e460ab05.js} +4 -3
- package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
- package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
- package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
- package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
- package/dist/esm/{business.service-37d0cc72.js → business.service-1f589b6e.js} +7 -6
- package/dist/esm/config-27764a9d.js +13 -0
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox_9.entry.js +21 -21
- package/dist/esm/{get-payout-csv-a702a0d9.js → get-payout-csv-93427146.js} +5 -4
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
- package/dist/esm/justifi-bank-account-form.entry.js +6 -5
- package/dist/esm/justifi-billing-form_2.entry.js +3 -3
- package/dist/esm/justifi-business-details.entry.js +6 -5
- package/dist/esm/justifi-business-form.entry.js +13 -12
- package/dist/esm/justifi-card-form.entry.js +6 -5
- package/dist/esm/justifi-checkout-core.entry.js +4 -4
- package/dist/esm/justifi-checkout.entry.js +6 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +10 -12
- package/dist/esm/justifi-owner-form_3.entry.js +11 -10
- package/dist/esm/justifi-payment-details.entry.js +5 -4
- package/dist/esm/justifi-payment-form.entry.js +8 -7
- package/dist/esm/justifi-payment-method-form.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
- package/dist/esm/justifi-payments-list.entry.js +5 -4
- package/dist/esm/justifi-payout-details.entry.js +5 -4
- package/dist/esm/justifi-payouts-list.entry.js +5 -4
- package/dist/esm/justifi-refund-form.entry.js +4 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -5
- package/dist/{webcomponents/p-2e8f4937.js → esm/package-0935c5e5.js} +2 -2
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/{payment.service-9359fe15.js → payment.service-02c596b9.js} +4 -3
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/payout-details-core.entry.js +1 -1
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-e725d701.js} +2 -2
- package/dist/esm/{utils-3c1dd2fa.js → utils-e66d8bca.js} +1 -16
- package/dist/module/Analytics.js +2 -1
- package/dist/module/Api.js +3 -3
- package/dist/module/Business.js +104 -9
- package/dist/module/business-additional-questions-form-step-core.js +3 -3
- package/dist/module/business-bank-account-form-step.js +4 -3
- package/dist/module/business-core-info-form-step-core.js +3 -5
- package/dist/module/business-document-upload-form-step.js +4 -3
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-owners-form-step-core.js +3 -3
- package/dist/module/business-representative-form-step-core.js +3 -4
- package/dist/module/business-terms-conditions-form-step.js +4 -3
- 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 +5 -5
- 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 +2 -1
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/legal-address-form-step-core.js +3 -4
- package/dist/module/new-payment-method.js +3 -5
- package/dist/module/owner-form-core2.js +4 -5
- package/dist/module/package.js +2 -2
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-options.js +3 -2
- package/dist/module/payment.service.js +3 -2
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/saved-payment-method.js +4 -3
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/module/utils2.js +1 -16
- package/dist/types/api/Business.d.ts +87 -1
- package/dist/types/api/Identity.d.ts +45 -1
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
- 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-056e75be.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-11b6ed0c.entry.js +1 -0
- package/dist/webcomponents/p-124c1ecd.entry.js +1 -0
- package/dist/webcomponents/p-14c91ffd.js +1 -20
- package/dist/webcomponents/p-15976984.entry.js +1 -0
- package/dist/webcomponents/p-1815a43b.js +1 -0
- package/dist/webcomponents/p-1ad5995e.js +1 -3599
- package/dist/webcomponents/p-1cf90026.entry.js +1 -0
- package/dist/webcomponents/p-1eee25f3.entry.js +19 -0
- package/dist/webcomponents/p-1ff8810b.js +1 -29
- package/dist/webcomponents/p-2338affa.js +1 -213
- package/dist/webcomponents/p-277aee05.js +1 -0
- package/dist/webcomponents/p-2b6c9c4f.js +1 -7
- package/dist/webcomponents/p-2eab3c90.js +1 -3052
- package/dist/webcomponents/p-3423ddfd.entry.js +1 -0
- package/dist/webcomponents/p-39c6f36a.entry.js +1 -0
- package/dist/webcomponents/p-401d6607.js +1 -0
- package/dist/webcomponents/p-421ed39d.entry.js +1 -0
- package/dist/webcomponents/p-487b72a8.entry.js +1 -0
- package/dist/webcomponents/p-4e017b58.js +1 -0
- package/dist/webcomponents/p-4e01fec8.entry.js +1 -0
- package/dist/webcomponents/p-5022f21c.js +1 -0
- package/dist/webcomponents/p-525db3e8.js +1 -22
- package/dist/webcomponents/p-55182a59.js +1 -0
- package/dist/webcomponents/p-56f6ce4c.js +1 -10
- package/dist/webcomponents/p-5968ff8a.js +1 -178
- package/dist/webcomponents/p-5a62fca2.js +1 -0
- package/dist/webcomponents/p-5e2c9ec8.js +1 -0
- package/dist/webcomponents/p-5e7c60d8.js +1 -0
- package/dist/webcomponents/p-6078a370.js +1 -244
- package/dist/webcomponents/p-69c18f39.entry.js +1 -0
- package/dist/webcomponents/p-6abb2a04.entry.js +1 -0
- package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
- package/dist/webcomponents/p-721dcf51.entry.js +1 -0
- package/dist/webcomponents/p-7d3be485.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -16
- package/dist/webcomponents/p-7ff329b1.js +1 -0
- package/dist/webcomponents/p-8115b2f4.js +1 -28
- package/dist/webcomponents/p-817da23c.entry.js +1 -0
- package/dist/webcomponents/p-8df7bde8.js +1 -27
- package/dist/webcomponents/p-9c9c7dac.js +1 -24
- package/dist/webcomponents/p-a99032e1.entry.js +1 -0
- package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
- package/dist/webcomponents/p-aedb421f.entry.js +1 -0
- package/dist/webcomponents/p-b676bca5.entry.js +1 -0
- package/dist/webcomponents/p-b6c3b7bc.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-bd278ff4.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-d4a44a1e.entry.js +1 -0
- package/dist/webcomponents/p-d76002d5.entry.js +1 -0
- package/dist/webcomponents/p-d78eb6ce.js +1 -0
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -39
- package/dist/webcomponents/p-da1d174d.entry.js +1 -0
- 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-e2b2213f.entry.js +1 -0
- 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-e3f4a2a6.js +1 -0
- package/dist/webcomponents/p-e3fab0e2.js +1 -43
- package/dist/webcomponents/p-e7fd1357.entry.js +1 -0
- package/dist/webcomponents/p-eccf2e8e.entry.js +1 -0
- package/dist/webcomponents/p-edb62047.entry.js +1 -0
- package/dist/webcomponents/p-f0866375.entry.js +1 -0
- package/dist/webcomponents/p-f5ebca3e.entry.js +1 -0
- package/dist/webcomponents/p-fad19d75.js +2 -1638
- package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +4 -362
- package/dist/webcomponents/webcomponents.esm.js +1 -20
- package/package.json +2 -2
- package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
- package/dist/esm/Analytics-a8eb7344.js +0 -77
- package/dist/esm/package-ccb774a9.js +0 -79
- package/dist/module/payload-parsers.js +0 -43
- package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
- 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-0e1bc91e.js +0 -28
- package/dist/webcomponents/p-10875f3d.entry.js +0 -97
- package/dist/webcomponents/p-157acba8.entry.js +0 -98
- package/dist/webcomponents/p-18fa0479.entry.js +0 -131
- package/dist/webcomponents/p-1a5120f4.entry.js +0 -145
- package/dist/webcomponents/p-24dc023a.entry.js +0 -791
- package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
- package/dist/webcomponents/p-27d87fe2.entry.js +0 -133
- package/dist/webcomponents/p-29c0b182.js +0 -114
- package/dist/webcomponents/p-3395e896.entry.js +0 -74
- package/dist/webcomponents/p-3fd13ca3.js +0 -52
- package/dist/webcomponents/p-47d79529.js +0 -18
- package/dist/webcomponents/p-53ecc8b9.entry.js +0 -261
- package/dist/webcomponents/p-5482d030.entry.js +0 -21
- package/dist/webcomponents/p-576826b1.entry.js +0 -43
- package/dist/webcomponents/p-5f835b89.entry.js +0 -606
- package/dist/webcomponents/p-6124b1b3.entry.js +0 -80
- package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
- package/dist/webcomponents/p-7582b554.entry.js +0 -18
- package/dist/webcomponents/p-75fd6367.entry.js +0 -149
- package/dist/webcomponents/p-79646550.entry.js +0 -61
- package/dist/webcomponents/p-800d31fe.entry.js +0 -162
- package/dist/webcomponents/p-83125497.js +0 -4027
- package/dist/webcomponents/p-85fc69e5.js +0 -90
- package/dist/webcomponents/p-89887332.js +0 -301
- package/dist/webcomponents/p-8eb774df.entry.js +0 -54
- package/dist/webcomponents/p-9e17630d.entry.js +0 -1684
- package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
- package/dist/webcomponents/p-a4e8573e.entry.js +0 -94
- package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
- package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
- package/dist/webcomponents/p-ab4816e1.entry.js +0 -117
- package/dist/webcomponents/p-ac086069.entry.js +0 -58
- package/dist/webcomponents/p-af244664.js +0 -126
- package/dist/webcomponents/p-b4b8b531.js +0 -44
- package/dist/webcomponents/p-b82c146f.entry.js +0 -111
- package/dist/webcomponents/p-ba5fae28.js +0 -90
- package/dist/webcomponents/p-bd66f9d2.entry.js +0 -101
- package/dist/webcomponents/p-cc39384f.entry.js +0 -99
- package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
- package/dist/webcomponents/p-dad3e069.entry.js +0 -298
- package/dist/webcomponents/p-e1e7525b.entry.js +0 -73
- package/dist/webcomponents/p-e356f280.entry.js +0 -29
- package/dist/webcomponents/p-e9a5cb95.entry.js +0 -94
- package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
- package/dist/webcomponents/p-edc37d1f.entry.js +0 -75
- package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
- package/dist/{globals.d.ts → types/global.d.ts} +1 -1
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as config } from './config-27764a9d.js';
|
|
2
|
+
import { A as Api } from './Api-c8abc2e0.js';
|
|
2
3
|
|
|
3
4
|
class BusinessService {
|
|
4
5
|
async fetchBusiness(businessId, authToken) {
|
|
5
6
|
const endpoint = `entities/business/${businessId}`;
|
|
6
|
-
return Api({ authToken, apiOrigin:
|
|
7
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
7
8
|
}
|
|
8
9
|
async patchBusiness(authToken, businessId, payload) {
|
|
9
10
|
const endpoint = `entities/business/${businessId}`;
|
|
10
|
-
return Api({ authToken, apiOrigin:
|
|
11
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
class IdentityService {
|
|
14
15
|
async fetchIdentity(identityId, authToken) {
|
|
15
16
|
const endpoint = `entities/identity/${identityId}`;
|
|
16
|
-
return Api({ authToken, apiOrigin:
|
|
17
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
17
18
|
}
|
|
18
19
|
async patchIdentity(authToken, identityId, payload) {
|
|
19
20
|
const endpoint = `entities/identity/${identityId}`;
|
|
20
|
-
return Api({ authToken, apiOrigin:
|
|
21
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
|
|
21
22
|
}
|
|
22
23
|
async postIdentity(authToken, payload) {
|
|
23
24
|
const endpoint = `entities/identity`;
|
|
24
|
-
return Api({ authToken, apiOrigin:
|
|
25
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
iframeOrigin: "https://components.justifi.ai/v1",
|
|
3
|
+
proxyApiOrigin: "https://wc-proxy.justifi.ai",
|
|
4
|
+
proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
|
|
5
|
+
exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
|
|
6
|
+
exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
|
|
7
|
+
examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
|
|
8
|
+
examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
|
|
9
|
+
privateApiOrigin: '',
|
|
10
|
+
privateAuthToken: '',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { config as c };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-
|
|
2
|
+
import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-d790973e.js';
|
|
3
3
|
import { C as CURRENCY_MASK, T as TAX_ID_MASKS, P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks-0e18300f.js';
|
|
4
|
-
import { C as CoreBusinessInfo } from './Business-
|
|
4
|
+
import { C as CoreBusinessInfo } from './Business-b73d5055.js';
|
|
5
5
|
import { d as deconstructDate } from './helpers-96ea3464.js';
|
|
6
6
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
7
7
|
import { n as numberOnlyHandler } from './utils-3bb6347a.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './business-additional-questions-schema-
|
|
2
|
+
import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './business-additional-questions-schema-a5583cf8.js';
|
|
3
3
|
import { F as FormController } from './index.esm-fc4f5c0c.js';
|
|
4
|
-
import { A as AdditionalQuestions, C as CoreBusinessInfo, R as Representative, b as Address } from './Business-
|
|
4
|
+
import { A as AdditionalQuestions, C as CoreBusinessInfo, R as Representative, b as Address } from './Business-b73d5055.js';
|
|
5
5
|
import { C as CURRENCY_MASK, P as PHONE_MASKS } from './form-input-masks-0e18300f.js';
|
|
6
|
-
import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-
|
|
7
|
-
import { b as parseCoreInfo, c as parseIdentityInfo, i as identitySchema, d as parseAddressInfo, a as addressSchema } from './payload-parsers-acb719d1.js';
|
|
8
|
-
import { h as flattenNestedObject, j as isInRange, s as snakeCaseToHumanReadable, b as formatDate, k as formatTimeSeconds } from './utils-3c1dd2fa.js';
|
|
6
|
+
import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-d790973e.js';
|
|
9
7
|
import { n as numberOnlyHandler } from './utils-3bb6347a.js';
|
|
10
|
-
import { N as EntityDocumentType } from './schema-validations-
|
|
8
|
+
import { N as EntityDocumentType } from './schema-validations-e725d701.js';
|
|
9
|
+
import { h as isInRange, s as snakeCaseToHumanReadable, b as formatDate, j as formatTimeSeconds } from './utils-e66d8bca.js';
|
|
11
10
|
import { b as BusinessFormStep, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
12
11
|
import { B as Button } from './button-34e75e0f.js';
|
|
12
|
+
import { i as identitySchema, a as addressSchema } from './business-identity-schema-9e3269fb.js';
|
|
13
13
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
14
14
|
import './helpers-96ea3464.js';
|
|
15
15
|
|
|
@@ -110,8 +110,8 @@ const AdditionalQuestionsFormStepCore = class {
|
|
|
110
110
|
}
|
|
111
111
|
;
|
|
112
112
|
get patchPayload() {
|
|
113
|
-
let formValues = this.formController.values.getValue();
|
|
114
|
-
return
|
|
113
|
+
let formValues = new AdditionalQuestions(this.formController.values.getValue()).payload;
|
|
114
|
+
return { additional_questions: formValues };
|
|
115
115
|
}
|
|
116
116
|
componentWillLoad() {
|
|
117
117
|
this.getBusiness && this.getData();
|
|
@@ -125,7 +125,7 @@ const AdditionalQuestionsFormStepCore = class {
|
|
|
125
125
|
render() {
|
|
126
126
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
127
127
|
const additionalQuestionsDefaultValue = this.formController.getInitialValues();
|
|
128
|
-
return (h("form", { key: '
|
|
128
|
+
return (h("form", { key: '275b193388d360ab6dacfb70ea9e06d68d68cbf8' }, h("fieldset", { key: '740ce0b08ad00efa1345f69cf977e64283307533' }, h("legend", { key: '7f531cdf699ad93234bbdd5d9336ee782e770597' }, "Additional Questions"), h("hr", { key: 'cb81b0b4dc9e6a52ff9bf70571a200fee50e8146' }), h("div", { key: '9100fdb4857a5a9a2b42f0188cfac075974afbeb', class: 'row gy-3' }, h("div", { key: 'ee0885251b8e49cb33359a42897097552e9d0ff9', class: 'col-12 col-md-6' }, h("form-control-monetary", { key: '555b00e0b6728dca26a42813991f35dec41e2577', name: 'business_revenue', label: 'What is the business\u2019 estimated annual revenue from its primary business activities?', inputHandler: this.inputHandler, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '689ecc46bffe9cfe7190428e191802332485f139', class: 'col-12 col-md-6' }, h("form-control-monetary", { key: '19a4269b31af12f9e07655c9dc0d9db1de46caa2', name: 'business_payment_volume', label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'f6eebbdd589cf4eb506d3d94502a027e639889d9', class: 'col-12' }, h("form-control-select", { key: '112bb7ee88335d9b8e8f9300ff190f164b750b39', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: '49864b5aeca86d221cc12690e2f9976fe9ee86ef', class: 'col-12' }, h("form-control-select", { key: 'a07159d8e7e49b9b1df5bcf2dcede994d0059595', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: '3a03321d7dd9202c290443d756105bb2565a3e55', class: 'col-12' }, h("form-control-text", { key: '319a5fcb7ac6e975c41cfd5b19d5de0e98504f5d', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: 'e108f26d04e7f9510f89ab09daab53e86f5c30e1', class: 'col-12' }, h("form-control-select", { key: '45fb9296592415ddb947b55e3c7c73d198b96fac', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: '0b40ac8429c07279acb3d360124853a608a01664', class: 'col-12' }, h("form-control-text", { key: '880e00acdfa51f95b643f1ecc8d6fccba1167e6c', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_g = this.errors) === null || _g === void 0 ? void 0 : _g.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
|
|
@@ -191,8 +191,8 @@ const BusinessCoreInfoFormStepCore = class {
|
|
|
191
191
|
}
|
|
192
192
|
;
|
|
193
193
|
get patchPayload() {
|
|
194
|
-
let formValues =
|
|
195
|
-
return
|
|
194
|
+
let formValues = new CoreBusinessInfo(this.formController.values.getValue()).payload;
|
|
195
|
+
return formValues;
|
|
196
196
|
}
|
|
197
197
|
componentWillLoad() {
|
|
198
198
|
this.getBusiness && this.getData();
|
|
@@ -205,7 +205,7 @@ const BusinessCoreInfoFormStepCore = class {
|
|
|
205
205
|
}
|
|
206
206
|
render() {
|
|
207
207
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
208
|
-
return (h("form", { key: '
|
|
208
|
+
return (h("form", { key: 'ab0ae9821e19c2a2d1e87ce16b23cfe56bafb31b' }, h("fieldset", { key: 'eec949b50436218cee02c6410c34959a6b10ebf8' }, h("legend", { key: '34b37dddcb967275ddd3d561dd2931b74103c0ce' }, "General Info"), h("hr", { key: 'af37f3171790265c3b7d22d2328c31842c5a12ea' }), h("div", { key: 'ba4780eec04a8b34f644895913e99ea49c587f81', class: 'row gy-3' }, h("div", { key: '8109ee7485afc5a5ee3e38c947ef9387cab5daa4', class: 'col-12' }, h("form-control-text", { key: '885bc9f67fc4738cb5abc6165bf1f6f5b3382a90', name: 'legal_name', label: 'Legal Name', defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: '453b4e25b812015a50f72e76159111818d0065f5', class: 'col-12' }, h("form-control-text", { key: 'a63ec6c1e936ab1104b92e6fdd5f6a350559009c', name: 'doing_business_as', label: 'Doing Business As (DBA)', defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: '8a39b25c7d9c414569e22e73a98d7b136b0623dd', class: 'col-12 col-md-8' }, h("form-control-select", { key: '41d6d3a45431953746e86a5aea6ebb0a39674009', name: 'classification', label: 'Business Classification', options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: 'd98e5f2ee6e7d3ddc23ba5501db4f698cc88ba40', class: 'col-12 col-md-4' }, h("form-control-date", { key: '4ea36622261e3a649b934700ee676c062789c519', name: 'date_of_incorporation', label: 'Date of Incorporation', defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: '8617887e16cbc3a40b0c1ab56597d7098c7ac62f', class: 'col-12 col-md-6' }, h("form-control-text", { key: '9357ddb686194100fe705111bbc965c2956dddb4', name: 'industry', label: 'Industry', defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '968b0f492f354279736b531295a1e4813a5de0b0', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'd082445d9f876794e525839fb35457f114e89dac', name: 'tax_id', label: 'Tax ID (EIN or SSN)', defaultValue: coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, maxLength: 9 })), h("div", { key: 'a0e041bb3fa323e378d2b9730dd9055c9ecf1dfc', class: 'col-12' }, h("form-control-text", { key: '4994efe8c6cb5faf84accd0f2965b508d084144e', name: 'website_url', label: 'Website URL', defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '0f7f1548e704095aaef9d4fccd7c81284ff7bbed', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'e1cffd24b03e5e3655649b68900c74fcc89513c5', name: 'email', label: 'Email Address', defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '1732635477c58d1f57aa5b8dc0c560ae0c215501', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: '04979d08463efc69557b782fda772702935349a7', name: 'phone', label: 'Phone Number', defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
|
|
@@ -351,7 +351,7 @@ const BusinessOwnersFormStepCore = class {
|
|
|
351
351
|
let submittedData;
|
|
352
352
|
this.formLoading.emit(true);
|
|
353
353
|
this.patchBusiness({
|
|
354
|
-
payload:
|
|
354
|
+
payload: { owners: this.ownersPayload },
|
|
355
355
|
onSuccess: (response) => {
|
|
356
356
|
submittedData = response;
|
|
357
357
|
onSuccess();
|
|
@@ -425,9 +425,9 @@ const BusinessOwnersFormStepCore = class {
|
|
|
425
425
|
this.ownersPayload = updatedOwners;
|
|
426
426
|
}
|
|
427
427
|
render() {
|
|
428
|
-
return (h("div", { key: '
|
|
428
|
+
return (h("div", { key: 'f2358952d2d28841fb8e6bc66e9846eb2cdcc97e' }, h("legend", { key: 'ab3f7e6758cc50760681a9fdd07f8e137da65980' }, "Owners"), h("hr", { key: '57828746f9991da89e77a1f96b51f6df2d33d666' }), h("div", { key: '4f7f58bf1b5d40079228eef118946e17b407db63', class: 'row gy-3' }, this.ownersPayload.map((owner) => {
|
|
429
429
|
return (h("justifi-owner-form", { key: owner.id, authToken: this.authToken, businessId: this.businessId, ownerId: owner.id, removeOwner: this.removeOwnerForm, newFormOpen: this.newFormOpen, ownersLength: this.ownersPayload.length, allowOptionalFields: this.allowOptionalFields, ref: (ref) => this.matchRef(ref, owner.id) }));
|
|
430
|
-
})), h("div", { key: '
|
|
430
|
+
})), h("div", { key: '88dad43cc24d7c1e1220acb6b7791c2172074d61', class: 'd-flex justify-content-start' }, h("div", { key: '9359481d78e5c3ba9599d2fce5837c5fdfe1d6f0', class: 'gap-2' }, h(Button, { key: '04ee1c49c34567b079432df8fb2b1b298fb7d7a3', variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner")))));
|
|
431
431
|
}
|
|
432
432
|
static get watchers() { return {
|
|
433
433
|
"ownersPayload": ["ownersWatcher"]
|
|
@@ -491,8 +491,8 @@ const BusinessRepresentativeFormStepCore = class {
|
|
|
491
491
|
this.formController.validateAndSubmit(() => this.sendData(onSuccess));
|
|
492
492
|
}
|
|
493
493
|
get patchPayload() {
|
|
494
|
-
let formValues =
|
|
495
|
-
return
|
|
494
|
+
let formValues = new Representative(this.formController.values.getValue()).payload;
|
|
495
|
+
return { representative: formValues };
|
|
496
496
|
}
|
|
497
497
|
componentWillLoad() {
|
|
498
498
|
this.getBusiness && this.getData();
|
|
@@ -504,7 +504,7 @@ const BusinessRepresentativeFormStepCore = class {
|
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
506
|
render() {
|
|
507
|
-
return (h("justifi-business-representative-form-inputs", { key: '
|
|
507
|
+
return (h("justifi-business-representative-form-inputs", { key: '855736c2c1565b0b9e2cf57131a72298ccc889d5', representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }));
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
|
|
@@ -582,8 +582,8 @@ const LegalAddressFormStepCore = class {
|
|
|
582
582
|
}
|
|
583
583
|
;
|
|
584
584
|
get patchPayload() {
|
|
585
|
-
let formValues =
|
|
586
|
-
return
|
|
585
|
+
let formValues = new Address(this.formController.values.getValue()).payload;
|
|
586
|
+
return { legal_address: formValues };
|
|
587
587
|
}
|
|
588
588
|
componentWillLoad() {
|
|
589
589
|
this.getBusiness && this.getData();
|
|
@@ -597,7 +597,7 @@ const LegalAddressFormStepCore = class {
|
|
|
597
597
|
render() {
|
|
598
598
|
var _a, _b, _c, _d, _e, _f;
|
|
599
599
|
const legalAddressDefaultValue = this.formController.getInitialValues();
|
|
600
|
-
return (h("form", { key: '
|
|
600
|
+
return (h("form", { key: '5a95fe5a130deded7e160e6fe4ba1d09e6a6aabc' }, h("fieldset", { key: '2011fac5c860b7beee5eaac28e697b284067f2e6' }, h("legend", { key: 'dbe411d80d10a71bc63f18fcdb58a40b124e8eaf' }, "Business Legal Address"), h("hr", { key: '4a91dd5e67e5770778d2dd59716e1e532d644ee9' }), h("div", { key: 'cd53516a98498ab82ab347a1f7c836be262b9fdb', class: 'row gy-3' }, h("div", { key: '14cd5fee5661681ccff95eabf8cd6f2d4cff2296', class: 'col-12' }, h("form-control-text", { key: 'e4b0a5e30fc1a35e5127a76710211874fb68898b', name: 'line1', label: 'Legal Address', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { key: '2c35da509732e73e2abb4365d6d9e2056d7ce771', class: 'col-12' }, h("form-control-text", { key: 'c8ae2a5c75d0fe8c5ddd46d9150590b8a4f99a5e', name: 'line2', label: 'Address Line 2', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { key: '07649ebd5a848eee63398965c30e8e30fcc88354', class: 'col-12' }, h("form-control-text", { key: 'cb25047c3458124f7d837b7948e807214f1a0a0a', name: 'city', label: 'City', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { key: 'ce3ddc5f3639503dbc02668aea7139ffff376545', class: 'col-12' }, h("form-control-select", { key: '00d18b4af1f415828b40404888a6c69d0611d0cc', name: 'state', label: 'State', options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { key: '1988bd739af107d9595f6fed897f257da13ac997', class: 'col-12' }, h("form-control-text", { key: '55144c39845d4cc36704170b73458f761f311d00', name: 'postal_code', label: 'Postal Code', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'cccba799a75280693f461f390121b13006877f35', class: 'col-12' }, h("form-control-select", { key: 'e49b21a781280fb2e9cc9f6b88ddcc6d7408c5f8', name: 'country', label: 'Country', options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
|
|
601
601
|
// just for now so we skip handling country specificities
|
|
602
602
|
disabled: true }))))));
|
|
603
603
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { A as Api } from './Api-
|
|
1
|
+
import { A as Api } from './Api-c8abc2e0.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
|
import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
6
7
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
7
8
|
|
|
8
9
|
class PayoutService {
|
|
9
10
|
async fetchPayouts(accountId, authToken, params) {
|
|
10
|
-
const api = Api({ authToken, apiOrigin:
|
|
11
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
11
12
|
const endpoint = `account/${accountId}/payouts`;
|
|
12
13
|
return api.get(endpoint, params);
|
|
13
14
|
}
|
|
14
15
|
async fetchPayout(payoutId, authToken) {
|
|
15
|
-
const api = Api({ authToken, apiOrigin:
|
|
16
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
16
17
|
const endpoint = `payouts/${payoutId}`;
|
|
17
18
|
return api.get(endpoint);
|
|
18
19
|
}
|
|
19
20
|
async fetchCSV(payoutId, authToken) {
|
|
20
|
-
const api = Api({ authToken, apiOrigin:
|
|
21
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
21
22
|
const endpoint = `reports/payouts/${payoutId}`;
|
|
22
23
|
return api.get(endpoint);
|
|
23
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { f as formatCurrency, a as formatDisplayDate } from './utils-
|
|
2
|
+
import { f as formatCurrency, a as formatDisplayDate } from './utils-e66d8bca.js';
|
|
3
3
|
import { E as ErrorState, L as LoadingState } from './utils-01413a95.js';
|
|
4
4
|
|
|
5
5
|
/*!
|
|
@@ -1,17 +1,18 @@
|
|
|
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-1f589b6e.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,
|
|
8
|
-
import { c as bankAccountTypeOptions } from './business-form-options-
|
|
9
|
-
import { A as Api } from './Api-
|
|
7
|
+
import { z as bankNameValidation, A as nicknameValidation, u 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-e725d701.js';
|
|
8
|
+
import { c as bankAccountTypeOptions } from './business-form-options-d790973e.js';
|
|
9
|
+
import { A as Api } from './Api-c8abc2e0.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-27764a9d.js';
|
|
13
14
|
import { n as numberOnlyHandler } from './utils-3bb6347a.js';
|
|
14
|
-
import { B as Business } from './Business-
|
|
15
|
+
import { B as Business } from './Business-b73d5055.js';
|
|
15
16
|
import { S as Skeleton } from './skeleton-145a80d4.js';
|
|
16
17
|
import { B as Button } from './button-34e75e0f.js';
|
|
17
18
|
import './utils-b10dae27.js';
|
|
@@ -143,7 +144,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
143
144
|
try {
|
|
144
145
|
const formValues = this.formController.values.getValue();
|
|
145
146
|
const payload = Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
|
|
146
|
-
const response = await this.api.post(this.bankAccountEndpoint,
|
|
147
|
+
const response = await this.api.post(this.bankAccountEndpoint, payload);
|
|
147
148
|
this.handleResponse(response, onSuccess);
|
|
148
149
|
}
|
|
149
150
|
catch (error) {
|
|
@@ -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: 'c2bdcd5ab6301d1a39e4d774df101281c41e2002' }, h("fieldset", { key: '7f6b607be5b7bc5fcd0dc1687adaa1ad00d7d2e9' }, h("legend", { key: '91b68746c65bb68f4fbd2eef151258e6915f8e35' }, "Bank Account Info"), h("hr", { key: '5eceedbf59faef10757c9e2b04d4dc4cd6b88a9b' }), h("div", { key: 'd3185db7fceb9851ccb44c1c89f8cbe5a37c24e0', class: "row gy-3" }, h("div", { key: '625caf0e9b93c244d94c69174ffff57126d39fa1', class: "col-12" }, h("form-control-text", { key: 'ddf3206b09047dfea56df850babe6c8f92ed33ee', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'd7d498353eec8e1947ce748aa35cbee63e793817', class: "col-12" }, h("form-control-text", { key: 'a80050dcd088db0209c2e5da65b310d7fc7877f5', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'ea5578470e0e4d0fd5b973807475a02c7764c9c8', class: "col-12" }, h("form-control-text", { key: 'dd8c77b43ddfca61cfd5ed39ce6e142654f18d9f', 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: 'cb3256226c5fdfa5ff2a02c456a6c384e06d16a6', class: "col-12" }, h("form-control-select", { key: 'a865f48350a0ae6b6a2a540dc2d54de72a8af074', 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: 'aa9062a25dade06db1f175d4233f2e5bb4e7ecd7', class: "col-12" }, h("form-control-text", { key: '1a87920e4df50178625446c770e4182d918664c7', 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: 'c72858a29aa1289b367c0eb89d6cc0eded23346d', class: "col-12" }, h("form-control-text", { key: 'b7fb93bcf16c01689245d5aca11142b013fe6adc', 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
|
|
|
@@ -330,7 +331,7 @@ const BusinessDocumentFormStep = class {
|
|
|
330
331
|
this.formLoading.emit(true);
|
|
331
332
|
const payload = docData.record_data;
|
|
332
333
|
try {
|
|
333
|
-
const response = await this.api.post(this.documentEndpoint,
|
|
334
|
+
const response = await this.api.post(this.documentEndpoint, payload);
|
|
334
335
|
return this.handleDocRecordResponse(docData, response);
|
|
335
336
|
}
|
|
336
337
|
catch (error) {
|
|
@@ -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: '38bb9070ca04f773ec092ebb14ce8ad20f33d8cf' }, h("fieldset", { key: '9c736d11200bb9c5a37c1319f3bfb349b7a5e93f' }, h("legend", { key: '92ed2fb864e85e38532af364518c25ef4bd275a5' }, "Document Uploads"), h("p", { key: 'f5803df74a5d0bc4e544c6cc968333f2a3f77385' }, "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: '0c696d1bdb614bdacb3cbadeee66c95149efda68' }), this.documentsOnFile, h("div", { key: '7919205dfda677526d810a9fa1507ed8a55eafb8', class: "d-flex flex-column" }, this.formInputs))));
|
|
466
467
|
}
|
|
467
468
|
};
|
|
468
469
|
|
|
@@ -603,7 +604,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
603
604
|
this.sendData = async (onSuccess) => {
|
|
604
605
|
this.formLoading.emit(true);
|
|
605
606
|
try {
|
|
606
|
-
const payload =
|
|
607
|
+
const payload = this.termsPayload;
|
|
607
608
|
const response = await this.api.post(this.termsConditionsEndpoint, payload);
|
|
608
609
|
this.handleResponse(response, onSuccess);
|
|
609
610
|
}
|
|
@@ -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: 'a292e2b1b69d152009000d9e7009e5ab07698bc8' }, h("fieldset", { key: '30843e9ed0029f64abcf076512af82974dd99598' }, h("legend", { key: '6453679a074056668bdd93cb91d2d725b73fb0da' }, "Terms and Conditions"), h("hr", { key: '6a44c1128e3dceb770b16533aa61fb5e81f5dda2' }), h("justifi-business-terms-conditions-text", { key: '714c9f81c1d1f91712a276259acf4eb6734b40d4' }), h("br", { key: '5e955908e53af5ade77fca9f2a47e8a9d10e7ad8' }), h("div", { key: '7c6ca9d2634c7cc6988292ffedf86b64c3865557', class: "row-gy-3" }, h("div", { key: 'e8f01c4bdcc07e0063e3b8f5f1acbabc9b3310f7', class: "col-12" }, h("form-control-checkbox", { key: 'e09eeb02dc30a9461e958bf43685d2c58f4a608f', 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,7 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import {
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { c as config } from './config-27764a9d.js';
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
|
|
4
|
+
import './package-0935c5e5.js';
|
|
5
|
+
import './Api-c8abc2e0.js';
|
|
5
6
|
|
|
6
7
|
const BankAccountForm = class {
|
|
7
8
|
constructor(hostRef) {
|
|
@@ -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,11 +1,11 @@
|
|
|
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 {
|
|
3
|
+
import { u as identityNameValidation, l as lineOneValidation, k as lineTwoValidation, m as cityValidation, n as stateValidation, q as postalValidation } from './schema-validations-e725d701.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-
|
|
8
|
-
import './Business-
|
|
7
|
+
import './business-form-options-d790973e.js';
|
|
8
|
+
import './Business-b73d5055.js';
|
|
9
9
|
import './helpers-96ea3464.js';
|
|
10
10
|
|
|
11
11
|
const BillingFormSchema = create$3({
|
|
@@ -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-
|
|
4
|
-
import { B as Business } from './Business-
|
|
3
|
+
import { B as BusinessService } from './business.service-1f589b6e.js';
|
|
4
|
+
import { B as Business } from './Business-b73d5055.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-
|
|
8
|
-
import './
|
|
7
|
+
import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
|
|
8
|
+
import './config-27764a9d.js';
|
|
9
|
+
import './Api-c8abc2e0.js';
|
|
9
10
|
import './helpers-96ea3464.js';
|
|
10
11
|
import './state-options-a356fb11.js';
|
|
11
|
-
import './package-
|
|
12
|
+
import './package-0935c5e5.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
|
|
5
|
-
import { A as Api } from './Api-
|
|
3
|
+
import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './business-additional-questions-schema-a5583cf8.js';
|
|
4
|
+
import { a as addressSchema, i as identitySchema } from './business-identity-schema-9e3269fb.js';
|
|
5
|
+
import { A as Api } from './Api-c8abc2e0.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-27764a9d.js';
|
|
9
10
|
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
10
|
-
import { B as Business } from './Business-
|
|
11
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
11
|
+
import { B as Business } from './Business-b73d5055.js';
|
|
12
|
+
import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
|
|
12
13
|
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
13
|
-
import './schema-validations-
|
|
14
|
+
import './schema-validations-e725d701.js';
|
|
14
15
|
import './state-options-a356fb11.js';
|
|
15
|
-
import './business-form-options-
|
|
16
|
+
import './business-form-options-d790973e.js';
|
|
16
17
|
import './helpers-96ea3464.js';
|
|
17
|
-
import './package-
|
|
18
|
+
import './package-0935c5e5.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
|
|
|
@@ -36,8 +37,8 @@ const BusinessForm = class {
|
|
|
36
37
|
try {
|
|
37
38
|
const values = this.formController.values.getValue();
|
|
38
39
|
const initialValues = this.formController.getInitialValues();
|
|
39
|
-
const payload =
|
|
40
|
-
const response = await this.api.patch(this.businessEndpoint,
|
|
40
|
+
const payload = new Business(Object.assign(Object.assign({}, initialValues), values)).payload;
|
|
41
|
+
const response = await this.api.patch(this.businessEndpoint, payload);
|
|
41
42
|
this.handleReponse(response);
|
|
42
43
|
}
|
|
43
44
|
catch (error) {
|
|
@@ -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: 'e388e1e7658969f0e5687102a62345e2790da97a', exportparts: "label,input,input-invalid" }, h("form", { key: 'c22a562e57539e982a071b1906e5bf0bcc249e7d', onSubmit: this.validateAndSubmit }, h("div", { key: '44243cd965b448f5be9058880aa2deb32f4ce8dc', class: "row gap-3" }, h("h1", { key: 'd666ed8ddacc8ac05d7f42c2f4824208b92cdb3f' }, this.title), h("form-alert", { key: 'b1d4025078c4373a789609f2e14d309f0ee280fe', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'cdc1d597a5dbf9581182de302a453e4ea98bb28f', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: '2333164de020eadf54da91cabdcbeb87a2fd1b75', formController: this.formController })), h("div", { key: '74eafa5c419f6d6fe2eb3eeb8521e12175f7ee3a', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '1e5a373f95a77bf3aba1a9f3538b3a2ac3dbf716', formController: this.formController })), h("div", { key: 'ec9f6195f3674b426722463341445f0ed1746178', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: '0adbc60492f4ad71e3877c446376999418b7dc15', formController: this.formController })), h("div", { key: 'cdfb8d0d40e9f888afd9c23cd97d33d861d16f62', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '4d03ec95b7c2918494c9970b3e6a5826d4d69a10', formController: this.formController })), h("div", { key: '0682dba469e57a938b175499312de5d5c4f55a69', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '64791e2742ee129787094c7123e87c4262735556', 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,7 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import {
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { c as config } from './config-27764a9d.js';
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
|
|
4
|
+
import './package-0935c5e5.js';
|
|
5
|
+
import './Api-c8abc2e0.js';
|
|
5
6
|
|
|
6
7
|
const CardForm = class {
|
|
7
8
|
constructor(hostRef) {
|
|
@@ -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
|
-
import { f as formatCurrency } from './utils-
|
|
2
|
+
import { f as formatCurrency } from './utils-e66d8bca.js';
|
|
3
|
+
import { c as config } from './config-27764a9d.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;
|