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
|
}
|
|
@@ -294,6 +305,216 @@ const legalAllValueOverrideMap = {
|
|
|
294
305
|
}
|
|
295
306
|
};
|
|
296
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
|
+
|
|
465
|
+
|
|
466
|
+
const trustedFormTOLPs = {
|
|
467
|
+
'Adoption': true,
|
|
468
|
+
// 'Asbestos and Mesothelioma': '',
|
|
469
|
+
// 'Auto and Car Accidents': '',
|
|
470
|
+
// 'Bankruptcy': '',
|
|
471
|
+
// 'Birth Certificate and Name Change': '',
|
|
472
|
+
// 'Business Lawyers': '',
|
|
473
|
+
'Child Custody and Support': true,
|
|
474
|
+
// 'Civil Rights and Discrimination': '',
|
|
475
|
+
// 'Civil Lawsuit': '',
|
|
476
|
+
// 'Consumer Lawyers': '',
|
|
477
|
+
// 'Copyrights and Trademarks': '',
|
|
478
|
+
// 'Criminal and Felony': '',
|
|
479
|
+
// 'Debt and Collections': '',
|
|
480
|
+
'Divorce and Separation': true,
|
|
481
|
+
// 'DUI and DWI': '',
|
|
482
|
+
// 'Elder Law': '',
|
|
483
|
+
// 'Employment and Workplace': '',
|
|
484
|
+
// 'Expungement': '',
|
|
485
|
+
'Family Issues': true,
|
|
486
|
+
// 'Foreclosure': '',
|
|
487
|
+
'Guardianship': true,
|
|
488
|
+
// 'Harassment and Discrimination': '',
|
|
489
|
+
// 'Identity Theft': '',
|
|
490
|
+
// 'Immigration and Visas': '',
|
|
491
|
+
// 'Insurance': '',
|
|
492
|
+
// 'Landlord and Tenant': '',
|
|
493
|
+
// 'Lemon Law': '',
|
|
494
|
+
// 'Long Term Disability': '',
|
|
495
|
+
// 'Medical Malpractice': '',
|
|
496
|
+
// 'Nursing Home Abuse': '',
|
|
497
|
+
// 'Patents and Intellectual Property': '',
|
|
498
|
+
// 'Personal Injury': '',
|
|
499
|
+
// 'Power of Attorney': '',
|
|
500
|
+
// 'Probate and Estates': '',
|
|
501
|
+
// 'Product Liability': '',
|
|
502
|
+
// 'Property Damage': '',
|
|
503
|
+
// 'Real Estate': '',
|
|
504
|
+
// 'Social Security Disability and Insurance': '',
|
|
505
|
+
// 'Tax and IRS': '',
|
|
506
|
+
// 'Traffic and Tickets': '',
|
|
507
|
+
// 'Unemployment': '',
|
|
508
|
+
// 'Vaccination Injury': '',
|
|
509
|
+
// 'Veteran\'s Disability': '',
|
|
510
|
+
// 'Victim of a Crime': '',
|
|
511
|
+
// 'Wills and Trusts': '',
|
|
512
|
+
// 'Workers Compensation': '',
|
|
513
|
+
// 'Wrongful Death': '',
|
|
514
|
+
// 'Wrongful Termination': '',
|
|
515
|
+
'Not Sure or Other': true,
|
|
516
|
+
};
|
|
517
|
+
|
|
297
518
|
// ------ Common Base Settings
|
|
298
519
|
|
|
299
520
|
const checkbox = (updates) => {
|
|
@@ -1115,7 +1336,7 @@ const generalTOLP = (updates) => sbsSelect(merge({
|
|
|
1115
1336
|
|
|
1116
1337
|
const haveAttorney = () => sbsYesNoRadio({
|
|
1117
1338
|
name: 'Have_Attorney',
|
|
1118
|
-
label: 'Are You
|
|
1339
|
+
label: 'Are You Already Working with An Attorney?'
|
|
1119
1340
|
});
|
|
1120
1341
|
|
|
1121
1342
|
const haveChildren = () => sbsYesNoRadio({
|
|
@@ -2467,48 +2688,93 @@ function generalLegalTOLPAndZipV2(updates = {}) {
|
|
|
2467
2688
|
}
|
|
2468
2689
|
|
|
2469
2690
|
const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
|
|
2691
|
+
const DEFAULT_COMMENTS_PLACEHOLDER_V2 = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
2470
2692
|
const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
|
|
2471
2693
|
|
|
2472
|
-
function
|
|
2694
|
+
function commentsWithBankruptcyV2(updates = {}) {
|
|
2473
2695
|
return step(
|
|
2474
2696
|
'commentsWithBankruptcy',
|
|
2475
2697
|
[
|
|
2698
|
+
{
|
|
2699
|
+
$el: 'h3',
|
|
2700
|
+
children: 'Additional Case Details',
|
|
2701
|
+
attrs: {
|
|
2702
|
+
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'
|
|
2703
|
+
}
|
|
2704
|
+
},
|
|
2476
2705
|
comments({
|
|
2477
2706
|
label: updates.label || DEFAULT_COMMENTS_LABEL,
|
|
2478
|
-
placeholder: updates.placeholder ||
|
|
2707
|
+
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_V2
|
|
2479
2708
|
}),
|
|
2480
2709
|
bankruptcyCrossSell()
|
|
2481
2710
|
],
|
|
2482
2711
|
updates.nextOnEnter
|
|
2483
2712
|
)
|
|
2484
2713
|
}
|
|
2485
|
-
|
|
2486
|
-
const
|
|
2487
|
-
|
|
2488
|
-
|
|
2714
|
+
const DEFAULT_FINAL_HEADLINE_V2 = 'We Found Matches For Your Case!';
|
|
2715
|
+
const DEFAULT_FINAL_HEADLINE_V2_b = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
2716
|
+
const DEFAULT_FINAL_SUBHEADLINE_V2 = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
2717
|
+
const DEFAULT_FINAL_SUBHEADLINE_V2_b = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
2718
|
+
|
|
2719
|
+
const TRUSTED_FORM_JS = `(function() {
|
|
2720
|
+
if (window.xxTrustedFormLoaded) {
|
|
2721
|
+
return
|
|
2722
|
+
}
|
|
2723
|
+
var vid = '';
|
|
2724
|
+
if (typeof window.zar !== 'undefined') {
|
|
2725
|
+
vid = window.zar.getVID();
|
|
2726
|
+
}
|
|
2727
|
+
window.xxTrustedFormLoaded = true;
|
|
2728
|
+
var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
|
|
2729
|
+
var tf = document.createElement('script');
|
|
2730
|
+
tf.type = 'text/javascript'; tf.async = true;
|
|
2731
|
+
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();
|
|
2732
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
|
|
2733
|
+
})();`;
|
|
2734
|
+
|
|
2735
|
+
function contactInfoTF(updates = {}) {
|
|
2489
2736
|
return step(
|
|
2490
2737
|
'contactInfo',
|
|
2491
2738
|
[
|
|
2492
2739
|
{
|
|
2493
2740
|
$el: 'h3',
|
|
2494
|
-
children: updates.headline ||
|
|
2741
|
+
children: updates.headline || DEFAULT_FINAL_HEADLINE_V2_b,
|
|
2742
|
+
attrs: {
|
|
2743
|
+
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'
|
|
2744
|
+
}
|
|
2745
|
+
},
|
|
2746
|
+
{
|
|
2747
|
+
$el: 'h5',
|
|
2748
|
+
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_V2_b,
|
|
2495
2749
|
attrs: {
|
|
2496
|
-
class: 't-flex t-justify-center t-text-center t-text-lg t-font-
|
|
2750
|
+
class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
|
|
2497
2751
|
}
|
|
2498
2752
|
},
|
|
2753
|
+
{
|
|
2754
|
+
$el: 'script',
|
|
2755
|
+
if: '$activeStep === $lastStep() && $getKey($meta, "trustedFormTOLPs." + $get(Type_Of_Legal_Problem).value, false) == true',
|
|
2756
|
+
children: TRUSTED_FORM_JS
|
|
2757
|
+
},
|
|
2499
2758
|
email(),
|
|
2500
2759
|
phone(),
|
|
2501
2760
|
TCPAConsent(),
|
|
2502
|
-
|
|
2761
|
+
secureIcon()
|
|
2503
2762
|
],
|
|
2504
2763
|
updates.nextOnEnter
|
|
2505
2764
|
)
|
|
2506
2765
|
}
|
|
2507
2766
|
|
|
2508
|
-
function
|
|
2767
|
+
function firstAndLastV2(updates = {}) {
|
|
2509
2768
|
return step(
|
|
2510
2769
|
'firstAndLast',
|
|
2511
2770
|
[
|
|
2771
|
+
{
|
|
2772
|
+
$el: 'h3',
|
|
2773
|
+
children: 'Please Provide a Contact Name',
|
|
2774
|
+
attrs: {
|
|
2775
|
+
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'
|
|
2776
|
+
}
|
|
2777
|
+
},
|
|
2512
2778
|
firstName(),
|
|
2513
2779
|
lastName()
|
|
2514
2780
|
],
|
|
@@ -2576,7 +2842,7 @@ function generalLegalTOLPQuestions(updates = {}) {
|
|
|
2576
2842
|
questions.unshift(
|
|
2577
2843
|
{
|
|
2578
2844
|
$el: 'h3',
|
|
2579
|
-
children: updates.headline ||
|
|
2845
|
+
children: updates.headline || 'Tell Us More About Your Case',
|
|
2580
2846
|
attrs: {
|
|
2581
2847
|
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'
|
|
2582
2848
|
}
|
|
@@ -2590,9 +2856,7 @@ function generalLegalTOLPQuestions(updates = {}) {
|
|
|
2590
2856
|
)
|
|
2591
2857
|
}
|
|
2592
2858
|
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
const formNavigation = () => ({
|
|
2859
|
+
const formNavigationV2 = () => ({
|
|
2596
2860
|
$el: 'div',
|
|
2597
2861
|
attrs: {
|
|
2598
2862
|
class: 'step-nav'
|
|
@@ -2612,7 +2876,16 @@ const formNavigation = () => ({
|
|
|
2612
2876
|
$formkit: 'button',
|
|
2613
2877
|
name: 'next_button',
|
|
2614
2878
|
onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
|
|
2615
|
-
children:
|
|
2879
|
+
children: {
|
|
2880
|
+
if: '$activeStep === $firstStep()',
|
|
2881
|
+
then: 'Get Help',
|
|
2882
|
+
else: 'Next'
|
|
2883
|
+
},
|
|
2884
|
+
outerClass: {
|
|
2885
|
+
if: '$activeStep === $lastStep()',
|
|
2886
|
+
then: 't-hidden',
|
|
2887
|
+
else: ''
|
|
2888
|
+
},
|
|
2616
2889
|
style: {
|
|
2617
2890
|
if: '$activeStep === $lastStep()',
|
|
2618
2891
|
then: 'display: none;'
|
|
@@ -2671,13 +2944,21 @@ const formDetails = () => ({
|
|
|
2671
2944
|
});
|
|
2672
2945
|
|
|
2673
2946
|
const schema = [
|
|
2674
|
-
metaProps(
|
|
2947
|
+
metaProps({
|
|
2948
|
+
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER,
|
|
2949
|
+
commentsPlaceholders: TOLPCommentsPlaceholders,
|
|
2950
|
+
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_V2,
|
|
2951
|
+
finalHeadlines: TOLPFinalHeadlines,
|
|
2952
|
+
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_V2,
|
|
2953
|
+
finalSubHeadlines: TOLPFinalSubHeadlines,
|
|
2954
|
+
trustedFormTOLPs: trustedFormTOLPs
|
|
2955
|
+
}),
|
|
2675
2956
|
formAnchor(),
|
|
2676
2957
|
{
|
|
2677
2958
|
$cmp: 'FormKit',
|
|
2678
2959
|
props: formProps({
|
|
2679
2960
|
formId: 'generalLegalPopUnder',
|
|
2680
|
-
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect)',
|
|
2961
|
+
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
2681
2962
|
redirectMap: legalRedirectMap(),
|
|
2682
2963
|
popUnder: '/thank-you',
|
|
2683
2964
|
anchorElement: 'form-anchor',
|
|
@@ -2685,11 +2966,11 @@ const schema = [
|
|
|
2685
2966
|
}),
|
|
2686
2967
|
children: [
|
|
2687
2968
|
headline({
|
|
2688
|
-
children: 'Need Legal Help? Start Here!',
|
|
2969
|
+
children: '$urlParam("hl", "Need Legal Help? Start Here!")',
|
|
2689
2970
|
if: '$activeStep === $firstStep()'
|
|
2690
2971
|
}),
|
|
2691
2972
|
subHeadline({
|
|
2692
|
-
children: '
|
|
2973
|
+
children: '$urlParam("shl", "Our Service is Fast, Easy, and Free!")',
|
|
2693
2974
|
if: '$activeStep === $firstStep()'
|
|
2694
2975
|
}),
|
|
2695
2976
|
...hiddenInputs,
|
|
@@ -2701,14 +2982,14 @@ const schema = [
|
|
|
2701
2982
|
children: [
|
|
2702
2983
|
generalLegalTOLPAndZipV2(),
|
|
2703
2984
|
generalLegalTOLPQuestions(),
|
|
2704
|
-
|
|
2985
|
+
commentsWithBankruptcyV2({
|
|
2705
2986
|
nextOnEnter: false
|
|
2706
2987
|
}),
|
|
2707
|
-
|
|
2708
|
-
|
|
2988
|
+
firstAndLastV2(),
|
|
2989
|
+
contactInfoTF({
|
|
2709
2990
|
nextOnEnter: false
|
|
2710
2991
|
}),
|
|
2711
|
-
|
|
2992
|
+
formNavigationV2(),
|
|
2712
2993
|
formDetails()
|
|
2713
2994
|
]
|
|
2714
2995
|
}
|