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