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