bhl-forms 0.0.80 → 0.0.82
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 +169 -90
- package/dist/bhl-forms.iife.js +6 -6
- package/dist/bhl-forms.modern.es.js +204 -126
- package/dist/bhl-forms.modern.iife.js +9 -9
- package/dist/bhl-forms.modern.umd.js +9 -9
- package/dist/bhl-forms.umd.js +6 -6
- package/dist/forms/childAndFamily.es.js +336 -44
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/civilLawsuit.es.js +241 -37
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/criminal.es.js +241 -39
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/generalLegal.es.js +93 -17
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalBankruptcy.es.js +325 -39
- package/dist/forms/generalLegalBankruptcy.iife.js +1 -1
- package/dist/forms/generalLegalBankruptcy.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +316 -35
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/realEstate.es.js +241 -39
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/testForm.es.js +4 -3
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +3 -3
|
@@ -12,16 +12,17 @@ const formPropDefaults = {
|
|
|
12
12
|
type: 'form',
|
|
13
13
|
id: 'form',
|
|
14
14
|
config: { validationVisibility: 'submit' },
|
|
15
|
-
onSubmit: '$submit("https://httpbin.org/post", $prepData, $handleRedirect)',
|
|
15
|
+
onSubmit: '$submit("https://httpbin.org/post", $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
16
16
|
plugins: '$plugins',
|
|
17
17
|
actions: false,
|
|
18
18
|
prepop: {
|
|
19
19
|
fromURL: true
|
|
20
20
|
},
|
|
21
21
|
errorCodes: {
|
|
22
|
-
403: "An Error Occurred",
|
|
22
|
+
403: { message: "An Error Occurred", abort: false },
|
|
23
23
|
409: { abort: false },
|
|
24
|
-
429: "An Error Occurred"
|
|
24
|
+
429: "An Error Occurred",
|
|
25
|
+
504: { message: "An Error Occurred", abort: false },
|
|
25
26
|
},
|
|
26
27
|
formClass: '!t-max-w-[38rem]'
|
|
27
28
|
};
|
|
@@ -101,11 +102,11 @@ function subHeadline(updates) {
|
|
|
101
102
|
)
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
const
|
|
105
|
+
const secureIconDefault = {
|
|
105
106
|
$el: 'div',
|
|
106
107
|
if: '$activeStep === $lastStep()',
|
|
107
108
|
attrs: {
|
|
108
|
-
class: 't-flex t-justify-center'
|
|
109
|
+
class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
|
|
109
110
|
},
|
|
110
111
|
children: [
|
|
111
112
|
{
|
|
@@ -113,18 +114,28 @@ const privacyIconsDefault = {
|
|
|
113
114
|
attrs: {
|
|
114
115
|
loading: 'lazy',
|
|
115
116
|
alt: '',
|
|
116
|
-
style: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
style: {
|
|
118
|
+
border: 0
|
|
119
|
+
},
|
|
120
|
+
width: '25',
|
|
121
|
+
height: '25',
|
|
122
|
+
src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
$el: 'span',
|
|
127
|
+
children: 'Secure & Encrypted',
|
|
128
|
+
attrs: {
|
|
129
|
+
class: 't-pl-2 t-pt-1 t-font-medium'
|
|
120
130
|
}
|
|
121
131
|
}
|
|
122
132
|
]
|
|
123
133
|
};
|
|
124
134
|
|
|
125
|
-
|
|
135
|
+
|
|
136
|
+
function secureIcon(updates) {
|
|
126
137
|
return merge(
|
|
127
|
-
|
|
138
|
+
secureIconDefault,
|
|
128
139
|
updates
|
|
129
140
|
)
|
|
130
141
|
}
|
|
@@ -200,13 +211,14 @@ function legalRedirectMap(updates) {
|
|
|
200
211
|
)
|
|
201
212
|
}
|
|
202
213
|
|
|
203
|
-
const
|
|
214
|
+
const legalAllValueOverrideMap = {
|
|
204
215
|
'Civil_Defense': {
|
|
205
216
|
'Yes': {
|
|
206
217
|
'Type_Of_Legal_Problem': 'Civil Lawsuit'
|
|
207
218
|
}
|
|
208
219
|
},
|
|
209
220
|
'Type_Of_Legal_Problem_Display': {
|
|
221
|
+
// Civil
|
|
210
222
|
'Automobile Accident': {
|
|
211
223
|
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
212
224
|
},
|
|
@@ -242,10 +254,214 @@ const legalCivilValueOverrideMap = {
|
|
|
242
254
|
},
|
|
243
255
|
'Other (describe on next page)': {
|
|
244
256
|
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
257
|
+
},
|
|
258
|
+
// Criminal
|
|
259
|
+
'Criminal Defense': {
|
|
260
|
+
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
261
|
+
},
|
|
262
|
+
'Victim of a Crime': {
|
|
263
|
+
'Type_Of_Legal_Problem': 'Victim of a Crime'
|
|
264
|
+
},
|
|
265
|
+
'DUI and DWI': {
|
|
266
|
+
'Type_Of_Legal_Problem': 'DUI and DWI'
|
|
267
|
+
},
|
|
268
|
+
'Expungement': {
|
|
269
|
+
'Type_Of_Legal_Problem': 'Expungement'
|
|
270
|
+
},
|
|
271
|
+
'Harrassment': {
|
|
272
|
+
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
273
|
+
},
|
|
274
|
+
'Not Sure or Other': {
|
|
275
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
276
|
+
},
|
|
277
|
+
// Real Estate
|
|
278
|
+
'Contracts and Agreements': {
|
|
279
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
280
|
+
},
|
|
281
|
+
'Deeds, Liens, and Titles': {
|
|
282
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
283
|
+
},
|
|
284
|
+
'Foreclosure': {
|
|
285
|
+
'Type_Of_Legal_Problem': 'Foreclosure'
|
|
286
|
+
},
|
|
287
|
+
'Insurance': {
|
|
288
|
+
'Type_Of_Legal_Problem': 'Insurance'
|
|
289
|
+
},
|
|
290
|
+
'Landlord and Tenant': {
|
|
291
|
+
'Type_Of_Legal_Problem': 'Landlord and Tenant',
|
|
292
|
+
},
|
|
293
|
+
'Loans and Mortgages': {
|
|
294
|
+
'Type_Of_Legal_Problem': 'Real Estate',
|
|
295
|
+
},
|
|
296
|
+
'Wills, Trusts, and Estates': {
|
|
297
|
+
'Type_Of_Legal_Problem': 'Wills and Trusts'
|
|
298
|
+
},
|
|
299
|
+
'Property Damage': {
|
|
300
|
+
'Type_Of_Legal_Problem': 'Property Damage'
|
|
301
|
+
},
|
|
302
|
+
'Other Real Estate Issues': {
|
|
303
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
245
304
|
}
|
|
246
305
|
}
|
|
247
306
|
};
|
|
248
307
|
|
|
308
|
+
|
|
309
|
+
const TOLPCommentsPlaceholders = {
|
|
310
|
+
'Adoption': 'Example: "I need help with adoption forms"',
|
|
311
|
+
'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
|
|
312
|
+
'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"',
|
|
313
|
+
'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
|
|
314
|
+
'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
|
|
315
|
+
'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
|
|
316
|
+
'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
|
|
317
|
+
'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
|
|
318
|
+
'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
|
|
319
|
+
'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
|
|
320
|
+
'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
|
|
321
|
+
'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
|
|
322
|
+
'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
|
|
323
|
+
'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
|
|
324
|
+
'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
|
|
325
|
+
'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
|
|
326
|
+
'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
|
|
327
|
+
'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
|
|
328
|
+
'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
|
|
329
|
+
'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
|
|
330
|
+
'Guardianship': 'Example: "I need help with guardianship documents"',
|
|
331
|
+
'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
|
|
332
|
+
'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
|
|
333
|
+
'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
|
|
334
|
+
'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
|
|
335
|
+
'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
|
|
336
|
+
'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
|
|
337
|
+
'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"',
|
|
338
|
+
'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
|
|
339
|
+
'Nursing Home Abuse': 'Example: "My mother\'s nursing home is physically abusing her"',
|
|
340
|
+
'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
|
|
341
|
+
'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
|
|
342
|
+
'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
|
|
343
|
+
'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
|
|
344
|
+
'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
|
|
345
|
+
'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
|
|
346
|
+
'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
|
|
347
|
+
'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"',
|
|
348
|
+
'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
|
|
349
|
+
'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
|
|
350
|
+
'Unemployment': 'Example: "I need help filing for unemployment benefits"',
|
|
351
|
+
'Vaccination Injury': 'Example: "I was injured after receiving a vaccine and would like to file a lawsuit"',
|
|
352
|
+
'Veteran\'s Disability': 'Example: "I would like help filing for disability benefits"',
|
|
353
|
+
'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
|
|
354
|
+
'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
|
|
355
|
+
'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
|
|
356
|
+
'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
|
|
357
|
+
'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
|
|
358
|
+
'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
const TOLPFinalHeadlines = {
|
|
362
|
+
// 'Adoption': '',
|
|
363
|
+
// 'Asbestos and Mesothelioma': '',
|
|
364
|
+
// 'Auto and Car Accidents': '',
|
|
365
|
+
// 'Bankruptcy': '',
|
|
366
|
+
// 'Birth Certificate and Name Change': '',
|
|
367
|
+
// 'Business Lawyers': '',
|
|
368
|
+
// 'Child Custody and Support': '',
|
|
369
|
+
// 'Civil Rights and Discrimination': '',
|
|
370
|
+
// 'Civil Lawsuit': '',
|
|
371
|
+
// 'Consumer Lawyers': '',
|
|
372
|
+
// 'Copyrights and Trademarks': '',
|
|
373
|
+
// 'Criminal and Felony': '',
|
|
374
|
+
// 'Debt and Collections': '',
|
|
375
|
+
// 'Divorce and Separation': '',
|
|
376
|
+
// 'DUI and DWI': '',
|
|
377
|
+
// 'Elder Law': '',
|
|
378
|
+
// 'Employment and Workplace': '',
|
|
379
|
+
// 'Expungement': '',
|
|
380
|
+
// 'Family Issues': '',
|
|
381
|
+
// 'Foreclosure': '',
|
|
382
|
+
// 'Guardianship': '',
|
|
383
|
+
// 'Harassment and Discrimination': '',
|
|
384
|
+
// 'Identity Theft': '',
|
|
385
|
+
// 'Immigration and Visas': '',
|
|
386
|
+
// 'Insurance': '',
|
|
387
|
+
// 'Landlord and Tenant': '',
|
|
388
|
+
// 'Lemon Law': '',
|
|
389
|
+
// 'Long Term Disability': '',
|
|
390
|
+
// 'Medical Malpractice': '',
|
|
391
|
+
// 'Nursing Home Abuse': '',
|
|
392
|
+
// 'Patents and Intellectual Property': '',
|
|
393
|
+
// 'Personal Injury': '',
|
|
394
|
+
// 'Power of Attorney': '',
|
|
395
|
+
// 'Probate and Estates': '',
|
|
396
|
+
// 'Product Liability': '',
|
|
397
|
+
// 'Property Damage': '',
|
|
398
|
+
// 'Real Estate': '',
|
|
399
|
+
// 'Social Security Disability and Insurance': '',
|
|
400
|
+
// 'Tax and IRS': '',
|
|
401
|
+
// 'Traffic and Tickets': '',
|
|
402
|
+
// 'Unemployment': '',
|
|
403
|
+
// 'Vaccination Injury': '',
|
|
404
|
+
// 'Veteran\'s Disability': '',
|
|
405
|
+
// 'Victim of a Crime': '',
|
|
406
|
+
// 'Wills and Trusts': '',
|
|
407
|
+
// 'Workers Compensation': '',
|
|
408
|
+
// 'Wrongful Death': '',
|
|
409
|
+
// 'Wrongful Termination': '',
|
|
410
|
+
// 'Not Sure or Other': ''
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
const TOLPFinalSubHeadlines = {
|
|
414
|
+
'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
|
|
415
|
+
// 'Asbestos and Mesothelioma': '',
|
|
416
|
+
'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
|
|
417
|
+
'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
|
|
418
|
+
// 'Birth Certificate and Name Change': '',
|
|
419
|
+
// 'Business Lawyers': '',
|
|
420
|
+
// 'Child Custody and Support': '',
|
|
421
|
+
// 'Civil Rights and Discrimination': '',
|
|
422
|
+
// 'Civil Lawsuit': '',
|
|
423
|
+
// 'Consumer Lawyers': '',
|
|
424
|
+
'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
|
|
425
|
+
// 'Criminal and Felony': '',
|
|
426
|
+
// 'Debt and Collections': '',
|
|
427
|
+
'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
|
|
428
|
+
'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
|
|
429
|
+
'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
|
|
430
|
+
// 'Employment and Workplace': '',
|
|
431
|
+
// 'Expungement': '',
|
|
432
|
+
// 'Family Issues': '',
|
|
433
|
+
'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
|
|
434
|
+
'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
|
|
435
|
+
// 'Harassment and Discrimination': '',
|
|
436
|
+
// 'Identity Theft': '',
|
|
437
|
+
'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
|
|
438
|
+
// 'Insurance': '',
|
|
439
|
+
'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
|
|
440
|
+
// 'Lemon Law': '',
|
|
441
|
+
'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
|
|
442
|
+
'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
|
|
443
|
+
// 'Nursing Home Abuse': '',
|
|
444
|
+
'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
|
|
445
|
+
'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
|
|
446
|
+
// 'Power of Attorney': '',
|
|
447
|
+
'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
|
|
448
|
+
// 'Product Liability': '',
|
|
449
|
+
// 'Property Damage': '',
|
|
450
|
+
'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
|
|
451
|
+
'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
|
|
452
|
+
'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
|
|
453
|
+
// 'Traffic and Tickets': '',
|
|
454
|
+
'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
|
|
455
|
+
// 'Vaccination Injury': '',
|
|
456
|
+
'Veteran\'s Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
|
|
457
|
+
// 'Victim of a Crime': '',
|
|
458
|
+
// 'Wills and Trusts': '',
|
|
459
|
+
'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
|
|
460
|
+
// 'Wrongful Death': '',
|
|
461
|
+
// 'Wrongful Termination': '',
|
|
462
|
+
// 'Not Sure or Other': ''
|
|
463
|
+
};
|
|
464
|
+
|
|
249
465
|
// ------ Common Base Settings
|
|
250
466
|
|
|
251
467
|
const checkbox = (updates) => {
|
|
@@ -1067,7 +1283,7 @@ const generalTOLP = (updates) => sbsSelect(merge({
|
|
|
1067
1283
|
|
|
1068
1284
|
const haveAttorney = () => sbsYesNoRadio({
|
|
1069
1285
|
name: 'Have_Attorney',
|
|
1070
|
-
label: 'Are You
|
|
1286
|
+
label: 'Are You Already Working with An Attorney?'
|
|
1071
1287
|
});
|
|
1072
1288
|
|
|
1073
1289
|
const haveChildren = () => sbsYesNoRadio({
|
|
@@ -1372,6 +1588,23 @@ const realEstateArea = () => sbsSelect({
|
|
|
1372
1588
|
]
|
|
1373
1589
|
});
|
|
1374
1590
|
|
|
1591
|
+
const realEstateTOLPDisplay = (updates) => col2Radio(merge({
|
|
1592
|
+
name: 'Type_Of_Legal_Problem_Display',
|
|
1593
|
+
if: '$get(Type_Of_Legal_Problem).value == "Real Estate"',
|
|
1594
|
+
label: 'Select The Type of Real Estate Issue:',
|
|
1595
|
+
options: [
|
|
1596
|
+
'Contracts and Agreements',
|
|
1597
|
+
'Deeds, Liens, and Titles',
|
|
1598
|
+
'Foreclosure',
|
|
1599
|
+
'Insurance',
|
|
1600
|
+
'Landlord and Tenant',
|
|
1601
|
+
'Loans and Mortgages',
|
|
1602
|
+
'Wills, Trusts, and Estates',
|
|
1603
|
+
'Property Damage',
|
|
1604
|
+
'Other Real Estate Issues'
|
|
1605
|
+
]
|
|
1606
|
+
}, updates));
|
|
1607
|
+
|
|
1375
1608
|
const relationshipToVictim = () => sbsSelect({
|
|
1376
1609
|
label: 'Relationship to the Victim:',
|
|
1377
1610
|
name: 'Relationship_To_Victim',
|
|
@@ -1811,6 +2044,20 @@ const CriminalAndFelonyQuestions = () => group(
|
|
|
1811
2044
|
}
|
|
1812
2045
|
);
|
|
1813
2046
|
|
|
2047
|
+
const criminalTOLPDisplay = (updates) => col2Radio(merge({
|
|
2048
|
+
name: 'Type_Of_Legal_Problem_Display',
|
|
2049
|
+
if: '$get(Type_Of_Legal_Problem).value == "Criminal and Felony"',
|
|
2050
|
+
label: 'Which Type of Criminal Issue?',
|
|
2051
|
+
options: [
|
|
2052
|
+
'Criminal Defense',
|
|
2053
|
+
'Victim of a Crime',
|
|
2054
|
+
'DUI and DWI',
|
|
2055
|
+
'Expungement',
|
|
2056
|
+
'Harrassment',
|
|
2057
|
+
'Not Sure or Other',
|
|
2058
|
+
]
|
|
2059
|
+
}, updates));
|
|
2060
|
+
|
|
1814
2061
|
const DebtAndCollectionsQuestions = () => group(
|
|
1815
2062
|
'DebtAndCollectionsQuestions',
|
|
1816
2063
|
{
|
|
@@ -2372,14 +2619,15 @@ function step(name, inputs, nextOnEnter = true) {
|
|
|
2372
2619
|
)
|
|
2373
2620
|
}
|
|
2374
2621
|
|
|
2375
|
-
|
|
2376
|
-
function generalLegalTOLPAndZip(updates = {}) {
|
|
2622
|
+
function generalLegalTOLPAndZipV2(updates = {}) {
|
|
2377
2623
|
return step(
|
|
2378
2624
|
'generalLegalTOLPAndZip',
|
|
2379
2625
|
[
|
|
2380
2626
|
generalTOLP(),
|
|
2381
2627
|
civilDefense(),
|
|
2382
2628
|
civilTOLPDisplay(),
|
|
2629
|
+
realEstateTOLPDisplay(),
|
|
2630
|
+
criminalTOLPDisplay(),
|
|
2383
2631
|
zipcode()
|
|
2384
2632
|
],
|
|
2385
2633
|
updates.nextOnEnter
|
|
@@ -2387,48 +2635,72 @@ function generalLegalTOLPAndZip(updates = {}) {
|
|
|
2387
2635
|
}
|
|
2388
2636
|
|
|
2389
2637
|
const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
|
|
2638
|
+
const DEFAULT_COMMENTS_PLACEHOLDER_V2 = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
2390
2639
|
const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
|
|
2391
2640
|
|
|
2392
|
-
function
|
|
2641
|
+
function commentsWithBankruptcyV2(updates = {}) {
|
|
2393
2642
|
return step(
|
|
2394
2643
|
'commentsWithBankruptcy',
|
|
2395
2644
|
[
|
|
2645
|
+
{
|
|
2646
|
+
$el: 'h3',
|
|
2647
|
+
children: 'Additional Case Details',
|
|
2648
|
+
attrs: {
|
|
2649
|
+
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-3'
|
|
2650
|
+
}
|
|
2651
|
+
},
|
|
2396
2652
|
comments({
|
|
2397
2653
|
label: updates.label || DEFAULT_COMMENTS_LABEL,
|
|
2398
|
-
placeholder: updates.placeholder ||
|
|
2654
|
+
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_V2
|
|
2399
2655
|
}),
|
|
2400
2656
|
bankruptcyCrossSell()
|
|
2401
2657
|
],
|
|
2402
2658
|
updates.nextOnEnter
|
|
2403
2659
|
)
|
|
2404
2660
|
}
|
|
2661
|
+
const DEFAULT_FINAL_HEADLINE_V2 = 'We Found Matches For Your Case!';
|
|
2662
|
+
const DEFAULT_FINAL_HEADLINE_V2_b = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
2663
|
+
const DEFAULT_FINAL_SUBHEADLINE_V2 = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
2664
|
+
const DEFAULT_FINAL_SUBHEADLINE_V2_b = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
2405
2665
|
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
function contactInfo(updates = {}) {
|
|
2666
|
+
function contactInfoV2(updates = {}) {
|
|
2409
2667
|
return step(
|
|
2410
2668
|
'contactInfo',
|
|
2411
2669
|
[
|
|
2412
2670
|
{
|
|
2413
2671
|
$el: 'h3',
|
|
2414
|
-
children: updates.headline ||
|
|
2672
|
+
children: updates.headline || DEFAULT_FINAL_HEADLINE_V2_b,
|
|
2415
2673
|
attrs: {
|
|
2416
|
-
class: 't-flex t-justify-center t-text-center t-text-
|
|
2674
|
+
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-3'
|
|
2675
|
+
}
|
|
2676
|
+
},
|
|
2677
|
+
{
|
|
2678
|
+
$el: 'h5',
|
|
2679
|
+
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_V2_b,
|
|
2680
|
+
attrs: {
|
|
2681
|
+
class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
|
|
2417
2682
|
}
|
|
2418
2683
|
},
|
|
2419
2684
|
email(),
|
|
2420
2685
|
phone(),
|
|
2421
2686
|
TCPAConsent(),
|
|
2422
|
-
|
|
2687
|
+
secureIcon()
|
|
2423
2688
|
],
|
|
2424
2689
|
updates.nextOnEnter
|
|
2425
2690
|
)
|
|
2426
2691
|
}
|
|
2427
2692
|
|
|
2428
|
-
function
|
|
2693
|
+
function firstAndLastV2(updates = {}) {
|
|
2429
2694
|
return step(
|
|
2430
2695
|
'firstAndLast',
|
|
2431
2696
|
[
|
|
2697
|
+
{
|
|
2698
|
+
$el: 'h3',
|
|
2699
|
+
children: 'Please Provide a Contact Name',
|
|
2700
|
+
attrs: {
|
|
2701
|
+
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-3'
|
|
2702
|
+
}
|
|
2703
|
+
},
|
|
2432
2704
|
firstName(),
|
|
2433
2705
|
lastName()
|
|
2434
2706
|
],
|
|
@@ -2496,7 +2768,7 @@ function generalLegalTOLPQuestions(updates = {}) {
|
|
|
2496
2768
|
questions.unshift(
|
|
2497
2769
|
{
|
|
2498
2770
|
$el: 'h3',
|
|
2499
|
-
children: updates.headline ||
|
|
2771
|
+
children: updates.headline || 'Tell Us More About Your Case',
|
|
2500
2772
|
attrs: {
|
|
2501
2773
|
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-3'
|
|
2502
2774
|
}
|
|
@@ -2510,9 +2782,7 @@ function generalLegalTOLPQuestions(updates = {}) {
|
|
|
2510
2782
|
)
|
|
2511
2783
|
}
|
|
2512
2784
|
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
const formNavigation = () => ({
|
|
2785
|
+
const formNavigationV2 = () => ({
|
|
2516
2786
|
$el: 'div',
|
|
2517
2787
|
attrs: {
|
|
2518
2788
|
class: 'step-nav'
|
|
@@ -2532,7 +2802,16 @@ const formNavigation = () => ({
|
|
|
2532
2802
|
$formkit: 'button',
|
|
2533
2803
|
name: 'next_button',
|
|
2534
2804
|
onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
|
|
2535
|
-
children:
|
|
2805
|
+
children: {
|
|
2806
|
+
if: '$activeStep === $firstStep()',
|
|
2807
|
+
then: 'Get Help',
|
|
2808
|
+
else: 'Next'
|
|
2809
|
+
},
|
|
2810
|
+
outerClass: {
|
|
2811
|
+
if: '$activeStep === $lastStep()',
|
|
2812
|
+
then: 't-hidden',
|
|
2813
|
+
else: ''
|
|
2814
|
+
},
|
|
2536
2815
|
style: {
|
|
2537
2816
|
if: '$activeStep === $lastStep()',
|
|
2538
2817
|
then: 'display: none;'
|
|
@@ -2591,24 +2870,31 @@ const formDetails = () => ({
|
|
|
2591
2870
|
});
|
|
2592
2871
|
|
|
2593
2872
|
const schema = [
|
|
2594
|
-
metaProps(
|
|
2873
|
+
metaProps({
|
|
2874
|
+
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER,
|
|
2875
|
+
commentsPlaceholders: TOLPCommentsPlaceholders,
|
|
2876
|
+
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_V2,
|
|
2877
|
+
finalHeadlines: TOLPFinalHeadlines,
|
|
2878
|
+
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_V2,
|
|
2879
|
+
finalSubHeadlines: TOLPFinalSubHeadlines
|
|
2880
|
+
}),
|
|
2595
2881
|
formAnchor(),
|
|
2596
2882
|
{
|
|
2597
2883
|
$cmp: 'FormKit',
|
|
2598
2884
|
props: formProps({
|
|
2599
2885
|
formId: 'generalLegalBankruptcy',
|
|
2600
|
-
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect)',
|
|
2886
|
+
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
2601
2887
|
redirectMap: legalRedirectMap(),
|
|
2602
2888
|
anchorElement: 'form-anchor',
|
|
2603
|
-
valueOverrideMap:
|
|
2889
|
+
valueOverrideMap: legalAllValueOverrideMap
|
|
2604
2890
|
}),
|
|
2605
2891
|
children: [
|
|
2606
2892
|
headline({
|
|
2607
|
-
children: 'Need Legal Help? Start Here!',
|
|
2893
|
+
children: '$urlParam("hl", "Need Legal Help? Start Here!")',
|
|
2608
2894
|
if: '$activeStep === $firstStep()'
|
|
2609
2895
|
}),
|
|
2610
2896
|
subHeadline({
|
|
2611
|
-
children: '
|
|
2897
|
+
children: '$urlParam("shl", "Our Service is Fast, Easy, and Free!")',
|
|
2612
2898
|
if: '$activeStep === $firstStep()'
|
|
2613
2899
|
}),
|
|
2614
2900
|
...hiddenInputs,
|
|
@@ -2618,16 +2904,16 @@ const schema = [
|
|
|
2618
2904
|
class: 'form-body'
|
|
2619
2905
|
},
|
|
2620
2906
|
children: [
|
|
2621
|
-
|
|
2907
|
+
generalLegalTOLPAndZipV2(),
|
|
2622
2908
|
generalLegalTOLPQuestions(),
|
|
2623
|
-
|
|
2909
|
+
commentsWithBankruptcyV2({
|
|
2624
2910
|
nextOnEnter: false
|
|
2625
2911
|
}),
|
|
2626
|
-
|
|
2627
|
-
|
|
2912
|
+
firstAndLastV2(),
|
|
2913
|
+
contactInfoV2({
|
|
2628
2914
|
nextOnEnter: false
|
|
2629
2915
|
}),
|
|
2630
|
-
|
|
2916
|
+
formNavigationV2(),
|
|
2631
2917
|
formDetails()
|
|
2632
2918
|
]
|
|
2633
2919
|
}
|