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