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