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