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