bhl-forms 0.6.5 → 0.6.7
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.iife.js +1 -1
- package/dist/bhl-forms.modern.iife.js +1 -1
- package/dist/bhl-forms.modern.umd.js +1 -1
- package/dist/bhl-forms.umd.js +1 -1
- package/dist/forms/accidentsAndInjuries.es.js +1442 -862
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/appraisals.es.js +115 -115
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/childAndFamily.es.js +790 -764
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +1136 -757
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +2001 -1352
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/coins.es.js +115 -115
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/contracts.es.js +1454 -715
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +1891 -2482
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +2178 -934
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalLegal.es.js +854 -808
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +854 -807
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +4383 -0
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -0
- package/dist/forms/generalLegalPopUnderSingle.json +1 -0
- package/dist/forms/generalLegalSingle.es.js +1672 -1629
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +710 -695
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +1465 -681
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/malpractice.es.js +1764 -1066
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +115 -115
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/realEstate.es.js +1557 -1209
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +1811 -1085
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +672 -672
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +473 -468
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/testRedirects.es.js +105 -102
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/forms/vets.es.js +115 -115
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/willsAndTrusts.es.js +1298 -705
- 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
- package/dist/forms/generalLegalPopUnderTF.es.js +0 -3087
- package/dist/forms/generalLegalPopUnderTF.iife.js +0 -1
- package/dist/forms/generalLegalPopUnderTF.json +0 -1
|
@@ -15,1532 +15,591 @@ const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(
|
|
|
15
15
|
const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
16
16
|
const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
type: 'form',
|
|
20
|
-
id: 'form',
|
|
21
|
-
config: { validationVisibility: 'submit' },
|
|
22
|
-
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
23
|
-
plugins: '$plugins',
|
|
24
|
-
actions: false,
|
|
25
|
-
anchorElement: 'form-anchor',
|
|
26
|
-
useLocalStorage: true,
|
|
27
|
-
prepop: {
|
|
28
|
-
fromURL: true
|
|
29
|
-
},
|
|
30
|
-
errorCodes: {
|
|
31
|
-
403: { message: "An Error Occurred", abort: false },
|
|
32
|
-
409: { abort: false },
|
|
33
|
-
429: "An Error Occurred",
|
|
34
|
-
504: { message: "An Error Occurred", abort: false },
|
|
35
|
-
},
|
|
36
|
-
formClass: '!t-max-w-[40rem]'
|
|
37
|
-
};
|
|
18
|
+
// ------ Common Base Settings
|
|
38
19
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
updates
|
|
43
|
-
);
|
|
44
|
-
if (props.formId && !props.name) {
|
|
45
|
-
props.name = props.formId;
|
|
20
|
+
const checkbox = (updates) => {
|
|
21
|
+
if (updates.name && !updates.id) {
|
|
22
|
+
updates.id = updates.name;
|
|
46
23
|
}
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
24
|
+
return merge({
|
|
25
|
+
$formkit: 'checkbox',
|
|
26
|
+
validation: 'required',
|
|
27
|
+
validationMessages: {
|
|
28
|
+
required: 'Field is required'
|
|
29
|
+
}
|
|
30
|
+
}, updates)
|
|
52
31
|
};
|
|
53
32
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
updates
|
|
58
|
-
);
|
|
59
|
-
return {
|
|
60
|
-
type: 'meta',
|
|
61
|
-
data
|
|
33
|
+
const verticalCheckbox = (updates) => {
|
|
34
|
+
if (!updates || !updates.legendClass) {
|
|
35
|
+
updates.legendClass = 'required';
|
|
62
36
|
}
|
|
63
|
-
|
|
37
|
+
updates.fieldsetClass = '$reset';
|
|
38
|
+
updates.optionsClass = 't-pl-2 t-pt-3';
|
|
39
|
+
updates.innerClass = 't-items-center';
|
|
40
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
41
|
+
return checkbox(updates)
|
|
42
|
+
};
|
|
64
43
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
// Added everywhere for now
|
|
74
|
-
// trustedFormTOLPs: trustedFormTOLPs
|
|
75
|
-
})
|
|
76
|
-
}
|
|
44
|
+
const sbsCheckbox = (updates) => {
|
|
45
|
+
updates.legendClass = 'legend-left required';
|
|
46
|
+
updates.fieldsetClass = '$reset side-by-side';
|
|
47
|
+
updates.optionsClass = 't-pl-1';
|
|
48
|
+
updates.innerClass = 't-flex t-items-center';
|
|
49
|
+
updates.wrapperClass = 't-mb-3';
|
|
50
|
+
return checkbox(updates)
|
|
51
|
+
};
|
|
77
52
|
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
{
|
|
82
|
-
$el: 'div',
|
|
83
|
-
attrs: {
|
|
84
|
-
id: 'form-anchor',
|
|
85
|
-
class: 't-absolute',
|
|
86
|
-
style: { top: '-30px', left: 0 }
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
attrs: {
|
|
91
|
-
class: 't-relative'
|
|
53
|
+
const col2Checkbox = (updates) => {
|
|
54
|
+
if (!updates || !updates.legendClass) {
|
|
55
|
+
updates.legendClass = 'required';
|
|
92
56
|
}
|
|
57
|
+
updates.fieldsetClass = '$reset';
|
|
58
|
+
updates.optionsClass = 't-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
59
|
+
updates.innerClass = 't-items-start';
|
|
60
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
61
|
+
return checkbox(updates)
|
|
93
62
|
};
|
|
94
63
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
64
|
+
const verticalCol2Checkbox = (updates) => {
|
|
65
|
+
if (!updates || !updates.legendClass) {
|
|
66
|
+
updates.legendClass = 'required';
|
|
67
|
+
}
|
|
68
|
+
updates.fieldsetClass = '$reset t-flex t-justify-center';
|
|
69
|
+
updates.optionClass = 't-mx-5';
|
|
70
|
+
updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
71
|
+
updates.innerClass = 't-items-center';
|
|
72
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
73
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
74
|
+
return checkbox(updates)
|
|
75
|
+
};
|
|
101
76
|
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
children: [
|
|
112
|
-
{
|
|
113
|
-
$el: 'div',
|
|
114
|
-
attrs: {
|
|
115
|
-
class: 't-flex t-justify-center'
|
|
116
|
-
},
|
|
117
|
-
children: [
|
|
118
|
-
{
|
|
119
|
-
$el: 'span',
|
|
120
|
-
attrs: {
|
|
121
|
-
id: 'progress-bar-text',
|
|
122
|
-
class: 't-text-sm t-mb-1'
|
|
123
|
-
},
|
|
124
|
-
children: [
|
|
125
|
-
"0% Complete"
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
]
|
|
77
|
+
const radio = (updates) => {
|
|
78
|
+
if (updates.name && !updates.id) {
|
|
79
|
+
updates.id = updates.name;
|
|
80
|
+
}
|
|
81
|
+
return merge({
|
|
82
|
+
$formkit: 'radio',
|
|
83
|
+
validation: 'required',
|
|
84
|
+
validationMessages: {
|
|
85
|
+
required: 'Field is required'
|
|
129
86
|
},
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
class: 't-bg-gray-100 t-w-9/12 t-rounded'
|
|
134
|
-
},
|
|
135
|
-
children: [
|
|
136
|
-
{
|
|
137
|
-
$el: 'div',
|
|
138
|
-
attrs: {
|
|
139
|
-
id: 'progress-bar',
|
|
140
|
-
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]',
|
|
141
|
-
style: {
|
|
142
|
-
transition: 'width 0.5s ease'
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
}
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
]
|
|
87
|
+
optionsClass: 't-pt-3 t-pl-1',
|
|
88
|
+
legendClass: 'required'
|
|
89
|
+
}, updates)
|
|
149
90
|
};
|
|
150
91
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
updates
|
|
155
|
-
)
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function headlineDefaults(updates = {}) {
|
|
159
|
-
return {
|
|
160
|
-
$el: 'h1',
|
|
161
|
-
attrs: {
|
|
162
|
-
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 || '')
|
|
163
|
-
}
|
|
92
|
+
const col2RadioCenter = (updates) => {
|
|
93
|
+
updates.legendClass = 'required t-w-[100%] t-text-center';
|
|
94
|
+
if (typeof updates.fieldsetClass === 'undefined') {
|
|
95
|
+
updates.fieldsetClass = '$reset t-flex t-justify-center';
|
|
164
96
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
)
|
|
172
|
-
}
|
|
97
|
+
updates.optionsClass = 't-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
98
|
+
updates.innerClass = 't-items-start';
|
|
99
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
100
|
+
updates.optionClass = 't-pl-4 md:t-pl-8 md:t-min-w-[200px]';
|
|
101
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
102
|
+
updates.helpClass = 't-mt-0 t-mb-4 !t-text-sm t-text-center';
|
|
103
|
+
return radio(updates)
|
|
104
|
+
};
|
|
173
105
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
106
|
+
const sbs2ColRadio = (updates) => {
|
|
107
|
+
updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
|
|
108
|
+
updates.fieldsetClass = '$reset side-by-side-flex';
|
|
109
|
+
updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
|
|
110
|
+
updates.innerClass = 't-flex t-items-start';
|
|
111
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
112
|
+
return radio(updates)
|
|
113
|
+
};
|
|
182
114
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
115
|
+
const sbs2ItemRadio = (updates) => {
|
|
116
|
+
updates.legendClass = 'legend-left t-pb-1 required';
|
|
117
|
+
updates.fieldsetClass = '$reset side-by-side t-items-center';
|
|
118
|
+
updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
|
|
119
|
+
updates.innerClass = 't-flex t-items-center';
|
|
120
|
+
updates.optionClass = 't-pr-1';
|
|
121
|
+
return radio(updates)
|
|
122
|
+
};
|
|
189
123
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
})
|
|
195
|
-
}
|
|
124
|
+
const sbsYesNoRadio = (updates) => {
|
|
125
|
+
updates.options = ['Yes', 'No'];
|
|
126
|
+
return sbs2ItemRadio(updates)
|
|
127
|
+
};
|
|
196
128
|
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
style: {
|
|
210
|
-
border: 0
|
|
211
|
-
},
|
|
212
|
-
width: '25',
|
|
213
|
-
height: '25',
|
|
214
|
-
src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
$el: 'span',
|
|
219
|
-
children: 'Secure & Encrypted',
|
|
220
|
-
attrs: {
|
|
221
|
-
class: 't-pl-2 t-pt-1 t-font-medium'
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
]
|
|
129
|
+
const verticalButtonRadio = (updates) => {
|
|
130
|
+
updates.legendClass = 'legend-left';
|
|
131
|
+
updates.fieldsetClass = '$reset t-flex t-justify-center t-items-center';
|
|
132
|
+
if (typeof updates.optionsClass === 'undefined') {
|
|
133
|
+
updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
|
|
134
|
+
}
|
|
135
|
+
updates.optionClass = 'radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5';
|
|
136
|
+
updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
|
|
137
|
+
updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
|
|
138
|
+
updates.decoratorIcon = false;
|
|
139
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
140
|
+
return radio(updates)
|
|
225
141
|
};
|
|
226
142
|
|
|
143
|
+
const verticalYesNoRadio = (updates) => {
|
|
144
|
+
updates.options = ['Yes', 'No'];
|
|
145
|
+
updates.optionsClass = 't-flex t-justify-center t-my-3';
|
|
146
|
+
return verticalButtonRadio(updates)
|
|
147
|
+
};
|
|
227
148
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
149
|
+
const verticalRadio = (updates) => {
|
|
150
|
+
updates.legendClass = 'required';
|
|
151
|
+
updates.fieldsetClass = '$reset t-flex t-justify-center';
|
|
152
|
+
updates.optionsClass = 't-pl-2 t-pt-3';
|
|
153
|
+
updates.innerClass = 't-items-center';
|
|
154
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
155
|
+
updates.optionClass = 't-pl-4 md:t-pl-12';
|
|
156
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
157
|
+
return radio(updates)
|
|
158
|
+
};
|
|
234
159
|
|
|
235
|
-
const
|
|
236
|
-
{
|
|
237
|
-
|
|
238
|
-
name: "gclid",
|
|
239
|
-
value: null
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
$formkit: 'hidden',
|
|
243
|
-
name: "campaignid",
|
|
244
|
-
value: null
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
$formkit: 'hidden',
|
|
248
|
-
name: "s",
|
|
249
|
-
value: null
|
|
160
|
+
const select = (updates) => {
|
|
161
|
+
if (updates.name && !updates.id) {
|
|
162
|
+
updates.id = updates.name;
|
|
250
163
|
}
|
|
251
|
-
|
|
164
|
+
return merge({
|
|
165
|
+
$formkit: 'select',
|
|
166
|
+
placeholder: "Please Select",
|
|
167
|
+
validation: 'required',
|
|
168
|
+
validationMessages: {
|
|
169
|
+
required: 'Field is required'
|
|
170
|
+
},
|
|
171
|
+
inputClass: 't-bg-white',
|
|
172
|
+
labelClass: 'required'
|
|
173
|
+
}, updates)
|
|
174
|
+
};
|
|
252
175
|
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
$formkit: 'hidden',
|
|
261
|
-
name: "TCPA_Language",
|
|
262
|
-
value: "$meta.tcpaLanguage"
|
|
263
|
-
},
|
|
264
|
-
...hiddenInputsBase
|
|
265
|
-
];
|
|
176
|
+
const sbsSelect = (updates) => {
|
|
177
|
+
updates.labelClass = 'required';
|
|
178
|
+
updates.wrapperClass = 'side-by-side t-items-center';
|
|
179
|
+
updates.innerClass = 'select-height-content';
|
|
180
|
+
updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
|
|
181
|
+
return select(updates)
|
|
182
|
+
};
|
|
266
183
|
|
|
267
|
-
const
|
|
268
|
-
'
|
|
184
|
+
const verticalSelect = (updates) => {
|
|
185
|
+
updates.labelClass = 'required';
|
|
186
|
+
updates.wrapperClass = 't-flex t-justify-center';
|
|
187
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
188
|
+
updates.inputClass = 't-min-w-[150px] t-bg-white';
|
|
189
|
+
updates.helpClass = 't-mt-2.5 t-text-center';
|
|
190
|
+
return select(updates)
|
|
269
191
|
};
|
|
270
192
|
|
|
193
|
+
const text = (updates) => {
|
|
194
|
+
if (updates.name && !updates.id) {
|
|
195
|
+
updates.id = updates.name;
|
|
196
|
+
}
|
|
197
|
+
return merge({
|
|
198
|
+
$formkit: 'text',
|
|
199
|
+
validation: 'required',
|
|
200
|
+
validationMessages: {
|
|
201
|
+
required: 'Field is required'
|
|
202
|
+
},
|
|
203
|
+
labelClass: 'required'
|
|
204
|
+
}, updates)
|
|
205
|
+
};
|
|
271
206
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
)
|
|
277
|
-
}
|
|
207
|
+
const sbsText = (updates) => {
|
|
208
|
+
updates.wrapperClass = 'side-by-side t-items-center';
|
|
209
|
+
return text(updates)
|
|
210
|
+
};
|
|
278
211
|
|
|
279
|
-
const
|
|
280
|
-
'
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
298
|
-
},
|
|
299
|
-
'Workplace Injury': {
|
|
300
|
-
'Type_Of_Legal_Problem': 'Workers Compensation'
|
|
301
|
-
},
|
|
302
|
-
'Trucking Accident': {
|
|
303
|
-
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
304
|
-
},
|
|
305
|
-
'Motorcycle Accident': {
|
|
306
|
-
'Type_Of_Legal_Problem': 'Auto and Car Accidents',
|
|
307
|
-
},
|
|
308
|
-
'Other Accidents or Injuries': {
|
|
309
|
-
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
310
|
-
},
|
|
311
|
-
// Civil
|
|
312
|
-
'Automobile Accident': {
|
|
313
|
-
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
314
|
-
},
|
|
315
|
-
'Contract Disputes': {
|
|
316
|
-
'Type_Of_Legal_Problem': 'Business Lawyers'
|
|
317
|
-
},
|
|
318
|
-
'Defamation and Slander': {
|
|
319
|
-
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
320
|
-
},
|
|
321
|
-
'Dog Bite': {
|
|
322
|
-
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
323
|
-
},
|
|
324
|
-
'Employment and Workplace': {
|
|
325
|
-
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
326
|
-
},
|
|
327
|
-
'Fraud': {
|
|
328
|
-
'Type_Of_Legal_Problem': 'Consumer Lawyers'
|
|
329
|
-
},
|
|
330
|
-
'Medical Malpractice': {
|
|
331
|
-
'Type_Of_Legal_Problem': 'Medical Malpractice'
|
|
332
|
-
},
|
|
333
|
-
'Personal Injury': {
|
|
334
|
-
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
335
|
-
},
|
|
336
|
-
'Property Damage': {
|
|
337
|
-
'Type_Of_Legal_Problem': 'Property Damage'
|
|
338
|
-
},
|
|
339
|
-
'Small Claims': {
|
|
340
|
-
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
341
|
-
},
|
|
342
|
-
'Real Estate': {
|
|
343
|
-
'Type_Of_Legal_Problem': 'Real Estate'
|
|
344
|
-
},
|
|
345
|
-
'Other (describe on next page)': {
|
|
346
|
-
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
347
|
-
},
|
|
348
|
-
// Contracts
|
|
349
|
-
'Contract Creation': {
|
|
350
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
351
|
-
'Business_Services': 'Contracts'
|
|
352
|
-
},
|
|
353
|
-
'Contract Enforcement': {
|
|
354
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
355
|
-
'Business_Services': 'Contracts'
|
|
356
|
-
},
|
|
357
|
-
'Contract Cancellation': {
|
|
358
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
359
|
-
'Business_Services': 'Contracts'
|
|
212
|
+
const verticalText = (updates) => {
|
|
213
|
+
updates.wrapperClass = 't-flex t-justify-center';
|
|
214
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
215
|
+
updates.inputClass = 't-text-center';
|
|
216
|
+
return text(updates)
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
const textArea = (updates) => {
|
|
220
|
+
if (updates.name && !updates.id) {
|
|
221
|
+
updates.id = updates.name;
|
|
222
|
+
}
|
|
223
|
+
return merge({
|
|
224
|
+
$formkit: 'textarea',
|
|
225
|
+
rows: 5,
|
|
226
|
+
maxlength: 500,
|
|
227
|
+
validation: 'required',
|
|
228
|
+
validationMessages: {
|
|
229
|
+
required: 'Field is required'
|
|
360
230
|
},
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
231
|
+
innerClass: 't-max-w-xl',
|
|
232
|
+
labelClass: 'required'
|
|
233
|
+
}, updates)
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
const date = (updates) => {
|
|
237
|
+
if (updates.name && !updates.id) {
|
|
238
|
+
updates.id = updates.name;
|
|
239
|
+
}
|
|
240
|
+
return merge({
|
|
241
|
+
$formkit: 'DatePicker',
|
|
242
|
+
validation: 'required',
|
|
243
|
+
validationMessages: {
|
|
244
|
+
required: 'Field is required'
|
|
364
245
|
},
|
|
365
|
-
'
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
'Other Contract Issues': {
|
|
370
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
371
|
-
'Business_Services': 'Contracts'
|
|
372
|
-
},
|
|
373
|
-
// Criminal
|
|
374
|
-
'Criminal Defense': {
|
|
375
|
-
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
376
|
-
},
|
|
377
|
-
'Victim of a Crime': {
|
|
378
|
-
'Type_Of_Legal_Problem': 'Victim of a Crime'
|
|
379
|
-
},
|
|
380
|
-
'DUI and DWI': {
|
|
381
|
-
'Type_Of_Legal_Problem': 'DUI and DWI'
|
|
382
|
-
},
|
|
383
|
-
'Expungement': {
|
|
384
|
-
'Type_Of_Legal_Problem': 'Expungement'
|
|
385
|
-
},
|
|
386
|
-
'Harassment': {
|
|
387
|
-
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
388
|
-
},
|
|
389
|
-
'Not Sure or Other': {
|
|
390
|
-
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
391
|
-
},
|
|
392
|
-
// Employment and Workplace
|
|
393
|
-
'Workplace Harassment': {
|
|
394
|
-
'Type_Of_Legal_Problem': 'Workplace Harassment'
|
|
395
|
-
},
|
|
396
|
-
'Workplace Discrimination': {
|
|
397
|
-
'Type_Of_Legal_Problem': 'Workplace Discrimination'
|
|
398
|
-
},
|
|
399
|
-
'Wrongful Termination': {
|
|
400
|
-
'Type_Of_Legal_Problem': 'Wrongful Termination'
|
|
401
|
-
},
|
|
402
|
-
'Payment Disputes': {
|
|
403
|
-
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
404
|
-
},
|
|
405
|
-
'Workers Compensation': {
|
|
406
|
-
'Type_Of_Legal_Problem': 'Workers Compensation'
|
|
407
|
-
},
|
|
408
|
-
'Unemployment': {
|
|
409
|
-
'Type_Of_Legal_Problem': 'Unemployment'
|
|
410
|
-
},
|
|
411
|
-
'Other Workplace Issues': {
|
|
412
|
-
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
413
|
-
},
|
|
414
|
-
// Malpractice
|
|
415
|
-
'Attorney Malpractice': {
|
|
416
|
-
'Type_Of_Legal_Problem': 'Civil Lawsuit'
|
|
417
|
-
},
|
|
418
|
-
'Other Malpractice Issues': {
|
|
419
|
-
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
420
|
-
},
|
|
421
|
-
// Repossession
|
|
422
|
-
'Vehicle Repossession': {
|
|
423
|
-
'Type_Of_Legal_Problem': 'Bankruptcy'
|
|
424
|
-
},
|
|
425
|
-
'Property Repossession': {
|
|
426
|
-
'Type_Of_Legal_Problem': 'Bankruptcy'
|
|
427
|
-
},
|
|
428
|
-
'Other Repossession Issues': {
|
|
429
|
-
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
430
|
-
},
|
|
431
|
-
// Real Estate
|
|
432
|
-
'Contracts and Agreements': {
|
|
433
|
-
'Type_Of_Legal_Problem': 'Real Estate'
|
|
434
|
-
},
|
|
435
|
-
'Deeds, Liens, and Titles': {
|
|
436
|
-
'Type_Of_Legal_Problem': 'Real Estate'
|
|
437
|
-
},
|
|
438
|
-
'Foreclosure': {
|
|
439
|
-
'Type_Of_Legal_Problem': 'Foreclosure'
|
|
440
|
-
},
|
|
441
|
-
'Insurance': {
|
|
442
|
-
'Type_Of_Legal_Problem': 'Insurance'
|
|
443
|
-
},
|
|
444
|
-
'Landlord and Tenant': {
|
|
445
|
-
'Type_Of_Legal_Problem': 'Landlord and Tenant',
|
|
446
|
-
},
|
|
447
|
-
'Loans and Mortgages': {
|
|
448
|
-
'Type_Of_Legal_Problem': 'Real Estate',
|
|
449
|
-
},
|
|
450
|
-
'Wills, Trusts, and Estates': {
|
|
451
|
-
'Type_Of_Legal_Problem': 'Wills and Trusts'
|
|
452
|
-
},
|
|
453
|
-
'Property Damage': {
|
|
454
|
-
'Type_Of_Legal_Problem': 'Property Damage'
|
|
455
|
-
},
|
|
456
|
-
'Other Real Estate Issues': {
|
|
457
|
-
'Type_Of_Legal_Problem': 'Real Estate'
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
const TOLPCommentsPlaceholders = {
|
|
463
|
-
'Adoption': 'Example: "I need help with adoption forms"',
|
|
464
|
-
'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
|
|
465
|
-
'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"',
|
|
466
|
-
'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
|
|
467
|
-
'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
|
|
468
|
-
'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
|
|
469
|
-
'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
|
|
470
|
-
'Child Custody': 'Example: "Need help getting custody"',
|
|
471
|
-
'Child Support': 'Example: "Issues with child support payments"',
|
|
472
|
-
'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
|
|
473
|
-
'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
|
|
474
|
-
'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
|
|
475
|
-
'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
|
|
476
|
-
'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
|
|
477
|
-
'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
|
|
478
|
-
'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
|
|
479
|
-
'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
|
|
480
|
-
'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
|
|
481
|
-
'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
|
|
482
|
-
'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
|
|
483
|
-
'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
|
|
484
|
-
'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
|
|
485
|
-
'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
|
|
486
|
-
'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
|
|
487
|
-
'Guardianship': 'Example: "I need help with guardianship documents"',
|
|
488
|
-
'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
|
|
489
|
-
'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
|
|
490
|
-
'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
|
|
491
|
-
'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
|
|
492
|
-
'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
|
|
493
|
-
'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
|
|
494
|
-
'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
|
|
495
|
-
'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
|
|
496
|
-
'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
|
|
497
|
-
'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
|
|
498
|
-
'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
|
|
499
|
-
'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"',
|
|
500
|
-
'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
|
|
501
|
-
'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
|
|
502
|
-
'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
|
|
503
|
-
'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
|
|
504
|
-
'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
|
|
505
|
-
'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
|
|
506
|
-
'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
|
|
507
|
-
'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
|
|
508
|
-
'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"',
|
|
509
|
-
'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
|
|
510
|
-
'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
|
|
511
|
-
'Unemployment': 'Example: "I need help filing for unemployment benefits"',
|
|
512
|
-
'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
|
|
513
|
-
'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
|
|
514
|
-
'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
|
|
515
|
-
'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
|
|
516
|
-
'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
|
|
517
|
-
'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
|
|
246
|
+
labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
|
|
247
|
+
innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
|
|
248
|
+
}, updates)
|
|
518
249
|
};
|
|
519
250
|
|
|
520
|
-
const
|
|
521
|
-
|
|
251
|
+
const sbsDate = (updates) => {
|
|
252
|
+
updates.wrapperClass = 'side-by-side t-items-center';
|
|
253
|
+
return date(updates)
|
|
522
254
|
};
|
|
523
255
|
|
|
524
|
-
const
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
// 'Birth Certificate and Name Change': '',
|
|
530
|
-
// 'Business Lawyers': '',
|
|
531
|
-
// 'Child Custody and Support': '',
|
|
532
|
-
// 'Civil Rights and Discrimination': '',
|
|
533
|
-
// 'Civil Lawsuit': '',
|
|
534
|
-
// 'Consumer Lawyers': '',
|
|
535
|
-
'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
|
|
536
|
-
// 'Criminal and Felony': '',
|
|
537
|
-
// 'Debt and Collections': '',
|
|
538
|
-
'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
|
|
539
|
-
'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
|
|
540
|
-
'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
|
|
541
|
-
// 'Employment and Workplace': '',
|
|
542
|
-
// 'Expungement': '',
|
|
543
|
-
// 'Family Issues': '',
|
|
544
|
-
'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
|
|
545
|
-
'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
|
|
546
|
-
// 'Harassment and Discrimination': '',
|
|
547
|
-
// 'Identity Theft': '',
|
|
548
|
-
'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
|
|
549
|
-
// 'Insurance': '',
|
|
550
|
-
'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
|
|
551
|
-
// 'Lemon Law': '',
|
|
552
|
-
'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
|
|
553
|
-
'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
|
|
554
|
-
'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
|
|
555
|
-
'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
|
|
556
|
-
// 'Power of Attorney': '',
|
|
557
|
-
'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
|
|
558
|
-
// 'Product Liability': '',
|
|
559
|
-
// 'Property Damage': '',
|
|
560
|
-
'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
|
|
561
|
-
'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
|
|
562
|
-
'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
|
|
563
|
-
// 'Traffic and Tickets': '',
|
|
564
|
-
'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
|
|
565
|
-
// 'Victim of a Crime': '',
|
|
566
|
-
// 'Wills and Trusts': '',
|
|
567
|
-
'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
|
|
568
|
-
// 'Wrongful Death': '',
|
|
569
|
-
// 'Wrongful Termination': '',
|
|
570
|
-
// 'Not Sure or Other': ''
|
|
571
|
-
// 'Sexual Harassment': '',
|
|
572
|
-
// 'Workplace Harassment': '',
|
|
573
|
-
// 'Non-Workplace Harassment': '',
|
|
574
|
-
// 'Workplace Discrimination': '',
|
|
575
|
-
// 'Non-Workplace Discrimination': '',
|
|
256
|
+
const verticalDate = (updates) => {
|
|
257
|
+
updates.wrapperClass = 't-flex t-justify-center';
|
|
258
|
+
updates.inputClass = 't-text-center';
|
|
259
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
260
|
+
return date(updates)
|
|
576
261
|
};
|
|
577
262
|
|
|
578
|
-
const
|
|
579
|
-
'
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
263
|
+
const amountPaymentsPastDueCenter = () => verticalSelect({
|
|
264
|
+
name: 'Amount_Payments_Past_Due',
|
|
265
|
+
options: [
|
|
266
|
+
"$0 - $499",
|
|
267
|
+
"$500 - $999",
|
|
268
|
+
"$1,000 - $2,499",
|
|
269
|
+
"$2,500 - $4,999",
|
|
270
|
+
"$5,000 - $9,999",
|
|
271
|
+
"$10,000 - $24,999",
|
|
272
|
+
"$25,000 - $49,999",
|
|
273
|
+
"$50,000 - $99,999",
|
|
274
|
+
"More than $100,000"
|
|
275
|
+
]
|
|
276
|
+
});
|
|
587
277
|
|
|
588
|
-
const
|
|
589
|
-
'
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
'commentsWithBankruptcy',
|
|
593
|
-
'zipcode',
|
|
594
|
-
'legalCrossSells',
|
|
595
|
-
'firstAndLast',
|
|
596
|
-
'contactInfo',
|
|
597
|
-
];
|
|
278
|
+
const applicantOccupationCenter = (scope) => verticalText({
|
|
279
|
+
name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
|
|
280
|
+
placeholder: "Occupation"
|
|
281
|
+
});
|
|
598
282
|
|
|
599
|
-
const
|
|
600
|
-
'
|
|
601
|
-
'
|
|
602
|
-
'
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
283
|
+
const applicantAge$1 = (scope) => sbsText({
|
|
284
|
+
name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
|
|
285
|
+
label: 'Age of Applicant?',
|
|
286
|
+
placeholder: 'Age between 18 and 65',
|
|
287
|
+
maxlength: 2,
|
|
288
|
+
inputmode: "numeric",
|
|
289
|
+
validation: "required|min:18,max:65",
|
|
290
|
+
validationMessages: {
|
|
291
|
+
required: 'Applicant Age is required',
|
|
292
|
+
min: 'Invalid Age - must be between 18 and 65',
|
|
293
|
+
max: 'Invalid Age - must be between 18 and 65',
|
|
294
|
+
}
|
|
295
|
+
});
|
|
607
296
|
|
|
608
|
-
const
|
|
609
|
-
'
|
|
610
|
-
|
|
611
|
-
'
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
297
|
+
const applicantAgeCenter = (scope) => verticalText({
|
|
298
|
+
name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
|
|
299
|
+
value: "50",
|
|
300
|
+
placeholder: 'Age between 18 and 65',
|
|
301
|
+
maxlength: 2,
|
|
302
|
+
inputmode: "numeric",
|
|
303
|
+
validation: "required|min:18,max:65",
|
|
304
|
+
validationMessages: {
|
|
305
|
+
required: 'Applicant Age is required',
|
|
306
|
+
min: 'Invalid Age - must be between 18 and 65',
|
|
307
|
+
max: 'Invalid Age - must be between 18 and 65',
|
|
308
|
+
},
|
|
309
|
+
});
|
|
616
310
|
|
|
617
|
-
const
|
|
618
|
-
'
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
'incidentDate',
|
|
626
|
-
'doctorTreatment',
|
|
627
|
-
...nextStepsLegalDefault
|
|
628
|
-
],
|
|
629
|
-
'Auto and Car Accidents': [
|
|
630
|
-
'incidentDate',
|
|
631
|
-
'atFault',
|
|
632
|
-
'primaryInjury',
|
|
633
|
-
'doctorTreatment',
|
|
634
|
-
'policeReportFiled',
|
|
635
|
-
...nextStepsLegalNoDOI
|
|
636
|
-
],
|
|
637
|
-
'Bankruptcy': [
|
|
638
|
-
'totalMonthlyIncome',
|
|
639
|
-
'totalDebt',
|
|
640
|
-
'ownRealEstate',
|
|
641
|
-
'valueOfAssets',
|
|
642
|
-
...nextStepsLegalDefault
|
|
643
|
-
],
|
|
644
|
-
'Business Lawyers': [
|
|
645
|
-
'businessServices',
|
|
646
|
-
'businessType',
|
|
647
|
-
'numEmployeesOfBusiness',
|
|
648
|
-
...nextStepsLegalDefault
|
|
649
|
-
],
|
|
650
|
-
'Child Custody': [
|
|
651
|
-
'childRelationship',
|
|
652
|
-
'childHome',
|
|
653
|
-
'childPrimaryCaregiver',
|
|
654
|
-
...nextStepsLegalDefaultLPM
|
|
655
|
-
],
|
|
656
|
-
'Child Support': [
|
|
657
|
-
'childRelationship',
|
|
658
|
-
'childHome',
|
|
659
|
-
'childPrimaryCaregiver',
|
|
660
|
-
...nextStepsLegalDefaultLPM
|
|
661
|
-
],
|
|
662
|
-
'Civil Rights and Discrimination': [
|
|
663
|
-
'civilRightsType',
|
|
664
|
-
...nextStepsLegalDefault
|
|
665
|
-
],
|
|
666
|
-
'Civil Lawsuit': [
|
|
667
|
-
'civilDefense',
|
|
668
|
-
'lawsuitOtherParty',
|
|
669
|
-
...nextStepsLegalDefault
|
|
670
|
-
],
|
|
671
|
-
'File a Lawsuit': [
|
|
672
|
-
'civilLawsuitTOLPDisplay',
|
|
673
|
-
'lawsuitOtherParty',
|
|
674
|
-
...nextStepsLegalDefault
|
|
675
|
-
],
|
|
676
|
-
'Defend a Lawsuit': [
|
|
677
|
-
'lawsuitOtherParty',
|
|
678
|
-
...nextStepsLegalDefault
|
|
679
|
-
],
|
|
680
|
-
'Consumer Lawyers': [
|
|
681
|
-
'consumerLawyerType',
|
|
682
|
-
'incidentDate',
|
|
683
|
-
'lawsuitOtherParty',
|
|
684
|
-
...nextStepsLegalDefault
|
|
685
|
-
],
|
|
686
|
-
'Criminal and Felony': [
|
|
687
|
-
'criminalTOLPDisplay',
|
|
688
|
-
'crimeCommittedDate',
|
|
689
|
-
'roleInMatterCriminal',
|
|
690
|
-
'pendingCharges',
|
|
691
|
-
...nextStepsLegalDefaultLPM
|
|
692
|
-
],
|
|
693
|
-
'Debt and Collections': [
|
|
694
|
-
'totalMonthlyIncome',
|
|
695
|
-
'totalDebt',
|
|
696
|
-
'ownRealEstate',
|
|
697
|
-
'valueOfAssets',
|
|
698
|
-
...nextStepsLegalDefault
|
|
699
|
-
],
|
|
700
|
-
'Divorce and Separation': [
|
|
701
|
-
'maritalStatus',
|
|
702
|
-
'haveChildren',
|
|
703
|
-
...nextStepsLegalDefaultLPM
|
|
704
|
-
],
|
|
705
|
-
'DUI and DWI': [
|
|
706
|
-
'incidentDate',
|
|
707
|
-
'priorAlcoholOffenses',
|
|
708
|
-
'typeOfAlcoholTest',
|
|
709
|
-
'bloodContentAlcoholTest',
|
|
710
|
-
'pendingCharges',
|
|
711
|
-
...nextStepsLegalDefault
|
|
712
|
-
],
|
|
713
|
-
'Employment and Workplace': [
|
|
714
|
-
'employmentAndWorkplaceTOLPDisplay',
|
|
715
|
-
'numEmployeesOfBusiness',
|
|
716
|
-
'employerType',
|
|
717
|
-
...nextStepsLegalDefault
|
|
718
|
-
],
|
|
719
|
-
'Expungement': [
|
|
720
|
-
'incidentDate',
|
|
721
|
-
'criminalChargeType',
|
|
722
|
-
...nextStepsLegalDefaultLPM
|
|
723
|
-
],
|
|
724
|
-
'Family Issues': [
|
|
725
|
-
'maritalStatus',
|
|
726
|
-
'haveChildren',
|
|
727
|
-
...nextStepsLegalDefaultLPM
|
|
728
|
-
],
|
|
729
|
-
'Foreclosure': [
|
|
730
|
-
'ownRealEstate',
|
|
731
|
-
'typeOfProperty',
|
|
732
|
-
'amountPaymentsPastDue',
|
|
733
|
-
'loanAmount',
|
|
734
|
-
'defaultNotice',
|
|
735
|
-
...nextStepsLegalDefault
|
|
736
|
-
],
|
|
737
|
-
'Guardianship': [
|
|
738
|
-
'maritalStatus',
|
|
739
|
-
'haveChildren',
|
|
740
|
-
...nextStepsLegalDefaultLPM
|
|
741
|
-
],
|
|
742
|
-
'Immigration and Visas': [
|
|
743
|
-
'countryOfCitizenship',
|
|
744
|
-
'immigrationLocation',
|
|
745
|
-
'immigrationEntry',
|
|
746
|
-
'immigrationType',
|
|
747
|
-
'immigrationStatus',
|
|
748
|
-
'immigrationDetails',
|
|
749
|
-
...nextStepsLegalDefault
|
|
750
|
-
],
|
|
751
|
-
'Landlord and Tenant': [
|
|
752
|
-
'landlordTenantIssue',
|
|
753
|
-
'landlordTenantParty',
|
|
754
|
-
...nextStepsLegalDefault
|
|
755
|
-
],
|
|
756
|
-
'Lemon Law': [
|
|
757
|
-
'incidentDate',
|
|
758
|
-
'lawsuitOtherParty',
|
|
759
|
-
...nextStepsLegalDefault
|
|
760
|
-
],
|
|
761
|
-
'Long Term Disability': [
|
|
762
|
-
'applicantOccupation',
|
|
763
|
-
'applicantAge',
|
|
764
|
-
'applicantLTDisabilityPolicy',
|
|
765
|
-
'applicantDisabilityHowObtain',
|
|
766
|
-
'applicantPreviouslyAppliedLtdBenefits',
|
|
767
|
-
'applicantReceivedDisabilityBenefits',
|
|
768
|
-
'applicantMonthlySalary',
|
|
769
|
-
...nextStepsLegalNoDOI
|
|
770
|
-
],
|
|
771
|
-
'Medical Malpractice': [
|
|
772
|
-
'incidentDate',
|
|
773
|
-
'claimStatus',
|
|
774
|
-
'doctorTreatment',
|
|
775
|
-
'medicalMalpracticeInjuries',
|
|
776
|
-
...nextStepsLegalDefault
|
|
777
|
-
],
|
|
778
|
-
'Patents and Intellectual Property': [
|
|
779
|
-
'patentAssistanceType',
|
|
780
|
-
'patentFor',
|
|
781
|
-
...nextStepsLegalDefault
|
|
782
|
-
],
|
|
783
|
-
'Personal Injury': [
|
|
784
|
-
'incidentDate',
|
|
785
|
-
'claimStatus',
|
|
786
|
-
'atFault',
|
|
787
|
-
'primaryInjury',
|
|
788
|
-
'doctorTreatment',
|
|
789
|
-
...nextStepsLegalNoDOI
|
|
790
|
-
],
|
|
791
|
-
'Probate and Estates': [
|
|
792
|
-
'valueOfAssets',
|
|
793
|
-
'typeOfAssets',
|
|
794
|
-
'roleInMatterProbate',
|
|
795
|
-
'estateLegalServicesNeeded',
|
|
796
|
-
...nextStepsLegalDefault
|
|
797
|
-
],
|
|
798
|
-
'Property Damage': [
|
|
799
|
-
'realEstateArea',
|
|
800
|
-
'wouldLikeLawyerTo',
|
|
801
|
-
...nextStepsLegalDefault
|
|
802
|
-
],
|
|
803
|
-
'Real Estate': [
|
|
804
|
-
'realEstateTOLPDisplay',
|
|
805
|
-
'realEstateArea',
|
|
806
|
-
'wouldLikeLawyerTo',
|
|
807
|
-
...nextStepsLegalDefault
|
|
808
|
-
],
|
|
809
|
-
'Social Security Disability and Insurance': [
|
|
810
|
-
'applicantAge',
|
|
811
|
-
'disabilityConditionStopWork',
|
|
812
|
-
'disabilityWorkHistory',
|
|
813
|
-
'socialSecurityDisabilityReceivingBenefits',
|
|
814
|
-
'doctorTreatment',
|
|
815
|
-
...nextStepsLegalNoDOI
|
|
816
|
-
],
|
|
817
|
-
'Tax and IRS': [
|
|
818
|
-
'totalDebt',
|
|
819
|
-
'taxProblemDetails',
|
|
820
|
-
'taxLevel',
|
|
821
|
-
'taxIssueType',
|
|
822
|
-
...nextStepsLegalDefault
|
|
823
|
-
],
|
|
824
|
-
'Traffic and Tickets': [
|
|
825
|
-
'driversLicenseType',
|
|
826
|
-
'trafficViolations',
|
|
827
|
-
'haveCourtDate',
|
|
828
|
-
...nextStepsLegalDefault
|
|
829
|
-
],
|
|
830
|
-
'Unemployment': [
|
|
831
|
-
'numEmployeesOfBusiness',
|
|
832
|
-
'employerType',
|
|
833
|
-
...nextStepsLegalNoHA
|
|
834
|
-
],
|
|
835
|
-
'Victim of a Crime': [
|
|
836
|
-
'crimeCommittedDate',
|
|
837
|
-
'roleInMatterCriminal',
|
|
838
|
-
'pendingCharges',
|
|
839
|
-
...nextStepsLegalDefaultLPM
|
|
840
|
-
],
|
|
841
|
-
'Wills and Trusts': [
|
|
842
|
-
'valueOfAssets',
|
|
843
|
-
'typeOfAssets',
|
|
844
|
-
'roleInMatterProbate',
|
|
845
|
-
'estateLegalServicesNeeded',
|
|
846
|
-
...nextStepsLegalDefault
|
|
847
|
-
],
|
|
848
|
-
'Workers Compensation': [
|
|
849
|
-
'incidentDate',
|
|
850
|
-
'claimStatus',
|
|
851
|
-
'primaryInjury',
|
|
852
|
-
'causeOfInjury',
|
|
853
|
-
'doctorTreatment',
|
|
854
|
-
...nextStepsLegalNoDOI
|
|
855
|
-
],
|
|
856
|
-
'Wrongful Death': [
|
|
857
|
-
'incidentDate',
|
|
858
|
-
'relationshipToVictim',
|
|
859
|
-
'criminalChargesFiled',
|
|
860
|
-
'causeOfDeath',
|
|
861
|
-
...nextStepsLegalNoDOI
|
|
862
|
-
],
|
|
863
|
-
'Wrongful Termination': [
|
|
864
|
-
'numEmployeesOfBusiness',
|
|
865
|
-
'employerType',
|
|
866
|
-
...nextStepsLegalDefault
|
|
867
|
-
],
|
|
868
|
-
},
|
|
869
|
-
'*': nextStepsLegalDefault
|
|
870
|
-
};
|
|
311
|
+
const applicantDisabilityHowObtainCenter = (scope) => verticalButtonRadio({
|
|
312
|
+
name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
|
|
313
|
+
options: [
|
|
314
|
+
"Employer",
|
|
315
|
+
"Self",
|
|
316
|
+
"Other"
|
|
317
|
+
]
|
|
318
|
+
});
|
|
871
319
|
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
320
|
+
const applicantPreviouslyAppliedLtdBenefitsCenter = (scope) => verticalRadio({
|
|
321
|
+
name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
|
|
322
|
+
options: [
|
|
323
|
+
"Yes, claim pending",
|
|
324
|
+
"Yes, claim denied",
|
|
325
|
+
"No"
|
|
326
|
+
]
|
|
327
|
+
});
|
|
877
328
|
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
329
|
+
const applicantMonthlySalaryCenter = (scope) => verticalSelect({
|
|
330
|
+
name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
|
|
331
|
+
options: [
|
|
332
|
+
"< $1,000",
|
|
333
|
+
"$1,000 - $2,000",
|
|
334
|
+
"$2,000 - $3,000",
|
|
335
|
+
"$3,000 - $4,000",
|
|
336
|
+
"$4,000 - $5,000",
|
|
337
|
+
"$5,000 - $6,000",
|
|
338
|
+
"$6,000 - $7,000",
|
|
339
|
+
"$7,000 - $8,000",
|
|
340
|
+
"$8,000 - $9,000",
|
|
341
|
+
"$9,000 - $10,000",
|
|
342
|
+
">$10,000"
|
|
343
|
+
]
|
|
344
|
+
});
|
|
883
345
|
|
|
884
|
-
const
|
|
346
|
+
const applicantReceivedDisabilityBenefitsCenter = (scope) => verticalRadio({
|
|
347
|
+
name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
|
|
348
|
+
options: [
|
|
349
|
+
"Yes, currently receiving",
|
|
350
|
+
"Yes, appealing a decision to stop payment of benefits",
|
|
351
|
+
"No"
|
|
352
|
+
]
|
|
353
|
+
});
|
|
885
354
|
|
|
886
|
-
({
|
|
887
|
-
'
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
'
|
|
892
|
-
|
|
893
|
-
|
|
355
|
+
const applicantLTDisabilityPolicyCenter = (scope) => verticalYesNoRadio({
|
|
356
|
+
name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
|
|
357
|
+
});
|
|
358
|
+
|
|
359
|
+
const atFault$1 = (scope) => sbsYesNoRadio({
|
|
360
|
+
name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
|
|
361
|
+
label: 'Were You at Fault?'
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
const atFaultCenter = (scope) => verticalYesNoRadio({
|
|
365
|
+
name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
const bankruptcyCrossSell = () => sbsCheckbox({
|
|
369
|
+
label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
|
|
370
|
+
help: "Note: you will be contacted separately by a bankruptcy/debt expert",
|
|
371
|
+
name: 'CrossSell_Bankruptcy',
|
|
372
|
+
id: 'CrossSell_Bankruptcy',
|
|
373
|
+
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")',
|
|
374
|
+
validation: null,
|
|
375
|
+
helpClass: "!t-text-sm"
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
const bloodContentAlcoholTest$1 = (scope) => sbsSelect({
|
|
379
|
+
name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
|
|
380
|
+
label: 'Blood Alcohol Content Measured by Test:',
|
|
381
|
+
options: [
|
|
382
|
+
"No Test",
|
|
383
|
+
"0.00% - 0.04%",
|
|
384
|
+
"0.05% - 0.08%",
|
|
385
|
+
"0.09% - 0.12%",
|
|
386
|
+
"0.13% - 0.16%",
|
|
387
|
+
"0.17% - 0.20%",
|
|
388
|
+
"More than 0.20%",
|
|
389
|
+
"Don't know"
|
|
894
390
|
]
|
|
895
391
|
});
|
|
896
392
|
|
|
897
|
-
const
|
|
898
|
-
'
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
'
|
|
908
|
-
'Other (describe on next page)': TOLPNextSteps["Not Sure or Other"],
|
|
909
|
-
},
|
|
910
|
-
'*': [
|
|
911
|
-
'lawsuitOtherParty',
|
|
912
|
-
...nextStepsLegalDefault
|
|
393
|
+
const bloodContentAlcoholTestCenter = (scope) => verticalSelect({
|
|
394
|
+
name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
|
|
395
|
+
options: [
|
|
396
|
+
"No Test",
|
|
397
|
+
"0.00% - 0.04%",
|
|
398
|
+
"0.05% - 0.08%",
|
|
399
|
+
"0.09% - 0.12%",
|
|
400
|
+
"0.13% - 0.16%",
|
|
401
|
+
"0.17% - 0.20%",
|
|
402
|
+
"More than 0.20%",
|
|
403
|
+
"Don't know"
|
|
913
404
|
]
|
|
914
|
-
};
|
|
405
|
+
});
|
|
915
406
|
|
|
916
|
-
const
|
|
917
|
-
'
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
...nextStepsLegalDefaultLPM
|
|
407
|
+
const businessServicesCenter = () => col2RadioCenter({
|
|
408
|
+
id: 'Business_Services',
|
|
409
|
+
name: 'Business_Services',
|
|
410
|
+
options: [
|
|
411
|
+
"Business Formation",
|
|
412
|
+
"Contracts",
|
|
413
|
+
"Insurance and Liability",
|
|
414
|
+
"Mergers and Acquisition",
|
|
415
|
+
"Regulatory Compliance",
|
|
416
|
+
"Employee Dispute",
|
|
417
|
+
"Other"
|
|
928
418
|
]
|
|
929
|
-
};
|
|
419
|
+
});
|
|
930
420
|
|
|
931
|
-
const
|
|
932
|
-
'
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
'Unemployment': TOLPNextSteps["Unemployment"],
|
|
937
|
-
},
|
|
938
|
-
'*': [
|
|
939
|
-
'numEmployeesOfBusiness',
|
|
940
|
-
'employerType',
|
|
941
|
-
...nextStepsLegalDefault
|
|
421
|
+
const businessTypeCenter = () => verticalButtonRadio({
|
|
422
|
+
name: 'Business_Type',
|
|
423
|
+
options: [
|
|
424
|
+
"Public",
|
|
425
|
+
"Private"
|
|
942
426
|
]
|
|
943
|
-
};
|
|
427
|
+
});
|
|
944
428
|
|
|
945
|
-
const
|
|
946
|
-
'
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
'wouldLikeLawyerTo',
|
|
955
|
-
...nextStepsLegalDefault
|
|
429
|
+
const causeOfInjury$1 = (scope) => sbsSelect({
|
|
430
|
+
name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
|
|
431
|
+
label: 'Cause of Injury:',
|
|
432
|
+
options: [
|
|
433
|
+
"Traumatic Physical Injury (Accident)",
|
|
434
|
+
"Repeated Trauma Injury",
|
|
435
|
+
"Mental Injury",
|
|
436
|
+
"Occupational Disease",
|
|
437
|
+
"Not Sure"
|
|
956
438
|
]
|
|
957
|
-
};
|
|
439
|
+
});
|
|
958
440
|
|
|
959
|
-
|
|
441
|
+
const causeOfInjuryCenter = (scope) => col2RadioCenter({
|
|
442
|
+
name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
|
|
443
|
+
options: [
|
|
444
|
+
"Traumatic Physical Injury (Accident)",
|
|
445
|
+
"Repeated Trauma Injury",
|
|
446
|
+
"Mental Injury",
|
|
447
|
+
"Occupational Disease",
|
|
448
|
+
"Not Sure"
|
|
449
|
+
]
|
|
450
|
+
});
|
|
960
451
|
|
|
961
|
-
const
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
}
|
|
971
|
-
}, updates)
|
|
972
|
-
};
|
|
452
|
+
const causeOfDeathCenter = () => col2RadioCenter({
|
|
453
|
+
name: 'Cause_Of_Death',
|
|
454
|
+
options: [
|
|
455
|
+
"Vehicle Accident",
|
|
456
|
+
"Negligent/Careless Act",
|
|
457
|
+
"Reckless Act",
|
|
458
|
+
"Other"
|
|
459
|
+
]
|
|
460
|
+
});
|
|
973
461
|
|
|
974
|
-
const
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
return checkbox(updates)
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
const col2Checkbox = (updates) => {
|
|
995
|
-
if (!updates || !updates.legendClass) {
|
|
996
|
-
updates.legendClass = 'required';
|
|
997
|
-
}
|
|
998
|
-
updates.fieldsetClass = '$reset';
|
|
999
|
-
updates.optionsClass = 't-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
1000
|
-
updates.innerClass = 't-items-start';
|
|
1001
|
-
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
1002
|
-
return checkbox(updates)
|
|
1003
|
-
};
|
|
462
|
+
const civilLawsuitTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
|
|
463
|
+
name: 'Type_Of_Legal_Problem_Display',
|
|
464
|
+
options: [
|
|
465
|
+
'Automobile Accident',
|
|
466
|
+
'Contract Disputes',
|
|
467
|
+
'Defamation and Slander',
|
|
468
|
+
'Dog Bite',
|
|
469
|
+
'Employment and Workplace',
|
|
470
|
+
'Fraud',
|
|
471
|
+
'Medical Malpractice',
|
|
472
|
+
'Personal Injury',
|
|
473
|
+
'Property Damage',
|
|
474
|
+
'Small Claims',
|
|
475
|
+
'Real Estate',
|
|
476
|
+
'Not Sure or Other'
|
|
477
|
+
]
|
|
478
|
+
}, updates));
|
|
1004
479
|
|
|
1005
|
-
const
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
};
|
|
480
|
+
const civilRightsTypeCenter = () => col2RadioCenter({
|
|
481
|
+
name: 'Civil_Rights_Type',
|
|
482
|
+
options: [
|
|
483
|
+
"Age",
|
|
484
|
+
"Disability",
|
|
485
|
+
"Gender",
|
|
486
|
+
"Race",
|
|
487
|
+
"Religion",
|
|
488
|
+
"Other"
|
|
489
|
+
]
|
|
490
|
+
});
|
|
1017
491
|
|
|
1018
|
-
const
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
optionsClass: 't-pt-3 t-pl-1',
|
|
1029
|
-
legendClass: 'required'
|
|
1030
|
-
}, updates)
|
|
1031
|
-
};
|
|
492
|
+
const childHome$1 = (scope) => sbsSelect({
|
|
493
|
+
name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
|
|
494
|
+
label: 'With Whom Do the Children Currently Live?',
|
|
495
|
+
options: [
|
|
496
|
+
'Mother',
|
|
497
|
+
'Father',
|
|
498
|
+
'Grandparents',
|
|
499
|
+
'Other'
|
|
500
|
+
]
|
|
501
|
+
});
|
|
1032
502
|
|
|
1033
|
-
const
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
updates.messagesClass = 't-flex t-justify-center';
|
|
1043
|
-
updates.helpClass = 't-mt-0 t-mb-4 !t-text-sm t-text-center';
|
|
1044
|
-
return radio(updates)
|
|
1045
|
-
};
|
|
503
|
+
const childHomeCenter = (scope) => col2RadioCenter({
|
|
504
|
+
name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
|
|
505
|
+
options: [
|
|
506
|
+
'Mother',
|
|
507
|
+
'Father',
|
|
508
|
+
'Grandparents',
|
|
509
|
+
'Other'
|
|
510
|
+
]
|
|
511
|
+
});
|
|
1046
512
|
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
513
|
+
const childPrimaryCaregiver$1 = (scope) => sbsSelect({
|
|
514
|
+
name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
|
|
515
|
+
label: 'Who is the Primary Caregiver?',
|
|
516
|
+
options: [
|
|
517
|
+
'Mother',
|
|
518
|
+
'Father',
|
|
519
|
+
'Other'
|
|
520
|
+
]
|
|
521
|
+
});
|
|
1055
522
|
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
};
|
|
523
|
+
const childPrimaryCaregiverCenter = (scope) => verticalButtonRadio({
|
|
524
|
+
name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
|
|
525
|
+
options: [
|
|
526
|
+
'Mother',
|
|
527
|
+
'Father',
|
|
528
|
+
'Other'
|
|
529
|
+
]
|
|
530
|
+
});
|
|
1064
531
|
|
|
1065
|
-
const
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
532
|
+
const childRelationship$1 = (scope) => sbsSelect({
|
|
533
|
+
name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
|
|
534
|
+
label: 'Your Relationship to Child(ren):',
|
|
535
|
+
options: [
|
|
536
|
+
'Father',
|
|
537
|
+
'Mother',
|
|
538
|
+
'Grandparent',
|
|
539
|
+
'Aunt/Uncle',
|
|
540
|
+
'Other'
|
|
541
|
+
]
|
|
542
|
+
});
|
|
1069
543
|
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
updates.messagesClass = 't-flex t-justify-center';
|
|
1081
|
-
return radio(updates)
|
|
1082
|
-
};
|
|
544
|
+
const childRelationshipCenter = (scope) => col2RadioCenter({
|
|
545
|
+
name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
|
|
546
|
+
options: [
|
|
547
|
+
'Father',
|
|
548
|
+
'Mother',
|
|
549
|
+
'Grandparent',
|
|
550
|
+
'Aunt/Uncle',
|
|
551
|
+
'Other'
|
|
552
|
+
]
|
|
553
|
+
});
|
|
1083
554
|
|
|
1084
|
-
const
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
555
|
+
const claimStatus$1 = (scope) => sbsSelect({
|
|
556
|
+
name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
|
|
557
|
+
label: "Status of Claim:",
|
|
558
|
+
options: [
|
|
559
|
+
"No action taken yet",
|
|
560
|
+
"Demand for compensation made",
|
|
561
|
+
"Lawsuit filed",
|
|
562
|
+
"Other"
|
|
563
|
+
]
|
|
564
|
+
});
|
|
1089
565
|
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
};
|
|
566
|
+
const claimStatusCenter = (scope) => col2RadioCenter({
|
|
567
|
+
name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
|
|
568
|
+
options: [
|
|
569
|
+
"No action taken yet",
|
|
570
|
+
"Demand for compensation made",
|
|
571
|
+
"Lawsuit filed",
|
|
572
|
+
"Other"
|
|
573
|
+
]
|
|
574
|
+
});
|
|
1100
575
|
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
$formkit: 'select',
|
|
1107
|
-
placeholder: "Please Select",
|
|
1108
|
-
validation: 'required',
|
|
1109
|
-
validationMessages: {
|
|
1110
|
-
required: 'Field is required'
|
|
1111
|
-
},
|
|
1112
|
-
inputClass: 't-bg-white',
|
|
1113
|
-
labelClass: 'required'
|
|
576
|
+
const comments = (updates, scope) => textArea(
|
|
577
|
+
merge({
|
|
578
|
+
name: scope ? scope + ':' + 'Comments' : 'Comments',
|
|
579
|
+
label: 'Please briefly describe your situation in a few words:',
|
|
580
|
+
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
|
|
1114
581
|
}, updates)
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
const sbsSelect = (updates) => {
|
|
1118
|
-
updates.labelClass = 'required';
|
|
1119
|
-
updates.wrapperClass = 'side-by-side t-items-center';
|
|
1120
|
-
updates.innerClass = 'select-height-content';
|
|
1121
|
-
updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
|
|
1122
|
-
return select(updates)
|
|
1123
|
-
};
|
|
1124
|
-
|
|
1125
|
-
const verticalSelect = (updates) => {
|
|
1126
|
-
updates.labelClass = 'required';
|
|
1127
|
-
updates.wrapperClass = 't-flex t-justify-center';
|
|
1128
|
-
updates.messagesClass = 't-flex t-justify-center';
|
|
1129
|
-
updates.inputClass = 't-min-w-[150px] t-bg-white';
|
|
1130
|
-
updates.helpClass = 't-mt-2.5 t-text-center';
|
|
1131
|
-
return select(updates)
|
|
1132
|
-
};
|
|
582
|
+
);
|
|
1133
583
|
|
|
1134
|
-
const
|
|
1135
|
-
|
|
1136
|
-
updates.id = updates.name;
|
|
1137
|
-
}
|
|
1138
|
-
return merge({
|
|
1139
|
-
$formkit: 'text',
|
|
1140
|
-
validation: 'required',
|
|
1141
|
-
validationMessages: {
|
|
1142
|
-
required: 'Field is required'
|
|
1143
|
-
},
|
|
1144
|
-
labelClass: 'required'
|
|
1145
|
-
}, updates)
|
|
1146
|
-
};
|
|
1147
|
-
|
|
1148
|
-
const sbsText = (updates) => {
|
|
1149
|
-
updates.wrapperClass = 'side-by-side t-items-center';
|
|
1150
|
-
return text(updates)
|
|
1151
|
-
};
|
|
1152
|
-
|
|
1153
|
-
const verticalText = (updates) => {
|
|
1154
|
-
updates.wrapperClass = 't-flex t-justify-center';
|
|
1155
|
-
updates.messagesClass = 't-flex t-justify-center';
|
|
1156
|
-
updates.inputClass = 't-text-center';
|
|
1157
|
-
return text(updates)
|
|
1158
|
-
};
|
|
1159
|
-
|
|
1160
|
-
const textArea = (updates) => {
|
|
1161
|
-
if (updates.name && !updates.id) {
|
|
1162
|
-
updates.id = updates.name;
|
|
1163
|
-
}
|
|
1164
|
-
return merge({
|
|
1165
|
-
$formkit: 'textarea',
|
|
1166
|
-
rows: 5,
|
|
1167
|
-
maxlength: 500,
|
|
1168
|
-
validation: 'required',
|
|
1169
|
-
validationMessages: {
|
|
1170
|
-
required: 'Field is required'
|
|
1171
|
-
},
|
|
1172
|
-
innerClass: 't-max-w-xl',
|
|
1173
|
-
labelClass: 'required'
|
|
1174
|
-
}, updates)
|
|
1175
|
-
};
|
|
1176
|
-
|
|
1177
|
-
const date = (updates) => {
|
|
1178
|
-
if (updates.name && !updates.id) {
|
|
1179
|
-
updates.id = updates.name;
|
|
1180
|
-
}
|
|
1181
|
-
return merge({
|
|
1182
|
-
$formkit: 'DatePicker',
|
|
1183
|
-
validation: 'required',
|
|
1184
|
-
validationMessages: {
|
|
1185
|
-
required: 'Field is required'
|
|
1186
|
-
},
|
|
1187
|
-
labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
|
|
1188
|
-
innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
|
|
1189
|
-
}, updates)
|
|
1190
|
-
};
|
|
1191
|
-
|
|
1192
|
-
const sbsDate = (updates) => {
|
|
1193
|
-
updates.wrapperClass = 'side-by-side t-items-center';
|
|
1194
|
-
return date(updates)
|
|
1195
|
-
};
|
|
1196
|
-
|
|
1197
|
-
const verticalDate = (updates) => {
|
|
1198
|
-
updates.wrapperClass = 't-flex t-justify-center';
|
|
1199
|
-
updates.inputClass = 't-text-center';
|
|
1200
|
-
updates.messagesClass = 't-flex t-justify-center';
|
|
1201
|
-
return date(updates)
|
|
1202
|
-
};
|
|
1203
|
-
|
|
1204
|
-
const amountPaymentsPastDueCenter = () => verticalSelect({
|
|
1205
|
-
name: 'Amount_Payments_Past_Due',
|
|
1206
|
-
options: [
|
|
1207
|
-
"$0 - $499",
|
|
1208
|
-
"$500 - $999",
|
|
1209
|
-
"$1,000 - $2,499",
|
|
1210
|
-
"$2,500 - $4,999",
|
|
1211
|
-
"$5,000 - $9,999",
|
|
1212
|
-
"$10,000 - $24,999",
|
|
1213
|
-
"$25,000 - $49,999",
|
|
1214
|
-
"$50,000 - $99,999",
|
|
1215
|
-
"More than $100,000"
|
|
1216
|
-
]
|
|
1217
|
-
});
|
|
1218
|
-
|
|
1219
|
-
const applicantOccupationCenter = (scope) => verticalText({
|
|
1220
|
-
name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
|
|
1221
|
-
placeholder: "Occupation"
|
|
1222
|
-
});
|
|
1223
|
-
|
|
1224
|
-
const applicantAge$1 = (scope) => sbsText({
|
|
1225
|
-
name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
|
|
1226
|
-
label: 'Age of Applicant?',
|
|
1227
|
-
placeholder: 'Age between 18 and 65',
|
|
1228
|
-
maxlength: 2,
|
|
1229
|
-
inputmode: "numeric",
|
|
1230
|
-
validation: "required|min:18,max:65",
|
|
1231
|
-
validationMessages: {
|
|
1232
|
-
required: 'Applicant Age is required',
|
|
1233
|
-
min: 'Invalid Age - must be between 18 and 65',
|
|
1234
|
-
max: 'Invalid Age - must be between 18 and 65',
|
|
1235
|
-
}
|
|
1236
|
-
});
|
|
1237
|
-
|
|
1238
|
-
const applicantAgeCenter = (scope) => verticalText({
|
|
1239
|
-
name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
|
|
1240
|
-
value: "50",
|
|
1241
|
-
placeholder: 'Age between 18 and 65',
|
|
1242
|
-
maxlength: 2,
|
|
1243
|
-
inputmode: "numeric",
|
|
1244
|
-
validation: "required|min:18,max:65",
|
|
1245
|
-
validationMessages: {
|
|
1246
|
-
required: 'Applicant Age is required',
|
|
1247
|
-
min: 'Invalid Age - must be between 18 and 65',
|
|
1248
|
-
max: 'Invalid Age - must be between 18 and 65',
|
|
1249
|
-
},
|
|
1250
|
-
});
|
|
1251
|
-
|
|
1252
|
-
const applicantDisabilityHowObtainCenter = (scope) => verticalButtonRadio({
|
|
1253
|
-
name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
|
|
1254
|
-
options: [
|
|
1255
|
-
"Employer",
|
|
1256
|
-
"Self",
|
|
1257
|
-
"Other"
|
|
1258
|
-
]
|
|
1259
|
-
});
|
|
1260
|
-
|
|
1261
|
-
const applicantPreviouslyAppliedLtdBenefitsCenter = (scope) => verticalRadio({
|
|
1262
|
-
name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
|
|
1263
|
-
options: [
|
|
1264
|
-
"Yes, claim pending",
|
|
1265
|
-
"Yes, claim denied",
|
|
1266
|
-
"No"
|
|
1267
|
-
]
|
|
1268
|
-
});
|
|
1269
|
-
|
|
1270
|
-
const applicantMonthlySalaryCenter = (scope) => verticalSelect({
|
|
1271
|
-
name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
|
|
1272
|
-
options: [
|
|
1273
|
-
"< $1,000",
|
|
1274
|
-
"$1,000 - $2,000",
|
|
1275
|
-
"$2,000 - $3,000",
|
|
1276
|
-
"$3,000 - $4,000",
|
|
1277
|
-
"$4,000 - $5,000",
|
|
1278
|
-
"$5,000 - $6,000",
|
|
1279
|
-
"$6,000 - $7,000",
|
|
1280
|
-
"$7,000 - $8,000",
|
|
1281
|
-
"$8,000 - $9,000",
|
|
1282
|
-
"$9,000 - $10,000",
|
|
1283
|
-
">$10,000"
|
|
1284
|
-
]
|
|
1285
|
-
});
|
|
1286
|
-
|
|
1287
|
-
const applicantReceivedDisabilityBenefitsCenter = (scope) => verticalRadio({
|
|
1288
|
-
name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
|
|
1289
|
-
options: [
|
|
1290
|
-
"Yes, currently receiving",
|
|
1291
|
-
"Yes, appealing a decision to stop payment of benefits",
|
|
1292
|
-
"No"
|
|
1293
|
-
]
|
|
1294
|
-
});
|
|
1295
|
-
|
|
1296
|
-
const applicantLTDisabilityPolicyCenter = (scope) => verticalYesNoRadio({
|
|
1297
|
-
name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
|
|
1298
|
-
});
|
|
1299
|
-
|
|
1300
|
-
const atFault$1 = (scope) => sbsYesNoRadio({
|
|
1301
|
-
name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
|
|
1302
|
-
label: 'Were You at Fault?'
|
|
1303
|
-
});
|
|
1304
|
-
|
|
1305
|
-
const atFaultCenter = (scope) => verticalYesNoRadio({
|
|
1306
|
-
name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
|
|
1307
|
-
});
|
|
1308
|
-
|
|
1309
|
-
const bankruptcyCrossSell = () => sbsCheckbox({
|
|
1310
|
-
label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
|
|
1311
|
-
help: "Note: you will be contacted separately by a bankruptcy/debt expert",
|
|
1312
|
-
name: 'CrossSell_Bankruptcy',
|
|
1313
|
-
id: 'CrossSell_Bankruptcy',
|
|
1314
|
-
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")',
|
|
1315
|
-
validation: null,
|
|
1316
|
-
helpClass: "!t-text-sm"
|
|
1317
|
-
});
|
|
1318
|
-
|
|
1319
|
-
const bloodContentAlcoholTest$1 = (scope) => sbsSelect({
|
|
1320
|
-
name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
|
|
1321
|
-
label: 'Blood Alcohol Content Measured by Test:',
|
|
1322
|
-
options: [
|
|
1323
|
-
"No Test",
|
|
1324
|
-
"0.00% - 0.04%",
|
|
1325
|
-
"0.05% - 0.08%",
|
|
1326
|
-
"0.09% - 0.12%",
|
|
1327
|
-
"0.13% - 0.16%",
|
|
1328
|
-
"0.17% - 0.20%",
|
|
1329
|
-
"More than 0.20%",
|
|
1330
|
-
"Don't know"
|
|
1331
|
-
]
|
|
1332
|
-
});
|
|
1333
|
-
|
|
1334
|
-
const bloodContentAlcoholTestCenter = (scope) => verticalSelect({
|
|
1335
|
-
name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
|
|
1336
|
-
options: [
|
|
1337
|
-
"No Test",
|
|
1338
|
-
"0.00% - 0.04%",
|
|
1339
|
-
"0.05% - 0.08%",
|
|
1340
|
-
"0.09% - 0.12%",
|
|
1341
|
-
"0.13% - 0.16%",
|
|
1342
|
-
"0.17% - 0.20%",
|
|
1343
|
-
"More than 0.20%",
|
|
1344
|
-
"Don't know"
|
|
1345
|
-
]
|
|
1346
|
-
});
|
|
1347
|
-
|
|
1348
|
-
const businessServicesCenter = () => col2RadioCenter({
|
|
1349
|
-
id: 'Business_Services',
|
|
1350
|
-
name: 'Business_Services',
|
|
584
|
+
const consumerLawyerTypeCenter = () => verticalSelect({
|
|
585
|
+
name: 'Consumer_Lawyer_Type',
|
|
1351
586
|
options: [
|
|
1352
|
-
"
|
|
1353
|
-
"
|
|
1354
|
-
"
|
|
1355
|
-
"
|
|
1356
|
-
"
|
|
1357
|
-
"
|
|
587
|
+
"Unsafe Environment",
|
|
588
|
+
"Unsafe Products",
|
|
589
|
+
"Auto Fraud",
|
|
590
|
+
"Credit Reporting Issues",
|
|
591
|
+
"Debt Collection Abuse",
|
|
592
|
+
"Identity Theft",
|
|
593
|
+
"Lemon Law",
|
|
594
|
+
"Military Consumer Rights",
|
|
595
|
+
"Predatory Lending",
|
|
596
|
+
"Student Loans",
|
|
1358
597
|
"Other"
|
|
1359
598
|
]
|
|
1360
599
|
});
|
|
1361
600
|
|
|
1362
|
-
const
|
|
1363
|
-
name: '
|
|
1364
|
-
options: [
|
|
1365
|
-
"Public",
|
|
1366
|
-
"Private"
|
|
1367
|
-
]
|
|
1368
|
-
});
|
|
1369
|
-
|
|
1370
|
-
const causeOfInjury$1 = (scope) => sbsSelect({
|
|
1371
|
-
name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
|
|
1372
|
-
label: 'Cause of Injury:',
|
|
1373
|
-
options: [
|
|
1374
|
-
"Traumatic Physical Injury (Accident)",
|
|
1375
|
-
"Repeated Trauma Injury",
|
|
1376
|
-
"Mental Injury",
|
|
1377
|
-
"Occupational Disease",
|
|
1378
|
-
"Not Sure"
|
|
1379
|
-
]
|
|
1380
|
-
});
|
|
1381
|
-
|
|
1382
|
-
const causeOfInjuryCenter = (scope) => col2RadioCenter({
|
|
1383
|
-
name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
|
|
1384
|
-
options: [
|
|
1385
|
-
"Traumatic Physical Injury (Accident)",
|
|
1386
|
-
"Repeated Trauma Injury",
|
|
1387
|
-
"Mental Injury",
|
|
1388
|
-
"Occupational Disease",
|
|
1389
|
-
"Not Sure"
|
|
1390
|
-
]
|
|
1391
|
-
});
|
|
1392
|
-
|
|
1393
|
-
const causeOfDeathCenter = () => col2RadioCenter({
|
|
1394
|
-
name: 'Cause_Of_Death',
|
|
1395
|
-
options: [
|
|
1396
|
-
"Vehicle Accident",
|
|
1397
|
-
"Negligent/Careless Act",
|
|
1398
|
-
"Reckless Act",
|
|
1399
|
-
"Other"
|
|
1400
|
-
]
|
|
1401
|
-
});
|
|
1402
|
-
|
|
1403
|
-
const civilLawsuitTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
|
|
1404
|
-
name: 'Type_Of_Legal_Problem_Display',
|
|
1405
|
-
options: [
|
|
1406
|
-
'Automobile Accident',
|
|
1407
|
-
'Contract Disputes',
|
|
1408
|
-
'Defamation and Slander',
|
|
1409
|
-
'Dog Bite',
|
|
1410
|
-
'Employment and Workplace',
|
|
1411
|
-
'Fraud',
|
|
1412
|
-
'Medical Malpractice',
|
|
1413
|
-
'Personal Injury',
|
|
1414
|
-
'Property Damage',
|
|
1415
|
-
'Small Claims',
|
|
1416
|
-
'Real Estate',
|
|
1417
|
-
'Other (describe on next page)'
|
|
1418
|
-
]
|
|
1419
|
-
}, updates));
|
|
1420
|
-
|
|
1421
|
-
const civilRightsTypeCenter = () => col2RadioCenter({
|
|
1422
|
-
name: 'Civil_Rights_Type',
|
|
1423
|
-
options: [
|
|
1424
|
-
"Age",
|
|
1425
|
-
"Disability",
|
|
1426
|
-
"Gender",
|
|
1427
|
-
"Race",
|
|
1428
|
-
"Religion",
|
|
1429
|
-
"Other"
|
|
1430
|
-
]
|
|
1431
|
-
});
|
|
1432
|
-
|
|
1433
|
-
const childHome$1 = (scope) => sbsSelect({
|
|
1434
|
-
name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
|
|
1435
|
-
label: 'With Whom Do the Children Currently Live?',
|
|
1436
|
-
options: [
|
|
1437
|
-
'Mother',
|
|
1438
|
-
'Father',
|
|
1439
|
-
'Grandparents',
|
|
1440
|
-
'Other'
|
|
1441
|
-
]
|
|
1442
|
-
});
|
|
1443
|
-
|
|
1444
|
-
const childHomeCenter = (scope) => col2RadioCenter({
|
|
1445
|
-
name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
|
|
1446
|
-
options: [
|
|
1447
|
-
'Mother',
|
|
1448
|
-
'Father',
|
|
1449
|
-
'Grandparents',
|
|
1450
|
-
'Other'
|
|
1451
|
-
]
|
|
1452
|
-
});
|
|
1453
|
-
|
|
1454
|
-
const childPrimaryCaregiver$1 = (scope) => sbsSelect({
|
|
1455
|
-
name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
|
|
1456
|
-
label: 'Who is the Primary Caregiver?',
|
|
1457
|
-
options: [
|
|
1458
|
-
'Mother',
|
|
1459
|
-
'Father',
|
|
1460
|
-
'Other'
|
|
1461
|
-
]
|
|
1462
|
-
});
|
|
1463
|
-
|
|
1464
|
-
const childPrimaryCaregiverCenter = (scope) => verticalButtonRadio({
|
|
1465
|
-
name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
|
|
1466
|
-
options: [
|
|
1467
|
-
'Mother',
|
|
1468
|
-
'Father',
|
|
1469
|
-
'Other'
|
|
1470
|
-
]
|
|
1471
|
-
});
|
|
1472
|
-
|
|
1473
|
-
const childRelationship$1 = (scope) => sbsSelect({
|
|
1474
|
-
name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
|
|
1475
|
-
label: 'Your Relationship to Child(ren):',
|
|
1476
|
-
options: [
|
|
1477
|
-
'Father',
|
|
1478
|
-
'Mother',
|
|
1479
|
-
'Grandparent',
|
|
1480
|
-
'Aunt/Uncle',
|
|
1481
|
-
'Other'
|
|
1482
|
-
]
|
|
1483
|
-
});
|
|
1484
|
-
|
|
1485
|
-
const childRelationshipCenter = (scope) => col2RadioCenter({
|
|
1486
|
-
name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
|
|
1487
|
-
options: [
|
|
1488
|
-
'Father',
|
|
1489
|
-
'Mother',
|
|
1490
|
-
'Grandparent',
|
|
1491
|
-
'Aunt/Uncle',
|
|
1492
|
-
'Other'
|
|
1493
|
-
]
|
|
1494
|
-
});
|
|
1495
|
-
|
|
1496
|
-
const claimStatus$1 = (scope) => sbsSelect({
|
|
1497
|
-
name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
|
|
1498
|
-
label: "Status of Claim:",
|
|
1499
|
-
options: [
|
|
1500
|
-
"No action taken yet",
|
|
1501
|
-
"Demand for compensation made",
|
|
1502
|
-
"Lawsuit filed",
|
|
1503
|
-
"Other"
|
|
1504
|
-
]
|
|
1505
|
-
});
|
|
1506
|
-
|
|
1507
|
-
const claimStatusCenter = (scope) => col2RadioCenter({
|
|
1508
|
-
name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
|
|
1509
|
-
options: [
|
|
1510
|
-
"No action taken yet",
|
|
1511
|
-
"Demand for compensation made",
|
|
1512
|
-
"Lawsuit filed",
|
|
1513
|
-
"Other"
|
|
1514
|
-
]
|
|
1515
|
-
});
|
|
1516
|
-
|
|
1517
|
-
const comments = (updates, scope) => textArea(
|
|
1518
|
-
merge({
|
|
1519
|
-
name: scope ? scope + ':' + 'Comments' : 'Comments',
|
|
1520
|
-
label: 'Please briefly describe your situation in a few words:',
|
|
1521
|
-
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
|
|
1522
|
-
}, updates)
|
|
1523
|
-
);
|
|
1524
|
-
|
|
1525
|
-
const consumerLawyerTypeCenter = () => verticalSelect({
|
|
1526
|
-
name: 'Consumer_Lawyer_Type',
|
|
1527
|
-
options: [
|
|
1528
|
-
"Unsafe Environment",
|
|
1529
|
-
"Unsafe Products",
|
|
1530
|
-
"Auto Fraud",
|
|
1531
|
-
"Credit Reporting Issues",
|
|
1532
|
-
"Debt Collection Abuse",
|
|
1533
|
-
"Identity Theft",
|
|
1534
|
-
"Lemon Law",
|
|
1535
|
-
"Military Consumer Rights",
|
|
1536
|
-
"Predatory Lending",
|
|
1537
|
-
"Student Loans",
|
|
1538
|
-
"Other"
|
|
1539
|
-
]
|
|
1540
|
-
});
|
|
1541
|
-
|
|
1542
|
-
const countryOfCitizenshipCenter = (scope) => verticalSelect({
|
|
1543
|
-
name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
|
|
601
|
+
const countryOfCitizenshipCenter = (scope) => verticalSelect({
|
|
602
|
+
name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
|
|
1544
603
|
options: [
|
|
1545
604
|
"Afghanistan",
|
|
1546
605
|
"Albania",
|
|
@@ -1854,6 +913,10 @@ const employerTypeCenter = () => col2RadioCenter({
|
|
|
1854
913
|
]
|
|
1855
914
|
});
|
|
1856
915
|
|
|
916
|
+
const employeeAtCompanyCenter = (scope) => verticalYesNoRadio({
|
|
917
|
+
name: scope ? scope + ':' + 'Employee_At_Company' : 'Employee_At_Company',
|
|
918
|
+
});
|
|
919
|
+
|
|
1857
920
|
const employmentAndWorkplaceTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
|
|
1858
921
|
name: 'Type_Of_Legal_Problem_Display',
|
|
1859
922
|
options: [
|
|
@@ -2330,7 +1393,7 @@ const primaryInjury$1 = (scope) => sbs2ColRadio({
|
|
|
2330
1393
|
"Headaches",
|
|
2331
1394
|
"Memory Loss",
|
|
2332
1395
|
"Loss of Limb",
|
|
2333
|
-
"
|
|
1396
|
+
"Not Sure or Other"
|
|
2334
1397
|
]
|
|
2335
1398
|
});
|
|
2336
1399
|
|
|
@@ -2344,7 +1407,7 @@ const primaryInjuryCenter = (scope) => col2RadioCenter({
|
|
|
2344
1407
|
"Headaches",
|
|
2345
1408
|
"Memory Loss",
|
|
2346
1409
|
"Loss of Limb",
|
|
2347
|
-
"
|
|
1410
|
+
"Not Sure or Other"
|
|
2348
1411
|
]
|
|
2349
1412
|
});
|
|
2350
1413
|
|
|
@@ -2392,7 +1455,7 @@ const realEstateTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
|
|
|
2392
1455
|
'Loans and Mortgages',
|
|
2393
1456
|
'Wills, Trusts, and Estates',
|
|
2394
1457
|
'Property Damage',
|
|
2395
|
-
'
|
|
1458
|
+
'Not Sure or Other'
|
|
2396
1459
|
]
|
|
2397
1460
|
}, updates));
|
|
2398
1461
|
|
|
@@ -2886,6 +1949,43 @@ const findLastInput = (n) => {
|
|
|
2886
1949
|
return null
|
|
2887
1950
|
};
|
|
2888
1951
|
|
|
1952
|
+
const secureIconDefault = {
|
|
1953
|
+
$el: 'div',
|
|
1954
|
+
if: '$activeStep === $lastStep()',
|
|
1955
|
+
attrs: {
|
|
1956
|
+
class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
|
|
1957
|
+
},
|
|
1958
|
+
children: [
|
|
1959
|
+
{
|
|
1960
|
+
$el: 'img',
|
|
1961
|
+
attrs: {
|
|
1962
|
+
loading: 'lazy',
|
|
1963
|
+
alt: '',
|
|
1964
|
+
style: {
|
|
1965
|
+
border: 0
|
|
1966
|
+
},
|
|
1967
|
+
width: '25',
|
|
1968
|
+
height: '25',
|
|
1969
|
+
src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
$el: 'span',
|
|
1974
|
+
children: 'Secure & Encrypted',
|
|
1975
|
+
attrs: {
|
|
1976
|
+
class: 't-pl-2 t-pt-1 t-font-medium'
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
]
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
function secureIcon(updates) {
|
|
1983
|
+
return merge(
|
|
1984
|
+
secureIconDefault,
|
|
1985
|
+
updates
|
|
1986
|
+
)
|
|
1987
|
+
}
|
|
1988
|
+
|
|
2889
1989
|
function crossSellQuestionsStepHeadline(updates) {
|
|
2890
1990
|
return {
|
|
2891
1991
|
$el: 'h3',
|
|
@@ -3055,7 +2155,7 @@ function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
|
3055
2155
|
)
|
|
3056
2156
|
}
|
|
3057
2157
|
|
|
3058
|
-
function
|
|
2158
|
+
function commentsWithBankruptcy(updates = {}) {
|
|
3059
2159
|
return step(
|
|
3060
2160
|
'commentsWithBankruptcy',
|
|
3061
2161
|
[
|
|
@@ -3063,7 +2163,7 @@ function commentsWithBankruptcyV2(updates = {}) {
|
|
|
3063
2163
|
comments({
|
|
3064
2164
|
label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL : updates.label,
|
|
3065
2165
|
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
3066
|
-
inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-
|
|
2166
|
+
inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
|
|
3067
2167
|
}),
|
|
3068
2168
|
bankruptcyCrossSell(),
|
|
3069
2169
|
{
|
|
@@ -3078,24 +2178,23 @@ function commentsWithBankruptcyV2(updates = {}) {
|
|
|
3078
2178
|
],
|
|
3079
2179
|
}
|
|
3080
2180
|
],
|
|
3081
|
-
|
|
2181
|
+
false // nextOnEnter
|
|
3082
2182
|
)
|
|
3083
2183
|
}
|
|
3084
2184
|
|
|
3085
|
-
function
|
|
2185
|
+
function contactInfo(updates = {}) {
|
|
3086
2186
|
return step(
|
|
3087
2187
|
'contactInfo',
|
|
3088
2188
|
[
|
|
3089
2189
|
contactStepHeadline(updates),
|
|
3090
2190
|
contactStepSubHeadline(updates),
|
|
3091
|
-
// Added TF everywhere
|
|
3092
2191
|
trustedFormScript(),
|
|
3093
2192
|
email(),
|
|
3094
2193
|
phone(),
|
|
3095
2194
|
TCPAConsent(),
|
|
3096
2195
|
secureIcon()
|
|
3097
2196
|
],
|
|
3098
|
-
|
|
2197
|
+
false, // nextOnEnter
|
|
3099
2198
|
)
|
|
3100
2199
|
}
|
|
3101
2200
|
|
|
@@ -3564,6 +2663,15 @@ function employerType(updates = {}) {
|
|
|
3564
2663
|
)
|
|
3565
2664
|
}
|
|
3566
2665
|
|
|
2666
|
+
function employeeAtCompany(updates = {}) {
|
|
2667
|
+
return sqstep(
|
|
2668
|
+
'employeeAtCompany',
|
|
2669
|
+
employeeAtCompanyCenter(),
|
|
2670
|
+
'Do you/they still work at the company?',
|
|
2671
|
+
updates
|
|
2672
|
+
)
|
|
2673
|
+
}
|
|
2674
|
+
|
|
3567
2675
|
function numEmployeesOfBusiness(updates = {}) {
|
|
3568
2676
|
return sqstep(
|
|
3569
2677
|
'numEmployeesOfBusiness',
|
|
@@ -3981,172 +3089,1118 @@ function veteransDisabilityApplied(updates = {}) {
|
|
|
3981
3089
|
)
|
|
3982
3090
|
}
|
|
3983
3091
|
|
|
3984
|
-
function criminalChargeType(updates = {}) {
|
|
3985
|
-
return sqstep(
|
|
3986
|
-
'criminalChargeType',
|
|
3987
|
-
criminalChargeTypeCenter(),
|
|
3988
|
-
'What type of criminal charge?',
|
|
3989
|
-
updates
|
|
3990
|
-
)
|
|
3991
|
-
}
|
|
3092
|
+
function criminalChargeType(updates = {}) {
|
|
3093
|
+
return sqstep(
|
|
3094
|
+
'criminalChargeType',
|
|
3095
|
+
criminalChargeTypeCenter(),
|
|
3096
|
+
'What type of criminal charge?',
|
|
3097
|
+
updates
|
|
3098
|
+
)
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
function taxProblemDetails(updates = {}) {
|
|
3102
|
+
return sqstep(
|
|
3103
|
+
'taxProblemDetails',
|
|
3104
|
+
taxProblemDetailsCenter(),
|
|
3105
|
+
'Details of the tax problem:',
|
|
3106
|
+
updates
|
|
3107
|
+
)
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
function taxLevel(updates = {}) {
|
|
3111
|
+
return sqstep(
|
|
3112
|
+
'taxLevel',
|
|
3113
|
+
taxLevelCenter(),
|
|
3114
|
+
'What level of tax issue?',
|
|
3115
|
+
updates
|
|
3116
|
+
)
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
function taxIssueType(updates = {}) {
|
|
3120
|
+
return sqstep(
|
|
3121
|
+
'taxIssueType',
|
|
3122
|
+
taxIssueTypeCenter(),
|
|
3123
|
+
'What type of tax issue?',
|
|
3124
|
+
updates
|
|
3125
|
+
)
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
function causeOfInjury(updates = {}) {
|
|
3129
|
+
return sqstep(
|
|
3130
|
+
'causeOfInjury',
|
|
3131
|
+
causeOfInjuryCenter(),
|
|
3132
|
+
'What was the cause of the injury?',
|
|
3133
|
+
updates
|
|
3134
|
+
)
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
function causeOfDeath(updates = {}) {
|
|
3138
|
+
return sqstep(
|
|
3139
|
+
'causeOfDeath',
|
|
3140
|
+
causeOfDeathCenter(),
|
|
3141
|
+
'What was the cause of death?',
|
|
3142
|
+
updates
|
|
3143
|
+
)
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
function relationshipToVictim(updates = {}) {
|
|
3147
|
+
return sqstep(
|
|
3148
|
+
'relationshipToVictim',
|
|
3149
|
+
relationshipToVictimCenter(),
|
|
3150
|
+
'What is your relationship to the victim?',
|
|
3151
|
+
updates
|
|
3152
|
+
)
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
function criminalChargesFiled(updates = {}) {
|
|
3156
|
+
return sqstep(
|
|
3157
|
+
'criminalChargesFiled',
|
|
3158
|
+
criminalChargesFiledCenter(),
|
|
3159
|
+
'Have criminal charges been filed?',
|
|
3160
|
+
updates
|
|
3161
|
+
)
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
// ------ Common
|
|
3165
|
+
|
|
3166
|
+
const formNavigation = () => ({
|
|
3167
|
+
$el: 'div',
|
|
3168
|
+
attrs: {
|
|
3169
|
+
class: 'step-nav'
|
|
3170
|
+
},
|
|
3171
|
+
children: [
|
|
3172
|
+
{
|
|
3173
|
+
$formkit: 'button',
|
|
3174
|
+
name: 'back_button',
|
|
3175
|
+
onClick: '$setPreviousStep($prevStepFunc($get(form)))',
|
|
3176
|
+
children: 'Back',
|
|
3177
|
+
style: {
|
|
3178
|
+
if: '$activeStep === $firstStep()',
|
|
3179
|
+
then: 'visibility: hidden;'
|
|
3180
|
+
}
|
|
3181
|
+
},
|
|
3182
|
+
{
|
|
3183
|
+
$formkit: 'button',
|
|
3184
|
+
name: 'next_button',
|
|
3185
|
+
onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
|
|
3186
|
+
children: {
|
|
3187
|
+
if: '$activeStep === $firstStep()',
|
|
3188
|
+
then: 'Start',
|
|
3189
|
+
else: 'Next'
|
|
3190
|
+
},
|
|
3191
|
+
outerClass: {
|
|
3192
|
+
if: '$activeStep === $lastStep()',
|
|
3193
|
+
then: 't-hidden',
|
|
3194
|
+
else: ''
|
|
3195
|
+
},
|
|
3196
|
+
style: {
|
|
3197
|
+
if: '$activeStep === $lastStep()',
|
|
3198
|
+
then: 'display: none;'
|
|
3199
|
+
}
|
|
3200
|
+
},
|
|
3201
|
+
{
|
|
3202
|
+
$formkit: 'submit',
|
|
3203
|
+
name: 'submit_button',
|
|
3204
|
+
label: 'Submit',
|
|
3205
|
+
if: '$activeStep === $lastStep()',
|
|
3206
|
+
style: {
|
|
3207
|
+
if: '$activeStep !== $lastStep()',
|
|
3208
|
+
then: 'display: none;'
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
]
|
|
3212
|
+
});
|
|
3213
|
+
|
|
3214
|
+
const formDetails = () => ({
|
|
3215
|
+
$el: 'pre',
|
|
3216
|
+
if: '$urlParam("fdbg", "") == 1',
|
|
3217
|
+
children: [
|
|
3218
|
+
{
|
|
3219
|
+
$el: 'pre',
|
|
3220
|
+
children: '$stringify( $get(form).value )',
|
|
3221
|
+
attrs: {
|
|
3222
|
+
class: 't-text-xs',
|
|
3223
|
+
style: 'overflow: scroll'
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
$el: 'pre',
|
|
3228
|
+
children: ['activeStep: ', '$activeStep'],
|
|
3229
|
+
attrs: {
|
|
3230
|
+
class: 't-text-xs',
|
|
3231
|
+
style: 'overflow: scroll'
|
|
3232
|
+
}
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
$el: 'pre',
|
|
3236
|
+
children: ['stepHistory: ', '$stepHistory'],
|
|
3237
|
+
attrs: {
|
|
3238
|
+
class: 't-text-xs',
|
|
3239
|
+
style: 'overflow: scroll'
|
|
3240
|
+
}
|
|
3241
|
+
},
|
|
3242
|
+
{
|
|
3243
|
+
$el: 'pre',
|
|
3244
|
+
children: ['stepQueue: ', '$stepQueue'],
|
|
3245
|
+
attrs: {
|
|
3246
|
+
class: 't-text-xs',
|
|
3247
|
+
style: 'overflow: scroll'
|
|
3248
|
+
}
|
|
3249
|
+
},
|
|
3250
|
+
{
|
|
3251
|
+
$el: 'pre',
|
|
3252
|
+
children: ['steps: ', '$stepKeys()'],
|
|
3253
|
+
attrs: {
|
|
3254
|
+
class: 't-text-xs',
|
|
3255
|
+
style: 'overflow: scroll'
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
]
|
|
3259
|
+
});
|
|
3260
|
+
|
|
3261
|
+
const formPropDefaults = {
|
|
3262
|
+
type: 'form',
|
|
3263
|
+
id: 'form',
|
|
3264
|
+
config: { validationVisibility: 'submit' },
|
|
3265
|
+
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
3266
|
+
plugins: '$plugins',
|
|
3267
|
+
actions: false,
|
|
3268
|
+
anchorElement: 'form-anchor',
|
|
3269
|
+
useLocalStorage: true,
|
|
3270
|
+
prepop: {
|
|
3271
|
+
fromURL: true
|
|
3272
|
+
},
|
|
3273
|
+
errorCodes: {
|
|
3274
|
+
403: { message: "An Error Occurred", abort: false },
|
|
3275
|
+
409: { abort: false },
|
|
3276
|
+
429: "An Error Occurred",
|
|
3277
|
+
504: { message: "An Error Occurred", abort: false },
|
|
3278
|
+
},
|
|
3279
|
+
formClass: '!t-max-w-[40rem]'
|
|
3280
|
+
};
|
|
3281
|
+
|
|
3282
|
+
function formProps(updates) {
|
|
3283
|
+
const props = merge(
|
|
3284
|
+
formPropDefaults,
|
|
3285
|
+
updates
|
|
3286
|
+
);
|
|
3287
|
+
if (props.formId && !props.name) {
|
|
3288
|
+
props.name = props.formId;
|
|
3289
|
+
}
|
|
3290
|
+
return props
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
const metaDefaults = {
|
|
3294
|
+
tcpaLanguage: TCPA_LANGUAGE
|
|
3295
|
+
};
|
|
3296
|
+
|
|
3297
|
+
function metaProps(updates) {
|
|
3298
|
+
const data = merge(
|
|
3299
|
+
metaDefaults,
|
|
3300
|
+
updates
|
|
3301
|
+
);
|
|
3302
|
+
return {
|
|
3303
|
+
type: 'meta',
|
|
3304
|
+
data
|
|
3305
|
+
}
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
function defaultMetaProps() {
|
|
3309
|
+
return metaProps({
|
|
3310
|
+
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
3311
|
+
commentsPlaceholders: TOLPCommentsPlaceholders,
|
|
3312
|
+
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
|
|
3313
|
+
finalHeadlines: TOLPFinalHeadlines,
|
|
3314
|
+
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
|
|
3315
|
+
finalSubHeadlines: TOLPFinalSubHeadlines,
|
|
3316
|
+
})
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
const dynamicSchemaNode = {
|
|
3320
|
+
$cmp: 'FormKitSchema',
|
|
3321
|
+
if: '$get(Type_Of_Legal_Problem).value',
|
|
3322
|
+
props: {
|
|
3323
|
+
schema: '$meta.dynamicSchema',
|
|
3324
|
+
data: '$buildData($meta)'
|
|
3325
|
+
}
|
|
3326
|
+
};
|
|
3327
|
+
|
|
3328
|
+
const formAnchorDefaults = {
|
|
3329
|
+
$el: 'div',
|
|
3330
|
+
children: [
|
|
3331
|
+
{
|
|
3332
|
+
$el: 'div',
|
|
3333
|
+
attrs: {
|
|
3334
|
+
id: 'form-anchor',
|
|
3335
|
+
class: 't-absolute',
|
|
3336
|
+
style: { top: '-30px', left: 0 }
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
],
|
|
3340
|
+
attrs: {
|
|
3341
|
+
class: 't-relative'
|
|
3342
|
+
}
|
|
3343
|
+
};
|
|
3344
|
+
|
|
3345
|
+
function formAnchor(updates) {
|
|
3346
|
+
return merge(
|
|
3347
|
+
formAnchorDefaults,
|
|
3348
|
+
updates
|
|
3349
|
+
)
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
const progressBarDefaults = {
|
|
3353
|
+
$el: 'div',
|
|
3354
|
+
attrs: {
|
|
3355
|
+
class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
|
|
3356
|
+
style: {
|
|
3357
|
+
if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
|
|
3358
|
+
then: 'display: none'
|
|
3359
|
+
},
|
|
3360
|
+
},
|
|
3361
|
+
children: [
|
|
3362
|
+
{
|
|
3363
|
+
$el: 'div',
|
|
3364
|
+
attrs: {
|
|
3365
|
+
class: 't-flex t-justify-center'
|
|
3366
|
+
},
|
|
3367
|
+
children: [
|
|
3368
|
+
{
|
|
3369
|
+
$el: 'span',
|
|
3370
|
+
attrs: {
|
|
3371
|
+
id: 'progress-bar-text',
|
|
3372
|
+
class: 't-text-sm t-mb-1'
|
|
3373
|
+
},
|
|
3374
|
+
children: [
|
|
3375
|
+
"0% Complete"
|
|
3376
|
+
]
|
|
3377
|
+
},
|
|
3378
|
+
]
|
|
3379
|
+
},
|
|
3380
|
+
{
|
|
3381
|
+
$el: 'div',
|
|
3382
|
+
attrs: {
|
|
3383
|
+
class: 't-bg-gray-100 t-w-9/12 t-rounded'
|
|
3384
|
+
},
|
|
3385
|
+
children: [
|
|
3386
|
+
{
|
|
3387
|
+
$el: 'div',
|
|
3388
|
+
attrs: {
|
|
3389
|
+
id: 'progress-bar',
|
|
3390
|
+
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]',
|
|
3391
|
+
style: {
|
|
3392
|
+
transition: 'width 0.5s ease'
|
|
3393
|
+
},
|
|
3394
|
+
},
|
|
3395
|
+
}
|
|
3396
|
+
]
|
|
3397
|
+
}
|
|
3398
|
+
]
|
|
3399
|
+
};
|
|
3400
|
+
|
|
3401
|
+
function progressBar(updates) {
|
|
3402
|
+
return merge(
|
|
3403
|
+
progressBarDefaults,
|
|
3404
|
+
updates
|
|
3405
|
+
)
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
function headlineDefaults(updates = {}) {
|
|
3409
|
+
return {
|
|
3410
|
+
$el: 'h1',
|
|
3411
|
+
attrs: {
|
|
3412
|
+
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 || '')
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
function headline(updates = {}) {
|
|
3418
|
+
return merge(
|
|
3419
|
+
headlineDefaults(updates),
|
|
3420
|
+
updates
|
|
3421
|
+
)
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
function subHeadlineDefaults(updates = {}) {
|
|
3425
|
+
return {
|
|
3426
|
+
$el: 'h3',
|
|
3427
|
+
attrs: {
|
|
3428
|
+
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 || '')
|
|
3429
|
+
}
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
function subHeadline(updates = {}) {
|
|
3434
|
+
return merge(
|
|
3435
|
+
subHeadlineDefaults(updates),
|
|
3436
|
+
updates
|
|
3437
|
+
)
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
function defaultSubHeadline() {
|
|
3441
|
+
return subHeadline({
|
|
3442
|
+
children: '$urlParam("shl", "Our Service is Fast and Free!")',
|
|
3443
|
+
if: '$activeStep === $firstStep()'
|
|
3444
|
+
})
|
|
3445
|
+
}
|
|
3446
|
+
|
|
3447
|
+
const hiddenInputsBase = [
|
|
3448
|
+
{
|
|
3449
|
+
$formkit: 'hidden',
|
|
3450
|
+
name: "gclid",
|
|
3451
|
+
value: null
|
|
3452
|
+
},
|
|
3453
|
+
{
|
|
3454
|
+
$formkit: 'hidden',
|
|
3455
|
+
name: "campaignid",
|
|
3456
|
+
value: null
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
$formkit: 'hidden',
|
|
3460
|
+
name: "s",
|
|
3461
|
+
value: null
|
|
3462
|
+
}
|
|
3463
|
+
];
|
|
3464
|
+
|
|
3465
|
+
const hiddenInputsLegal = [
|
|
3466
|
+
{
|
|
3467
|
+
$formkit: 'hidden',
|
|
3468
|
+
name: "vertical",
|
|
3469
|
+
value: "Legal"
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
$formkit: 'hidden',
|
|
3473
|
+
name: "TCPA_Language",
|
|
3474
|
+
value: "$meta.tcpaLanguage"
|
|
3475
|
+
},
|
|
3476
|
+
...hiddenInputsBase
|
|
3477
|
+
];
|
|
3478
|
+
|
|
3479
|
+
const legalRedirectMapDefaults = {
|
|
3480
|
+
'*': LegalRedirectUrl()
|
|
3481
|
+
};
|
|
3482
|
+
|
|
3483
|
+
|
|
3484
|
+
function legalRedirectMap(updates) {
|
|
3485
|
+
return merge(
|
|
3486
|
+
legalRedirectMapDefaults,
|
|
3487
|
+
updates
|
|
3488
|
+
)
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
const legalAllValueOverrideMap = {
|
|
3492
|
+
'Civil_Defense': {
|
|
3493
|
+
'Yes': {
|
|
3494
|
+
'Type_Of_Legal_Problem': 'Defend a Lawsuit'
|
|
3495
|
+
},
|
|
3496
|
+
'No': {
|
|
3497
|
+
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
3498
|
+
}
|
|
3499
|
+
},
|
|
3500
|
+
'Type_Of_Legal_Problem_Display': {
|
|
3501
|
+
// Accidents and PI
|
|
3502
|
+
'Auto Accident': {
|
|
3503
|
+
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
3504
|
+
},
|
|
3505
|
+
'Dog Bite': {
|
|
3506
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3507
|
+
},
|
|
3508
|
+
'Slip and Fall': {
|
|
3509
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3510
|
+
},
|
|
3511
|
+
'Workplace Injury': {
|
|
3512
|
+
'Type_Of_Legal_Problem': 'Workers Compensation'
|
|
3513
|
+
},
|
|
3514
|
+
'Trucking Accident': {
|
|
3515
|
+
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
3516
|
+
},
|
|
3517
|
+
'Motorcycle Accident': {
|
|
3518
|
+
'Type_Of_Legal_Problem': 'Auto and Car Accidents',
|
|
3519
|
+
},
|
|
3520
|
+
'Other Accidents or Injuries': {
|
|
3521
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3522
|
+
},
|
|
3523
|
+
// Civil
|
|
3524
|
+
'Automobile Accident': {
|
|
3525
|
+
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
3526
|
+
},
|
|
3527
|
+
'Contract Disputes': {
|
|
3528
|
+
'Type_Of_Legal_Problem': 'Business Lawyers'
|
|
3529
|
+
},
|
|
3530
|
+
'Defamation and Slander': {
|
|
3531
|
+
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
3532
|
+
},
|
|
3533
|
+
'Dog Bite': {
|
|
3534
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3535
|
+
},
|
|
3536
|
+
'Employment and Workplace': {
|
|
3537
|
+
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
3538
|
+
},
|
|
3539
|
+
'Fraud': {
|
|
3540
|
+
'Type_Of_Legal_Problem': 'Consumer Lawyers'
|
|
3541
|
+
},
|
|
3542
|
+
'Medical Malpractice': {
|
|
3543
|
+
'Type_Of_Legal_Problem': 'Medical Malpractice'
|
|
3544
|
+
},
|
|
3545
|
+
'Personal Injury': {
|
|
3546
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3547
|
+
},
|
|
3548
|
+
'Property Damage': {
|
|
3549
|
+
'Type_Of_Legal_Problem': 'Property Damage'
|
|
3550
|
+
},
|
|
3551
|
+
'Small Claims': {
|
|
3552
|
+
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
3553
|
+
},
|
|
3554
|
+
'Real Estate': {
|
|
3555
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
3556
|
+
},
|
|
3557
|
+
'Other (describe on next page)': {
|
|
3558
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
3559
|
+
},
|
|
3560
|
+
// Contracts
|
|
3561
|
+
'Contract Creation': {
|
|
3562
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3563
|
+
'Business_Services': 'Contracts'
|
|
3564
|
+
},
|
|
3565
|
+
'Contract Enforcement': {
|
|
3566
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3567
|
+
'Business_Services': 'Contracts'
|
|
3568
|
+
},
|
|
3569
|
+
'Contract Cancellation': {
|
|
3570
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3571
|
+
'Business_Services': 'Contracts'
|
|
3572
|
+
},
|
|
3573
|
+
'Contract Fraud': {
|
|
3574
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3575
|
+
'Business_Services': 'Contracts'
|
|
3576
|
+
},
|
|
3577
|
+
'Breach of Contract': {
|
|
3578
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3579
|
+
'Business_Services': 'Contracts'
|
|
3580
|
+
},
|
|
3581
|
+
'Other Contract Issues': {
|
|
3582
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3583
|
+
'Business_Services': 'Contracts'
|
|
3584
|
+
},
|
|
3585
|
+
// Criminal
|
|
3586
|
+
'Criminal Defense': {
|
|
3587
|
+
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
3588
|
+
},
|
|
3589
|
+
'Victim of a Crime': {
|
|
3590
|
+
'Type_Of_Legal_Problem': 'Victim of a Crime'
|
|
3591
|
+
},
|
|
3592
|
+
'DUI and DWI': {
|
|
3593
|
+
'Type_Of_Legal_Problem': 'DUI and DWI'
|
|
3594
|
+
},
|
|
3595
|
+
'Expungement': {
|
|
3596
|
+
'Type_Of_Legal_Problem': 'Expungement'
|
|
3597
|
+
},
|
|
3598
|
+
'Harassment': {
|
|
3599
|
+
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
3600
|
+
},
|
|
3601
|
+
'Not Sure or Other': {
|
|
3602
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
3603
|
+
},
|
|
3604
|
+
// Employment and Workplace
|
|
3605
|
+
'Workplace Harassment': {
|
|
3606
|
+
'Type_Of_Legal_Problem': 'Workplace Harassment'
|
|
3607
|
+
},
|
|
3608
|
+
'Workplace Discrimination': {
|
|
3609
|
+
'Type_Of_Legal_Problem': 'Workplace Discrimination'
|
|
3610
|
+
},
|
|
3611
|
+
'Wrongful Termination': {
|
|
3612
|
+
'Type_Of_Legal_Problem': 'Wrongful Termination'
|
|
3613
|
+
},
|
|
3614
|
+
'Payment Disputes': {
|
|
3615
|
+
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
3616
|
+
},
|
|
3617
|
+
'Workers Compensation': {
|
|
3618
|
+
'Type_Of_Legal_Problem': 'Workers Compensation'
|
|
3619
|
+
},
|
|
3620
|
+
'Unemployment': {
|
|
3621
|
+
'Type_Of_Legal_Problem': 'Unemployment'
|
|
3622
|
+
},
|
|
3623
|
+
'Other Workplace Issues': {
|
|
3624
|
+
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
3625
|
+
},
|
|
3626
|
+
// Malpractice
|
|
3627
|
+
'Attorney Malpractice': {
|
|
3628
|
+
'Type_Of_Legal_Problem': 'Civil Lawsuit'
|
|
3629
|
+
},
|
|
3630
|
+
'Other Malpractice Issues': {
|
|
3631
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
3632
|
+
},
|
|
3633
|
+
// Repossession
|
|
3634
|
+
'Vehicle Repossession': {
|
|
3635
|
+
'Type_Of_Legal_Problem': 'Bankruptcy'
|
|
3636
|
+
},
|
|
3637
|
+
'Property Repossession': {
|
|
3638
|
+
'Type_Of_Legal_Problem': 'Bankruptcy'
|
|
3639
|
+
},
|
|
3640
|
+
'Other Repossession Issues': {
|
|
3641
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
3642
|
+
},
|
|
3643
|
+
// Real Estate
|
|
3644
|
+
'Contracts and Agreements': {
|
|
3645
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
3646
|
+
},
|
|
3647
|
+
'Deeds, Liens, and Titles': {
|
|
3648
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
3649
|
+
},
|
|
3650
|
+
'Foreclosure': {
|
|
3651
|
+
'Type_Of_Legal_Problem': 'Foreclosure'
|
|
3652
|
+
},
|
|
3653
|
+
'Insurance': {
|
|
3654
|
+
'Type_Of_Legal_Problem': 'Insurance'
|
|
3655
|
+
},
|
|
3656
|
+
'Landlord and Tenant': {
|
|
3657
|
+
'Type_Of_Legal_Problem': 'Landlord and Tenant',
|
|
3658
|
+
},
|
|
3659
|
+
'Loans and Mortgages': {
|
|
3660
|
+
'Type_Of_Legal_Problem': 'Real Estate',
|
|
3661
|
+
},
|
|
3662
|
+
'Wills, Trusts, and Estates': {
|
|
3663
|
+
'Type_Of_Legal_Problem': 'Wills and Trusts'
|
|
3664
|
+
},
|
|
3665
|
+
'Property Damage': {
|
|
3666
|
+
'Type_Of_Legal_Problem': 'Property Damage'
|
|
3667
|
+
},
|
|
3668
|
+
'Other Real Estate Issues': {
|
|
3669
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
3670
|
+
}
|
|
3671
|
+
}
|
|
3672
|
+
};
|
|
3673
|
+
|
|
3674
|
+
const TOLPCommentsPlaceholders = {
|
|
3675
|
+
'Adoption': 'Example: "I need help with adoption forms"',
|
|
3676
|
+
'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
|
|
3677
|
+
'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"',
|
|
3678
|
+
'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
|
|
3679
|
+
'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
|
|
3680
|
+
'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
|
|
3681
|
+
'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
|
|
3682
|
+
'Child Custody': 'Example: "Need help getting custody"',
|
|
3683
|
+
'Child Support': 'Example: "Issues with child support payments"',
|
|
3684
|
+
'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
|
|
3685
|
+
'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
|
|
3686
|
+
'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
|
|
3687
|
+
'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
|
|
3688
|
+
'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
|
|
3689
|
+
'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
|
|
3690
|
+
'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
|
|
3691
|
+
'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
|
|
3692
|
+
'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
|
|
3693
|
+
'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
|
|
3694
|
+
'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
|
|
3695
|
+
'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
|
|
3696
|
+
'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
|
|
3697
|
+
'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
|
|
3698
|
+
'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
|
|
3699
|
+
'Guardianship': 'Example: "I need help with guardianship documents"',
|
|
3700
|
+
'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
|
|
3701
|
+
'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
|
|
3702
|
+
'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
|
|
3703
|
+
'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
|
|
3704
|
+
'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
|
|
3705
|
+
'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
|
|
3706
|
+
'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
|
|
3707
|
+
'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
|
|
3708
|
+
'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
|
|
3709
|
+
'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
|
|
3710
|
+
'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
|
|
3711
|
+
'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"',
|
|
3712
|
+
'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
|
|
3713
|
+
'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
|
|
3714
|
+
'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
|
|
3715
|
+
'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
|
|
3716
|
+
'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
|
|
3717
|
+
'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
|
|
3718
|
+
'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
|
|
3719
|
+
'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
|
|
3720
|
+
'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"',
|
|
3721
|
+
'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
|
|
3722
|
+
'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
|
|
3723
|
+
'Unemployment': 'Example: "I need help filing for unemployment benefits"',
|
|
3724
|
+
'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
|
|
3725
|
+
'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
|
|
3726
|
+
'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
|
|
3727
|
+
'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
|
|
3728
|
+
'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
|
|
3729
|
+
'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
|
|
3730
|
+
};
|
|
3731
|
+
|
|
3732
|
+
const TOLPFinalHeadlines = {
|
|
3733
|
+
// 'Adoption': '',
|
|
3734
|
+
};
|
|
3735
|
+
|
|
3736
|
+
const TOLPFinalSubHeadlines = {
|
|
3737
|
+
'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
|
|
3738
|
+
// 'Asbestos and Mesothelioma': '',
|
|
3739
|
+
'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
|
|
3740
|
+
'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
|
|
3741
|
+
// 'Birth Certificate and Name Change': '',
|
|
3742
|
+
// 'Business Lawyers': '',
|
|
3743
|
+
// 'Child Custody and Support': '',
|
|
3744
|
+
// 'Civil Rights and Discrimination': '',
|
|
3745
|
+
// 'Civil Lawsuit': '',
|
|
3746
|
+
// 'Consumer Lawyers': '',
|
|
3747
|
+
'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
|
|
3748
|
+
// 'Criminal and Felony': '',
|
|
3749
|
+
// 'Debt and Collections': '',
|
|
3750
|
+
'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
|
|
3751
|
+
'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
|
|
3752
|
+
'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
|
|
3753
|
+
// 'Employment and Workplace': '',
|
|
3754
|
+
// 'Expungement': '',
|
|
3755
|
+
// 'Family Issues': '',
|
|
3756
|
+
'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
|
|
3757
|
+
'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
|
|
3758
|
+
// 'Harassment and Discrimination': '',
|
|
3759
|
+
// 'Identity Theft': '',
|
|
3760
|
+
'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
|
|
3761
|
+
// 'Insurance': '',
|
|
3762
|
+
'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
|
|
3763
|
+
// 'Lemon Law': '',
|
|
3764
|
+
'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
|
|
3765
|
+
'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
|
|
3766
|
+
'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
|
|
3767
|
+
'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
|
|
3768
|
+
// 'Power of Attorney': '',
|
|
3769
|
+
'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
|
|
3770
|
+
// 'Product Liability': '',
|
|
3771
|
+
// 'Property Damage': '',
|
|
3772
|
+
'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
|
|
3773
|
+
'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
|
|
3774
|
+
'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
|
|
3775
|
+
// 'Traffic and Tickets': '',
|
|
3776
|
+
'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
|
|
3777
|
+
// 'Victim of a Crime': '',
|
|
3778
|
+
// 'Wills and Trusts': '',
|
|
3779
|
+
'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
|
|
3780
|
+
// 'Wrongful Death': '',
|
|
3781
|
+
// 'Wrongful Termination': '',
|
|
3782
|
+
// 'Not Sure or Other': ''
|
|
3783
|
+
// 'Sexual Harassment': '',
|
|
3784
|
+
// 'Workplace Harassment': '',
|
|
3785
|
+
// 'Non-Workplace Harassment': '',
|
|
3786
|
+
// 'Workplace Discrimination': '',
|
|
3787
|
+
// 'Non-Workplace Discrimination': '',
|
|
3788
|
+
};
|
|
3789
|
+
|
|
3790
|
+
const nextStepsLegalDefault = [
|
|
3791
|
+
'haveAttorney',
|
|
3792
|
+
'degreeOfInterest',
|
|
3793
|
+
'commentsWithBankruptcy',
|
|
3794
|
+
'zipcode',
|
|
3795
|
+
'legalCrossSells',
|
|
3796
|
+
'firstAndLast',
|
|
3797
|
+
'contactInfo',
|
|
3798
|
+
];
|
|
3799
|
+
|
|
3800
|
+
const nextStepsLegalDefaultLPM = [
|
|
3801
|
+
'haveAttorney',
|
|
3802
|
+
'degreeOfInterest',
|
|
3803
|
+
'lawyerPaymentMethod',
|
|
3804
|
+
'commentsWithBankruptcy',
|
|
3805
|
+
'zipcode',
|
|
3806
|
+
'legalCrossSells',
|
|
3807
|
+
'firstAndLast',
|
|
3808
|
+
'contactInfo',
|
|
3809
|
+
];
|
|
3810
|
+
|
|
3811
|
+
const nextStepsLegalNoDOI = [
|
|
3812
|
+
'haveAttorney',
|
|
3813
|
+
'commentsWithBankruptcy',
|
|
3814
|
+
'zipcode',
|
|
3815
|
+
'legalCrossSells',
|
|
3816
|
+
'firstAndLast',
|
|
3817
|
+
'contactInfo',
|
|
3818
|
+
];
|
|
3819
|
+
|
|
3820
|
+
const nextStepsLegalNoHA = [
|
|
3821
|
+
'degreeOfInterest',
|
|
3822
|
+
'commentsWithBankruptcy',
|
|
3823
|
+
'zipcode',
|
|
3824
|
+
'legalCrossSells',
|
|
3825
|
+
'firstAndLast',
|
|
3826
|
+
'contactInfo',
|
|
3827
|
+
];
|
|
3828
|
+
|
|
3829
|
+
const nextStepsMapGeneralLegal = {
|
|
3830
|
+
'Type_Of_Legal_Problem': {
|
|
3831
|
+
'Adoption': [
|
|
3832
|
+
'maritalStatus',
|
|
3833
|
+
'haveChildren',
|
|
3834
|
+
...nextStepsLegalDefaultLPM
|
|
3835
|
+
],
|
|
3836
|
+
'Asbestos and Mesothelioma': [
|
|
3837
|
+
'incidentDate',
|
|
3838
|
+
'doctorTreatment',
|
|
3839
|
+
...nextStepsLegalDefault
|
|
3840
|
+
],
|
|
3841
|
+
'Auto and Car Accidents': [
|
|
3842
|
+
'incidentDate',
|
|
3843
|
+
'atFault',
|
|
3844
|
+
'primaryInjury',
|
|
3845
|
+
'doctorTreatment',
|
|
3846
|
+
'policeReportFiled',
|
|
3847
|
+
...nextStepsLegalNoDOI
|
|
3848
|
+
],
|
|
3849
|
+
'Bankruptcy': [
|
|
3850
|
+
'totalMonthlyIncome',
|
|
3851
|
+
'totalDebt',
|
|
3852
|
+
'ownRealEstate',
|
|
3853
|
+
'valueOfAssets',
|
|
3854
|
+
...nextStepsLegalDefault
|
|
3855
|
+
],
|
|
3856
|
+
'Business Lawyers': [
|
|
3857
|
+
'businessServices',
|
|
3858
|
+
'businessType',
|
|
3859
|
+
'numEmployeesOfBusiness',
|
|
3860
|
+
...nextStepsLegalDefault
|
|
3861
|
+
],
|
|
3862
|
+
'Child Custody': [
|
|
3863
|
+
'childRelationship',
|
|
3864
|
+
'childHome',
|
|
3865
|
+
'childPrimaryCaregiver',
|
|
3866
|
+
...nextStepsLegalDefaultLPM
|
|
3867
|
+
],
|
|
3868
|
+
'Child Support': [
|
|
3869
|
+
'childRelationship',
|
|
3870
|
+
'childHome',
|
|
3871
|
+
'childPrimaryCaregiver',
|
|
3872
|
+
...nextStepsLegalDefaultLPM
|
|
3873
|
+
],
|
|
3874
|
+
'Civil Rights and Discrimination': [
|
|
3875
|
+
'civilRightsType',
|
|
3876
|
+
...nextStepsLegalDefault
|
|
3877
|
+
],
|
|
3878
|
+
'Civil Lawsuit': [
|
|
3879
|
+
'civilDefense',
|
|
3880
|
+
'lawsuitOtherParty',
|
|
3881
|
+
...nextStepsLegalDefault
|
|
3882
|
+
],
|
|
3883
|
+
'File a Lawsuit': [
|
|
3884
|
+
'civilLawsuitTOLPDisplay',
|
|
3885
|
+
'lawsuitOtherParty',
|
|
3886
|
+
...nextStepsLegalDefault
|
|
3887
|
+
],
|
|
3888
|
+
'Defend a Lawsuit': [
|
|
3889
|
+
'lawsuitOtherParty',
|
|
3890
|
+
...nextStepsLegalDefault
|
|
3891
|
+
],
|
|
3892
|
+
'Consumer Lawyers': [
|
|
3893
|
+
'consumerLawyerType',
|
|
3894
|
+
'incidentDate',
|
|
3895
|
+
'lawsuitOtherParty',
|
|
3896
|
+
...nextStepsLegalDefault
|
|
3897
|
+
],
|
|
3898
|
+
'Criminal and Felony': [
|
|
3899
|
+
'criminalTOLPDisplay',
|
|
3900
|
+
'crimeCommittedDate',
|
|
3901
|
+
'roleInMatterCriminal',
|
|
3902
|
+
'pendingCharges',
|
|
3903
|
+
...nextStepsLegalDefaultLPM
|
|
3904
|
+
],
|
|
3905
|
+
'Debt and Collections': [
|
|
3906
|
+
'totalMonthlyIncome',
|
|
3907
|
+
'totalDebt',
|
|
3908
|
+
'ownRealEstate',
|
|
3909
|
+
'valueOfAssets',
|
|
3910
|
+
...nextStepsLegalDefault
|
|
3911
|
+
],
|
|
3912
|
+
'Divorce and Separation': [
|
|
3913
|
+
'maritalStatus',
|
|
3914
|
+
'haveChildren',
|
|
3915
|
+
...nextStepsLegalDefaultLPM
|
|
3916
|
+
],
|
|
3917
|
+
'DUI and DWI': [
|
|
3918
|
+
'incidentDate',
|
|
3919
|
+
'priorAlcoholOffenses',
|
|
3920
|
+
'typeOfAlcoholTest',
|
|
3921
|
+
'bloodContentAlcoholTest',
|
|
3922
|
+
'pendingCharges',
|
|
3923
|
+
...nextStepsLegalDefault
|
|
3924
|
+
],
|
|
3925
|
+
'Employment and Workplace': [
|
|
3926
|
+
'employmentAndWorkplaceTOLPDisplay',
|
|
3927
|
+
'numEmployeesOfBusiness',
|
|
3928
|
+
'employerType',
|
|
3929
|
+
'employeeAtCompany',
|
|
3930
|
+
...nextStepsLegalDefault
|
|
3931
|
+
],
|
|
3932
|
+
'Expungement': [
|
|
3933
|
+
'incidentDate',
|
|
3934
|
+
'criminalChargeType',
|
|
3935
|
+
...nextStepsLegalDefaultLPM
|
|
3936
|
+
],
|
|
3937
|
+
'Family Issues': [
|
|
3938
|
+
'maritalStatus',
|
|
3939
|
+
'haveChildren',
|
|
3940
|
+
...nextStepsLegalDefaultLPM
|
|
3941
|
+
],
|
|
3942
|
+
'Foreclosure': [
|
|
3943
|
+
'ownRealEstate',
|
|
3944
|
+
'typeOfProperty',
|
|
3945
|
+
'amountPaymentsPastDue',
|
|
3946
|
+
'loanAmount',
|
|
3947
|
+
'defaultNotice',
|
|
3948
|
+
...nextStepsLegalDefault
|
|
3949
|
+
],
|
|
3950
|
+
'Guardianship': [
|
|
3951
|
+
'maritalStatus',
|
|
3952
|
+
'haveChildren',
|
|
3953
|
+
...nextStepsLegalDefaultLPM
|
|
3954
|
+
],
|
|
3955
|
+
'Immigration and Visas': [
|
|
3956
|
+
'countryOfCitizenship',
|
|
3957
|
+
'immigrationLocation',
|
|
3958
|
+
'immigrationEntry',
|
|
3959
|
+
'immigrationType',
|
|
3960
|
+
'immigrationStatus',
|
|
3961
|
+
'immigrationDetails',
|
|
3962
|
+
...nextStepsLegalDefault
|
|
3963
|
+
],
|
|
3964
|
+
'Landlord and Tenant': [
|
|
3965
|
+
'landlordTenantIssue',
|
|
3966
|
+
'landlordTenantParty',
|
|
3967
|
+
...nextStepsLegalDefault
|
|
3968
|
+
],
|
|
3969
|
+
'Lemon Law': [
|
|
3970
|
+
'incidentDate',
|
|
3971
|
+
'lawsuitOtherParty',
|
|
3972
|
+
...nextStepsLegalDefault
|
|
3973
|
+
],
|
|
3974
|
+
'Long Term Disability': [
|
|
3975
|
+
'applicantOccupation',
|
|
3976
|
+
'applicantAge',
|
|
3977
|
+
'applicantLTDisabilityPolicy',
|
|
3978
|
+
'applicantDisabilityHowObtain',
|
|
3979
|
+
'applicantPreviouslyAppliedLtdBenefits',
|
|
3980
|
+
'applicantReceivedDisabilityBenefits',
|
|
3981
|
+
'applicantMonthlySalary',
|
|
3982
|
+
...nextStepsLegalNoDOI
|
|
3983
|
+
],
|
|
3984
|
+
'Medical Malpractice': [
|
|
3985
|
+
'incidentDate',
|
|
3986
|
+
'claimStatus',
|
|
3987
|
+
'doctorTreatment',
|
|
3988
|
+
'medicalMalpracticeInjuries',
|
|
3989
|
+
...nextStepsLegalDefault
|
|
3990
|
+
],
|
|
3991
|
+
'Patents and Intellectual Property': [
|
|
3992
|
+
'patentAssistanceType',
|
|
3993
|
+
'patentFor',
|
|
3994
|
+
...nextStepsLegalDefault
|
|
3995
|
+
],
|
|
3996
|
+
'Personal Injury': [
|
|
3997
|
+
'incidentDate',
|
|
3998
|
+
'claimStatus',
|
|
3999
|
+
'atFault',
|
|
4000
|
+
'primaryInjury',
|
|
4001
|
+
'doctorTreatment',
|
|
4002
|
+
...nextStepsLegalNoDOI
|
|
4003
|
+
],
|
|
4004
|
+
'Probate and Estates': [
|
|
4005
|
+
'valueOfAssets',
|
|
4006
|
+
'typeOfAssets',
|
|
4007
|
+
'roleInMatterProbate',
|
|
4008
|
+
'estateLegalServicesNeeded',
|
|
4009
|
+
...nextStepsLegalDefault
|
|
4010
|
+
],
|
|
4011
|
+
'Property Damage': [
|
|
4012
|
+
'realEstateArea',
|
|
4013
|
+
'wouldLikeLawyerTo',
|
|
4014
|
+
...nextStepsLegalDefault
|
|
4015
|
+
],
|
|
4016
|
+
'Real Estate': [
|
|
4017
|
+
'realEstateTOLPDisplay',
|
|
4018
|
+
'realEstateArea',
|
|
4019
|
+
'wouldLikeLawyerTo',
|
|
4020
|
+
...nextStepsLegalDefault
|
|
4021
|
+
],
|
|
4022
|
+
'Social Security Disability and Insurance': [
|
|
4023
|
+
'applicantAge',
|
|
4024
|
+
'disabilityConditionStopWork',
|
|
4025
|
+
'disabilityWorkHistory',
|
|
4026
|
+
'socialSecurityDisabilityReceivingBenefits',
|
|
4027
|
+
'doctorTreatment',
|
|
4028
|
+
...nextStepsLegalNoDOI
|
|
4029
|
+
],
|
|
4030
|
+
'Tax and IRS': [
|
|
4031
|
+
'totalDebt',
|
|
4032
|
+
'taxProblemDetails',
|
|
4033
|
+
'taxLevel',
|
|
4034
|
+
'taxIssueType',
|
|
4035
|
+
...nextStepsLegalDefault
|
|
4036
|
+
],
|
|
4037
|
+
'Traffic and Tickets': [
|
|
4038
|
+
'driversLicenseType',
|
|
4039
|
+
'trafficViolations',
|
|
4040
|
+
'haveCourtDate',
|
|
4041
|
+
...nextStepsLegalDefault
|
|
4042
|
+
],
|
|
4043
|
+
'Unemployment': [
|
|
4044
|
+
'numEmployeesOfBusiness',
|
|
4045
|
+
'employerType',
|
|
4046
|
+
...nextStepsLegalNoHA
|
|
4047
|
+
],
|
|
4048
|
+
'Victim of a Crime': [
|
|
4049
|
+
'crimeCommittedDate',
|
|
4050
|
+
'roleInMatterCriminal',
|
|
4051
|
+
'pendingCharges',
|
|
4052
|
+
...nextStepsLegalDefaultLPM
|
|
4053
|
+
],
|
|
4054
|
+
'Wills and Trusts': [
|
|
4055
|
+
'valueOfAssets',
|
|
4056
|
+
'typeOfAssets',
|
|
4057
|
+
'roleInMatterProbate',
|
|
4058
|
+
'estateLegalServicesNeeded',
|
|
4059
|
+
...nextStepsLegalDefault
|
|
4060
|
+
],
|
|
4061
|
+
'Workers Compensation': [
|
|
4062
|
+
'incidentDate',
|
|
4063
|
+
'claimStatus',
|
|
4064
|
+
'primaryInjury',
|
|
4065
|
+
'causeOfInjury',
|
|
4066
|
+
'doctorTreatment',
|
|
4067
|
+
...nextStepsLegalNoDOI
|
|
4068
|
+
],
|
|
4069
|
+
'Workplace Harassment': [
|
|
4070
|
+
'numEmployeesOfBusiness',
|
|
4071
|
+
'employerType',
|
|
4072
|
+
'employeeAtCompany',
|
|
4073
|
+
...nextStepsLegalDefault
|
|
4074
|
+
],
|
|
4075
|
+
'Workplace Discrimination': [
|
|
4076
|
+
'numEmployeesOfBusiness',
|
|
4077
|
+
'employerType',
|
|
4078
|
+
'employeeAtCompany',
|
|
4079
|
+
...nextStepsLegalDefault
|
|
4080
|
+
],
|
|
4081
|
+
'Wrongful Death': [
|
|
4082
|
+
'incidentDate',
|
|
4083
|
+
'relationshipToVictim',
|
|
4084
|
+
'criminalChargesFiled',
|
|
4085
|
+
'causeOfDeath',
|
|
4086
|
+
...nextStepsLegalNoDOI
|
|
4087
|
+
],
|
|
4088
|
+
'Wrongful Termination': [
|
|
4089
|
+
'numEmployeesOfBusiness',
|
|
4090
|
+
'employerType',
|
|
4091
|
+
...nextStepsLegalDefault
|
|
4092
|
+
],
|
|
4093
|
+
},
|
|
4094
|
+
'*': nextStepsLegalDefault
|
|
4095
|
+
};
|
|
4096
|
+
|
|
4097
|
+
// function filterMapByKey(obj, keyList) {
|
|
4098
|
+
// return Object.fromEntries(
|
|
4099
|
+
// Object.entries(obj).filter(([key]) => keyList.includes(key))
|
|
4100
|
+
// );
|
|
4101
|
+
// }
|
|
3992
4102
|
|
|
3993
|
-
function
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
updates
|
|
3999
|
-
)
|
|
4000
|
-
}
|
|
4103
|
+
// export function filteredNextStepsMapLegal(keyList) {
|
|
4104
|
+
// const res = { Type_Of_Legal_Problem: filterMapByKey(nextStepsMapGeneralLegal["Type_Of_Legal_Problem"], keyList) }
|
|
4105
|
+
// res["*"] = nextStepsMapGeneralLegal["*"]
|
|
4106
|
+
// return res
|
|
4107
|
+
// }
|
|
4001
4108
|
|
|
4002
|
-
|
|
4003
|
-
return sqstep(
|
|
4004
|
-
'taxLevel',
|
|
4005
|
-
taxLevelCenter(),
|
|
4006
|
-
'What level of tax issue?',
|
|
4007
|
-
updates
|
|
4008
|
-
)
|
|
4009
|
-
}
|
|
4109
|
+
const TOLPNextSteps = nextStepsMapGeneralLegal["Type_Of_Legal_Problem"];
|
|
4010
4110
|
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
'
|
|
4014
|
-
|
|
4015
|
-
'
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
}
|
|
4111
|
+
({
|
|
4112
|
+
'Type_Of_Legal_Problem': {
|
|
4113
|
+
'Child Custody': TOLPNextSteps["Child Custody"],
|
|
4114
|
+
'Child Support': TOLPNextSteps["Child Support"],
|
|
4115
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["*"],
|
|
4116
|
+
},
|
|
4117
|
+
'*': TOLPNextSteps["Family Issues"]
|
|
4118
|
+
});
|
|
4019
4119
|
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
'
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4120
|
+
({
|
|
4121
|
+
'Civil_Defense': {
|
|
4122
|
+
'Yes': TOLPNextSteps["Defend a Lawsuit"],
|
|
4123
|
+
'No': TOLPNextSteps["File a Lawsuit"],
|
|
4124
|
+
},
|
|
4125
|
+
'*': [
|
|
4126
|
+
'lawsuitOtherParty',
|
|
4127
|
+
...nextStepsLegalDefault
|
|
4128
|
+
]
|
|
4129
|
+
});
|
|
4028
4130
|
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
'
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4131
|
+
({
|
|
4132
|
+
'Type_Of_Legal_Problem': {
|
|
4133
|
+
'Defend a Lawsuit': TOLPNextSteps["Defend a Lawsuit"],
|
|
4134
|
+
'File a Lawsuit': TOLPNextSteps["File a Lawsuit"],
|
|
4135
|
+
},
|
|
4136
|
+
'*': [
|
|
4137
|
+
'lawsuitOtherParty',
|
|
4138
|
+
...nextStepsLegalDefault
|
|
4139
|
+
]
|
|
4140
|
+
});
|
|
4037
4141
|
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
'
|
|
4041
|
-
|
|
4042
|
-
'
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4142
|
+
const nextStepsMapCivilTOLPDisplay = {
|
|
4143
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4144
|
+
'Automobile Accident': TOLPNextSteps["Auto and Car Accidents"],
|
|
4145
|
+
'Contract Disputes': TOLPNextSteps["Business Lawyers"],
|
|
4146
|
+
'Dog Bite': TOLPNextSteps["Personal Injury"],
|
|
4147
|
+
'Employment and Workplace': TOLPNextSteps["Employment and Workplace"],
|
|
4148
|
+
'Fraud': TOLPNextSteps["Consumer Lawyers"],
|
|
4149
|
+
'Medical Malpractice': TOLPNextSteps["Medical Malpractice"],
|
|
4150
|
+
'Personal Injury': TOLPNextSteps["Personal Injury"],
|
|
4151
|
+
'Property Damage': TOLPNextSteps["Property Damage"],
|
|
4152
|
+
'Real Estate': TOLPNextSteps["Real Estate"],
|
|
4153
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["*"],
|
|
4154
|
+
},
|
|
4155
|
+
'*': [
|
|
4156
|
+
'lawsuitOtherParty',
|
|
4157
|
+
...nextStepsLegalDefault
|
|
4158
|
+
]
|
|
4159
|
+
};
|
|
4046
4160
|
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
'
|
|
4050
|
-
|
|
4051
|
-
'
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4161
|
+
const nextStepsMapCriminalTOLPDisplay = {
|
|
4162
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4163
|
+
'Victim of a Crime': TOLPNextSteps["Victim of a Crime"],
|
|
4164
|
+
'DUI and DWI': TOLPNextSteps["DUI and DWI"],
|
|
4165
|
+
'Expungement': TOLPNextSteps["Expungement"],
|
|
4166
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["*"],
|
|
4167
|
+
},
|
|
4168
|
+
'*': [
|
|
4169
|
+
'crimeCommittedDate',
|
|
4170
|
+
'roleInMatterCriminal',
|
|
4171
|
+
'pendingCharges',
|
|
4172
|
+
...nextStepsLegalDefaultLPM
|
|
4173
|
+
]
|
|
4174
|
+
};
|
|
4055
4175
|
|
|
4056
|
-
const
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4176
|
+
const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
|
|
4177
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4178
|
+
'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
|
|
4179
|
+
'Workers Compensation': TOLPNextSteps["Workers Compensation"],
|
|
4180
|
+
'Personal Injury': TOLPNextSteps["Personal Injury"],
|
|
4181
|
+
'Unemployment': TOLPNextSteps["Unemployment"],
|
|
4060
4182
|
},
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
children: 'Back',
|
|
4067
|
-
style: {
|
|
4068
|
-
if: '$activeStep === $firstStep()',
|
|
4069
|
-
then: 'visibility: hidden;'
|
|
4070
|
-
}
|
|
4071
|
-
},
|
|
4072
|
-
{
|
|
4073
|
-
$formkit: 'button',
|
|
4074
|
-
name: 'next_button',
|
|
4075
|
-
onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
|
|
4076
|
-
children: {
|
|
4077
|
-
if: '$activeStep === $firstStep()',
|
|
4078
|
-
then: 'Start',
|
|
4079
|
-
else: 'Next'
|
|
4080
|
-
},
|
|
4081
|
-
outerClass: {
|
|
4082
|
-
if: '$activeStep === $lastStep()',
|
|
4083
|
-
then: 't-hidden',
|
|
4084
|
-
else: ''
|
|
4085
|
-
},
|
|
4086
|
-
style: {
|
|
4087
|
-
if: '$activeStep === $lastStep()',
|
|
4088
|
-
then: 'display: none;'
|
|
4089
|
-
}
|
|
4090
|
-
},
|
|
4091
|
-
{
|
|
4092
|
-
$formkit: 'submit',
|
|
4093
|
-
name: 'submit_button',
|
|
4094
|
-
label: 'Submit',
|
|
4095
|
-
if: '$activeStep === $lastStep()',
|
|
4096
|
-
style: {
|
|
4097
|
-
if: '$activeStep !== $lastStep()',
|
|
4098
|
-
then: 'display: none;'
|
|
4099
|
-
}
|
|
4100
|
-
}
|
|
4183
|
+
'*': [
|
|
4184
|
+
'numEmployeesOfBusiness',
|
|
4185
|
+
'employerType',
|
|
4186
|
+
'employeeAtCompany',
|
|
4187
|
+
...nextStepsLegalDefault
|
|
4101
4188
|
]
|
|
4102
|
-
}
|
|
4189
|
+
};
|
|
4103
4190
|
|
|
4104
|
-
const
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
},
|
|
4116
|
-
{
|
|
4117
|
-
$el: 'pre',
|
|
4118
|
-
children: ['activeStep: ', '$activeStep'],
|
|
4119
|
-
attrs: {
|
|
4120
|
-
class: 't-text-xs',
|
|
4121
|
-
style: 'overflow: scroll'
|
|
4122
|
-
}
|
|
4123
|
-
},
|
|
4124
|
-
{
|
|
4125
|
-
$el: 'pre',
|
|
4126
|
-
children: ['stepHistory: ', '$stepHistory'],
|
|
4127
|
-
attrs: {
|
|
4128
|
-
class: 't-text-xs',
|
|
4129
|
-
style: 'overflow: scroll'
|
|
4130
|
-
}
|
|
4131
|
-
},
|
|
4132
|
-
{
|
|
4133
|
-
$el: 'pre',
|
|
4134
|
-
children: ['stepQueue: ', '$stepQueue'],
|
|
4135
|
-
attrs: {
|
|
4136
|
-
class: 't-text-xs',
|
|
4137
|
-
style: 'overflow: scroll'
|
|
4138
|
-
}
|
|
4139
|
-
},
|
|
4140
|
-
{
|
|
4141
|
-
$el: 'pre',
|
|
4142
|
-
children: ['steps: ', '$stepKeys()'],
|
|
4143
|
-
attrs: {
|
|
4144
|
-
class: 't-text-xs',
|
|
4145
|
-
style: 'overflow: scroll'
|
|
4146
|
-
}
|
|
4147
|
-
}
|
|
4191
|
+
const nextStepsMapRealEstateTOLPDisplay = {
|
|
4192
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4193
|
+
'Foreclosure': TOLPNextSteps["Foreclosure"],
|
|
4194
|
+
'Landlord and Tenant': TOLPNextSteps["Landlord and Tenant"],
|
|
4195
|
+
'Wills, Trusts, and Estates': TOLPNextSteps["Wills and Trusts"],
|
|
4196
|
+
'Property Damage': TOLPNextSteps['Property Damage'],
|
|
4197
|
+
},
|
|
4198
|
+
'*': [
|
|
4199
|
+
'realEstateArea',
|
|
4200
|
+
'wouldLikeLawyerTo',
|
|
4201
|
+
...nextStepsLegalDefault
|
|
4148
4202
|
]
|
|
4149
|
-
}
|
|
4203
|
+
};
|
|
4150
4204
|
|
|
4151
4205
|
const meta = defaultMetaProps();
|
|
4152
4206
|
|
|
@@ -4197,6 +4251,7 @@ meta.data.dynamicSchema = [
|
|
|
4197
4251
|
driversLicenseType(),
|
|
4198
4252
|
estateLegalServicesNeeded(),
|
|
4199
4253
|
employerType(),
|
|
4254
|
+
employeeAtCompany(),
|
|
4200
4255
|
employmentAndWorkplaceTOLPDisplay({
|
|
4201
4256
|
nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay
|
|
4202
4257
|
}),
|
|
@@ -4250,12 +4305,10 @@ meta.data.dynamicSchema = [
|
|
|
4250
4305
|
veteransDisabilityRelationship(),
|
|
4251
4306
|
wouldLikeLawyerTo(),
|
|
4252
4307
|
zipcode(),
|
|
4253
|
-
|
|
4254
|
-
nextOnEnter: false,
|
|
4308
|
+
commentsWithBankruptcy({
|
|
4255
4309
|
label: null,
|
|
4256
4310
|
headline: 'Please briefly describe your situation:',
|
|
4257
4311
|
headlineClass: '!t-text-dark',
|
|
4258
|
-
inputClass: '!t-h-32'
|
|
4259
4312
|
}),
|
|
4260
4313
|
legalCrossSells({
|
|
4261
4314
|
headlineClass: '!t-text-dark'
|
|
@@ -4303,23 +4356,13 @@ const schema = [
|
|
|
4303
4356
|
nextStepMap: nextStepsMapGeneralLegal,
|
|
4304
4357
|
headlineClass: 't-text-lg',
|
|
4305
4358
|
input: {
|
|
4306
|
-
// TODO: move to common settings for this input?
|
|
4307
4359
|
placeholder: 'Select a Category',
|
|
4308
4360
|
innerClass: '!t-max-w-[275px] md:!t-max-w-xl'
|
|
4309
4361
|
}
|
|
4310
4362
|
}),
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
props: {
|
|
4315
|
-
schema: '$meta.dynamicSchema',
|
|
4316
|
-
data: '$buildData($meta)'
|
|
4317
|
-
}
|
|
4318
|
-
},
|
|
4319
|
-
contactInfoV2({
|
|
4320
|
-
nextOnEnter: false
|
|
4321
|
-
}),
|
|
4322
|
-
formNavigationV2(),
|
|
4363
|
+
dynamicSchemaNode,
|
|
4364
|
+
contactInfo(),
|
|
4365
|
+
formNavigation(),
|
|
4323
4366
|
formDetails()
|
|
4324
4367
|
]
|
|
4325
4368
|
}
|