bhl-forms 0.6.6 → 0.6.8

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.
Files changed (74) hide show
  1. package/dist/bhl-forms.es.js +904 -902
  2. package/dist/bhl-forms.iife.js +4 -4
  3. package/dist/bhl-forms.modern.es.js +2043 -2036
  4. package/dist/bhl-forms.modern.iife.js +6 -6
  5. package/dist/bhl-forms.modern.umd.js +6 -6
  6. package/dist/bhl-forms.umd.js +4 -4
  7. package/dist/forms/accidentsAndInjuries.es.js +27 -1
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +3 -2
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/business.es.js +2152 -0
  13. package/dist/forms/business.iife.js +1 -0
  14. package/dist/forms/business.json +1 -0
  15. package/dist/forms/childAndFamily.es.js +1 -1
  16. package/dist/forms/childAndFamily.iife.js +1 -1
  17. package/dist/forms/childAndFamily.json +1 -1
  18. package/dist/forms/childAndFamilySingle.es.js +425 -56
  19. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  20. package/dist/forms/childAndFamilySingle.json +1 -1
  21. package/dist/forms/civilLawsuit.es.js +904 -260
  22. package/dist/forms/civilLawsuit.iife.js +1 -1
  23. package/dist/forms/civilLawsuit.json +1 -1
  24. package/dist/forms/coins.es.js +3 -2
  25. package/dist/forms/coins.iife.js +1 -1
  26. package/dist/forms/contracts.es.js +1 -1
  27. package/dist/forms/contracts.iife.js +1 -1
  28. package/dist/forms/contracts.json +1 -1
  29. package/dist/forms/criminal.es.js +870 -1482
  30. package/dist/forms/criminal.iife.js +1 -1
  31. package/dist/forms/criminal.json +1 -1
  32. package/dist/forms/employmentAndWorkplace.es.js +815 -184
  33. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  34. package/dist/forms/employmentAndWorkplace.json +1 -1
  35. package/dist/forms/generalLegal.es.js +28 -2
  36. package/dist/forms/generalLegal.iife.js +1 -1
  37. package/dist/forms/generalLegal.json +1 -1
  38. package/dist/forms/generalLegalPopUnder.es.js +28 -2
  39. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  40. package/dist/forms/generalLegalPopUnder.json +1 -1
  41. package/dist/forms/generalLegalPopUnderSingle.es.js +4409 -0
  42. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -0
  43. package/dist/forms/generalLegalPopUnderSingle.json +1 -0
  44. package/dist/forms/generalLegalSingle.es.js +53 -8
  45. package/dist/forms/generalLegalSingle.iife.js +1 -1
  46. package/dist/forms/generalLegalSingle.json +1 -1
  47. package/dist/forms/generalLegalThankYou.es.js +28 -2
  48. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  49. package/dist/forms/generalLegalThankYou.json +1 -1
  50. package/dist/forms/harassmentAndDiscrimination.es.js +1 -1
  51. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  52. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  53. package/dist/forms/malpractice.es.js +27 -1
  54. package/dist/forms/malpractice.iife.js +1 -1
  55. package/dist/forms/malpractice.json +1 -1
  56. package/dist/forms/mechanics.es.js +3 -2
  57. package/dist/forms/mechanics.iife.js +1 -1
  58. package/dist/forms/realEstate.es.js +27 -1
  59. package/dist/forms/realEstate.iife.js +1 -1
  60. package/dist/forms/realEstate.json +1 -1
  61. package/dist/forms/repossession.es.js +27 -1
  62. package/dist/forms/repossession.iife.js +1 -1
  63. package/dist/forms/repossession.json +1 -1
  64. package/dist/forms/ssdi.es.js +2 -2
  65. package/dist/forms/ssdi.iife.js +1 -1
  66. package/dist/forms/testRedirects.es.js +1 -1
  67. package/dist/forms/testRedirects.iife.js +1 -1
  68. package/dist/forms/testRedirects.json +1 -1
  69. package/dist/forms/vets.es.js +3 -2
  70. package/dist/forms/vets.iife.js +1 -1
  71. package/dist/forms/willsAndTrusts.es.js +1 -1
  72. package/dist/forms/willsAndTrusts.iife.js +1 -1
  73. package/dist/forms/willsAndTrusts.json +1 -1
  74. package/package.json +1 -1
@@ -65,21 +65,17 @@ const radio = (updates) => {
65
65
  }, updates)
66
66
  };
67
67
 
68
- const col2Radio = (updates) => {
69
- updates.legendClass = 'required';
70
- updates.fieldsetClass = '$reset';
71
- updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
68
+ const col2RadioCenter = (updates) => {
69
+ updates.legendClass = 'required t-w-[100%] t-text-center';
70
+ if (typeof updates.fieldsetClass === 'undefined') {
71
+ updates.fieldsetClass = '$reset t-flex t-justify-center';
72
+ }
73
+ updates.optionsClass = 't-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
72
74
  updates.innerClass = 't-items-start';
73
75
  updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
74
- return radio(updates)
75
- };
76
-
77
- const sbsRadio = (updates) => {
78
- updates.legendClass = 'legend-left required';
79
- updates.fieldsetClass = '$reset side-by-side';
80
- updates.optionsClass = 't-pl-1';
81
- updates.innerClass = 't-flex t-items-center';
82
- updates.wrapperClass = 't-mb-3';
76
+ updates.optionClass = 't-pl-4 md:t-pl-8 md:t-min-w-[200px]';
77
+ updates.messagesClass = 't-flex t-justify-center';
78
+ updates.helpClass = 't-mt-0 t-mb-4 !t-text-sm t-text-center';
83
79
  return radio(updates)
84
80
  };
85
81
 
@@ -106,6 +102,37 @@ const sbsYesNoRadio = (updates) => {
106
102
  return sbs2ItemRadio(updates)
107
103
  };
108
104
 
105
+ const verticalButtonRadio = (updates) => {
106
+ updates.legendClass = 'legend-left';
107
+ updates.fieldsetClass = '$reset t-flex t-justify-center t-items-center';
108
+ if (typeof updates.optionsClass === 'undefined') {
109
+ updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
110
+ }
111
+ updates.optionClass = 'radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5';
112
+ updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
113
+ updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
114
+ updates.decoratorIcon = false;
115
+ updates.messagesClass = 't-flex t-justify-center';
116
+ return radio(updates)
117
+ };
118
+
119
+ const verticalYesNoRadio = (updates) => {
120
+ updates.options = ['Yes', 'No'];
121
+ updates.optionsClass = 't-flex t-justify-center t-my-3';
122
+ return verticalButtonRadio(updates)
123
+ };
124
+
125
+ const verticalRadio = (updates) => {
126
+ updates.legendClass = 'required';
127
+ updates.fieldsetClass = '$reset t-flex t-justify-center';
128
+ updates.optionsClass = 't-pl-2 t-pt-3';
129
+ updates.innerClass = 't-items-center';
130
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
131
+ updates.optionClass = 't-pl-4 md:t-pl-12';
132
+ updates.messagesClass = 't-flex t-justify-center';
133
+ return radio(updates)
134
+ };
135
+
109
136
  const select = (updates) => {
110
137
  if (updates.name && !updates.id) {
111
138
  updates.id = updates.name;
@@ -130,6 +157,15 @@ const sbsSelect = (updates) => {
130
157
  return select(updates)
131
158
  };
132
159
 
160
+ const verticalSelect = (updates) => {
161
+ updates.labelClass = 'required';
162
+ updates.wrapperClass = 't-flex t-justify-center';
163
+ updates.messagesClass = 't-flex t-justify-center';
164
+ updates.inputClass = 't-min-w-[150px] t-bg-white';
165
+ updates.helpClass = 't-mt-2.5 t-text-center';
166
+ return select(updates)
167
+ };
168
+
133
169
  const text = (updates) => {
134
170
  if (updates.name && !updates.id) {
135
171
  updates.id = updates.name;
@@ -186,27 +222,12 @@ const sbsDate = (updates) => {
186
222
  return date(updates)
187
223
  };
188
224
 
189
- const amountPaymentsPastDue = () => sbsSelect({
190
- label: 'Total Amount of Payments that are Past Due:',
191
- name: 'Amount_Payments_Past_Due',
192
- options: [
193
- "$0 - $499",
194
- "$500 - $999",
195
- "$1,000 - $2,499",
196
- "$2,500 - $4,999",
197
- "$5,000 - $9,999",
198
- "$10,000 - $24,999",
199
- "$25,000 - $49,999",
200
- "$50,000 - $99,999",
201
- "More than $100,000"
202
- ]
203
- });
204
-
205
- const applicantOccupation = (scope) => sbsText({
206
- name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
207
- label: "What is the Applicant's Occupation?",
208
- placeholder: "Occupation"
209
- });
225
+ const verticalDate = (updates) => {
226
+ updates.wrapperClass = 't-flex t-justify-center';
227
+ updates.inputClass = 't-text-center';
228
+ updates.messagesClass = 't-flex t-justify-center';
229
+ return date(updates)
230
+ };
210
231
 
211
232
  const applicantAge = (scope) => sbsText({
212
233
  name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
@@ -222,59 +243,6 @@ const applicantAge = (scope) => sbsText({
222
243
  }
223
244
  });
224
245
 
225
- const applicantDisabilityHowObtain = (scope) => sbsSelect({
226
- name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
227
- label: 'How Did Applicant Obtain the Disability Policy?',
228
- options: [
229
- "Employer",
230
- "Self",
231
- "Other"
232
- ]
233
- });
234
-
235
- const applicantPreviouslyAppliedLtdBenefits = (scope) => sbsRadio({
236
- name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
237
- label: 'Has Applicant Previously Applied for Long Term Disability Benefits?',
238
- options: [
239
- "Yes, claim pending",
240
- "Yes, claim denied",
241
- "No"
242
- ]
243
- });
244
-
245
- const applicantMonthlySalary = (scope) => sbsSelect({
246
- name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
247
- label: "Applicant's Monthly Salary/Pay When Last at Work:",
248
- options: [
249
- "< $1,000",
250
- "$1,000 - $2,000",
251
- "$2,000 - $3,000",
252
- "$3,000 - $4,000",
253
- "$4,000 - $5,000",
254
- "$5,000 - $6,000",
255
- "$6,000 - $7,000",
256
- "$7,000 - $8,000",
257
- "$8,000 - $9,000",
258
- "$9,000 - $10,000",
259
- ">$10,000"
260
- ]
261
- });
262
-
263
- const applicantReceivedDisabilityBenefits = (scope) => sbsRadio({
264
- name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
265
- label: 'Has Applicant Ever Received Long Term Disability Benefits for this Claim?',
266
- options: [
267
- "Yes, currently receiving",
268
- "Yes, appealing a decision to stop payment of benefits",
269
- "No"
270
- ]
271
- });
272
-
273
- const applicantLTDisabilityPolicy = (scope) => sbsYesNoRadio({
274
- name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
275
- label: 'Does Applicant have a Long Term Disability Policy?'
276
- });
277
-
278
246
  const atFault = (scope) => sbsYesNoRadio({
279
247
  name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
280
248
  label: 'Were You at Fault?'
@@ -290,7 +258,7 @@ const bankruptcyCrossSell = () => sbsCheckbox({
290
258
  helpClass: "!t-text-sm"
291
259
  });
292
260
 
293
- const bloodContentAlcoholTest = (scope) => sbsSelect({
261
+ const bloodContentAlcoholTest$1 = (scope) => sbsSelect({
294
262
  name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
295
263
  label: 'Blood Alcohol Content Measured by Test:',
296
264
  options: [
@@ -305,27 +273,17 @@ const bloodContentAlcoholTest = (scope) => sbsSelect({
305
273
  ]
306
274
  });
307
275
 
308
- const businessServices = () => sbsSelect({
309
- label: 'Legal Services Needed for Your Business:',
310
- id: 'Business_Services',
311
- name: 'Business_Services',
312
- options: [
313
- "Business Formation",
314
- "Contracts",
315
- "Insurance and Liability",
316
- "Mergers and Acquisition",
317
- "Regulatory Compliance",
318
- "Employee Dispute",
319
- "Other"
320
- ]
321
- });
322
-
323
- const businessType = () => sbs2ColRadio({
324
- label: 'Is the Business Public or Private?',
325
- name: 'Business_Type',
276
+ const bloodContentAlcoholTestCenter = (scope) => verticalSelect({
277
+ name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
326
278
  options: [
327
- "Public",
328
- "Private"
279
+ "No Test",
280
+ "0.00% - 0.04%",
281
+ "0.05% - 0.08%",
282
+ "0.09% - 0.12%",
283
+ "0.13% - 0.16%",
284
+ "0.17% - 0.20%",
285
+ "More than 0.20%",
286
+ "Don't know"
329
287
  ]
330
288
  });
331
289
 
@@ -341,30 +299,6 @@ const causeOfInjury = (scope) => sbsSelect({
341
299
  ]
342
300
  });
343
301
 
344
- const causeOfDeath = () => sbsSelect({
345
- label: "What was the Cause of the Victim's Death?",
346
- name: 'Cause_Of_Death',
347
- options: [
348
- "Vehicle Accident",
349
- "Negligent/Careless Act",
350
- "Reckless Act",
351
- "Other"
352
- ]
353
- });
354
-
355
- const civilRightsType = () => sbsSelect({
356
- label: 'On what basis were your rights violated?',
357
- name: 'Civil_Rights_Type',
358
- options: [
359
- "Age",
360
- "Disability",
361
- "Gender",
362
- "Race",
363
- "Religion",
364
- "Other"
365
- ]
366
- });
367
-
368
302
  const childHome = (scope) => sbsSelect({
369
303
  name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
370
304
  label: 'With Whom Do the Children Currently Live?',
@@ -417,231 +351,11 @@ const comments = (updates, scope) => textArea(
417
351
  }, updates)
418
352
  );
419
353
 
420
- const consumerLawyerType = () => sbsSelect({
421
- label: 'What best describes your issue?',
422
- name: 'Consumer_Lawyer_Type',
423
- options: [
424
- "Unsafe Environment",
425
- "Unsafe Products",
426
- "Auto Fraud",
427
- "Credit Reporting Issues",
428
- "Debt Collection Abuse",
429
- "Identity Theft",
430
- "Lemon Law",
431
- "Military Consumer Rights",
432
- "Predatory Lending",
433
- "Student Loans",
434
- "Other"
435
- ]
436
- });
437
-
438
- const countryOfCitizenship = (scope) => sbsSelect({
439
- name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
440
- label: 'What is Your Current Country of Citizenship?',
441
- options: [
442
- "Afghanistan",
443
- "Albania",
444
- "Algeria",
445
- "Andorra",
446
- "Angola",
447
- "Antigua and Barbuda",
448
- "Argentina",
449
- "Armenia",
450
- "Australia",
451
- "Austria",
452
- "Azerbaijan",
453
- "Bahamas",
454
- "The Bahrain",
455
- "Bangladesh",
456
- "Barbados",
457
- "Belarus",
458
- "Belgium",
459
- "Belize",
460
- "Benin",
461
- "Bhutan",
462
- "Bolivia",
463
- "Bosnia and Herzegovina",
464
- "Botswana",
465
- "Brazil",
466
- "Brunei",
467
- "Bulgaria",
468
- "Burkina Faso",
469
- "Burundi",
470
- "Cambodia",
471
- "Cameroon",
472
- "Canada",
473
- "Cape Verde",
474
- "Central African Republic",
475
- "Chad",
476
- "Chile",
477
- "China",
478
- "Colombia",
479
- "Comoros",
480
- "Congo (Congoâ Kinshasa)",
481
- "Congo (Congoâ Brazzaville)",
482
- "Costa Rica",
483
- "Coted'Ivoire (Ivory Coast)",
484
- "Croatia",
485
- "Cuba",
486
- "Cyprus",
487
- "Czech Republic",
488
- "Denmark",
489
- "Djibouti",
490
- "Dominica",
491
- "Dominican Republic",
492
- "Ecuador",
493
- "Egypt",
494
- "El Salvador",
495
- "Equatorial Guinea",
496
- "Eritrea",
497
- "Estonia",
498
- "Ethiopia",
499
- "Fiji",
500
- "Finland",
501
- "France",
502
- "Gabon",
503
- "Gambia",
504
- "Georgia",
505
- "Germany",
506
- "Ghana",
507
- "Greece",
508
- "Grenada",
509
- "Guatemala",
510
- "Guinea",
511
- "Guinea-Bissau",
512
- "Guyana",
513
- "Haiti",
514
- "Honduras",
515
- "Hungary",
516
- "Iceland",
517
- "India",
518
- "Indonesia",
519
- "Iran",
520
- "Iraq",
521
- "Ireland",
522
- "Israel",
523
- "Italy",
524
- "Jamaica",
525
- "Japan",
526
- "Jordan",
527
- "Kazakhstan",
528
- "Kenya",
529
- "Kiribati",
530
- "Korea (North Korea)",
531
- "Korea (South Korea)",
532
- "Kuwait",
533
- "Kyrgyzstan",
534
- "Laos",
535
- "Latvia",
536
- "Lebanon",
537
- "Lesotho",
538
- "Liberia",
539
- "Libya",
540
- "Liechtenstein",
541
- "Lithuania",
542
- "Luxembourg",
543
- "Macedonia",
544
- "Madagascar",
545
- "Malawi",
546
- "Malaysia",
547
- "Maldives",
548
- "Mali",
549
- "Malta",
550
- "Marshall Islands",
551
- "Mauritania",
552
- "Mauritius",
553
- "Mexico",
554
- "Micronesia",
555
- "Moldova",
556
- "Monaco",
557
- "Mongolia",
558
- "Montenegro",
559
- "Morocco",
560
- "Mozambique",
561
- "Myanmar (Burma)",
562
- "Namibia",
563
- "Nauru",
564
- "Nepal",
565
- "Netherlands",
566
- "New Zealand",
567
- "Nicaragua",
568
- "Niger",
569
- "Nigeria",
570
- "Norway",
571
- "Oman",
572
- "Pakistan",
573
- "Palau",
574
- "Panama",
575
- "Papua New Guinea",
576
- "Paraguay",
577
- "Peru",
578
- "Philippines",
579
- "Poland",
580
- "Portugal",
581
- "Qatar",
582
- "Romania",
583
- "Russia",
584
- "Rwanda",
585
- "Saint Kitts and Nevis",
586
- "SaintLucia",
587
- "Saint Vincent and the Grenadines",
588
- "Samoa",
589
- "San Marino",
590
- "Sao Tome and Principe",
591
- "Saudi Arabia",
592
- "Senegal",
593
- "Serbia",
594
- "Seychelles",
595
- "Sierra Leone",
596
- "Singapore",
597
- "Slovakia",
598
- "Slovenia",
599
- "Solomon Islands",
600
- "Somalia",
601
- "South Africa",
602
- "Spain",
603
- "SriLanka",
604
- "Sudan",
605
- "Suriname",
606
- "Swaziland",
607
- "Sweden",
608
- "Switzerland",
609
- "Syria",
610
- "Tajikistan",
611
- "Tanzania",
612
- "Thailand",
613
- "Timor-Leste (East Timor)",
614
- "Togo",
615
- "Tonga",
616
- "Trinidad and Tobago",
617
- "Tunisia",
618
- "Turkey",
619
- "Turkmenistan",
620
- "Tuvalu",
621
- "Uganda",
622
- "Ukraine",
623
- "United Arab Emirates",
624
- "United Kingdom",
625
- "United States",
626
- "Uruguay",
627
- "Uzbekistan",
628
- "Vanuatu",
629
- "Vatican City",
630
- "Venezuela",
631
- "Vietnam",
632
- "Yemen",
633
- "Zambia",
634
- "Zimbabwe"
635
- ]
636
- });
637
-
638
- const crimeCommittedDate = () => sbsDate({
639
- label: 'When was the Alleged Crime?',
354
+ const crimeCommittedDateCenter = () => verticalDate({
640
355
  name: 'Crime_Committed_Date'
641
356
  });
642
357
 
643
- const criminalChargeType = () => sbsSelect({
644
- label: 'What Type of Charge?',
358
+ const criminalChargeTypeCenter = () => col2RadioCenter({
645
359
  name: 'Criminal_Charge_Type',
646
360
  options: [
647
361
  "Felony",
@@ -651,9 +365,8 @@ const criminalChargeType = () => sbsSelect({
651
365
  ]
652
366
  });
653
367
 
654
- const criminalChargesFiled = () => sbsRadio({
368
+ const criminalChargesFiledCenter = () => verticalRadio({
655
369
  name: 'Criminal_Charges_Filed',
656
- label: "Were Criminal Charges Filed?",
657
370
  options: [
658
371
  "Yes",
659
372
  "No",
@@ -661,7 +374,7 @@ const criminalChargesFiled = () => sbsRadio({
661
374
  ]
662
375
  });
663
376
 
664
- const degreeOfInterest = (scope, help) => sbsSelect({
377
+ const degreeOfInterest$1 = (scope, help) => sbsSelect({
665
378
  name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
666
379
  id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
667
380
  label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
@@ -674,12 +387,19 @@ const degreeOfInterest = (scope, help) => sbsSelect({
674
387
  ]
675
388
  });
676
389
 
677
- const defaultNotice = () => sbsYesNoRadio({
678
- name: 'Default_Notice',
679
- label: 'Have You Received a Notice of Default from the Lender?'
390
+ const degreeOfInterestCenter = (scope, help) => col2RadioCenter({
391
+ name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
392
+ id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
393
+ help: help,
394
+ options: [
395
+ 'Definitely',
396
+ 'Probably',
397
+ 'Maybe',
398
+ "Absolutely Can't Afford"
399
+ ]
680
400
  });
681
401
 
682
- const degreeOfInterestHelp = (scope) => degreeOfInterest(scope, 'No payment necessary to speak with lawyers.');
402
+ const degreeOfInterestHelp = (scope) => degreeOfInterest$1(scope, 'No payment necessary to speak with lawyers.');
683
403
 
684
404
  const disabilityConditionStopWork = (scope) => sbsYesNoRadio({
685
405
  name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
@@ -696,15 +416,6 @@ const doctorTreatment = (scope) => sbsYesNoRadio({
696
416
  label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
697
417
  });
698
418
 
699
- const driversLicenseType = () => sbs2ItemRadio({
700
- name: 'Drivers_License_Type',
701
- label: "Type of Driver's License:",
702
- options: [
703
- "Private",
704
- "Commercial"
705
- ]
706
- });
707
-
708
419
  const email = () => sbsText({
709
420
  $formkit: 'email',
710
421
  name: 'Email',
@@ -719,25 +430,6 @@ const email = () => sbsText({
719
430
  }
720
431
  });
721
432
 
722
- const employerType = () => sbsSelect({
723
- label: 'The Employer Is a:',
724
- name: 'Employer_Type',
725
- options: [
726
- "Sole proprietorship (mom and pop)",
727
- "Partnership",
728
- "Franchise",
729
- "Privately held company",
730
- "Public corporation",
731
- "Government Agency",
732
- "Don't know"
733
- ]
734
- });
735
-
736
- const employeeAtCompany = (scope) => sbsYesNoRadio({
737
- name: scope ? scope + ':' + 'Employee_At_Company' : 'Employee_At_Company',
738
- label: 'Do you/they still work at the company?'
739
- });
740
-
741
433
  const estateLegalServicesNeeded = (scope) => sbsSelect({
742
434
  name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
743
435
  label: "Legal Services Needed for Your Estate:",
@@ -762,87 +454,27 @@ const firstName = () => sbsText({
762
454
  }
763
455
  });
764
456
 
765
- const haveAttorney = (scope) => sbsYesNoRadio({
457
+ const haveAttorney$1 = (scope) => sbsYesNoRadio({
766
458
  name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
767
459
  label: 'Already Working with An Attorney?'
768
460
  });
769
461
 
462
+ const haveAttorneyCenter = () => verticalYesNoRadio({
463
+ name: 'Have_Attorney',
464
+ });
465
+
770
466
  const haveChildren = (scope) => sbsYesNoRadio({
771
467
  name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
772
468
  label: 'Do You Have Children?'
773
469
  });
774
470
 
775
- const haveCourtDate = () => sbsYesNoRadio({
776
- name: 'Have_Court_Date',
777
- label: 'Do You Have a Court Date?'
778
- });
779
-
780
- const immigrationDetails = (scope) => sbsSelect({
781
- name: scope ? scope + ':' + 'Immigration_Details' : 'Immigration_Details',
782
- label: 'Where is the Person Seeking Immigration Located?',
783
- options: [
784
- "In the USA with proper documentation",
785
- "In the USA without proper documentation",
786
- "Not in the USA",
787
- "In Deportation/Removal Proceedings",
788
- "Currently Detained (friend or family submitting this request)",
789
- "Out on Bond",
790
- "None Apply"
791
- ]
792
- });
793
-
794
- const immigrationEntry = (scope) => sbsSelect({
795
- name: scope ? scope + ':' + 'Immigration_Entry' : 'Immigration_Entry',
796
- label: 'How are you Trying to Enter the Country?',
797
- options: [
798
- "With Proper Documents/Visa and Inspection through Customs Border Patrol",
799
- "Illegally",
800
- "No Entry",
801
- "Other"
802
- ]
803
- });
804
-
805
- const immigrationLocation = (scope) => sbsSelect({
806
- name: scope ? scope + ':' + 'Immigration_Location' : 'Immigration_Location',
807
- label: 'Where Are You Migrating To?',
808
- options: [
809
- "In the USA",
810
- "Outside the USA"
811
- ]
812
- });
813
-
814
- const immigrationType = (scope) => sbsSelect({
815
- name: scope ? scope + ':' + 'Immigration_Type' : 'Immigration_Type',
816
- label: 'What Type of Immigration Issue?',
817
- options: [
818
- "Citizenship (for current green card holders)",
819
- "Permanent Visa Family Based (green cards)",
820
- "Permanent Visa Business Based (green cards)",
821
- "Temporary Business Visa",
822
- "Temporary Tourist Visa",
823
- "Investor",
824
- "Asylum",
825
- "Self Petition (violence & abuse victims)",
826
- "Removal/Deportation Proceeding",
827
- "Other"
828
- ]
829
- });
830
-
831
- const immigrationStatus = (scope) => sbsSelect({
832
- name: scope ? scope + ':' + 'Immigration_Status' : 'Immigration_Status',
833
- label: 'What is the Current Status of the Immigration Case?',
834
- options: [
835
- "Out of Status (overstayed my visa)",
836
- "Current Visa Holder (in status)",
837
- "Lawful Permanent Resident (green card)",
838
- "Not Applicable (outside the USA)",
839
- "Other"
840
- ]
471
+ const incidentDate$1 = (scope) => sbsDate({
472
+ name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
473
+ label: 'Date of Incident:',
841
474
  });
842
475
 
843
- const incidentDate = (scope) => sbsDate({
476
+ const incidentDateCenter = (scope) => verticalDate({
844
477
  name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
845
- label: 'Date of Incident:',
846
478
  });
847
479
 
848
480
  const lastName = () => sbsText({
@@ -856,28 +488,7 @@ const lastName = () => sbsText({
856
488
  }
857
489
  });
858
490
 
859
- const landlordTenantParty = () => sbsSelect({
860
- label: 'I am the:',
861
- name: 'Landlord_Tenant_Party',
862
- options: [
863
- "Landlord",
864
- "Tenant",
865
- "Other"
866
- ]
867
- });
868
-
869
- const lawsuitOtherParty = () => sbsSelect({
870
- label: 'The Other Party is a:',
871
- name: 'Lawsuit_Other_Party',
872
- options: [
873
- "Individual",
874
- "Small Business",
875
- "Large Corporation",
876
- "Government Entity"
877
- ]
878
- });
879
-
880
- const lawyerPaymentMethod = (scope) => sbsSelect({
491
+ const lawyerPaymentMethod$1 = (scope) => sbsSelect({
881
492
  name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
882
493
  label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
883
494
  help: 'No payment necessary to speak with lawyers.',
@@ -891,6 +502,18 @@ const lawyerPaymentMethod = (scope) => sbsSelect({
891
502
  ]
892
503
  });
893
504
 
505
+ const lawyerPaymentMethodCenter = (scope) => col2RadioCenter({
506
+ name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
507
+ help: 'No payment necessary to start a consultation.',
508
+ options: {
509
+ 'Cash': 'Cash',
510
+ 'Credit Card': 'Credit Card',
511
+ 'Family': 'Family or Friend',
512
+ 'Other': 'Other'
513
+ },
514
+ fieldsetClass: '$reset t-flex t-flex-col t-items-center'
515
+ });
516
+
894
517
  const legalCrossSells$1 = () => col2Checkbox({
895
518
  id: 'Legal_CrossSells',
896
519
  name: 'Legal_CrossSells',
@@ -962,23 +585,6 @@ const legalCrossSells$1 = () => col2Checkbox({
962
585
  }
963
586
  });
964
587
 
965
- const loanAmount = () => sbsSelect({
966
- label: 'Total Amount of Loan?',
967
- name: 'Loan_Amount',
968
- options: [
969
- "Less than $10,000",
970
- "$10,000 - $24,999",
971
- "$25,000 - $49,999",
972
- "$50,000 - $99,999",
973
- "$100,000 - $199,999",
974
- "$200,000 - $299,999",
975
- "$300,000 - $399,999",
976
- "$400,000 - $499,999",
977
- "$500,000 - $599,999",
978
- "More than $600,000"
979
- ]
980
- });
981
-
982
588
  const maritalStatus = (scope) => sbsSelect({
983
589
  name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
984
590
  label: 'Marital Status:',
@@ -992,68 +598,13 @@ const maritalStatus = (scope) => sbsSelect({
992
598
  ]
993
599
  });
994
600
 
995
- const medicalMalpracticeInjuries = () => sbsSelect({
996
- label: "Injuries from Medical Malpractice:",
997
- name: 'Medical_Malpractice_Injuries',
998
- options: [
999
- "No Injury",
1000
- "Minor Injury",
1001
- "Disfigurement or cosmetic injury",
1002
- "Short term loss of physical ability",
1003
- "Long term loss of physical injury",
1004
- "Possibility of future harm",
1005
- "Death of Patient"
1006
- ]
1007
- });
1008
-
1009
-
1010
- const numEmployeesOfBusiness = () => sbsSelect({
1011
- label: 'Total Employees of Business? (estimated)',
1012
- name: 'Num_Employees_Of_Business',
1013
- options: [
1014
- "1-5",
1015
- "6-20",
1016
- "21-50",
1017
- "51-100",
1018
- "101-500",
1019
- "501-1,000",
1020
- "More than 1,000"
1021
- ]
1022
- });
1023
-
1024
- const ownRealEstate = () => sbsYesNoRadio({
1025
- name: 'Own_Real_Estate',
1026
- label: 'Do You Own Real Estate?'
1027
- });
1028
-
1029
- const patentAssistanceType = () => sbsSelect({
1030
- label: "Legal Assistance Needed:",
1031
- name: 'Patent_Assistance_Type',
1032
- options: [
1033
- "Obtaining a Patent",
1034
- "Avoiding Patent Infringement",
1035
- "Suing for Patent Infringement",
1036
- "Defending Against a Claim of Patent Infringement",
1037
- "Other"
1038
- ]
1039
- });
1040
-
1041
- const patentFor = () => sbsSelect({
1042
- label: "The Patent is for a:",
1043
- name: 'Patent_For',
1044
- options: [
1045
- "Product or Machine",
1046
- "Process",
1047
- "Computer Software",
1048
- "Living Organism or Plant",
1049
- "Ornamental Design",
1050
- "Other"
1051
- ]
601
+ const pendingCharges$1 = (scope) => sbsYesNoRadio({
602
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
603
+ label: 'Do you currently have any pending charges?'
1052
604
  });
1053
605
 
1054
- const pendingCharges = (scope) => sbsYesNoRadio({
606
+ const pendingChargesCenter = (scope) => verticalYesNoRadio({
1055
607
  name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1056
- label: 'Do you currently have any pending charges?'
1057
608
  });
1058
609
 
1059
610
  const phone = () => sbsText({
@@ -1085,50 +636,25 @@ const primaryInjury = (scope) => sbs2ColRadio({
1085
636
  "Headaches",
1086
637
  "Memory Loss",
1087
638
  "Loss of Limb",
1088
- "Other (describe on next page)"
639
+ "Not Sure or Other"
1089
640
  ]
1090
641
  });
1091
642
 
1092
- const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
643
+ const priorAlcoholOffenses$1 = (scope) => sbsYesNoRadio({
1093
644
  name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1094
645
  label: 'Any Prior Alcohol Related Offenses?'
1095
646
  });
1096
647
 
648
+ const priorAlcoholOffensesCenter = (scope) => verticalYesNoRadio({
649
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
650
+ });
651
+
1097
652
  const policeReportFiled = (scope) => sbsYesNoRadio({
1098
653
  name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1099
654
  label: 'Was a Police Report Filed?'
1100
655
  });
1101
656
 
1102
- const realEstateArea = () => sbsSelect({
1103
- label: "Area of Real Estate:",
1104
- name: 'Real_Estate_Area',
1105
- options: [
1106
- "Condos and Coops",
1107
- "Construction Disputes",
1108
- "Purchase/Sale Contract",
1109
- "Refinancing Agreement",
1110
- "Title and Boundary Disputes",
1111
- "Zoning, Planning and Land Use",
1112
- "Property Deeds and Transfers",
1113
- "Liens",
1114
- "Other"
1115
- ]
1116
- });
1117
-
1118
- const relationshipToVictim = () => sbsSelect({
1119
- label: 'Relationship to the Victim:',
1120
- name: 'Relationship_To_Victim',
1121
- options: [
1122
- "Parent",
1123
- "Spouse",
1124
- "Sibling",
1125
- "Friend",
1126
- "Other"
1127
- ]
1128
- });
1129
-
1130
- const roleInMatterCriminal = () => sbsRadio({
1131
- label: 'What is Your Role in this Matter?',
657
+ const roleInMatterCriminalCenter = () => verticalRadio({
1132
658
  name: 'Role_In_Matter_Criminal',
1133
659
  options: [
1134
660
  "I have been accused",
@@ -1153,71 +679,6 @@ const socialSecurityDisabilityReceivingBenefits = (scope) => sbsYesNoRadio({
1153
679
  label: 'Are You Currently Receiving Social Security Disability Benefits?'
1154
680
  });
1155
681
 
1156
- const taxLevel = () => sbsSelect({
1157
- label: 'Which Level of Tax Issue?',
1158
- name: 'Tax_Level',
1159
- options: [
1160
- "Federal",
1161
- "State",
1162
- "Local"
1163
- ]
1164
- });
1165
-
1166
- const taxIssueType = () => sbsSelect({
1167
- label: 'Type of Tax Issue:',
1168
- name: 'Tax_Issue_Type',
1169
- options: [
1170
- "Income",
1171
- "Property",
1172
- "Corporate"
1173
- ]
1174
- });
1175
-
1176
- const taxProblemDetails = () => sbsSelect({
1177
- label: 'Details of Tax Problem:',
1178
- name: 'Tax_Problem_Details',
1179
- options: [
1180
- "Assets Seized",
1181
- "Bank Account Levied",
1182
- "Cannot Pay Taxes",
1183
- "Innocent Spouse",
1184
- "Lien Filed",
1185
- "Received Audit Notice",
1186
- "Unpaid Interest",
1187
- "Wage Garnishment",
1188
- "Other"
1189
- ]
1190
- });
1191
-
1192
- const totalDebt = () => sbsSelect({
1193
- label: 'Total Debt?',
1194
- name: 'Total_Debt',
1195
- options: [
1196
- "Less than 5K",
1197
- "5K to 10K",
1198
- "10K to 20K",
1199
- "20K to 50K",
1200
- "More than 50K"
1201
- ]
1202
- });
1203
-
1204
-
1205
- const totalMonthlyIncome = () => sbsSelect({
1206
- label: 'Total Monthly Income?',
1207
- name: 'Total_Monthly_Income',
1208
- options: [
1209
- "Less than 1K",
1210
- "1K to 2K",
1211
- "2K to 3K",
1212
- "3K to 4K",
1213
- "4K to 5K",
1214
- "5K to 7K",
1215
- "7K to 10K",
1216
- "10K to 15K",
1217
- "More than 15K"
1218
- ]
1219
- });
1220
-
1221
682
  const TCPAConsent = () => ({
1222
683
  $formkit: 'checkbox',
1223
684
  label: '$meta.tcpaLanguage',
@@ -1233,7 +694,7 @@ const TCPAConsent = () => ({
1233
694
  }
1234
695
  });
1235
696
 
1236
- const typeOfAlcoholTest = (scope) => sbsSelect({
697
+ const typeOfAlcoholTest$1 = (scope) => sbsSelect({
1237
698
  name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1238
699
  label: 'Type of Alcohol Test Performed?',
1239
700
  options: [
@@ -1246,6 +707,18 @@ const typeOfAlcoholTest = (scope) => sbsSelect({
1246
707
  ]
1247
708
  });
1248
709
 
710
+ const typeOfAlcoholTestCenter = (scope) => col2RadioCenter({
711
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
712
+ options: [
713
+ "No Test",
714
+ "Refused Test",
715
+ "Breath Test",
716
+ "Blood Test",
717
+ "Urine Test",
718
+ "Don't Know"
719
+ ]
720
+ });
721
+
1249
722
  const typeOfAssets = (scope) => col2Checkbox({
1250
723
  name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1251
724
  label: 'Type of Assets:',
@@ -1260,43 +733,6 @@ const typeOfAssets = (scope) => col2Checkbox({
1260
733
  ]
1261
734
  });
1262
735
 
1263
- const typeOfProperty = () => sbsSelect({
1264
- label: 'Type of Property:',
1265
- name: 'Type_Of_Property',
1266
- options: [
1267
- "Residential",
1268
- "Commercial",
1269
- "Industrial",
1270
- "Agricultural",
1271
- "Recreational",
1272
- "Other"
1273
- ]
1274
- });
1275
-
1276
- const trafficViolations = () => sbsSelect({
1277
- label: 'Which Type of Violation?',
1278
- name: 'Traffic_Violations',
1279
- options: [
1280
- "Disregarding a Red Light",
1281
- "Disregarding a Stop Sign",
1282
- "DMV Letter About License",
1283
- "DUI/DWI",
1284
- "Failure to Appear in Court",
1285
- "License Suspended/Revoked",
1286
- "Minor in Possession of Alcohol",
1287
- "No Child Safety Seat",
1288
- "No Liability Insurance",
1289
- "No Seat Belt",
1290
- "Open Container of Alcohol",
1291
- "Parking Ticket",
1292
- "Racing",
1293
- "Speeding",
1294
- "Unpaid Traffic Tickets",
1295
- "Warrant Issue for Arrest",
1296
- "Other Violation"
1297
- ]
1298
- });
1299
-
1300
736
  const valueOfAssets = (scope) => sbsSelect({
1301
737
  name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
1302
738
  label: 'Value of Your Assets?',
@@ -1310,22 +746,9 @@ const valueOfAssets = (scope) => sbsSelect({
1310
746
  ]
1311
747
  });
1312
748
 
1313
- const wouldLikeLawyerTo = () => sbsRadio({
1314
- label: 'I Would Like a Lawyer to:',
1315
- name: 'Would_Like_Lawyer_To',
1316
- options: [
1317
- "Give me general advice to protect my interests",
1318
- "Act as my agent in the transaction",
1319
- "Assist me in the remaining stages of the transaction",
1320
- "Bring a lawsuit against another party",
1321
- "Defend against a lawsuit filed by another party",
1322
- "Other"
1323
- ]
1324
- });
1325
-
1326
- const zipcode = () => sbsText({
1327
- label: 'Zip Code:',
749
+ const zipcodeCenter = (updates = {}) => text({
1328
750
  placeholder: '#####',
751
+ help: updates.help ?? "We try to match you with local legal help",
1329
752
  name: 'Zip',
1330
753
  maxlength: 5,
1331
754
  inputmode: "numeric",
@@ -1334,7 +757,11 @@ const zipcode = () => sbsText({
1334
757
  validationMessages: {
1335
758
  required: 'Zip Code is required',
1336
759
  matches: 'Invalid Zip Code'
1337
- }
760
+ },
761
+ wrapperClass: 't-flex t-justify-center',
762
+ messagesClass: 't-flex t-justify-center',
763
+ inputClass: 't-text-center',
764
+ helpClass: 't-mt-2.5 !t-text-sm t-text-center'
1338
765
  });
1339
766
 
1340
767
 
@@ -1353,45 +780,13 @@ const group = (name, updates) => {
1353
780
  }, updates)
1354
781
  };
1355
782
 
1356
- const defaultQuestions = () => [
1357
- haveAttorney(),
1358
- degreeOfInterestHelp()
1359
- ];
1360
-
1361
- const AdoptionQuestions = () => group(
1362
- 'AdoptionQuestions',
1363
- {
1364
- if: '$get(Type_Of_Legal_Problem).value == "Adoption"',
1365
- children: [
1366
- haveAttorney(),
1367
- maritalStatus(),
1368
- haveChildren(),
1369
- degreeOfInterest(),
1370
- lawyerPaymentMethod()
1371
- ]
1372
- }
1373
- );
1374
-
1375
- const AsbestosAndMesotheliomaQuestions = () => group(
1376
- 'AsbestosAndMesotheliomaQuestions',
1377
- {
1378
- if: '$get(Type_Of_Legal_Problem).value == "Asbestos and Mesothelioma"',
1379
- children: [
1380
- haveAttorney(),
1381
- incidentDate(),
1382
- doctorTreatment(),
1383
- degreeOfInterestHelp()
1384
- ]
1385
- }
1386
- );
1387
-
1388
783
  const AutoAndCarAccidentsQuestions = (condition, scope) => group(
1389
784
  'AutoAndCarAccidentsQuestions',
1390
785
  {
1391
786
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
1392
787
  children: [
1393
- haveAttorney(scope),
1394
- incidentDate(scope),
788
+ haveAttorney$1(scope),
789
+ incidentDate$1(scope),
1395
790
  atFault(scope),
1396
791
  primaryInjury(scope),
1397
792
  doctorTreatment(scope),
@@ -1400,183 +795,23 @@ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
1400
795
  }
1401
796
  );
1402
797
 
1403
- const BankruptcyQuestions = (condition, scope) => group(
1404
- 'BankruptcyQuestions',
798
+ const ChildCustodyQuestions = (condition, scope) => group(
799
+ 'ChildCustodyQuestions',
1405
800
  {
1406
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Bankruptcy"'),
801
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
1407
802
  children: [
1408
- haveAttorney(scope),
1409
- totalMonthlyIncome(),
1410
- totalDebt(),
1411
- ownRealEstate(),
1412
- valueOfAssets(scope),
1413
- degreeOfInterestHelp(scope)
1414
- ]
1415
- }
1416
- );
1417
-
1418
- const BirthCertificateAndNameChangeQuestions = () => group(
1419
- 'BirthCertificateAndNameChangeQuestions',
1420
- {
1421
- if: '$get(Type_Of_Legal_Problem).value == "Birth Certificate and Name Change"',
1422
- children: [
1423
- haveAttorney(),
1424
- degreeOfInterestHelp()
1425
- ]
1426
- }
1427
- );
1428
-
1429
- const BusinessLawyersQuestions = () => group(
1430
- 'BusinessLawyersQuestions',
1431
- {
1432
- if: '$get(Type_Of_Legal_Problem).value == "Business Lawyers"',
1433
- children: [
1434
- haveAttorney(),
1435
- businessServices(),
1436
- businessType(),
1437
- numEmployeesOfBusiness(),
1438
- degreeOfInterestHelp()
1439
- ]
1440
- }
1441
- );
1442
-
1443
- const ChildCustodyAndSupportQuestions = (condition, scope) => group(
1444
- 'ChildCustodyAndSupportQuestions',
1445
- {
1446
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"'),
1447
- children: [
1448
- haveAttorney(scope),
803
+ haveAttorney$1(scope),
1449
804
  childRelationship(scope),
1450
805
  childHome(scope),
1451
806
  childPrimaryCaregiver(scope),
1452
- degreeOfInterest(scope),
1453
- lawyerPaymentMethod(scope)
1454
- ]
1455
- }
1456
- );
1457
-
1458
- const ChildCustodyQuestions = (condition, scope) => group(
1459
- 'ChildCustodyQuestions',
1460
- {
1461
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
1462
- children: [
1463
- haveAttorney(scope),
1464
- childRelationship(scope),
1465
- childHome(scope),
1466
- childPrimaryCaregiver(scope),
1467
- degreeOfInterest(scope),
1468
- lawyerPaymentMethod(scope)
1469
- ]
1470
- }
1471
- );
1472
-
1473
- const ChildSupportQuestions = () => group(
1474
- 'ChildSupportQuestions',
1475
- {
1476
- if: '$get(Type_Of_Legal_Problem).value == "Child Support"',
1477
- children: [
1478
- haveAttorney(),
1479
- childRelationship(),
1480
- childHome(),
1481
- childPrimaryCaregiver(),
1482
- degreeOfInterest(),
1483
- lawyerPaymentMethod()
807
+ degreeOfInterest$1(scope),
808
+ lawyerPaymentMethod$1(scope)
1484
809
  ]
1485
810
  }
1486
811
  );
1487
812
 
1488
- const CivilRightsAndDiscriminationQuestions = () => group(
1489
- 'CivilRightsAndDiscriminationQuestions',
1490
- {
1491
- if: '$get(Type_Of_Legal_Problem).value == "Civil Rights and Discrimination"',
1492
- children: [
1493
- civilRightsType(),
1494
- haveAttorney(),
1495
- degreeOfInterestHelp()
1496
- ]
1497
- }
1498
- );
1499
-
1500
- const CivilLawsuitQuestions = () => group(
1501
- 'CivilLawsuitQuestions',
1502
- {
1503
- if: '$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',
1504
- children: [
1505
- haveAttorney(),
1506
- lawsuitOtherParty(),
1507
- degreeOfInterestHelp()
1508
- ]
1509
- }
1510
- );
1511
-
1512
- const FileLawsuitQuestions = () => group(
1513
- 'FileLawsuitQuestions',
1514
- {
1515
- if: '$get(Type_Of_Legal_Problem).value == "File a Lawsuit"',
1516
- children: [
1517
- haveAttorney(),
1518
- lawsuitOtherParty(),
1519
- degreeOfInterestHelp()
1520
- ]
1521
- }
1522
- );
1523
-
1524
- const DefendLawsuitQuestions = () => group(
1525
- 'DefendLawsuitQuestions',
1526
- {
1527
- if: '$get(Type_Of_Legal_Problem).value == "Defend a Lawsuit"',
1528
- children: [
1529
- haveAttorney(),
1530
- lawsuitOtherParty(),
1531
- degreeOfInterestHelp()
1532
- ]
1533
- }
1534
- );
1535
-
1536
- const ConsumerLawyersQuestions = () => group(
1537
- 'ConsumerLawyersQuestions',
1538
- {
1539
- if: '$get(Type_Of_Legal_Problem).value == "Consumer Lawyers"',
1540
- children: [
1541
- consumerLawyerType(),
1542
- incidentDate(),
1543
- haveAttorney(),
1544
- lawsuitOtherParty(),
1545
- degreeOfInterestHelp()
1546
- ]
1547
- }
1548
- );
1549
-
1550
- const CopyrightsAndTrademarksQuestions = () => group(
1551
- 'CopyrightsAndTrademarksQuestions',
1552
- {
1553
- if: '$get(Type_Of_Legal_Problem).value == "Copyrights and Trademarks"',
1554
- children: [
1555
- haveAttorney(),
1556
- degreeOfInterestHelp()
1557
- ]
1558
- }
1559
- );
1560
-
1561
- const CriminalAndFelonyQuestions = () => group(
1562
- 'CriminalAndFelonyQuestions',
1563
- {
1564
- if: '$get(Type_Of_Legal_Problem).value == "Criminal and Felony"',
1565
- children: [
1566
- haveAttorney(),
1567
- crimeCommittedDate(),
1568
- roleInMatterCriminal(),
1569
- pendingCharges(),
1570
- degreeOfInterest(),
1571
- lawyerPaymentMethod()
1572
- ]
1573
- }
1574
- );
1575
-
1576
- const criminalTOLPDisplay = (updates) => col2Radio(merge({
813
+ const criminalTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
1577
814
  name: 'Type_Of_Legal_Problem_Display',
1578
- if: '$get(Type_Of_Legal_Problem).value == "Criminal and Felony"',
1579
- label: 'Which Type of Criminal Issue?',
1580
815
  options: [
1581
816
  'Criminal Defense',
1582
817
  'Victim of a Crime',
@@ -1587,31 +822,16 @@ const criminalTOLPDisplay = (updates) => col2Radio(merge({
1587
822
  ]
1588
823
  }, updates));
1589
824
 
1590
- const DebtAndCollectionsQuestions = () => group(
1591
- 'DebtAndCollectionsQuestions',
1592
- {
1593
- if: '$get(Type_Of_Legal_Problem).value == "Debt and Collections"',
1594
- children: [
1595
- haveAttorney(),
1596
- totalMonthlyIncome(),
1597
- totalDebt(),
1598
- ownRealEstate(),
1599
- valueOfAssets(),
1600
- degreeOfInterestHelp()
1601
- ]
1602
- }
1603
- );
1604
-
1605
825
  const DivorceQuestions = (condition, scope) => group(
1606
826
  'DivorceQuestions',
1607
827
  {
1608
828
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
1609
829
  children: [
1610
- haveAttorney(scope),
830
+ haveAttorney$1(scope),
1611
831
  maritalStatus(scope),
1612
832
  haveChildren(scope),
1613
- degreeOfInterest(scope),
1614
- lawyerPaymentMethod(scope)
833
+ degreeOfInterest$1(scope),
834
+ lawyerPaymentMethod$1(scope)
1615
835
  ]
1616
836
  }
1617
837
  );
@@ -1621,276 +841,24 @@ const DUIAndDWIQuestions = (condition, scope) => group(
1621
841
  {
1622
842
  if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
1623
843
  children: [
1624
- haveAttorney(scope),
1625
- incidentDate(scope),
1626
- priorAlcoholOffenses(scope),
1627
- typeOfAlcoholTest(scope),
1628
- bloodContentAlcoholTest(scope),
1629
- pendingCharges(scope),
844
+ haveAttorney$1(scope),
845
+ incidentDate$1(scope),
846
+ priorAlcoholOffenses$1(scope),
847
+ typeOfAlcoholTest$1(scope),
848
+ bloodContentAlcoholTest$1(scope),
849
+ pendingCharges$1(scope),
1630
850
  degreeOfInterestHelp(scope)
1631
851
  ]
1632
852
  }
1633
853
  );
1634
854
 
1635
- const ElderLawQuestions = () => group(
1636
- 'ElderLawQuestions',
1637
- {
1638
- if: '$get(Type_Of_Legal_Problem).value == "Elder Law"',
1639
- children: [
1640
- haveAttorney(),
1641
- degreeOfInterestHelp()
1642
- ]
1643
- }
1644
- );
1645
-
1646
- const EmploymentAndWorkplaceQuestions = () => group(
1647
- 'EmploymentAndWorkplaceQuestions',
1648
- {
1649
- if: '$get(Type_Of_Legal_Problem).value == "Employment and Workplace"',
1650
- children: [
1651
- haveAttorney(),
1652
- numEmployeesOfBusiness(),
1653
- employerType(),
1654
- employeeAtCompany(),
1655
- degreeOfInterestHelp()
1656
- ]
1657
- }
1658
- );
1659
-
1660
- const ExpungementQuestions = () => group(
1661
- 'ExpungementQuestions',
1662
- {
1663
- if: '$get(Type_Of_Legal_Problem).value == "Expungement"',
1664
- children: [
1665
- haveAttorney(),
1666
- incidentDate(),
1667
- criminalChargeType(),
1668
- degreeOfInterest(),
1669
- lawyerPaymentMethod()
1670
- ]
1671
- }
1672
- );
1673
-
1674
- const FamilyIssuesQuestions = () => group(
1675
- 'FamilyIssuesQuestions',
1676
- {
1677
- if: '$get(Type_Of_Legal_Problem).value == "Family Issues"',
1678
- children: [
1679
- haveAttorney(),
1680
- maritalStatus(),
1681
- haveChildren(),
1682
- degreeOfInterest(),
1683
- lawyerPaymentMethod()
1684
- ]
1685
- }
1686
- );
1687
-
1688
- const ForeclosureQuestions = () => group(
1689
- 'ForeclosureQuestions',
1690
- {
1691
- if: '$get(Type_Of_Legal_Problem).value == "Foreclosure"',
1692
- children: [
1693
- haveAttorney(),
1694
- ownRealEstate(),
1695
- typeOfProperty(),
1696
- amountPaymentsPastDue(),
1697
- loanAmount(),
1698
- defaultNotice(),
1699
- degreeOfInterestHelp()
1700
- ]
1701
- }
1702
- );
1703
-
1704
- const GuardianshipQuestions = () => group(
1705
- 'GuardianshipQuestions',
1706
- {
1707
- if: '$get(Type_Of_Legal_Problem).value == "Guardianship"',
1708
- children: [
1709
- haveAttorney(),
1710
- maritalStatus(),
1711
- haveChildren(),
1712
- degreeOfInterest(),
1713
- lawyerPaymentMethod()
1714
- ]
1715
- }
1716
- );
1717
-
1718
- const HarassmentAndDiscriminationQuestions = () => group(
1719
- 'HarassmentAndDiscriminationQuestions',
1720
- {
1721
- if: '$get(Type_Of_Legal_Problem).value == "Harassment and Discrimination"',
1722
- children: defaultQuestions()
1723
- }
1724
- );
1725
-
1726
- const SexualHarassmentQuestions = () => group(
1727
- 'SexualHarassmentQuestions',
1728
- {
1729
- if: '$get(Type_Of_Legal_Problem).value == "Sexual Harassment"',
1730
- children: defaultQuestions()
1731
- }
1732
- );
1733
-
1734
- const WorkplaceHarassmentQuestions = () => group(
1735
- 'WorkplaceHarassmentQuestions',
1736
- {
1737
- if: '$get(Type_Of_Legal_Problem).value == "Workplace Harassment"',
1738
- children: [
1739
- haveAttorney(),
1740
- numEmployeesOfBusiness(),
1741
- employerType(),
1742
- employeeAtCompany(),
1743
- degreeOfInterestHelp()
1744
- ]
1745
- }
1746
- );
1747
-
1748
- const NonWorkplaceHarassmentQuestions = () => group(
1749
- 'NonWorkplaceHarassmentQuestions',
1750
- {
1751
- if: '$get(Type_Of_Legal_Problem).value == "Non-Workplace Harassment"',
1752
- children: defaultQuestions()
1753
- }
1754
- );
1755
-
1756
- const WorkplaceDiscriminationQuestions = () => group(
1757
- 'WorkplaceDiscriminationQuestions',
1758
- {
1759
- if: '$get(Type_Of_Legal_Problem).value == "Workplace Discrimination"',
1760
- children: [
1761
- haveAttorney(),
1762
- numEmployeesOfBusiness(),
1763
- employerType(),
1764
- employeeAtCompany(),
1765
- degreeOfInterestHelp()
1766
- ]
1767
- }
1768
- );
1769
-
1770
- const NonWorkplaceDiscriminationQuestions = () => group(
1771
- 'NonWorkplaceDiscriminationQuestions',
1772
- {
1773
- if: '$get(Type_Of_Legal_Problem).value == "Non-Workplace Discrimination"',
1774
- children: defaultQuestions()
1775
- }
1776
- );
1777
-
1778
- const IdentityTheftQuestions = () => group(
1779
- 'IdentityTheftQuestions',
1780
- {
1781
- if: '$get(Type_Of_Legal_Problem).value == "Identity Theft"',
1782
- children: [
1783
- haveAttorney(),
1784
- degreeOfInterestHelp()
1785
- ]
1786
- }
1787
- );
1788
-
1789
- const ImmigrationAndVisasQuestions = (condition, scope) => group(
1790
- 'ImmigrationAndVisasQuestions',
1791
- {
1792
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"'),
1793
- children: [
1794
- haveAttorney(scope),
1795
- countryOfCitizenship(scope),
1796
- immigrationLocation(scope),
1797
- immigrationEntry(scope),
1798
- immigrationType(scope),
1799
- immigrationStatus(scope),
1800
- immigrationDetails(scope),
1801
- degreeOfInterestHelp(scope)
1802
- ]
1803
- }
1804
- );
1805
-
1806
- const InsuranceQuestions = () => group(
1807
- 'InsuranceQuestions',
1808
- {
1809
- if: '$get(Type_Of_Legal_Problem).value == "Insurance"',
1810
- children: [
1811
- haveAttorney(),
1812
- degreeOfInterestHelp()
1813
- ]
1814
- }
1815
- );
1816
-
1817
- const LandlordAndTenantQuestions = () => group(
1818
- 'LandlordAndTenantQuestions',
1819
- {
1820
- if: '$get(Type_Of_Legal_Problem).value == "Landlord and Tenant"',
1821
- children: [
1822
- haveAttorney(),
1823
- landlordTenantParty(),
1824
- degreeOfInterestHelp()
1825
- ]
1826
- }
1827
- );
1828
-
1829
- const LemonLawQuestions = () => group(
1830
- 'LemonLawQuestions',
1831
- {
1832
- if: '$get(Type_Of_Legal_Problem).value == "Lemon Law"',
1833
- children: [
1834
- haveAttorney(),
1835
- incidentDate(),
1836
- lawsuitOtherParty(),
1837
- degreeOfInterestHelp()
1838
- ]
1839
- }
1840
- );
1841
-
1842
- const LongTermDisabilityQuestions = (condition, scope) => group(
1843
- 'LongTermDisabilityQuestions',
1844
- {
1845
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Long Term Disability"'),
1846
- children: [
1847
- haveAttorney(scope),
1848
- applicantOccupation(scope),
1849
- applicantAge(scope),
1850
- applicantLTDisabilityPolicy(scope),
1851
- applicantDisabilityHowObtain(scope),
1852
- applicantPreviouslyAppliedLtdBenefits(scope),
1853
- applicantReceivedDisabilityBenefits(scope),
1854
- applicantMonthlySalary(scope)
1855
- ]
1856
- }
1857
- );
1858
-
1859
- const MedicalMalpracticeQuestions = () => group(
1860
- 'MedicalMalpracticeQuestions',
1861
- {
1862
- if: '$get(Type_Of_Legal_Problem).value == "Medical Malpractice"',
1863
- children: [
1864
- haveAttorney(),
1865
- incidentDate(),
1866
- claimStatus(),
1867
- doctorTreatment(),
1868
- medicalMalpracticeInjuries(),
1869
- degreeOfInterestHelp()
1870
- ]
1871
- }
1872
- );
1873
-
1874
- const PatentsAndIntellectualPropertyQuestions = () => group(
1875
- 'PatentsAndIntellectualPropertyQuestions',
1876
- {
1877
- if: '$get(Type_Of_Legal_Problem).value == "Patents and Intellectual Property"',
1878
- children: [
1879
- haveAttorney(),
1880
- patentAssistanceType(),
1881
- patentFor(),
1882
- degreeOfInterestHelp()
1883
- ]
1884
- }
1885
- );
1886
-
1887
855
  const PersonalInjuryQuestions = (condition, scope) => group(
1888
856
  'PersonalInjuryQuestions',
1889
857
  {
1890
858
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
1891
859
  children: [
1892
- haveAttorney(scope),
1893
- incidentDate(scope),
860
+ haveAttorney$1(scope),
861
+ incidentDate$1(scope),
1894
862
  claimStatus(scope),
1895
863
  atFault(scope),
1896
864
  primaryInjury(scope),
@@ -1904,199 +872,53 @@ const PowerofAttorneyQuestions = (condition, scope) => group(
1904
872
  {
1905
873
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
1906
874
  children: [
1907
- haveAttorney(scope),
875
+ haveAttorney$1(scope),
1908
876
  degreeOfInterestHelp(scope)
1909
877
  ]
1910
878
  }
1911
879
  );
1912
880
 
1913
- const ProbateAndEstatesQuestions = () => group(
1914
- 'ProbateAndEstatesQuestions',
1915
- {
1916
- if: '$get(Type_Of_Legal_Problem).value == "Probate and Estates"',
1917
- children: [
1918
- haveAttorney(),
1919
- valueOfAssets(),
1920
- typeOfAssets(),
1921
- roleInMatterProbate(),
1922
- estateLegalServicesNeeded(),
1923
- degreeOfInterestHelp()
1924
- ]
1925
- }
1926
- );
1927
-
1928
- const ProductLiabilityQuestions = () => group(
1929
- 'ProductLiabilityQuestions',
1930
- {
1931
- if: '$get(Type_Of_Legal_Problem).value == "Product Liability"',
1932
- children: [
1933
- haveAttorney(),
1934
- degreeOfInterestHelp()
1935
- ]
1936
- }
1937
- );
1938
-
1939
- const PropertyDamageQuestions = () => group(
1940
- 'PropertyDamageQuestions',
1941
- {
1942
- if: '$get(Type_Of_Legal_Problem).value == "Property Damage"',
1943
- children: [
1944
- haveAttorney(),
1945
- realEstateArea(),
1946
- wouldLikeLawyerTo(),
1947
- degreeOfInterestHelp()
1948
- ]
1949
- }
1950
- );
1951
-
1952
- const RealEstateQuestions = () => group(
1953
- 'RealEstateQuestions',
1954
- {
1955
- if: '$get(Type_Of_Legal_Problem).value == "Real Estate"',
1956
- children: [
1957
- haveAttorney(),
1958
- realEstateArea(),
1959
- wouldLikeLawyerTo(),
1960
- degreeOfInterestHelp()
1961
- ]
1962
- }
1963
- );
1964
-
1965
881
  const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) => group(
1966
882
  'SocialSecurityDisabilityAndInsuranceQuestions',
1967
883
  {
1968
884
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
1969
885
  children: [
1970
- haveAttorney(scope),
886
+ haveAttorney$1(scope),
1971
887
  applicantAge(scope),
1972
888
  disabilityConditionStopWork(scope),
1973
889
  disabilityWorkHistory(scope),
1974
- socialSecurityDisabilityReceivingBenefits(scope),
1975
- doctorTreatment(scope)
1976
- ]
1977
- }
1978
- );
1979
-
1980
- const TaxAndIRSQuestions = () => group(
1981
- 'TaxAndIRSQuestions',
1982
- {
1983
- if: '$get(Type_Of_Legal_Problem).value == "Tax and IRS"',
1984
- children: [
1985
- haveAttorney(),
1986
- totalDebt(),
1987
- taxProblemDetails(),
1988
- taxLevel(),
1989
- taxIssueType(),
1990
- degreeOfInterestHelp()
1991
- ]
1992
- }
1993
- );
1994
-
1995
- const TrafficAndTicketsQuestions = () => group(
1996
- 'TrafficAndTicketsQuestions',
1997
- {
1998
- if: '$get(Type_Of_Legal_Problem).value == "Traffic and Tickets"',
1999
- children: [
2000
- haveAttorney(),
2001
- driversLicenseType(),
2002
- trafficViolations(),
2003
- haveCourtDate(),
2004
- degreeOfInterestHelp()
2005
- ]
2006
- }
2007
- );
2008
-
2009
- const UnemploymentQuestions = () => group(
2010
- 'UnemploymentQuestions',
2011
- {
2012
- if: '$get(Type_Of_Legal_Problem).value == "Unemployment"',
2013
- children: [
2014
- numEmployeesOfBusiness(),
2015
- employerType(),
2016
- degreeOfInterestHelp()
2017
- ]
2018
- }
2019
- );
2020
-
2021
- const VictimOfACrimeQuestions = () => group(
2022
- 'VictimOfACrimeQuestions',
2023
- {
2024
- if: '$get(Type_Of_Legal_Problem).value == "Victim of a Crime"',
2025
- children: [
2026
- haveAttorney(),
2027
- crimeCommittedDate(),
2028
- roleInMatterCriminal(),
2029
- pendingCharges(),
2030
- degreeOfInterest(),
2031
- lawyerPaymentMethod()
2032
- ]
2033
- }
2034
- );
2035
-
2036
- const WillsAndTrustsQuestions = (condition, scope) => group(
2037
- 'WillsAndTrustsQuestions',
2038
- {
2039
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2040
- children: [
2041
- haveAttorney(scope),
2042
- valueOfAssets(scope),
2043
- typeOfAssets(scope),
2044
- roleInMatterProbate(scope),
2045
- estateLegalServicesNeeded(scope),
2046
- degreeOfInterestHelp(scope)
2047
- ]
2048
- }
2049
- );
2050
-
2051
- const WorkersCompensationQuestions = (condition, scope) => group(
2052
- 'WorkersCompensationQuestions',
2053
- {
2054
- if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2055
- children: [
2056
- haveAttorney(scope),
2057
- incidentDate(scope),
2058
- claimStatus(scope),
2059
- primaryInjury(scope),
2060
- causeOfInjury(scope),
2061
- doctorTreatment(scope)
2062
- ]
2063
- }
2064
- );
2065
-
2066
- const WrongfulDeathQuestions = () => group(
2067
- 'WrongfulDeathQuestions',
2068
- {
2069
- if: '$get(Type_Of_Legal_Problem).value == "Wrongful Death"',
2070
- children: [
2071
- haveAttorney(),
2072
- incidentDate(),
2073
- relationshipToVictim(),
2074
- criminalChargesFiled(),
2075
- causeOfDeath()
890
+ socialSecurityDisabilityReceivingBenefits(scope),
891
+ doctorTreatment(scope)
2076
892
  ]
2077
893
  }
2078
894
  );
2079
895
 
2080
- const WrongfulTerminationQuestions = () => group(
2081
- 'WrongfulTerminationQuestions',
896
+ const WillsAndTrustsQuestions = (condition, scope) => group(
897
+ 'WillsAndTrustsQuestions',
2082
898
  {
2083
- if: '$get(Type_Of_Legal_Problem).value == "Wrongful Termination"',
899
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2084
900
  children: [
2085
- haveAttorney(),
2086
- numEmployeesOfBusiness(),
2087
- employerType(),
2088
- degreeOfInterestHelp()
901
+ haveAttorney$1(scope),
902
+ valueOfAssets(scope),
903
+ typeOfAssets(scope),
904
+ roleInMatterProbate(scope),
905
+ estateLegalServicesNeeded(scope),
906
+ degreeOfInterestHelp(scope)
2089
907
  ]
2090
908
  }
2091
909
  );
2092
910
 
2093
- const NotSureOrOtherQuestions = () => group(
2094
- 'NotSureOrOtherQuestions',
911
+ const WorkersCompensationQuestions = (condition, scope) => group(
912
+ 'WorkersCompensationQuestions',
2095
913
  {
2096
- if: '$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',
914
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2097
915
  children: [
2098
- haveAttorney(),
2099
- degreeOfInterestHelp()
916
+ haveAttorney$1(scope),
917
+ incidentDate$1(scope),
918
+ claimStatus(scope),
919
+ primaryInjury(scope),
920
+ causeOfInjury(scope),
921
+ doctorTreatment(scope)
2100
922
  ]
2101
923
  }
2102
924
  );
@@ -2163,7 +985,7 @@ function secureIcon(updates) {
2163
985
  )
2164
986
  }
2165
987
 
2166
- function questionsStepHeadline(updates) {
988
+ function crossSellQuestionsStepHeadline(updates) {
2167
989
  return {
2168
990
  $el: 'h3',
2169
991
  children: updates.headline || 'Tell Us About Your Situation',
@@ -2173,22 +995,32 @@ function questionsStepHeadline(updates) {
2173
995
  }
2174
996
  }
2175
997
 
2176
- function crossSellQuestionsStepHeadline(updates) {
998
+ function crossSellQuestionsStepSubHeadline(updates) {
999
+ return {
1000
+ $el: 'h5',
1001
+ children: updates.subheadline || 'Tell us about your situation:',
1002
+ attrs: {
1003
+ class: 't-flex t-justify-center t-text-dark t-text-center !t-text-lg t-font-semibold t-pb-4 t-pt-0 t-px-3'
1004
+ }
1005
+ }
1006
+ }
1007
+
1008
+ function verticalStepHeadline(updates) {
2177
1009
  return {
2178
1010
  $el: 'h3',
2179
1011
  children: updates.headline || 'Tell Us About Your Situation',
2180
1012
  attrs: {
2181
- 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'
1013
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2182
1014
  }
2183
1015
  }
2184
1016
  }
2185
1017
 
2186
- function crossSellQuestionsStepSubHeadline(updates) {
1018
+ function verticalStepSubHeadline(updates) {
2187
1019
  return {
2188
1020
  $el: 'h5',
2189
- children: updates.subheadline || 'Tell us about your situation:',
1021
+ children: updates.subheadline || '',
2190
1022
  attrs: {
2191
- class: 't-flex t-justify-center t-text-dark t-text-center !t-text-lg t-font-semibold t-pb-4 t-pt-0 t-px-3'
1023
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.subheadlineClass || '')
2192
1024
  }
2193
1025
  }
2194
1026
  }
@@ -2307,6 +1139,21 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
2307
1139
  )
2308
1140
  }
2309
1141
 
1142
+ // Single question step
1143
+ function sqstep(name, input, defaultHeadline, updates = {}) {
1144
+ return step(
1145
+ name,
1146
+ [
1147
+ verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
1148
+ ...Array.isArray(input) ? input : [input],
1149
+ ],
1150
+ updates.nextOnEnter,
1151
+ typeof updates.nextOnInput === 'undefined' ? true : updates.nextOnInput,
1152
+ updates.stepKey,
1153
+ updates.nextStepMap
1154
+ )
1155
+ }
1156
+
2310
1157
  function commentsWithBankruptcy(updates = {}) {
2311
1158
  return step(
2312
1159
  'commentsWithBankruptcy',
@@ -2350,9 +1197,9 @@ function contactInfo(updates = {}) {
2350
1197
  )
2351
1198
  }
2352
1199
 
2353
- function criminalTOLPAndZip(updates = {}) {
1200
+ function criminalTOLP(updates = {}) {
2354
1201
  return step(
2355
- 'criminalTOLPAndZip',
1202
+ 'criminalTOLP',
2356
1203
  [
2357
1204
  {
2358
1205
  $formkit: 'hidden',
@@ -2360,10 +1207,7 @@ function criminalTOLPAndZip(updates = {}) {
2360
1207
  id: "Type_Of_Legal_Problem",
2361
1208
  value: "Criminal and Felony"
2362
1209
  },
2363
- criminalTOLPDisplay({
2364
- if: 'true'
2365
- }),
2366
- zipcode()
1210
+ criminalTOLPDisplayCenter(),
2367
1211
  ],
2368
1212
  updates.nextOnEnter,
2369
1213
  updates.nextOnInput,
@@ -2372,11 +1216,18 @@ function criminalTOLPAndZip(updates = {}) {
2372
1216
  )
2373
1217
  }
2374
1218
 
2375
- function firstAndLastV2(updates = {}) {
1219
+ function firstAndLastV3(updates = {}) {
2376
1220
  return step(
2377
1221
  'firstAndLast',
2378
1222
  [
2379
- firstAndLastStepHeadline(updates),
1223
+ firstAndLastStepHeadline({
1224
+ headline: updates.headline ?? 'Who is looking for help?',
1225
+ headlineClass: updates.headlineClass
1226
+ }),
1227
+ verticalStepSubHeadline({
1228
+ subheadline: updates.subheadline ?? 'Note: we never share info without consent',
1229
+ subheadlineClass: '!t-text-sm !t-text-gray-500'
1230
+ }),
2380
1231
  firstName(),
2381
1232
  lastName()
2382
1233
  ],
@@ -2385,81 +1236,6 @@ function firstAndLastV2(updates = {}) {
2385
1236
  }
2386
1237
 
2387
1238
 
2388
- const AllTOLPQuestions = () => {
2389
- return [
2390
- AdoptionQuestions(),
2391
- AsbestosAndMesotheliomaQuestions(),
2392
- AutoAndCarAccidentsQuestions(),
2393
- BankruptcyQuestions(),
2394
- BirthCertificateAndNameChangeQuestions(),
2395
- BusinessLawyersQuestions(),
2396
- ChildCustodyAndSupportQuestions(),
2397
- ChildCustodyQuestions(),
2398
- ChildSupportQuestions(),
2399
- CivilRightsAndDiscriminationQuestions(),
2400
- CivilLawsuitQuestions(),
2401
- FileLawsuitQuestions(),
2402
- DefendLawsuitQuestions(),
2403
- ConsumerLawyersQuestions(),
2404
- CopyrightsAndTrademarksQuestions(),
2405
- CriminalAndFelonyQuestions(),
2406
- DebtAndCollectionsQuestions(),
2407
- DivorceQuestions(),
2408
- DUIAndDWIQuestions(),
2409
- ElderLawQuestions(),
2410
- EmploymentAndWorkplaceQuestions(),
2411
- ExpungementQuestions(),
2412
- FamilyIssuesQuestions(),
2413
- ForeclosureQuestions(),
2414
- GuardianshipQuestions(),
2415
- HarassmentAndDiscriminationQuestions(),
2416
- SexualHarassmentQuestions(),
2417
- WorkplaceHarassmentQuestions(),
2418
- NonWorkplaceHarassmentQuestions(),
2419
- WorkplaceDiscriminationQuestions(),
2420
- NonWorkplaceDiscriminationQuestions(),
2421
- IdentityTheftQuestions(),
2422
- ImmigrationAndVisasQuestions(),
2423
- InsuranceQuestions(),
2424
- LandlordAndTenantQuestions(),
2425
- LemonLawQuestions(),
2426
- LongTermDisabilityQuestions(),
2427
- MedicalMalpracticeQuestions(),
2428
- PatentsAndIntellectualPropertyQuestions(),
2429
- PersonalInjuryQuestions(),
2430
- PowerofAttorneyQuestions(),
2431
- ProbateAndEstatesQuestions(),
2432
- ProductLiabilityQuestions(),
2433
- PropertyDamageQuestions(),
2434
- RealEstateQuestions(),
2435
- SocialSecurityDisabilityAndInsuranceQuestions(),
2436
- TaxAndIRSQuestions(),
2437
- TrafficAndTicketsQuestions(),
2438
- UnemploymentQuestions(),
2439
- VictimOfACrimeQuestions(),
2440
- WillsAndTrustsQuestions(),
2441
- WorkersCompensationQuestions(),
2442
- WrongfulDeathQuestions(),
2443
- WrongfulTerminationQuestions(),
2444
- NotSureOrOtherQuestions()
2445
- ]
2446
- };
2447
-
2448
- function generalLegalTOLPQuestions(updates = {}) {
2449
- var questions = AllTOLPQuestions();
2450
-
2451
- questions.unshift(
2452
- questionsStepHeadline(updates)
2453
- );
2454
-
2455
- return step(
2456
- 'TOLPQuestions',
2457
- questions,
2458
- updates.nextOnEnter
2459
- )
2460
- }
2461
-
2462
-
2463
1239
  function autoAndCarAccidentCrossSellQuestions(updates = {}) {
2464
1240
  return step(
2465
1241
  'autoAndCarAccidentCrossSellQuestions',
@@ -2649,6 +1425,123 @@ function legalCrossSells(updates = {}) {
2649
1425
  )
2650
1426
  }
2651
1427
 
1428
+ function zipcode(updates = {}) {
1429
+ return sqstep(
1430
+ 'zipcode',
1431
+ zipcodeCenter(updates),
1432
+ 'Please verify your Zip Code',
1433
+ updates
1434
+ )
1435
+ }
1436
+
1437
+ function haveAttorney(updates = {}) {
1438
+ return sqstep(
1439
+ 'haveAttorney',
1440
+ haveAttorneyCenter(),
1441
+ 'Already working with an attorney?',
1442
+ updates
1443
+ )
1444
+ }
1445
+
1446
+ function degreeOfInterest(updates = {}) {
1447
+ return sqstep(
1448
+ 'degreeOfInterest',
1449
+ degreeOfInterestCenter(),
1450
+ 'Could you pay if your issue could be resolved?',
1451
+ updates
1452
+ )
1453
+ }
1454
+
1455
+ function lawyerPaymentMethod(updates = {}) {
1456
+ return sqstep(
1457
+ 'lawyerPaymentMethod',
1458
+ lawyerPaymentMethodCenter(),
1459
+ 'How would you pay if a solution required it?',
1460
+ updates
1461
+ )
1462
+ }
1463
+
1464
+ function incidentDate(updates = {}) {
1465
+ return sqstep(
1466
+ 'incidentDate',
1467
+ incidentDateCenter(),
1468
+ 'When did the incident occur?',
1469
+ updates
1470
+ )
1471
+ }
1472
+
1473
+ function crimeCommittedDate(updates = {}) {
1474
+ return sqstep(
1475
+ 'crimeCommittedDate',
1476
+ crimeCommittedDateCenter(),
1477
+ 'When was the alleged crime?',
1478
+ updates
1479
+ )
1480
+ }
1481
+
1482
+ function roleInMatterCriminal(updates = {}) {
1483
+ return sqstep(
1484
+ 'roleInMatterCriminal',
1485
+ roleInMatterCriminalCenter(),
1486
+ 'What is your role in this matter?',
1487
+ updates
1488
+ )
1489
+ }
1490
+
1491
+ function pendingCharges(updates = {}) {
1492
+ return sqstep(
1493
+ 'pendingCharges',
1494
+ pendingChargesCenter(),
1495
+ 'Do you have any pending charges?',
1496
+ updates
1497
+ )
1498
+ }
1499
+
1500
+ function bloodContentAlcoholTest(updates = {}) {
1501
+ return sqstep(
1502
+ 'bloodContentAlcoholTest',
1503
+ bloodContentAlcoholTestCenter(),
1504
+ 'What was your blood alcohol content?',
1505
+ updates
1506
+ )
1507
+ }
1508
+
1509
+ function priorAlcoholOffenses(updates = {}) {
1510
+ return sqstep(
1511
+ 'priorAlcoholOffenses',
1512
+ priorAlcoholOffensesCenter(),
1513
+ 'Do you have prior alcohol offenses?',
1514
+ updates
1515
+ )
1516
+ }
1517
+
1518
+ function typeOfAlcoholTest(updates = {}) {
1519
+ return sqstep(
1520
+ 'typeOfAlcoholTest',
1521
+ typeOfAlcoholTestCenter(),
1522
+ 'What type of alcohol test was performed?',
1523
+ updates
1524
+ )
1525
+ }
1526
+
1527
+ function criminalChargeType(updates = {}) {
1528
+ return sqstep(
1529
+ 'criminalChargeType',
1530
+ criminalChargeTypeCenter(),
1531
+ 'What type of criminal charge?',
1532
+ updates
1533
+ )
1534
+ }
1535
+
1536
+ function criminalChargesFiled(updates = {}) {
1537
+ return sqstep(
1538
+ 'criminalChargesFiled',
1539
+ criminalChargesFiledCenter(),
1540
+ 'Have criminal charges been filed?',
1541
+ updates
1542
+ )
1543
+ }
1544
+
2652
1545
  // ------ Common
2653
1546
 
2654
1547
  const formNavigation = () => ({
@@ -2804,28 +1697,6 @@ function defaultMetaProps() {
2804
1697
  })
2805
1698
  }
2806
1699
 
2807
- function defaultMetaPropsLegalLegacy() {
2808
- const meta = defaultMetaProps();
2809
- meta.data.dynamicSchema = [
2810
- generalLegalTOLPQuestions(),
2811
- commentsWithBankruptcy({
2812
- inputClass: '!t-h-28',
2813
- }),
2814
- legalCrossSells(),
2815
- autoAndCarAccidentCrossSellQuestions(),
2816
- personalInjuryCrossSellQuestions(),
2817
- workersCompensationCrossSellQuestions(),
2818
- duiAndDWICrossSellQuestions(),
2819
- ssdiCrossSellQuestions(),
2820
- powerOfAttorneyCrossSellQuestions(),
2821
- willsAndTrustsCrossSellQuestions(),
2822
- divorceAndSeparationCrossSellQuestions(),
2823
- childCustodyCrossSellQuestions(),
2824
- firstAndLastV2(),
2825
- ];
2826
- return meta
2827
- }
2828
-
2829
1700
  const dynamicSchemaNode = {
2830
1701
  $cmp: 'FormKitSchema',
2831
1702
  if: '$get(Type_Of_Legal_Problem).value',
@@ -2859,6 +1730,62 @@ function formAnchor(updates) {
2859
1730
  )
2860
1731
  }
2861
1732
 
1733
+ const progressBarDefaults = {
1734
+ $el: 'div',
1735
+ attrs: {
1736
+ class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
1737
+ style: {
1738
+ if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
1739
+ then: 'display: none'
1740
+ },
1741
+ },
1742
+ children: [
1743
+ {
1744
+ $el: 'div',
1745
+ attrs: {
1746
+ class: 't-flex t-justify-center'
1747
+ },
1748
+ children: [
1749
+ {
1750
+ $el: 'span',
1751
+ attrs: {
1752
+ id: 'progress-bar-text',
1753
+ class: 't-text-sm t-mb-1'
1754
+ },
1755
+ children: [
1756
+ "0% Complete"
1757
+ ]
1758
+ },
1759
+ ]
1760
+ },
1761
+ {
1762
+ $el: 'div',
1763
+ attrs: {
1764
+ class: 't-bg-gray-100 t-w-9/12 t-rounded'
1765
+ },
1766
+ children: [
1767
+ {
1768
+ $el: 'div',
1769
+ attrs: {
1770
+ id: 'progress-bar',
1771
+ class: 't-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]',
1772
+ style: {
1773
+ transition: 'width 0.5s ease'
1774
+ },
1775
+ },
1776
+ }
1777
+ ]
1778
+ }
1779
+ ]
1780
+ };
1781
+
1782
+ function progressBar(updates) {
1783
+ return merge(
1784
+ progressBarDefaults,
1785
+ updates
1786
+ )
1787
+ }
1788
+
2862
1789
  function headlineDefaults(updates = {}) {
2863
1790
  return {
2864
1791
  $el: 'h1',
@@ -2898,13 +1825,6 @@ function subHeadline(updates = {}) {
2898
1825
  )
2899
1826
  }
2900
1827
 
2901
- function defaultSubHeadline() {
2902
- return subHeadline({
2903
- children: '$urlParam("shl", "Our Service is Fast and Free!")',
2904
- if: '$activeStep === $firstStep()'
2905
- })
2906
- }
2907
-
2908
1828
  const hiddenInputsBase = [
2909
1829
  {
2910
1830
  $formkit: 'hidden',
@@ -2958,6 +1878,32 @@ const legalAllValueOverrideMap = {
2958
1878
  'Type_Of_Legal_Problem': 'File a Lawsuit'
2959
1879
  }
2960
1880
  },
1881
+ 'Business_Services_Display': {
1882
+ "Business Formation": {
1883
+ 'Business_Services': 'Business Formation'
1884
+ },
1885
+ "Contracts": {
1886
+ 'Business_Services': 'Contracts'
1887
+ },
1888
+ "Insurance and Liability": {
1889
+ 'Business_Services': 'Insurance and Liability'
1890
+ },
1891
+ "Mergers and Acquisition": {
1892
+ 'Business_Services': 'Mergers and Acquisition'
1893
+ },
1894
+ "Regulatory Compliance": {
1895
+ 'Business_Services': 'Regulatory Compliance'
1896
+ },
1897
+ "Employee Dispute": {
1898
+ 'Business_Services': 'Employee Dispute'
1899
+ },
1900
+ "Advice and Consulting": {
1901
+ 'Business_Services': 'Other',
1902
+ },
1903
+ "Other": {
1904
+ 'Business_Services': 'Other'
1905
+ }
1906
+ },
2961
1907
  'Type_Of_Legal_Problem_Display': {
2962
1908
  // Accidents and PI
2963
1909
  'Auto Accident': {
@@ -3248,19 +2194,456 @@ const TOLPFinalSubHeadlines = {
3248
2194
  // 'Non-Workplace Discrimination': '',
3249
2195
  };
3250
2196
 
2197
+ const nextStepsLegalDefault = [
2198
+ 'haveAttorney',
2199
+ 'degreeOfInterest',
2200
+ 'commentsWithBankruptcy',
2201
+ 'zipcode',
2202
+ 'legalCrossSells',
2203
+ 'firstAndLast',
2204
+ 'contactInfo',
2205
+ ];
2206
+
2207
+ const nextStepsLegalDefaultLPM = [
2208
+ 'haveAttorney',
2209
+ 'degreeOfInterest',
2210
+ 'lawyerPaymentMethod',
2211
+ 'commentsWithBankruptcy',
2212
+ 'zipcode',
2213
+ 'legalCrossSells',
2214
+ 'firstAndLast',
2215
+ 'contactInfo',
2216
+ ];
2217
+
2218
+ const nextStepsLegalNoDOI = [
2219
+ 'haveAttorney',
2220
+ 'commentsWithBankruptcy',
2221
+ 'zipcode',
2222
+ 'legalCrossSells',
2223
+ 'firstAndLast',
2224
+ 'contactInfo',
2225
+ ];
2226
+
2227
+ const nextStepsLegalNoHA = [
2228
+ 'degreeOfInterest',
2229
+ 'commentsWithBankruptcy',
2230
+ 'zipcode',
2231
+ 'legalCrossSells',
2232
+ 'firstAndLast',
2233
+ 'contactInfo',
2234
+ ];
2235
+
2236
+ const nextStepsMapGeneralLegal = {
2237
+ 'Type_Of_Legal_Problem': {
2238
+ 'Adoption': [
2239
+ 'maritalStatus',
2240
+ 'haveChildren',
2241
+ ...nextStepsLegalDefaultLPM
2242
+ ],
2243
+ 'Asbestos and Mesothelioma': [
2244
+ 'incidentDate',
2245
+ 'doctorTreatment',
2246
+ ...nextStepsLegalDefault
2247
+ ],
2248
+ 'Auto and Car Accidents': [
2249
+ 'incidentDate',
2250
+ 'atFault',
2251
+ 'primaryInjury',
2252
+ 'doctorTreatment',
2253
+ 'policeReportFiled',
2254
+ ...nextStepsLegalNoDOI
2255
+ ],
2256
+ 'Bankruptcy': [
2257
+ 'totalMonthlyIncome',
2258
+ 'totalDebt',
2259
+ 'ownRealEstate',
2260
+ 'valueOfAssets',
2261
+ ...nextStepsLegalDefault
2262
+ ],
2263
+ 'Business Lawyers': [
2264
+ 'businessServices',
2265
+ 'businessType',
2266
+ 'numEmployeesOfBusiness',
2267
+ ...nextStepsLegalDefault
2268
+ ],
2269
+ 'Child Custody': [
2270
+ 'childRelationship',
2271
+ 'childHome',
2272
+ 'childPrimaryCaregiver',
2273
+ ...nextStepsLegalDefaultLPM
2274
+ ],
2275
+ 'Child Support': [
2276
+ 'childRelationship',
2277
+ 'childHome',
2278
+ 'childPrimaryCaregiver',
2279
+ ...nextStepsLegalDefaultLPM
2280
+ ],
2281
+ 'Civil Rights and Discrimination': [
2282
+ 'civilRightsType',
2283
+ ...nextStepsLegalDefault
2284
+ ],
2285
+ 'Civil Lawsuit': [
2286
+ 'civilDefense',
2287
+ 'lawsuitOtherParty',
2288
+ ...nextStepsLegalDefault
2289
+ ],
2290
+ 'File a Lawsuit': [
2291
+ 'civilLawsuitTOLPDisplay',
2292
+ 'lawsuitOtherParty',
2293
+ ...nextStepsLegalDefault
2294
+ ],
2295
+ 'Defend a Lawsuit': [
2296
+ 'lawsuitOtherParty',
2297
+ ...nextStepsLegalDefault
2298
+ ],
2299
+ 'Consumer Lawyers': [
2300
+ 'consumerLawyerType',
2301
+ 'incidentDate',
2302
+ 'lawsuitOtherParty',
2303
+ ...nextStepsLegalDefault
2304
+ ],
2305
+ 'Criminal and Felony': [
2306
+ 'criminalTOLPDisplay',
2307
+ 'crimeCommittedDate',
2308
+ 'roleInMatterCriminal',
2309
+ 'pendingCharges',
2310
+ ...nextStepsLegalDefaultLPM
2311
+ ],
2312
+ 'Debt and Collections': [
2313
+ 'totalMonthlyIncome',
2314
+ 'totalDebt',
2315
+ 'ownRealEstate',
2316
+ 'valueOfAssets',
2317
+ ...nextStepsLegalDefault
2318
+ ],
2319
+ 'Divorce and Separation': [
2320
+ 'maritalStatus',
2321
+ 'haveChildren',
2322
+ ...nextStepsLegalDefaultLPM
2323
+ ],
2324
+ 'DUI and DWI': [
2325
+ 'incidentDate',
2326
+ 'priorAlcoholOffenses',
2327
+ 'typeOfAlcoholTest',
2328
+ 'bloodContentAlcoholTest',
2329
+ 'pendingCharges',
2330
+ ...nextStepsLegalDefault
2331
+ ],
2332
+ 'Employment and Workplace': [
2333
+ 'employmentAndWorkplaceTOLPDisplay',
2334
+ 'numEmployeesOfBusiness',
2335
+ 'employerType',
2336
+ 'employeeAtCompany',
2337
+ ...nextStepsLegalDefault
2338
+ ],
2339
+ 'Expungement': [
2340
+ 'incidentDate',
2341
+ 'criminalChargeType',
2342
+ ...nextStepsLegalDefaultLPM
2343
+ ],
2344
+ 'Family Issues': [
2345
+ 'maritalStatus',
2346
+ 'haveChildren',
2347
+ ...nextStepsLegalDefaultLPM
2348
+ ],
2349
+ 'Foreclosure': [
2350
+ 'ownRealEstate',
2351
+ 'typeOfProperty',
2352
+ 'amountPaymentsPastDue',
2353
+ 'loanAmount',
2354
+ 'defaultNotice',
2355
+ ...nextStepsLegalDefault
2356
+ ],
2357
+ 'Guardianship': [
2358
+ 'maritalStatus',
2359
+ 'haveChildren',
2360
+ ...nextStepsLegalDefaultLPM
2361
+ ],
2362
+ 'Immigration and Visas': [
2363
+ 'countryOfCitizenship',
2364
+ 'immigrationLocation',
2365
+ 'immigrationEntry',
2366
+ 'immigrationType',
2367
+ 'immigrationStatus',
2368
+ 'immigrationDetails',
2369
+ ...nextStepsLegalDefault
2370
+ ],
2371
+ 'Landlord and Tenant': [
2372
+ 'landlordTenantIssue',
2373
+ 'landlordTenantParty',
2374
+ ...nextStepsLegalDefault
2375
+ ],
2376
+ 'Lemon Law': [
2377
+ 'incidentDate',
2378
+ 'lawsuitOtherParty',
2379
+ ...nextStepsLegalDefault
2380
+ ],
2381
+ 'Long Term Disability': [
2382
+ 'applicantOccupation',
2383
+ 'applicantAge',
2384
+ 'applicantLTDisabilityPolicy',
2385
+ 'applicantDisabilityHowObtain',
2386
+ 'applicantPreviouslyAppliedLtdBenefits',
2387
+ 'applicantReceivedDisabilityBenefits',
2388
+ 'applicantMonthlySalary',
2389
+ ...nextStepsLegalNoDOI
2390
+ ],
2391
+ 'Medical Malpractice': [
2392
+ 'incidentDate',
2393
+ 'claimStatus',
2394
+ 'doctorTreatment',
2395
+ 'medicalMalpracticeInjuries',
2396
+ ...nextStepsLegalDefault
2397
+ ],
2398
+ 'Patents and Intellectual Property': [
2399
+ 'patentAssistanceType',
2400
+ 'patentFor',
2401
+ ...nextStepsLegalDefault
2402
+ ],
2403
+ 'Personal Injury': [
2404
+ 'incidentDate',
2405
+ 'claimStatus',
2406
+ 'atFault',
2407
+ 'primaryInjury',
2408
+ 'doctorTreatment',
2409
+ ...nextStepsLegalNoDOI
2410
+ ],
2411
+ 'Probate and Estates': [
2412
+ 'valueOfAssets',
2413
+ 'typeOfAssets',
2414
+ 'roleInMatterProbate',
2415
+ 'estateLegalServicesNeeded',
2416
+ ...nextStepsLegalDefault
2417
+ ],
2418
+ 'Property Damage': [
2419
+ 'realEstateArea',
2420
+ 'wouldLikeLawyerTo',
2421
+ ...nextStepsLegalDefault
2422
+ ],
2423
+ 'Real Estate': [
2424
+ 'realEstateTOLPDisplay',
2425
+ 'realEstateArea',
2426
+ 'wouldLikeLawyerTo',
2427
+ ...nextStepsLegalDefault
2428
+ ],
2429
+ 'Social Security Disability and Insurance': [
2430
+ 'applicantAge',
2431
+ 'disabilityConditionStopWork',
2432
+ 'disabilityWorkHistory',
2433
+ 'socialSecurityDisabilityReceivingBenefits',
2434
+ 'doctorTreatment',
2435
+ ...nextStepsLegalNoDOI
2436
+ ],
2437
+ 'Tax and IRS': [
2438
+ 'totalDebt',
2439
+ 'taxProblemDetails',
2440
+ 'taxLevel',
2441
+ 'taxIssueType',
2442
+ ...nextStepsLegalDefault
2443
+ ],
2444
+ 'Traffic and Tickets': [
2445
+ 'driversLicenseType',
2446
+ 'trafficViolations',
2447
+ 'haveCourtDate',
2448
+ ...nextStepsLegalDefault
2449
+ ],
2450
+ 'Unemployment': [
2451
+ 'numEmployeesOfBusiness',
2452
+ 'employerType',
2453
+ ...nextStepsLegalNoHA
2454
+ ],
2455
+ 'Victim of a Crime': [
2456
+ 'crimeCommittedDate',
2457
+ 'roleInMatterCriminal',
2458
+ 'pendingCharges',
2459
+ ...nextStepsLegalDefaultLPM
2460
+ ],
2461
+ 'Wills and Trusts': [
2462
+ 'valueOfAssets',
2463
+ 'typeOfAssets',
2464
+ 'roleInMatterProbate',
2465
+ 'estateLegalServicesNeeded',
2466
+ ...nextStepsLegalDefault
2467
+ ],
2468
+ 'Workers Compensation': [
2469
+ 'incidentDate',
2470
+ 'claimStatus',
2471
+ 'primaryInjury',
2472
+ 'causeOfInjury',
2473
+ 'doctorTreatment',
2474
+ ...nextStepsLegalNoDOI
2475
+ ],
2476
+ 'Workplace Harassment': [
2477
+ 'numEmployeesOfBusiness',
2478
+ 'employerType',
2479
+ 'employeeAtCompany',
2480
+ ...nextStepsLegalDefault
2481
+ ],
2482
+ 'Workplace Discrimination': [
2483
+ 'numEmployeesOfBusiness',
2484
+ 'employerType',
2485
+ 'employeeAtCompany',
2486
+ ...nextStepsLegalDefault
2487
+ ],
2488
+ 'Wrongful Death': [
2489
+ 'incidentDate',
2490
+ 'relationshipToVictim',
2491
+ 'criminalChargesFiled',
2492
+ 'causeOfDeath',
2493
+ ...nextStepsLegalNoDOI
2494
+ ],
2495
+ 'Wrongful Termination': [
2496
+ 'numEmployeesOfBusiness',
2497
+ 'employerType',
2498
+ ...nextStepsLegalDefault
2499
+ ],
2500
+ },
2501
+ '*': nextStepsLegalDefault
2502
+ };
2503
+
2504
+ // function filterMapByKey(obj, keyList) {
2505
+ // return Object.fromEntries(
2506
+ // Object.entries(obj).filter(([key]) => keyList.includes(key))
2507
+ // );
2508
+ // }
2509
+
2510
+ // export function filteredNextStepsMapLegal(keyList) {
2511
+ // const res = { Type_Of_Legal_Problem: filterMapByKey(nextStepsMapGeneralLegal["Type_Of_Legal_Problem"], keyList) }
2512
+ // res["*"] = nextStepsMapGeneralLegal["*"]
2513
+ // return res
2514
+ // }
3251
2515
 
3252
- const nextStepsMapLegalLegacy = {
2516
+ const TOLPNextSteps = nextStepsMapGeneralLegal["Type_Of_Legal_Problem"];
2517
+
2518
+ ({
2519
+ 'Civil_Defense': {
2520
+ 'Yes': TOLPNextSteps["Defend a Lawsuit"],
2521
+ 'No': TOLPNextSteps["File a Lawsuit"],
2522
+ },
3253
2523
  '*': [
3254
- 'TOLPQuestions',
3255
- 'commentsWithBankruptcy',
3256
- 'legalCrossSells',
3257
- 'firstAndLast',
3258
- 'contactInfo',
2524
+ 'lawsuitOtherParty',
2525
+ ...nextStepsLegalDefault
2526
+ ]
2527
+ });
2528
+
2529
+ ({
2530
+ 'Type_Of_Legal_Problem': {
2531
+ 'Defend a Lawsuit': TOLPNextSteps["Defend a Lawsuit"],
2532
+ 'File a Lawsuit': TOLPNextSteps["File a Lawsuit"],
2533
+ },
2534
+ '*': [
2535
+ 'lawsuitOtherParty',
2536
+ ...nextStepsLegalDefault
2537
+ ]
2538
+ });
2539
+
2540
+ ({
2541
+ 'Type_Of_Legal_Problem_Display': {
2542
+ 'Automobile Accident': TOLPNextSteps["Auto and Car Accidents"],
2543
+ 'Contract Disputes': TOLPNextSteps["Business Lawyers"],
2544
+ 'Dog Bite': TOLPNextSteps["Personal Injury"],
2545
+ 'Employment and Workplace': TOLPNextSteps["Employment and Workplace"],
2546
+ 'Fraud': TOLPNextSteps["Consumer Lawyers"],
2547
+ 'Medical Malpractice': TOLPNextSteps["Medical Malpractice"],
2548
+ 'Personal Injury': TOLPNextSteps["Personal Injury"],
2549
+ 'Property Damage': TOLPNextSteps["Property Damage"],
2550
+ 'Real Estate': TOLPNextSteps["Real Estate"],
2551
+ 'Not Sure or Other': nextStepsMapGeneralLegal["*"],
2552
+ },
2553
+ '*': [
2554
+ 'lawsuitOtherParty',
2555
+ ...nextStepsLegalDefault
2556
+ ]
2557
+ });
2558
+
2559
+ const nextStepsMapCriminalTOLPDisplay = {
2560
+ 'Type_Of_Legal_Problem_Display': {
2561
+ 'Victim of a Crime': TOLPNextSteps["Victim of a Crime"],
2562
+ 'DUI and DWI': TOLPNextSteps["DUI and DWI"],
2563
+ 'Expungement': TOLPNextSteps["Expungement"],
2564
+ 'Not Sure or Other': nextStepsMapGeneralLegal["*"],
2565
+ },
2566
+ '*': [
2567
+ 'crimeCommittedDate',
2568
+ 'roleInMatterCriminal',
2569
+ 'pendingCharges',
2570
+ ...nextStepsLegalDefaultLPM
3259
2571
  ]
3260
2572
  };
3261
2573
 
2574
+ ({
2575
+ 'Type_Of_Legal_Problem_Display': {
2576
+ 'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
2577
+ 'Workers Compensation': TOLPNextSteps["Workers Compensation"],
2578
+ 'Personal Injury': TOLPNextSteps["Personal Injury"],
2579
+ 'Unemployment': TOLPNextSteps["Unemployment"],
2580
+ },
2581
+ '*': [
2582
+ 'numEmployeesOfBusiness',
2583
+ 'employerType',
2584
+ 'employeeAtCompany',
2585
+ ...nextStepsLegalDefault
2586
+ ]
2587
+ });
2588
+
2589
+ ({
2590
+ 'Type_Of_Legal_Problem_Display': {
2591
+ 'Foreclosure': TOLPNextSteps["Foreclosure"],
2592
+ 'Landlord and Tenant': TOLPNextSteps["Landlord and Tenant"],
2593
+ 'Wills, Trusts, and Estates': TOLPNextSteps["Wills and Trusts"],
2594
+ 'Property Damage': TOLPNextSteps['Property Damage'],
2595
+ },
2596
+ '*': [
2597
+ 'realEstateArea',
2598
+ 'wouldLikeLawyerTo',
2599
+ ...nextStepsLegalDefault
2600
+ ]
2601
+ });
2602
+
2603
+ const meta = defaultMetaProps();
2604
+
2605
+ meta.data.dynamicSchema = [
2606
+ bloodContentAlcoholTest(),
2607
+ crimeCommittedDate({
2608
+ nextOnInput: false
2609
+ }),
2610
+ criminalChargeType(),
2611
+ criminalChargesFiled(),
2612
+ degreeOfInterest(),
2613
+ haveAttorney(),
2614
+ incidentDate({
2615
+ nextOnInput: false
2616
+ }),
2617
+ lawyerPaymentMethod(),
2618
+ pendingCharges(),
2619
+ priorAlcoholOffenses(),
2620
+ roleInMatterCriminal(),
2621
+ typeOfAlcoholTest(),
2622
+ zipcode(),
2623
+ commentsWithBankruptcy({
2624
+ label: null,
2625
+ headline: 'Please briefly describe your situation:',
2626
+ headlineClass: '!t-text-dark',
2627
+ }),
2628
+ legalCrossSells({
2629
+ headlineClass: '!t-text-dark'
2630
+ }),
2631
+ autoAndCarAccidentCrossSellQuestions(),
2632
+ personalInjuryCrossSellQuestions(),
2633
+ workersCompensationCrossSellQuestions(),
2634
+ duiAndDWICrossSellQuestions(),
2635
+ ssdiCrossSellQuestions(),
2636
+ powerOfAttorneyCrossSellQuestions(),
2637
+ willsAndTrustsCrossSellQuestions(),
2638
+ divorceAndSeparationCrossSellQuestions(),
2639
+ childCustodyCrossSellQuestions(),
2640
+ firstAndLastV3({
2641
+ headlineClass: '!t-text-dark'
2642
+ }),
2643
+ ];
2644
+
3262
2645
  const schema = [
3263
- defaultMetaPropsLegalLegacy(),
2646
+ meta,
3264
2647
  formAnchor(),
3265
2648
  {
3266
2649
  $cmp: 'FormKit',
@@ -3270,8 +2653,12 @@ const schema = [
3270
2653
  valueOverrideMap: legalAllValueOverrideMap
3271
2654
  }),
3272
2655
  children: [
2656
+ progressBar(),
3273
2657
  defaultHeadline(),
3274
- defaultSubHeadline(),
2658
+ subHeadline({
2659
+ children: '$urlParam("shl", "Select a Category Below to Get Started!")',
2660
+ if: '$activeStep === $firstStep()',
2661
+ }),
3275
2662
  ...hiddenInputsLegal,
3276
2663
  {
3277
2664
  $el: 'div',
@@ -3279,8 +2666,9 @@ const schema = [
3279
2666
  class: 'form-body'
3280
2667
  },
3281
2668
  children: [
3282
- criminalTOLPAndZip({
3283
- nextStepMap: nextStepsMapLegalLegacy
2669
+ criminalTOLP({
2670
+ nextOnInput: false,
2671
+ nextStepMap: nextStepsMapCriminalTOLPDisplay
3284
2672
  }),
3285
2673
  dynamicSchemaNode,
3286
2674
  contactInfo(),