bhl-forms 0.7.3 → 0.7.4
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/bhl-forms.es.js +551 -543
- package/dist/bhl-forms.iife.js +4 -4
- package/dist/bhl-forms.modern.es.js +649 -649
- package/dist/bhl-forms.modern.iife.js +7 -7
- package/dist/bhl-forms.modern.umd.js +7 -7
- package/dist/bhl-forms.umd.js +4 -4
- package/dist/forms/accidentsAndInjuries.es.js +1459 -1151
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/appraisals.es.js +138 -137
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/business.es.js +1432 -1149
- package/dist/forms/business.iife.js +1 -1
- package/dist/forms/business.json +1 -1
- package/dist/forms/childAndFamily.es.js +1327 -1043
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +1526 -1378
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +1998 -1807
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/coins.es.js +138 -137
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/contracts.es.js +1347 -1050
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +1830 -1711
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/divorce.es.js +1539 -1385
- package/dist/forms/divorce.iife.js +1 -1
- package/dist/forms/divorce.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +1831 -1678
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalHomeImprovement.es.js +1361 -1971
- package/dist/forms/generalHomeImprovement.iife.js +1 -1
- package/dist/forms/generalHomeImprovement.json +1 -1
- package/dist/forms/generalHomeImprovementThankYou.es.js +1361 -1971
- package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
- package/dist/forms/generalHomeImprovementThankYou.json +1 -1
- package/dist/forms/generalLegal.es.js +3035 -2535
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalJustAnswer.es.js +3214 -2872
- package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
- package/dist/forms/generalLegalJustAnswer.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +3035 -2535
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +3214 -2872
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderSingle.json +1 -1
- package/dist/forms/generalLegalSingle.es.js +3214 -2872
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +2823 -2303
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/generalLegalThankYouConsultation.es.js +3214 -2872
- package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
- package/dist/forms/generalLegalThankYouConsultation.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +1423 -1120
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/landlordTenant.es.js +1393 -1106
- package/dist/forms/landlordTenant.iife.js +1 -1
- package/dist/forms/landlordTenant.json +1 -1
- package/dist/forms/malpractice.es.js +1529 -1223
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +701 -530
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/patentsAndIP.es.js +1828 -1652
- package/dist/forms/patentsAndIP.iife.js +1 -1
- package/dist/forms/patentsAndIP.json +1 -1
- package/dist/forms/realEstate.es.js +2850 -2405
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +1566 -1251
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +635 -520
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +409 -371
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/testRedirects.es.js +420 -316
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/forms/vets.es.js +138 -137
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/willsAndTrusts.es.js +1426 -1112
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -11,96 +11,101 @@ function LegalRedirectUrl() {
|
|
|
11
11
|
return 'https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}'
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL =
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
const
|
|
14
|
+
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL =
|
|
15
|
+
'$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
16
|
+
const DEFAULT_COMMENTS_LABEL_LEGAL = "Please briefly describe your legal issue in a few words:";
|
|
17
|
+
const DEFAULT_FINAL_HEADLINE_LEGAL = "Submit Your Case";
|
|
18
|
+
const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL =
|
|
19
|
+
'$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
20
|
+
const DEFAULT_FINAL_SUBHEADLINE_LEGAL =
|
|
21
|
+
"You may benefit from speaking with a legal professional. Please verify your contact information.";
|
|
22
|
+
const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL =
|
|
23
|
+
'$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
24
|
+
const TCPA_LANGUAGE_LEGAL =
|
|
25
|
+
"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
|
|
21
26
|
const defaultLegalImprovementCrossSells = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
28
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
29
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
30
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
31
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
32
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
28
33
|
};
|
|
29
34
|
const CROSS_SELL_OPTION_MAP_LEGAL = {
|
|
30
35
|
// Values can be a list or a map of value -> display value
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
"Auto and Car Accidents": {
|
|
37
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
38
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
39
|
+
"Workers Compensation": "Workplace Injury",
|
|
40
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
41
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
42
|
+
"Child Custody": "Need help with Child Custody",
|
|
38
43
|
},
|
|
39
44
|
"Personal Injury": {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
46
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
47
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
48
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
49
|
+
"Child Custody": "Need help with Child Custody",
|
|
45
50
|
// TODO add one more?
|
|
46
51
|
},
|
|
47
52
|
"Workers Compensation": {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
54
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
55
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
56
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
57
|
+
"Child Custody": "Need help with Child Custody",
|
|
53
58
|
// TODO add one more?
|
|
54
59
|
},
|
|
55
60
|
"DUI and DWI": {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
62
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
63
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
64
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
65
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
66
|
+
"Child Custody": "Need help with Child Custody",
|
|
62
67
|
},
|
|
63
68
|
"Wills and Trusts": {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
70
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
71
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
72
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
73
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
74
|
+
"Child Custody": "Need help with Child Custody",
|
|
70
75
|
},
|
|
71
76
|
"Probate and Estates": {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
78
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
79
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
80
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
81
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
82
|
+
"Child Custody": "Need help with Child Custody",
|
|
78
83
|
},
|
|
79
84
|
"Power of Attorney": {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
86
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
87
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
88
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
89
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
90
|
+
"Child Custody": "Need help with Child Custody",
|
|
86
91
|
},
|
|
87
92
|
"Long Term Disability": {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
94
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
95
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
96
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
97
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
98
|
+
"Child Custody": "Need help with Child Custody",
|
|
94
99
|
},
|
|
95
100
|
"Social Security Disability and Insurance": {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
102
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
103
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
104
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
105
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
106
|
+
"Child Custody": "Need help with Child Custody",
|
|
102
107
|
},
|
|
103
|
-
|
|
108
|
+
"*": defaultLegalImprovementCrossSells,
|
|
104
109
|
};
|
|
105
110
|
|
|
106
111
|
// ------ Common Base Settings
|
|
@@ -109,32 +114,48 @@ const checkbox = (updates) => {
|
|
|
109
114
|
if (updates.name && !updates.id) {
|
|
110
115
|
updates.id = updates.name;
|
|
111
116
|
}
|
|
112
|
-
return merge(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
return merge(
|
|
118
|
+
{
|
|
119
|
+
$formkit: "checkbox",
|
|
120
|
+
validation: "required",
|
|
121
|
+
validationMessages: {
|
|
122
|
+
required: "Field is required",
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
updates
|
|
126
|
+
)
|
|
119
127
|
};
|
|
120
128
|
|
|
121
129
|
const sbsCheckbox = (updates) => {
|
|
122
|
-
updates.legendClass =
|
|
123
|
-
updates.fieldsetClass =
|
|
124
|
-
updates.optionsClass =
|
|
125
|
-
updates.innerClass =
|
|
126
|
-
updates.wrapperClass =
|
|
130
|
+
updates.legendClass = "legend-left required";
|
|
131
|
+
updates.fieldsetClass = "$reset side-by-side";
|
|
132
|
+
updates.optionsClass = "t-pl-1";
|
|
133
|
+
updates.innerClass = "t-flex t-items-center";
|
|
134
|
+
updates.wrapperClass = "t-mb-3";
|
|
127
135
|
return checkbox(updates)
|
|
128
136
|
};
|
|
129
137
|
|
|
130
138
|
const col2Checkbox = (updates) => {
|
|
131
139
|
if (!updates || !updates.legendClass) {
|
|
132
|
-
updates.legendClass =
|
|
140
|
+
updates.legendClass = "required";
|
|
133
141
|
}
|
|
134
|
-
updates.fieldsetClass =
|
|
135
|
-
updates.optionsClass =
|
|
136
|
-
updates.innerClass =
|
|
137
|
-
updates.wrapperClass =
|
|
142
|
+
updates.fieldsetClass = "$reset";
|
|
143
|
+
updates.optionsClass = "t-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
|
|
144
|
+
updates.innerClass = "t-items-start";
|
|
145
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
146
|
+
return checkbox(updates)
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const verticalCol2Checkbox = (updates) => {
|
|
150
|
+
if (!updates || !updates.legendClass) {
|
|
151
|
+
updates.legendClass = "required";
|
|
152
|
+
}
|
|
153
|
+
updates.fieldsetClass = "$reset t-flex t-justify-center";
|
|
154
|
+
updates.optionClass = "t-mx-5";
|
|
155
|
+
updates.optionsClass = "t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
|
|
156
|
+
updates.innerClass = "t-items-center";
|
|
157
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
158
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
138
159
|
return checkbox(updates)
|
|
139
160
|
};
|
|
140
161
|
|
|
@@ -142,72 +163,84 @@ const radio = (updates) => {
|
|
|
142
163
|
if (updates.name && !updates.id) {
|
|
143
164
|
updates.id = updates.name;
|
|
144
165
|
}
|
|
145
|
-
return merge(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
166
|
+
return merge(
|
|
167
|
+
{
|
|
168
|
+
$formkit: "radio",
|
|
169
|
+
validation: "required",
|
|
170
|
+
validationMessages: {
|
|
171
|
+
required: "Field is required",
|
|
172
|
+
},
|
|
173
|
+
optionsClass: "t-pt-3 t-pl-1",
|
|
174
|
+
legendClass: "required",
|
|
150
175
|
},
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}, updates)
|
|
176
|
+
updates
|
|
177
|
+
)
|
|
154
178
|
};
|
|
155
179
|
|
|
156
180
|
const col2RadioCenter = (updates) => {
|
|
157
|
-
updates.legendClass =
|
|
158
|
-
if (typeof updates.fieldsetClass ===
|
|
159
|
-
updates.fieldsetClass =
|
|
181
|
+
updates.legendClass = "required t-w-[100%] t-text-center";
|
|
182
|
+
if (typeof updates.fieldsetClass === "undefined") {
|
|
183
|
+
updates.fieldsetClass = "$reset t-flex t-justify-center";
|
|
160
184
|
}
|
|
161
|
-
updates.optionsClass =
|
|
162
|
-
updates.innerClass =
|
|
163
|
-
updates.wrapperClass =
|
|
164
|
-
updates.optionClass =
|
|
165
|
-
updates.messagesClass =
|
|
166
|
-
updates.helpClass =
|
|
185
|
+
updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
|
|
186
|
+
updates.innerClass = "t-items-start";
|
|
187
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
188
|
+
updates.optionClass = "t-pl-4 md:t-pl-8 md:t-min-w-[200px]";
|
|
189
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
190
|
+
updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
|
|
191
|
+
return radio(updates)
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
const sbsRadio = (updates) => {
|
|
195
|
+
updates.legendClass = "legend-left required";
|
|
196
|
+
updates.fieldsetClass = "$reset side-by-side";
|
|
197
|
+
updates.optionsClass = "t-pl-1";
|
|
198
|
+
updates.innerClass = "t-flex t-items-center";
|
|
199
|
+
updates.wrapperClass = "t-mb-3";
|
|
167
200
|
return radio(updates)
|
|
168
201
|
};
|
|
169
202
|
|
|
170
203
|
const sbs2ColRadio = (updates) => {
|
|
171
|
-
updates.legendClass =
|
|
172
|
-
updates.fieldsetClass =
|
|
173
|
-
updates.optionsClass =
|
|
174
|
-
updates.innerClass =
|
|
175
|
-
updates.wrapperClass =
|
|
204
|
+
updates.legendClass = "legend-left-flex md:t-max-w-[40%] required";
|
|
205
|
+
updates.fieldsetClass = "$reset side-by-side-flex";
|
|
206
|
+
updates.optionsClass = "md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125";
|
|
207
|
+
updates.innerClass = "t-flex t-items-start";
|
|
208
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
176
209
|
return radio(updates)
|
|
177
210
|
};
|
|
178
211
|
|
|
179
212
|
const sbs2ItemRadio = (updates) => {
|
|
180
|
-
updates.legendClass =
|
|
181
|
-
updates.fieldsetClass =
|
|
182
|
-
updates.optionsClass =
|
|
183
|
-
updates.innerClass =
|
|
184
|
-
updates.optionClass =
|
|
213
|
+
updates.legendClass = "legend-left t-pb-1 required";
|
|
214
|
+
updates.fieldsetClass = "$reset side-by-side t-items-center";
|
|
215
|
+
updates.optionsClass = "t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center";
|
|
216
|
+
updates.innerClass = "t-flex t-items-center";
|
|
217
|
+
updates.optionClass = "t-pr-1";
|
|
185
218
|
return radio(updates)
|
|
186
219
|
};
|
|
187
220
|
|
|
188
221
|
const sbsYesNoRadio = (updates) => {
|
|
189
|
-
updates.options = [
|
|
222
|
+
updates.options = ["Yes", "No"];
|
|
190
223
|
return sbs2ItemRadio(updates)
|
|
191
224
|
};
|
|
192
225
|
|
|
193
226
|
const verticalButtonRadio = (updates) => {
|
|
194
|
-
updates.legendClass =
|
|
195
|
-
updates.fieldsetClass =
|
|
196
|
-
if (typeof updates.optionsClass ===
|
|
197
|
-
updates.optionsClass =
|
|
227
|
+
updates.legendClass = "legend-left";
|
|
228
|
+
updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col-reverse t-items-center";
|
|
229
|
+
if (typeof updates.optionsClass === "undefined") {
|
|
230
|
+
updates.optionsClass = "t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3";
|
|
198
231
|
}
|
|
199
|
-
updates.optionClass =
|
|
200
|
-
updates.wrapperClass =
|
|
201
|
-
updates.labelClass =
|
|
232
|
+
updates.optionClass = "radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5";
|
|
233
|
+
updates.wrapperClass = "$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]";
|
|
234
|
+
updates.labelClass = "t-font-semibold t-text-[#1e448f] t-w-[100%]";
|
|
202
235
|
updates.decoratorIcon = false;
|
|
203
|
-
updates.messagesClass =
|
|
204
|
-
updates.helpClass =
|
|
236
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
237
|
+
updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
|
|
205
238
|
return radio(updates)
|
|
206
239
|
};
|
|
207
240
|
|
|
208
241
|
const verticalYesNoRadio = (updates) => {
|
|
209
|
-
updates.options = [
|
|
210
|
-
updates.optionsClass =
|
|
242
|
+
updates.options = ["Yes", "No"];
|
|
243
|
+
updates.optionsClass = "t-flex t-justify-center t-my-3";
|
|
211
244
|
return verticalButtonRadio(updates)
|
|
212
245
|
};
|
|
213
246
|
|
|
@@ -215,23 +248,35 @@ const select = (updates) => {
|
|
|
215
248
|
if (updates.name && !updates.id) {
|
|
216
249
|
updates.id = updates.name;
|
|
217
250
|
}
|
|
218
|
-
return merge(
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
251
|
+
return merge(
|
|
252
|
+
{
|
|
253
|
+
$formkit: "select",
|
|
254
|
+
placeholder: "Please Select",
|
|
255
|
+
validation: "required",
|
|
256
|
+
validationMessages: {
|
|
257
|
+
required: "Field is required",
|
|
258
|
+
},
|
|
259
|
+
inputClass: "t-bg-white",
|
|
260
|
+
labelClass: "required",
|
|
224
261
|
},
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}, updates)
|
|
262
|
+
updates
|
|
263
|
+
)
|
|
228
264
|
};
|
|
229
265
|
|
|
230
266
|
const sbsSelect = (updates) => {
|
|
231
|
-
updates.labelClass =
|
|
232
|
-
updates.wrapperClass =
|
|
233
|
-
updates.innerClass =
|
|
234
|
-
updates.helpClass =
|
|
267
|
+
updates.labelClass = "required";
|
|
268
|
+
updates.wrapperClass = "side-by-side t-items-center";
|
|
269
|
+
updates.innerClass = "select-height-content";
|
|
270
|
+
updates.helpClass = "t-mt-2.5 md:t-text-right md:t-mt-[-5px]";
|
|
271
|
+
return select(updates)
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
const verticalSelect = (updates) => {
|
|
275
|
+
updates.labelClass = "required";
|
|
276
|
+
updates.wrapperClass = "t-flex t-justify-center";
|
|
277
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
278
|
+
updates.inputClass = "t-min-w-[150px] t-bg-white";
|
|
279
|
+
updates.helpClass = "t-mt-2.5 t-text-center";
|
|
235
280
|
return select(updates)
|
|
236
281
|
};
|
|
237
282
|
|
|
@@ -239,26 +284,29 @@ const text = (updates) => {
|
|
|
239
284
|
if (updates.name && !updates.id) {
|
|
240
285
|
updates.id = updates.name;
|
|
241
286
|
}
|
|
242
|
-
return merge(
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
287
|
+
return merge(
|
|
288
|
+
{
|
|
289
|
+
$formkit: "text",
|
|
290
|
+
validation: "required",
|
|
291
|
+
validationMessages: {
|
|
292
|
+
required: "Field is required",
|
|
293
|
+
},
|
|
294
|
+
labelClass: "required",
|
|
247
295
|
},
|
|
248
|
-
|
|
249
|
-
|
|
296
|
+
updates
|
|
297
|
+
)
|
|
250
298
|
};
|
|
251
299
|
|
|
252
300
|
const sbsText = (updates) => {
|
|
253
|
-
updates.wrapperClass =
|
|
301
|
+
updates.wrapperClass = "side-by-side t-items-center";
|
|
254
302
|
return text(updates)
|
|
255
303
|
};
|
|
256
304
|
|
|
257
305
|
const verticalText = (updates) => {
|
|
258
|
-
updates.wrapperClass =
|
|
259
|
-
updates.messagesClass =
|
|
260
|
-
updates.inputClass =
|
|
261
|
-
updates.helpClass =
|
|
306
|
+
updates.wrapperClass = "t-flex t-justify-center";
|
|
307
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
308
|
+
updates.inputClass = "t-text-center";
|
|
309
|
+
updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
|
|
262
310
|
return text(updates)
|
|
263
311
|
};
|
|
264
312
|
|
|
@@ -266,538 +314,784 @@ const textArea = (updates) => {
|
|
|
266
314
|
if (updates.name && !updates.id) {
|
|
267
315
|
updates.id = updates.name;
|
|
268
316
|
}
|
|
269
|
-
return merge(
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
317
|
+
return merge(
|
|
318
|
+
{
|
|
319
|
+
$formkit: "textarea",
|
|
320
|
+
rows: 5,
|
|
321
|
+
maxlength: 500,
|
|
322
|
+
validation: "required",
|
|
323
|
+
validationMessages: {
|
|
324
|
+
required: "Field is required",
|
|
325
|
+
},
|
|
326
|
+
innerClass: "t-max-w-xl",
|
|
327
|
+
labelClass: "required",
|
|
276
328
|
},
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}, updates)
|
|
329
|
+
updates
|
|
330
|
+
)
|
|
280
331
|
};
|
|
281
332
|
|
|
282
333
|
const date = (updates) => {
|
|
283
334
|
if (updates.name && !updates.id) {
|
|
284
335
|
updates.id = updates.name;
|
|
285
336
|
}
|
|
286
|
-
return merge(
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
337
|
+
return merge(
|
|
338
|
+
{
|
|
339
|
+
$formkit: "DatePicker",
|
|
340
|
+
validation: "required",
|
|
341
|
+
validationMessages: {
|
|
342
|
+
required: "Field is required",
|
|
343
|
+
},
|
|
344
|
+
labelClass: "required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",
|
|
345
|
+
innerClass:
|
|
346
|
+
"t-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500",
|
|
291
347
|
},
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}, updates)
|
|
348
|
+
updates
|
|
349
|
+
)
|
|
295
350
|
};
|
|
296
351
|
|
|
297
352
|
const sbsDate = (updates) => {
|
|
298
|
-
updates.wrapperClass =
|
|
353
|
+
updates.wrapperClass = "side-by-side t-items-center";
|
|
299
354
|
return date(updates)
|
|
300
355
|
};
|
|
301
356
|
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
'data-tf-sensitive': 'false',
|
|
309
|
-
validation: 'required|email',
|
|
310
|
-
validationMessages: {
|
|
311
|
-
required: 'Email is required',
|
|
312
|
-
email: 'Invalid Email'
|
|
313
|
-
}
|
|
314
|
-
});
|
|
357
|
+
const verticalDate = (updates) => {
|
|
358
|
+
updates.wrapperClass = "t-flex t-justify-center";
|
|
359
|
+
updates.inputClass = "t-text-center";
|
|
360
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
361
|
+
return date(updates)
|
|
362
|
+
};
|
|
315
363
|
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
364
|
+
const email = (scope, vertical, updates = {}) => {
|
|
365
|
+
const func = vertical ? verticalText : sbsText;
|
|
366
|
+
const label = vertical ? updates.label : "Email Address:";
|
|
367
|
+
return func({
|
|
368
|
+
$formkit: "email",
|
|
369
|
+
name: scope ? scope + ":" + "Email" : "Email",
|
|
370
|
+
label,
|
|
371
|
+
placeholder: "email@domain.com",
|
|
372
|
+
autocomplete: "email",
|
|
373
|
+
"data-tf-sensitive": "false",
|
|
374
|
+
validation: "required|email",
|
|
375
|
+
validationMessages: {
|
|
376
|
+
required: "Email is required",
|
|
377
|
+
email: "Invalid Email",
|
|
378
|
+
},
|
|
379
|
+
...updates,
|
|
380
|
+
})
|
|
381
|
+
};
|
|
325
382
|
|
|
326
|
-
const
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
383
|
+
const firstName = (scope, vertical, updates = {}) => {
|
|
384
|
+
const func = vertical ? verticalText : sbsText;
|
|
385
|
+
const label = vertical ? updates.label : "First Name:";
|
|
386
|
+
return func({
|
|
387
|
+
label,
|
|
388
|
+
placeholder: "First",
|
|
389
|
+
name: scope ? scope + ":" + "First_Name" : "First_Name",
|
|
390
|
+
autocomplete: "given-name",
|
|
391
|
+
validationMessages: {
|
|
392
|
+
required: "First Name is required",
|
|
393
|
+
},
|
|
394
|
+
...updates,
|
|
395
|
+
})
|
|
396
|
+
};
|
|
335
397
|
|
|
336
|
-
const
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
},
|
|
351
|
-
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
352
|
-
});
|
|
398
|
+
const lastName = (scope, vertical, updates = {}) => {
|
|
399
|
+
const func = vertical ? verticalText : sbsText;
|
|
400
|
+
const label = vertical ? updates.label : "Last Name:";
|
|
401
|
+
return func({
|
|
402
|
+
label,
|
|
403
|
+
placeholder: "Last",
|
|
404
|
+
name: scope ? scope + ":" + "Last_Name" : "Last_Name",
|
|
405
|
+
autocomplete: "family-name",
|
|
406
|
+
validationMessages: {
|
|
407
|
+
required: "Last Name is required",
|
|
408
|
+
},
|
|
409
|
+
...updates,
|
|
410
|
+
})
|
|
411
|
+
};
|
|
353
412
|
|
|
413
|
+
const phone = (scope, vertical, updates = {}) => {
|
|
414
|
+
const func = vertical ? verticalText : sbsText;
|
|
415
|
+
const label = vertical ? updates.label : "Phone Number:";
|
|
416
|
+
return func({
|
|
417
|
+
$formkit: "tel",
|
|
418
|
+
name: scope ? scope + ":" + "Primary_Phone" : "Primary_Phone",
|
|
419
|
+
label,
|
|
420
|
+
placeholder: "###-###-####",
|
|
421
|
+
maxlength: 12,
|
|
422
|
+
help: "10-digit phone number, hyphens optional",
|
|
423
|
+
autocomplete: "tel-national",
|
|
424
|
+
"data-tf-sensitive": "false",
|
|
425
|
+
validation: "required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",
|
|
426
|
+
validationMessages: {
|
|
427
|
+
required: "Phone Number is required",
|
|
428
|
+
matches: "Invalid Phone Format, use ###-###-####",
|
|
429
|
+
valid_phone: "Invalid Phone Number",
|
|
430
|
+
},
|
|
431
|
+
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]",
|
|
432
|
+
...updates,
|
|
433
|
+
})
|
|
434
|
+
};
|
|
354
435
|
|
|
355
436
|
const zipcode$1 = (scope, vertical, updates = {}) => {
|
|
356
437
|
const func = vertical ? verticalText : sbsText;
|
|
357
|
-
const label = vertical ?
|
|
358
|
-
const help = vertical ?
|
|
438
|
+
const label = vertical ? updates.label : "Zip Code:";
|
|
439
|
+
const help = vertical ? updates.help ?? "We try to match you with local help" : null;
|
|
359
440
|
return func({
|
|
360
441
|
label,
|
|
361
442
|
help,
|
|
362
|
-
placeholder:
|
|
363
|
-
name: scope ? scope +
|
|
443
|
+
placeholder: "#####",
|
|
444
|
+
name: scope ? scope + ":" + "Zip" : "Zip",
|
|
364
445
|
maxlength: 5,
|
|
365
446
|
inputmode: "numeric",
|
|
366
|
-
autocomplete:
|
|
367
|
-
validation:
|
|
447
|
+
autocomplete: "postal-code",
|
|
448
|
+
validation: "required|matches:/^[0-9]{5}$/",
|
|
368
449
|
validationMessages: {
|
|
369
|
-
required:
|
|
370
|
-
matches:
|
|
450
|
+
required: "Zip Code is required",
|
|
451
|
+
matches: "Invalid Zip Code",
|
|
371
452
|
},
|
|
372
|
-
...updates
|
|
453
|
+
...updates,
|
|
373
454
|
})
|
|
374
455
|
};
|
|
375
456
|
|
|
376
457
|
const applicantAge = (scope, vertical, updates = {}) => {
|
|
377
458
|
const func = vertical ? verticalText : sbsText;
|
|
378
|
-
const label = vertical ?
|
|
379
|
-
const value = vertical ?
|
|
380
|
-
return func(
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
459
|
+
const label = vertical ? updates.label : "Age of Applicant?";
|
|
460
|
+
const value = vertical ? updates.value ?? "50" : null;
|
|
461
|
+
return func(
|
|
462
|
+
merge({
|
|
463
|
+
label,
|
|
464
|
+
placeholder: "Age between 18 and 65",
|
|
465
|
+
name: scope ? scope + ":" + "Applicant_Age" : "Applicant_Age",
|
|
466
|
+
value,
|
|
467
|
+
maxlength: 2,
|
|
468
|
+
inputmode: "numeric",
|
|
469
|
+
validation: "required|min:18,max:65",
|
|
470
|
+
validationMessages: {
|
|
471
|
+
required: "Applicant Age is required",
|
|
472
|
+
min: "Invalid Age - must be between 18 and 65",
|
|
473
|
+
max: "Invalid Age - must be between 18 and 65",
|
|
474
|
+
},
|
|
475
|
+
...updates,
|
|
476
|
+
})
|
|
477
|
+
)
|
|
395
478
|
};
|
|
396
479
|
|
|
397
|
-
const atFault = (scope) =>
|
|
398
|
-
|
|
399
|
-
label:
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
});
|
|
480
|
+
const atFault = (scope, vertical, updates = {}) => {
|
|
481
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
482
|
+
const label = vertical ? updates.label : "Were You at Fault?";
|
|
483
|
+
return func(
|
|
484
|
+
merge(
|
|
485
|
+
{
|
|
486
|
+
label,
|
|
487
|
+
name: scope ? scope + ":" + "At_Fault" : "At_Fault",
|
|
488
|
+
},
|
|
489
|
+
updates
|
|
490
|
+
)
|
|
491
|
+
)
|
|
492
|
+
};
|
|
411
493
|
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
419
|
-
|
|
420
|
-
"
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
494
|
+
const bankruptcyCrossSell = (scope) =>
|
|
495
|
+
sbsCheckbox({
|
|
496
|
+
label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
|
|
497
|
+
help: "Note: you will be contacted separately by a bankruptcy/debt expert",
|
|
498
|
+
name: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
|
|
499
|
+
id: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
|
|
500
|
+
if: '$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',
|
|
501
|
+
validation: null,
|
|
502
|
+
helpClass: "!t-text-sm",
|
|
503
|
+
});
|
|
504
|
+
|
|
505
|
+
const bloodContentAlcoholTest = (scope, vertical, updates = {}) => {
|
|
506
|
+
const func = vertical ? verticalSelect : sbsSelect;
|
|
507
|
+
const label = vertical ? updates.label : "Blood Alcohol Content Measured by Test:";
|
|
508
|
+
return func(
|
|
509
|
+
merge(
|
|
510
|
+
{
|
|
511
|
+
label,
|
|
512
|
+
name: scope ? scope + ":" + "Blood_Alcohol_Content_Test" : "Blood_Alcohol_Content_Test",
|
|
513
|
+
options: [
|
|
514
|
+
"No Test",
|
|
515
|
+
"0.00% - 0.04%",
|
|
516
|
+
"0.05% - 0.08%",
|
|
517
|
+
"0.09% - 0.12%",
|
|
518
|
+
"0.13% - 0.16%",
|
|
519
|
+
"0.17% - 0.20%",
|
|
520
|
+
"More than 0.20%",
|
|
521
|
+
"Don't know",
|
|
522
|
+
],
|
|
523
|
+
},
|
|
524
|
+
updates
|
|
525
|
+
)
|
|
526
|
+
)
|
|
527
|
+
};
|
|
426
528
|
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
529
|
+
const businessServicesDisplay$1 = (scope, vertical, updates = {}) => {
|
|
530
|
+
const func = vertical ? col2RadioCenter : sbsRadio;
|
|
531
|
+
const label = vertical ? updates.label : "Select The Business Service You Need:";
|
|
532
|
+
return func(
|
|
533
|
+
merge(
|
|
534
|
+
{
|
|
535
|
+
label,
|
|
536
|
+
name: scope ? scope + ":" + "Business_Services_Display" : "Business_Services_Display",
|
|
537
|
+
options: [
|
|
538
|
+
"Business Formation",
|
|
539
|
+
"Contracts",
|
|
540
|
+
"Insurance and Liability",
|
|
541
|
+
"Mergers and Acquisition",
|
|
542
|
+
"Regulatory Compliance",
|
|
543
|
+
"Employee Dispute",
|
|
544
|
+
"Advice and Consulting",
|
|
545
|
+
"Other",
|
|
546
|
+
],
|
|
547
|
+
},
|
|
548
|
+
updates
|
|
549
|
+
)
|
|
550
|
+
)
|
|
551
|
+
};
|
|
449
552
|
|
|
450
|
-
const
|
|
451
|
-
|
|
452
|
-
label:
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
553
|
+
const businessType$1 = (scope, vertical, updates = {}) => {
|
|
554
|
+
const func = vertical ? verticalButtonRadio : sbs2ColRadio;
|
|
555
|
+
const label = vertical ? updates.label : "Is the Business Public or Private?";
|
|
556
|
+
return func(
|
|
557
|
+
merge(
|
|
558
|
+
{
|
|
559
|
+
label,
|
|
560
|
+
name: scope ? scope + ":" + "Business_Type" : "Business_Type",
|
|
561
|
+
options: ["Public", "Private"],
|
|
562
|
+
},
|
|
563
|
+
updates
|
|
564
|
+
)
|
|
565
|
+
)
|
|
566
|
+
};
|
|
461
567
|
|
|
462
|
-
const
|
|
463
|
-
|
|
464
|
-
label
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
568
|
+
const causeOfInjury = (scope, vertical, updates = {}) => {
|
|
569
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
570
|
+
const label = vertical ? updates.label : "Cause of Injury:";
|
|
571
|
+
return func(
|
|
572
|
+
merge(
|
|
573
|
+
{
|
|
574
|
+
label,
|
|
575
|
+
name: scope ? scope + ":" + "Cause_Of_Injury" : "Cause_Of_Injury",
|
|
576
|
+
options: [
|
|
577
|
+
"Traumatic Physical Injury (Accident)",
|
|
578
|
+
"Repeated Trauma Injury",
|
|
579
|
+
"Mental Injury",
|
|
580
|
+
"Occupational Disease",
|
|
581
|
+
"Not Sure",
|
|
582
|
+
],
|
|
583
|
+
},
|
|
584
|
+
updates
|
|
585
|
+
)
|
|
586
|
+
)
|
|
587
|
+
};
|
|
472
588
|
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
label:
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
589
|
+
const childHome = (scope, vertical, updates = {}) => {
|
|
590
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
591
|
+
const label = vertical ? updates.label : "With Whom Do the Children Currently Live?";
|
|
592
|
+
return func(
|
|
593
|
+
merge(
|
|
594
|
+
{
|
|
595
|
+
label,
|
|
596
|
+
name: scope ? scope + ":" + "Child_Home" : "Child_Home",
|
|
597
|
+
options: ["Mother", "Father", "Grandparents", "Other"],
|
|
598
|
+
},
|
|
599
|
+
updates
|
|
600
|
+
)
|
|
601
|
+
)
|
|
602
|
+
};
|
|
482
603
|
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
label:
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
604
|
+
const childPrimaryCaregiver = (scope, vertical, updates = {}) => {
|
|
605
|
+
const func = vertical ? verticalButtonRadio : sbsSelect;
|
|
606
|
+
const label = vertical ? updates.label : "Who is the Primary Caregiver?";
|
|
607
|
+
return func(
|
|
608
|
+
merge(
|
|
609
|
+
{
|
|
610
|
+
label,
|
|
611
|
+
name: scope ? scope + ":" + "Child_Primary_Caregiver" : "Child_Primary_Caregiver",
|
|
612
|
+
options: ["Mother", "Father", "Other"],
|
|
613
|
+
},
|
|
614
|
+
updates
|
|
615
|
+
)
|
|
616
|
+
)
|
|
617
|
+
};
|
|
494
618
|
|
|
495
|
-
const
|
|
496
|
-
|
|
497
|
-
label: "
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
}
|
|
619
|
+
const childRelationship = (scope, vertical, updates = {}) => {
|
|
620
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
621
|
+
const label = vertical ? updates.label : "Your Relationship to Child(ren):";
|
|
622
|
+
return func(
|
|
623
|
+
merge(
|
|
624
|
+
{
|
|
625
|
+
label,
|
|
626
|
+
name: scope ? scope + ":" + "Child_Relationship" : "Child_Relationship",
|
|
627
|
+
options: ["Father", "Mother", "Grandparent", "Aunt/Uncle", "Other"],
|
|
628
|
+
},
|
|
629
|
+
updates
|
|
630
|
+
)
|
|
631
|
+
)
|
|
632
|
+
};
|
|
505
633
|
|
|
506
|
-
const
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
'Definitely',
|
|
521
|
-
'Probably',
|
|
522
|
-
'Maybe',
|
|
523
|
-
"Absolutely Can't Afford"
|
|
524
|
-
]
|
|
525
|
-
});
|
|
634
|
+
const claimStatus = (scope, vertical, updates = {}) => {
|
|
635
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
636
|
+
const label = vertical ? updates.label : "Status of Claim:";
|
|
637
|
+
return func(
|
|
638
|
+
merge(
|
|
639
|
+
{
|
|
640
|
+
label,
|
|
641
|
+
name: scope ? scope + ":" + "Claim_Status" : "Claim_Status",
|
|
642
|
+
options: ["No action taken yet", "Demand for compensation made", "Lawsuit filed", "Other"],
|
|
643
|
+
},
|
|
644
|
+
updates
|
|
645
|
+
)
|
|
646
|
+
)
|
|
647
|
+
};
|
|
526
648
|
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
649
|
+
// TODO: vertical not supported yet
|
|
650
|
+
const comments = (scope, vertical, updates) =>
|
|
651
|
+
textArea(
|
|
652
|
+
merge(
|
|
653
|
+
{
|
|
654
|
+
name: scope ? scope + ":" + "Comments" : "Comments",
|
|
655
|
+
label: "Please briefly describe your situation in a few words:",
|
|
656
|
+
placeholder:
|
|
657
|
+
'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
|
|
658
|
+
},
|
|
659
|
+
updates
|
|
660
|
+
)
|
|
661
|
+
);
|
|
538
662
|
|
|
539
|
-
const
|
|
663
|
+
const degreeOfInterest$1 = (scope, vertical, updates = {}) => {
|
|
664
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
665
|
+
const label = vertical ? updates.label : "How Likely Are You to Pay if Your Issue Could be Resolved?";
|
|
666
|
+
const help = vertical ? updates.help : "No payment necessary to speak with lawyers.";
|
|
667
|
+
return func(
|
|
668
|
+
merge(
|
|
669
|
+
{
|
|
670
|
+
name: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
|
|
671
|
+
id: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
|
|
672
|
+
label,
|
|
673
|
+
help,
|
|
674
|
+
options: ["Definitely", "Probably", "Maybe", "Absolutely Can't Afford"],
|
|
675
|
+
},
|
|
676
|
+
updates
|
|
677
|
+
)
|
|
678
|
+
)
|
|
679
|
+
};
|
|
540
680
|
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
|
|
544
|
-
});
|
|
681
|
+
const degreeOfInterestHelp = (scope, vertical, updates = {}) =>
|
|
682
|
+
degreeOfInterest$1(scope, vertical, merge(updates, { help: "No payment necessary to speak with lawyers." }));
|
|
545
683
|
|
|
546
|
-
const
|
|
547
|
-
|
|
548
|
-
label
|
|
549
|
-
|
|
684
|
+
const disabilityConditionStopWork = (scope, vertical, updates = {}) => {
|
|
685
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
686
|
+
const label = vertical
|
|
687
|
+
? updates.label
|
|
688
|
+
: "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?";
|
|
689
|
+
return func(
|
|
690
|
+
merge(
|
|
691
|
+
{
|
|
692
|
+
name: scope ? scope + ":" + "Disability_Condition_Stop_Work" : "Disability_Condition_Stop_Work",
|
|
693
|
+
label,
|
|
694
|
+
},
|
|
695
|
+
updates
|
|
696
|
+
)
|
|
697
|
+
)
|
|
698
|
+
};
|
|
550
699
|
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
label:
|
|
554
|
-
|
|
700
|
+
const disabilityWorkHistory = (scope, vertical, updates = {}) => {
|
|
701
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
702
|
+
const label = vertical ? updates.label : "Have You Had a Full-Time Job Within the Past 5 Years?";
|
|
703
|
+
return func(
|
|
704
|
+
merge(
|
|
705
|
+
{
|
|
706
|
+
name: scope ? scope + ":" + "Disability_Work_History" : "Disability_Work_History",
|
|
707
|
+
label,
|
|
708
|
+
},
|
|
709
|
+
updates
|
|
710
|
+
)
|
|
711
|
+
)
|
|
712
|
+
};
|
|
555
713
|
|
|
556
|
-
const
|
|
557
|
-
|
|
558
|
-
label: "
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
714
|
+
const doctorTreatment = (scope, vertical, updates = {}) => {
|
|
715
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
716
|
+
const label = vertical ? updates.label : "Have You Recently Been Treated by a Doctor, Hospital or Clinic?";
|
|
717
|
+
return func(
|
|
718
|
+
merge(
|
|
719
|
+
{
|
|
720
|
+
name: scope ? scope + ":" + "Doctor_Treatment" : "Doctor_Treatment",
|
|
721
|
+
label,
|
|
722
|
+
},
|
|
723
|
+
updates
|
|
724
|
+
)
|
|
725
|
+
)
|
|
726
|
+
};
|
|
568
727
|
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
label:
|
|
572
|
-
|
|
728
|
+
const estateLegalServicesNeeded = (scope, vertical, updates = {}) => {
|
|
729
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
730
|
+
const label = vertical ? updates.label : "Legal Services Needed for Your Estate:";
|
|
731
|
+
return func(
|
|
732
|
+
merge(
|
|
733
|
+
{
|
|
734
|
+
name: scope ? scope + ":" + "Estate_Legal_Services_Needed" : "Estate_Legal_Services_Needed",
|
|
735
|
+
label,
|
|
736
|
+
options: [
|
|
737
|
+
"Charitable Giving",
|
|
738
|
+
"Contested Wills",
|
|
739
|
+
"Drafting Wills or Trust",
|
|
740
|
+
"Estate Administration",
|
|
741
|
+
"Asset Protection",
|
|
742
|
+
"Other",
|
|
743
|
+
],
|
|
744
|
+
},
|
|
745
|
+
updates
|
|
746
|
+
)
|
|
747
|
+
)
|
|
748
|
+
};
|
|
573
749
|
|
|
574
|
-
const
|
|
575
|
-
|
|
576
|
-
|
|
750
|
+
const haveAttorney$1 = (scope, vertical, updates = {}) => {
|
|
751
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
752
|
+
const label = vertical ? updates.label : "Already Working with An Attorney?";
|
|
753
|
+
return func(
|
|
754
|
+
merge(
|
|
755
|
+
{
|
|
756
|
+
label,
|
|
757
|
+
name: scope ? scope + ":" + "Have_Attorney" : "Have_Attorney",
|
|
758
|
+
},
|
|
759
|
+
updates
|
|
760
|
+
)
|
|
761
|
+
)
|
|
762
|
+
};
|
|
577
763
|
|
|
578
|
-
const haveChildren = (scope) =>
|
|
579
|
-
|
|
580
|
-
label:
|
|
581
|
-
|
|
764
|
+
const haveChildren = (scope, vertical, updates = {}) => {
|
|
765
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
766
|
+
const label = vertical ? updates.label : "Do You Have Children?";
|
|
767
|
+
return func(
|
|
768
|
+
merge(
|
|
769
|
+
{
|
|
770
|
+
name: scope ? scope + ":" + "Have_Children" : "Have_Children",
|
|
771
|
+
label,
|
|
772
|
+
},
|
|
773
|
+
updates
|
|
774
|
+
)
|
|
775
|
+
)
|
|
776
|
+
};
|
|
582
777
|
|
|
583
|
-
const incidentDate = (scope) =>
|
|
584
|
-
|
|
585
|
-
label:
|
|
586
|
-
|
|
778
|
+
const incidentDate = (scope, vertical, updates = {}) => {
|
|
779
|
+
const func = vertical ? verticalDate : sbsDate;
|
|
780
|
+
const label = vertical ? updates.label : "Date of Incident:";
|
|
781
|
+
return func(
|
|
782
|
+
merge(
|
|
783
|
+
{
|
|
784
|
+
label,
|
|
785
|
+
name: scope ? scope + ":" + "Incident_Date" : "Incident_Date",
|
|
786
|
+
},
|
|
787
|
+
updates
|
|
788
|
+
)
|
|
789
|
+
)
|
|
790
|
+
};
|
|
587
791
|
|
|
588
|
-
const lawyerPaymentMethod = (scope) =>
|
|
589
|
-
|
|
590
|
-
label:
|
|
591
|
-
help:
|
|
592
|
-
options
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
792
|
+
const lawyerPaymentMethod = (scope, vertical, updates = {}) => {
|
|
793
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
794
|
+
const label = vertical ? updates.label : "How Will You Pay for Legal Fees if You Hire a Lawyer?";
|
|
795
|
+
const help = vertical ? updates.help : "No payment necessary to start a consultation.";
|
|
796
|
+
const options = vertical
|
|
797
|
+
? {
|
|
798
|
+
Cash: "Cash",
|
|
799
|
+
"Credit Card": "Credit Card",
|
|
800
|
+
Family: "Family or Friend",
|
|
801
|
+
Other: "Other",
|
|
802
|
+
}
|
|
803
|
+
: ["Cash", "Check", "Credit Card", "Friend", "Family", "Other"];
|
|
804
|
+
return func(
|
|
805
|
+
merge(
|
|
806
|
+
{
|
|
807
|
+
label,
|
|
808
|
+
help,
|
|
809
|
+
name: scope ? scope + ":" + "Lawyer_Payment_Method" : "Lawyer_Payment_Method",
|
|
810
|
+
options,
|
|
811
|
+
fieldsetClass: vertical ? "$reset t-flex t-flex-col t-items-center" : undefined,
|
|
812
|
+
},
|
|
813
|
+
updates
|
|
814
|
+
)
|
|
815
|
+
)
|
|
816
|
+
};
|
|
601
817
|
|
|
602
|
-
const legalCrossSells$1 = () =>
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
818
|
+
const legalCrossSells$1 = () =>
|
|
819
|
+
col2Checkbox({
|
|
820
|
+
id: "Legal_CrossSells",
|
|
821
|
+
name: "Legal_CrossSells",
|
|
822
|
+
help: 'Just hit "Next" if none apply',
|
|
823
|
+
helpClass: "t-text-center !t-text-sm",
|
|
824
|
+
validation: null,
|
|
825
|
+
options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
|
|
826
|
+
});
|
|
827
|
+
|
|
828
|
+
const maritalStatus = (scope, vertical, updates = {}) => {
|
|
829
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
830
|
+
const label = vertical ? updates.label : "Marital Status:";
|
|
831
|
+
return func(
|
|
832
|
+
merge(
|
|
833
|
+
{
|
|
834
|
+
label,
|
|
835
|
+
name: scope ? scope + ":" + "Marital_Status" : "Marital_Status",
|
|
836
|
+
options: [
|
|
837
|
+
"Unmarried, Living Together",
|
|
838
|
+
"Unmarried, Do Not Live Together",
|
|
839
|
+
"Married, Living Together",
|
|
840
|
+
"Separated",
|
|
841
|
+
"Divorced",
|
|
842
|
+
"Other",
|
|
843
|
+
],
|
|
844
|
+
},
|
|
845
|
+
updates
|
|
846
|
+
)
|
|
847
|
+
)
|
|
848
|
+
};
|
|
610
849
|
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
label:
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
850
|
+
const numEmployeesOfBusiness$1 = (scope, vertical, updates = {}) => {
|
|
851
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
852
|
+
const label = vertical ? updates.label : "Total Employees of Business? (estimated)";
|
|
853
|
+
return func(
|
|
854
|
+
merge(
|
|
855
|
+
{
|
|
856
|
+
label,
|
|
857
|
+
name: scope ? scope + ":" + "Num_Employees_Of_Business" : "Num_Employees_Of_Business",
|
|
858
|
+
options: ["1-5", "6-20", "21-50", "51-100", "101-500", "501-1,000", "More than 1,000"],
|
|
859
|
+
},
|
|
860
|
+
updates
|
|
861
|
+
)
|
|
862
|
+
)
|
|
863
|
+
};
|
|
623
864
|
|
|
624
|
-
|
|
625
|
-
name: 'Num_Employees_Of_Business',
|
|
626
|
-
options: [
|
|
627
|
-
"1-5",
|
|
628
|
-
"6-20",
|
|
629
|
-
"21-50",
|
|
630
|
-
"51-100",
|
|
631
|
-
"101-500",
|
|
632
|
-
"501-1,000",
|
|
633
|
-
"More than 1,000"
|
|
634
|
-
]
|
|
635
|
-
});
|
|
865
|
+
// XXX HERE
|
|
636
866
|
|
|
637
|
-
const pendingCharges = (scope) =>
|
|
638
|
-
|
|
639
|
-
label:
|
|
640
|
-
|
|
867
|
+
const pendingCharges = (scope, vertical, updates = {}) => {
|
|
868
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
869
|
+
const label = vertical ? updates.label : "Do you currently have any pending charges?";
|
|
870
|
+
return func(
|
|
871
|
+
merge(
|
|
872
|
+
{
|
|
873
|
+
name: scope ? scope + ":" + "Pending_Charges" : "Pending_Charges",
|
|
874
|
+
label,
|
|
875
|
+
},
|
|
876
|
+
updates
|
|
877
|
+
)
|
|
878
|
+
)
|
|
879
|
+
};
|
|
641
880
|
|
|
642
|
-
const primaryInjury = (scope) =>
|
|
643
|
-
|
|
644
|
-
label:
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
881
|
+
const primaryInjury = (scope, vertical, updates = {}) => {
|
|
882
|
+
const func = vertical ? col2RadioCenter : sbs2ColRadio;
|
|
883
|
+
const label = vertical ? updates.label : "Primary Injury:";
|
|
884
|
+
return func(
|
|
885
|
+
merge(
|
|
886
|
+
{
|
|
887
|
+
label,
|
|
888
|
+
name: scope ? scope + ":" + "Primary_Injury" : "Primary_Injury",
|
|
889
|
+
options: [
|
|
890
|
+
"Anxiety",
|
|
891
|
+
"Back or Neck Pain",
|
|
892
|
+
"Broken Bones",
|
|
893
|
+
"Cuts and Bruises",
|
|
894
|
+
"Headaches",
|
|
895
|
+
"Memory Loss",
|
|
896
|
+
"Loss of Limb",
|
|
897
|
+
"Not Sure or Other",
|
|
898
|
+
],
|
|
899
|
+
},
|
|
900
|
+
updates
|
|
901
|
+
)
|
|
902
|
+
)
|
|
903
|
+
};
|
|
656
904
|
|
|
657
|
-
const priorAlcoholOffenses = (scope) =>
|
|
658
|
-
|
|
659
|
-
label:
|
|
660
|
-
|
|
905
|
+
const priorAlcoholOffenses = (scope, vertical, updates = {}) => {
|
|
906
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
907
|
+
const label = vertical ? updates.label : "Any Prior Alcohol Related Offenses?";
|
|
908
|
+
return func(
|
|
909
|
+
merge(
|
|
910
|
+
{
|
|
911
|
+
name: scope ? scope + ":" + "Prior_Alcohol_Offenses" : "Prior_Alcohol_Offenses",
|
|
912
|
+
label,
|
|
913
|
+
},
|
|
914
|
+
updates
|
|
915
|
+
)
|
|
916
|
+
)
|
|
917
|
+
};
|
|
661
918
|
|
|
662
|
-
const policeReportFiled = (scope) =>
|
|
663
|
-
|
|
664
|
-
label:
|
|
665
|
-
|
|
919
|
+
const policeReportFiled = (scope, vertical, updates = {}) => {
|
|
920
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
921
|
+
const label = vertical ? updates.label : "Was a Police Report Filed?";
|
|
922
|
+
return func(
|
|
923
|
+
merge(
|
|
924
|
+
{
|
|
925
|
+
name: scope ? scope + ":" + "Police_Report_Filed" : "Police_Report_Filed",
|
|
926
|
+
label,
|
|
927
|
+
},
|
|
928
|
+
updates
|
|
929
|
+
)
|
|
930
|
+
)
|
|
931
|
+
};
|
|
666
932
|
|
|
667
|
-
const roleInMatterProbate = (scope) =>
|
|
668
|
-
|
|
669
|
-
label: "What
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
}
|
|
933
|
+
const roleInMatterProbate = (scope, vertical, updates = {}) => {
|
|
934
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
935
|
+
const label = vertical ? updates.label : "What is Your Role in this Matter?";
|
|
936
|
+
return func(
|
|
937
|
+
merge(
|
|
938
|
+
{
|
|
939
|
+
label,
|
|
940
|
+
name: scope ? scope + ":" + "Role_In_Matter_Probate" : "Role_In_Matter_Probate",
|
|
941
|
+
options: ["Preparing My Will", "Executor", "Heir", "Other"],
|
|
942
|
+
},
|
|
943
|
+
updates
|
|
944
|
+
)
|
|
945
|
+
)
|
|
946
|
+
};
|
|
677
947
|
|
|
678
|
-
const socialSecurityDisabilityReceivingBenefits = (scope) =>
|
|
679
|
-
|
|
680
|
-
label:
|
|
681
|
-
|
|
948
|
+
const socialSecurityDisabilityReceivingBenefits = (scope, vertical, updates = {}) => {
|
|
949
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
950
|
+
const label = vertical ? updates.label : "Are You Currently Receiving Social Security Disability Benefits?";
|
|
951
|
+
return func(
|
|
952
|
+
merge(
|
|
953
|
+
{
|
|
954
|
+
name: scope
|
|
955
|
+
? scope + ":" + "Social_Security_Disability_Receiving_Benefits"
|
|
956
|
+
: "Social_Security_Disability_Receiving_Benefits",
|
|
957
|
+
label,
|
|
958
|
+
},
|
|
959
|
+
updates
|
|
960
|
+
)
|
|
961
|
+
)
|
|
962
|
+
};
|
|
682
963
|
|
|
683
964
|
const TCPAConsent = (scope) => ({
|
|
684
|
-
$formkit:
|
|
685
|
-
label:
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
965
|
+
$formkit: "checkbox",
|
|
966
|
+
label: "$meta.tcpaLanguage",
|
|
967
|
+
// Necessary to get links to work in the tcpa language
|
|
968
|
+
__raw__sectionsSchema: {
|
|
969
|
+
label: { attrs: { innerHTML: "$label" } },
|
|
970
|
+
},
|
|
971
|
+
name: scope ? scope + ":" + "TCPA_Opt_In" : "TCPA_Opt_In",
|
|
972
|
+
"data-tf-sensitive": "false",
|
|
973
|
+
validation: "required|accepted",
|
|
689
974
|
validationMessages: {
|
|
690
|
-
required:
|
|
691
|
-
accepted:
|
|
975
|
+
required: "Consent is required",
|
|
976
|
+
accepted: "Consent is required",
|
|
692
977
|
},
|
|
693
978
|
classes: {
|
|
694
|
-
label: "t-text-xs t-text-slate-500 t-font-normal"
|
|
695
|
-
}
|
|
979
|
+
label: "t-text-xs t-text-slate-500 t-font-normal",
|
|
980
|
+
},
|
|
696
981
|
});
|
|
697
982
|
|
|
698
|
-
const typeOfAlcoholTest = (scope) =>
|
|
699
|
-
|
|
700
|
-
label:
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
983
|
+
const typeOfAlcoholTest = (scope, vertical, updates = {}) => {
|
|
984
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
985
|
+
const label = vertical ? updates.label : "Type of Alcohol Test Performed?";
|
|
986
|
+
return func(
|
|
987
|
+
merge(
|
|
988
|
+
{
|
|
989
|
+
label,
|
|
990
|
+
name: scope ? scope + ":" + "Type_Of_Alcohol_Test" : "Type_Of_Alcohol_Test",
|
|
991
|
+
options: ["No Test", "Refused Test", "Breath Test", "Blood Test", "Urine Test", "Don't Know"],
|
|
992
|
+
},
|
|
993
|
+
updates
|
|
994
|
+
)
|
|
995
|
+
)
|
|
996
|
+
};
|
|
710
997
|
|
|
711
|
-
const typeOfAssets = (scope) =>
|
|
712
|
-
|
|
713
|
-
label:
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
998
|
+
const typeOfAssets = (scope, vertical, updates = {}) => {
|
|
999
|
+
const func = vertical ? verticalCol2Checkbox : col2Checkbox;
|
|
1000
|
+
const label = vertical ? updates.label : "Type of Assets:";
|
|
1001
|
+
return func(
|
|
1002
|
+
merge(
|
|
1003
|
+
{
|
|
1004
|
+
label,
|
|
1005
|
+
name: scope ? scope + ":" + "Type_Of_Assets" : "Type_Of_Assets",
|
|
1006
|
+
options: [
|
|
1007
|
+
"Business Interests",
|
|
1008
|
+
"Cash",
|
|
1009
|
+
"Life Insurance Policies",
|
|
1010
|
+
"Pensions/Retirement",
|
|
1011
|
+
"Personal Possessions",
|
|
1012
|
+
"Property",
|
|
1013
|
+
"Stock/Bonds",
|
|
1014
|
+
],
|
|
1015
|
+
},
|
|
1016
|
+
updates
|
|
1017
|
+
)
|
|
1018
|
+
)
|
|
1019
|
+
};
|
|
724
1020
|
|
|
725
|
-
const valueOfAssets = (scope) =>
|
|
726
|
-
|
|
727
|
-
label:
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
1021
|
+
const valueOfAssets = (scope, vertical, updates = {}) => {
|
|
1022
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
1023
|
+
const label = vertical ? updates.label : "Value of Your Assets?";
|
|
1024
|
+
return func(
|
|
1025
|
+
merge(
|
|
1026
|
+
{
|
|
1027
|
+
label,
|
|
1028
|
+
name: scope ? scope + ":" + "Value_Of_Assets" : "Value_Of_Assets",
|
|
1029
|
+
options: ["Less than 50K", "50K to 100K", "100K to 250K", "250K to 500K", "500K to 1M", "More than 1M"],
|
|
1030
|
+
},
|
|
1031
|
+
updates
|
|
1032
|
+
)
|
|
1033
|
+
)
|
|
1034
|
+
};
|
|
737
1035
|
|
|
738
|
-
// ------ Question Groups
|
|
1036
|
+
// ------ Question Groups - TODO: move these go separate file groups.js
|
|
739
1037
|
|
|
740
1038
|
// NOTE: name must be unique within a form!
|
|
741
1039
|
const group = (name, updates) => {
|
|
742
|
-
return merge(
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
1040
|
+
return merge(
|
|
1041
|
+
{
|
|
1042
|
+
$cmp: "FormKit",
|
|
1043
|
+
props: {
|
|
1044
|
+
type: "group",
|
|
1045
|
+
key: name,
|
|
1046
|
+
id: name,
|
|
1047
|
+
name: name,
|
|
1048
|
+
},
|
|
1049
|
+
},
|
|
1050
|
+
updates
|
|
1051
|
+
)
|
|
751
1052
|
};
|
|
752
1053
|
|
|
753
|
-
const AutoAndCarAccidentsQuestions = (condition, scope) =>
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
|
|
1054
|
+
const AutoAndCarAccidentsQuestions = (condition, scope) =>
|
|
1055
|
+
group("AutoAndCarAccidentsQuestions", {
|
|
1056
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
|
|
757
1057
|
children: [
|
|
758
1058
|
haveAttorney$1(scope),
|
|
759
1059
|
incidentDate(scope),
|
|
760
1060
|
atFault(scope),
|
|
761
1061
|
primaryInjury(scope),
|
|
762
1062
|
doctorTreatment(scope),
|
|
763
|
-
policeReportFiled(scope)
|
|
764
|
-
]
|
|
765
|
-
}
|
|
766
|
-
);
|
|
1063
|
+
policeReportFiled(scope),
|
|
1064
|
+
],
|
|
1065
|
+
});
|
|
767
1066
|
|
|
768
|
-
const ChildCustodyQuestions = (condition, scope) =>
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
|
|
1067
|
+
const ChildCustodyQuestions = (condition, scope) =>
|
|
1068
|
+
group("ChildCustodyQuestions", {
|
|
1069
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"',
|
|
772
1070
|
children: [
|
|
773
1071
|
haveAttorney$1(scope),
|
|
774
1072
|
childRelationship(scope),
|
|
775
1073
|
childHome(scope),
|
|
776
1074
|
childPrimaryCaregiver(scope),
|
|
777
1075
|
degreeOfInterest$1(scope),
|
|
778
|
-
lawyerPaymentMethod(scope)
|
|
779
|
-
]
|
|
780
|
-
}
|
|
781
|
-
);
|
|
1076
|
+
lawyerPaymentMethod(scope),
|
|
1077
|
+
],
|
|
1078
|
+
});
|
|
782
1079
|
|
|
783
|
-
const DivorceQuestions = (condition, scope) =>
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
|
|
1080
|
+
const DivorceQuestions = (condition, scope) =>
|
|
1081
|
+
group("DivorceQuestions", {
|
|
1082
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
|
|
787
1083
|
children: [
|
|
788
1084
|
haveAttorney$1(scope),
|
|
789
1085
|
maritalStatus(scope),
|
|
790
1086
|
haveChildren(scope),
|
|
791
1087
|
degreeOfInterest$1(scope),
|
|
792
|
-
lawyerPaymentMethod(scope)
|
|
793
|
-
]
|
|
794
|
-
}
|
|
795
|
-
);
|
|
1088
|
+
lawyerPaymentMethod(scope),
|
|
1089
|
+
],
|
|
1090
|
+
});
|
|
796
1091
|
|
|
797
|
-
const DUIAndDWIQuestions = (condition, scope) =>
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
|
|
1092
|
+
const DUIAndDWIQuestions = (condition, scope) =>
|
|
1093
|
+
group("DUIAndDWIQuestions", {
|
|
1094
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
|
|
801
1095
|
children: [
|
|
802
1096
|
haveAttorney$1(scope),
|
|
803
1097
|
incidentDate(scope),
|
|
@@ -805,93 +1099,81 @@ const DUIAndDWIQuestions = (condition, scope) => group(
|
|
|
805
1099
|
typeOfAlcoholTest(scope),
|
|
806
1100
|
bloodContentAlcoholTest(scope),
|
|
807
1101
|
pendingCharges(scope),
|
|
808
|
-
degreeOfInterestHelp(scope)
|
|
809
|
-
]
|
|
810
|
-
}
|
|
811
|
-
);
|
|
1102
|
+
degreeOfInterestHelp(scope),
|
|
1103
|
+
],
|
|
1104
|
+
});
|
|
812
1105
|
|
|
813
|
-
const PersonalInjuryQuestions = (condition, scope) =>
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
|
|
1106
|
+
const PersonalInjuryQuestions = (condition, scope) =>
|
|
1107
|
+
group("PersonalInjuryQuestions", {
|
|
1108
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
|
|
817
1109
|
children: [
|
|
818
1110
|
haveAttorney$1(scope),
|
|
819
1111
|
incidentDate(scope),
|
|
820
1112
|
claimStatus(scope),
|
|
821
1113
|
atFault(scope),
|
|
822
1114
|
primaryInjury(scope),
|
|
823
|
-
doctorTreatment(scope)
|
|
824
|
-
]
|
|
825
|
-
}
|
|
826
|
-
);
|
|
1115
|
+
doctorTreatment(scope),
|
|
1116
|
+
],
|
|
1117
|
+
});
|
|
827
1118
|
|
|
828
|
-
const PowerofAttorneyQuestions = (condition, scope) =>
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
haveAttorney$1(scope),
|
|
834
|
-
degreeOfInterestHelp(scope)
|
|
835
|
-
]
|
|
836
|
-
}
|
|
837
|
-
);
|
|
1119
|
+
const PowerofAttorneyQuestions = (condition, scope) =>
|
|
1120
|
+
group("PowerofAttorneyQuestions", {
|
|
1121
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
|
|
1122
|
+
children: [haveAttorney$1(scope), degreeOfInterestHelp(scope)],
|
|
1123
|
+
});
|
|
838
1124
|
|
|
839
|
-
const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) =>
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
|
|
1125
|
+
const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) =>
|
|
1126
|
+
group("SocialSecurityDisabilityAndInsuranceQuestions", {
|
|
1127
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"',
|
|
843
1128
|
children: [
|
|
844
1129
|
haveAttorney$1(scope),
|
|
845
1130
|
applicantAge(scope),
|
|
846
1131
|
disabilityConditionStopWork(scope),
|
|
847
1132
|
disabilityWorkHistory(scope),
|
|
848
1133
|
socialSecurityDisabilityReceivingBenefits(scope),
|
|
849
|
-
doctorTreatment(scope)
|
|
850
|
-
]
|
|
851
|
-
}
|
|
852
|
-
);
|
|
1134
|
+
doctorTreatment(scope),
|
|
1135
|
+
],
|
|
1136
|
+
});
|
|
853
1137
|
|
|
854
|
-
const WillsAndTrustsQuestions = (condition, scope) =>
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
|
|
1138
|
+
const WillsAndTrustsQuestions = (condition, scope) =>
|
|
1139
|
+
group("WillsAndTrustsQuestions", {
|
|
1140
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
|
|
858
1141
|
children: [
|
|
859
1142
|
haveAttorney$1(scope),
|
|
860
1143
|
valueOfAssets(scope),
|
|
861
1144
|
typeOfAssets(scope),
|
|
862
1145
|
roleInMatterProbate(scope),
|
|
863
1146
|
estateLegalServicesNeeded(scope),
|
|
864
|
-
degreeOfInterestHelp(scope)
|
|
865
|
-
]
|
|
866
|
-
}
|
|
867
|
-
);
|
|
1147
|
+
degreeOfInterestHelp(scope),
|
|
1148
|
+
],
|
|
1149
|
+
});
|
|
868
1150
|
|
|
869
|
-
const WorkersCompensationQuestions = (condition, scope) =>
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
|
|
1151
|
+
const WorkersCompensationQuestions = (condition, scope) =>
|
|
1152
|
+
group("WorkersCompensationQuestions", {
|
|
1153
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
|
|
873
1154
|
children: [
|
|
874
1155
|
haveAttorney$1(scope),
|
|
875
1156
|
incidentDate(scope),
|
|
876
1157
|
claimStatus(scope),
|
|
877
1158
|
primaryInjury(scope),
|
|
878
1159
|
causeOfInjury(scope),
|
|
879
|
-
doctorTreatment(scope)
|
|
880
|
-
]
|
|
881
|
-
}
|
|
882
|
-
);
|
|
1160
|
+
doctorTreatment(scope),
|
|
1161
|
+
],
|
|
1162
|
+
});
|
|
883
1163
|
|
|
884
|
-
const NEXT_ON_ENTER =
|
|
885
|
-
const NEXT_ON_INPUT =
|
|
1164
|
+
const NEXT_ON_ENTER = "$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
|
|
1165
|
+
const NEXT_ON_INPUT = "$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
|
|
886
1166
|
|
|
887
|
-
const isInput = (n) => {
|
|
1167
|
+
const isInput = (n) => {
|
|
1168
|
+
return n.type !== "group" && n.type !== "section" && n.type !== "form" && n.$formkit !== "hidden" && !n.children
|
|
1169
|
+
};
|
|
888
1170
|
|
|
889
1171
|
const findLastInput = (n) => {
|
|
890
1172
|
if (isInput(n)) {
|
|
891
1173
|
return n
|
|
892
1174
|
}
|
|
893
1175
|
for (var i = n.children.length - 1; i >= 0; i--) {
|
|
894
|
-
if (typeof n.children ===
|
|
1176
|
+
if (typeof n.children === "string") {
|
|
895
1177
|
continue
|
|
896
1178
|
}
|
|
897
1179
|
const child = n.children[i];
|
|
@@ -907,136 +1189,154 @@ const findLastInput = (n) => {
|
|
|
907
1189
|
};
|
|
908
1190
|
|
|
909
1191
|
const secureIconDefault = {
|
|
910
|
-
$el:
|
|
911
|
-
if:
|
|
1192
|
+
$el: "div",
|
|
1193
|
+
if: "$activeStep === $lastStep()",
|
|
912
1194
|
attrs: {
|
|
913
|
-
class:
|
|
1195
|
+
class: "t-flex t-justify-center t-items-center t-text-sm t-text-gray-500",
|
|
914
1196
|
},
|
|
915
1197
|
children: [
|
|
916
1198
|
{
|
|
917
|
-
$el:
|
|
1199
|
+
$el: "img",
|
|
918
1200
|
attrs: {
|
|
919
|
-
loading:
|
|
920
|
-
alt:
|
|
1201
|
+
loading: "lazy",
|
|
1202
|
+
alt: "",
|
|
921
1203
|
style: {
|
|
922
|
-
border: 0
|
|
1204
|
+
border: 0,
|
|
923
1205
|
},
|
|
924
|
-
width:
|
|
925
|
-
height:
|
|
926
|
-
src:
|
|
927
|
-
}
|
|
1206
|
+
width: "25",
|
|
1207
|
+
height: "25",
|
|
1208
|
+
src: "https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg",
|
|
1209
|
+
},
|
|
928
1210
|
},
|
|
929
1211
|
{
|
|
930
|
-
$el:
|
|
931
|
-
children:
|
|
1212
|
+
$el: "span",
|
|
1213
|
+
children: "Secure & Encrypted",
|
|
932
1214
|
attrs: {
|
|
933
|
-
class:
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
]
|
|
1215
|
+
class: "t-pl-2 t-pt-1 t-font-medium",
|
|
1216
|
+
},
|
|
1217
|
+
},
|
|
1218
|
+
],
|
|
937
1219
|
};
|
|
938
1220
|
|
|
939
1221
|
function secureIcon(updates) {
|
|
940
|
-
return merge(
|
|
941
|
-
secureIconDefault,
|
|
942
|
-
updates
|
|
943
|
-
)
|
|
1222
|
+
return merge(secureIconDefault, updates)
|
|
944
1223
|
}
|
|
945
1224
|
|
|
946
1225
|
function crossSellQuestionsStepHeadline(updates) {
|
|
947
1226
|
return {
|
|
948
|
-
$el:
|
|
949
|
-
children: updates.headline ||
|
|
1227
|
+
$el: "h3",
|
|
1228
|
+
children: updates.headline || "Tell Us About Your Situation",
|
|
950
1229
|
attrs: {
|
|
951
|
-
class:
|
|
952
|
-
}
|
|
1230
|
+
class: "t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1",
|
|
1231
|
+
},
|
|
953
1232
|
}
|
|
954
1233
|
}
|
|
955
1234
|
|
|
956
1235
|
function crossSellQuestionsStepSubHeadline(updates) {
|
|
957
1236
|
return {
|
|
958
|
-
$el:
|
|
959
|
-
children: updates.subheadline ||
|
|
1237
|
+
$el: "h5",
|
|
1238
|
+
children: updates.subheadline || "Tell us about your situation:",
|
|
960
1239
|
attrs: {
|
|
961
|
-
class:
|
|
962
|
-
}
|
|
1240
|
+
class: "t-flex t-justify-center t-text-dark t-text-center !t-text-lg t-font-semibold t-pb-4 t-pt-0 t-px-3",
|
|
1241
|
+
},
|
|
963
1242
|
}
|
|
964
1243
|
}
|
|
965
1244
|
|
|
966
1245
|
function verticalStepHeadline(updates) {
|
|
967
1246
|
return {
|
|
968
|
-
$el:
|
|
969
|
-
children: updates.headline ||
|
|
1247
|
+
$el: "h3",
|
|
1248
|
+
children: updates.headline || "Tell Us About Your Situation",
|
|
970
1249
|
attrs: {
|
|
971
|
-
class:
|
|
972
|
-
|
|
1250
|
+
class:
|
|
1251
|
+
"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1" +
|
|
1252
|
+
" " +
|
|
1253
|
+
(updates.headlineClass || ""),
|
|
1254
|
+
},
|
|
973
1255
|
}
|
|
974
1256
|
}
|
|
975
1257
|
|
|
976
1258
|
function verticalStepSubHeadline(updates) {
|
|
977
1259
|
return {
|
|
978
|
-
$el:
|
|
979
|
-
children: updates.subheadline ||
|
|
1260
|
+
$el: "h5",
|
|
1261
|
+
children: updates.subheadline || "",
|
|
980
1262
|
attrs: {
|
|
981
|
-
class:
|
|
982
|
-
|
|
1263
|
+
class:
|
|
1264
|
+
"t-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1" +
|
|
1265
|
+
" " +
|
|
1266
|
+
(updates.subheadlineClass || ""),
|
|
1267
|
+
},
|
|
983
1268
|
}
|
|
984
1269
|
}
|
|
985
1270
|
|
|
986
1271
|
function commentsStepHeadline(updates) {
|
|
987
1272
|
return {
|
|
988
|
-
$el:
|
|
989
|
-
children: updates.headline ||
|
|
1273
|
+
$el: "h3",
|
|
1274
|
+
children: updates.headline || "Additional Details",
|
|
990
1275
|
attrs: {
|
|
991
|
-
class:
|
|
992
|
-
|
|
1276
|
+
class:
|
|
1277
|
+
"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1" +
|
|
1278
|
+
" " +
|
|
1279
|
+
(updates.headlineClass || ""),
|
|
1280
|
+
},
|
|
993
1281
|
}
|
|
994
1282
|
}
|
|
995
1283
|
|
|
996
1284
|
function commentsStepHeadlineLegal(updates) {
|
|
997
1285
|
return commentsStepHeadline({
|
|
998
|
-
headline: updates.headline ||
|
|
999
|
-
headlineClass: updates.headlineClass
|
|
1286
|
+
headline: updates.headline || "Additional Case Details",
|
|
1287
|
+
headlineClass: updates.headlineClass,
|
|
1000
1288
|
})
|
|
1001
1289
|
}
|
|
1002
1290
|
|
|
1003
1291
|
function firstAndLastStepHeadline(updates) {
|
|
1004
1292
|
return {
|
|
1005
|
-
$el:
|
|
1006
|
-
children: updates.headline ||
|
|
1293
|
+
$el: "h3",
|
|
1294
|
+
children: updates.headline || "Please Provide a Contact Name",
|
|
1007
1295
|
attrs: {
|
|
1008
|
-
class:
|
|
1009
|
-
|
|
1296
|
+
class:
|
|
1297
|
+
"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1" +
|
|
1298
|
+
" " +
|
|
1299
|
+
(updates.headlineClass || ""),
|
|
1300
|
+
},
|
|
1010
1301
|
}
|
|
1011
1302
|
}
|
|
1012
1303
|
|
|
1013
1304
|
function legalCrossSellsStepHeadline(updates) {
|
|
1014
1305
|
return {
|
|
1015
|
-
$el:
|
|
1016
|
-
children: updates.headline ||
|
|
1306
|
+
$el: "h3",
|
|
1307
|
+
children: updates.headline || "Do any of the following situations apply?",
|
|
1017
1308
|
attrs: {
|
|
1018
|
-
class:
|
|
1019
|
-
|
|
1309
|
+
class:
|
|
1310
|
+
"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1" +
|
|
1311
|
+
" " +
|
|
1312
|
+
(updates.headlineClass || ""),
|
|
1313
|
+
},
|
|
1020
1314
|
}
|
|
1021
1315
|
}
|
|
1022
1316
|
|
|
1023
1317
|
function contactStepHeadline(updates) {
|
|
1024
1318
|
return {
|
|
1025
|
-
$el:
|
|
1319
|
+
$el: "h3",
|
|
1026
1320
|
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
|
|
1027
1321
|
attrs: {
|
|
1028
|
-
class:
|
|
1029
|
-
|
|
1322
|
+
class:
|
|
1323
|
+
"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1" +
|
|
1324
|
+
" " +
|
|
1325
|
+
(updates.headlineClass || ""),
|
|
1326
|
+
},
|
|
1030
1327
|
}
|
|
1031
1328
|
}
|
|
1032
1329
|
|
|
1033
1330
|
function contactStepSubHeadline(updates) {
|
|
1034
1331
|
return {
|
|
1035
|
-
$el:
|
|
1332
|
+
$el: "h5",
|
|
1036
1333
|
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
|
|
1037
1334
|
attrs: {
|
|
1038
|
-
class:
|
|
1039
|
-
|
|
1335
|
+
class:
|
|
1336
|
+
"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3" +
|
|
1337
|
+
" " +
|
|
1338
|
+
(updates.subheadlineClass || ""),
|
|
1339
|
+
},
|
|
1040
1340
|
}
|
|
1041
1341
|
}
|
|
1042
1342
|
|
|
@@ -1058,19 +1358,19 @@ const TRUSTED_FORM_JS = `(function() {
|
|
|
1058
1358
|
|
|
1059
1359
|
function trustedFormScript() {
|
|
1060
1360
|
return {
|
|
1061
|
-
$el:
|
|
1062
|
-
if:
|
|
1063
|
-
children: TRUSTED_FORM_JS
|
|
1361
|
+
$el: "script",
|
|
1362
|
+
if: "$activeStep === $lastStep()",
|
|
1363
|
+
children: TRUSTED_FORM_JS,
|
|
1064
1364
|
}
|
|
1065
1365
|
}
|
|
1066
1366
|
|
|
1067
1367
|
const stepDefaults = (step, stepKey) => ({
|
|
1068
|
-
$el:
|
|
1368
|
+
$el: "section",
|
|
1069
1369
|
if: '$stepEnabled("' + step + '")',
|
|
1070
1370
|
attrs: {
|
|
1071
1371
|
hidden: '$activeStep !== "' + step + '"',
|
|
1072
|
-
key: stepKey ? stepKey : step
|
|
1073
|
-
}
|
|
1372
|
+
key: stepKey ? stepKey : step,
|
|
1373
|
+
},
|
|
1074
1374
|
});
|
|
1075
1375
|
|
|
1076
1376
|
function step(name, inputs, updates = {}) {
|
|
@@ -1093,35 +1393,35 @@ function step(name, inputs, updates = {}) {
|
|
|
1093
1393
|
}
|
|
1094
1394
|
}
|
|
1095
1395
|
|
|
1096
|
-
return merge(
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
]
|
|
1110
|
-
}
|
|
1111
|
-
)
|
|
1396
|
+
return merge(stepDefaults(name, stepKey), {
|
|
1397
|
+
children: [
|
|
1398
|
+
{
|
|
1399
|
+
$formkit: "group",
|
|
1400
|
+
id: name,
|
|
1401
|
+
name: name,
|
|
1402
|
+
nextStepMap: nextStepMap,
|
|
1403
|
+
triggerRedirectMap: triggerRedirectMap,
|
|
1404
|
+
autoFocus: autoFocus,
|
|
1405
|
+
children: inputs,
|
|
1406
|
+
},
|
|
1407
|
+
],
|
|
1408
|
+
})
|
|
1112
1409
|
}
|
|
1113
1410
|
|
|
1114
1411
|
// Single question step
|
|
1115
1412
|
function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
1116
|
-
if (typeof updates.nextOnInput ===
|
|
1413
|
+
if (typeof updates.nextOnInput === "undefined") {
|
|
1117
1414
|
updates.nextOnInput = true;
|
|
1118
1415
|
}
|
|
1119
|
-
|
|
1416
|
+
|
|
1120
1417
|
return step(
|
|
1121
1418
|
name,
|
|
1122
1419
|
[
|
|
1123
|
-
verticalStepHeadline({
|
|
1124
|
-
|
|
1420
|
+
verticalStepHeadline({
|
|
1421
|
+
headline: updates.headline ?? defaultHeadline,
|
|
1422
|
+
headlineClass: updates.headlineClass,
|
|
1423
|
+
}),
|
|
1424
|
+
...(Array.isArray(input) ? input : [input]),
|
|
1125
1425
|
],
|
|
1126
1426
|
updates
|
|
1127
1427
|
)
|
|
@@ -1129,7 +1429,7 @@ function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
|
1129
1429
|
|
|
1130
1430
|
function contactInfo(updates = {}) {
|
|
1131
1431
|
return step(
|
|
1132
|
-
|
|
1432
|
+
"contactInfo",
|
|
1133
1433
|
[
|
|
1134
1434
|
contactStepHeadline(updates),
|
|
1135
1435
|
contactStepSubHeadline(updates),
|
|
@@ -1137,63 +1437,58 @@ function contactInfo(updates = {}) {
|
|
|
1137
1437
|
email(updates.scope),
|
|
1138
1438
|
phone(updates.scope),
|
|
1139
1439
|
TCPAConsent(updates.scope),
|
|
1140
|
-
secureIcon()
|
|
1440
|
+
secureIcon(),
|
|
1141
1441
|
],
|
|
1142
1442
|
{ nextOnEnter: false }
|
|
1143
1443
|
)
|
|
1144
1444
|
}
|
|
1145
1445
|
|
|
1146
|
-
function firstAndLastV3(updates = {}
|
|
1446
|
+
function firstAndLastV3(updates = {}) {
|
|
1147
1447
|
return step(
|
|
1148
|
-
|
|
1448
|
+
"firstAndLast",
|
|
1149
1449
|
[
|
|
1150
1450
|
firstAndLastStepHeadline({
|
|
1151
|
-
headline: updates.headline ??
|
|
1152
|
-
headlineClass: updates.headlineClass
|
|
1451
|
+
headline: updates.headline ?? "Who is looking for help?",
|
|
1452
|
+
headlineClass: updates.headlineClass,
|
|
1153
1453
|
}),
|
|
1154
1454
|
verticalStepSubHeadline({
|
|
1155
|
-
subheadline: updates.subheadline ??
|
|
1156
|
-
subheadlineClass:
|
|
1455
|
+
subheadline: updates.subheadline ?? "Note: we never share info without consent",
|
|
1456
|
+
subheadlineClass: "!t-text-sm !t-text-gray-500",
|
|
1157
1457
|
}),
|
|
1158
|
-
firstName(scope),
|
|
1159
|
-
lastName(scope)
|
|
1458
|
+
firstName(updates.scope),
|
|
1459
|
+
lastName(updates.scope),
|
|
1160
1460
|
],
|
|
1161
1461
|
updates
|
|
1162
1462
|
)
|
|
1163
1463
|
}
|
|
1164
1464
|
|
|
1165
1465
|
function zipcode(updates = {}) {
|
|
1166
|
-
return sqstep(
|
|
1167
|
-
'zipcode',
|
|
1168
|
-
zipcode$1(updates.scope, true, updates),
|
|
1169
|
-
'Please verify your Zip Code',
|
|
1170
|
-
updates
|
|
1171
|
-
)
|
|
1466
|
+
return sqstep("zipcode", zipcode$1(updates.scope, true, updates.input), "Please verify your Zip Code", updates)
|
|
1172
1467
|
}
|
|
1173
1468
|
|
|
1174
1469
|
function commentsWithBankruptcy(updates = {}) {
|
|
1175
1470
|
return step(
|
|
1176
|
-
|
|
1471
|
+
"commentsWithBankruptcy",
|
|
1177
1472
|
[
|
|
1178
1473
|
commentsStepHeadlineLegal(updates),
|
|
1179
|
-
comments({
|
|
1180
|
-
label: typeof updates.label ===
|
|
1474
|
+
comments(updates.scope, false, {
|
|
1475
|
+
label: typeof updates.label === "undefined" ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
|
|
1181
1476
|
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
|
|
1182
|
-
inputClass: typeof updates.inputClass ===
|
|
1183
|
-
}
|
|
1477
|
+
inputClass: typeof updates.inputClass === "undefined" ? "!t-h-32" : updates.inputClass,
|
|
1478
|
+
}),
|
|
1184
1479
|
// TODO: needs scope support
|
|
1185
1480
|
bankruptcyCrossSell(),
|
|
1186
1481
|
{
|
|
1187
|
-
$el:
|
|
1188
|
-
if:
|
|
1482
|
+
$el: "div",
|
|
1483
|
+
if: "$get(CrossSell_Bankruptcy).value == true",
|
|
1189
1484
|
children: [
|
|
1190
|
-
comments({
|
|
1191
|
-
label:
|
|
1192
|
-
placeholder:
|
|
1193
|
-
inputClass:
|
|
1194
|
-
},
|
|
1485
|
+
comments("CrossSell:Bankruptcy", false, {
|
|
1486
|
+
label: "Bankruptcy or debt details:",
|
|
1487
|
+
placeholder: "Please describe your bankrtupcy or debt situation in a few words...",
|
|
1488
|
+
inputClass: "!t-h-16",
|
|
1489
|
+
}),
|
|
1195
1490
|
],
|
|
1196
|
-
}
|
|
1491
|
+
},
|
|
1197
1492
|
],
|
|
1198
1493
|
{ nextOnEnter: false }
|
|
1199
1494
|
)
|
|
@@ -1201,19 +1496,20 @@ function commentsWithBankruptcy(updates = {}) {
|
|
|
1201
1496
|
|
|
1202
1497
|
function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
1203
1498
|
return step(
|
|
1204
|
-
|
|
1499
|
+
"autoAndCarAccidentCrossSellQuestions",
|
|
1205
1500
|
[
|
|
1206
|
-
crossSellQuestionsStepHeadline({
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1501
|
+
crossSellQuestionsStepHeadline({
|
|
1502
|
+
headline: "You May Be Entitled To Compensation",
|
|
1503
|
+
}),
|
|
1504
|
+
crossSellQuestionsStepSubHeadline({
|
|
1505
|
+
subheadline: "Tell us about your accident:",
|
|
1506
|
+
}),
|
|
1507
|
+
AutoAndCarAccidentsQuestions("true", "CrossSell:Auto_and_Car_Accidents"),
|
|
1508
|
+
comments("CrossSell:Auto_and_Car_Accidents", false, {
|
|
1509
|
+
label: "Accident Description:",
|
|
1510
|
+
placeholder: "Please describe your accident in a few words...",
|
|
1511
|
+
inputClass: "!t-h-16",
|
|
1512
|
+
}),
|
|
1217
1513
|
],
|
|
1218
1514
|
updates
|
|
1219
1515
|
)
|
|
@@ -1221,18 +1517,15 @@ function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
|
1221
1517
|
|
|
1222
1518
|
function childCustodyCrossSellQuestions(updates = {}) {
|
|
1223
1519
|
return step(
|
|
1224
|
-
|
|
1520
|
+
"childCustodyCrossSellQuestions",
|
|
1225
1521
|
[
|
|
1226
|
-
crossSellQuestionsStepHeadline({ headline:
|
|
1227
|
-
ChildCustodyQuestions("true",
|
|
1228
|
-
comments(
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
},
|
|
1234
|
-
'CrossSell:Child_Custody'
|
|
1235
|
-
)
|
|
1522
|
+
crossSellQuestionsStepHeadline({ headline: "Child Custody Information" }),
|
|
1523
|
+
ChildCustodyQuestions("true", "CrossSell:Child_Custody"),
|
|
1524
|
+
comments("CrossSell:Child_Custody", false, {
|
|
1525
|
+
label: "Description:",
|
|
1526
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1527
|
+
inputClass: "!t-h-16",
|
|
1528
|
+
}),
|
|
1236
1529
|
],
|
|
1237
1530
|
updates
|
|
1238
1531
|
)
|
|
@@ -1240,18 +1533,17 @@ function childCustodyCrossSellQuestions(updates = {}) {
|
|
|
1240
1533
|
|
|
1241
1534
|
function divorceAndSeparationCrossSellQuestions(updates = {}) {
|
|
1242
1535
|
return step(
|
|
1243
|
-
|
|
1536
|
+
"divorceAndSeparationCrossSellQuestions",
|
|
1244
1537
|
[
|
|
1245
|
-
crossSellQuestionsStepHeadline({
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
)
|
|
1538
|
+
crossSellQuestionsStepHeadline({
|
|
1539
|
+
headline: "Divorce or Separation Information",
|
|
1540
|
+
}),
|
|
1541
|
+
DivorceQuestions("true", "CrossSell:Divorce_and_Separation"),
|
|
1542
|
+
comments("CrossSell:Divorce_and_Separation", false, {
|
|
1543
|
+
label: "Description:",
|
|
1544
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1545
|
+
inputClass: "!t-h-16",
|
|
1546
|
+
}),
|
|
1255
1547
|
],
|
|
1256
1548
|
updates
|
|
1257
1549
|
)
|
|
@@ -1259,18 +1551,15 @@ function divorceAndSeparationCrossSellQuestions(updates = {}) {
|
|
|
1259
1551
|
|
|
1260
1552
|
function duiAndDWICrossSellQuestions(updates = {}) {
|
|
1261
1553
|
return step(
|
|
1262
|
-
|
|
1554
|
+
"duiAndDWICrossSellQuestions",
|
|
1263
1555
|
[
|
|
1264
|
-
crossSellQuestionsStepHeadline({ headline:
|
|
1265
|
-
DUIAndDWIQuestions("true",
|
|
1266
|
-
comments(
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
},
|
|
1272
|
-
'CrossSell:DUI_and_DWI'
|
|
1273
|
-
)
|
|
1556
|
+
crossSellQuestionsStepHeadline({ headline: "About Your DUI/DWI" }),
|
|
1557
|
+
DUIAndDWIQuestions("true", "CrossSell:DUI_and_DWI"),
|
|
1558
|
+
comments("CrossSell:DUI_and_DWI", false, {
|
|
1559
|
+
label: "Incident Description:",
|
|
1560
|
+
placeholder: "Please describe your incident in a few words...",
|
|
1561
|
+
inputClass: "!t-h-16",
|
|
1562
|
+
}),
|
|
1274
1563
|
],
|
|
1275
1564
|
updates
|
|
1276
1565
|
)
|
|
@@ -1278,19 +1567,20 @@ function duiAndDWICrossSellQuestions(updates = {}) {
|
|
|
1278
1567
|
|
|
1279
1568
|
function ssdiCrossSellQuestions(updates = {}) {
|
|
1280
1569
|
return step(
|
|
1281
|
-
|
|
1570
|
+
"ssdiCrossSellQuestions",
|
|
1282
1571
|
[
|
|
1283
|
-
crossSellQuestionsStepHeadline({
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1572
|
+
crossSellQuestionsStepHeadline({
|
|
1573
|
+
headline: "You May Be Entitled To Benefits",
|
|
1574
|
+
}),
|
|
1575
|
+
crossSellQuestionsStepSubHeadline({
|
|
1576
|
+
subheadline: "Tell us about your disability:",
|
|
1577
|
+
}),
|
|
1578
|
+
SocialSecurityDisabilityAndInsuranceQuestions("true", "CrossSell:Social_Security_Disability_and_Insurance"),
|
|
1579
|
+
comments("CrossSell:Social_Security_Disability_and_Insurance", false, {
|
|
1580
|
+
label: "Description:",
|
|
1581
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1582
|
+
inputClass: "!t-h-16",
|
|
1583
|
+
}),
|
|
1294
1584
|
],
|
|
1295
1585
|
updates
|
|
1296
1586
|
)
|
|
@@ -1298,19 +1588,20 @@ function ssdiCrossSellQuestions(updates = {}) {
|
|
|
1298
1588
|
|
|
1299
1589
|
function personalInjuryCrossSellQuestions(updates = {}) {
|
|
1300
1590
|
return step(
|
|
1301
|
-
|
|
1591
|
+
"personalInjuryCrossSellQuestions",
|
|
1302
1592
|
[
|
|
1303
|
-
crossSellQuestionsStepHeadline({
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1593
|
+
crossSellQuestionsStepHeadline({
|
|
1594
|
+
headline: "You May Be Entitled To Compensation",
|
|
1595
|
+
}),
|
|
1596
|
+
crossSellQuestionsStepSubHeadline({
|
|
1597
|
+
subheadline: "Tell us about your injury:",
|
|
1598
|
+
}),
|
|
1599
|
+
PersonalInjuryQuestions("true", "CrossSell:Personal_Injury"),
|
|
1600
|
+
comments("CrossSell:Personal_Injury", false, {
|
|
1601
|
+
label: "Injury Description:",
|
|
1602
|
+
placeholder: "Please describe your injury in a few words...",
|
|
1603
|
+
inputClass: "!t-h-16",
|
|
1604
|
+
}),
|
|
1314
1605
|
],
|
|
1315
1606
|
updates
|
|
1316
1607
|
)
|
|
@@ -1318,18 +1609,17 @@ function personalInjuryCrossSellQuestions(updates = {}) {
|
|
|
1318
1609
|
|
|
1319
1610
|
function powerOfAttorneyCrossSellQuestions(updates = {}) {
|
|
1320
1611
|
return step(
|
|
1321
|
-
|
|
1612
|
+
"powerOfAttorneyCrossSellQuestions",
|
|
1322
1613
|
[
|
|
1323
|
-
crossSellQuestionsStepHeadline({
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
)
|
|
1614
|
+
crossSellQuestionsStepHeadline({
|
|
1615
|
+
headline: "Power of Attorney Information",
|
|
1616
|
+
}),
|
|
1617
|
+
PowerofAttorneyQuestions("true", "CrossSell:Power_of_Attorney"),
|
|
1618
|
+
comments("CrossSell:Power_of_Attorney", false, {
|
|
1619
|
+
label: "Description:",
|
|
1620
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1621
|
+
inputClass: "!t-h-16",
|
|
1622
|
+
}),
|
|
1333
1623
|
],
|
|
1334
1624
|
updates
|
|
1335
1625
|
)
|
|
@@ -1337,18 +1627,15 @@ function powerOfAttorneyCrossSellQuestions(updates = {}) {
|
|
|
1337
1627
|
|
|
1338
1628
|
function willsAndTrustsCrossSellQuestions(updates = {}) {
|
|
1339
1629
|
return step(
|
|
1340
|
-
|
|
1630
|
+
"willsAndTrustsCrossSellQuestions",
|
|
1341
1631
|
[
|
|
1342
|
-
crossSellQuestionsStepHeadline({ headline:
|
|
1343
|
-
WillsAndTrustsQuestions("true",
|
|
1344
|
-
comments(
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
},
|
|
1350
|
-
'CrossSell:Wills_and_Trusts'
|
|
1351
|
-
)
|
|
1632
|
+
crossSellQuestionsStepHeadline({ headline: "Will or Trust Information" }),
|
|
1633
|
+
WillsAndTrustsQuestions("true", "CrossSell:Wills_and_Trusts"),
|
|
1634
|
+
comments("CrossSell:Wills_and_Trusts", false, {
|
|
1635
|
+
label: "Description:",
|
|
1636
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1637
|
+
inputClass: "!t-h-16",
|
|
1638
|
+
}),
|
|
1352
1639
|
],
|
|
1353
1640
|
updates
|
|
1354
1641
|
)
|
|
@@ -1356,19 +1643,20 @@ function willsAndTrustsCrossSellQuestions(updates = {}) {
|
|
|
1356
1643
|
|
|
1357
1644
|
function workersCompensationCrossSellQuestions(updates = {}) {
|
|
1358
1645
|
return step(
|
|
1359
|
-
|
|
1646
|
+
"workersCompensationCrossSellQuestions",
|
|
1360
1647
|
[
|
|
1361
|
-
crossSellQuestionsStepHeadline({
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1648
|
+
crossSellQuestionsStepHeadline({
|
|
1649
|
+
headline: "You May Be Entitled To Benefits",
|
|
1650
|
+
}),
|
|
1651
|
+
crossSellQuestionsStepSubHeadline({
|
|
1652
|
+
subheadline: "Tell us about your injury:",
|
|
1653
|
+
}),
|
|
1654
|
+
WorkersCompensationQuestions("true", "CrossSell:Workers_Compensation"),
|
|
1655
|
+
comments("CrossSell:Workers_Compensation", false, {
|
|
1656
|
+
label: "Injury Description:",
|
|
1657
|
+
placeholder: "Please describe your injury in a few words...",
|
|
1658
|
+
inputClass: "!t-h-16",
|
|
1659
|
+
}),
|
|
1372
1660
|
],
|
|
1373
1661
|
updates
|
|
1374
1662
|
)
|
|
@@ -1376,58 +1664,51 @@ function workersCompensationCrossSellQuestions(updates = {}) {
|
|
|
1376
1664
|
|
|
1377
1665
|
function legalCrossSells(updates = {}) {
|
|
1378
1666
|
updates.nextOnInput = false;
|
|
1379
|
-
updates.stepKey =
|
|
1380
|
-
return step(
|
|
1381
|
-
'legalCrossSells',
|
|
1382
|
-
[
|
|
1383
|
-
legalCrossSellsStepHeadline(updates),
|
|
1384
|
-
legalCrossSells$1(),
|
|
1385
|
-
],
|
|
1386
|
-
updates
|
|
1387
|
-
)
|
|
1667
|
+
updates.stepKey = "$get(Type_Of_Legal_Problem).value";
|
|
1668
|
+
return step("legalCrossSells", [legalCrossSellsStepHeadline(updates), legalCrossSells$1()], updates)
|
|
1388
1669
|
}
|
|
1389
1670
|
|
|
1390
1671
|
function haveAttorney(updates = {}) {
|
|
1391
1672
|
return sqstep(
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1673
|
+
"haveAttorney",
|
|
1674
|
+
haveAttorney$1(updates.scope, true, updates.input),
|
|
1675
|
+
"Already working with an attorney?",
|
|
1395
1676
|
updates
|
|
1396
1677
|
)
|
|
1397
1678
|
}
|
|
1398
1679
|
|
|
1399
1680
|
function degreeOfInterest(updates = {}) {
|
|
1400
1681
|
return sqstep(
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1682
|
+
"degreeOfInterest",
|
|
1683
|
+
degreeOfInterest$1(updates.scope, true, updates.input),
|
|
1684
|
+
"Could you pay if your issue could be resolved?",
|
|
1404
1685
|
updates
|
|
1405
1686
|
)
|
|
1406
1687
|
}
|
|
1407
1688
|
|
|
1408
1689
|
function businessServicesDisplay(updates = {}) {
|
|
1409
1690
|
return step(
|
|
1410
|
-
|
|
1691
|
+
"businessServicesDisplay",
|
|
1411
1692
|
[
|
|
1412
1693
|
{
|
|
1413
|
-
$formkit:
|
|
1694
|
+
$formkit: "hidden",
|
|
1414
1695
|
name: "Type_Of_Legal_Problem",
|
|
1415
1696
|
id: "Type_Of_Legal_Problem",
|
|
1416
|
-
value: "Business Lawyers"
|
|
1697
|
+
value: "Business Lawyers",
|
|
1417
1698
|
},
|
|
1418
1699
|
{
|
|
1419
|
-
$formkit:
|
|
1700
|
+
$formkit: "hidden",
|
|
1420
1701
|
name: "Have_Attorney",
|
|
1421
1702
|
id: "Have_Attorney",
|
|
1422
|
-
value: "No"
|
|
1703
|
+
value: "No",
|
|
1423
1704
|
},
|
|
1424
1705
|
{
|
|
1425
|
-
$formkit:
|
|
1706
|
+
$formkit: "hidden",
|
|
1426
1707
|
name: "Business_Services",
|
|
1427
1708
|
id: "Business_Services",
|
|
1428
|
-
value: "Other"
|
|
1709
|
+
value: "Other",
|
|
1429
1710
|
},
|
|
1430
|
-
|
|
1711
|
+
businessServicesDisplay$1(updates.scope, true, updates.input),
|
|
1431
1712
|
],
|
|
1432
1713
|
updates
|
|
1433
1714
|
)
|
|
@@ -1435,128 +1716,128 @@ function businessServicesDisplay(updates = {}) {
|
|
|
1435
1716
|
|
|
1436
1717
|
function businessType(updates = {}) {
|
|
1437
1718
|
return sqstep(
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1719
|
+
"businessType",
|
|
1720
|
+
businessType$1(updates.scope, true, updates.input),
|
|
1721
|
+
"Is the business public or private?",
|
|
1441
1722
|
updates
|
|
1442
1723
|
)
|
|
1443
1724
|
}
|
|
1444
1725
|
|
|
1445
1726
|
function numEmployeesOfBusiness(updates = {}) {
|
|
1446
1727
|
return sqstep(
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1728
|
+
"numEmployeesOfBusiness",
|
|
1729
|
+
numEmployeesOfBusiness$1(updates.scope, true, updates.input),
|
|
1730
|
+
"How many employees does the business have?",
|
|
1450
1731
|
updates
|
|
1451
1732
|
)
|
|
1452
1733
|
}
|
|
1453
1734
|
|
|
1454
1735
|
const formNavigation = (updates = {}) => ({
|
|
1455
|
-
$el:
|
|
1736
|
+
$el: "div",
|
|
1456
1737
|
attrs: {
|
|
1457
|
-
class:
|
|
1738
|
+
class: "step-nav",
|
|
1458
1739
|
},
|
|
1459
1740
|
children: [
|
|
1460
1741
|
{
|
|
1461
|
-
$formkit:
|
|
1462
|
-
name:
|
|
1463
|
-
onClick:
|
|
1464
|
-
children:
|
|
1742
|
+
$formkit: "button",
|
|
1743
|
+
name: "back_button",
|
|
1744
|
+
onClick: "$setPreviousStep($prevStepFunc($get(form)))",
|
|
1745
|
+
children: "Back",
|
|
1465
1746
|
style: {
|
|
1466
|
-
if:
|
|
1467
|
-
then:
|
|
1468
|
-
}
|
|
1747
|
+
if: "$activeStep === $firstStep()",
|
|
1748
|
+
then: "visibility: hidden;",
|
|
1749
|
+
},
|
|
1469
1750
|
},
|
|
1470
1751
|
{
|
|
1471
|
-
$formkit:
|
|
1472
|
-
name:
|
|
1473
|
-
onClick:
|
|
1752
|
+
$formkit: "button",
|
|
1753
|
+
name: "next_button",
|
|
1754
|
+
onClick: "$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",
|
|
1474
1755
|
children: {
|
|
1475
|
-
if:
|
|
1476
|
-
then:
|
|
1477
|
-
else:
|
|
1756
|
+
if: "$activeStep === $firstStep()",
|
|
1757
|
+
then: "Start",
|
|
1758
|
+
else: "Next",
|
|
1478
1759
|
},
|
|
1479
1760
|
outerClass: {
|
|
1480
|
-
if:
|
|
1481
|
-
then:
|
|
1482
|
-
else:
|
|
1761
|
+
if: "$activeStep === $lastStep()",
|
|
1762
|
+
then: "t-hidden",
|
|
1763
|
+
else: "",
|
|
1483
1764
|
},
|
|
1484
1765
|
style: {
|
|
1485
|
-
if:
|
|
1486
|
-
then:
|
|
1487
|
-
}
|
|
1766
|
+
if: "$activeStep === $lastStep()",
|
|
1767
|
+
then: "display: none;",
|
|
1768
|
+
},
|
|
1488
1769
|
},
|
|
1489
1770
|
{
|
|
1490
|
-
$formkit:
|
|
1491
|
-
name:
|
|
1492
|
-
label: updates.submitLabel ||
|
|
1493
|
-
if:
|
|
1771
|
+
$formkit: "submit",
|
|
1772
|
+
name: "submit_button",
|
|
1773
|
+
label: updates.submitLabel || "Submit",
|
|
1774
|
+
if: "$activeStep === $lastStep()",
|
|
1494
1775
|
style: {
|
|
1495
|
-
if:
|
|
1496
|
-
then:
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
]
|
|
1776
|
+
if: "$activeStep !== $lastStep()",
|
|
1777
|
+
then: "display: none;",
|
|
1778
|
+
},
|
|
1779
|
+
},
|
|
1780
|
+
],
|
|
1500
1781
|
});
|
|
1501
1782
|
|
|
1502
1783
|
const formDetails = () => ({
|
|
1503
|
-
$el:
|
|
1784
|
+
$el: "pre",
|
|
1504
1785
|
if: '$urlParam("fdbg", "") == 1',
|
|
1505
1786
|
children: [
|
|
1506
1787
|
{
|
|
1507
|
-
$el:
|
|
1508
|
-
children:
|
|
1788
|
+
$el: "pre",
|
|
1789
|
+
children: "$stringify( $get(form).value )",
|
|
1509
1790
|
attrs: {
|
|
1510
|
-
class:
|
|
1511
|
-
style:
|
|
1512
|
-
}
|
|
1791
|
+
class: "t-text-xs",
|
|
1792
|
+
style: "overflow: scroll",
|
|
1793
|
+
},
|
|
1513
1794
|
},
|
|
1514
1795
|
{
|
|
1515
|
-
$el:
|
|
1516
|
-
children: [
|
|
1796
|
+
$el: "pre",
|
|
1797
|
+
children: ["activeStep: ", "$activeStep"],
|
|
1517
1798
|
attrs: {
|
|
1518
|
-
class:
|
|
1519
|
-
style:
|
|
1520
|
-
}
|
|
1799
|
+
class: "t-text-xs",
|
|
1800
|
+
style: "overflow: scroll",
|
|
1801
|
+
},
|
|
1521
1802
|
},
|
|
1522
1803
|
{
|
|
1523
|
-
$el:
|
|
1524
|
-
children: [
|
|
1804
|
+
$el: "pre",
|
|
1805
|
+
children: ["stepHistory: ", "$stepHistory"],
|
|
1525
1806
|
attrs: {
|
|
1526
|
-
class:
|
|
1527
|
-
style:
|
|
1528
|
-
}
|
|
1807
|
+
class: "t-text-xs",
|
|
1808
|
+
style: "overflow: scroll",
|
|
1809
|
+
},
|
|
1529
1810
|
},
|
|
1530
1811
|
{
|
|
1531
|
-
$el:
|
|
1532
|
-
children: [
|
|
1812
|
+
$el: "pre",
|
|
1813
|
+
children: ["stepQueue: ", "$stepQueue"],
|
|
1533
1814
|
attrs: {
|
|
1534
|
-
class:
|
|
1535
|
-
style:
|
|
1536
|
-
}
|
|
1815
|
+
class: "t-text-xs",
|
|
1816
|
+
style: "overflow: scroll",
|
|
1817
|
+
},
|
|
1537
1818
|
},
|
|
1538
1819
|
{
|
|
1539
|
-
$el:
|
|
1540
|
-
children: [
|
|
1820
|
+
$el: "pre",
|
|
1821
|
+
children: ["steps: ", "$stepKeys()"],
|
|
1541
1822
|
attrs: {
|
|
1542
|
-
class:
|
|
1543
|
-
style:
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
]
|
|
1823
|
+
class: "t-text-xs",
|
|
1824
|
+
style: "overflow: scroll",
|
|
1825
|
+
},
|
|
1826
|
+
},
|
|
1827
|
+
],
|
|
1547
1828
|
});
|
|
1548
1829
|
|
|
1549
1830
|
const formPropDefaults = {
|
|
1550
|
-
type:
|
|
1551
|
-
id:
|
|
1552
|
-
config: { validationVisibility:
|
|
1831
|
+
type: "form",
|
|
1832
|
+
id: "form",
|
|
1833
|
+
config: { validationVisibility: "submit" },
|
|
1553
1834
|
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
1554
|
-
plugins:
|
|
1835
|
+
plugins: "$plugins",
|
|
1555
1836
|
actions: false,
|
|
1556
|
-
anchorElement:
|
|
1837
|
+
anchorElement: "form-anchor",
|
|
1557
1838
|
useLocalStorage: true,
|
|
1558
1839
|
prepop: {
|
|
1559
|
-
fromURL: true
|
|
1840
|
+
fromURL: true,
|
|
1560
1841
|
},
|
|
1561
1842
|
errorCodes: {
|
|
1562
1843
|
403: { message: "An Error Occurred", abort: false },
|
|
@@ -1564,13 +1845,11 @@ const formPropDefaults = {
|
|
|
1564
1845
|
429: "An Error Occurred",
|
|
1565
1846
|
504: { message: "An Error Occurred", abort: false },
|
|
1566
1847
|
},
|
|
1567
|
-
formClass:
|
|
1848
|
+
formClass: "!t-max-w-[40rem]",
|
|
1568
1849
|
};
|
|
1569
1850
|
|
|
1570
1851
|
function filterMapByKey(obj, keyList) {
|
|
1571
|
-
return Object.fromEntries(
|
|
1572
|
-
Object.entries(obj).filter(([key]) => keyList.includes(key))
|
|
1573
|
-
);
|
|
1852
|
+
return Object.fromEntries(Object.entries(obj).filter(([key]) => keyList.includes(key)))
|
|
1574
1853
|
}
|
|
1575
1854
|
|
|
1576
1855
|
// export function filteredNextStepsMapLegal(keyList) {
|
|
@@ -1580,10 +1859,7 @@ function filterMapByKey(obj, keyList) {
|
|
|
1580
1859
|
// }
|
|
1581
1860
|
|
|
1582
1861
|
function formProps(updates) {
|
|
1583
|
-
const props = merge(
|
|
1584
|
-
formPropDefaults,
|
|
1585
|
-
updates
|
|
1586
|
-
);
|
|
1862
|
+
const props = merge(formPropDefaults, updates);
|
|
1587
1863
|
if (props.formId && !props.name) {
|
|
1588
1864
|
props.name = props.formId;
|
|
1589
1865
|
}
|
|
@@ -1593,13 +1869,10 @@ function formProps(updates) {
|
|
|
1593
1869
|
const metaDefaults = {};
|
|
1594
1870
|
|
|
1595
1871
|
function metaProps(updates) {
|
|
1596
|
-
const data = merge(
|
|
1597
|
-
metaDefaults,
|
|
1598
|
-
updates
|
|
1599
|
-
);
|
|
1872
|
+
const data = merge(metaDefaults, updates);
|
|
1600
1873
|
return {
|
|
1601
|
-
type:
|
|
1602
|
-
data
|
|
1874
|
+
type: "meta",
|
|
1875
|
+
data,
|
|
1603
1876
|
}
|
|
1604
1877
|
}
|
|
1605
1878
|
|
|
@@ -1619,269 +1892,268 @@ function defaultMetaPropsLegal(tolps = null) {
|
|
|
1619
1892
|
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
|
|
1620
1893
|
finalHeadlines: finalHeadlines,
|
|
1621
1894
|
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
|
|
1622
|
-
finalSubHeadlines: finalSubHeadlines
|
|
1895
|
+
finalSubHeadlines: finalSubHeadlines,
|
|
1623
1896
|
})
|
|
1624
1897
|
}
|
|
1625
1898
|
|
|
1626
|
-
function dynamicSchemaNode(field =
|
|
1899
|
+
function dynamicSchemaNode(field = "Type_Of_Legal_Problem") {
|
|
1627
1900
|
return {
|
|
1628
|
-
$cmp:
|
|
1629
|
-
if:
|
|
1901
|
+
$cmp: "FormKitSchema",
|
|
1902
|
+
if: "$get(" + field + ").value",
|
|
1630
1903
|
props: {
|
|
1631
|
-
schema:
|
|
1632
|
-
data:
|
|
1633
|
-
}
|
|
1904
|
+
schema: "$meta.dynamicSchema",
|
|
1905
|
+
data: "$buildData($meta)",
|
|
1906
|
+
},
|
|
1634
1907
|
}
|
|
1635
1908
|
}
|
|
1636
1909
|
|
|
1637
1910
|
const formAnchorDefaults = {
|
|
1638
|
-
$el:
|
|
1911
|
+
$el: "div",
|
|
1639
1912
|
children: [
|
|
1640
1913
|
{
|
|
1641
|
-
$el:
|
|
1914
|
+
$el: "div",
|
|
1642
1915
|
attrs: {
|
|
1643
|
-
id:
|
|
1644
|
-
class:
|
|
1645
|
-
style: { top:
|
|
1646
|
-
}
|
|
1647
|
-
}
|
|
1916
|
+
id: "form-anchor",
|
|
1917
|
+
class: "t-absolute",
|
|
1918
|
+
style: { top: "-30px", left: 0 },
|
|
1919
|
+
},
|
|
1920
|
+
},
|
|
1648
1921
|
],
|
|
1649
1922
|
attrs: {
|
|
1650
|
-
class:
|
|
1651
|
-
}
|
|
1923
|
+
class: "t-relative",
|
|
1924
|
+
},
|
|
1652
1925
|
};
|
|
1653
1926
|
|
|
1654
1927
|
function formAnchor(updates) {
|
|
1655
|
-
return merge(
|
|
1656
|
-
formAnchorDefaults,
|
|
1657
|
-
updates
|
|
1658
|
-
)
|
|
1928
|
+
return merge(formAnchorDefaults, updates)
|
|
1659
1929
|
}
|
|
1660
1930
|
|
|
1661
1931
|
const progressBarDefaults = {
|
|
1662
|
-
$el:
|
|
1932
|
+
$el: "div",
|
|
1663
1933
|
attrs: {
|
|
1664
|
-
class:
|
|
1934
|
+
class: "t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",
|
|
1665
1935
|
style: {
|
|
1666
|
-
if:
|
|
1667
|
-
then:
|
|
1936
|
+
if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
|
|
1937
|
+
then: "display: none",
|
|
1668
1938
|
},
|
|
1669
1939
|
},
|
|
1670
1940
|
children: [
|
|
1671
1941
|
{
|
|
1672
|
-
$el:
|
|
1942
|
+
$el: "div",
|
|
1673
1943
|
attrs: {
|
|
1674
|
-
class:
|
|
1944
|
+
class: "t-flex t-justify-center",
|
|
1675
1945
|
},
|
|
1676
1946
|
children: [
|
|
1677
1947
|
{
|
|
1678
|
-
$el:
|
|
1948
|
+
$el: "span",
|
|
1679
1949
|
attrs: {
|
|
1680
|
-
id:
|
|
1681
|
-
class:
|
|
1950
|
+
id: "progress-bar-text",
|
|
1951
|
+
class: "t-text-sm t-mb-1",
|
|
1682
1952
|
},
|
|
1683
|
-
children: [
|
|
1684
|
-
"0% Complete"
|
|
1685
|
-
]
|
|
1953
|
+
children: ["0% Complete"],
|
|
1686
1954
|
},
|
|
1687
|
-
]
|
|
1955
|
+
],
|
|
1688
1956
|
},
|
|
1689
1957
|
{
|
|
1690
|
-
$el:
|
|
1958
|
+
$el: "div",
|
|
1691
1959
|
attrs: {
|
|
1692
|
-
class:
|
|
1960
|
+
class: "t-bg-gray-100 t-w-9/12 t-rounded",
|
|
1693
1961
|
},
|
|
1694
1962
|
children: [
|
|
1695
1963
|
{
|
|
1696
|
-
$el:
|
|
1964
|
+
$el: "div",
|
|
1697
1965
|
attrs: {
|
|
1698
|
-
id:
|
|
1699
|
-
class:
|
|
1966
|
+
id: "progress-bar",
|
|
1967
|
+
class:
|
|
1968
|
+
"t-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]",
|
|
1700
1969
|
style: {
|
|
1701
|
-
transition:
|
|
1970
|
+
transition: "width 0.5s ease",
|
|
1702
1971
|
},
|
|
1703
1972
|
},
|
|
1704
|
-
}
|
|
1705
|
-
]
|
|
1706
|
-
}
|
|
1707
|
-
]
|
|
1973
|
+
},
|
|
1974
|
+
],
|
|
1975
|
+
},
|
|
1976
|
+
],
|
|
1708
1977
|
};
|
|
1709
1978
|
|
|
1710
1979
|
function progressBar(updates) {
|
|
1711
|
-
return merge(
|
|
1712
|
-
progressBarDefaults,
|
|
1713
|
-
updates
|
|
1714
|
-
)
|
|
1980
|
+
return merge(progressBarDefaults, updates)
|
|
1715
1981
|
}
|
|
1716
1982
|
|
|
1717
1983
|
function headlineDefaults(updates = {}) {
|
|
1718
1984
|
return {
|
|
1719
|
-
$el:
|
|
1985
|
+
$el: "h1",
|
|
1720
1986
|
attrs: {
|
|
1721
|
-
class:
|
|
1722
|
-
|
|
1987
|
+
class:
|
|
1988
|
+
"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3" +
|
|
1989
|
+
" " +
|
|
1990
|
+
(updates.headlineClass || ""),
|
|
1991
|
+
},
|
|
1723
1992
|
}
|
|
1724
1993
|
}
|
|
1725
1994
|
|
|
1726
1995
|
function headline(updates = {}) {
|
|
1727
|
-
return merge(
|
|
1728
|
-
headlineDefaults(updates),
|
|
1729
|
-
updates
|
|
1730
|
-
)
|
|
1996
|
+
return merge(headlineDefaults(updates), updates)
|
|
1731
1997
|
}
|
|
1732
1998
|
|
|
1733
1999
|
function subHeadlineDefaults(updates = {}) {
|
|
1734
2000
|
return {
|
|
1735
|
-
$el:
|
|
2001
|
+
$el: "h3",
|
|
1736
2002
|
attrs: {
|
|
1737
|
-
class:
|
|
1738
|
-
|
|
2003
|
+
class:
|
|
2004
|
+
"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10" +
|
|
2005
|
+
" " +
|
|
2006
|
+
(updates.subheadlineClass || ""),
|
|
2007
|
+
},
|
|
1739
2008
|
}
|
|
1740
2009
|
}
|
|
1741
2010
|
|
|
1742
2011
|
function subHeadline(updates = {}) {
|
|
1743
|
-
return merge(
|
|
1744
|
-
subHeadlineDefaults(updates),
|
|
1745
|
-
updates
|
|
1746
|
-
)
|
|
2012
|
+
return merge(subHeadlineDefaults(updates), updates)
|
|
1747
2013
|
}
|
|
1748
2014
|
|
|
1749
2015
|
function defaultSubHeadline() {
|
|
1750
2016
|
return subHeadline({
|
|
1751
2017
|
children: '$urlParam("shl", "Our Service is Fast and Free!")',
|
|
1752
|
-
if:
|
|
2018
|
+
if: "$activeStep === $firstStep()",
|
|
1753
2019
|
})
|
|
1754
2020
|
}
|
|
1755
2021
|
|
|
1756
2022
|
const hiddenInputsBase = [
|
|
1757
2023
|
{
|
|
1758
|
-
$formkit:
|
|
2024
|
+
$formkit: "hidden",
|
|
1759
2025
|
name: "gclid",
|
|
1760
|
-
value: null
|
|
2026
|
+
value: null,
|
|
1761
2027
|
},
|
|
1762
2028
|
{
|
|
1763
|
-
$formkit:
|
|
2029
|
+
$formkit: "hidden",
|
|
1764
2030
|
name: "campaignid",
|
|
1765
|
-
value: null
|
|
2031
|
+
value: null,
|
|
1766
2032
|
},
|
|
1767
2033
|
{
|
|
1768
|
-
$formkit:
|
|
2034
|
+
$formkit: "hidden",
|
|
1769
2035
|
name: "s",
|
|
1770
|
-
value: null
|
|
1771
|
-
}
|
|
2036
|
+
value: null,
|
|
2037
|
+
},
|
|
1772
2038
|
];
|
|
1773
2039
|
|
|
1774
2040
|
const hiddenInputsLegal = [
|
|
1775
2041
|
{
|
|
1776
|
-
$formkit:
|
|
2042
|
+
$formkit: "hidden",
|
|
1777
2043
|
name: "vertical",
|
|
1778
|
-
value: "Legal"
|
|
2044
|
+
value: "Legal",
|
|
1779
2045
|
},
|
|
1780
2046
|
{
|
|
1781
|
-
$formkit:
|
|
2047
|
+
$formkit: "hidden",
|
|
1782
2048
|
name: "TCPA_Language",
|
|
1783
|
-
value: "$meta.tcpaLanguage"
|
|
2049
|
+
value: "$meta.tcpaLanguage",
|
|
1784
2050
|
},
|
|
1785
|
-
...hiddenInputsBase
|
|
2051
|
+
...hiddenInputsBase,
|
|
1786
2052
|
];
|
|
1787
2053
|
|
|
1788
2054
|
const legalRedirectMapDefaults = {
|
|
1789
|
-
|
|
2055
|
+
"*": LegalRedirectUrl(),
|
|
1790
2056
|
};
|
|
1791
2057
|
|
|
1792
|
-
|
|
1793
2058
|
function legalRedirectMap(updates) {
|
|
1794
|
-
return merge(
|
|
1795
|
-
legalRedirectMapDefaults,
|
|
1796
|
-
updates
|
|
1797
|
-
)
|
|
2059
|
+
return merge(legalRedirectMapDefaults, updates)
|
|
1798
2060
|
}
|
|
1799
2061
|
|
|
1800
2062
|
const businessServicesOverrideMap = {
|
|
1801
|
-
|
|
2063
|
+
Business_Services_Display: {
|
|
1802
2064
|
"Business Formation": {
|
|
1803
|
-
|
|
2065
|
+
Business_Services: "Business Formation",
|
|
1804
2066
|
},
|
|
1805
|
-
|
|
1806
|
-
|
|
2067
|
+
Contracts: {
|
|
2068
|
+
Business_Services: "Contracts",
|
|
1807
2069
|
},
|
|
1808
2070
|
"Insurance and Liability": {
|
|
1809
|
-
|
|
2071
|
+
Business_Services: "Insurance and Liability",
|
|
1810
2072
|
},
|
|
1811
2073
|
"Mergers and Acquisition": {
|
|
1812
|
-
|
|
2074
|
+
Business_Services: "Mergers and Acquisition",
|
|
1813
2075
|
},
|
|
1814
2076
|
"Regulatory Compliance": {
|
|
1815
|
-
|
|
2077
|
+
Business_Services: "Regulatory Compliance",
|
|
1816
2078
|
},
|
|
1817
2079
|
"Employee Dispute": {
|
|
1818
|
-
|
|
2080
|
+
Business_Services: "Employee Dispute",
|
|
1819
2081
|
},
|
|
1820
2082
|
"Advice and Consulting": {
|
|
1821
|
-
|
|
2083
|
+
Business_Services: "Other",
|
|
2084
|
+
},
|
|
2085
|
+
Other: {
|
|
2086
|
+
Business_Services: "Other",
|
|
1822
2087
|
},
|
|
1823
|
-
"Other": {
|
|
1824
|
-
'Business_Services': 'Other'
|
|
1825
|
-
}
|
|
1826
2088
|
},
|
|
1827
2089
|
};
|
|
1828
2090
|
|
|
1829
2091
|
const TOLPCommentsPlaceholders = {
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
2092
|
+
Adoption: 'Example: "I need help with adoption forms"',
|
|
2093
|
+
"Asbestos and Mesothelioma": 'Example: "I was exposed to asbestos at work and would like to file a claim"',
|
|
2094
|
+
"Auto and Car Accidents":
|
|
2095
|
+
'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
|
|
2096
|
+
Bankruptcy: 'Example: "I need help filing for bankruptcy"',
|
|
2097
|
+
"Birth Certificate and Name Change": 'Example: "Just married and would like to change my last name"',
|
|
2098
|
+
"Business Lawyers": 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
|
|
2099
|
+
"Child Custody and Support": 'Example: "Need help getting custody" or "Issues with child support payments"',
|
|
2100
|
+
"Child Custody": 'Example: "Need help getting custody"',
|
|
2101
|
+
"Child Support": 'Example: "Issues with child support payments"',
|
|
2102
|
+
"Civil Rights and Discrimination": 'Example: "Police brutality" or "Coworker keeps harassing me"',
|
|
2103
|
+
"Civil Lawsuit":
|
|
2104
|
+
'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
|
|
2105
|
+
"File a Lawsuit": 'Example: "A contractor took my money and never completed the job"',
|
|
2106
|
+
"Defend a Lawsuit": 'Example: "I am being sued by a neighbor"',
|
|
2107
|
+
"Consumer Lawyers":
|
|
2108
|
+
'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
|
|
2109
|
+
"Copyrights and Trademarks": 'Example: "I would like to register a trademark or copyright a name"',
|
|
2110
|
+
"Criminal and Felony":
|
|
2111
|
+
'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
|
|
2112
|
+
"Debt and Collections": 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
|
|
2113
|
+
"Divorce and Separation": 'Example: "I would like to file for an uncontested divorce"',
|
|
2114
|
+
"DUI and DWI": 'Example: "I was arrested for DUI and need legal defense"',
|
|
2115
|
+
"Elder Law": 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
|
|
2116
|
+
"Employment and Workplace": 'Example: "I was injured while on the job" or "My company is discriminating against me"',
|
|
2117
|
+
Expungement: 'Example: "I would like to file for an expungement and clear my record"',
|
|
2118
|
+
"Family Issues": 'Example: "I need help with guardianship" or "I need a simple will created"',
|
|
2119
|
+
Foreclosure: 'Example: "I need help to avoid foreclosure on my house"',
|
|
2120
|
+
Guardianship: 'Example: "I need help with guardianship documents"',
|
|
2121
|
+
"Harassment and Discrimination": 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
|
|
2122
|
+
"Sexual Harassment": 'Example: "I am being sexually harassed by a coworker"',
|
|
2123
|
+
"Workplace Harassment": 'Example: "My coworker is being aggressive towards me"',
|
|
2124
|
+
"Non-Workplace Harassment": 'Example: "My neighbor is harassing me"',
|
|
2125
|
+
"Workplace Discrimination": 'Example: "I am being discriminated at work based on my age"',
|
|
2126
|
+
"Non-Workplace Discrimination": 'Example: "I am being discriminated against by a local official"',
|
|
2127
|
+
"Identity Theft": 'Example: "Someone stole my identity and I need help fixing the issue"',
|
|
2128
|
+
"Immigration and Visas": 'Example: "I need help filing for a visa" or "Help with a green card"',
|
|
2129
|
+
Insurance: 'Example: "I need help filing an insurance claim for damage to my house"',
|
|
2130
|
+
"Landlord and Tenant":
|
|
2131
|
+
'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
|
|
2132
|
+
"Lemon Law": 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
|
|
2133
|
+
"Long Term Disability":
|
|
2134
|
+
'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
|
|
2135
|
+
"Medical Malpractice": 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
|
|
2136
|
+
"Patents and Intellectual Property": 'Example: "I would like to file for a patent" or "I need to copyright a name"',
|
|
2137
|
+
"Personal Injury": 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
|
|
2138
|
+
"Power of Attorney": 'Example: "I need help with a limited or general power of attorney"',
|
|
2139
|
+
"Probate and Estates":
|
|
2140
|
+
'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
|
|
2141
|
+
"Product Liability": 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
|
|
2142
|
+
"Property Damage": 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
|
|
2143
|
+
"Real Estate":
|
|
2144
|
+
'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
|
|
2145
|
+
"Social Security Disability and Insurance":
|
|
2146
|
+
'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',
|
|
2147
|
+
"Tax and IRS": 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
|
|
2148
|
+
"Traffic and Tickets":
|
|
2149
|
+
'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
|
|
2150
|
+
Unemployment: 'Example: "I need help filing for unemployment benefits"',
|
|
2151
|
+
"Victim of a Crime": 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
|
|
2152
|
+
"Wills and Trusts": 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
|
|
2153
|
+
"Workers Compensation": 'Example: "I was injured at work and would like to file for workers compensation benefits"',
|
|
2154
|
+
"Wrongful Death": 'Example: "A family member was killed on the job and we need legal representation"',
|
|
2155
|
+
"Wrongful Termination": 'Example: "I was fired by my employer without cause"',
|
|
2156
|
+
"Not Sure or Other": 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"',
|
|
1885
2157
|
};
|
|
1886
2158
|
|
|
1887
2159
|
const TOLPFinalHeadlines = {
|
|
@@ -1889,49 +2161,64 @@ const TOLPFinalHeadlines = {
|
|
|
1889
2161
|
};
|
|
1890
2162
|
|
|
1891
2163
|
const TOLPFinalSubHeadlines = {
|
|
1892
|
-
|
|
2164
|
+
Adoption: "You may benefit from speaking with an adoption professional. Please verify your contact information.",
|
|
1893
2165
|
// 'Asbestos and Mesothelioma': '',
|
|
1894
|
-
|
|
1895
|
-
|
|
2166
|
+
"Auto and Car Accidents":
|
|
2167
|
+
"You may benefit from speaking with an accident professional. Please verify your contact information.",
|
|
2168
|
+
Bankruptcy: "You may benefit from speaking with a bankruptcy professional. Please verify your contact information.",
|
|
1896
2169
|
// 'Birth Certificate and Name Change': '',
|
|
1897
2170
|
// 'Business Lawyers': '',
|
|
1898
2171
|
// 'Child Custody and Support': '',
|
|
1899
2172
|
// 'Civil Rights and Discrimination': '',
|
|
1900
2173
|
// 'Civil Lawsuit': '',
|
|
1901
2174
|
// 'Consumer Lawyers': '',
|
|
1902
|
-
|
|
2175
|
+
"Copyrights and Trademarks":
|
|
2176
|
+
"You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.",
|
|
1903
2177
|
// 'Criminal and Felony': '',
|
|
1904
2178
|
// 'Debt and Collections': '',
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
2179
|
+
"Divorce and Separation":
|
|
2180
|
+
"You may benefit from speaking with a divorce professional. Please verify your contact information.",
|
|
2181
|
+
"DUI and DWI": "You may benefit from speaking with a DUI professional. Please verify your contact information.",
|
|
2182
|
+
"Elder Law": "You may benefit from speaking with an elder law professional. Please verify your contact information.",
|
|
1908
2183
|
// 'Employment and Workplace': '',
|
|
1909
2184
|
// 'Expungement': '',
|
|
1910
2185
|
// 'Family Issues': '',
|
|
1911
|
-
|
|
1912
|
-
|
|
2186
|
+
Foreclosure: "You may benefit from speaking with a foreclosure professional. Please verify your contact information.",
|
|
2187
|
+
Guardianship:
|
|
2188
|
+
"You may benefit from speaking with a guardianship professional. Please verify your contact information.",
|
|
1913
2189
|
// 'Harassment and Discrimination': '',
|
|
1914
2190
|
// 'Identity Theft': '',
|
|
1915
|
-
|
|
2191
|
+
"Immigration and Visas":
|
|
2192
|
+
"You may benefit from speaking with a immigration professional. Please verify your contact information.",
|
|
1916
2193
|
// 'Insurance': '',
|
|
1917
|
-
|
|
2194
|
+
"Landlord and Tenant":
|
|
2195
|
+
"You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.",
|
|
1918
2196
|
// 'Lemon Law': '',
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
2197
|
+
"Long Term Disability":
|
|
2198
|
+
"You may benefit from speaking with a disability legal professional. Please verify your contact information.",
|
|
2199
|
+
"Medical Malpractice":
|
|
2200
|
+
"You may benefit from speaking with a malpractice professional. Please verify your contact information.",
|
|
2201
|
+
"Patents and Intellectual Property":
|
|
2202
|
+
"You may benefit from speaking with a patent professional. Please verify your contact information.",
|
|
2203
|
+
"Personal Injury":
|
|
2204
|
+
"You may benefit from speaking with a personal injury professional. Please verify your contact information.",
|
|
1923
2205
|
// 'Power of Attorney': '',
|
|
1924
|
-
|
|
2206
|
+
"Probate and Estates":
|
|
2207
|
+
"You may benefit from speaking with a probate and estate professional. Please verify your contact information.",
|
|
1925
2208
|
// 'Product Liability': '',
|
|
1926
2209
|
// 'Property Damage': '',
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
2210
|
+
"Real Estate":
|
|
2211
|
+
"You may benefit from speaking with a real estate professional. Please verify your contact information.",
|
|
2212
|
+
"Social Security Disability and Insurance":
|
|
2213
|
+
"You may benefit from speaking with an SSDI professional. Please verify your contact information.",
|
|
2214
|
+
"Tax and IRS": "You may benefit from speaking with a tax professional. Please verify your contact information.",
|
|
1930
2215
|
// 'Traffic and Tickets': '',
|
|
1931
|
-
|
|
2216
|
+
Unemployment:
|
|
2217
|
+
"You may benefit from speaking with an unemployment professional. Please verify your contact information.",
|
|
1932
2218
|
// 'Victim of a Crime': '',
|
|
1933
2219
|
// 'Wills and Trusts': '',
|
|
1934
|
-
|
|
2220
|
+
"Workers Compensation":
|
|
2221
|
+
"You may benefit from speaking with a workers compensation professional. Please verify your contact information.",
|
|
1935
2222
|
// 'Wrongful Death': '',
|
|
1936
2223
|
// 'Wrongful Termination': '',
|
|
1937
2224
|
// 'Not Sure or Other': ''
|
|
@@ -1943,45 +2230,41 @@ const TOLPFinalSubHeadlines = {
|
|
|
1943
2230
|
};
|
|
1944
2231
|
|
|
1945
2232
|
const nextStepsLegalNoHA = [
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
2233
|
+
"degreeOfInterest",
|
|
2234
|
+
"commentsWithBankruptcy",
|
|
2235
|
+
"zipcode",
|
|
2236
|
+
"legalCrossSells",
|
|
2237
|
+
"firstAndLast",
|
|
2238
|
+
"contactInfo",
|
|
1952
2239
|
];
|
|
1953
2240
|
|
|
1954
2241
|
const nextStepsMapBusinessServicesDisplay = {
|
|
1955
2242
|
values: {
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
'numEmployeesOfBusiness',
|
|
1959
|
-
...nextStepsLegalNoHA
|
|
1960
|
-
]
|
|
1961
|
-
}
|
|
2243
|
+
"*": ["businessType", "numEmployeesOfBusiness", ...nextStepsLegalNoHA],
|
|
2244
|
+
},
|
|
1962
2245
|
};
|
|
1963
2246
|
|
|
1964
2247
|
const nextStepsMapLegalCrossSells = {
|
|
1965
2248
|
values: {
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
2249
|
+
Legal_CrossSells: {
|
|
2250
|
+
"Auto and Car Accidents": ["autoAndCarAccidentCrossSellQuestions"],
|
|
2251
|
+
"Personal Injury": ["personalInjuryCrossSellQuestions"],
|
|
2252
|
+
"Workers Compensation": ["workersCompensationCrossSellQuestions"],
|
|
2253
|
+
"DUI and DWI": ["duiAndDWICrossSellQuestions"],
|
|
2254
|
+
"Long Term Disability": ["longTermDisabilityCrossSellQuestions"],
|
|
2255
|
+
"Social Security Disability and Insurance": ["ssdiCrossSellQuestions"],
|
|
2256
|
+
Bankruptcy: ["bankruptcyCrossSellQuestions"],
|
|
2257
|
+
"Power of Attorney": ["powerOfAttorneyCrossSellQuestions"],
|
|
2258
|
+
"Wills and Trusts": ["willsAndTrustsCrossSellQuestions"],
|
|
2259
|
+
"Divorce and Separation": ["divorceAndSeparationCrossSellQuestions"],
|
|
2260
|
+
"Child Custody": ["childCustodyCrossSellQuestions"],
|
|
1978
2261
|
},
|
|
1979
|
-
|
|
2262
|
+
"*": ["firstAndLast", "contactInfo"],
|
|
1980
2263
|
},
|
|
1981
|
-
|
|
2264
|
+
|
|
1982
2265
|
// NOTE: this assumes a certain placement of the cross sell question
|
|
1983
2266
|
// in the form flow.
|
|
1984
|
-
appendSteps: [
|
|
2267
|
+
appendSteps: ["firstAndLast", "contactInfo"],
|
|
1985
2268
|
matchesAllowed: 1,
|
|
1986
2269
|
};
|
|
1987
2270
|
|