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