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