@justifi/webcomponents 4.12.1 → 4.12.2
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/{Business-c928bf29.js → Business-21cef37d.js} +18 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{business-additional-questions-schema-3813615c.js → business-additional-questions-schema-f5f303fb.js} +3 -1
- package/dist/cjs/{business-form-types-4b138bf2.js → business-form-types-a3cc374d.js} +60 -1
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +5 -5
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-owner-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/{payload-parsers-58d3798e.js → payload-parsers-74693a97.js} +5 -1
- package/dist/collection/api/Business.js +18 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +2 -2
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +3 -1
- package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -1
- package/dist/collection/components/business-forms/utils/business-form-types.js +59 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/docs.json +2 -2
- package/dist/esm/{Business-6cb1b9c8.js → Business-0e8a9a3a.js} +19 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-228d86e0.js → business-additional-questions-schema-a84dd641.js} +3 -1
- package/dist/esm/{business-form-types-5ba52d61.js → business-form-types-7420dc96.js} +60 -2
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +5 -5
- package/dist/esm/justifi-additional-questions_4.entry.js +3 -3
- package/dist/esm/justifi-billing-form_4.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +1 -1
- package/dist/esm/justifi-business-form.entry.js +4 -4
- package/dist/esm/justifi-business-list.entry.js +1 -1
- package/dist/esm/justifi-owner-form.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/{payload-parsers-3e817fe9.js → payload-parsers-0c4fc2b1.js} +5 -2
- package/dist/module/Business.js +19 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-core-info-form-step.js +2 -2
- package/dist/module/business-core-info-schema.js +3 -1
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-form-types.js +60 -2
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/generic-info-details2.js +2 -2
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +3 -3
- package/dist/module/justifi-business-list.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/legal-address-form-step.js +2 -2
- package/dist/module/owner-form.js +2 -2
- package/dist/module/payload-parsers.js +5 -2
- package/dist/module/payment-method-form.js +2 -2
- package/dist/types/api/Business.d.ts +19 -0
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +2 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +5 -1
- package/dist/webcomponents/{p-31e70d65.entry.js → p-18cf5a16.entry.js} +1 -1
- package/dist/webcomponents/{p-edab5f2b.entry.js → p-51ee396f.entry.js} +1 -1
- package/dist/webcomponents/p-52e4cc27.js +1 -0
- package/dist/webcomponents/p-602a1588.entry.js +1 -0
- package/dist/webcomponents/p-6ec77980.entry.js +1 -0
- package/dist/webcomponents/{p-07080c01.entry.js → p-81c43ba5.entry.js} +1 -1
- package/dist/webcomponents/{p-31ccb5f0.entry.js → p-9e35b0f6.entry.js} +1 -1
- package/dist/webcomponents/p-9ec89299.entry.js +1 -0
- package/dist/webcomponents/{p-71b8e2da.entry.js → p-b38baa84.entry.js} +1 -1
- package/dist/webcomponents/p-bfc634c6.entry.js +1 -0
- package/dist/webcomponents/p-cb86b2fd.js +1 -0
- package/dist/webcomponents/p-d2b7beac.js +1 -0
- package/dist/webcomponents/p-e3946c2b.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-0d371ff5.entry.js +0 -1
- package/dist/webcomponents/p-26fe62d6.entry.js +0 -1
- package/dist/webcomponents/p-4c705f56.js +0 -1
- package/dist/webcomponents/p-737473d8.js +0 -1
- package/dist/webcomponents/p-787d8f52.js +0 -1
- package/dist/webcomponents/p-889a83d2.js +0 -1
- package/dist/webcomponents/p-9b0e5c25.entry.js +0 -1
- package/dist/webcomponents/p-c865cda8.entry.js +0 -1
|
@@ -76,6 +76,22 @@ var BusinessType;
|
|
|
76
76
|
BusinessType["non_profit"] = "non_profit";
|
|
77
77
|
BusinessType["government_entity"] = "government_entity";
|
|
78
78
|
})(BusinessType || (BusinessType = {}));
|
|
79
|
+
var BusinessStructure;
|
|
80
|
+
(function (BusinessStructure) {
|
|
81
|
+
BusinessStructure["sole_proprietorship"] = "sole_proprietorship";
|
|
82
|
+
BusinessStructure["single_llc"] = "single_llc";
|
|
83
|
+
BusinessStructure["multi_llc"] = "multi_llc";
|
|
84
|
+
BusinessStructure["private_partnership"] = "private_partnership";
|
|
85
|
+
BusinessStructure["private_corporation"] = "private_corporation";
|
|
86
|
+
BusinessStructure["unincorporated_association"] = "unincorporated_association";
|
|
87
|
+
BusinessStructure["public_partnership"] = "public_partnership";
|
|
88
|
+
BusinessStructure["public_corporation"] = "public_corporation";
|
|
89
|
+
BusinessStructure["incorporated"] = "incorporated";
|
|
90
|
+
BusinessStructure["unincorporated"] = "unincorporated";
|
|
91
|
+
BusinessStructure["government_unit"] = "government_unit";
|
|
92
|
+
BusinessStructure["government_instrumentality"] = "government_instrumentality";
|
|
93
|
+
BusinessStructure["tax_exempt_government_instrumentality"] = "tax_exempt_government_instrumentality";
|
|
94
|
+
})(BusinessStructure || (BusinessStructure = {}));
|
|
79
95
|
class Address {
|
|
80
96
|
constructor(address) {
|
|
81
97
|
this.id = address.id;
|
|
@@ -101,6 +117,7 @@ class AdditionalQuestions {
|
|
|
101
117
|
class CoreBusinessInfo {
|
|
102
118
|
constructor(coreBusinessInfo) {
|
|
103
119
|
this.business_type = coreBusinessInfo.business_type;
|
|
120
|
+
this.business_structure = coreBusinessInfo.business_structure;
|
|
104
121
|
this.legal_name = coreBusinessInfo.legal_name;
|
|
105
122
|
this.doing_business_as = coreBusinessInfo.doing_business_as;
|
|
106
123
|
this.industry = coreBusinessInfo.industry;
|
|
@@ -115,6 +132,7 @@ class Business {
|
|
|
115
132
|
this.additional_questions = business.additional_questions || {};
|
|
116
133
|
this.bank_accounts = business.bank_accounts;
|
|
117
134
|
this.business_type = business.business_type;
|
|
135
|
+
this.business_structure = business.business_structure;
|
|
118
136
|
this.created_at = business.created_at;
|
|
119
137
|
this.documents = business.documents;
|
|
120
138
|
this.doing_business_as = business.doing_business_as;
|
|
@@ -135,4 +153,4 @@ class Business {
|
|
|
135
153
|
}
|
|
136
154
|
}
|
|
137
155
|
|
|
138
|
-
export { AdditionalQuestions as A, Business as B, CoreBusinessInfo as C, Owner as O, Representative as R, BusinessType as a,
|
|
156
|
+
export { AdditionalQuestions as A, Business as B, CoreBusinessInfo as C, Owner as O, Representative as R, BusinessType as a, BusinessStructure as b, Address as c, deconstructDate as d };
|
|
@@ -26,10 +26,10 @@ const GenericInfoDetails = class {
|
|
|
26
26
|
this.business = undefined;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
29
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
30
30
|
if (!this.business)
|
|
31
31
|
return null;
|
|
32
|
-
return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Type", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.business_type) }), h(DetailItem, { title: "
|
|
32
|
+
return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Type", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.business_type) }), h(DetailItem, { title: "Business Structure", value: snakeCaseToHumanReadable((_d = this.business) === null || _d === void 0 ? void 0 : _d.business_structure) }), h(DetailItem, { title: "Industry", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.tax_id }), h(DetailItem, { title: "Website URL", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.website_url }), h(DetailItem, { title: "Email Address", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.email }), h(DetailItem, { title: "Phone Number", value: (_j = this.business) === null || _j === void 0 ? void 0 : _j.phone }))))));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
GenericInfoDetails.style = genericInfoDetailsCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as create$3, a as create$6 } from './index.esm-22b47398.js';
|
|
2
|
-
import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, c as phoneValidation, d as doingBusinessAsValidation, f as businessTypeValidation, g as industryValidation, t as taxIdValidation } from './payload-parsers-
|
|
2
|
+
import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, c as phoneValidation, d as doingBusinessAsValidation, f as businessTypeValidation, g as businessStructureValidation, h as industryValidation, t as taxIdValidation } from './payload-parsers-0c4fc2b1.js';
|
|
3
3
|
|
|
4
4
|
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
5
5
|
const schema = create$3({
|
|
@@ -9,6 +9,7 @@ const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
9
9
|
phone: phoneValidation.required('Enter phone number'),
|
|
10
10
|
doing_business_as: doingBusinessAsValidation.required('Enter doing business as'),
|
|
11
11
|
business_type: businessTypeValidation.required('Select business type'),
|
|
12
|
+
business_structure: businessStructureValidation.required('Select business structure'),
|
|
12
13
|
industry: industryValidation.required('Enter a business industry'),
|
|
13
14
|
tax_id: taxIdValidation.required('Enter tax id'),
|
|
14
15
|
});
|
|
@@ -19,6 +20,7 @@ const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
19
20
|
phone: phoneValidation.nullable(),
|
|
20
21
|
doing_business_as: doingBusinessAsValidation.nullable(),
|
|
21
22
|
business_type: businessTypeValidation.nullable(),
|
|
23
|
+
business_structure: businessStructureValidation.nullable(),
|
|
22
24
|
industry: industryValidation.nullable(),
|
|
23
25
|
tax_id: taxIdValidation.nullable(),
|
|
24
26
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BusinessType } from './Business-
|
|
1
|
+
import { a as BusinessType, b as BusinessStructure } from './Business-0e8a9a3a.js';
|
|
2
2
|
|
|
3
3
|
var BusinessFormServerErrors;
|
|
4
4
|
(function (BusinessFormServerErrors) {
|
|
@@ -46,5 +46,63 @@ const BusinessTypeOptions = [
|
|
|
46
46
|
value: BusinessType.government_entity,
|
|
47
47
|
},
|
|
48
48
|
];
|
|
49
|
+
const BusinessStructureOptions = [
|
|
50
|
+
{
|
|
51
|
+
label: 'Choose business structure',
|
|
52
|
+
value: '',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Sole Proprietorship',
|
|
56
|
+
value: BusinessStructure.sole_proprietorship,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'LLC (Single)',
|
|
60
|
+
value: BusinessStructure.single_llc,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'LLC (Multiple)',
|
|
64
|
+
value: BusinessStructure.multi_llc,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: 'Private Partnership',
|
|
68
|
+
value: BusinessStructure.private_partnership,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: 'Private Corporation',
|
|
72
|
+
value: BusinessStructure.private_corporation,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'Unincorporated Association',
|
|
76
|
+
value: BusinessStructure.unincorporated_association,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Public Partnership',
|
|
80
|
+
value: BusinessStructure.public_partnership,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Public Corporation',
|
|
84
|
+
value: BusinessStructure.public_corporation,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'Incorporated',
|
|
88
|
+
value: BusinessStructure.incorporated,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'Unincorporated',
|
|
92
|
+
value: BusinessStructure.unincorporated,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'Government Unit',
|
|
96
|
+
value: BusinessStructure.government_unit,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: 'Government Instrumentality',
|
|
100
|
+
value: BusinessStructure.government_instrumentality,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: 'Tax Exempt Government Instrumentality',
|
|
104
|
+
value: BusinessStructure.tax_exempt_government_instrumentality,
|
|
105
|
+
},
|
|
106
|
+
];
|
|
49
107
|
|
|
50
|
-
export { BusinessFormServerErrors as B, OwnerFormClickActions as O, BusinessFormClickActions as a, BusinessTypeOptions as b,
|
|
108
|
+
export { BusinessFormServerErrors as B, OwnerFormClickActions as O, BusinessFormClickActions as a, BusinessTypeOptions as b, BusinessStructureOptions as c, OwnerFormServerErrors as d };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-83dcf934.js';
|
|
2
2
|
import { F as FormController } from './form-5279c05a.js';
|
|
3
|
-
import { A as AdditionalQuestions, C as CoreBusinessInfo, O as Owner, R as Representative, d as deconstructDate,
|
|
3
|
+
import { A as AdditionalQuestions, C as CoreBusinessInfo, O as Owner, R as Representative, d as deconstructDate, c as Address } from './Business-0e8a9a3a.js';
|
|
4
4
|
import { A as Api } from './Api-0e88671c.js';
|
|
5
5
|
import './Pagination-afc8f96d.js';
|
|
6
6
|
import './Payment-ef9fc1ae.js';
|
|
7
7
|
import './Payout-dfe15b00.js';
|
|
8
8
|
import { c as config } from './config-476c7241.js';
|
|
9
|
-
import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './business-additional-questions-schema-
|
|
10
|
-
import { B as BusinessFormServerErrors, b as BusinessTypeOptions, O as OwnerFormClickActions } from './business-form-types-
|
|
9
|
+
import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './business-additional-questions-schema-a84dd641.js';
|
|
10
|
+
import { B as BusinessFormServerErrors, b as BusinessTypeOptions, c as BusinessStructureOptions, O as OwnerFormClickActions } from './business-form-types-7420dc96.js';
|
|
11
11
|
import { T as TAX_ID_MASKS, P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks-84875967.js';
|
|
12
|
-
import {
|
|
12
|
+
import { j as parseCoreInfo, k as parseIdentityInfo, i as identitySchema, l as parseAddressInfo, a as addressSchema } from './payload-parsers-0c4fc2b1.js';
|
|
13
13
|
import { e as flattenNestedObject } from './utils-243abdb4.js';
|
|
14
14
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
15
15
|
import { f as filterPostalInput } from './utils-6f05d9d7.js';
|
|
@@ -178,7 +178,7 @@ const BusinessCoreInfoFormStep = class {
|
|
|
178
178
|
}
|
|
179
179
|
render() {
|
|
180
180
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
181
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })))))));
|
|
181
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("form", null, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_structure", label: "Business Structure", options: BusinessStructureOptions, defaultValue: coreInfoDefaultValue.business_structure, error: this.errors.business_structure, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })))))));
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
BusinessCoreInfoFormStep.style = businessCoreInfoFormStepCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-83dcf934.js';
|
|
2
|
-
import { b as BusinessTypeOptions } from './business-form-types-
|
|
2
|
+
import { b as BusinessTypeOptions, c as BusinessStructureOptions } from './business-form-types-7420dc96.js';
|
|
3
3
|
import { T as TAX_ID_MASKS, P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks-84875967.js';
|
|
4
|
-
import { C as CoreBusinessInfo, d as deconstructDate } from './Business-
|
|
4
|
+
import { C as CoreBusinessInfo, d as deconstructDate } from './Business-0e8a9a3a.js';
|
|
5
5
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
6
6
|
import { f as filterPostalInput } from './utils-6f05d9d7.js';
|
|
7
7
|
|
|
@@ -48,7 +48,7 @@ const BusinessCoreInfo = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
51
|
-
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
51
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("fieldset", null, h("legend", null, "General Info"), h("hr", null), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, error: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, error: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_type", label: "Business Type", options: BusinessTypeOptions, defaultValue: coreInfoDefaultValue.business_type, error: this.errors.business_type, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "business_structure", label: "Business Structure", options: BusinessStructureOptions, defaultValue: coreInfoDefaultValue.business_structure, error: this.errors.business_structure, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, error: this.errors.industry, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "tax_id", label: "Tax ID", defaultValue: coreInfoDefaultValue.tax_id, error: this.errors.tax_id, inputHandler: this.inputHandler, mask: TAX_ID_MASKS.US })), h("div", { class: "col-12" }, h("form-control-text", { name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, error: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-text", { name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, error: this.errors.email, inputHandler: this.inputHandler })), h("div", { class: "col-12 col-md-6" }, h("form-control-number-masked", { name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, error: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
BusinessCoreInfo.style = businessCoreInfoCss;
|
|
@@ -1563,7 +1563,7 @@ const MessageEventType = {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
|
|
1565
1565
|
const name = "@justifi/webcomponents";
|
|
1566
|
-
const version = "4.12.
|
|
1566
|
+
const version = "4.12.2";
|
|
1567
1567
|
const description = "JustiFi Web Components";
|
|
1568
1568
|
const main = "dist/module/index.js";
|
|
1569
1569
|
const module = "dist/module/index.js";
|
|
@@ -1796,11 +1796,11 @@ const PaymentMethodForm = class {
|
|
|
1796
1796
|
render() {
|
|
1797
1797
|
return (h(Host, null, h("iframe", { id: `justifi-payment-method-form-${this.paymentMethodFormType}`, src: this.getIframeSrc(), ref: el => {
|
|
1798
1798
|
this.iframeElement = el;
|
|
1799
|
+
this.initializeFrameCommunicationService();
|
|
1799
1800
|
}, onLoad: () => {
|
|
1800
1801
|
iframeResizer({
|
|
1801
1802
|
scrollbars: false,
|
|
1802
1803
|
}, this.iframeElement);
|
|
1803
|
-
this.initializeFrameCommunicationService();
|
|
1804
1804
|
this.sendStyleOverrides();
|
|
1805
1805
|
} })));
|
|
1806
1806
|
}
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-8
|
|
|
2
2
|
import { E as ErrorState } from './utils-210fdf39.js';
|
|
3
3
|
import { c as config } from './config-476c7241.js';
|
|
4
4
|
import { A as Api } from './Api-0e88671c.js';
|
|
5
|
-
import { B as Business } from './Business-
|
|
5
|
+
import { B as Business } from './Business-0e8a9a3a.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, g as getErrorMessage, a as getErrorCode, b as ComponentErrorCodes } from './utils-4609f32c.js';
|
|
7
7
|
import './state-options-a356fb11.js';
|
|
8
8
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-83dcf934.js';
|
|
2
2
|
import { F as FormController } from './form-5279c05a.js';
|
|
3
3
|
import { c as create$3 } from './index.esm-22b47398.js';
|
|
4
|
-
import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './business-additional-questions-schema-
|
|
5
|
-
import { a as addressSchema, i as identitySchema, p as parseBusiness } from './payload-parsers-
|
|
4
|
+
import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './business-additional-questions-schema-a84dd641.js';
|
|
5
|
+
import { a as addressSchema, i as identitySchema, p as parseBusiness } from './payload-parsers-0c4fc2b1.js';
|
|
6
6
|
import { A as Api } from './Api-0e88671c.js';
|
|
7
7
|
import './Pagination-afc8f96d.js';
|
|
8
8
|
import './Payment-ef9fc1ae.js';
|
|
9
9
|
import './Payout-dfe15b00.js';
|
|
10
10
|
import { c as config } from './config-476c7241.js';
|
|
11
11
|
import { F as FormAlert } from './utils-6f05d9d7.js';
|
|
12
|
-
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-
|
|
13
|
-
import { B as Business } from './Business-
|
|
12
|
+
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-7420dc96.js';
|
|
13
|
+
import { B as Business } from './Business-0e8a9a3a.js';
|
|
14
14
|
import './state-options-a356fb11.js';
|
|
15
15
|
|
|
16
16
|
const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
|
|
@@ -3,7 +3,7 @@ import { A as Api } from './Api-0e88671c.js';
|
|
|
3
3
|
import { p as pagingDefaults } from './Pagination-afc8f96d.js';
|
|
4
4
|
import './Payment-ef9fc1ae.js';
|
|
5
5
|
import './Payout-dfe15b00.js';
|
|
6
|
-
import { B as Business } from './Business-
|
|
6
|
+
import { B as Business } from './Business-0e8a9a3a.js';
|
|
7
7
|
import { s as snakeCaseToHumanReadable, f as formatDate } from './utils-243abdb4.js';
|
|
8
8
|
import { c as config } from './config-476c7241.js';
|
|
9
9
|
import './state-options-a356fb11.js';
|
|
@@ -5,11 +5,11 @@ import { A as Api } from './Api-0e88671c.js';
|
|
|
5
5
|
import './Pagination-afc8f96d.js';
|
|
6
6
|
import './Payment-ef9fc1ae.js';
|
|
7
7
|
import './Payout-dfe15b00.js';
|
|
8
|
-
import { O as Owner, d as deconstructDate } from './Business-
|
|
9
|
-
import {
|
|
8
|
+
import { O as Owner, d as deconstructDate } from './Business-0e8a9a3a.js';
|
|
9
|
+
import { k as parseIdentityInfo, i as identitySchema } from './payload-parsers-0c4fc2b1.js';
|
|
10
10
|
import { c as config } from './config-476c7241.js';
|
|
11
11
|
import { L as LoadingSpinner } from './utils-6f05d9d7.js';
|
|
12
|
-
import {
|
|
12
|
+
import { d as OwnerFormServerErrors, O as OwnerFormClickActions } from './business-form-types-7420dc96.js';
|
|
13
13
|
import './state-options-a356fb11.js';
|
|
14
14
|
import './index.esm-22b47398.js';
|
|
15
15
|
|