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