bhl-forms 0.0.74 → 0.0.76

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.
@@ -34,17 +34,18 @@ function formProps(updates) {
34
34
  }
35
35
 
36
36
  const metaDefaults = {
37
- type: 'meta',
38
- data: {
39
- tcpaLanguage: TCPA_LANGUAGE
40
- }
37
+ tcpaLanguage: TCPA_LANGUAGE
41
38
  };
42
39
 
43
40
  function metaProps(updates) {
44
- return merge(
41
+ const data = merge(
45
42
  metaDefaults,
46
43
  updates
47
- )
44
+ );
45
+ return {
46
+ type: 'meta',
47
+ data
48
+ }
48
49
  }
49
50
 
50
51
  const formAnchorDefaults = {
@@ -88,7 +89,7 @@ function headline(updates) {
88
89
  const subHeadlineDefaults = {
89
90
  $el: 'h3',
90
91
  attrs: {
91
- class: 't-flex t-justify-center t-text-center !t-text-base t-font-medium t-text-blue-500 t-px-10'
92
+ class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10'
92
93
  }
93
94
  };
94
95
 
@@ -100,11 +101,11 @@ function subHeadline(updates) {
100
101
  )
101
102
  }
102
103
 
103
- const privacyIconsDefault = {
104
+ const secureIconDefault = {
104
105
  $el: 'div',
105
106
  if: '$activeStep === $lastStep()',
106
107
  attrs: {
107
- class: 't-flex t-justify-center'
108
+ class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
108
109
  },
109
110
  children: [
110
111
  {
@@ -112,18 +113,28 @@ const privacyIconsDefault = {
112
113
  attrs: {
113
114
  loading: 'lazy',
114
115
  alt: '',
115
- style: { border: 0 },
116
- src: 'https://d27hmee62k45vz.cloudfront.net/form-secure-privacy.png',
117
- width: '320',
118
- height: '100'
116
+ style: {
117
+ border: 0
118
+ },
119
+ width: '25',
120
+ height: '25',
121
+ src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
122
+ }
123
+ },
124
+ {
125
+ $el: 'span',
126
+ children: 'Secure & Encrypted',
127
+ attrs: {
128
+ class: 't-pl-2 t-pt-1 t-font-medium'
119
129
  }
120
130
  }
121
131
  ]
122
132
  };
123
133
 
124
- function privacyIcons(updates) {
134
+
135
+ function secureIcon(updates) {
125
136
  return merge(
126
- privacyIconsDefault,
137
+ secureIconDefault,
127
138
  updates
128
139
  )
129
140
  }
@@ -245,6 +256,163 @@ const legalCivilValueOverrideMap = {
245
256
  }
246
257
  };
247
258
 
259
+
260
+ const TOLPCommentsPlaceholders = {
261
+ 'Adoption': 'Example: "I need help with adoption forms"',
262
+ 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
263
+ '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"',
264
+ 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
265
+ 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
266
+ 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
267
+ 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
268
+ 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
269
+ 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
270
+ 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
271
+ 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
272
+ 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
273
+ 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
274
+ 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
275
+ 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
276
+ 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
277
+ 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
278
+ 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
279
+ 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
280
+ 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
281
+ 'Guardianship': 'Example: "I need help with guardianship documents"',
282
+ 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
283
+ 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
284
+ 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
285
+ 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
286
+ 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
287
+ 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
288
+ '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"',
289
+ 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
290
+ 'Nursing Home Abuse': 'Example: "My mother\'s nursing home is physically abusing her"',
291
+ 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
292
+ 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
293
+ 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
294
+ 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
295
+ 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
296
+ 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
297
+ 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
298
+ '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"',
299
+ 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
300
+ 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
301
+ 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
302
+ 'Vaccination Injury': 'Example: "I was injured after receiving a vaccine and would like to file a lawsuit"',
303
+ 'Veteran\'s Disability': 'Example: "I would like help filing for disability benefits"',
304
+ 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
305
+ 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
306
+ 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
307
+ 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
308
+ 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
309
+ 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
310
+ };
311
+
312
+ const TOLPFinalHeadlines = {
313
+ // 'Adoption': '',
314
+ // 'Asbestos and Mesothelioma': '',
315
+ // 'Auto and Car Accidents': '',
316
+ // 'Bankruptcy': '',
317
+ // 'Birth Certificate and Name Change': '',
318
+ // 'Business Lawyers': '',
319
+ // 'Child Custody and Support': '',
320
+ // 'Civil Rights and Discrimination': '',
321
+ // 'Civil Lawsuit': '',
322
+ // 'Consumer Lawyers': '',
323
+ // 'Copyrights and Trademarks': '',
324
+ // 'Criminal and Felony': '',
325
+ // 'Debt and Collections': '',
326
+ // 'Divorce and Separation': '',
327
+ // 'DUI and DWI': '',
328
+ // 'Elder Law': '',
329
+ // 'Employment and Workplace': '',
330
+ // 'Expungement': '',
331
+ // 'Family Issues': '',
332
+ // 'Foreclosure': '',
333
+ // 'Guardianship': '',
334
+ // 'Harassment and Discrimination': '',
335
+ // 'Identity Theft': '',
336
+ // 'Immigration and Visas': '',
337
+ // 'Insurance': '',
338
+ // 'Landlord and Tenant': '',
339
+ // 'Lemon Law': '',
340
+ // 'Long Term Disability': '',
341
+ // 'Medical Malpractice': '',
342
+ // 'Nursing Home Abuse': '',
343
+ // 'Patents and Intellectual Property': '',
344
+ // 'Personal Injury': '',
345
+ // 'Power of Attorney': '',
346
+ // 'Probate and Estates': '',
347
+ // 'Product Liability': '',
348
+ // 'Property Damage': '',
349
+ // 'Real Estate': '',
350
+ // 'Social Security Disability and Insurance': '',
351
+ // 'Tax and IRS': '',
352
+ // 'Traffic and Tickets': '',
353
+ // 'Unemployment': '',
354
+ // 'Vaccination Injury': '',
355
+ // 'Veteran\'s Disability': '',
356
+ // 'Victim of a Crime': '',
357
+ // 'Wills and Trusts': '',
358
+ // 'Workers Compensation': '',
359
+ // 'Wrongful Death': '',
360
+ // 'Wrongful Termination': '',
361
+ // 'Not Sure or Other': ''
362
+ };
363
+
364
+ const TOLPFinalSubHeadlines = {
365
+ 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
366
+ // 'Asbestos and Mesothelioma': '',
367
+ 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
368
+ 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
369
+ // 'Birth Certificate and Name Change': '',
370
+ // 'Business Lawyers': '',
371
+ // 'Child Custody and Support': '',
372
+ // 'Civil Rights and Discrimination': '',
373
+ // 'Civil Lawsuit': '',
374
+ // 'Consumer Lawyers': '',
375
+ 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
376
+ // 'Criminal and Felony': '',
377
+ // 'Debt and Collections': '',
378
+ 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
379
+ 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
380
+ 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
381
+ // 'Employment and Workplace': '',
382
+ // 'Expungement': '',
383
+ // 'Family Issues': '',
384
+ 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
385
+ 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
386
+ // 'Harassment and Discrimination': '',
387
+ // 'Identity Theft': '',
388
+ 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
389
+ // 'Insurance': '',
390
+ 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
391
+ // 'Lemon Law': '',
392
+ 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
393
+ 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
394
+ // 'Nursing Home Abuse': '',
395
+ 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
396
+ 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
397
+ // 'Power of Attorney': '',
398
+ 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
399
+ // 'Product Liability': '',
400
+ // 'Property Damage': '',
401
+ 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
402
+ 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
403
+ 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
404
+ // 'Traffic and Tickets': '',
405
+ 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
406
+ // 'Vaccination Injury': '',
407
+ 'Veteran\'s Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
408
+ // 'Victim of a Crime': '',
409
+ // 'Wills and Trusts': '',
410
+ 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
411
+ // 'Wrongful Death': '',
412
+ // 'Wrongful Termination': '',
413
+ // 'Not Sure or Other': ''
414
+ };
415
+
248
416
  // ------ Common Base Settings
249
417
 
250
418
  const checkbox = (updates) => {
@@ -2316,6 +2484,9 @@ const findLastInput = (n) => {
2316
2484
  return n
2317
2485
  }
2318
2486
  for (var i = n.children.length - 1; i >= 0; i--) {
2487
+ if (typeof n.children === 'string') {
2488
+ continue
2489
+ }
2319
2490
  const child = n.children[i];
2320
2491
  if (isInput(child)) {
2321
2492
  return child
@@ -2378,15 +2549,23 @@ function generalLegalTOLPAndZip(updates = {}) {
2378
2549
  }
2379
2550
 
2380
2551
  const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
2552
+ const DEFAULT_COMMENTS_PLACEHOLDER_V2 = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
2381
2553
  const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
2382
2554
 
2383
- function commentsWithBankruptcy(updates = {}) {
2555
+ function commentsWithBankruptcyV2(updates = {}) {
2384
2556
  return step(
2385
2557
  'commentsWithBankruptcy',
2386
2558
  [
2559
+ {
2560
+ $el: 'h3',
2561
+ children: 'Additional Case Details',
2562
+ attrs: {
2563
+ 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'
2564
+ }
2565
+ },
2387
2566
  comments({
2388
2567
  label: updates.label || DEFAULT_COMMENTS_LABEL,
2389
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER
2568
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_V2
2390
2569
  }),
2391
2570
  bankruptcyCrossSell()
2392
2571
  ],
@@ -2394,32 +2573,51 @@ function commentsWithBankruptcy(updates = {}) {
2394
2573
  )
2395
2574
  }
2396
2575
 
2397
- const DEFAULT_LAST_STEP_HEADLINE = "Based on your input, you may benefit from speaking with a legal professional. Please verify your contact information.";
2576
+ const DEFAULT_FINAL_HEADLINE_V2 = 'We Found Matches For Your Case!';
2577
+ // const DEFAULT_FINAL_HEADLINE_V2_a = "Please Verify Your Contact Info"
2578
+ const DEFAULT_FINAL_HEADLINE_V2_b = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
2579
+ // const DEFAULT_FINAL_SUBHEADLINE_V2_a = "Your case may benefit from speaking with a legal professional."
2580
+ const DEFAULT_FINAL_SUBHEADLINE_V2 = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
2581
+ const DEFAULT_FINAL_SUBHEADLINE_V2_b = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
2398
2582
 
2399
- function contactInfo(updates = {}) {
2583
+ function contactInfoV2(updates = {}) {
2400
2584
  return step(
2401
2585
  'contactInfo',
2402
2586
  [
2403
2587
  {
2404
2588
  $el: 'h3',
2405
- children: updates.headline || DEFAULT_LAST_STEP_HEADLINE,
2589
+ children: updates.headline || DEFAULT_FINAL_HEADLINE_V2_b,
2406
2590
  attrs: {
2407
- class: 't-flex t-justify-center t-text-center t-text-lg t-font-bold t-pb-5 t-pt-0 t-px-3'
2591
+ 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'
2592
+ }
2593
+ },
2594
+ {
2595
+ $el: 'h5',
2596
+ children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_V2_b,
2597
+ attrs: {
2598
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
2408
2599
  }
2409
2600
  },
2410
2601
  email(),
2411
2602
  phone(),
2412
2603
  TCPAConsent(),
2413
- privacyIcons()
2604
+ secureIcon()
2414
2605
  ],
2415
2606
  updates.nextOnEnter
2416
2607
  )
2417
2608
  }
2418
2609
 
2419
- function firstAndLast(updates = {}) {
2610
+ function firstAndLastV2(updates = {}) {
2420
2611
  return step(
2421
2612
  'firstAndLast',
2422
2613
  [
2614
+ {
2615
+ $el: 'h3',
2616
+ children: 'Please Provide a Contact Name',
2617
+ attrs: {
2618
+ 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'
2619
+ }
2620
+ },
2423
2621
  firstName(),
2424
2622
  lastName()
2425
2623
  ],
@@ -2427,74 +2625,81 @@ function firstAndLast(updates = {}) {
2427
2625
  )
2428
2626
  }
2429
2627
 
2628
+ const AllTOLPQuestions = () => {
2629
+ return [
2630
+ AdoptionQuestions(),
2631
+ AsbestosAndMesotheliomaQuestions(),
2632
+ AutoAndCarAccidentsQuestions(),
2633
+ BankruptcyQuestions(),
2634
+ BirthCertificateAndNameChangeQuestions(),
2635
+ BusinessLawyersQuestions(),
2636
+ ChildCustodyAndSupportQuestions(),
2637
+ CivilRightsAndDiscriminationQuestions(),
2638
+ CivilLawsuitQuestions(),
2639
+ ConsumerLawyersQuestions(),
2640
+ CopyrightsAndTrademarksQuestions(),
2641
+ CriminalAndFelonyQuestions(),
2642
+ DebtAndCollectionsQuestions(),
2643
+ DivorceQuestions(),
2644
+ DUIAndDWIQuestions(),
2645
+ ElderLawQuestions(),
2646
+ EmploymentAndWorkplaceQuestions(),
2647
+ ExpungementQuestions(),
2648
+ FamilyIssuesQuestions(),
2649
+ ForeclosureQuestions(),
2650
+ GuardianshipQuestions(),
2651
+ HarassmentAndDiscriminationQuestions(),
2652
+ IdentityTheftQuestions(),
2653
+ ImmigrationAndVisasQuestions(),
2654
+ InsuranceQuestions(),
2655
+ LandlordAndTenantQuestions(),
2656
+ LemonLawQuestions(),
2657
+ LongTermDisabilityQuestions(),
2658
+ MedicalMalpracticeQuestions(),
2659
+ NursingHomeAbuseQuestions(),
2660
+ PatentsAndIntellectualPropertyQuestions(),
2661
+ PersonalInjuryQuestions(),
2662
+ PowerofAttorneyQuestions(),
2663
+ ProbateAndEstatesQuestions(),
2664
+ ProductLiabilityQuestions(),
2665
+ PropertyDamageQuestions(),
2666
+ RealEstateQuestions(),
2667
+ SocialSecurityDisabilityAndInsuranceQuestions(),
2668
+ TaxAndIRSQuestions(),
2669
+ TrafficAndTicketsQuestions(),
2670
+ UnemploymentQuestions(),
2671
+ VaccinationInjuryQuestions(),
2672
+ VeteransDisabilityQuestions(),
2673
+ VictimOfACrimeQuestions(),
2674
+ WillsAndTrustsQuestions(),
2675
+ WorkersCompensationQuestions(),
2676
+ WrongfulDeathQuestions(),
2677
+ WrongfulTerminationQuestions(),
2678
+ NotSureOrOtherQuestions()
2679
+ ]
2680
+ };
2681
+
2430
2682
  function generalLegalTOLPQuestions(updates = {}) {
2683
+ var questions = AllTOLPQuestions();
2684
+
2685
+ questions.unshift(
2686
+ {
2687
+ $el: 'h3',
2688
+ children: updates.headline || "Please Complete the Following:",
2689
+ attrs: {
2690
+ 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'
2691
+ }
2692
+ },
2693
+ );
2694
+
2431
2695
  return step(
2432
2696
  'TOLPQuestions',
2433
- [
2434
- {
2435
- $el: 'h3',
2436
- children: 'Please Complete the Following:',
2437
- attrs: {
2438
- 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'
2439
- }
2440
- },
2441
- AdoptionQuestions(),
2442
- AsbestosAndMesotheliomaQuestions(),
2443
- AutoAndCarAccidentsQuestions(),
2444
- BankruptcyQuestions(),
2445
- BirthCertificateAndNameChangeQuestions(),
2446
- BusinessLawyersQuestions(),
2447
- ChildCustodyAndSupportQuestions(),
2448
- CivilRightsAndDiscriminationQuestions(),
2449
- CivilLawsuitQuestions(),
2450
- ConsumerLawyersQuestions(),
2451
- CopyrightsAndTrademarksQuestions(),
2452
- CriminalAndFelonyQuestions(),
2453
- DebtAndCollectionsQuestions(),
2454
- DivorceQuestions(),
2455
- DUIAndDWIQuestions(),
2456
- ElderLawQuestions(),
2457
- EmploymentAndWorkplaceQuestions(),
2458
- ExpungementQuestions(),
2459
- FamilyIssuesQuestions(),
2460
- ForeclosureQuestions(),
2461
- GuardianshipQuestions(),
2462
- HarassmentAndDiscriminationQuestions(),
2463
- IdentityTheftQuestions(),
2464
- ImmigrationAndVisasQuestions(),
2465
- InsuranceQuestions(),
2466
- LandlordAndTenantQuestions(),
2467
- LemonLawQuestions(),
2468
- LongTermDisabilityQuestions(),
2469
- MedicalMalpracticeQuestions(),
2470
- NursingHomeAbuseQuestions(),
2471
- PatentsAndIntellectualPropertyQuestions(),
2472
- PersonalInjuryQuestions(),
2473
- PowerofAttorneyQuestions(),
2474
- ProbateAndEstatesQuestions(),
2475
- ProductLiabilityQuestions(),
2476
- PropertyDamageQuestions(),
2477
- RealEstateQuestions(),
2478
- SocialSecurityDisabilityAndInsuranceQuestions(),
2479
- TaxAndIRSQuestions(),
2480
- TrafficAndTicketsQuestions(),
2481
- UnemploymentQuestions(),
2482
- VaccinationInjuryQuestions(),
2483
- VeteransDisabilityQuestions(),
2484
- VictimOfACrimeQuestions(),
2485
- WillsAndTrustsQuestions(),
2486
- WorkersCompensationQuestions(),
2487
- WrongfulDeathQuestions(),
2488
- WrongfulTerminationQuestions(),
2489
- NotSureOrOtherQuestions()
2490
- ],
2697
+ questions,
2491
2698
  updates.nextOnEnter
2492
2699
  )
2493
2700
  }
2494
2701
 
2495
- // ------ Utilities
2496
-
2497
- const formNavigation = () => ({
2702
+ const formNavigationV2 = () => ({
2498
2703
  $el: 'div',
2499
2704
  attrs: {
2500
2705
  class: 'step-nav'
@@ -2514,7 +2719,16 @@ const formNavigation = () => ({
2514
2719
  $formkit: 'button',
2515
2720
  name: 'next_button',
2516
2721
  onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
2517
- children: 'Next',
2722
+ children: {
2723
+ if: '$activeStep === $firstStep()',
2724
+ then: 'Get Help',
2725
+ else: 'Next'
2726
+ },
2727
+ outerClass: {
2728
+ if: '$activeStep === $lastStep()',
2729
+ then: 't-hidden',
2730
+ else: ''
2731
+ },
2518
2732
  style: {
2519
2733
  if: '$activeStep === $lastStep()',
2520
2734
  then: 'display: none;'
@@ -2573,7 +2787,14 @@ const formDetails = () => ({
2573
2787
  });
2574
2788
 
2575
2789
  const schema = [
2576
- metaProps(),
2790
+ metaProps({
2791
+ defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER,
2792
+ commentsPlaceholders: TOLPCommentsPlaceholders,
2793
+ defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_V2,
2794
+ finalHeadlines: TOLPFinalHeadlines,
2795
+ defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_V2,
2796
+ finalSubHeadlines: TOLPFinalSubHeadlines
2797
+ }),
2577
2798
  formAnchor(),
2578
2799
  {
2579
2800
  $cmp: 'FormKit',
@@ -2586,11 +2807,11 @@ const schema = [
2586
2807
  }),
2587
2808
  children: [
2588
2809
  headline({
2589
- children: 'Need Legal Help? Start Here!',
2810
+ children: '$urlParam("hl", "Need Legal Help? Start Here!")',
2590
2811
  if: '$activeStep === $firstStep()'
2591
2812
  }),
2592
2813
  subHeadline({
2593
- children: 'Get Your Questions Answered Today!',
2814
+ children: '$urlParam("shl", "Our Service is Fast, Easy, and Free!")',
2594
2815
  if: '$activeStep === $firstStep()'
2595
2816
  }),
2596
2817
  ...hiddenInputs,
@@ -2601,15 +2822,17 @@ const schema = [
2601
2822
  },
2602
2823
  children: [
2603
2824
  generalLegalTOLPAndZip(),
2604
- generalLegalTOLPQuestions(),
2605
- commentsWithBankruptcy({
2825
+ generalLegalTOLPQuestions({
2826
+ headline: 'Tell Us More About Your Case'
2827
+ }),
2828
+ commentsWithBankruptcyV2({
2606
2829
  nextOnEnter: false
2607
2830
  }),
2608
- firstAndLast(),
2609
- contactInfo({
2831
+ firstAndLastV2(),
2832
+ contactInfoV2({
2610
2833
  nextOnEnter: false
2611
2834
  }),
2612
- formNavigation(),
2835
+ formNavigationV2(),
2613
2836
  formDetails()
2614
2837
  ]
2615
2838
  }