bhl-forms 0.11.3 → 0.11.5

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 (120) hide show
  1. package/dist/bhl-forms.iife.js +1 -1
  2. package/dist/bhl-forms.modern.iife.js +1 -1
  3. package/dist/bhl-forms.modern.umd.js +1 -1
  4. package/dist/bhl-forms.umd.js +1 -1
  5. package/dist/forms/accidentsAndInjuries.es.js +491 -870
  6. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  7. package/dist/forms/accidentsAndInjuries.json +1 -1
  8. package/dist/forms/applianceRepairMinimal.es.js +1 -1
  9. package/dist/forms/applianceRepairMinimal.iife.js +1 -1
  10. package/dist/forms/applianceRepairMinimal.json +1 -1
  11. package/dist/forms/appraisals.es.js +1 -1
  12. package/dist/forms/appraisals.iife.js +1 -1
  13. package/dist/forms/appraisals.json +1 -1
  14. package/dist/forms/business.es.js +5 -5
  15. package/dist/forms/business.iife.js +1 -1
  16. package/dist/forms/business.json +1 -1
  17. package/dist/forms/childAndFamily.es.js +5 -5
  18. package/dist/forms/childAndFamily.iife.js +1 -1
  19. package/dist/forms/childAndFamily.json +1 -1
  20. package/dist/forms/childAndFamilySingle.es.js +6 -6
  21. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  22. package/dist/forms/childAndFamilySingle.json +1 -1
  23. package/dist/forms/civilLawsuit.es.js +21 -6
  24. package/dist/forms/civilLawsuit.iife.js +1 -1
  25. package/dist/forms/civilLawsuit.json +1 -1
  26. package/dist/forms/coins.es.js +1 -1
  27. package/dist/forms/coins.iife.js +1 -1
  28. package/dist/forms/coins.json +1 -1
  29. package/dist/forms/contracts.es.js +5 -5
  30. package/dist/forms/contracts.iife.js +1 -1
  31. package/dist/forms/contracts.json +1 -1
  32. package/dist/forms/criminal.es.js +6 -6
  33. package/dist/forms/criminal.iife.js +1 -1
  34. package/dist/forms/criminal.json +1 -1
  35. package/dist/forms/divorce.es.js +6 -6
  36. package/dist/forms/divorce.iife.js +1 -1
  37. package/dist/forms/divorce.json +1 -1
  38. package/dist/forms/employmentAndWorkplace.es.js +21 -6
  39. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  40. package/dist/forms/employmentAndWorkplace.json +1 -1
  41. package/dist/forms/foreclosure.es.js +112 -70
  42. package/dist/forms/foreclosure.iife.js +1 -1
  43. package/dist/forms/foreclosure.json +1 -1
  44. package/dist/forms/generalContractors.es.js +4 -4
  45. package/dist/forms/generalContractors.iife.js +1 -1
  46. package/dist/forms/generalContractors.json +1 -1
  47. package/dist/forms/generalHomeImprovement.es.js +4 -4
  48. package/dist/forms/generalHomeImprovement.iife.js +1 -1
  49. package/dist/forms/generalHomeImprovement.json +1 -1
  50. package/dist/forms/generalHomeImprovementThankYou.es.js +4 -4
  51. package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
  52. package/dist/forms/generalHomeImprovementThankYou.json +1 -1
  53. package/dist/forms/generalLegal.es.js +5 -5
  54. package/dist/forms/generalLegal.iife.js +1 -1
  55. package/dist/forms/generalLegal.json +1 -1
  56. package/dist/forms/generalLegalJustAnswer.es.js +23 -8
  57. package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
  58. package/dist/forms/generalLegalJustAnswer.json +1 -1
  59. package/dist/forms/generalLegalPopUnder.es.js +5 -5
  60. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  61. package/dist/forms/generalLegalPopUnder.json +1 -1
  62. package/dist/forms/generalLegalPopUnderSingle.es.js +23 -8
  63. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  64. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  65. package/dist/forms/generalLegalSingle.es.js +23 -8
  66. package/dist/forms/generalLegalSingle.iife.js +1 -1
  67. package/dist/forms/generalLegalSingle.json +1 -1
  68. package/dist/forms/generalLegalSingleMinimal.es.js +5 -5
  69. package/dist/forms/generalLegalSingleMinimal.iife.js +1 -1
  70. package/dist/forms/generalLegalSingleMinimal.json +1 -1
  71. package/dist/forms/generalLegalThankYou.es.js +4 -4
  72. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  73. package/dist/forms/generalLegalThankYou.json +1 -1
  74. package/dist/forms/generalLegalThankYouConsultation.es.js +23 -8
  75. package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
  76. package/dist/forms/generalLegalThankYouConsultation.json +1 -1
  77. package/dist/forms/harassmentAndDiscrimination.es.js +5 -5
  78. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  79. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  80. package/dist/forms/landlordTenant.es.js +6 -6
  81. package/dist/forms/landlordTenant.iife.js +1 -1
  82. package/dist/forms/landlordTenant.json +1 -1
  83. package/dist/forms/malpractice.es.js +4 -4
  84. package/dist/forms/malpractice.iife.js +1 -1
  85. package/dist/forms/malpractice.json +1 -1
  86. package/dist/forms/mechanics.es.js +4 -4
  87. package/dist/forms/mechanics.iife.js +1 -1
  88. package/dist/forms/mechanics.json +1 -1
  89. package/dist/forms/patentsAndIP.es.js +6 -6
  90. package/dist/forms/patentsAndIP.iife.js +1 -1
  91. package/dist/forms/patentsAndIP.json +1 -1
  92. package/dist/forms/realEstate.es.js +5 -5
  93. package/dist/forms/realEstate.iife.js +1 -1
  94. package/dist/forms/realEstate.json +1 -1
  95. package/dist/forms/repossession.es.js +5 -5
  96. package/dist/forms/repossession.iife.js +1 -1
  97. package/dist/forms/repossession.json +1 -1
  98. package/dist/forms/ssdi.es.js +2 -2
  99. package/dist/forms/ssdi.iife.js +1 -1
  100. package/dist/forms/ssdi.json +1 -1
  101. package/dist/forms/testForm.es.js +1 -1
  102. package/dist/forms/testForm.iife.js +1 -1
  103. package/dist/forms/testForm.json +1 -1
  104. package/dist/forms/testRedirects.es.js +4 -4
  105. package/dist/forms/testRedirects.iife.js +1 -1
  106. package/dist/forms/testRedirects.json +1 -1
  107. package/dist/forms/vets.es.js +1 -1
  108. package/dist/forms/vets.iife.js +1 -1
  109. package/dist/forms/vets.json +1 -1
  110. package/dist/forms/willsAndTrusts.es.js +5 -5
  111. package/dist/forms/willsAndTrusts.iife.js +1 -1
  112. package/dist/forms/willsAndTrusts.json +1 -1
  113. package/dist/forms/windows.es.js +4 -4
  114. package/dist/forms/windows.iife.js +1 -1
  115. package/dist/forms/windows.json +1 -1
  116. package/dist/forms/workersCompensation.es.js +5 -5
  117. package/dist/forms/workersCompensation.iife.js +1 -1
  118. package/dist/forms/workersCompensation.json +1 -1
  119. package/dist/main.css +1 -1
  120. package/package.json +1 -1
@@ -17,90 +17,6 @@ const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL =
17
17
  '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
18
18
  const TCPA_LANGUAGE_LEGAL =
19
19
  "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
20
- const defaultLegalImprovementCrossSells = {
21
- "Auto and Car Accidents": "Injured in a Car Accident",
22
- "Personal Injury": "Personal or Workplace Injury",
23
- "DUI and DWI": "Involved in a DUI/DWI",
24
- "Wills and Trusts": "Need a Will or Trust",
25
- "Power of Attorney": "Update Power of Attorney",
26
- "Social Security Disability and Insurance": "Interest in Disability Benefits",
27
- };
28
- const CROSS_SELL_OPTION_MAP_LEGAL = {
29
- // Values can be a list or a map of value -> display value
30
- "Auto and Car Accidents": {
31
- "Social Security Disability and Insurance": "Interest in Disability Benefits",
32
- "Wills and Trusts": "Need a Will or Trust",
33
- "Workers Compensation": "Workplace Injury",
34
- "Power of Attorney": "Update Power of Attorney",
35
- "Divorce and Separation": "Need a Divorce or Separation",
36
- "Child Custody": "Need help with Child Custody",
37
- },
38
- "Personal Injury": {
39
- "DUI and DWI": "Involved in a DUI/DWI",
40
- "Wills and Trusts": "Need a Will or Trust",
41
- "Power of Attorney": "Update Power of Attorney",
42
- "Divorce and Separation": "Need a Divorce or Separation",
43
- "Child Custody": "Need help with Child Custody",
44
- // TODO add one more?
45
- },
46
- "Workers Compensation": {
47
- "Auto and Car Accidents": "Involved in a Car Accident",
48
- "Wills and Trusts": "Need a Will or Trust",
49
- "Power of Attorney": "Update Power of Attorney",
50
- "Divorce and Separation": "Need a Divorce or Separation",
51
- "Child Custody": "Need help with Child Custody",
52
- "Social Security Disability and Insurance": "Interest in SSDI Benefits",
53
- },
54
- "DUI and DWI": {
55
- "Personal Injury": "Personal or Workplace Injury",
56
- "Wills and Trusts": "Need a Will or Trust",
57
- "Social Security Disability and Insurance": "Interest in Disability Benefits",
58
- "Power of Attorney": "Update Power of Attorney",
59
- "Divorce and Separation": "Need a Divorce or Separation",
60
- "Child Custody": "Need help with Child Custody",
61
- },
62
- "Wills and Trusts": {
63
- "Auto and Car Accidents": "Injured in a Car Accident",
64
- "Personal Injury": "Personal or Workplace Injury",
65
- "DUI and DWI": "Involved in a DUI/DWI",
66
- "Social Security Disability and Insurance": "Interest in Disability Benefits",
67
- "Divorce and Separation": "Need a Divorce or Separation",
68
- "Child Custody": "Need help with Child Custody",
69
- },
70
- "Probate and Estates": {
71
- "Auto and Car Accidents": "Injured in a Car Accident",
72
- "Personal Injury": "Personal or Workplace Injury",
73
- "DUI and DWI": "Involved in a DUI/DWI",
74
- "Social Security Disability and Insurance": "Interest in Disability Benefits",
75
- "Divorce and Separation": "Need a Divorce or Separation",
76
- "Child Custody": "Need help with Child Custody",
77
- },
78
- "Power of Attorney": {
79
- "Auto and Car Accidents": "Injured in a Car Accident",
80
- "Personal Injury": "Personal or Workplace Injury",
81
- "DUI and DWI": "Involved in a DUI/DWI",
82
- "Social Security Disability and Insurance": "Interest in Disability Benefits",
83
- "Divorce and Separation": "Need a Divorce or Separation",
84
- "Child Custody": "Need help with Child Custody",
85
- },
86
- "Long Term Disability": {
87
- "Auto and Car Accidents": "Injured in a Car Accident",
88
- "DUI and DWI": "Involved in a DUI/DWI",
89
- "Wills and Trusts": "Need a Will or Trust",
90
- "Power of Attorney": "Update Power of Attorney",
91
- "Divorce and Separation": "Need a Divorce or Separation",
92
- "Child Custody": "Need help with Child Custody",
93
- },
94
- "Social Security Disability and Insurance": {
95
- "Auto and Car Accidents": "Injured in a Car Accident",
96
- "DUI and DWI": "Involved in a DUI/DWI",
97
- "Wills and Trusts": "Need a Will or Trust",
98
- "Power of Attorney": "Update Power of Attorney",
99
- "Divorce and Separation": "Need a Divorce or Separation",
100
- "Child Custody": "Need help with Child Custody",
101
- },
102
- "*": defaultLegalImprovementCrossSells,
103
- };
104
20
 
105
21
  // ------ Common Base Settings
106
22
 
@@ -134,31 +50,6 @@ const sbsCheckbox = (updates) => {
134
50
  return checkbox(updates)
135
51
  };
136
52
 
137
- const col2Checkbox = (updates) => {
138
- if (!updates || !updates.legendClass) {
139
- updates.legendClass = "required";
140
- }
141
- updates.fieldsetClass = "$reset";
142
- updates.optionsClass = "t-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
143
- updates.innerClass = "t-items-start";
144
- updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
145
- return checkbox(updates)
146
- };
147
-
148
- const verticalCol2Checkbox = (updates) => {
149
- if (!updates || !updates.legendClass) {
150
- updates.legendClass = "required t-w-[100%] t-text-center";
151
- }
152
- updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col";
153
- updates.innerClass = "t-items-start";
154
- updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
155
- updates.optionClass = "t-pl-4 md:t-pl-16 md:t-min-w-[200px]";
156
- updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
157
- updates.messagesClass = "t-flex t-justify-center";
158
- updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
159
- return checkbox(updates)
160
- };
161
-
162
53
  const radio = (updates) => {
163
54
  ensureIds(updates);
164
55
  return merge(
@@ -178,7 +69,7 @@ const radio = (updates) => {
178
69
  const col2Radio = (updates) => {
179
70
  updates.legendClass = "required";
180
71
  updates.fieldsetClass = "$reset";
181
- updates.optionsClass = "t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
72
+ updates.optionsClass = "t-pl-2 t-pt-3 t-grid t-grid-cols-1 sm:t-grid-cols-2";
182
73
  updates.innerClass = "t-items-start";
183
74
  updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
184
75
  return radio(updates)
@@ -192,8 +83,8 @@ const col2RadioCenter = (updates) => {
192
83
  }
193
84
  updates.innerClass = "t-items-start";
194
85
  updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
195
- updates.optionClass = "t-pl-4 md:t-pl-8 md:t-min-w-[200px]";
196
- updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
86
+ updates.optionClass = "t-pl-4 sm:t-pl-8 sm:t-min-w-[200px]";
87
+ updates.optionsClass = "t-pl-0 sm:t-pl-4 t-pt-3 t-grid t-grid-cols-1 sm:t-grid-cols-2";
197
88
  updates.messagesClass = "t-flex t-justify-center";
198
89
  updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
199
90
  return radio(updates)
@@ -268,15 +159,6 @@ const sbsSelect = (updates) => {
268
159
  return select(updates)
269
160
  };
270
161
 
271
- const verticalSelect = (updates) => {
272
- updates.labelClass = "required";
273
- updates.wrapperClass = "t-flex t-justify-center";
274
- updates.messagesClass = "t-flex t-justify-center";
275
- updates.inputClass = "t-min-w-[150px] t-bg-white " + (updates.inputClass || "");
276
- updates.helpClass = "t-mt-2.5 t-text-center";
277
- return select(updates)
278
- };
279
-
280
162
  const text = (updates) => {
281
163
  ensureIds(updates);
282
164
  return merge(
@@ -352,14 +234,11 @@ const verticalDate = (updates) => {
352
234
  return date(updates)
353
235
  };
354
236
 
355
- const email = (scope, vertical, updates = {}) => {
356
- const func = vertical ? verticalText : sbsText;
357
- const label = vertical ? updates.label : "Email Address:";
358
- return func({
359
- $formkit: "email",
237
+ const emailFL = (scope, updates = {}) => {
238
+ return text({
239
+ $formkit: "FloatingLabelText",
360
240
  name: scope ? scope + ":" + "Email" : "Email",
361
- label,
362
- placeholder: "email@domain.com",
241
+ placeholder: "Email Address",
363
242
  autocomplete: "email",
364
243
  "data-tf-sensitive": "false",
365
244
  validation: "required|email",
@@ -367,64 +246,77 @@ const email = (scope, vertical, updates = {}) => {
367
246
  required: "Email is required",
368
247
  email: "Invalid Email",
369
248
  },
249
+ inputClass: "t-text-center",
250
+ wrapperClass: "t-flex t-justify-center",
370
251
  ...updates,
371
252
  })
372
253
  };
373
254
 
374
- const firstName = (scope, vertical, updates = {}) => {
375
- const func = vertical ? verticalText : sbsText;
376
- const label = vertical ? updates.label : "First Name:";
377
- return func({
378
- label,
255
+ const firstNameFL = (scope, updates = {}) => {
256
+ return text({
257
+ $formkit: "FloatingLabelText",
379
258
  placeholder: "First Name",
380
259
  name: scope ? scope + ":" + "First_Name" : "First_Name",
381
260
  autocomplete: "given-name",
382
261
  validationMessages: {
383
262
  required: "First Name is required",
384
263
  },
264
+ inputClass: "t-text-center",
385
265
  ...updates,
386
266
  })
387
267
  };
388
268
 
389
- const lastName = (scope, vertical, updates = {}) => {
390
- const func = vertical ? verticalText : sbsText;
391
- const label = vertical ? updates.label : "Last Name:";
392
- return func({
393
- label,
269
+ const lastNameFL = (scope, updates = {}) => {
270
+ return text({
271
+ $formkit: "FloatingLabelText",
394
272
  placeholder: "Last Name",
395
273
  name: scope ? scope + ":" + "Last_Name" : "Last_Name",
396
274
  autocomplete: "family-name",
397
275
  validationMessages: {
398
276
  required: "Last Name is required",
399
277
  },
278
+ inputClass: "t-text-center",
400
279
  ...updates,
401
280
  })
402
281
  };
403
282
 
404
- const phone = (scope, vertical, updates = {}) => {
405
- const func = vertical ? verticalText : sbsText;
406
- const label = vertical ? updates.label : "Phone Number:";
407
- return func({
408
- $formkit: "tel",
283
+ const fullNameFLMobileCol = (scope, updates = {}) => {
284
+ return {
285
+ $el: "div",
286
+ attrs: {
287
+ class: "t-flex t-flex-col sm:t-flex-row t-flex-wrap t-gap-x-[2%] t-justify-center sm:!t-max-w-[70%]",
288
+ },
289
+ children: [
290
+ firstNameFL(scope, { outerClass: "sm:!t-max-w-[49%]", ...updates }),
291
+ lastNameFL(scope, { outerClass: "sm:!t-max-w-[49%]", ...updates }),
292
+ ],
293
+ }
294
+ };
295
+
296
+ const phoneFL = (scope, updates = {}) => {
297
+ return text({
298
+ $formkit: "FloatingLabelText",
299
+ datatype: "tel",
409
300
  name: scope ? scope + ":" + "Primary_Phone" : "Primary_Phone",
410
- label,
411
- placeholder: updates.placeholder || "###-###-####",
412
- maxlength: 12,
413
- help: updates.help || "10-digit phone number, hyphens optional",
301
+ placeholder: updates.placeholder || "Phone Number",
302
+ maxlength: 14,
303
+ help: updates.help || null,
414
304
  autocomplete: "tel-national",
415
305
  "data-tf-sensitive": "false",
416
- validation: "required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",
306
+ validation: "required|matches:/^[0-9]{3}[0-9]{3}[0-9]{4}$/|valid_phone",
417
307
  validationMessages: {
418
308
  required: "Phone Number is required",
419
- matches: "Invalid Phone Format, use ###-###-####",
309
+ matches: "Invalid Phone Format, use (XXX) YYY-ZZZZ",
420
310
  valid_phone: "Invalid Phone Number",
421
311
  },
422
312
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]",
313
+ inputClass: "t-text-center",
314
+ wrapperClass: "t-flex t-justify-center",
423
315
  ...updates,
424
316
  })
425
317
  };
426
318
 
427
- const zipcode = (scope, vertical, updates = {}) => {
319
+ const zipcode$1 = (scope, vertical, updates = {}) => {
428
320
  const func = vertical ? verticalText : sbsText;
429
321
  const label = vertical ? updates.label : "Zip Code:";
430
322
  const help = vertical ? updates.help ?? "We try to match you with local help" : null;
@@ -472,30 +364,7 @@ const accidentsAndInjuriesTOLPDisplay = (scope, vertical, updates = {}) => {
472
364
  )
473
365
  };
474
366
 
475
- const applicantAge = (scope, vertical, updates = {}) => {
476
- const func = vertical ? verticalText : sbsText;
477
- const label = vertical ? updates.label : "Age of Applicant?";
478
- const value = vertical ? updates.value ?? "50" : null;
479
- return func(
480
- merge({
481
- label,
482
- placeholder: "Age between 18 and 65",
483
- name: scope ? scope + ":" + "Applicant_Age" : "Applicant_Age",
484
- value,
485
- maxlength: 2,
486
- inputmode: "numeric",
487
- validation: "required|min:18,max:65",
488
- validationMessages: {
489
- required: "Applicant Age is required",
490
- min: "Invalid Age - must be between 18 and 65",
491
- max: "Invalid Age - must be between 18 and 65",
492
- },
493
- ...updates,
494
- })
495
- )
496
- };
497
-
498
- const atFault = (scope, vertical, updates = {}) => {
367
+ const atFault$1 = (scope, vertical, updates = {}) => {
499
368
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
500
369
  const label = vertical ? updates.label : "Were You at Fault?";
501
370
  return func(
@@ -520,31 +389,7 @@ const bankruptcyCrossSell = (scope) =>
520
389
  helpClass: "!t-text-sm",
521
390
  });
522
391
 
523
- const bloodContentAlcoholTest = (scope, vertical, updates = {}) => {
524
- const func = vertical ? verticalSelect : sbsSelect;
525
- const label = vertical ? updates.label : "Blood Alcohol Content Measured by Test:";
526
- return func(
527
- merge(
528
- {
529
- label,
530
- name: scope ? scope + ":" + "Blood_Alcohol_Content_Test" : "Blood_Alcohol_Content_Test",
531
- options: [
532
- "No Test",
533
- "0.00% - 0.04%",
534
- "0.05% - 0.08%",
535
- "0.09% - 0.12%",
536
- "0.13% - 0.16%",
537
- "0.17% - 0.20%",
538
- "More than 0.20%",
539
- "Don't know",
540
- ],
541
- },
542
- updates
543
- )
544
- )
545
- };
546
-
547
- const causeOfInjury = (scope, vertical, updates = {}) => {
392
+ const causeOfInjury$1 = (scope, vertical, updates = {}) => {
548
393
  const func = vertical ? col2RadioCenter : sbsSelect;
549
394
  const label = vertical ? updates.label : "Cause of Injury:";
550
395
  return func(
@@ -565,52 +410,7 @@ const causeOfInjury = (scope, vertical, updates = {}) => {
565
410
  )
566
411
  };
567
412
 
568
- const childHome = (scope, vertical, updates = {}) => {
569
- const func = vertical ? col2RadioCenter : sbsSelect;
570
- const label = vertical ? updates.label : "With Whom Do the Children Currently Live?";
571
- return func(
572
- merge(
573
- {
574
- label,
575
- name: scope ? scope + ":" + "Child_Home" : "Child_Home",
576
- options: ["Mother", "Father", "Grandparents", "Other"],
577
- },
578
- updates
579
- )
580
- )
581
- };
582
-
583
- const childPrimaryCaregiver = (scope, vertical, updates = {}) => {
584
- const func = vertical ? verticalButtonRadio : sbsSelect;
585
- const label = vertical ? updates.label : "Who is the Primary Caregiver?";
586
- return func(
587
- merge(
588
- {
589
- label,
590
- name: scope ? scope + ":" + "Child_Primary_Caregiver" : "Child_Primary_Caregiver",
591
- options: ["Mother", "Father", "Other"],
592
- },
593
- updates
594
- )
595
- )
596
- };
597
-
598
- const childRelationship = (scope, vertical, updates = {}) => {
599
- const func = vertical ? col2RadioCenter : sbsSelect;
600
- const label = vertical ? updates.label : "Your Relationship to Child(ren):";
601
- return func(
602
- merge(
603
- {
604
- label,
605
- name: scope ? scope + ":" + "Child_Relationship" : "Child_Relationship",
606
- options: ["Father", "Mother", "Grandparent", "Aunt/Uncle", "Other"],
607
- },
608
- updates
609
- )
610
- )
611
- };
612
-
613
- const claimStatus = (scope, vertical, updates = {}) => {
413
+ const claimStatus$1 = (scope, vertical, updates = {}) => {
614
414
  const func = vertical ? col2RadioCenter : sbsSelect;
615
415
  const label = vertical ? updates.label : "Status of Claim:";
616
416
  return func(
@@ -639,58 +439,7 @@ const comments = (scope, vertical, updates) =>
639
439
  )
640
440
  );
641
441
 
642
- const degreeOfInterest = (scope, vertical, updates = {}) => {
643
- const func = vertical ? col2RadioCenter : sbsSelect;
644
- const label = vertical ? updates.label : "How Likely Are You to Pay if Your Issue Could be Resolved?";
645
- const help = vertical ? updates.help : "No payment necessary to speak with lawyers.";
646
- return func(
647
- merge(
648
- {
649
- name: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
650
- id: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
651
- label,
652
- help,
653
- options: ["Definitely", "Probably", "Maybe", "Absolutely Can't Afford"],
654
- },
655
- updates
656
- )
657
- )
658
- };
659
-
660
- const degreeOfInterestHelp = (scope, vertical, updates = {}) =>
661
- degreeOfInterest(scope, vertical, merge(updates, { help: "No payment necessary to speak with lawyers." }));
662
-
663
- const disabilityConditionStopWork = (scope, vertical, updates = {}) => {
664
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
665
- const label = vertical
666
- ? updates.label
667
- : "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?";
668
- return func(
669
- merge(
670
- {
671
- name: scope ? scope + ":" + "Disability_Condition_Stop_Work" : "Disability_Condition_Stop_Work",
672
- label,
673
- },
674
- updates
675
- )
676
- )
677
- };
678
-
679
- const disabilityWorkHistory = (scope, vertical, updates = {}) => {
680
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
681
- const label = vertical ? updates.label : "Have You Had a Full-Time Job Within the Past 5 Years?";
682
- return func(
683
- merge(
684
- {
685
- name: scope ? scope + ":" + "Disability_Work_History" : "Disability_Work_History",
686
- label,
687
- },
688
- updates
689
- )
690
- )
691
- };
692
-
693
- const doctorTreatment = (scope, vertical, updates = {}) => {
442
+ const doctorTreatment$1 = (scope, vertical, updates = {}) => {
694
443
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
695
444
  const label = vertical ? updates.label : "Have You Recently Been Treated by a Doctor, Hospital or Clinic?";
696
445
  return func(
@@ -704,29 +453,7 @@ const doctorTreatment = (scope, vertical, updates = {}) => {
704
453
  )
705
454
  };
706
455
 
707
- const estateLegalServicesNeeded = (scope, vertical, updates = {}) => {
708
- const func = vertical ? col2RadioCenter : sbsSelect;
709
- const label = vertical ? updates.label : "Legal Services Needed for Your Estate:";
710
- return func(
711
- merge(
712
- {
713
- name: scope ? scope + ":" + "Estate_Legal_Services_Needed" : "Estate_Legal_Services_Needed",
714
- label,
715
- options: [
716
- "Charitable Giving",
717
- "Contested Wills",
718
- "Drafting Wills or Trust",
719
- "Estate Administration",
720
- "Asset Protection",
721
- "Other",
722
- ],
723
- },
724
- updates
725
- )
726
- )
727
- };
728
-
729
- const haveAttorney = (scope, vertical, updates = {}) => {
456
+ const haveAttorney$1 = (scope, vertical, updates = {}) => {
730
457
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
731
458
  const label = vertical ? updates.label : "Already Working with An Attorney?";
732
459
  return func(
@@ -740,21 +467,7 @@ const haveAttorney = (scope, vertical, updates = {}) => {
740
467
  )
741
468
  };
742
469
 
743
- const haveChildren = (scope, vertical, updates = {}) => {
744
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
745
- const label = vertical ? updates.label : "Do You Have Children?";
746
- return func(
747
- merge(
748
- {
749
- name: scope ? scope + ":" + "Have_Children" : "Have_Children",
750
- label,
751
- },
752
- updates
753
- )
754
- )
755
- };
756
-
757
- const incidentDate = (scope, vertical, updates = {}) => {
470
+ const incidentDate$1 = (scope, vertical, updates = {}) => {
758
471
  const func = vertical ? verticalDate : sbsDate;
759
472
  const label = vertical ? updates.label : "Date of Incident:";
760
473
  return func(
@@ -768,81 +481,7 @@ const incidentDate = (scope, vertical, updates = {}) => {
768
481
  )
769
482
  };
770
483
 
771
- const lawyerPaymentMethod = (scope, vertical, updates = {}) => {
772
- const func = vertical ? col2RadioCenter : sbsSelect;
773
- const label = vertical ? updates.label : "How Will You Pay for Legal Fees if You Hire a Lawyer?";
774
- const help = vertical ? updates.help : "No payment necessary to start a consultation.";
775
- const options = vertical
776
- ? {
777
- Cash: "Cash",
778
- "Credit Card": "Credit Card",
779
- Family: "Family or Friend",
780
- Other: "Other",
781
- }
782
- : ["Cash", "Check", "Credit Card", "Friend", "Family", "Other"];
783
- return func(
784
- merge(
785
- {
786
- label,
787
- help,
788
- name: scope ? scope + ":" + "Lawyer_Payment_Method" : "Lawyer_Payment_Method",
789
- options,
790
- fieldsetClass: vertical ? "$reset t-flex t-flex-col t-items-center" : undefined,
791
- },
792
- updates
793
- )
794
- )
795
- };
796
-
797
- const legalCrossSells$1 = () =>
798
- col2Checkbox({
799
- id: "Legal_CrossSells",
800
- name: "Legal_CrossSells",
801
- help: 'Just hit "Next" if none apply',
802
- helpClass: "t-text-center !t-text-sm",
803
- validation: null,
804
- options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
805
- });
806
-
807
- const maritalStatus = (scope, vertical, updates = {}) => {
808
- const func = vertical ? col2RadioCenter : sbsSelect;
809
- const label = vertical ? updates.label : "Marital Status:";
810
- return func(
811
- merge(
812
- {
813
- label,
814
- name: scope ? scope + ":" + "Marital_Status" : "Marital_Status",
815
- options: [
816
- "Unmarried, Living Together",
817
- "Unmarried, Do Not Live Together",
818
- "Married, Living Together",
819
- "Separated",
820
- "Divorced",
821
- "Other",
822
- ],
823
- },
824
- updates
825
- )
826
- )
827
- };
828
-
829
- // XXX HERE
830
-
831
- const pendingCharges = (scope, vertical, updates = {}) => {
832
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
833
- const label = vertical ? updates.label : "Do you currently have any pending charges?";
834
- return func(
835
- merge(
836
- {
837
- name: scope ? scope + ":" + "Pending_Charges" : "Pending_Charges",
838
- label,
839
- },
840
- updates
841
- )
842
- )
843
- };
844
-
845
- const primaryInjury = (scope, vertical, updates = {}) => {
484
+ const primaryInjury$1 = (scope, vertical, updates = {}) => {
846
485
  const func = vertical ? col2RadioCenter : sbs2ColRadio;
847
486
  const label = vertical ? updates.label : "Primary Injury:";
848
487
  return func(
@@ -866,21 +505,7 @@ const primaryInjury = (scope, vertical, updates = {}) => {
866
505
  )
867
506
  };
868
507
 
869
- const priorAlcoholOffenses = (scope, vertical, updates = {}) => {
870
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
871
- const label = vertical ? updates.label : "Any Prior Alcohol Related Offenses?";
872
- return func(
873
- merge(
874
- {
875
- name: scope ? scope + ":" + "Prior_Alcohol_Offenses" : "Prior_Alcohol_Offenses",
876
- label,
877
- },
878
- updates
879
- )
880
- )
881
- };
882
-
883
- const policeReportFiled = (scope, vertical, updates = {}) => {
508
+ const policeReportFiled$1 = (scope, vertical, updates = {}) => {
884
509
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
885
510
  const label = vertical ? updates.label : "Was a Police Report Filed?";
886
511
  return func(
@@ -894,37 +519,6 @@ const policeReportFiled = (scope, vertical, updates = {}) => {
894
519
  )
895
520
  };
896
521
 
897
- const roleInMatterProbate = (scope, vertical, updates = {}) => {
898
- const func = vertical ? col2RadioCenter : sbsSelect;
899
- const label = vertical ? updates.label : "What is Your Role in this Matter?";
900
- return func(
901
- merge(
902
- {
903
- label,
904
- name: scope ? scope + ":" + "Role_In_Matter_Probate" : "Role_In_Matter_Probate",
905
- options: ["Preparing My Will", "Executor", "Heir", "Other"],
906
- },
907
- updates
908
- )
909
- )
910
- };
911
-
912
- const socialSecurityDisabilityReceivingBenefits = (scope, vertical, updates = {}) => {
913
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
914
- const label = vertical ? updates.label : "Are You Currently Receiving Social Security Disability Benefits?";
915
- return func(
916
- merge(
917
- {
918
- name: scope
919
- ? scope + ":" + "Social_Security_Disability_Receiving_Benefits"
920
- : "Social_Security_Disability_Receiving_Benefits",
921
- label,
922
- },
923
- updates
924
- )
925
- )
926
- };
927
-
928
522
  const TCPAConsent = (scope, updates = {}) => ({
929
523
  $formkit: "checkbox",
930
524
  label: "$meta.tcpaLanguage",
@@ -949,187 +543,6 @@ const TCPAConsent = (scope, updates = {}) => ({
949
543
  },
950
544
  });
951
545
 
952
- const typeOfAlcoholTest = (scope, vertical, updates = {}) => {
953
- const func = vertical ? col2RadioCenter : sbsSelect;
954
- const label = vertical ? updates.label : "Type of Alcohol Test Performed?";
955
- return func(
956
- merge(
957
- {
958
- label,
959
- name: scope ? scope + ":" + "Type_Of_Alcohol_Test" : "Type_Of_Alcohol_Test",
960
- options: ["No Test", "Refused Test", "Breath Test", "Blood Test", "Urine Test", "Don't Know"],
961
- },
962
- updates
963
- )
964
- )
965
- };
966
-
967
- const typeOfAssets = (scope, vertical, updates = {}) => {
968
- const func = vertical ? verticalCol2Checkbox : col2Checkbox;
969
- const label = vertical ? updates.label : "Type of Assets:";
970
- return func(
971
- merge(
972
- {
973
- label,
974
- name: scope ? scope + ":" + "Type_Of_Assets" : "Type_Of_Assets",
975
- options: [
976
- "Business Interests",
977
- "Cash",
978
- "Life Insurance Policies",
979
- "Pensions/Retirement",
980
- "Personal Possessions",
981
- "Property",
982
- "Stock/Bonds",
983
- ],
984
- },
985
- updates
986
- )
987
- )
988
- };
989
-
990
- const valueOfAssets = (scope, vertical, updates = {}) => {
991
- const func = vertical ? col2RadioCenter : sbsSelect;
992
- const label = vertical ? updates.label : "Value of Your Assets?";
993
- return func(
994
- merge(
995
- {
996
- label,
997
- name: scope ? scope + ":" + "Value_Of_Assets" : "Value_Of_Assets",
998
- options: ["Less than 50K", "50K to 100K", "100K to 250K", "250K to 500K", "500K to 1M", "More than 1M"],
999
- },
1000
- updates
1001
- )
1002
- )
1003
- };
1004
-
1005
- // ------ Question Groups - TODO: move these go separate file groups.js
1006
-
1007
- // NOTE: name must be unique within a form!
1008
- const group = (name, updates) => {
1009
- return merge(
1010
- {
1011
- $cmp: "FormKit",
1012
- props: {
1013
- type: "group",
1014
- key: name,
1015
- id: name,
1016
- name: name,
1017
- },
1018
- },
1019
- updates
1020
- )
1021
- };
1022
-
1023
- const AutoAndCarAccidentsQuestions = (condition, scope) =>
1024
- group("AutoAndCarAccidentsQuestions", {
1025
- if: condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
1026
- children: [
1027
- haveAttorney(scope),
1028
- incidentDate(scope),
1029
- atFault(scope),
1030
- primaryInjury(scope),
1031
- doctorTreatment(scope),
1032
- policeReportFiled(scope),
1033
- ],
1034
- });
1035
-
1036
- const ChildCustodyQuestions = (condition, scope) =>
1037
- group("ChildCustodyQuestions", {
1038
- if: condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"',
1039
- children: [
1040
- haveAttorney(scope),
1041
- childRelationship(scope),
1042
- childHome(scope),
1043
- childPrimaryCaregiver(scope),
1044
- degreeOfInterest(scope),
1045
- lawyerPaymentMethod(scope),
1046
- ],
1047
- });
1048
-
1049
- const DivorceQuestions = (condition, scope) =>
1050
- group("DivorceQuestions", {
1051
- if: condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
1052
- children: [
1053
- haveAttorney(scope),
1054
- maritalStatus(scope),
1055
- haveChildren(scope),
1056
- degreeOfInterest(scope),
1057
- lawyerPaymentMethod(scope),
1058
- ],
1059
- });
1060
-
1061
- const DUIAndDWIQuestions = (condition, scope) =>
1062
- group("DUIAndDWIQuestions", {
1063
- if: condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
1064
- children: [
1065
- haveAttorney(scope),
1066
- incidentDate(scope),
1067
- priorAlcoholOffenses(scope),
1068
- typeOfAlcoholTest(scope),
1069
- bloodContentAlcoholTest(scope),
1070
- pendingCharges(scope),
1071
- degreeOfInterestHelp(scope),
1072
- ],
1073
- });
1074
-
1075
- const PersonalInjuryQuestions = (condition, scope) =>
1076
- group("PersonalInjuryQuestions", {
1077
- if: condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
1078
- children: [
1079
- haveAttorney(scope),
1080
- incidentDate(scope),
1081
- claimStatus(scope),
1082
- atFault(scope),
1083
- primaryInjury(scope),
1084
- doctorTreatment(scope),
1085
- ],
1086
- });
1087
-
1088
- const PowerofAttorneyQuestions = (condition, scope) =>
1089
- group("PowerofAttorneyQuestions", {
1090
- if: condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
1091
- children: [haveAttorney(scope), degreeOfInterestHelp(scope)],
1092
- });
1093
-
1094
- const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) =>
1095
- group("SocialSecurityDisabilityAndInsuranceQuestions", {
1096
- if: condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"',
1097
- children: [
1098
- haveAttorney(scope),
1099
- applicantAge(scope),
1100
- disabilityConditionStopWork(scope),
1101
- disabilityWorkHistory(scope),
1102
- socialSecurityDisabilityReceivingBenefits(scope),
1103
- doctorTreatment(scope),
1104
- ],
1105
- });
1106
-
1107
- const WillsAndTrustsQuestions = (condition, scope) =>
1108
- group("WillsAndTrustsQuestions", {
1109
- if: condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
1110
- children: [
1111
- haveAttorney(scope),
1112
- valueOfAssets(scope),
1113
- typeOfAssets(scope),
1114
- roleInMatterProbate(scope),
1115
- estateLegalServicesNeeded(scope),
1116
- degreeOfInterestHelp(scope),
1117
- ],
1118
- });
1119
-
1120
- const WorkersCompensationQuestions = (condition, scope) =>
1121
- group("WorkersCompensationQuestions", {
1122
- if: condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
1123
- children: [
1124
- haveAttorney(scope),
1125
- incidentDate(scope),
1126
- claimStatus(scope),
1127
- primaryInjury(scope),
1128
- causeOfInjury(scope),
1129
- doctorTreatment(scope),
1130
- ],
1131
- });
1132
-
1133
546
  const NEXT_ON_ENTER = "$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
1134
547
  const NEXT_ON_INPUT = "$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
1135
548
 
@@ -1191,32 +604,33 @@ function secureIcon(updates = {}) {
1191
604
  return merge(secureIconDefault, updates)
1192
605
  }
1193
606
 
1194
- function questionsStepHeadline(updates) {
607
+ function secureIconStandalone(updates = {}) {
1195
608
  return {
1196
- $el: "h3",
1197
- children: updates.headline || "Tell Us About Your Situation",
1198
- attrs: {
1199
- 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",
609
+ if: "$activeStep === $lastStep()",
610
+ style: {
611
+ if: "$activeStep !== $lastStep()",
612
+ then: "display: none;",
1200
613
  },
614
+ children: [
615
+ secureIcon({
616
+ attrs: {
617
+ class: "t-flex t-justify-center t-items-center t-text-sm t-text-gray-500 t-pb-6 sm:t-pb-8",
618
+ },
619
+ ...updates,
620
+ }),
621
+ ],
1201
622
  }
1202
623
  }
1203
624
 
1204
- function crossSellQuestionsStepHeadline(updates) {
625
+ function verticalStepHeadline(updates) {
1205
626
  return {
1206
627
  $el: "h3",
1207
628
  children: updates.headline || "Tell Us About Your Situation",
1208
629
  attrs: {
1209
- class: "t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1",
1210
- },
1211
- }
1212
- }
1213
-
1214
- function crossSellQuestionsStepSubHeadline(updates) {
1215
- return {
1216
- $el: "h5",
1217
- children: updates.subheadline || "Tell us about your situation:",
1218
- attrs: {
1219
- 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",
630
+ class:
631
+ "t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1" +
632
+ " " +
633
+ (updates.headlineClass || ""),
1220
634
  },
1221
635
  }
1222
636
  }
@@ -1254,19 +668,6 @@ function firstAndLastStepHeadline(updates) {
1254
668
  }
1255
669
  }
1256
670
 
1257
- function legalCrossSellsStepHeadline(updates) {
1258
- return {
1259
- $el: "h3",
1260
- children: updates.headline || "Do any of the following situations apply?",
1261
- attrs: {
1262
- class:
1263
- "t-flex t-justify-center t-text-center t-text-xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1" +
1264
- " " +
1265
- (updates.headlineClass || ""),
1266
- },
1267
- }
1268
- }
1269
-
1270
671
  function contactStepHeadline(updates) {
1271
672
  return {
1272
673
  $el: "h3",
@@ -1363,6 +764,25 @@ function step(name, inputs, updates = {}) {
1363
764
  })
1364
765
  }
1365
766
 
767
+ // Single question step
768
+ function sqstep(name, input, defaultHeadline, updates = {}) {
769
+ if (typeof updates.nextOnInput === "undefined") {
770
+ updates.nextOnInput = true;
771
+ }
772
+
773
+ return step(
774
+ name,
775
+ [
776
+ verticalStepHeadline({
777
+ headline: updates.headline ?? defaultHeadline,
778
+ headlineClass: updates.headlineClass,
779
+ }),
780
+ ...(Array.isArray(input) ? input : [input]),
781
+ ],
782
+ updates
783
+ )
784
+ }
785
+
1366
786
  function commentsWithBankruptcy(updates = {}) {
1367
787
  return step(
1368
788
  "commentsWithBankruptcy",
@@ -1391,206 +811,159 @@ function commentsWithBankruptcy(updates = {}) {
1391
811
  )
1392
812
  }
1393
813
 
1394
- function contactInfo(updates = {}) {
814
+ function contactInfoV2(updates = {}) {
1395
815
  return step(
1396
816
  "contactInfo",
1397
817
  [
1398
818
  contactStepHeadline(updates),
1399
819
  contactStepSubHeadline(updates),
1400
820
  trustedFormScript(),
1401
- email(updates.scope),
1402
- phone(updates.scope),
1403
- TCPAConsent(updates.scope),
1404
- secureIcon(),
821
+ {
822
+ $el: "div",
823
+ attrs: {
824
+ class: "t-flex t-flex-col t-justify-center t-items-center",
825
+ },
826
+ children: [
827
+ emailFL(updates.scope, {
828
+ outerClass: "!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]",
829
+ innerClass: "!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]",
830
+ }),
831
+ phoneFL(updates.scope, {
832
+ outerClass: "!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]",
833
+ innerClass: "!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]",
834
+ }),
835
+ ],
836
+ },
837
+ TCPAConsent(updates.scope, {
838
+ outerClass: "!t-flex !t-flex-col !t-justify-center !t-items-center",
839
+ wrapperClass: "t-w-[95%] sm:t-w-[80%]",
840
+ messagesClass: "t-w-[95%] sm:t-w-[80%]",
841
+ }),
1405
842
  ],
1406
843
  { nextOnEnter: false }
1407
844
  )
1408
845
  }
1409
846
 
1410
- function firstAndLastV2(updates = {}) {
847
+ function firstAndLastV4(updates = {}) {
1411
848
  return step(
1412
849
  "firstAndLast",
1413
- [firstAndLastStepHeadline(updates), firstName(updates.scope), lastName(updates.scope)],
1414
- updates
1415
- )
1416
- }
1417
-
1418
- // ------ Legal Steps
1419
-
1420
- // NOTE: these are currently a bit inconsistent in how they use or pass
1421
- // the args to inputs.
1422
-
1423
- function accidentsAndInjuriesTOLPAndZip(updates = {}) {
1424
- return step(
1425
- "accidentsAndInjuriesTOLPAndZip",
1426
850
  [
851
+ firstAndLastStepHeadline({
852
+ headline: updates.headline ?? "Who is looking for help?",
853
+ headlineClass: updates.headlineClass,
854
+ }),
1427
855
  {
1428
- $formkit: "hidden",
1429
- name: "Type_Of_Legal_Problem",
1430
- id: "Type_Of_Legal_Problem",
1431
- value: "Auto and Car Accidents",
856
+ $el: "div",
857
+ attrs: {
858
+ class: "t-flex t-flex-col t-justify-center t-items-center t-pt-3",
859
+ },
860
+ children: [fullNameFLMobileCol(updates.scope)],
1432
861
  },
1433
- accidentsAndInjuriesTOLPDisplay(updates.scope, false, {
1434
- if: "true",
1435
- }),
1436
- zipcode(updates.scope),
1437
862
  ],
1438
863
  updates
1439
864
  )
1440
865
  }
1441
866
 
1442
- function accidentsAndInjuriesTOLPQuestions(updates = {}) {
1443
- return step(
1444
- "TOLPQuestions",
1445
- [
1446
- questionsStepHeadline(updates),
1447
- AutoAndCarAccidentsQuestions(),
1448
- PersonalInjuryQuestions(),
1449
- WorkersCompensationQuestions(),
1450
- ],
867
+ function zipcode(updates = {}) {
868
+ return sqstep("zipcode", zipcode$1(updates.scope, true, updates.input), "Please verify your Zip Code", updates)
869
+ }
870
+
871
+ function haveAttorney(updates = {}) {
872
+ return sqstep(
873
+ "haveAttorney",
874
+ haveAttorney$1(updates.scope, true, updates.input),
875
+ "Already working with an attorney?",
1451
876
  updates
1452
877
  )
1453
878
  }
1454
879
 
1455
- function childCustodyCrossSellQuestions(updates = {}) {
1456
- return step(
1457
- "childCustodyCrossSellQuestions",
1458
- [
1459
- crossSellQuestionsStepHeadline({ headline: "Child Custody Information" }),
1460
- ChildCustodyQuestions("true", "CrossSell:Child_Custody"),
1461
- comments("CrossSell:Child_Custody", false, {
1462
- label: "Description:",
1463
- placeholder: "Please describe your situation in a few words...",
1464
- inputClass: "!t-h-16",
1465
- }),
1466
- ],
880
+ function incidentDate(updates = {}) {
881
+ return sqstep(
882
+ "incidentDate",
883
+ incidentDate$1(updates.scope, true, updates.input),
884
+ "When did the incident occur?",
1467
885
  updates
1468
886
  )
1469
887
  }
1470
888
 
1471
- function divorceAndSeparationCrossSellQuestions(updates = {}) {
1472
- return step(
1473
- "divorceAndSeparationCrossSellQuestions",
1474
- [
1475
- crossSellQuestionsStepHeadline({
1476
- headline: "Divorce or Separation Information",
1477
- }),
1478
- DivorceQuestions("true", "CrossSell:Divorce_and_Separation"),
1479
- comments("CrossSell:Divorce_and_Separation", false, {
1480
- label: "Description:",
1481
- placeholder: "Please describe your situation in a few words...",
1482
- inputClass: "!t-h-16",
1483
- }),
1484
- ],
889
+ function doctorTreatment(updates = {}) {
890
+ return sqstep(
891
+ "doctorTreatment",
892
+ doctorTreatment$1(updates.scope, true, updates.input),
893
+ "Have you seen a doctor about this?",
1485
894
  updates
1486
895
  )
1487
896
  }
1488
897
 
1489
- function duiAndDWICrossSellQuestions(updates = {}) {
1490
- return step(
1491
- "duiAndDWICrossSellQuestions",
1492
- [
1493
- crossSellQuestionsStepHeadline({ headline: "About Your DUI/DWI" }),
1494
- DUIAndDWIQuestions("true", "CrossSell:DUI_and_DWI"),
1495
- comments("CrossSell:DUI_and_DWI", false, {
1496
- label: "Incident Description:",
1497
- placeholder: "Please describe your incident in a few words...",
1498
- inputClass: "!t-h-16",
1499
- }),
1500
- ],
898
+ function atFault(updates = {}) {
899
+ return sqstep("atFault", atFault$1(updates.scope, true, updates.input), "Were you at fault?", updates)
900
+ }
901
+
902
+ function primaryInjury(updates = {}) {
903
+ return sqstep(
904
+ "primaryInjury",
905
+ primaryInjury$1(updates.scope, true, updates.input),
906
+ "What was the primary injury?",
1501
907
  updates
1502
908
  )
1503
909
  }
1504
910
 
1505
- function ssdiCrossSellQuestions(updates = {}) {
1506
- return step(
1507
- "ssdiCrossSellQuestions",
1508
- [
1509
- crossSellQuestionsStepHeadline({
1510
- headline: "You May Be Entitled To Benefits",
1511
- }),
1512
- crossSellQuestionsStepSubHeadline({
1513
- subheadline: "Tell us about your disability:",
1514
- }),
1515
- SocialSecurityDisabilityAndInsuranceQuestions("true", "CrossSell:Social_Security_Disability_and_Insurance"),
1516
- comments("CrossSell:Social_Security_Disability_and_Insurance", false, {
1517
- label: "Description:",
1518
- placeholder: "Please describe your situation in a few words...",
1519
- inputClass: "!t-h-16",
1520
- }),
1521
- ],
911
+ function policeReportFiled(updates = {}) {
912
+ return sqstep(
913
+ "policeReportFiled",
914
+ policeReportFiled$1(updates.scope, true, updates.input),
915
+ "Was a police report filed?",
1522
916
  updates
1523
917
  )
1524
918
  }
1525
919
 
1526
- function powerOfAttorneyCrossSellQuestions(updates = {}) {
1527
- return step(
1528
- "powerOfAttorneyCrossSellQuestions",
1529
- [
1530
- crossSellQuestionsStepHeadline({
1531
- headline: "Power of Attorney Information",
1532
- }),
1533
- PowerofAttorneyQuestions("true", "CrossSell:Power_of_Attorney"),
1534
- comments("CrossSell:Power_of_Attorney", false, {
1535
- label: "Description:",
1536
- placeholder: "Please describe your situation in a few words...",
1537
- inputClass: "!t-h-16",
1538
- }),
1539
- ],
920
+ function claimStatus(updates = {}) {
921
+ return sqstep(
922
+ "claimStatus",
923
+ claimStatus$1(updates.scope, true, updates.input),
924
+ "What is the status of the claim?",
1540
925
  updates
1541
926
  )
1542
927
  }
1543
928
 
1544
- function willsAndTrustsCrossSellQuestions(updates = {}) {
1545
- return step(
1546
- "willsAndTrustsCrossSellQuestions",
1547
- [
1548
- crossSellQuestionsStepHeadline({ headline: "Will or Trust Information" }),
1549
- WillsAndTrustsQuestions("true", "CrossSell:Wills_and_Trusts"),
1550
- comments("CrossSell:Wills_and_Trusts", false, {
1551
- label: "Description:",
1552
- placeholder: "Please describe your situation in a few words...",
1553
- inputClass: "!t-h-16",
1554
- }),
1555
- ],
929
+ function causeOfInjury(updates = {}) {
930
+ return sqstep(
931
+ "causeOfInjury",
932
+ causeOfInjury$1(updates.scope, true, updates.input),
933
+ "What was the cause of the injury?",
1556
934
  updates
1557
935
  )
1558
936
  }
1559
937
 
1560
- function workersCompensationCrossSellQuestions(updates = {}) {
938
+ function accidentsAndInjuriesTOLP(updates = {}) {
1561
939
  return step(
1562
- "workersCompensationCrossSellQuestions",
940
+ "accidentsAndInjuriesTOLP",
1563
941
  [
1564
- crossSellQuestionsStepHeadline({
1565
- headline: "You May Be Entitled To Benefits",
1566
- }),
1567
- crossSellQuestionsStepSubHeadline({
1568
- subheadline: "Tell us about your injury:",
1569
- }),
1570
- WorkersCompensationQuestions("true", "CrossSell:Workers_Compensation"),
1571
- comments("CrossSell:Workers_Compensation", false, {
1572
- label: "Injury Description:",
1573
- placeholder: "Please describe your injury in a few words...",
1574
- inputClass: "!t-h-16",
942
+ {
943
+ $formkit: "hidden",
944
+ name: "Type_Of_Legal_Problem",
945
+ id: "Type_Of_Legal_Problem",
946
+ value: "Auto and Car Accidents",
947
+ },
948
+ accidentsAndInjuriesTOLPDisplay(updates.scope, true, {
949
+ if: "true",
1575
950
  }),
1576
951
  ],
1577
952
  updates
1578
953
  )
1579
954
  }
1580
955
 
1581
- function legalCrossSells(updates = {}) {
1582
- updates.nextOnInput = false;
1583
- updates.stepKey = "$get(Type_Of_Legal_Problem).value";
1584
- return step("legalCrossSells", [legalCrossSellsStepHeadline(updates), legalCrossSells$1()], updates)
1585
- }
1586
-
1587
- const formNavigation = (updates = {}) => ({
956
+ const formNavigationNoFinalBack = (updates = {}) => ({
1588
957
  $el: "div",
1589
958
  attrs: {
1590
959
  class: {
1591
960
  if: "$activeStep === $firstStep()",
1592
961
  then: "step-nav " + (updates.firstStepButtonClass || "!t-justify-center sm:!t-justify-between"),
1593
- else: "step-nav !t-justify-between",
962
+ else: {
963
+ if: "$activeStep === $lastStep()",
964
+ then: "step-nav !t-justify-center ",
965
+ else: "step-nav !t-justify-between",
966
+ },
1594
967
  },
1595
968
  },
1596
969
  children: [
@@ -1600,12 +973,12 @@ const formNavigation = (updates = {}) => ({
1600
973
  onClick: "$setPreviousStep($prevStepFunc($get(form)))",
1601
974
  children: "Back",
1602
975
  outerClass: {
1603
- if: "$activeStep === $firstStep()",
976
+ if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
1604
977
  then: "t-hidden sm:t-block",
1605
978
  else: "",
1606
979
  },
1607
980
  style: {
1608
- if: "$activeStep === $firstStep()",
981
+ if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
1609
982
  then: "display: none;",
1610
983
  },
1611
984
  classes: {
@@ -1644,7 +1017,8 @@ const formNavigation = (updates = {}) => ({
1644
1017
  then: "display: none;",
1645
1018
  },
1646
1019
  classes: {
1647
- input: (updates.inputClass || "") + " !t-ml-2 sm:!t-ml-auto f-navigation-input",
1020
+ input: (updates.inputClass || "") + " f-navigation-input !t-w-60",
1021
+ outer: "!t-mt-0 !t-mb-0",
1648
1022
  },
1649
1023
  },
1650
1024
  ],
@@ -1798,12 +1172,64 @@ function formAnchor(updates) {
1798
1172
  return merge(formAnchorDefaults, updates)
1799
1173
  }
1800
1174
 
1175
+ const progressBarDefaults = {
1176
+ $el: "div",
1177
+ attrs: {
1178
+ class: "t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",
1179
+ style: {
1180
+ if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
1181
+ then: "display: none",
1182
+ },
1183
+ },
1184
+ children: [
1185
+ {
1186
+ $el: "div",
1187
+ attrs: {
1188
+ class: "t-flex t-justify-center",
1189
+ },
1190
+ children: [
1191
+ {
1192
+ $el: "span",
1193
+ attrs: {
1194
+ id: "progress-bar-text",
1195
+ class: "t-text-sm t-mb-1",
1196
+ },
1197
+ children: ["0% Complete"],
1198
+ },
1199
+ ],
1200
+ },
1201
+ {
1202
+ $el: "div",
1203
+ attrs: {
1204
+ class: "t-bg-gray-100 t-w-9/12 t-rounded",
1205
+ },
1206
+ children: [
1207
+ {
1208
+ $el: "div",
1209
+ attrs: {
1210
+ id: "progress-bar",
1211
+ class:
1212
+ "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]",
1213
+ style: {
1214
+ transition: "width 0.5s ease",
1215
+ },
1216
+ },
1217
+ },
1218
+ ],
1219
+ },
1220
+ ],
1221
+ };
1222
+
1223
+ function progressBar(updates) {
1224
+ return merge(progressBarDefaults, updates)
1225
+ }
1226
+
1801
1227
  function headlineDefaults(updates = {}) {
1802
1228
  return {
1803
1229
  $el: "h1",
1804
1230
  attrs: {
1805
1231
  class:
1806
- "t-flex t-justify-center t-text-center t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3" +
1232
+ "t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3" +
1807
1233
  " " +
1808
1234
  (updates.headlineClass || "") +
1809
1235
  " f-first-headline",
@@ -1832,13 +1258,6 @@ function subHeadline(updates = {}) {
1832
1258
  return merge(subHeadlineDefaults(updates), updates)
1833
1259
  }
1834
1260
 
1835
- function defaultSubHeadline() {
1836
- return subHeadline({
1837
- children: '$urlParam("shl", "Our Service is Fast and Free!")',
1838
- if: "$activeStep === $firstStep()",
1839
- })
1840
- }
1841
-
1842
1261
  const hiddenInputsBase = [
1843
1262
  {
1844
1263
  $formkit: "hidden",
@@ -2306,94 +1725,296 @@ const TOLPFinalSubHeadlines = {
2306
1725
  // // 'Non-Workplace Discrimination': '',
2307
1726
  };
2308
1727
 
2309
- const nextStepsMapLegalLegacy = {
1728
+ const nextStepsLegalDefault = [
1729
+ "haveAttorney",
1730
+ "degreeOfInterest",
1731
+ "commentsWithBankruptcy",
1732
+ "zipcode",
1733
+ "legalCrossSells",
1734
+ "firstAndLast",
1735
+ "contactInfo",
1736
+ ];
1737
+
1738
+ const nextStepsLegalDefaultLPM = [
1739
+ "haveAttorney",
1740
+ "degreeOfInterest",
1741
+ "lawyerPaymentMethod",
1742
+ "commentsWithBankruptcy",
1743
+ "zipcode",
1744
+ "legalCrossSells",
1745
+ "firstAndLast",
1746
+ "contactInfo",
1747
+ ];
1748
+
1749
+ const nextStepsLegalNoDOI = [
1750
+ "haveAttorney",
1751
+ "commentsWithBankruptcy",
1752
+ "zipcode",
1753
+ "legalCrossSells",
1754
+ "firstAndLast",
1755
+ "contactInfo",
1756
+ ];
1757
+
1758
+ const nextStepsLegalNoHA = [
1759
+ "degreeOfInterest",
1760
+ "commentsWithBankruptcy",
1761
+ "zipcode",
1762
+ "legalCrossSells",
1763
+ "firstAndLast",
1764
+ "contactInfo",
1765
+ ];
1766
+
1767
+ const nextStepsMapGeneralLegal = {
2310
1768
  values: {
2311
- "*": ["TOLPQuestions", "commentsWithBankruptcy", "legalCrossSells", "firstAndLast", "contactInfo"],
1769
+ Type_Of_Legal_Problem: {
1770
+ Adoption: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
1771
+ "Asbestos and Mesothelioma": ["incidentDate", "doctorTreatment", ...nextStepsLegalDefault],
1772
+ "Auto and Car Accidents": [
1773
+ "incidentDate",
1774
+ "atFault",
1775
+ "primaryInjury",
1776
+ "doctorTreatment",
1777
+ "policeReportFiled",
1778
+ ...nextStepsLegalNoDOI,
1779
+ ],
1780
+ Bankruptcy: ["totalMonthlyIncome", "totalDebt", "ownRealEstate", "valueOfAssets", ...nextStepsLegalDefault],
1781
+ "Business Lawyers": ["businessServices", "businessType", "numEmployeesOfBusiness", ...nextStepsLegalDefault],
1782
+ "Child Custody": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
1783
+ "Child Support": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
1784
+ "Civil Rights and Discrimination": ["civilRightsType", ...nextStepsLegalDefault],
1785
+ "Civil Lawsuit": ["civilDefense", "lawsuitOtherParty", ...nextStepsLegalDefault],
1786
+ "File a Lawsuit": ["civilLawsuitTOLPDisplay", "lawsuitOtherParty", ...nextStepsLegalDefault],
1787
+ "Defend a Lawsuit": ["lawsuitOtherParty", ...nextStepsLegalDefault],
1788
+ "Consumer Lawyers": ["consumerLawyerType", "incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
1789
+ "Criminal and Felony": [
1790
+ "criminalTOLPDisplay",
1791
+ "crimeCommittedDate",
1792
+ "roleInMatterCriminal",
1793
+ "pendingCharges",
1794
+ ...nextStepsLegalDefaultLPM,
1795
+ ],
1796
+ "Debt and Collections": [
1797
+ "totalMonthlyIncome",
1798
+ "totalDebt",
1799
+ "ownRealEstate",
1800
+ "valueOfAssets",
1801
+ ...nextStepsLegalDefault,
1802
+ ],
1803
+ "Divorce and Separation": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
1804
+ "DUI and DWI": [
1805
+ "incidentDate",
1806
+ "priorAlcoholOffenses",
1807
+ "typeOfAlcoholTest",
1808
+ "bloodContentAlcoholTest",
1809
+ "pendingCharges",
1810
+ ...nextStepsLegalDefault,
1811
+ ],
1812
+ "Employment and Workplace": [
1813
+ "employmentAndWorkplaceTOLPDisplay",
1814
+ "numEmployeesOfBusiness",
1815
+ "employerType",
1816
+ "employeeAtCompany",
1817
+ ...nextStepsLegalDefault,
1818
+ ],
1819
+ Expungement: ["incidentDate", "criminalChargeType", ...nextStepsLegalDefaultLPM],
1820
+ "Family Issues": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
1821
+ Foreclosure: [
1822
+ "ownRealEstate",
1823
+ "typeOfProperty",
1824
+ "amountPaymentsPastDue",
1825
+ "loanAmount",
1826
+ "defaultNotice",
1827
+ ...nextStepsLegalDefault,
1828
+ ],
1829
+ Guardianship: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
1830
+ "Immigration and Visas": [
1831
+ "countryOfCitizenship",
1832
+ "immigrationLocation",
1833
+ "immigrationEntry",
1834
+ "immigrationType",
1835
+ "immigrationStatus",
1836
+ "immigrationDetails",
1837
+ ...nextStepsLegalDefault,
1838
+ ],
1839
+ "Landlord and Tenant": ["landlordTenantIssue", "landlordTenantParty", ...nextStepsLegalDefault],
1840
+ "Lemon Law": ["incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
1841
+ "Long Term Disability": [
1842
+ "applicantOccupation",
1843
+ "applicantAge",
1844
+ "applicantLTDisabilityPolicy",
1845
+ "applicantDisabilityHowObtain",
1846
+ "applicantPreviouslyAppliedLtdBenefits",
1847
+ "applicantReceivedDisabilityBenefits",
1848
+ "applicantMonthlySalary",
1849
+ ...nextStepsLegalNoDOI,
1850
+ ],
1851
+ "Medical Malpractice": [
1852
+ "incidentDate",
1853
+ "claimStatus",
1854
+ "doctorTreatment",
1855
+ "medicalMalpracticeInjuries",
1856
+ ...nextStepsLegalDefault,
1857
+ ],
1858
+ "Patents and Intellectual Property": ["patentAssistanceType", "patentFor", ...nextStepsLegalDefault],
1859
+ "Personal Injury": [
1860
+ "incidentDate",
1861
+ "claimStatus",
1862
+ "atFault",
1863
+ "primaryInjury",
1864
+ "doctorTreatment",
1865
+ ...nextStepsLegalNoDOI,
1866
+ ],
1867
+ "Probate and Estates": [
1868
+ "valueOfAssets",
1869
+ "typeOfAssets",
1870
+ "roleInMatterProbate",
1871
+ "estateLegalServicesNeeded",
1872
+ ...nextStepsLegalDefault,
1873
+ ],
1874
+ "Property Damage": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
1875
+ "Real Estate": ["realEstateTOLPDisplay", "realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
1876
+ "Social Security Disability and Insurance": [
1877
+ "applicantAge",
1878
+ "disabilityConditionStopWork",
1879
+ "disabilityWorkHistory",
1880
+ "socialSecurityDisabilityReceivingBenefits",
1881
+ "doctorTreatment",
1882
+ ...nextStepsLegalNoDOI,
1883
+ ],
1884
+ "Tax and IRS": ["totalDebt", "taxProblemDetails", "taxLevel", "taxIssueType", ...nextStepsLegalDefault],
1885
+ "Traffic and Tickets": ["driversLicenseType", "trafficViolations", "haveCourtDate", ...nextStepsLegalDefault],
1886
+ Unemployment: ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalNoHA],
1887
+ "Victim of a Crime": [
1888
+ "crimeCommittedDate",
1889
+ "roleInMatterCriminal",
1890
+ "pendingCharges",
1891
+ ...nextStepsLegalDefaultLPM,
1892
+ ],
1893
+ "Wills and Trusts": [
1894
+ "valueOfAssets",
1895
+ "typeOfAssets",
1896
+ "roleInMatterProbate",
1897
+ "estateLegalServicesNeeded",
1898
+ ...nextStepsLegalDefault,
1899
+ ],
1900
+ "Workers Compensation": [
1901
+ "incidentDate",
1902
+ "claimStatus",
1903
+ "primaryInjury",
1904
+ "causeOfInjury",
1905
+ "doctorTreatment",
1906
+ ...nextStepsLegalNoDOI,
1907
+ ],
1908
+ "Workplace Harassment": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
1909
+ "Workplace Discrimination": [
1910
+ "numEmployeesOfBusiness",
1911
+ "employerType",
1912
+ "employeeAtCompany",
1913
+ ...nextStepsLegalDefault,
1914
+ ],
1915
+ "Wrongful Death": [
1916
+ "incidentDate",
1917
+ "relationshipToVictim",
1918
+ "criminalChargesFiled",
1919
+ "causeOfDeath",
1920
+ ...nextStepsLegalNoDOI,
1921
+ ],
1922
+ "Wrongful Termination": ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalDefault],
1923
+ },
1924
+ "*": nextStepsLegalDefault,
2312
1925
  },
2313
1926
  };
2314
1927
 
2315
- const nextStepsMapLegalCrossSells = {
1928
+ const TOLPNextSteps = nextStepsMapGeneralLegal["values"]["Type_Of_Legal_Problem"];
1929
+
1930
+ const nextStepsMapAccidentsAndInjuriesTOLPDisplay = {
2316
1931
  values: {
2317
- Legal_CrossSells: {
2318
- "Auto and Car Accidents": ["autoAndCarAccidentCrossSellQuestions"],
2319
- "Personal Injury": ["personalInjuryCrossSellQuestions"],
2320
- "Workers Compensation": ["workersCompensationCrossSellQuestions"],
2321
- "DUI and DWI": ["duiAndDWICrossSellQuestions"],
2322
- "Long Term Disability": ["longTermDisabilityCrossSellQuestions"],
2323
- "Social Security Disability and Insurance": ["ssdiCrossSellQuestions"],
2324
- Bankruptcy: ["bankruptcyCrossSellQuestions"],
2325
- "Power of Attorney": ["powerOfAttorneyCrossSellQuestions"],
2326
- "Wills and Trusts": ["willsAndTrustsCrossSellQuestions"],
2327
- "Divorce and Separation": ["divorceAndSeparationCrossSellQuestions"],
2328
- "Child Custody": ["childCustodyCrossSellQuestions"],
2329
- },
2330
- "*": ["firstAndLast", "contactInfo"],
1932
+ Type_Of_Legal_Problem_Display: {
1933
+ "Auto Accident": TOLPNextSteps["Auto and Car Accidents"].filter((step) => step !== "legalCrossSells"),
1934
+ "Workplace Injury": TOLPNextSteps["Workers Compensation"].filter((step) => step !== "legalCrossSells"),
1935
+ "Dog Bite": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
1936
+ "Slip and Fall": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
1937
+ "Trucking Accident": TOLPNextSteps["Auto and Car Accidents"].filter((step) => step !== "legalCrossSells"),
1938
+ "Motorcycle Accident": TOLPNextSteps["Auto and Car Accidents"].filter((step) => step !== "legalCrossSells"),
1939
+ "Other Accidents or Injuries": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
1940
+ },
1941
+ "*": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
2331
1942
  },
2332
-
2333
- // NOTE: this assumes a certain placement of the cross sell question
2334
- // in the form flow.
2335
- appendSteps: ["firstAndLast", "contactInfo"],
2336
- matchesAllowed: 1,
2337
1943
  };
2338
1944
 
2339
- const legalCrossSellOptionMap = CROSS_SELL_OPTION_MAP_LEGAL;
2340
-
2341
1945
  const meta = defaultMetaPropsLegal();
2342
1946
 
2343
1947
  meta.data.dynamicSchema = [
2344
- accidentsAndInjuriesTOLPQuestions(),
1948
+ causeOfInjury(),
1949
+ claimStatus(),
1950
+ incidentDate({
1951
+ nextOnInput: false,
1952
+ }),
1953
+ atFault(),
1954
+ primaryInjury(),
1955
+ doctorTreatment(),
1956
+ policeReportFiled(),
1957
+ zipcode(),
1958
+ haveAttorney(),
2345
1959
  commentsWithBankruptcy({
2346
- inputClass: '!t-h-28'
1960
+ inputClass: "!t-h-28",
1961
+ label: null,
1962
+ headline: "Please describe your incident:",
1963
+ headlineClass: "!t-text-dark",
1964
+ wrapperClass: "t-flex t-justify-center",
1965
+ innerClass: "t-w-full",
2347
1966
  }),
2348
- legalCrossSells({
2349
- headlineClass: '!t-text-dark',
2350
- nextStepMap: nextStepsMapLegalCrossSells,
1967
+ firstAndLastV4({
1968
+ headlineClass: "!t-text-dark",
2351
1969
  }),
2352
- workersCompensationCrossSellQuestions(),
2353
- duiAndDWICrossSellQuestions(),
2354
- ssdiCrossSellQuestions(),
2355
- powerOfAttorneyCrossSellQuestions(),
2356
- willsAndTrustsCrossSellQuestions(),
2357
- divorceAndSeparationCrossSellQuestions(),
2358
- childCustodyCrossSellQuestions(),
2359
- firstAndLastV2(),
2360
1970
  ];
2361
1971
 
2362
1972
  const schema = [
2363
1973
  meta,
2364
1974
  formAnchor(),
2365
1975
  {
2366
- $cmp: 'FormKit',
1976
+ $cmp: "FormKit",
2367
1977
  props: formProps({
2368
- formId: 'accidentsAndInjuries',
1978
+ formId: "accidentsAndInjuries",
2369
1979
  redirectMap: legalRedirectMap(),
2370
1980
  valueOverrideMap: legalAllValueOverrideMap,
2371
- crossSellOptionMap: legalCrossSellOptionMap
2372
1981
  }),
2373
1982
  children: [
1983
+ progressBar(),
2374
1984
  headline({
2375
- children: '$urlParam("hl", "Get Accident & Injury Help Now")',
2376
- if: '$activeStep === $firstStep()'
1985
+ children: '$urlParam("hl", "Maximize Your Compensation")',
1986
+ if: "$activeStep === $firstStep()",
1987
+ }),
1988
+ subHeadline({
1989
+ children: '$urlParam("shl", "Get a Free Case Evaluation Today")',
1990
+ if: "$activeStep === $firstStep()",
2377
1991
  }),
2378
- defaultSubHeadline(),
2379
1992
  ...hiddenInputsLegal,
2380
1993
  {
2381
- $el: 'div',
1994
+ $el: "div",
2382
1995
  attrs: {
2383
- class: 'form-body'
1996
+ class: "form-body",
2384
1997
  },
2385
1998
  children: [
2386
- accidentsAndInjuriesTOLPAndZip({
2387
- nextStepMap: nextStepsMapLegalLegacy
1999
+ accidentsAndInjuriesTOLP({
2000
+ nextStepMap: nextStepsMapAccidentsAndInjuriesTOLPDisplay,
2388
2001
  }),
2389
2002
  dynamicSchemaNode(),
2390
- contactInfo(),
2391
- formNavigation(),
2392
- formDetails()
2393
- ]
2394
- }
2395
- ]
2396
- }
2003
+ contactInfoV2({
2004
+ subheadlineClass: "!t-text-base",
2005
+ }),
2006
+ formNavigationNoFinalBack({
2007
+ startText: "Start Now",
2008
+ submitLabel: "Get Help Now",
2009
+ inputClass: "!t-font-extrabold",
2010
+ firstStepButtonClass: "!t-justify-center",
2011
+ }),
2012
+ secureIconStandalone(),
2013
+ formDetails(),
2014
+ ],
2015
+ },
2016
+ ],
2017
+ },
2397
2018
  ];
2398
2019
 
2399
2020
  export { schema as default };