bhl-forms 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bhl-forms.es.js +5244 -4973
- package/dist/bhl-forms.iife.js +9 -9
- package/dist/bhl-forms.umd.js +9 -9
- package/package.json +2 -2
- package/dist/bhl-forms.modern.es.js +0 -16865
- package/dist/bhl-forms.modern.iife.js +0 -21
- package/dist/bhl-forms.modern.umd.js +0 -21
- package/dist/forms/accidentsAndInjuries.es.js +0 -1279
- package/dist/forms/accidentsAndInjuries.iife.js +0 -1
- package/dist/forms/accidentsAndInjuries.json +0 -1
- package/dist/forms/appraisals.es.js +0 -345
- package/dist/forms/appraisals.iife.js +0 -1
- package/dist/forms/appraisals.json +0 -1
- package/dist/forms/childAndFamily.es.js +0 -1678
- package/dist/forms/childAndFamily.iife.js +0 -1
- package/dist/forms/childAndFamily.json +0 -1
- package/dist/forms/childAndFamilySingle.es.js +0 -1809
- package/dist/forms/childAndFamilySingle.iife.js +0 -1
- package/dist/forms/childAndFamilySingle.json +0 -1
- package/dist/forms/civilLawsuit.es.js +0 -2149
- package/dist/forms/civilLawsuit.iife.js +0 -1
- package/dist/forms/civilLawsuit.json +0 -1
- package/dist/forms/coins.es.js +0 -345
- package/dist/forms/coins.iife.js +0 -1
- package/dist/forms/coins.json +0 -1
- package/dist/forms/contracts.es.js +0 -994
- package/dist/forms/contracts.iife.js +0 -1
- package/dist/forms/contracts.json +0 -1
- package/dist/forms/criminal.es.js +0 -3247
- package/dist/forms/criminal.iife.js +0 -1
- package/dist/forms/criminal.json +0 -1
- package/dist/forms/employmentAndWorkplace.es.js +0 -1380
- package/dist/forms/employmentAndWorkplace.iife.js +0 -1
- package/dist/forms/employmentAndWorkplace.json +0 -1
- package/dist/forms/generalLegal.es.js +0 -3386
- package/dist/forms/generalLegal.iife.js +0 -1
- package/dist/forms/generalLegal.json +0 -1
- package/dist/forms/generalLegalPopUnder.es.js +0 -3388
- package/dist/forms/generalLegalPopUnder.iife.js +0 -1
- package/dist/forms/generalLegalPopUnder.json +0 -1
- package/dist/forms/generalLegalPopUnderTF.es.js +0 -3087
- package/dist/forms/generalLegalPopUnderTF.iife.js +0 -1
- package/dist/forms/generalLegalPopUnderTF.json +0 -1
- package/dist/forms/generalLegalSingle.es.js +0 -4305
- package/dist/forms/generalLegalSingle.iife.js +0 -1
- package/dist/forms/generalLegalSingle.json +0 -1
- package/dist/forms/generalLegalThankYou.es.js +0 -3067
- package/dist/forms/generalLegalThankYou.iife.js +0 -1
- package/dist/forms/generalLegalThankYou.json +0 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +0 -1030
- package/dist/forms/harassmentAndDiscrimination.iife.js +0 -1
- package/dist/forms/harassmentAndDiscrimination.json +0 -1
- package/dist/forms/malpractice.es.js +0 -1253
- package/dist/forms/malpractice.iife.js +0 -1
- package/dist/forms/malpractice.json +0 -1
- package/dist/forms/mechanics.es.js +0 -385
- package/dist/forms/mechanics.iife.js +0 -1
- package/dist/forms/mechanics.json +0 -1
- package/dist/forms/realEstate.es.js +0 -2950
- package/dist/forms/realEstate.iife.js +0 -1
- package/dist/forms/realEstate.json +0 -1
- package/dist/forms/repossession.es.js +0 -1261
- package/dist/forms/repossession.iife.js +0 -1
- package/dist/forms/repossession.json +0 -1
- package/dist/forms/ssdi.es.js +0 -1073
- package/dist/forms/ssdi.iife.js +0 -1
- package/dist/forms/ssdi.json +0 -1
- package/dist/forms/testForm.es.js +0 -729
- package/dist/forms/testForm.iife.js +0 -1
- package/dist/forms/testForm.json +0 -1
- package/dist/forms/testRedirects.es.js +0 -541
- package/dist/forms/testRedirects.iife.js +0 -1
- package/dist/forms/testRedirects.json +0 -1
- package/dist/forms/vets.es.js +0 -348
- package/dist/forms/vets.iife.js +0 -1
- package/dist/forms/vets.json +0 -1
- package/dist/forms/willsAndTrusts.es.js +0 -1214
- package/dist/forms/willsAndTrusts.iife.js +0 -1
- package/dist/forms/willsAndTrusts.json +0 -1
|
@@ -1,1380 +0,0 @@
|
|
|
1
|
-
function merge() {
|
|
2
|
-
return Object.assign({}, ...arguments)
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
function LegalRedirectUrl() {
|
|
6
|
-
return 'https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}'
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
var TCPA_LANGUAGE = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
|
|
10
|
-
|
|
11
|
-
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
12
|
-
const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
|
|
13
|
-
const DEFAULT_FINAL_HEADLINE = 'Submit Your Case';
|
|
14
|
-
const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
15
|
-
const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
16
|
-
const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
17
|
-
|
|
18
|
-
const formPropDefaults = {
|
|
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
|
-
};
|
|
38
|
-
|
|
39
|
-
function formProps(updates) {
|
|
40
|
-
const props = merge(
|
|
41
|
-
formPropDefaults,
|
|
42
|
-
updates
|
|
43
|
-
);
|
|
44
|
-
if (props.formId && !props.name) {
|
|
45
|
-
props.name = props.formId;
|
|
46
|
-
}
|
|
47
|
-
return props
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const metaDefaults = {
|
|
51
|
-
tcpaLanguage: TCPA_LANGUAGE
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
function metaProps(updates) {
|
|
55
|
-
const data = merge(
|
|
56
|
-
metaDefaults,
|
|
57
|
-
updates
|
|
58
|
-
);
|
|
59
|
-
return {
|
|
60
|
-
type: 'meta',
|
|
61
|
-
data
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function defaultMetaProps() {
|
|
66
|
-
return metaProps({
|
|
67
|
-
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
68
|
-
commentsPlaceholders: TOLPCommentsPlaceholders,
|
|
69
|
-
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
|
|
70
|
-
finalHeadlines: TOLPFinalHeadlines,
|
|
71
|
-
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
|
|
72
|
-
finalSubHeadlines: TOLPFinalSubHeadlines,
|
|
73
|
-
// Added everywhere for now
|
|
74
|
-
// trustedFormTOLPs: trustedFormTOLPs
|
|
75
|
-
})
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const formAnchorDefaults = {
|
|
79
|
-
$el: 'div',
|
|
80
|
-
children: [
|
|
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'
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
function formAnchor(updates) {
|
|
96
|
-
return merge(
|
|
97
|
-
formAnchorDefaults,
|
|
98
|
-
updates
|
|
99
|
-
)
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function headlineDefaults(updates = {}) {
|
|
103
|
-
return {
|
|
104
|
-
$el: 'h1',
|
|
105
|
-
attrs: {
|
|
106
|
-
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 || '')
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function headline(updates = {}) {
|
|
112
|
-
return merge(
|
|
113
|
-
headlineDefaults(updates),
|
|
114
|
-
updates
|
|
115
|
-
)
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function defaultHeadline() {
|
|
119
|
-
return headline({
|
|
120
|
-
children: '$urlParam("hl", "Start Here For a Free Consultation")',
|
|
121
|
-
if: '$activeStep === $firstStep()'
|
|
122
|
-
})
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
function subHeadlineDefaults(updates = {}) {
|
|
126
|
-
return {
|
|
127
|
-
$el: 'h3',
|
|
128
|
-
attrs: {
|
|
129
|
-
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 || '')
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function subHeadline(updates = {}) {
|
|
135
|
-
return merge(
|
|
136
|
-
subHeadlineDefaults(updates),
|
|
137
|
-
updates
|
|
138
|
-
)
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function defaultSubHeadline() {
|
|
142
|
-
return subHeadline({
|
|
143
|
-
children: '$urlParam("shl", "Our Service is Fast and Free!")',
|
|
144
|
-
if: '$activeStep === $firstStep()'
|
|
145
|
-
})
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
const secureIconDefault = {
|
|
149
|
-
$el: 'div',
|
|
150
|
-
if: '$activeStep === $lastStep()',
|
|
151
|
-
attrs: {
|
|
152
|
-
class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
|
|
153
|
-
},
|
|
154
|
-
children: [
|
|
155
|
-
{
|
|
156
|
-
$el: 'img',
|
|
157
|
-
attrs: {
|
|
158
|
-
loading: 'lazy',
|
|
159
|
-
alt: '',
|
|
160
|
-
style: {
|
|
161
|
-
border: 0
|
|
162
|
-
},
|
|
163
|
-
width: '25',
|
|
164
|
-
height: '25',
|
|
165
|
-
src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
$el: 'span',
|
|
170
|
-
children: 'Secure & Encrypted',
|
|
171
|
-
attrs: {
|
|
172
|
-
class: 't-pl-2 t-pt-1 t-font-medium'
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
function secureIcon(updates) {
|
|
180
|
-
return merge(
|
|
181
|
-
secureIconDefault,
|
|
182
|
-
updates
|
|
183
|
-
)
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
const hiddenInputsBase = [
|
|
187
|
-
{
|
|
188
|
-
$formkit: 'hidden',
|
|
189
|
-
name: "gclid",
|
|
190
|
-
value: null
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
$formkit: 'hidden',
|
|
194
|
-
name: "campaignid",
|
|
195
|
-
value: null
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
$formkit: 'hidden',
|
|
199
|
-
name: "s",
|
|
200
|
-
value: null
|
|
201
|
-
}
|
|
202
|
-
];
|
|
203
|
-
|
|
204
|
-
const hiddenInputsLegal = [
|
|
205
|
-
{
|
|
206
|
-
$formkit: 'hidden',
|
|
207
|
-
name: "vertical",
|
|
208
|
-
value: "Legal"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
$formkit: 'hidden',
|
|
212
|
-
name: "TCPA_Language",
|
|
213
|
-
value: "$meta.tcpaLanguage"
|
|
214
|
-
},
|
|
215
|
-
...hiddenInputsBase
|
|
216
|
-
];
|
|
217
|
-
|
|
218
|
-
const legalRedirectMapDefaults = {
|
|
219
|
-
'*': LegalRedirectUrl()
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
function legalRedirectMap(updates) {
|
|
224
|
-
return merge(
|
|
225
|
-
legalRedirectMapDefaults,
|
|
226
|
-
updates
|
|
227
|
-
)
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
const legalAllValueOverrideMap = {
|
|
231
|
-
'Civil_Defense': {
|
|
232
|
-
'Yes': {
|
|
233
|
-
'Type_Of_Legal_Problem': 'Defend a Lawsuit'
|
|
234
|
-
},
|
|
235
|
-
'No': {
|
|
236
|
-
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
'Type_Of_Legal_Problem_Display': {
|
|
240
|
-
// Accidents and PI
|
|
241
|
-
'Auto Accident': {
|
|
242
|
-
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
243
|
-
},
|
|
244
|
-
'Dog Bite': {
|
|
245
|
-
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
246
|
-
},
|
|
247
|
-
'Slip and Fall': {
|
|
248
|
-
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
249
|
-
},
|
|
250
|
-
'Workplace Injury': {
|
|
251
|
-
'Type_Of_Legal_Problem': 'Workers Compensation'
|
|
252
|
-
},
|
|
253
|
-
'Trucking Accident': {
|
|
254
|
-
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
255
|
-
},
|
|
256
|
-
'Motorcycle Accident': {
|
|
257
|
-
'Type_Of_Legal_Problem': 'Auto and Car Accidents',
|
|
258
|
-
},
|
|
259
|
-
'Other Accidents or Injuries': {
|
|
260
|
-
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
261
|
-
},
|
|
262
|
-
// Civil
|
|
263
|
-
'Automobile Accident': {
|
|
264
|
-
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
265
|
-
},
|
|
266
|
-
'Contract Disputes': {
|
|
267
|
-
'Type_Of_Legal_Problem': 'Business Lawyers'
|
|
268
|
-
},
|
|
269
|
-
'Defamation and Slander': {
|
|
270
|
-
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
271
|
-
},
|
|
272
|
-
'Dog Bite': {
|
|
273
|
-
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
274
|
-
},
|
|
275
|
-
'Employment and Workplace': {
|
|
276
|
-
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
277
|
-
},
|
|
278
|
-
'Fraud': {
|
|
279
|
-
'Type_Of_Legal_Problem': 'Consumer Lawyers'
|
|
280
|
-
},
|
|
281
|
-
'Medical Malpractice': {
|
|
282
|
-
'Type_Of_Legal_Problem': 'Medical Malpractice'
|
|
283
|
-
},
|
|
284
|
-
'Personal Injury': {
|
|
285
|
-
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
286
|
-
},
|
|
287
|
-
'Property Damage': {
|
|
288
|
-
'Type_Of_Legal_Problem': 'Property Damage'
|
|
289
|
-
},
|
|
290
|
-
'Small Claims': {
|
|
291
|
-
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
292
|
-
},
|
|
293
|
-
'Real Estate': {
|
|
294
|
-
'Type_Of_Legal_Problem': 'Real Estate'
|
|
295
|
-
},
|
|
296
|
-
'Other (describe on next page)': {
|
|
297
|
-
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
298
|
-
},
|
|
299
|
-
// Contracts
|
|
300
|
-
'Contract Creation': {
|
|
301
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
302
|
-
'Business_Services': 'Contracts'
|
|
303
|
-
},
|
|
304
|
-
'Contract Enforcement': {
|
|
305
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
306
|
-
'Business_Services': 'Contracts'
|
|
307
|
-
},
|
|
308
|
-
'Contract Cancellation': {
|
|
309
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
310
|
-
'Business_Services': 'Contracts'
|
|
311
|
-
},
|
|
312
|
-
'Contract Fraud': {
|
|
313
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
314
|
-
'Business_Services': 'Contracts'
|
|
315
|
-
},
|
|
316
|
-
'Breach of Contract': {
|
|
317
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
318
|
-
'Business_Services': 'Contracts'
|
|
319
|
-
},
|
|
320
|
-
'Other Contract Issues': {
|
|
321
|
-
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
322
|
-
'Business_Services': 'Contracts'
|
|
323
|
-
},
|
|
324
|
-
// Criminal
|
|
325
|
-
'Criminal Defense': {
|
|
326
|
-
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
327
|
-
},
|
|
328
|
-
'Victim of a Crime': {
|
|
329
|
-
'Type_Of_Legal_Problem': 'Victim of a Crime'
|
|
330
|
-
},
|
|
331
|
-
'DUI and DWI': {
|
|
332
|
-
'Type_Of_Legal_Problem': 'DUI and DWI'
|
|
333
|
-
},
|
|
334
|
-
'Expungement': {
|
|
335
|
-
'Type_Of_Legal_Problem': 'Expungement'
|
|
336
|
-
},
|
|
337
|
-
'Harassment': {
|
|
338
|
-
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
339
|
-
},
|
|
340
|
-
'Not Sure or Other': {
|
|
341
|
-
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
342
|
-
},
|
|
343
|
-
// Employment and Workplace
|
|
344
|
-
'Workplace Harassment': {
|
|
345
|
-
'Type_Of_Legal_Problem': 'Workplace Harassment'
|
|
346
|
-
},
|
|
347
|
-
'Workplace Discrimination': {
|
|
348
|
-
'Type_Of_Legal_Problem': 'Workplace Discrimination'
|
|
349
|
-
},
|
|
350
|
-
'Wrongful Termination': {
|
|
351
|
-
'Type_Of_Legal_Problem': 'Wrongful Termination'
|
|
352
|
-
},
|
|
353
|
-
'Payment Disputes': {
|
|
354
|
-
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
355
|
-
},
|
|
356
|
-
'Workers Compensation': {
|
|
357
|
-
'Type_Of_Legal_Problem': 'Workers Compensation'
|
|
358
|
-
},
|
|
359
|
-
'Unemployment': {
|
|
360
|
-
'Type_Of_Legal_Problem': 'Unemployment'
|
|
361
|
-
},
|
|
362
|
-
'Other Workplace Issues': {
|
|
363
|
-
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
364
|
-
},
|
|
365
|
-
// Malpractice
|
|
366
|
-
'Attorney Malpractice': {
|
|
367
|
-
'Type_Of_Legal_Problem': 'Civil Lawsuit'
|
|
368
|
-
},
|
|
369
|
-
'Other Malpractice Issues': {
|
|
370
|
-
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
371
|
-
},
|
|
372
|
-
// Repossession
|
|
373
|
-
'Vehicle Repossession': {
|
|
374
|
-
'Type_Of_Legal_Problem': 'Bankruptcy'
|
|
375
|
-
},
|
|
376
|
-
'Property Repossession': {
|
|
377
|
-
'Type_Of_Legal_Problem': 'Bankruptcy'
|
|
378
|
-
},
|
|
379
|
-
'Other Repossession Issues': {
|
|
380
|
-
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
381
|
-
},
|
|
382
|
-
// Real Estate
|
|
383
|
-
'Contracts and Agreements': {
|
|
384
|
-
'Type_Of_Legal_Problem': 'Real Estate'
|
|
385
|
-
},
|
|
386
|
-
'Deeds, Liens, and Titles': {
|
|
387
|
-
'Type_Of_Legal_Problem': 'Real Estate'
|
|
388
|
-
},
|
|
389
|
-
'Foreclosure': {
|
|
390
|
-
'Type_Of_Legal_Problem': 'Foreclosure'
|
|
391
|
-
},
|
|
392
|
-
'Insurance': {
|
|
393
|
-
'Type_Of_Legal_Problem': 'Insurance'
|
|
394
|
-
},
|
|
395
|
-
'Landlord and Tenant': {
|
|
396
|
-
'Type_Of_Legal_Problem': 'Landlord and Tenant',
|
|
397
|
-
},
|
|
398
|
-
'Loans and Mortgages': {
|
|
399
|
-
'Type_Of_Legal_Problem': 'Real Estate',
|
|
400
|
-
},
|
|
401
|
-
'Wills, Trusts, and Estates': {
|
|
402
|
-
'Type_Of_Legal_Problem': 'Wills and Trusts'
|
|
403
|
-
},
|
|
404
|
-
'Property Damage': {
|
|
405
|
-
'Type_Of_Legal_Problem': 'Property Damage'
|
|
406
|
-
},
|
|
407
|
-
'Other Real Estate Issues': {
|
|
408
|
-
'Type_Of_Legal_Problem': 'Real Estate'
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
const TOLPCommentsPlaceholders = {
|
|
414
|
-
'Adoption': 'Example: "I need help with adoption forms"',
|
|
415
|
-
'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
|
|
416
|
-
'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"',
|
|
417
|
-
'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
|
|
418
|
-
'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
|
|
419
|
-
'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
|
|
420
|
-
'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
|
|
421
|
-
'Child Custody': 'Example: "Need help getting custody"',
|
|
422
|
-
'Child Support': 'Example: "Issues with child support payments"',
|
|
423
|
-
'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
|
|
424
|
-
'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
|
|
425
|
-
'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
|
|
426
|
-
'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
|
|
427
|
-
'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
|
|
428
|
-
'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
|
|
429
|
-
'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
|
|
430
|
-
'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
|
|
431
|
-
'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
|
|
432
|
-
'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
|
|
433
|
-
'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
|
|
434
|
-
'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
|
|
435
|
-
'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
|
|
436
|
-
'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
|
|
437
|
-
'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
|
|
438
|
-
'Guardianship': 'Example: "I need help with guardianship documents"',
|
|
439
|
-
'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
|
|
440
|
-
'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
|
|
441
|
-
'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
|
|
442
|
-
'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
|
|
443
|
-
'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
|
|
444
|
-
'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
|
|
445
|
-
'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
|
|
446
|
-
'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
|
|
447
|
-
'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
|
|
448
|
-
'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
|
|
449
|
-
'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
|
|
450
|
-
'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"',
|
|
451
|
-
'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
|
|
452
|
-
'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
|
|
453
|
-
'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
|
|
454
|
-
'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
|
|
455
|
-
'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
|
|
456
|
-
'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
|
|
457
|
-
'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
|
|
458
|
-
'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
|
|
459
|
-
'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"',
|
|
460
|
-
'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
|
|
461
|
-
'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
|
|
462
|
-
'Unemployment': 'Example: "I need help filing for unemployment benefits"',
|
|
463
|
-
'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
|
|
464
|
-
'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
|
|
465
|
-
'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
|
|
466
|
-
'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
|
|
467
|
-
'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
|
|
468
|
-
'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
const TOLPFinalHeadlines = {
|
|
472
|
-
// 'Adoption': '',
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
const TOLPFinalSubHeadlines = {
|
|
476
|
-
'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
|
|
477
|
-
// 'Asbestos and Mesothelioma': '',
|
|
478
|
-
'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
|
|
479
|
-
'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
|
|
480
|
-
// 'Birth Certificate and Name Change': '',
|
|
481
|
-
// 'Business Lawyers': '',
|
|
482
|
-
// 'Child Custody and Support': '',
|
|
483
|
-
// 'Civil Rights and Discrimination': '',
|
|
484
|
-
// 'Civil Lawsuit': '',
|
|
485
|
-
// 'Consumer Lawyers': '',
|
|
486
|
-
'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
|
|
487
|
-
// 'Criminal and Felony': '',
|
|
488
|
-
// 'Debt and Collections': '',
|
|
489
|
-
'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
|
|
490
|
-
'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
|
|
491
|
-
'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
|
|
492
|
-
// 'Employment and Workplace': '',
|
|
493
|
-
// 'Expungement': '',
|
|
494
|
-
// 'Family Issues': '',
|
|
495
|
-
'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
|
|
496
|
-
'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
|
|
497
|
-
// 'Harassment and Discrimination': '',
|
|
498
|
-
// 'Identity Theft': '',
|
|
499
|
-
'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
|
|
500
|
-
// 'Insurance': '',
|
|
501
|
-
'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
|
|
502
|
-
// 'Lemon Law': '',
|
|
503
|
-
'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
|
|
504
|
-
'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
|
|
505
|
-
'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
|
|
506
|
-
'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
|
|
507
|
-
// 'Power of Attorney': '',
|
|
508
|
-
'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
|
|
509
|
-
// 'Product Liability': '',
|
|
510
|
-
// 'Property Damage': '',
|
|
511
|
-
'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
|
|
512
|
-
'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
|
|
513
|
-
'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
|
|
514
|
-
// 'Traffic and Tickets': '',
|
|
515
|
-
'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
|
|
516
|
-
// 'Victim of a Crime': '',
|
|
517
|
-
// 'Wills and Trusts': '',
|
|
518
|
-
'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
|
|
519
|
-
// 'Wrongful Death': '',
|
|
520
|
-
// 'Wrongful Termination': '',
|
|
521
|
-
// 'Not Sure or Other': ''
|
|
522
|
-
// 'Sexual Harassment': '',
|
|
523
|
-
// 'Workplace Harassment': '',
|
|
524
|
-
// 'Non-Workplace Harassment': '',
|
|
525
|
-
// 'Workplace Discrimination': '',
|
|
526
|
-
// 'Non-Workplace Discrimination': '',
|
|
527
|
-
};
|
|
528
|
-
|
|
529
|
-
// ------ Common Base Settings
|
|
530
|
-
|
|
531
|
-
const checkbox = (updates) => {
|
|
532
|
-
if (updates.name && !updates.id) {
|
|
533
|
-
updates.id = updates.name;
|
|
534
|
-
}
|
|
535
|
-
return merge({
|
|
536
|
-
$formkit: 'checkbox',
|
|
537
|
-
validation: 'required',
|
|
538
|
-
validationMessages: {
|
|
539
|
-
required: 'Field is required'
|
|
540
|
-
}
|
|
541
|
-
}, updates)
|
|
542
|
-
};
|
|
543
|
-
|
|
544
|
-
const sbsCheckbox = (updates) => {
|
|
545
|
-
updates.legendClass = 'legend-left required';
|
|
546
|
-
updates.fieldsetClass = '$reset side-by-side';
|
|
547
|
-
updates.optionsClass = 't-pl-1';
|
|
548
|
-
updates.innerClass = 't-flex t-items-center';
|
|
549
|
-
updates.wrapperClass = 't-mb-3';
|
|
550
|
-
return checkbox(updates)
|
|
551
|
-
};
|
|
552
|
-
|
|
553
|
-
const radio = (updates) => {
|
|
554
|
-
if (updates.name && !updates.id) {
|
|
555
|
-
updates.id = updates.name;
|
|
556
|
-
}
|
|
557
|
-
return merge({
|
|
558
|
-
$formkit: 'radio',
|
|
559
|
-
validation: 'required',
|
|
560
|
-
validationMessages: {
|
|
561
|
-
required: 'Field is required'
|
|
562
|
-
},
|
|
563
|
-
optionsClass: 't-pt-3 t-pl-1',
|
|
564
|
-
legendClass: 'required'
|
|
565
|
-
}, updates)
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
const col2Radio = (updates) => {
|
|
569
|
-
updates.legendClass = 'required';
|
|
570
|
-
updates.fieldsetClass = '$reset';
|
|
571
|
-
updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
572
|
-
updates.innerClass = 't-items-start';
|
|
573
|
-
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
574
|
-
return radio(updates)
|
|
575
|
-
};
|
|
576
|
-
|
|
577
|
-
const sbs2ColRadio = (updates) => {
|
|
578
|
-
updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
|
|
579
|
-
updates.fieldsetClass = '$reset side-by-side-flex';
|
|
580
|
-
updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
|
|
581
|
-
updates.innerClass = 't-flex t-items-start';
|
|
582
|
-
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
583
|
-
return radio(updates)
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
const sbs2ItemRadio = (updates) => {
|
|
587
|
-
updates.legendClass = 'legend-left t-pb-1 required';
|
|
588
|
-
updates.fieldsetClass = '$reset side-by-side t-items-center';
|
|
589
|
-
updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
|
|
590
|
-
updates.innerClass = 't-flex t-items-center';
|
|
591
|
-
updates.optionClass = 't-pr-1';
|
|
592
|
-
return radio(updates)
|
|
593
|
-
};
|
|
594
|
-
|
|
595
|
-
const sbsYesNoRadio = (updates) => {
|
|
596
|
-
updates.options = ['Yes', 'No'];
|
|
597
|
-
return sbs2ItemRadio(updates)
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
const select = (updates) => {
|
|
601
|
-
if (updates.name && !updates.id) {
|
|
602
|
-
updates.id = updates.name;
|
|
603
|
-
}
|
|
604
|
-
return merge({
|
|
605
|
-
$formkit: 'select',
|
|
606
|
-
placeholder: "Please Select",
|
|
607
|
-
validation: 'required',
|
|
608
|
-
validationMessages: {
|
|
609
|
-
required: 'Field is required'
|
|
610
|
-
},
|
|
611
|
-
inputClass: 't-bg-white',
|
|
612
|
-
labelClass: 'required'
|
|
613
|
-
}, updates)
|
|
614
|
-
};
|
|
615
|
-
|
|
616
|
-
const sbsSelect = (updates) => {
|
|
617
|
-
updates.labelClass = 'required';
|
|
618
|
-
updates.wrapperClass = 'side-by-side t-items-center';
|
|
619
|
-
updates.innerClass = 'select-height-content';
|
|
620
|
-
updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
|
|
621
|
-
return select(updates)
|
|
622
|
-
};
|
|
623
|
-
|
|
624
|
-
const text = (updates) => {
|
|
625
|
-
if (updates.name && !updates.id) {
|
|
626
|
-
updates.id = updates.name;
|
|
627
|
-
}
|
|
628
|
-
return merge({
|
|
629
|
-
$formkit: 'text',
|
|
630
|
-
validation: 'required',
|
|
631
|
-
validationMessages: {
|
|
632
|
-
required: 'Field is required'
|
|
633
|
-
},
|
|
634
|
-
labelClass: 'required'
|
|
635
|
-
}, updates)
|
|
636
|
-
};
|
|
637
|
-
|
|
638
|
-
const sbsText = (updates) => {
|
|
639
|
-
updates.wrapperClass = 'side-by-side t-items-center';
|
|
640
|
-
return text(updates)
|
|
641
|
-
};
|
|
642
|
-
|
|
643
|
-
const textArea = (updates) => {
|
|
644
|
-
if (updates.name && !updates.id) {
|
|
645
|
-
updates.id = updates.name;
|
|
646
|
-
}
|
|
647
|
-
return merge({
|
|
648
|
-
$formkit: 'textarea',
|
|
649
|
-
rows: 5,
|
|
650
|
-
maxlength: 500,
|
|
651
|
-
validation: 'required',
|
|
652
|
-
validationMessages: {
|
|
653
|
-
required: 'Field is required'
|
|
654
|
-
},
|
|
655
|
-
innerClass: 't-max-w-xl',
|
|
656
|
-
labelClass: 'required'
|
|
657
|
-
}, updates)
|
|
658
|
-
};
|
|
659
|
-
|
|
660
|
-
const date = (updates) => {
|
|
661
|
-
if (updates.name && !updates.id) {
|
|
662
|
-
updates.id = updates.name;
|
|
663
|
-
}
|
|
664
|
-
return merge({
|
|
665
|
-
$formkit: 'DatePicker',
|
|
666
|
-
validation: 'required',
|
|
667
|
-
validationMessages: {
|
|
668
|
-
required: 'Field is required'
|
|
669
|
-
},
|
|
670
|
-
labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
|
|
671
|
-
innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
|
|
672
|
-
}, updates)
|
|
673
|
-
};
|
|
674
|
-
|
|
675
|
-
const sbsDate = (updates) => {
|
|
676
|
-
updates.wrapperClass = 'side-by-side t-items-center';
|
|
677
|
-
return date(updates)
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
const atFault = (scope) => sbsYesNoRadio({
|
|
681
|
-
name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
|
|
682
|
-
label: 'Were You at Fault?'
|
|
683
|
-
});
|
|
684
|
-
|
|
685
|
-
const bankruptcyCrossSell = () => sbsCheckbox({
|
|
686
|
-
label: "I'd also like a consultation for bankruptcy or debt elimination (optional)",
|
|
687
|
-
help: "Note: you will be contacted separately by a bankruptcy/debt expert",
|
|
688
|
-
name: 'CrossSell_Bankruptcy',
|
|
689
|
-
id: 'CrossSell_Bankruptcy',
|
|
690
|
-
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")',
|
|
691
|
-
validation: null,
|
|
692
|
-
helpClass: "!t-text-sm"
|
|
693
|
-
});
|
|
694
|
-
|
|
695
|
-
const causeOfInjury = (scope) => sbsSelect({
|
|
696
|
-
name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
|
|
697
|
-
label: 'Cause of Injury:',
|
|
698
|
-
options: [
|
|
699
|
-
"Traumatic Physical Injury (Accident)",
|
|
700
|
-
"Repeated Trauma Injury",
|
|
701
|
-
"Mental Injury",
|
|
702
|
-
"Occupational Disease",
|
|
703
|
-
"Not Sure"
|
|
704
|
-
]
|
|
705
|
-
});
|
|
706
|
-
|
|
707
|
-
const claimStatus = (scope) => sbsSelect({
|
|
708
|
-
name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
|
|
709
|
-
label: "Status of Claim:",
|
|
710
|
-
options: [
|
|
711
|
-
"No action taken yet",
|
|
712
|
-
"Demand for compensation made",
|
|
713
|
-
"Lawsuit filed",
|
|
714
|
-
"Other"
|
|
715
|
-
]
|
|
716
|
-
});
|
|
717
|
-
|
|
718
|
-
const comments = (updates, scope) => textArea(
|
|
719
|
-
merge({
|
|
720
|
-
name: scope ? scope + ':' + 'Comments' : 'Comments',
|
|
721
|
-
label: 'Please briefly describe your situation in a few words:',
|
|
722
|
-
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
|
|
723
|
-
}, updates)
|
|
724
|
-
);
|
|
725
|
-
|
|
726
|
-
const degreeOfInterest = (scope, help) => sbsSelect({
|
|
727
|
-
name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
|
|
728
|
-
id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
|
|
729
|
-
label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
|
|
730
|
-
help: help,
|
|
731
|
-
options: [
|
|
732
|
-
'Definitely',
|
|
733
|
-
'Probably',
|
|
734
|
-
'Maybe',
|
|
735
|
-
"Absolutely Can't Afford"
|
|
736
|
-
]
|
|
737
|
-
});
|
|
738
|
-
|
|
739
|
-
const degreeOfInterestHelp = (scope) => degreeOfInterest(scope, 'No payment necessary to speak with lawyers.');
|
|
740
|
-
|
|
741
|
-
const doctorTreatment = (scope) => sbsYesNoRadio({
|
|
742
|
-
name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
|
|
743
|
-
label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
|
|
744
|
-
});
|
|
745
|
-
|
|
746
|
-
const email = () => sbsText({
|
|
747
|
-
$formkit: 'email',
|
|
748
|
-
name: 'Email',
|
|
749
|
-
label: 'Email Address:',
|
|
750
|
-
placeholder: 'email@domain.com',
|
|
751
|
-
autocomplete: 'email',
|
|
752
|
-
'data-tf-sensitive': 'false',
|
|
753
|
-
validation: 'required|email',
|
|
754
|
-
validationMessages: {
|
|
755
|
-
required: 'Email is required',
|
|
756
|
-
email: 'Invalid Email'
|
|
757
|
-
}
|
|
758
|
-
});
|
|
759
|
-
|
|
760
|
-
const employerType = () => sbsSelect({
|
|
761
|
-
label: 'The Employer Is a:',
|
|
762
|
-
name: 'Employer_Type',
|
|
763
|
-
options: [
|
|
764
|
-
"Sole proprietorship (mom and pop)",
|
|
765
|
-
"Partnership",
|
|
766
|
-
"Franchise",
|
|
767
|
-
"Privately held company",
|
|
768
|
-
"Public corporation",
|
|
769
|
-
"Government Agency",
|
|
770
|
-
"Don't know"
|
|
771
|
-
]
|
|
772
|
-
});
|
|
773
|
-
|
|
774
|
-
const employmentAndWorkplaceTOLPDisplay = (updates) => col2Radio(merge({
|
|
775
|
-
name: 'Type_Of_Legal_Problem_Display',
|
|
776
|
-
if: '$get(Type_Of_Legal_Problem).value == "Employment and Workplace"',
|
|
777
|
-
label: 'Select The Workplace Issue:',
|
|
778
|
-
options: [
|
|
779
|
-
'Workplace Harassment',
|
|
780
|
-
'Workplace Discrimination',
|
|
781
|
-
'Wrongful Termination',
|
|
782
|
-
'Payment Disputes',
|
|
783
|
-
'Workers Compensation',
|
|
784
|
-
'Personal Injury',
|
|
785
|
-
'Unemployment',
|
|
786
|
-
'Other Workplace Issues'
|
|
787
|
-
]
|
|
788
|
-
}, updates));
|
|
789
|
-
|
|
790
|
-
const firstName = () => sbsText({
|
|
791
|
-
$formkit: 'text',
|
|
792
|
-
label: 'First Name:',
|
|
793
|
-
placeholder: 'First',
|
|
794
|
-
name: 'First_Name',
|
|
795
|
-
autocomplete: "given-name",
|
|
796
|
-
validationMessages: {
|
|
797
|
-
required: 'First Name is required'
|
|
798
|
-
}
|
|
799
|
-
});
|
|
800
|
-
|
|
801
|
-
const haveAttorney = (scope) => sbsYesNoRadio({
|
|
802
|
-
name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
|
|
803
|
-
label: 'Already Working with An Attorney?'
|
|
804
|
-
});
|
|
805
|
-
|
|
806
|
-
const incidentDate = (scope) => sbsDate({
|
|
807
|
-
name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
|
|
808
|
-
label: 'Date of Incident:',
|
|
809
|
-
});
|
|
810
|
-
|
|
811
|
-
const lastName = () => sbsText({
|
|
812
|
-
$formkit: 'text',
|
|
813
|
-
label: 'Last Name:',
|
|
814
|
-
placeholder: 'Last',
|
|
815
|
-
name: 'Last_Name',
|
|
816
|
-
autocomplete: "family-name",
|
|
817
|
-
validationMessages: {
|
|
818
|
-
required: 'Last Name is required'
|
|
819
|
-
}
|
|
820
|
-
});
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
const numEmployeesOfBusiness = () => sbsSelect({
|
|
824
|
-
label: 'Total Employees of Business? (estimated)',
|
|
825
|
-
name: 'Num_Employees_Of_Business',
|
|
826
|
-
options: [
|
|
827
|
-
"1-5",
|
|
828
|
-
"6-20",
|
|
829
|
-
"21-50",
|
|
830
|
-
"51-100",
|
|
831
|
-
"101-500",
|
|
832
|
-
"501-1,000",
|
|
833
|
-
"More than 1,000"
|
|
834
|
-
]
|
|
835
|
-
});
|
|
836
|
-
|
|
837
|
-
const phone = () => sbsText({
|
|
838
|
-
$formkit: 'tel',
|
|
839
|
-
name: 'Primary_Phone',
|
|
840
|
-
label: 'Phone Number:',
|
|
841
|
-
placeholder: '###-###-####',
|
|
842
|
-
maxlength: 12,
|
|
843
|
-
help: '10-digit phone number, hyphens optional',
|
|
844
|
-
autocomplete: 'tel-national',
|
|
845
|
-
'data-tf-sensitive': 'false',
|
|
846
|
-
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
|
|
847
|
-
validationMessages: {
|
|
848
|
-
required: 'Field is required',
|
|
849
|
-
matches: 'Invalid Phone Format, use ###-###-####',
|
|
850
|
-
valid_phone: 'Invalid Phone Number'
|
|
851
|
-
},
|
|
852
|
-
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
853
|
-
});
|
|
854
|
-
|
|
855
|
-
const primaryInjury = (scope) => sbs2ColRadio({
|
|
856
|
-
name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
|
|
857
|
-
label: 'Primary Injury:',
|
|
858
|
-
options: [
|
|
859
|
-
"Anxiety",
|
|
860
|
-
"Back or Neck Pain",
|
|
861
|
-
"Broken Bones",
|
|
862
|
-
"Cuts and Bruises",
|
|
863
|
-
"Headaches",
|
|
864
|
-
"Memory Loss",
|
|
865
|
-
"Loss of Limb",
|
|
866
|
-
"Other (describe on next page)"
|
|
867
|
-
]
|
|
868
|
-
});
|
|
869
|
-
|
|
870
|
-
const TCPAConsent = () => ({
|
|
871
|
-
$formkit: 'checkbox',
|
|
872
|
-
label: '$meta.tcpaLanguage',
|
|
873
|
-
name: 'TCPA_Opt_In',
|
|
874
|
-
'data-tf-sensitive': 'false',
|
|
875
|
-
validation: 'required|accepted',
|
|
876
|
-
validationMessages: {
|
|
877
|
-
required: 'Consent is required',
|
|
878
|
-
accepted: 'Consent is required'
|
|
879
|
-
},
|
|
880
|
-
classes: {
|
|
881
|
-
label: "t-text-xs t-text-slate-500 t-font-normal"
|
|
882
|
-
}
|
|
883
|
-
});
|
|
884
|
-
|
|
885
|
-
const zipcode = () => sbsText({
|
|
886
|
-
label: 'Zip Code:',
|
|
887
|
-
placeholder: '#####',
|
|
888
|
-
name: 'Zip',
|
|
889
|
-
maxlength: 5,
|
|
890
|
-
inputmode: "numeric",
|
|
891
|
-
autocomplete: 'postal-code',
|
|
892
|
-
validation: 'required|matches:/^[0-9]{5}$/',
|
|
893
|
-
validationMessages: {
|
|
894
|
-
required: 'Zip Code is required',
|
|
895
|
-
matches: 'Invalid Zip Code'
|
|
896
|
-
}
|
|
897
|
-
});
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
// ------ Question Groups
|
|
901
|
-
|
|
902
|
-
// NOTE: name must be unique within a form!
|
|
903
|
-
const group = (name, updates) => {
|
|
904
|
-
return merge({
|
|
905
|
-
$cmp: 'FormKit',
|
|
906
|
-
props: {
|
|
907
|
-
type: 'group',
|
|
908
|
-
key: name,
|
|
909
|
-
id: name,
|
|
910
|
-
name: name
|
|
911
|
-
}
|
|
912
|
-
}, updates)
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
const defaultQuestions = () => [
|
|
916
|
-
haveAttorney(),
|
|
917
|
-
degreeOfInterestHelp()
|
|
918
|
-
];
|
|
919
|
-
|
|
920
|
-
const EmploymentAndWorkplaceQuestions = () => group(
|
|
921
|
-
'EmploymentAndWorkplaceQuestions',
|
|
922
|
-
{
|
|
923
|
-
if: '$get(Type_Of_Legal_Problem).value == "Employment and Workplace"',
|
|
924
|
-
children: [
|
|
925
|
-
haveAttorney(),
|
|
926
|
-
numEmployeesOfBusiness(),
|
|
927
|
-
employerType(),
|
|
928
|
-
degreeOfInterestHelp()
|
|
929
|
-
]
|
|
930
|
-
}
|
|
931
|
-
);
|
|
932
|
-
|
|
933
|
-
const WorkplaceHarassmentQuestions = () => group(
|
|
934
|
-
'WorkplaceHarassmentQuestions',
|
|
935
|
-
{
|
|
936
|
-
if: '$get(Type_Of_Legal_Problem).value == "Workplace Harassment"',
|
|
937
|
-
children: defaultQuestions()
|
|
938
|
-
}
|
|
939
|
-
);
|
|
940
|
-
|
|
941
|
-
const WorkplaceDiscriminationQuestions = () => group(
|
|
942
|
-
'WorkplaceDiscriminationQuestions',
|
|
943
|
-
{
|
|
944
|
-
if: '$get(Type_Of_Legal_Problem).value == "Workplace Discrimination"',
|
|
945
|
-
children: defaultQuestions()
|
|
946
|
-
}
|
|
947
|
-
);
|
|
948
|
-
|
|
949
|
-
const PersonalInjuryQuestions = (condition, scope) => group(
|
|
950
|
-
'PersonalInjuryQuestions',
|
|
951
|
-
{
|
|
952
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
|
|
953
|
-
children: [
|
|
954
|
-
haveAttorney(scope),
|
|
955
|
-
incidentDate(scope),
|
|
956
|
-
claimStatus(scope),
|
|
957
|
-
atFault(scope),
|
|
958
|
-
primaryInjury(scope),
|
|
959
|
-
doctorTreatment(scope)
|
|
960
|
-
]
|
|
961
|
-
}
|
|
962
|
-
);
|
|
963
|
-
|
|
964
|
-
const UnemploymentQuestions = () => group(
|
|
965
|
-
'UnemploymentQuestions',
|
|
966
|
-
{
|
|
967
|
-
if: '$get(Type_Of_Legal_Problem).value == "Unemployment"',
|
|
968
|
-
children: [
|
|
969
|
-
numEmployeesOfBusiness(),
|
|
970
|
-
employerType(),
|
|
971
|
-
degreeOfInterestHelp()
|
|
972
|
-
]
|
|
973
|
-
}
|
|
974
|
-
);
|
|
975
|
-
|
|
976
|
-
const WorkersCompensationQuestions = (condition, scope) => group(
|
|
977
|
-
'WorkersCompensationQuestions',
|
|
978
|
-
{
|
|
979
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
|
|
980
|
-
children: [
|
|
981
|
-
haveAttorney(scope),
|
|
982
|
-
incidentDate(scope),
|
|
983
|
-
claimStatus(scope),
|
|
984
|
-
primaryInjury(scope),
|
|
985
|
-
causeOfInjury(scope),
|
|
986
|
-
doctorTreatment(scope)
|
|
987
|
-
]
|
|
988
|
-
}
|
|
989
|
-
);
|
|
990
|
-
|
|
991
|
-
const WrongfulTerminationQuestions = () => group(
|
|
992
|
-
'WrongfulTerminationQuestions',
|
|
993
|
-
{
|
|
994
|
-
if: '$get(Type_Of_Legal_Problem).value == "Wrongful Termination"',
|
|
995
|
-
children: [
|
|
996
|
-
haveAttorney(),
|
|
997
|
-
numEmployeesOfBusiness(),
|
|
998
|
-
employerType(),
|
|
999
|
-
degreeOfInterestHelp()
|
|
1000
|
-
]
|
|
1001
|
-
}
|
|
1002
|
-
);
|
|
1003
|
-
|
|
1004
|
-
const NotSureOrOtherQuestions = () => group(
|
|
1005
|
-
'NotSureOrOtherQuestions',
|
|
1006
|
-
{
|
|
1007
|
-
if: '$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',
|
|
1008
|
-
children: [
|
|
1009
|
-
haveAttorney(),
|
|
1010
|
-
degreeOfInterestHelp()
|
|
1011
|
-
]
|
|
1012
|
-
}
|
|
1013
|
-
);
|
|
1014
|
-
|
|
1015
|
-
const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
1016
|
-
const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
1017
|
-
|
|
1018
|
-
const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
|
|
1019
|
-
|
|
1020
|
-
const findLastInput = (n) => {
|
|
1021
|
-
if (isInput(n)) {
|
|
1022
|
-
return n
|
|
1023
|
-
}
|
|
1024
|
-
for (var i = n.children.length - 1; i >= 0; i--) {
|
|
1025
|
-
if (typeof n.children === 'string') {
|
|
1026
|
-
continue
|
|
1027
|
-
}
|
|
1028
|
-
const child = n.children[i];
|
|
1029
|
-
if (isInput(child)) {
|
|
1030
|
-
return child
|
|
1031
|
-
}
|
|
1032
|
-
const res = findLastInput(child);
|
|
1033
|
-
if (res) {
|
|
1034
|
-
return res
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
return null
|
|
1038
|
-
};
|
|
1039
|
-
|
|
1040
|
-
function questionsStepHeadline(updates) {
|
|
1041
|
-
return {
|
|
1042
|
-
$el: 'h3',
|
|
1043
|
-
children: updates.headline || 'Tell Us About Your Situation',
|
|
1044
|
-
attrs: {
|
|
1045
|
-
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1'
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
function commentsStepHeadline(updates) {
|
|
1053
|
-
return {
|
|
1054
|
-
$el: 'h3',
|
|
1055
|
-
children: updates.headline || 'Additional Case Details',
|
|
1056
|
-
attrs: {
|
|
1057
|
-
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
function firstAndLastStepHeadline(updates) {
|
|
1063
|
-
return {
|
|
1064
|
-
$el: 'h3',
|
|
1065
|
-
children: updates.headline || 'Please Provide a Contact Name',
|
|
1066
|
-
attrs: {
|
|
1067
|
-
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
function contactStepHeadline(updates) {
|
|
1073
|
-
return {
|
|
1074
|
-
$el: 'h3',
|
|
1075
|
-
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
|
|
1076
|
-
attrs: {
|
|
1077
|
-
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
function contactStepSubHeadline(updates) {
|
|
1083
|
-
return {
|
|
1084
|
-
$el: 'h5',
|
|
1085
|
-
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
|
|
1086
|
-
attrs: {
|
|
1087
|
-
class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3' + ' ' + (updates.subheadlineClass || '')
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
const TRUSTED_FORM_JS = `(function() {
|
|
1093
|
-
if (window.xxTrustedFormLoaded) {
|
|
1094
|
-
return
|
|
1095
|
-
}
|
|
1096
|
-
var vid = '';
|
|
1097
|
-
if (typeof window.zar !== 'undefined') {
|
|
1098
|
-
vid = window.zar.getVID();
|
|
1099
|
-
}
|
|
1100
|
-
window.xxTrustedFormLoaded = true;
|
|
1101
|
-
var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
|
|
1102
|
-
var tf = document.createElement('script');
|
|
1103
|
-
tf.type = 'text/javascript'; tf.async = true;
|
|
1104
|
-
tf.src = ("https:" == document.location.protocol ? 'https' : 'http') + "://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=" + vid + "&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=" + sandbox + "&l=" + new Date().getTime() + Math.random();
|
|
1105
|
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
|
|
1106
|
-
})();`;
|
|
1107
|
-
|
|
1108
|
-
function trustedFormScript() {
|
|
1109
|
-
return {
|
|
1110
|
-
$el: 'script',
|
|
1111
|
-
if: '$activeStep === $lastStep()',
|
|
1112
|
-
children: TRUSTED_FORM_JS
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
const stepDefaults = (step, stepKey) => ({
|
|
1117
|
-
$el: 'section',
|
|
1118
|
-
if: '$stepEnabled("' + step + '")',
|
|
1119
|
-
attrs: {
|
|
1120
|
-
hidden: '$activeStep !== "' + step + '"',
|
|
1121
|
-
key: stepKey ? stepKey : step
|
|
1122
|
-
}
|
|
1123
|
-
});
|
|
1124
|
-
|
|
1125
|
-
function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined) {
|
|
1126
|
-
if (typeof nextOnEnter === 'undefined') {
|
|
1127
|
-
nextOnEnter = true;
|
|
1128
|
-
}
|
|
1129
|
-
if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
|
|
1130
|
-
const lastInput = findLastInput(inputs[inputs.length - 1]);
|
|
1131
|
-
if (lastInput && nextOnEnter === true) {
|
|
1132
|
-
lastInput.onKeypress = NEXT_ON_ENTER;
|
|
1133
|
-
}
|
|
1134
|
-
if (lastInput && nextOnInput === true) {
|
|
1135
|
-
lastInput.onInput = NEXT_ON_INPUT;
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
return merge(
|
|
1140
|
-
stepDefaults(name, stepKey),
|
|
1141
|
-
{
|
|
1142
|
-
children: [
|
|
1143
|
-
{
|
|
1144
|
-
$formkit: 'group',
|
|
1145
|
-
id: name,
|
|
1146
|
-
name: name,
|
|
1147
|
-
nextStepMap: nextStepMap,
|
|
1148
|
-
children: inputs
|
|
1149
|
-
}
|
|
1150
|
-
]
|
|
1151
|
-
}
|
|
1152
|
-
)
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
function commentsWithBankruptcyV2(updates = {}) {
|
|
1156
|
-
return step(
|
|
1157
|
-
'commentsWithBankruptcy',
|
|
1158
|
-
[
|
|
1159
|
-
commentsStepHeadline(updates),
|
|
1160
|
-
comments({
|
|
1161
|
-
label: updates.label === undefined ? DEFAULT_COMMENTS_LABEL : updates.label,
|
|
1162
|
-
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
1163
|
-
inputClass: updates.inputClass === undefined ? '!t-h-40' : updates.inputClass,
|
|
1164
|
-
}),
|
|
1165
|
-
bankruptcyCrossSell(),
|
|
1166
|
-
{
|
|
1167
|
-
$el: 'div',
|
|
1168
|
-
if: '$get(CrossSell_Bankruptcy).value == true',
|
|
1169
|
-
children: [
|
|
1170
|
-
comments({
|
|
1171
|
-
label: 'Bankruptcy or debt details:',
|
|
1172
|
-
placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
|
|
1173
|
-
inputClass: '!t-h-16'
|
|
1174
|
-
}, 'CrossSell:Bankruptcy')
|
|
1175
|
-
],
|
|
1176
|
-
}
|
|
1177
|
-
],
|
|
1178
|
-
updates.nextOnEnter
|
|
1179
|
-
)
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
function contactInfoV2(updates = {}) {
|
|
1183
|
-
return step(
|
|
1184
|
-
'contactInfo',
|
|
1185
|
-
[
|
|
1186
|
-
contactStepHeadline(updates),
|
|
1187
|
-
contactStepSubHeadline(updates),
|
|
1188
|
-
// Added TF everywhere
|
|
1189
|
-
trustedFormScript(),
|
|
1190
|
-
email(),
|
|
1191
|
-
phone(),
|
|
1192
|
-
TCPAConsent(),
|
|
1193
|
-
secureIcon()
|
|
1194
|
-
],
|
|
1195
|
-
updates.nextOnEnter
|
|
1196
|
-
)
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
function firstAndLastV2(updates = {}) {
|
|
1200
|
-
return step(
|
|
1201
|
-
'firstAndLast',
|
|
1202
|
-
[
|
|
1203
|
-
firstAndLastStepHeadline(updates),
|
|
1204
|
-
firstName(),
|
|
1205
|
-
lastName()
|
|
1206
|
-
],
|
|
1207
|
-
updates.nextOnEnter
|
|
1208
|
-
)
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
function employmentAndWorkplaceTOLPAndZip(updates = {}) {
|
|
1212
|
-
return step(
|
|
1213
|
-
'employmentAndWorkplaceTOLPAndZip',
|
|
1214
|
-
[
|
|
1215
|
-
{
|
|
1216
|
-
$formkit: 'hidden',
|
|
1217
|
-
name: "Type_Of_Legal_Problem",
|
|
1218
|
-
id: "Type_Of_Legal_Problem",
|
|
1219
|
-
value: "Employment and Workplace"
|
|
1220
|
-
},
|
|
1221
|
-
employmentAndWorkplaceTOLPDisplay({
|
|
1222
|
-
if: 'true'
|
|
1223
|
-
}),
|
|
1224
|
-
zipcode()
|
|
1225
|
-
],
|
|
1226
|
-
updates.nextOnEnter
|
|
1227
|
-
)
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
function employmentAndWorkplaceTOLPQuestions(updates = {}) {
|
|
1231
|
-
return step(
|
|
1232
|
-
'TOLPQuestions',
|
|
1233
|
-
[
|
|
1234
|
-
questionsStepHeadline(updates),
|
|
1235
|
-
WorkplaceHarassmentQuestions(),
|
|
1236
|
-
WorkplaceDiscriminationQuestions(),
|
|
1237
|
-
WrongfulTerminationQuestions(),
|
|
1238
|
-
WorkersCompensationQuestions(),
|
|
1239
|
-
PersonalInjuryQuestions(),
|
|
1240
|
-
UnemploymentQuestions(),
|
|
1241
|
-
EmploymentAndWorkplaceQuestions(),
|
|
1242
|
-
NotSureOrOtherQuestions()
|
|
1243
|
-
],
|
|
1244
|
-
updates.nextOnEnter
|
|
1245
|
-
)
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
const formNavigationV2 = () => ({
|
|
1249
|
-
$el: 'div',
|
|
1250
|
-
attrs: {
|
|
1251
|
-
class: 'step-nav'
|
|
1252
|
-
},
|
|
1253
|
-
children: [
|
|
1254
|
-
{
|
|
1255
|
-
$formkit: 'button',
|
|
1256
|
-
name: 'back_button',
|
|
1257
|
-
onClick: '$setPreviousStep($prevStepFunc($get(form)))',
|
|
1258
|
-
children: 'Back',
|
|
1259
|
-
style: {
|
|
1260
|
-
if: '$activeStep === $firstStep()',
|
|
1261
|
-
then: 'visibility: hidden;'
|
|
1262
|
-
}
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
1265
|
-
$formkit: 'button',
|
|
1266
|
-
name: 'next_button',
|
|
1267
|
-
onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
|
|
1268
|
-
children: {
|
|
1269
|
-
if: '$activeStep === $firstStep()',
|
|
1270
|
-
then: 'Start',
|
|
1271
|
-
else: 'Next'
|
|
1272
|
-
},
|
|
1273
|
-
outerClass: {
|
|
1274
|
-
if: '$activeStep === $lastStep()',
|
|
1275
|
-
then: 't-hidden',
|
|
1276
|
-
else: ''
|
|
1277
|
-
},
|
|
1278
|
-
style: {
|
|
1279
|
-
if: '$activeStep === $lastStep()',
|
|
1280
|
-
then: 'display: none;'
|
|
1281
|
-
}
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
$formkit: 'submit',
|
|
1285
|
-
name: 'submit_button',
|
|
1286
|
-
label: 'Submit',
|
|
1287
|
-
if: '$activeStep === $lastStep()',
|
|
1288
|
-
style: {
|
|
1289
|
-
if: '$activeStep !== $lastStep()',
|
|
1290
|
-
then: 'display: none;'
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
]
|
|
1294
|
-
});
|
|
1295
|
-
|
|
1296
|
-
const formDetails = () => ({
|
|
1297
|
-
$el: 'pre',
|
|
1298
|
-
if: '$urlParam("fdbg", "") == 1',
|
|
1299
|
-
children: [
|
|
1300
|
-
{
|
|
1301
|
-
$el: 'pre',
|
|
1302
|
-
children: '$stringify( $get(form).value )',
|
|
1303
|
-
attrs: {
|
|
1304
|
-
class: 't-text-xs',
|
|
1305
|
-
style: 'overflow: scroll'
|
|
1306
|
-
}
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
$el: 'pre',
|
|
1310
|
-
children: ['activeStep: ', '$activeStep'],
|
|
1311
|
-
attrs: {
|
|
1312
|
-
class: 't-text-xs',
|
|
1313
|
-
style: 'overflow: scroll'
|
|
1314
|
-
}
|
|
1315
|
-
},
|
|
1316
|
-
{
|
|
1317
|
-
$el: 'pre',
|
|
1318
|
-
children: ['stepHistory: ', '$stepHistory'],
|
|
1319
|
-
attrs: {
|
|
1320
|
-
class: 't-text-xs',
|
|
1321
|
-
style: 'overflow: scroll'
|
|
1322
|
-
}
|
|
1323
|
-
},
|
|
1324
|
-
{
|
|
1325
|
-
$el: 'pre',
|
|
1326
|
-
children: ['stepQueue: ', '$stepQueue'],
|
|
1327
|
-
attrs: {
|
|
1328
|
-
class: 't-text-xs',
|
|
1329
|
-
style: 'overflow: scroll'
|
|
1330
|
-
}
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
$el: 'pre',
|
|
1334
|
-
children: ['steps: ', '$stepKeys()'],
|
|
1335
|
-
attrs: {
|
|
1336
|
-
class: 't-text-xs',
|
|
1337
|
-
style: 'overflow: scroll'
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
]
|
|
1341
|
-
});
|
|
1342
|
-
|
|
1343
|
-
const schema = [
|
|
1344
|
-
defaultMetaProps(),
|
|
1345
|
-
formAnchor(),
|
|
1346
|
-
{
|
|
1347
|
-
$cmp: 'FormKit',
|
|
1348
|
-
props: formProps({
|
|
1349
|
-
formId: 'employmentAndWorkplace',
|
|
1350
|
-
redirectMap: legalRedirectMap(),
|
|
1351
|
-
valueOverrideMap: legalAllValueOverrideMap
|
|
1352
|
-
}),
|
|
1353
|
-
children: [
|
|
1354
|
-
defaultHeadline(),
|
|
1355
|
-
defaultSubHeadline(),
|
|
1356
|
-
...hiddenInputsLegal,
|
|
1357
|
-
{
|
|
1358
|
-
$el: 'div',
|
|
1359
|
-
attrs: {
|
|
1360
|
-
class: 'form-body'
|
|
1361
|
-
},
|
|
1362
|
-
children: [
|
|
1363
|
-
employmentAndWorkplaceTOLPAndZip(),
|
|
1364
|
-
employmentAndWorkplaceTOLPQuestions(),
|
|
1365
|
-
commentsWithBankruptcyV2({
|
|
1366
|
-
nextOnEnter: false
|
|
1367
|
-
}),
|
|
1368
|
-
firstAndLastV2(),
|
|
1369
|
-
contactInfoV2({
|
|
1370
|
-
nextOnEnter: false
|
|
1371
|
-
}),
|
|
1372
|
-
formNavigationV2(),
|
|
1373
|
-
formDetails()
|
|
1374
|
-
]
|
|
1375
|
-
}
|
|
1376
|
-
]
|
|
1377
|
-
}
|
|
1378
|
-
];
|
|
1379
|
-
|
|
1380
|
-
export { schema as default };
|